@malloy-publisher/sdk 0.0.204 → 0.0.206
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-Byndfro6.es.js → ServerProvider-Bl1dhff8.es.js} +875 -1141
- package/dist/ServerProvider-DAUs13RZ.cjs.js +1 -0
- package/dist/client/api.d.ts +464 -417
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +55 -54
- package/dist/components/Materializations/CreateMaterializationDialog.d.ts +0 -1
- package/dist/components/Materializations/ManifestView.d.ts +6 -7
- package/dist/components/Materializations/utils.d.ts +20 -16
- package/dist/components/Package/ContentTypeIcon.d.ts +3 -4
- package/dist/components/PageViewer/PageViewer.d.ts +17 -0
- package/dist/components/PageViewer/index.d.ts +1 -0
- package/dist/components/ServerProvider.d.ts +2 -2
- package/dist/components/given/GivenInput.d.ts +13 -8
- package/dist/components/index.d.ts +1 -0
- package/dist/{core-rpX4ZiBw.cjs.js → core-DPwA_AfV.cjs.js} +1 -1
- package/dist/{core-DECXYL4E.es.js → core-pPlPr7jK.es.js} +1 -1
- package/dist/hooks/useGivensForm.d.ts +0 -2
- package/dist/{index-fCeepsZI.es.js → index-BCj2kFTK.es.js} +9215 -9015
- package/dist/{index-DDoMd3Vi.cjs.js → index-LRaPE9ej.cjs.js} +82 -82
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +24 -23
- package/dist/utils/pageEmbed.d.ts +24 -0
- package/package.json +1 -1
- package/src/components/Materializations/CreateMaterializationDialog.tsx +6 -20
- package/src/components/Materializations/ManifestView.tsx +29 -46
- package/src/components/Materializations/MaterializationDetailDialog.tsx +104 -74
- package/src/components/Materializations/MaterializationRunsList.tsx +2 -1
- package/src/components/Materializations/Materializations.tsx +13 -85
- package/src/components/Materializations/utils.ts +60 -27
- package/src/components/Model/Model.tsx +39 -0
- package/src/components/Notebook/Notebook.tsx +22 -9
- package/src/components/Package/ContentTypeIcon.tsx +16 -4
- package/src/components/Package/Package.tsx +115 -2
- package/src/components/PageViewer/PageViewer.tsx +164 -0
- package/src/components/PageViewer/index.ts +1 -0
- package/src/components/ServerProvider.tsx +2 -2
- package/src/components/given/GivenInput.tsx +54 -31
- package/src/components/index.ts +1 -0
- package/src/hooks/useGivensForm.ts +0 -12
- package/src/utils/pageEmbed.spec.ts +60 -0
- package/src/utils/pageEmbed.ts +46 -0
- package/dist/ServerProvider-DzJJm8Ss.cjs.js +0 -1
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as Q } from "react/jsx-runtime";
|
|
2
2
|
import { QueryClient as L, QueryClientProvider as H } from "@tanstack/react-query";
|
|
3
3
|
import h from "axios";
|
|
4
|
-
import { useContext as
|
|
4
|
+
import { useContext as D, createContext as W, useMemo as G, useState as $, useEffect as f } from "react";
|
|
5
5
|
const u = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
6
|
-
class
|
|
7
|
-
constructor(r,
|
|
8
|
-
this.basePath =
|
|
6
|
+
class y {
|
|
7
|
+
constructor(r, e = u, t = h) {
|
|
8
|
+
this.basePath = e, this.axios = t, r && (this.configuration = r, this.basePath = r.basePath ?? e);
|
|
9
9
|
}
|
|
10
10
|
configuration;
|
|
11
11
|
}
|
|
12
12
|
class _ extends Error {
|
|
13
|
-
constructor(r,
|
|
14
|
-
super(
|
|
13
|
+
constructor(r, e) {
|
|
14
|
+
super(e), this.field = r, this.name = "RequiredError";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
17
|
+
const V = {}, g = "https://example.com", d = function(l, r, e) {
|
|
18
|
+
if (e == null)
|
|
19
19
|
throw new _(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
|
|
20
20
|
};
|
|
21
|
-
function
|
|
22
|
-
r != null && (typeof r == "object" ? Array.isArray(r) ? r.forEach((t) =>
|
|
23
|
-
(t) =>
|
|
24
|
-
) : l.has(
|
|
21
|
+
function M(l, r, e = "") {
|
|
22
|
+
r != null && (typeof r == "object" ? Array.isArray(r) ? r.forEach((t) => M(l, t, e)) : Object.keys(r).forEach(
|
|
23
|
+
(t) => M(l, r[t], `${e}${e !== "" ? "." : ""}${t}`)
|
|
24
|
+
) : l.has(e) ? l.append(e, r) : l.set(e, r));
|
|
25
25
|
}
|
|
26
26
|
const v = function(l, ...r) {
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
}, I = function(l, r,
|
|
27
|
+
const e = new URLSearchParams(l.search);
|
|
28
|
+
M(e, r), l.search = e.toString();
|
|
29
|
+
}, I = function(l, r, e) {
|
|
30
30
|
const t = typeof l != "string";
|
|
31
|
-
return (t &&
|
|
31
|
+
return (t && e && e.isJsonMime ? e.isJsonMime(r.headers["Content-Type"]) : t) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
|
|
32
32
|
}, O = function(l) {
|
|
33
33
|
return l.pathname + l.search + l.hash;
|
|
34
|
-
}, b = function(l, r,
|
|
35
|
-
return (
|
|
36
|
-
const o = { ...l.options, url: (
|
|
37
|
-
return
|
|
34
|
+
}, b = function(l, r, e, t) {
|
|
35
|
+
return (a = r, n = e) => {
|
|
36
|
+
const o = { ...l.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? n) + l.url };
|
|
37
|
+
return a.request(o);
|
|
38
38
|
};
|
|
39
|
-
},
|
|
39
|
+
}, ke = {
|
|
40
40
|
Bigquery: "bigquery",
|
|
41
41
|
Snowflake: "snowflake",
|
|
42
42
|
Postgres: "postgres",
|
|
43
43
|
Gcs: "gcs",
|
|
44
44
|
S3: "s3",
|
|
45
45
|
Azure: "azure"
|
|
46
|
-
},
|
|
46
|
+
}, ye = {
|
|
47
47
|
ServicePrincipal: "service_principal",
|
|
48
48
|
SasToken: "sas_token"
|
|
49
49
|
}, Ce = {
|
|
@@ -82,22 +82,29 @@ const v = function(l, ...r) {
|
|
|
82
82
|
Error: "error"
|
|
83
83
|
}, we = {
|
|
84
84
|
Pending: "PENDING",
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
BuildPlanReady: "BUILD_PLAN_READY",
|
|
86
|
+
ManifestRowsReady: "MANIFEST_ROWS_READY",
|
|
87
|
+
ManifestFileReady: "MANIFEST_FILE_READY",
|
|
87
88
|
Failed: "FAILED",
|
|
88
89
|
Cancelled: "CANCELLED"
|
|
89
|
-
},
|
|
90
|
+
}, Ee = {
|
|
90
91
|
Markdown: "markdown",
|
|
91
92
|
Code: "code"
|
|
92
|
-
},
|
|
93
|
+
}, Me = {
|
|
93
94
|
Markdown: "markdown",
|
|
94
95
|
Code: "code"
|
|
95
|
-
},
|
|
96
|
+
}, Qe = {
|
|
97
|
+
Declared: "declared",
|
|
98
|
+
All: "all"
|
|
99
|
+
}, $e = {
|
|
100
|
+
Snapshot: "SNAPSHOT",
|
|
101
|
+
Copy: "COPY"
|
|
102
|
+
}, Be = {
|
|
96
103
|
Initializing: "initializing",
|
|
97
104
|
Serving: "serving",
|
|
98
105
|
Draining: "draining",
|
|
99
106
|
Throttled: "throttled"
|
|
100
|
-
},
|
|
107
|
+
}, Y = function(l) {
|
|
101
108
|
return {
|
|
102
109
|
/**
|
|
103
110
|
* Creates a new database connection in the specified environment.
|
|
@@ -108,15 +115,15 @@ const v = function(l, ...r) {
|
|
|
108
115
|
* @param {*} [options] Override http request option.
|
|
109
116
|
* @throws {RequiredError}
|
|
110
117
|
*/
|
|
111
|
-
createConnection: async (r,
|
|
112
|
-
|
|
113
|
-
const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(
|
|
118
|
+
createConnection: async (r, e, t, a = {}) => {
|
|
119
|
+
d("createConnection", "environmentName", r), d("createConnection", "connectionName", e), d("createConnection", "connection", t);
|
|
120
|
+
const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, g);
|
|
114
121
|
let s;
|
|
115
122
|
l && (s = l.baseOptions);
|
|
116
|
-
const c = { method: "POST", ...s, ...
|
|
123
|
+
const c = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
117
124
|
i["Content-Type"] = "application/json", v(o, p);
|
|
118
|
-
let
|
|
119
|
-
return c.headers = { ...i, ...
|
|
125
|
+
let m = s && s.headers ? s.headers : {};
|
|
126
|
+
return c.headers = { ...i, ...m, ...a.headers }, c.data = I(t, c, l), {
|
|
120
127
|
url: O(o),
|
|
121
128
|
options: c
|
|
122
129
|
};
|
|
@@ -129,9 +136,9 @@ const v = function(l, ...r) {
|
|
|
129
136
|
* @param {*} [options] Override http request option.
|
|
130
137
|
* @throws {RequiredError}
|
|
131
138
|
*/
|
|
132
|
-
deleteConnection: async (r,
|
|
133
|
-
|
|
134
|
-
const
|
|
139
|
+
deleteConnection: async (r, e, t = {}) => {
|
|
140
|
+
d("deleteConnection", "environmentName", r), d("deleteConnection", "connectionName", e);
|
|
141
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, g);
|
|
135
142
|
let o;
|
|
136
143
|
l && (o = l.baseOptions);
|
|
137
144
|
const s = { method: "DELETE", ...o, ...t }, c = {};
|
|
@@ -150,9 +157,9 @@ const v = function(l, ...r) {
|
|
|
150
157
|
* @param {*} [options] Override http request option.
|
|
151
158
|
* @throws {RequiredError}
|
|
152
159
|
*/
|
|
153
|
-
getConnection: async (r,
|
|
154
|
-
|
|
155
|
-
const
|
|
160
|
+
getConnection: async (r, e, t = {}) => {
|
|
161
|
+
d("getConnection", "environmentName", r), d("getConnection", "connectionName", e);
|
|
162
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, g);
|
|
156
163
|
let o;
|
|
157
164
|
l && (o = l.baseOptions);
|
|
158
165
|
const s = { method: "GET", ...o, ...t }, c = {};
|
|
@@ -163,53 +170,6 @@ const v = function(l, ...r) {
|
|
|
163
170
|
options: s
|
|
164
171
|
};
|
|
165
172
|
},
|
|
166
|
-
/**
|
|
167
|
-
* **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.
|
|
168
|
-
* @summary Get SQL source (deprecated)
|
|
169
|
-
* @param {string} environmentName Name of the environment
|
|
170
|
-
* @param {string} connectionName Name of the connection
|
|
171
|
-
* @param {string} [sqlStatement] SQL statement
|
|
172
|
-
* @param {*} [options] Override http request option.
|
|
173
|
-
* @deprecated
|
|
174
|
-
* @throws {RequiredError}
|
|
175
|
-
*/
|
|
176
|
-
getSqlsource: async (r, a, t, e = {}) => {
|
|
177
|
-
m("getSqlsource", "environmentName", r), m("getSqlsource", "connectionName", a);
|
|
178
|
-
const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, V);
|
|
179
|
-
let s;
|
|
180
|
-
l && (s = l.baseOptions);
|
|
181
|
-
const c = { method: "GET", ...s, ...e }, i = {}, p = {};
|
|
182
|
-
t !== void 0 && (p.sqlStatement = t), v(o, p);
|
|
183
|
-
let d = s && s.headers ? s.headers : {};
|
|
184
|
-
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
185
|
-
url: O(o),
|
|
186
|
-
options: c
|
|
187
|
-
};
|
|
188
|
-
},
|
|
189
|
-
/**
|
|
190
|
-
* **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
191
|
-
* @summary Get SQL source (per-package, deprecated)
|
|
192
|
-
* @param {string} environmentName Name of the environment
|
|
193
|
-
* @param {string} packageName Name of the package whose connection context to use
|
|
194
|
-
* @param {string} connectionName Name of the connection
|
|
195
|
-
* @param {string} [sqlStatement] SQL statement
|
|
196
|
-
* @param {*} [options] Override http request option.
|
|
197
|
-
* @deprecated
|
|
198
|
-
* @throws {RequiredError}
|
|
199
|
-
*/
|
|
200
|
-
getSqlsourceInPackage: async (r, a, t, e, n = {}) => {
|
|
201
|
-
m("getSqlsourceInPackage", "environmentName", r), m("getSqlsourceInPackage", "packageName", a), m("getSqlsourceInPackage", "connectionName", t);
|
|
202
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, V);
|
|
203
|
-
let c;
|
|
204
|
-
l && (c = l.baseOptions);
|
|
205
|
-
const i = { method: "GET", ...c, ...n }, p = {}, d = {};
|
|
206
|
-
e !== void 0 && (d.sqlStatement = e), v(s, d);
|
|
207
|
-
let P = c && c.headers ? c.headers : {};
|
|
208
|
-
return i.headers = { ...p, ...P, ...n.headers }, {
|
|
209
|
-
url: O(s),
|
|
210
|
-
options: i
|
|
211
|
-
};
|
|
212
|
-
},
|
|
213
173
|
/**
|
|
214
174
|
* 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.
|
|
215
175
|
* @summary Get table details from database
|
|
@@ -220,9 +180,9 @@ const v = function(l, ...r) {
|
|
|
220
180
|
* @param {*} [options] Override http request option.
|
|
221
181
|
* @throws {RequiredError}
|
|
222
182
|
*/
|
|
223
|
-
getTable: async (r,
|
|
224
|
-
|
|
225
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(
|
|
183
|
+
getTable: async (r, e, t, a, n = {}) => {
|
|
184
|
+
d("getTable", "environmentName", r), d("getTable", "connectionName", e), d("getTable", "schemaName", t), d("getTable", "tablePath", a);
|
|
185
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, g);
|
|
226
186
|
let c;
|
|
227
187
|
l && (c = l.baseOptions);
|
|
228
188
|
const i = { method: "GET", ...c, ...n }, p = {};
|
|
@@ -244,66 +204,19 @@ const v = function(l, ...r) {
|
|
|
244
204
|
* @param {*} [options] Override http request option.
|
|
245
205
|
* @throws {RequiredError}
|
|
246
206
|
*/
|
|
247
|
-
getTableInPackage: async (r,
|
|
248
|
-
|
|
249
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
207
|
+
getTableInPackage: async (r, e, t, a, n, o = {}) => {
|
|
208
|
+
d("getTableInPackage", "environmentName", r), d("getTableInPackage", "packageName", e), d("getTableInPackage", "connectionName", t), d("getTableInPackage", "schemaName", a), d("getTableInPackage", "tablePath", n);
|
|
209
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(n))), c = new URL(s, g);
|
|
250
210
|
let i;
|
|
251
211
|
l && (i = l.baseOptions);
|
|
252
|
-
const p = { method: "GET", ...i, ...o },
|
|
212
|
+
const p = { method: "GET", ...i, ...o }, m = {};
|
|
253
213
|
v(c, {});
|
|
254
|
-
let
|
|
255
|
-
return p.headers = { ...
|
|
214
|
+
let k = i && i.headers ? i.headers : {};
|
|
215
|
+
return p.headers = { ...m, ...k, ...o.headers }, {
|
|
256
216
|
url: O(c),
|
|
257
217
|
options: p
|
|
258
218
|
};
|
|
259
219
|
},
|
|
260
|
-
/**
|
|
261
|
-
* **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.
|
|
262
|
-
* @summary Create temporary table (deprecated)
|
|
263
|
-
* @param {string} environmentName Name of the environment
|
|
264
|
-
* @param {string} connectionName Name of the connection
|
|
265
|
-
* @param {string} [sqlStatement] SQL statement
|
|
266
|
-
* @param {*} [options] Override http request option.
|
|
267
|
-
* @deprecated
|
|
268
|
-
* @throws {RequiredError}
|
|
269
|
-
*/
|
|
270
|
-
getTemporarytable: async (r, a, t, e = {}) => {
|
|
271
|
-
m("getTemporarytable", "environmentName", r), m("getTemporarytable", "connectionName", a);
|
|
272
|
-
const n = "/environments/{environmentName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(n, V);
|
|
273
|
-
let s;
|
|
274
|
-
l && (s = l.baseOptions);
|
|
275
|
-
const c = { method: "GET", ...s, ...e }, i = {}, p = {};
|
|
276
|
-
t !== void 0 && (p.sqlStatement = t), v(o, p);
|
|
277
|
-
let d = s && s.headers ? s.headers : {};
|
|
278
|
-
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
279
|
-
url: O(o),
|
|
280
|
-
options: c
|
|
281
|
-
};
|
|
282
|
-
},
|
|
283
|
-
/**
|
|
284
|
-
* **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
285
|
-
* @summary Create temporary table (per-package, deprecated)
|
|
286
|
-
* @param {string} environmentName Name of the environment
|
|
287
|
-
* @param {string} packageName Name of the package whose connection context to use
|
|
288
|
-
* @param {string} connectionName Name of the connection
|
|
289
|
-
* @param {string} [sqlStatement] SQL statement
|
|
290
|
-
* @param {*} [options] Override http request option.
|
|
291
|
-
* @deprecated
|
|
292
|
-
* @throws {RequiredError}
|
|
293
|
-
*/
|
|
294
|
-
getTemporarytableInPackage: async (r, a, t, e, n = {}) => {
|
|
295
|
-
m("getTemporarytableInPackage", "environmentName", r), m("getTemporarytableInPackage", "packageName", a), m("getTemporarytableInPackage", "connectionName", t);
|
|
296
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, V);
|
|
297
|
-
let c;
|
|
298
|
-
l && (c = l.baseOptions);
|
|
299
|
-
const i = { method: "GET", ...c, ...n }, p = {}, d = {};
|
|
300
|
-
e !== void 0 && (d.sqlStatement = e), v(s, d);
|
|
301
|
-
let P = c && c.headers ? c.headers : {};
|
|
302
|
-
return i.headers = { ...p, ...P, ...n.headers }, {
|
|
303
|
-
url: O(s),
|
|
304
|
-
options: i
|
|
305
|
-
};
|
|
306
|
-
},
|
|
307
220
|
/**
|
|
308
221
|
* Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
|
|
309
222
|
* @summary List environment database connections
|
|
@@ -311,16 +224,16 @@ const v = function(l, ...r) {
|
|
|
311
224
|
* @param {*} [options] Override http request option.
|
|
312
225
|
* @throws {RequiredError}
|
|
313
226
|
*/
|
|
314
|
-
listConnections: async (r,
|
|
315
|
-
|
|
316
|
-
const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))),
|
|
227
|
+
listConnections: async (r, e = {}) => {
|
|
228
|
+
d("listConnections", "environmentName", r);
|
|
229
|
+
const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, g);
|
|
317
230
|
let n;
|
|
318
231
|
l && (n = l.baseOptions);
|
|
319
|
-
const o = { method: "GET", ...n, ...
|
|
320
|
-
v(
|
|
232
|
+
const o = { method: "GET", ...n, ...e }, s = {};
|
|
233
|
+
v(a, {});
|
|
321
234
|
let i = n && n.headers ? n.headers : {};
|
|
322
|
-
return o.headers = { ...s, ...i, ...
|
|
323
|
-
url: O(
|
|
235
|
+
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
236
|
+
url: O(a),
|
|
324
237
|
options: o
|
|
325
238
|
};
|
|
326
239
|
},
|
|
@@ -332,9 +245,9 @@ const v = function(l, ...r) {
|
|
|
332
245
|
* @param {*} [options] Override http request option.
|
|
333
246
|
* @throws {RequiredError}
|
|
334
247
|
*/
|
|
335
|
-
listSchemas: async (r,
|
|
336
|
-
|
|
337
|
-
const
|
|
248
|
+
listSchemas: async (r, e, t = {}) => {
|
|
249
|
+
d("listSchemas", "environmentName", r), d("listSchemas", "connectionName", e);
|
|
250
|
+
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, g);
|
|
338
251
|
let o;
|
|
339
252
|
l && (o = l.baseOptions);
|
|
340
253
|
const s = { method: "GET", ...o, ...t }, c = {};
|
|
@@ -354,15 +267,15 @@ const v = function(l, ...r) {
|
|
|
354
267
|
* @param {*} [options] Override http request option.
|
|
355
268
|
* @throws {RequiredError}
|
|
356
269
|
*/
|
|
357
|
-
listSchemasInPackage: async (r,
|
|
358
|
-
|
|
359
|
-
const n = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
270
|
+
listSchemasInPackage: async (r, e, t, a = {}) => {
|
|
271
|
+
d("listSchemasInPackage", "environmentName", r), d("listSchemasInPackage", "packageName", e), d("listSchemasInPackage", "connectionName", t);
|
|
272
|
+
const n = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(n, g);
|
|
360
273
|
let s;
|
|
361
274
|
l && (s = l.baseOptions);
|
|
362
|
-
const c = { method: "GET", ...s, ...
|
|
275
|
+
const c = { method: "GET", ...s, ...a }, i = {};
|
|
363
276
|
v(o, {});
|
|
364
|
-
let
|
|
365
|
-
return c.headers = { ...i, ...
|
|
277
|
+
let m = s && s.headers ? s.headers : {};
|
|
278
|
+
return c.headers = { ...i, ...m, ...a.headers }, {
|
|
366
279
|
url: O(o),
|
|
367
280
|
options: c
|
|
368
281
|
};
|
|
@@ -377,13 +290,13 @@ const v = function(l, ...r) {
|
|
|
377
290
|
* @param {*} [options] Override http request option.
|
|
378
291
|
* @throws {RequiredError}
|
|
379
292
|
*/
|
|
380
|
-
listTables: async (r,
|
|
381
|
-
|
|
382
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(
|
|
293
|
+
listTables: async (r, e, t, a, n = {}) => {
|
|
294
|
+
d("listTables", "environmentName", r), d("listTables", "connectionName", e), d("listTables", "schemaName", t);
|
|
295
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, g);
|
|
383
296
|
let c;
|
|
384
297
|
l && (c = l.baseOptions);
|
|
385
|
-
const i = { method: "GET", ...c, ...n }, p = {},
|
|
386
|
-
|
|
298
|
+
const i = { method: "GET", ...c, ...n }, p = {}, m = {};
|
|
299
|
+
a && (m.tableNames = a), v(s, m);
|
|
387
300
|
let P = c && c.headers ? c.headers : {};
|
|
388
301
|
return i.headers = { ...p, ...P, ...n.headers }, {
|
|
389
302
|
url: O(s),
|
|
@@ -401,15 +314,15 @@ const v = function(l, ...r) {
|
|
|
401
314
|
* @param {*} [options] Override http request option.
|
|
402
315
|
* @throws {RequiredError}
|
|
403
316
|
*/
|
|
404
|
-
listTablesInPackage: async (r,
|
|
405
|
-
|
|
406
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
317
|
+
listTablesInPackage: async (r, e, t, a, n, o = {}) => {
|
|
318
|
+
d("listTablesInPackage", "environmentName", r), d("listTablesInPackage", "packageName", e), d("listTablesInPackage", "connectionName", t), d("listTablesInPackage", "schemaName", a);
|
|
319
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, g);
|
|
407
320
|
let i;
|
|
408
321
|
l && (i = l.baseOptions);
|
|
409
|
-
const p = { method: "GET", ...i, ...o },
|
|
322
|
+
const p = { method: "GET", ...i, ...o }, m = {}, P = {};
|
|
410
323
|
n && (P.tableNames = n), v(c, P);
|
|
411
|
-
let
|
|
412
|
-
return p.headers = { ...
|
|
324
|
+
let k = i && i.headers ? i.headers : {};
|
|
325
|
+
return p.headers = { ...m, ...k, ...o.headers }, {
|
|
413
326
|
url: O(c),
|
|
414
327
|
options: p
|
|
415
328
|
};
|
|
@@ -420,21 +333,20 @@ const v = function(l, ...r) {
|
|
|
420
333
|
* @param {string} environmentName Name of the environment
|
|
421
334
|
* @param {string} connectionName Name of the connection
|
|
422
335
|
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
423
|
-
* @param {string} [_options] Options (deprecated; pass in body instead)
|
|
424
336
|
* @param {*} [options] Override http request option.
|
|
425
337
|
* @throws {RequiredError}
|
|
426
338
|
*/
|
|
427
|
-
postQuerydata: async (r,
|
|
428
|
-
|
|
429
|
-
const
|
|
430
|
-
let
|
|
431
|
-
l && (
|
|
432
|
-
const
|
|
433
|
-
|
|
434
|
-
let
|
|
435
|
-
return
|
|
436
|
-
url: O(
|
|
437
|
-
options:
|
|
339
|
+
postQuerydata: async (r, e, t, a = {}) => {
|
|
340
|
+
d("postQuerydata", "environmentName", r), d("postQuerydata", "connectionName", e), d("postQuerydata", "postQuerydataRequest", t);
|
|
341
|
+
const n = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, g);
|
|
342
|
+
let s;
|
|
343
|
+
l && (s = l.baseOptions);
|
|
344
|
+
const c = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
345
|
+
i["Content-Type"] = "application/json", v(o, p);
|
|
346
|
+
let m = s && s.headers ? s.headers : {};
|
|
347
|
+
return c.headers = { ...i, ...m, ...a.headers }, c.data = I(t, c, l), {
|
|
348
|
+
url: O(o),
|
|
349
|
+
options: c
|
|
438
350
|
};
|
|
439
351
|
},
|
|
440
352
|
/**
|
|
@@ -444,21 +356,20 @@ const v = function(l, ...r) {
|
|
|
444
356
|
* @param {string} packageName Name of the package whose connection context to use
|
|
445
357
|
* @param {string} connectionName Name of the connection
|
|
446
358
|
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
447
|
-
* @param {string} [_options] Options (deprecated; pass in body instead)
|
|
448
359
|
* @param {*} [options] Override http request option.
|
|
449
360
|
* @throws {RequiredError}
|
|
450
361
|
*/
|
|
451
|
-
postQuerydataInPackage: async (r,
|
|
452
|
-
|
|
453
|
-
const
|
|
454
|
-
let
|
|
455
|
-
l && (
|
|
456
|
-
const
|
|
457
|
-
|
|
458
|
-
let
|
|
459
|
-
return
|
|
460
|
-
url: O(
|
|
461
|
-
options:
|
|
362
|
+
postQuerydataInPackage: async (r, e, t, a, n = {}) => {
|
|
363
|
+
d("postQuerydataInPackage", "environmentName", r), d("postQuerydataInPackage", "packageName", e), d("postQuerydataInPackage", "connectionName", t), d("postQuerydataInPackage", "postQuerydataRequest", a);
|
|
364
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, g);
|
|
365
|
+
let c;
|
|
366
|
+
l && (c = l.baseOptions);
|
|
367
|
+
const i = { method: "POST", ...c, ...n }, p = {}, m = {};
|
|
368
|
+
p["Content-Type"] = "application/json", v(s, m);
|
|
369
|
+
let P = c && c.headers ? c.headers : {};
|
|
370
|
+
return i.headers = { ...p, ...P, ...n.headers }, i.data = I(a, i, l), {
|
|
371
|
+
url: O(s),
|
|
372
|
+
options: i
|
|
462
373
|
};
|
|
463
374
|
},
|
|
464
375
|
/**
|
|
@@ -470,15 +381,15 @@ const v = function(l, ...r) {
|
|
|
470
381
|
* @param {*} [options] Override http request option.
|
|
471
382
|
* @throws {RequiredError}
|
|
472
383
|
*/
|
|
473
|
-
postSqlsource: async (r,
|
|
474
|
-
|
|
475
|
-
const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(
|
|
384
|
+
postSqlsource: async (r, e, t, a = {}) => {
|
|
385
|
+
d("postSqlsource", "environmentName", r), d("postSqlsource", "connectionName", e), d("postSqlsource", "postSqlsourceRequest", t);
|
|
386
|
+
const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, g);
|
|
476
387
|
let s;
|
|
477
388
|
l && (s = l.baseOptions);
|
|
478
|
-
const c = { method: "POST", ...s, ...
|
|
389
|
+
const c = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
479
390
|
i["Content-Type"] = "application/json", v(o, p);
|
|
480
|
-
let
|
|
481
|
-
return c.headers = { ...i, ...
|
|
391
|
+
let m = s && s.headers ? s.headers : {};
|
|
392
|
+
return c.headers = { ...i, ...m, ...a.headers }, c.data = I(t, c, l), {
|
|
482
393
|
url: O(o),
|
|
483
394
|
options: c
|
|
484
395
|
};
|
|
@@ -493,15 +404,15 @@ const v = function(l, ...r) {
|
|
|
493
404
|
* @param {*} [options] Override http request option.
|
|
494
405
|
* @throws {RequiredError}
|
|
495
406
|
*/
|
|
496
|
-
postSqlsourceInPackage: async (r,
|
|
497
|
-
|
|
498
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
407
|
+
postSqlsourceInPackage: async (r, e, t, a, n = {}) => {
|
|
408
|
+
d("postSqlsourceInPackage", "environmentName", r), d("postSqlsourceInPackage", "packageName", e), d("postSqlsourceInPackage", "connectionName", t), d("postSqlsourceInPackage", "postSqlsourceRequest", a);
|
|
409
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, g);
|
|
499
410
|
let c;
|
|
500
411
|
l && (c = l.baseOptions);
|
|
501
|
-
const i = { method: "POST", ...c, ...n }, p = {},
|
|
502
|
-
p["Content-Type"] = "application/json", v(s,
|
|
412
|
+
const i = { method: "POST", ...c, ...n }, p = {}, m = {};
|
|
413
|
+
p["Content-Type"] = "application/json", v(s, m);
|
|
503
414
|
let P = c && c.headers ? c.headers : {};
|
|
504
|
-
return i.headers = { ...p, ...P, ...n.headers }, i.data = I(
|
|
415
|
+
return i.headers = { ...p, ...P, ...n.headers }, i.data = I(a, i, l), {
|
|
505
416
|
url: O(s),
|
|
506
417
|
options: i
|
|
507
418
|
};
|
|
@@ -515,15 +426,15 @@ const v = function(l, ...r) {
|
|
|
515
426
|
* @param {*} [options] Override http request option.
|
|
516
427
|
* @throws {RequiredError}
|
|
517
428
|
*/
|
|
518
|
-
postTemporarytable: async (r,
|
|
519
|
-
|
|
520
|
-
const n = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(
|
|
429
|
+
postTemporarytable: async (r, e, t, a = {}) => {
|
|
430
|
+
d("postTemporarytable", "environmentName", r), d("postTemporarytable", "connectionName", e), d("postTemporarytable", "postSqlsourceRequest", t);
|
|
431
|
+
const n = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, g);
|
|
521
432
|
let s;
|
|
522
433
|
l && (s = l.baseOptions);
|
|
523
|
-
const c = { method: "POST", ...s, ...
|
|
434
|
+
const c = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
524
435
|
i["Content-Type"] = "application/json", v(o, p);
|
|
525
|
-
let
|
|
526
|
-
return c.headers = { ...i, ...
|
|
436
|
+
let m = s && s.headers ? s.headers : {};
|
|
437
|
+
return c.headers = { ...i, ...m, ...a.headers }, c.data = I(t, c, l), {
|
|
527
438
|
url: O(o),
|
|
528
439
|
options: c
|
|
529
440
|
};
|
|
@@ -538,15 +449,15 @@ const v = function(l, ...r) {
|
|
|
538
449
|
* @param {*} [options] Override http request option.
|
|
539
450
|
* @throws {RequiredError}
|
|
540
451
|
*/
|
|
541
|
-
postTemporarytableInPackage: async (r,
|
|
542
|
-
|
|
543
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
452
|
+
postTemporarytableInPackage: async (r, e, t, a, n = {}) => {
|
|
453
|
+
d("postTemporarytableInPackage", "environmentName", r), d("postTemporarytableInPackage", "packageName", e), d("postTemporarytableInPackage", "connectionName", t), d("postTemporarytableInPackage", "postSqlsourceRequest", a);
|
|
454
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, g);
|
|
544
455
|
let c;
|
|
545
456
|
l && (c = l.baseOptions);
|
|
546
|
-
const i = { method: "POST", ...c, ...n }, p = {},
|
|
547
|
-
p["Content-Type"] = "application/json", v(s,
|
|
457
|
+
const i = { method: "POST", ...c, ...n }, p = {}, m = {};
|
|
458
|
+
p["Content-Type"] = "application/json", v(s, m);
|
|
548
459
|
let P = c && c.headers ? c.headers : {};
|
|
549
|
-
return i.headers = { ...p, ...P, ...n.headers }, i.data = I(
|
|
460
|
+
return i.headers = { ...p, ...P, ...n.headers }, i.data = I(a, i, l), {
|
|
550
461
|
url: O(s),
|
|
551
462
|
options: i
|
|
552
463
|
};
|
|
@@ -560,22 +471,22 @@ const v = function(l, ...r) {
|
|
|
560
471
|
* @param {*} [options] Override http request option.
|
|
561
472
|
* @throws {RequiredError}
|
|
562
473
|
*/
|
|
563
|
-
updateConnection: async (r,
|
|
564
|
-
|
|
565
|
-
const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(
|
|
474
|
+
updateConnection: async (r, e, t, a = {}) => {
|
|
475
|
+
d("updateConnection", "environmentName", r), d("updateConnection", "connectionName", e), d("updateConnection", "updateConnectionRequest", t);
|
|
476
|
+
const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, g);
|
|
566
477
|
let s;
|
|
567
478
|
l && (s = l.baseOptions);
|
|
568
|
-
const c = { method: "PATCH", ...s, ...
|
|
479
|
+
const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
|
|
569
480
|
i["Content-Type"] = "application/json", v(o, p);
|
|
570
|
-
let
|
|
571
|
-
return c.headers = { ...i, ...
|
|
481
|
+
let m = s && s.headers ? s.headers : {};
|
|
482
|
+
return c.headers = { ...i, ...m, ...a.headers }, c.data = I(t, c, l), {
|
|
572
483
|
url: O(o),
|
|
573
484
|
options: c
|
|
574
485
|
};
|
|
575
486
|
}
|
|
576
487
|
};
|
|
577
488
|
}, S = function(l) {
|
|
578
|
-
const r =
|
|
489
|
+
const r = Y(l);
|
|
579
490
|
return {
|
|
580
491
|
/**
|
|
581
492
|
* Creates a new database connection in the specified environment.
|
|
@@ -586,8 +497,8 @@ const v = function(l, ...r) {
|
|
|
586
497
|
* @param {*} [options] Override http request option.
|
|
587
498
|
* @throws {RequiredError}
|
|
588
499
|
*/
|
|
589
|
-
async createConnection(
|
|
590
|
-
const o = await r.createConnection(
|
|
500
|
+
async createConnection(e, t, a, n) {
|
|
501
|
+
const o = await r.createConnection(e, t, a, n), s = l?.serverIndex ?? 0, c = V["ConnectionsApi.createConnection"]?.[s]?.url;
|
|
591
502
|
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
592
503
|
},
|
|
593
504
|
/**
|
|
@@ -598,8 +509,8 @@ const v = function(l, ...r) {
|
|
|
598
509
|
* @param {*} [options] Override http request option.
|
|
599
510
|
* @throws {RequiredError}
|
|
600
511
|
*/
|
|
601
|
-
async deleteConnection(
|
|
602
|
-
const n = await r.deleteConnection(
|
|
512
|
+
async deleteConnection(e, t, a) {
|
|
513
|
+
const n = await r.deleteConnection(e, t, a), o = l?.serverIndex ?? 0, s = V["ConnectionsApi.deleteConnection"]?.[o]?.url;
|
|
603
514
|
return (c, i) => b(n, h, u, l)(c, s || i);
|
|
604
515
|
},
|
|
605
516
|
/**
|
|
@@ -610,39 +521,10 @@ const v = function(l, ...r) {
|
|
|
610
521
|
* @param {*} [options] Override http request option.
|
|
611
522
|
* @throws {RequiredError}
|
|
612
523
|
*/
|
|
613
|
-
async getConnection(
|
|
614
|
-
const n = await r.getConnection(
|
|
524
|
+
async getConnection(e, t, a) {
|
|
525
|
+
const n = await r.getConnection(e, t, a), o = l?.serverIndex ?? 0, s = V["ConnectionsApi.getConnection"]?.[o]?.url;
|
|
615
526
|
return (c, i) => b(n, h, u, l)(c, s || i);
|
|
616
527
|
},
|
|
617
|
-
/**
|
|
618
|
-
* **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.
|
|
619
|
-
* @summary Get SQL source (deprecated)
|
|
620
|
-
* @param {string} environmentName Name of the environment
|
|
621
|
-
* @param {string} connectionName Name of the connection
|
|
622
|
-
* @param {string} [sqlStatement] SQL statement
|
|
623
|
-
* @param {*} [options] Override http request option.
|
|
624
|
-
* @deprecated
|
|
625
|
-
* @throws {RequiredError}
|
|
626
|
-
*/
|
|
627
|
-
async getSqlsource(a, t, e, n) {
|
|
628
|
-
const o = await r.getSqlsource(a, t, e, n), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.getSqlsource"]?.[s]?.url;
|
|
629
|
-
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
630
|
-
},
|
|
631
|
-
/**
|
|
632
|
-
* **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
633
|
-
* @summary Get SQL source (per-package, deprecated)
|
|
634
|
-
* @param {string} environmentName Name of the environment
|
|
635
|
-
* @param {string} packageName Name of the package whose connection context to use
|
|
636
|
-
* @param {string} connectionName Name of the connection
|
|
637
|
-
* @param {string} [sqlStatement] SQL statement
|
|
638
|
-
* @param {*} [options] Override http request option.
|
|
639
|
-
* @deprecated
|
|
640
|
-
* @throws {RequiredError}
|
|
641
|
-
*/
|
|
642
|
-
async getSqlsourceInPackage(a, t, e, n, o) {
|
|
643
|
-
const s = await r.getSqlsourceInPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getSqlsourceInPackage"]?.[c]?.url;
|
|
644
|
-
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
645
|
-
},
|
|
646
528
|
/**
|
|
647
529
|
* 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.
|
|
648
530
|
* @summary Get table details from database
|
|
@@ -653,9 +535,9 @@ const v = function(l, ...r) {
|
|
|
653
535
|
* @param {*} [options] Override http request option.
|
|
654
536
|
* @throws {RequiredError}
|
|
655
537
|
*/
|
|
656
|
-
async getTable(
|
|
657
|
-
const s = await r.getTable(
|
|
658
|
-
return (p,
|
|
538
|
+
async getTable(e, t, a, n, o) {
|
|
539
|
+
const s = await r.getTable(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.getTable"]?.[c]?.url;
|
|
540
|
+
return (p, m) => b(s, h, u, l)(p, i || m);
|
|
659
541
|
},
|
|
660
542
|
/**
|
|
661
543
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -668,38 +550,9 @@ const v = function(l, ...r) {
|
|
|
668
550
|
* @param {*} [options] Override http request option.
|
|
669
551
|
* @throws {RequiredError}
|
|
670
552
|
*/
|
|
671
|
-
async getTableInPackage(
|
|
672
|
-
const c = await r.getTableInPackage(
|
|
673
|
-
return (
|
|
674
|
-
},
|
|
675
|
-
/**
|
|
676
|
-
* **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.
|
|
677
|
-
* @summary Create temporary table (deprecated)
|
|
678
|
-
* @param {string} environmentName Name of the environment
|
|
679
|
-
* @param {string} connectionName Name of the connection
|
|
680
|
-
* @param {string} [sqlStatement] SQL statement
|
|
681
|
-
* @param {*} [options] Override http request option.
|
|
682
|
-
* @deprecated
|
|
683
|
-
* @throws {RequiredError}
|
|
684
|
-
*/
|
|
685
|
-
async getTemporarytable(a, t, e, n) {
|
|
686
|
-
const o = await r.getTemporarytable(a, t, e, n), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.getTemporarytable"]?.[s]?.url;
|
|
687
|
-
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
688
|
-
},
|
|
689
|
-
/**
|
|
690
|
-
* **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
691
|
-
* @summary Create temporary table (per-package, deprecated)
|
|
692
|
-
* @param {string} environmentName Name of the environment
|
|
693
|
-
* @param {string} packageName Name of the package whose connection context to use
|
|
694
|
-
* @param {string} connectionName Name of the connection
|
|
695
|
-
* @param {string} [sqlStatement] SQL statement
|
|
696
|
-
* @param {*} [options] Override http request option.
|
|
697
|
-
* @deprecated
|
|
698
|
-
* @throws {RequiredError}
|
|
699
|
-
*/
|
|
700
|
-
async getTemporarytableInPackage(a, t, e, n, o) {
|
|
701
|
-
const s = await r.getTemporarytableInPackage(a, t, e, n, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTemporarytableInPackage"]?.[c]?.url;
|
|
702
|
-
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
553
|
+
async getTableInPackage(e, t, a, n, o, s) {
|
|
554
|
+
const c = await r.getTableInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = V["ConnectionsApi.getTableInPackage"]?.[i]?.url;
|
|
555
|
+
return (m, P) => b(c, h, u, l)(m, p || P);
|
|
703
556
|
},
|
|
704
557
|
/**
|
|
705
558
|
* Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
|
|
@@ -708,9 +561,9 @@ const v = function(l, ...r) {
|
|
|
708
561
|
* @param {*} [options] Override http request option.
|
|
709
562
|
* @throws {RequiredError}
|
|
710
563
|
*/
|
|
711
|
-
async listConnections(
|
|
712
|
-
const
|
|
713
|
-
return (s, c) => b(
|
|
564
|
+
async listConnections(e, t) {
|
|
565
|
+
const a = await r.listConnections(e, t), n = l?.serverIndex ?? 0, o = V["ConnectionsApi.listConnections"]?.[n]?.url;
|
|
566
|
+
return (s, c) => b(a, h, u, l)(s, o || c);
|
|
714
567
|
},
|
|
715
568
|
/**
|
|
716
569
|
* 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.
|
|
@@ -720,8 +573,8 @@ const v = function(l, ...r) {
|
|
|
720
573
|
* @param {*} [options] Override http request option.
|
|
721
574
|
* @throws {RequiredError}
|
|
722
575
|
*/
|
|
723
|
-
async listSchemas(
|
|
724
|
-
const n = await r.listSchemas(
|
|
576
|
+
async listSchemas(e, t, a) {
|
|
577
|
+
const n = await r.listSchemas(e, t, a), o = l?.serverIndex ?? 0, s = V["ConnectionsApi.listSchemas"]?.[o]?.url;
|
|
725
578
|
return (c, i) => b(n, h, u, l)(c, s || i);
|
|
726
579
|
},
|
|
727
580
|
/**
|
|
@@ -733,8 +586,8 @@ const v = function(l, ...r) {
|
|
|
733
586
|
* @param {*} [options] Override http request option.
|
|
734
587
|
* @throws {RequiredError}
|
|
735
588
|
*/
|
|
736
|
-
async listSchemasInPackage(
|
|
737
|
-
const o = await r.listSchemasInPackage(
|
|
589
|
+
async listSchemasInPackage(e, t, a, n) {
|
|
590
|
+
const o = await r.listSchemasInPackage(e, t, a, n), s = l?.serverIndex ?? 0, c = V["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
|
|
738
591
|
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
739
592
|
},
|
|
740
593
|
/**
|
|
@@ -747,9 +600,9 @@ const v = function(l, ...r) {
|
|
|
747
600
|
* @param {*} [options] Override http request option.
|
|
748
601
|
* @throws {RequiredError}
|
|
749
602
|
*/
|
|
750
|
-
async listTables(
|
|
751
|
-
const s = await r.listTables(
|
|
752
|
-
return (p,
|
|
603
|
+
async listTables(e, t, a, n, o) {
|
|
604
|
+
const s = await r.listTables(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.listTables"]?.[c]?.url;
|
|
605
|
+
return (p, m) => b(s, h, u, l)(p, i || m);
|
|
753
606
|
},
|
|
754
607
|
/**
|
|
755
608
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -762,9 +615,9 @@ const v = function(l, ...r) {
|
|
|
762
615
|
* @param {*} [options] Override http request option.
|
|
763
616
|
* @throws {RequiredError}
|
|
764
617
|
*/
|
|
765
|
-
async listTablesInPackage(
|
|
766
|
-
const c = await r.listTablesInPackage(
|
|
767
|
-
return (
|
|
618
|
+
async listTablesInPackage(e, t, a, n, o, s) {
|
|
619
|
+
const c = await r.listTablesInPackage(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = V["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
|
|
620
|
+
return (m, P) => b(c, h, u, l)(m, p || P);
|
|
768
621
|
},
|
|
769
622
|
/**
|
|
770
623
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
|
|
@@ -772,13 +625,12 @@ const v = function(l, ...r) {
|
|
|
772
625
|
* @param {string} environmentName Name of the environment
|
|
773
626
|
* @param {string} connectionName Name of the connection
|
|
774
627
|
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
775
|
-
* @param {string} [_options] Options (deprecated; pass in body instead)
|
|
776
628
|
* @param {*} [options] Override http request option.
|
|
777
629
|
* @throws {RequiredError}
|
|
778
630
|
*/
|
|
779
|
-
async postQuerydata(
|
|
780
|
-
const
|
|
781
|
-
return (
|
|
631
|
+
async postQuerydata(e, t, a, n) {
|
|
632
|
+
const o = await r.postQuerydata(e, t, a, n), s = l?.serverIndex ?? 0, c = V["ConnectionsApi.postQuerydata"]?.[s]?.url;
|
|
633
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
782
634
|
},
|
|
783
635
|
/**
|
|
784
636
|
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results. Subject to the same PUBLISHER_MAX_QUERY_ROWS row cap as the environment-level sqlQuery endpoint.
|
|
@@ -787,13 +639,12 @@ const v = function(l, ...r) {
|
|
|
787
639
|
* @param {string} packageName Name of the package whose connection context to use
|
|
788
640
|
* @param {string} connectionName Name of the connection
|
|
789
641
|
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
790
|
-
* @param {string} [_options] Options (deprecated; pass in body instead)
|
|
791
642
|
* @param {*} [options] Override http request option.
|
|
792
643
|
* @throws {RequiredError}
|
|
793
644
|
*/
|
|
794
|
-
async postQuerydataInPackage(
|
|
795
|
-
const
|
|
796
|
-
return (
|
|
645
|
+
async postQuerydataInPackage(e, t, a, n, o) {
|
|
646
|
+
const s = await r.postQuerydataInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
|
|
647
|
+
return (p, m) => b(s, h, u, l)(p, i || m);
|
|
797
648
|
},
|
|
798
649
|
/**
|
|
799
650
|
* 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.
|
|
@@ -804,8 +655,8 @@ const v = function(l, ...r) {
|
|
|
804
655
|
* @param {*} [options] Override http request option.
|
|
805
656
|
* @throws {RequiredError}
|
|
806
657
|
*/
|
|
807
|
-
async postSqlsource(
|
|
808
|
-
const o = await r.postSqlsource(
|
|
658
|
+
async postSqlsource(e, t, a, n) {
|
|
659
|
+
const o = await r.postSqlsource(e, t, a, n), s = l?.serverIndex ?? 0, c = V["ConnectionsApi.postSqlsource"]?.[s]?.url;
|
|
809
660
|
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
810
661
|
},
|
|
811
662
|
/**
|
|
@@ -818,9 +669,9 @@ const v = function(l, ...r) {
|
|
|
818
669
|
* @param {*} [options] Override http request option.
|
|
819
670
|
* @throws {RequiredError}
|
|
820
671
|
*/
|
|
821
|
-
async postSqlsourceInPackage(
|
|
822
|
-
const s = await r.postSqlsourceInPackage(
|
|
823
|
-
return (p,
|
|
672
|
+
async postSqlsourceInPackage(e, t, a, n, o) {
|
|
673
|
+
const s = await r.postSqlsourceInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
|
|
674
|
+
return (p, m) => b(s, h, u, l)(p, i || m);
|
|
824
675
|
},
|
|
825
676
|
/**
|
|
826
677
|
* 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.
|
|
@@ -831,8 +682,8 @@ const v = function(l, ...r) {
|
|
|
831
682
|
* @param {*} [options] Override http request option.
|
|
832
683
|
* @throws {RequiredError}
|
|
833
684
|
*/
|
|
834
|
-
async postTemporarytable(
|
|
835
|
-
const o = await r.postTemporarytable(
|
|
685
|
+
async postTemporarytable(e, t, a, n) {
|
|
686
|
+
const o = await r.postTemporarytable(e, t, a, n), s = l?.serverIndex ?? 0, c = V["ConnectionsApi.postTemporarytable"]?.[s]?.url;
|
|
836
687
|
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
837
688
|
},
|
|
838
689
|
/**
|
|
@@ -845,9 +696,9 @@ const v = function(l, ...r) {
|
|
|
845
696
|
* @param {*} [options] Override http request option.
|
|
846
697
|
* @throws {RequiredError}
|
|
847
698
|
*/
|
|
848
|
-
async postTemporarytableInPackage(
|
|
849
|
-
const s = await r.postTemporarytableInPackage(
|
|
850
|
-
return (p,
|
|
699
|
+
async postTemporarytableInPackage(e, t, a, n, o) {
|
|
700
|
+
const s = await r.postTemporarytableInPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
|
|
701
|
+
return (p, m) => b(s, h, u, l)(p, i || m);
|
|
851
702
|
},
|
|
852
703
|
/**
|
|
853
704
|
* Updates the configuration of an existing database connection.
|
|
@@ -858,12 +709,12 @@ const v = function(l, ...r) {
|
|
|
858
709
|
* @param {*} [options] Override http request option.
|
|
859
710
|
* @throws {RequiredError}
|
|
860
711
|
*/
|
|
861
|
-
async updateConnection(
|
|
862
|
-
const o = await r.updateConnection(
|
|
712
|
+
async updateConnection(e, t, a, n) {
|
|
713
|
+
const o = await r.updateConnection(e, t, a, n), s = l?.serverIndex ?? 0, c = V["ConnectionsApi.updateConnection"]?.[s]?.url;
|
|
863
714
|
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
864
715
|
}
|
|
865
716
|
};
|
|
866
|
-
},
|
|
717
|
+
}, qe = function(l, r, e) {
|
|
867
718
|
const t = S(l);
|
|
868
719
|
return {
|
|
869
720
|
/**
|
|
@@ -875,8 +726,8 @@ const v = function(l, ...r) {
|
|
|
875
726
|
* @param {*} [options] Override http request option.
|
|
876
727
|
* @throws {RequiredError}
|
|
877
728
|
*/
|
|
878
|
-
createConnection(
|
|
879
|
-
return t.createConnection(
|
|
729
|
+
createConnection(a, n, o, s) {
|
|
730
|
+
return t.createConnection(a, n, o, s).then((c) => c(e, r));
|
|
880
731
|
},
|
|
881
732
|
/**
|
|
882
733
|
* Permanently deletes a database connection from the environment.
|
|
@@ -886,8 +737,8 @@ const v = function(l, ...r) {
|
|
|
886
737
|
* @param {*} [options] Override http request option.
|
|
887
738
|
* @throws {RequiredError}
|
|
888
739
|
*/
|
|
889
|
-
deleteConnection(
|
|
890
|
-
return t.deleteConnection(
|
|
740
|
+
deleteConnection(a, n, o) {
|
|
741
|
+
return t.deleteConnection(a, n, o).then((s) => s(e, r));
|
|
891
742
|
},
|
|
892
743
|
/**
|
|
893
744
|
* Retrieves detailed information about a specific database connection within an environment. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
@@ -897,35 +748,8 @@ const v = function(l, ...r) {
|
|
|
897
748
|
* @param {*} [options] Override http request option.
|
|
898
749
|
* @throws {RequiredError}
|
|
899
750
|
*/
|
|
900
|
-
getConnection(
|
|
901
|
-
return t.getConnection(
|
|
902
|
-
},
|
|
903
|
-
/**
|
|
904
|
-
* **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.
|
|
905
|
-
* @summary Get SQL source (deprecated)
|
|
906
|
-
* @param {string} environmentName Name of the environment
|
|
907
|
-
* @param {string} connectionName Name of the connection
|
|
908
|
-
* @param {string} [sqlStatement] SQL statement
|
|
909
|
-
* @param {*} [options] Override http request option.
|
|
910
|
-
* @deprecated
|
|
911
|
-
* @throws {RequiredError}
|
|
912
|
-
*/
|
|
913
|
-
getSqlsource(e, n, o, s) {
|
|
914
|
-
return t.getSqlsource(e, n, o, s).then((c) => c(a, r));
|
|
915
|
-
},
|
|
916
|
-
/**
|
|
917
|
-
* **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
918
|
-
* @summary Get SQL source (per-package, deprecated)
|
|
919
|
-
* @param {string} environmentName Name of the environment
|
|
920
|
-
* @param {string} packageName Name of the package whose connection context to use
|
|
921
|
-
* @param {string} connectionName Name of the connection
|
|
922
|
-
* @param {string} [sqlStatement] SQL statement
|
|
923
|
-
* @param {*} [options] Override http request option.
|
|
924
|
-
* @deprecated
|
|
925
|
-
* @throws {RequiredError}
|
|
926
|
-
*/
|
|
927
|
-
getSqlsourceInPackage(e, n, o, s, c) {
|
|
928
|
-
return t.getSqlsourceInPackage(e, n, o, s, c).then((i) => i(a, r));
|
|
751
|
+
getConnection(a, n, o) {
|
|
752
|
+
return t.getConnection(a, n, o).then((s) => s(e, r));
|
|
929
753
|
},
|
|
930
754
|
/**
|
|
931
755
|
* 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.
|
|
@@ -937,8 +761,8 @@ const v = function(l, ...r) {
|
|
|
937
761
|
* @param {*} [options] Override http request option.
|
|
938
762
|
* @throws {RequiredError}
|
|
939
763
|
*/
|
|
940
|
-
getTable(
|
|
941
|
-
return t.getTable(
|
|
764
|
+
getTable(a, n, o, s, c) {
|
|
765
|
+
return t.getTable(a, n, o, s, c).then((i) => i(e, r));
|
|
942
766
|
},
|
|
943
767
|
/**
|
|
944
768
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -951,35 +775,8 @@ const v = function(l, ...r) {
|
|
|
951
775
|
* @param {*} [options] Override http request option.
|
|
952
776
|
* @throws {RequiredError}
|
|
953
777
|
*/
|
|
954
|
-
getTableInPackage(
|
|
955
|
-
return t.getTableInPackage(
|
|
956
|
-
},
|
|
957
|
-
/**
|
|
958
|
-
* **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.
|
|
959
|
-
* @summary Create temporary table (deprecated)
|
|
960
|
-
* @param {string} environmentName Name of the environment
|
|
961
|
-
* @param {string} connectionName Name of the connection
|
|
962
|
-
* @param {string} [sqlStatement] SQL statement
|
|
963
|
-
* @param {*} [options] Override http request option.
|
|
964
|
-
* @deprecated
|
|
965
|
-
* @throws {RequiredError}
|
|
966
|
-
*/
|
|
967
|
-
getTemporarytable(e, n, o, s) {
|
|
968
|
-
return t.getTemporarytable(e, n, o, s).then((c) => c(a, r));
|
|
969
|
-
},
|
|
970
|
-
/**
|
|
971
|
-
* **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
972
|
-
* @summary Create temporary table (per-package, deprecated)
|
|
973
|
-
* @param {string} environmentName Name of the environment
|
|
974
|
-
* @param {string} packageName Name of the package whose connection context to use
|
|
975
|
-
* @param {string} connectionName Name of the connection
|
|
976
|
-
* @param {string} [sqlStatement] SQL statement
|
|
977
|
-
* @param {*} [options] Override http request option.
|
|
978
|
-
* @deprecated
|
|
979
|
-
* @throws {RequiredError}
|
|
980
|
-
*/
|
|
981
|
-
getTemporarytableInPackage(e, n, o, s, c) {
|
|
982
|
-
return t.getTemporarytableInPackage(e, n, o, s, c).then((i) => i(a, r));
|
|
778
|
+
getTableInPackage(a, n, o, s, c, i) {
|
|
779
|
+
return t.getTableInPackage(a, n, o, s, c, i).then((p) => p(e, r));
|
|
983
780
|
},
|
|
984
781
|
/**
|
|
985
782
|
* Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
|
|
@@ -988,8 +785,8 @@ const v = function(l, ...r) {
|
|
|
988
785
|
* @param {*} [options] Override http request option.
|
|
989
786
|
* @throws {RequiredError}
|
|
990
787
|
*/
|
|
991
|
-
listConnections(
|
|
992
|
-
return t.listConnections(
|
|
788
|
+
listConnections(a, n) {
|
|
789
|
+
return t.listConnections(a, n).then((o) => o(e, r));
|
|
993
790
|
},
|
|
994
791
|
/**
|
|
995
792
|
* 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.
|
|
@@ -999,8 +796,8 @@ const v = function(l, ...r) {
|
|
|
999
796
|
* @param {*} [options] Override http request option.
|
|
1000
797
|
* @throws {RequiredError}
|
|
1001
798
|
*/
|
|
1002
|
-
listSchemas(
|
|
1003
|
-
return t.listSchemas(
|
|
799
|
+
listSchemas(a, n, o) {
|
|
800
|
+
return t.listSchemas(a, n, o).then((s) => s(e, r));
|
|
1004
801
|
},
|
|
1005
802
|
/**
|
|
1006
803
|
* Retrieves a list of all schemas (databases) available in the specified connection, resolved in the context of the named package. Required for `connectionName=\"duckdb\"`, which is per-package; works for any other connection name as well (resolution falls through to the environment).
|
|
@@ -1011,8 +808,8 @@ const v = function(l, ...r) {
|
|
|
1011
808
|
* @param {*} [options] Override http request option.
|
|
1012
809
|
* @throws {RequiredError}
|
|
1013
810
|
*/
|
|
1014
|
-
listSchemasInPackage(
|
|
1015
|
-
return t.listSchemasInPackage(
|
|
811
|
+
listSchemasInPackage(a, n, o, s) {
|
|
812
|
+
return t.listSchemasInPackage(a, n, o, s).then((c) => c(e, r));
|
|
1016
813
|
},
|
|
1017
814
|
/**
|
|
1018
815
|
* 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.
|
|
@@ -1024,8 +821,8 @@ const v = function(l, ...r) {
|
|
|
1024
821
|
* @param {*} [options] Override http request option.
|
|
1025
822
|
* @throws {RequiredError}
|
|
1026
823
|
*/
|
|
1027
|
-
listTables(
|
|
1028
|
-
return t.listTables(
|
|
824
|
+
listTables(a, n, o, s, c) {
|
|
825
|
+
return t.listTables(a, n, o, s, c).then((i) => i(e, r));
|
|
1029
826
|
},
|
|
1030
827
|
/**
|
|
1031
828
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -1038,8 +835,8 @@ const v = function(l, ...r) {
|
|
|
1038
835
|
* @param {*} [options] Override http request option.
|
|
1039
836
|
* @throws {RequiredError}
|
|
1040
837
|
*/
|
|
1041
|
-
listTablesInPackage(
|
|
1042
|
-
return t.listTablesInPackage(
|
|
838
|
+
listTablesInPackage(a, n, o, s, c, i) {
|
|
839
|
+
return t.listTablesInPackage(a, n, o, s, c, i).then((p) => p(e, r));
|
|
1043
840
|
},
|
|
1044
841
|
/**
|
|
1045
842
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
|
|
@@ -1047,12 +844,11 @@ const v = function(l, ...r) {
|
|
|
1047
844
|
* @param {string} environmentName Name of the environment
|
|
1048
845
|
* @param {string} connectionName Name of the connection
|
|
1049
846
|
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
1050
|
-
* @param {string} [_options] Options (deprecated; pass in body instead)
|
|
1051
847
|
* @param {*} [options] Override http request option.
|
|
1052
848
|
* @throws {RequiredError}
|
|
1053
849
|
*/
|
|
1054
|
-
postQuerydata(
|
|
1055
|
-
return t.postQuerydata(
|
|
850
|
+
postQuerydata(a, n, o, s) {
|
|
851
|
+
return t.postQuerydata(a, n, o, s).then((c) => c(e, r));
|
|
1056
852
|
},
|
|
1057
853
|
/**
|
|
1058
854
|
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results. Subject to the same PUBLISHER_MAX_QUERY_ROWS row cap as the environment-level sqlQuery endpoint.
|
|
@@ -1061,12 +857,11 @@ const v = function(l, ...r) {
|
|
|
1061
857
|
* @param {string} packageName Name of the package whose connection context to use
|
|
1062
858
|
* @param {string} connectionName Name of the connection
|
|
1063
859
|
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
1064
|
-
* @param {string} [_options] Options (deprecated; pass in body instead)
|
|
1065
860
|
* @param {*} [options] Override http request option.
|
|
1066
861
|
* @throws {RequiredError}
|
|
1067
862
|
*/
|
|
1068
|
-
postQuerydataInPackage(
|
|
1069
|
-
return t.postQuerydataInPackage(
|
|
863
|
+
postQuerydataInPackage(a, n, o, s, c) {
|
|
864
|
+
return t.postQuerydataInPackage(a, n, o, s, c).then((i) => i(e, r));
|
|
1070
865
|
},
|
|
1071
866
|
/**
|
|
1072
867
|
* 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.
|
|
@@ -1077,8 +872,8 @@ const v = function(l, ...r) {
|
|
|
1077
872
|
* @param {*} [options] Override http request option.
|
|
1078
873
|
* @throws {RequiredError}
|
|
1079
874
|
*/
|
|
1080
|
-
postSqlsource(
|
|
1081
|
-
return t.postSqlsource(
|
|
875
|
+
postSqlsource(a, n, o, s) {
|
|
876
|
+
return t.postSqlsource(a, n, o, s).then((c) => c(e, r));
|
|
1082
877
|
},
|
|
1083
878
|
/**
|
|
1084
879
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -1090,8 +885,8 @@ const v = function(l, ...r) {
|
|
|
1090
885
|
* @param {*} [options] Override http request option.
|
|
1091
886
|
* @throws {RequiredError}
|
|
1092
887
|
*/
|
|
1093
|
-
postSqlsourceInPackage(
|
|
1094
|
-
return t.postSqlsourceInPackage(
|
|
888
|
+
postSqlsourceInPackage(a, n, o, s, c) {
|
|
889
|
+
return t.postSqlsourceInPackage(a, n, o, s, c).then((i) => i(e, r));
|
|
1095
890
|
},
|
|
1096
891
|
/**
|
|
1097
892
|
* 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.
|
|
@@ -1102,8 +897,8 @@ const v = function(l, ...r) {
|
|
|
1102
897
|
* @param {*} [options] Override http request option.
|
|
1103
898
|
* @throws {RequiredError}
|
|
1104
899
|
*/
|
|
1105
|
-
postTemporarytable(
|
|
1106
|
-
return t.postTemporarytable(
|
|
900
|
+
postTemporarytable(a, n, o, s) {
|
|
901
|
+
return t.postTemporarytable(a, n, o, s).then((c) => c(e, r));
|
|
1107
902
|
},
|
|
1108
903
|
/**
|
|
1109
904
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -1115,8 +910,8 @@ const v = function(l, ...r) {
|
|
|
1115
910
|
* @param {*} [options] Override http request option.
|
|
1116
911
|
* @throws {RequiredError}
|
|
1117
912
|
*/
|
|
1118
|
-
postTemporarytableInPackage(
|
|
1119
|
-
return t.postTemporarytableInPackage(
|
|
913
|
+
postTemporarytableInPackage(a, n, o, s, c) {
|
|
914
|
+
return t.postTemporarytableInPackage(a, n, o, s, c).then((i) => i(e, r));
|
|
1120
915
|
},
|
|
1121
916
|
/**
|
|
1122
917
|
* Updates the configuration of an existing database connection.
|
|
@@ -1127,12 +922,12 @@ const v = function(l, ...r) {
|
|
|
1127
922
|
* @param {*} [options] Override http request option.
|
|
1128
923
|
* @throws {RequiredError}
|
|
1129
924
|
*/
|
|
1130
|
-
updateConnection(
|
|
1131
|
-
return t.updateConnection(
|
|
925
|
+
updateConnection(a, n, o, s) {
|
|
926
|
+
return t.updateConnection(a, n, o, s).then((c) => c(e, r));
|
|
1132
927
|
}
|
|
1133
928
|
};
|
|
1134
929
|
};
|
|
1135
|
-
class
|
|
930
|
+
class J extends y {
|
|
1136
931
|
/**
|
|
1137
932
|
* Creates a new database connection in the specified environment.
|
|
1138
933
|
* @summary Create a new database connection
|
|
@@ -1143,8 +938,8 @@ class K extends k {
|
|
|
1143
938
|
* @throws {RequiredError}
|
|
1144
939
|
* @memberof ConnectionsApi
|
|
1145
940
|
*/
|
|
1146
|
-
createConnection(r,
|
|
1147
|
-
return S(this.configuration).createConnection(r,
|
|
941
|
+
createConnection(r, e, t, a) {
|
|
942
|
+
return S(this.configuration).createConnection(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
1148
943
|
}
|
|
1149
944
|
/**
|
|
1150
945
|
* Permanently deletes a database connection from the environment.
|
|
@@ -1155,8 +950,8 @@ class K extends k {
|
|
|
1155
950
|
* @throws {RequiredError}
|
|
1156
951
|
* @memberof ConnectionsApi
|
|
1157
952
|
*/
|
|
1158
|
-
deleteConnection(r,
|
|
1159
|
-
return S(this.configuration).deleteConnection(r,
|
|
953
|
+
deleteConnection(r, e, t) {
|
|
954
|
+
return S(this.configuration).deleteConnection(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
1160
955
|
}
|
|
1161
956
|
/**
|
|
1162
957
|
* Retrieves detailed information about a specific database connection within an environment. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
@@ -1167,37 +962,8 @@ class K extends k {
|
|
|
1167
962
|
* @throws {RequiredError}
|
|
1168
963
|
* @memberof ConnectionsApi
|
|
1169
964
|
*/
|
|
1170
|
-
getConnection(r,
|
|
1171
|
-
return S(this.configuration).getConnection(r,
|
|
1172
|
-
}
|
|
1173
|
-
/**
|
|
1174
|
-
* **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.
|
|
1175
|
-
* @summary Get SQL source (deprecated)
|
|
1176
|
-
* @param {string} environmentName Name of the environment
|
|
1177
|
-
* @param {string} connectionName Name of the connection
|
|
1178
|
-
* @param {string} [sqlStatement] SQL statement
|
|
1179
|
-
* @param {*} [options] Override http request option.
|
|
1180
|
-
* @deprecated
|
|
1181
|
-
* @throws {RequiredError}
|
|
1182
|
-
* @memberof ConnectionsApi
|
|
1183
|
-
*/
|
|
1184
|
-
getSqlsource(r, a, t, e) {
|
|
1185
|
-
return S(this.configuration).getSqlsource(r, a, t, e).then((n) => n(this.axios, this.basePath));
|
|
1186
|
-
}
|
|
1187
|
-
/**
|
|
1188
|
-
* **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
1189
|
-
* @summary Get SQL source (per-package, deprecated)
|
|
1190
|
-
* @param {string} environmentName Name of the environment
|
|
1191
|
-
* @param {string} packageName Name of the package whose connection context to use
|
|
1192
|
-
* @param {string} connectionName Name of the connection
|
|
1193
|
-
* @param {string} [sqlStatement] SQL statement
|
|
1194
|
-
* @param {*} [options] Override http request option.
|
|
1195
|
-
* @deprecated
|
|
1196
|
-
* @throws {RequiredError}
|
|
1197
|
-
* @memberof ConnectionsApi
|
|
1198
|
-
*/
|
|
1199
|
-
getSqlsourceInPackage(r, a, t, e, n) {
|
|
1200
|
-
return S(this.configuration).getSqlsourceInPackage(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
|
|
965
|
+
getConnection(r, e, t) {
|
|
966
|
+
return S(this.configuration).getConnection(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
1201
967
|
}
|
|
1202
968
|
/**
|
|
1203
969
|
* 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.
|
|
@@ -1210,8 +976,8 @@ class K extends k {
|
|
|
1210
976
|
* @throws {RequiredError}
|
|
1211
977
|
* @memberof ConnectionsApi
|
|
1212
978
|
*/
|
|
1213
|
-
getTable(r,
|
|
1214
|
-
return S(this.configuration).getTable(r,
|
|
979
|
+
getTable(r, e, t, a, n) {
|
|
980
|
+
return S(this.configuration).getTable(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
1215
981
|
}
|
|
1216
982
|
/**
|
|
1217
983
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -1225,37 +991,8 @@ class K extends k {
|
|
|
1225
991
|
* @throws {RequiredError}
|
|
1226
992
|
* @memberof ConnectionsApi
|
|
1227
993
|
*/
|
|
1228
|
-
getTableInPackage(r,
|
|
1229
|
-
return S(this.configuration).getTableInPackage(r,
|
|
1230
|
-
}
|
|
1231
|
-
/**
|
|
1232
|
-
* **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.
|
|
1233
|
-
* @summary Create temporary table (deprecated)
|
|
1234
|
-
* @param {string} environmentName Name of the environment
|
|
1235
|
-
* @param {string} connectionName Name of the connection
|
|
1236
|
-
* @param {string} [sqlStatement] SQL statement
|
|
1237
|
-
* @param {*} [options] Override http request option.
|
|
1238
|
-
* @deprecated
|
|
1239
|
-
* @throws {RequiredError}
|
|
1240
|
-
* @memberof ConnectionsApi
|
|
1241
|
-
*/
|
|
1242
|
-
getTemporarytable(r, a, t, e) {
|
|
1243
|
-
return S(this.configuration).getTemporarytable(r, a, t, e).then((n) => n(this.axios, this.basePath));
|
|
1244
|
-
}
|
|
1245
|
-
/**
|
|
1246
|
-
* **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
1247
|
-
* @summary Create temporary table (per-package, deprecated)
|
|
1248
|
-
* @param {string} environmentName Name of the environment
|
|
1249
|
-
* @param {string} packageName Name of the package whose connection context to use
|
|
1250
|
-
* @param {string} connectionName Name of the connection
|
|
1251
|
-
* @param {string} [sqlStatement] SQL statement
|
|
1252
|
-
* @param {*} [options] Override http request option.
|
|
1253
|
-
* @deprecated
|
|
1254
|
-
* @throws {RequiredError}
|
|
1255
|
-
* @memberof ConnectionsApi
|
|
1256
|
-
*/
|
|
1257
|
-
getTemporarytableInPackage(r, a, t, e, n) {
|
|
1258
|
-
return S(this.configuration).getTemporarytableInPackage(r, a, t, e, n).then((o) => o(this.axios, this.basePath));
|
|
994
|
+
getTableInPackage(r, e, t, a, n, o) {
|
|
995
|
+
return S(this.configuration).getTableInPackage(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
|
|
1259
996
|
}
|
|
1260
997
|
/**
|
|
1261
998
|
* Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
|
|
@@ -1265,8 +1002,8 @@ class K extends k {
|
|
|
1265
1002
|
* @throws {RequiredError}
|
|
1266
1003
|
* @memberof ConnectionsApi
|
|
1267
1004
|
*/
|
|
1268
|
-
listConnections(r,
|
|
1269
|
-
return S(this.configuration).listConnections(r,
|
|
1005
|
+
listConnections(r, e) {
|
|
1006
|
+
return S(this.configuration).listConnections(r, e).then((t) => t(this.axios, this.basePath));
|
|
1270
1007
|
}
|
|
1271
1008
|
/**
|
|
1272
1009
|
* 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.
|
|
@@ -1277,8 +1014,8 @@ class K extends k {
|
|
|
1277
1014
|
* @throws {RequiredError}
|
|
1278
1015
|
* @memberof ConnectionsApi
|
|
1279
1016
|
*/
|
|
1280
|
-
listSchemas(r,
|
|
1281
|
-
return S(this.configuration).listSchemas(r,
|
|
1017
|
+
listSchemas(r, e, t) {
|
|
1018
|
+
return S(this.configuration).listSchemas(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
1282
1019
|
}
|
|
1283
1020
|
/**
|
|
1284
1021
|
* Retrieves a list of all schemas (databases) available in the specified connection, resolved in the context of the named package. Required for `connectionName=\"duckdb\"`, which is per-package; works for any other connection name as well (resolution falls through to the environment).
|
|
@@ -1290,8 +1027,8 @@ class K extends k {
|
|
|
1290
1027
|
* @throws {RequiredError}
|
|
1291
1028
|
* @memberof ConnectionsApi
|
|
1292
1029
|
*/
|
|
1293
|
-
listSchemasInPackage(r,
|
|
1294
|
-
return S(this.configuration).listSchemasInPackage(r,
|
|
1030
|
+
listSchemasInPackage(r, e, t, a) {
|
|
1031
|
+
return S(this.configuration).listSchemasInPackage(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
1295
1032
|
}
|
|
1296
1033
|
/**
|
|
1297
1034
|
* 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.
|
|
@@ -1304,8 +1041,8 @@ class K extends k {
|
|
|
1304
1041
|
* @throws {RequiredError}
|
|
1305
1042
|
* @memberof ConnectionsApi
|
|
1306
1043
|
*/
|
|
1307
|
-
listTables(r,
|
|
1308
|
-
return S(this.configuration).listTables(r,
|
|
1044
|
+
listTables(r, e, t, a, n) {
|
|
1045
|
+
return S(this.configuration).listTables(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
1309
1046
|
}
|
|
1310
1047
|
/**
|
|
1311
1048
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -1319,8 +1056,8 @@ class K extends k {
|
|
|
1319
1056
|
* @throws {RequiredError}
|
|
1320
1057
|
* @memberof ConnectionsApi
|
|
1321
1058
|
*/
|
|
1322
|
-
listTablesInPackage(r,
|
|
1323
|
-
return S(this.configuration).listTablesInPackage(r,
|
|
1059
|
+
listTablesInPackage(r, e, t, a, n, o) {
|
|
1060
|
+
return S(this.configuration).listTablesInPackage(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
|
|
1324
1061
|
}
|
|
1325
1062
|
/**
|
|
1326
1063
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
|
|
@@ -1328,13 +1065,12 @@ class K extends k {
|
|
|
1328
1065
|
* @param {string} environmentName Name of the environment
|
|
1329
1066
|
* @param {string} connectionName Name of the connection
|
|
1330
1067
|
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
1331
|
-
* @param {string} [_options] Options (deprecated; pass in body instead)
|
|
1332
1068
|
* @param {*} [options] Override http request option.
|
|
1333
1069
|
* @throws {RequiredError}
|
|
1334
1070
|
* @memberof ConnectionsApi
|
|
1335
1071
|
*/
|
|
1336
|
-
postQuerydata(r,
|
|
1337
|
-
return S(this.configuration).postQuerydata(r,
|
|
1072
|
+
postQuerydata(r, e, t, a) {
|
|
1073
|
+
return S(this.configuration).postQuerydata(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
1338
1074
|
}
|
|
1339
1075
|
/**
|
|
1340
1076
|
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results. Subject to the same PUBLISHER_MAX_QUERY_ROWS row cap as the environment-level sqlQuery endpoint.
|
|
@@ -1343,13 +1079,12 @@ class K extends k {
|
|
|
1343
1079
|
* @param {string} packageName Name of the package whose connection context to use
|
|
1344
1080
|
* @param {string} connectionName Name of the connection
|
|
1345
1081
|
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
1346
|
-
* @param {string} [_options] Options (deprecated; pass in body instead)
|
|
1347
1082
|
* @param {*} [options] Override http request option.
|
|
1348
1083
|
* @throws {RequiredError}
|
|
1349
1084
|
* @memberof ConnectionsApi
|
|
1350
1085
|
*/
|
|
1351
|
-
postQuerydataInPackage(r,
|
|
1352
|
-
return S(this.configuration).postQuerydataInPackage(r,
|
|
1086
|
+
postQuerydataInPackage(r, e, t, a, n) {
|
|
1087
|
+
return S(this.configuration).postQuerydataInPackage(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
1353
1088
|
}
|
|
1354
1089
|
/**
|
|
1355
1090
|
* 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.
|
|
@@ -1361,8 +1096,8 @@ class K extends k {
|
|
|
1361
1096
|
* @throws {RequiredError}
|
|
1362
1097
|
* @memberof ConnectionsApi
|
|
1363
1098
|
*/
|
|
1364
|
-
postSqlsource(r,
|
|
1365
|
-
return S(this.configuration).postSqlsource(r,
|
|
1099
|
+
postSqlsource(r, e, t, a) {
|
|
1100
|
+
return S(this.configuration).postSqlsource(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
1366
1101
|
}
|
|
1367
1102
|
/**
|
|
1368
1103
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -1375,8 +1110,8 @@ class K extends k {
|
|
|
1375
1110
|
* @throws {RequiredError}
|
|
1376
1111
|
* @memberof ConnectionsApi
|
|
1377
1112
|
*/
|
|
1378
|
-
postSqlsourceInPackage(r,
|
|
1379
|
-
return S(this.configuration).postSqlsourceInPackage(r,
|
|
1113
|
+
postSqlsourceInPackage(r, e, t, a, n) {
|
|
1114
|
+
return S(this.configuration).postSqlsourceInPackage(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
1380
1115
|
}
|
|
1381
1116
|
/**
|
|
1382
1117
|
* 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.
|
|
@@ -1388,8 +1123,8 @@ class K extends k {
|
|
|
1388
1123
|
* @throws {RequiredError}
|
|
1389
1124
|
* @memberof ConnectionsApi
|
|
1390
1125
|
*/
|
|
1391
|
-
postTemporarytable(r,
|
|
1392
|
-
return S(this.configuration).postTemporarytable(r,
|
|
1126
|
+
postTemporarytable(r, e, t, a) {
|
|
1127
|
+
return S(this.configuration).postTemporarytable(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
1393
1128
|
}
|
|
1394
1129
|
/**
|
|
1395
1130
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -1402,8 +1137,8 @@ class K extends k {
|
|
|
1402
1137
|
* @throws {RequiredError}
|
|
1403
1138
|
* @memberof ConnectionsApi
|
|
1404
1139
|
*/
|
|
1405
|
-
postTemporarytableInPackage(r,
|
|
1406
|
-
return S(this.configuration).postTemporarytableInPackage(r,
|
|
1140
|
+
postTemporarytableInPackage(r, e, t, a, n) {
|
|
1141
|
+
return S(this.configuration).postTemporarytableInPackage(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
1407
1142
|
}
|
|
1408
1143
|
/**
|
|
1409
1144
|
* Updates the configuration of an existing database connection.
|
|
@@ -1415,11 +1150,11 @@ class K extends k {
|
|
|
1415
1150
|
* @throws {RequiredError}
|
|
1416
1151
|
* @memberof ConnectionsApi
|
|
1417
1152
|
*/
|
|
1418
|
-
updateConnection(r,
|
|
1419
|
-
return S(this.configuration).updateConnection(r,
|
|
1153
|
+
updateConnection(r, e, t, a) {
|
|
1154
|
+
return S(this.configuration).updateConnection(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
1420
1155
|
}
|
|
1421
1156
|
}
|
|
1422
|
-
const
|
|
1157
|
+
const K = function(l) {
|
|
1423
1158
|
return {
|
|
1424
1159
|
/**
|
|
1425
1160
|
* Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
@@ -1428,22 +1163,22 @@ const Y = function(l) {
|
|
|
1428
1163
|
* @param {*} [options] Override http request option.
|
|
1429
1164
|
* @throws {RequiredError}
|
|
1430
1165
|
*/
|
|
1431
|
-
testConnectionConfiguration: async (r,
|
|
1432
|
-
|
|
1433
|
-
const t = "/connections/test",
|
|
1166
|
+
testConnectionConfiguration: async (r, e = {}) => {
|
|
1167
|
+
d("testConnectionConfiguration", "connection", r);
|
|
1168
|
+
const t = "/connections/test", a = new URL(t, g);
|
|
1434
1169
|
let n;
|
|
1435
1170
|
l && (n = l.baseOptions);
|
|
1436
|
-
const o = { method: "POST", ...n, ...
|
|
1437
|
-
s["Content-Type"] = "application/json", v(
|
|
1171
|
+
const o = { method: "POST", ...n, ...e }, s = {}, c = {};
|
|
1172
|
+
s["Content-Type"] = "application/json", v(a, c);
|
|
1438
1173
|
let i = n && n.headers ? n.headers : {};
|
|
1439
|
-
return o.headers = { ...s, ...i, ...
|
|
1440
|
-
url: O(
|
|
1174
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = I(r, o, l), {
|
|
1175
|
+
url: O(a),
|
|
1441
1176
|
options: o
|
|
1442
1177
|
};
|
|
1443
1178
|
}
|
|
1444
1179
|
};
|
|
1445
1180
|
}, B = function(l) {
|
|
1446
|
-
const r =
|
|
1181
|
+
const r = K(l);
|
|
1447
1182
|
return {
|
|
1448
1183
|
/**
|
|
1449
1184
|
* Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
@@ -1452,12 +1187,12 @@ const Y = function(l) {
|
|
|
1452
1187
|
* @param {*} [options] Override http request option.
|
|
1453
1188
|
* @throws {RequiredError}
|
|
1454
1189
|
*/
|
|
1455
|
-
async testConnectionConfiguration(
|
|
1456
|
-
const
|
|
1457
|
-
return (s, c) => b(
|
|
1190
|
+
async testConnectionConfiguration(e, t) {
|
|
1191
|
+
const a = await r.testConnectionConfiguration(e, t), n = l?.serverIndex ?? 0, o = V["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;
|
|
1192
|
+
return (s, c) => b(a, h, u, l)(s, o || c);
|
|
1458
1193
|
}
|
|
1459
1194
|
};
|
|
1460
|
-
},
|
|
1195
|
+
}, Fe = function(l, r, e) {
|
|
1461
1196
|
const t = B(l);
|
|
1462
1197
|
return {
|
|
1463
1198
|
/**
|
|
@@ -1467,12 +1202,12 @@ const Y = function(l) {
|
|
|
1467
1202
|
* @param {*} [options] Override http request option.
|
|
1468
1203
|
* @throws {RequiredError}
|
|
1469
1204
|
*/
|
|
1470
|
-
testConnectionConfiguration(
|
|
1471
|
-
return t.testConnectionConfiguration(
|
|
1205
|
+
testConnectionConfiguration(a, n) {
|
|
1206
|
+
return t.testConnectionConfiguration(a, n).then((o) => o(e, r));
|
|
1472
1207
|
}
|
|
1473
1208
|
};
|
|
1474
1209
|
};
|
|
1475
|
-
class
|
|
1210
|
+
class ze extends y {
|
|
1476
1211
|
/**
|
|
1477
1212
|
* Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
1478
1213
|
* @summary Test database connection configuration
|
|
@@ -1481,8 +1216,8 @@ class Be extends k {
|
|
|
1481
1216
|
* @throws {RequiredError}
|
|
1482
1217
|
* @memberof ConnectionsTestApi
|
|
1483
1218
|
*/
|
|
1484
|
-
testConnectionConfiguration(r,
|
|
1485
|
-
return B(this.configuration).testConnectionConfiguration(r,
|
|
1219
|
+
testConnectionConfiguration(r, e) {
|
|
1220
|
+
return B(this.configuration).testConnectionConfiguration(r, e).then((t) => t(this.axios, this.basePath));
|
|
1486
1221
|
}
|
|
1487
1222
|
}
|
|
1488
1223
|
const X = function(l) {
|
|
@@ -1496,21 +1231,21 @@ const X = function(l) {
|
|
|
1496
1231
|
* @param {*} [options] Override http request option.
|
|
1497
1232
|
* @throws {RequiredError}
|
|
1498
1233
|
*/
|
|
1499
|
-
listDatabases: async (r,
|
|
1500
|
-
|
|
1501
|
-
const n = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
1234
|
+
listDatabases: async (r, e, t, a = {}) => {
|
|
1235
|
+
d("listDatabases", "environmentName", r), d("listDatabases", "packageName", e);
|
|
1236
|
+
const n = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, g);
|
|
1502
1237
|
let s;
|
|
1503
1238
|
l && (s = l.baseOptions);
|
|
1504
|
-
const c = { method: "GET", ...s, ...
|
|
1239
|
+
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
1505
1240
|
t !== void 0 && (p.versionId = t), v(o, p);
|
|
1506
|
-
let
|
|
1507
|
-
return c.headers = { ...i, ...
|
|
1241
|
+
let m = s && s.headers ? s.headers : {};
|
|
1242
|
+
return c.headers = { ...i, ...m, ...a.headers }, {
|
|
1508
1243
|
url: O(o),
|
|
1509
1244
|
options: c
|
|
1510
1245
|
};
|
|
1511
1246
|
}
|
|
1512
1247
|
};
|
|
1513
|
-
},
|
|
1248
|
+
}, q = function(l) {
|
|
1514
1249
|
const r = X(l);
|
|
1515
1250
|
return {
|
|
1516
1251
|
/**
|
|
@@ -1522,13 +1257,13 @@ const X = function(l) {
|
|
|
1522
1257
|
* @param {*} [options] Override http request option.
|
|
1523
1258
|
* @throws {RequiredError}
|
|
1524
1259
|
*/
|
|
1525
|
-
async listDatabases(
|
|
1526
|
-
const o = await r.listDatabases(
|
|
1260
|
+
async listDatabases(e, t, a, n) {
|
|
1261
|
+
const o = await r.listDatabases(e, t, a, n), s = l?.serverIndex ?? 0, c = V["DatabasesApi.listDatabases"]?.[s]?.url;
|
|
1527
1262
|
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
1528
1263
|
}
|
|
1529
1264
|
};
|
|
1530
|
-
},
|
|
1531
|
-
const t =
|
|
1265
|
+
}, je = function(l, r, e) {
|
|
1266
|
+
const t = q(l);
|
|
1532
1267
|
return {
|
|
1533
1268
|
/**
|
|
1534
1269
|
* 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.
|
|
@@ -1539,12 +1274,12 @@ const X = function(l) {
|
|
|
1539
1274
|
* @param {*} [options] Override http request option.
|
|
1540
1275
|
* @throws {RequiredError}
|
|
1541
1276
|
*/
|
|
1542
|
-
listDatabases(
|
|
1543
|
-
return t.listDatabases(
|
|
1277
|
+
listDatabases(a, n, o, s) {
|
|
1278
|
+
return t.listDatabases(a, n, o, s).then((c) => c(e, r));
|
|
1544
1279
|
}
|
|
1545
1280
|
};
|
|
1546
1281
|
};
|
|
1547
|
-
class Z extends
|
|
1282
|
+
class Z extends y {
|
|
1548
1283
|
/**
|
|
1549
1284
|
* 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.
|
|
1550
1285
|
* @summary List embedded databases
|
|
@@ -1555,8 +1290,8 @@ class Z extends k {
|
|
|
1555
1290
|
* @throws {RequiredError}
|
|
1556
1291
|
* @memberof DatabasesApi
|
|
1557
1292
|
*/
|
|
1558
|
-
listDatabases(r,
|
|
1559
|
-
return
|
|
1293
|
+
listDatabases(r, e, t, a) {
|
|
1294
|
+
return q(this.configuration).listDatabases(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
1560
1295
|
}
|
|
1561
1296
|
}
|
|
1562
1297
|
const ee = function(l) {
|
|
@@ -1568,16 +1303,16 @@ const ee = function(l) {
|
|
|
1568
1303
|
* @param {*} [options] Override http request option.
|
|
1569
1304
|
* @throws {RequiredError}
|
|
1570
1305
|
*/
|
|
1571
|
-
createEnvironment: async (r,
|
|
1572
|
-
|
|
1573
|
-
const t = "/environments",
|
|
1306
|
+
createEnvironment: async (r, e = {}) => {
|
|
1307
|
+
d("createEnvironment", "environment", r);
|
|
1308
|
+
const t = "/environments", a = new URL(t, g);
|
|
1574
1309
|
let n;
|
|
1575
1310
|
l && (n = l.baseOptions);
|
|
1576
|
-
const o = { method: "POST", ...n, ...
|
|
1577
|
-
s["Content-Type"] = "application/json", v(
|
|
1311
|
+
const o = { method: "POST", ...n, ...e }, s = {}, c = {};
|
|
1312
|
+
s["Content-Type"] = "application/json", v(a, c);
|
|
1578
1313
|
let i = n && n.headers ? n.headers : {};
|
|
1579
|
-
return o.headers = { ...s, ...i, ...
|
|
1580
|
-
url: O(
|
|
1314
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = I(r, o, l), {
|
|
1315
|
+
url: O(a),
|
|
1581
1316
|
options: o
|
|
1582
1317
|
};
|
|
1583
1318
|
},
|
|
@@ -1588,16 +1323,16 @@ const ee = function(l) {
|
|
|
1588
1323
|
* @param {*} [options] Override http request option.
|
|
1589
1324
|
* @throws {RequiredError}
|
|
1590
1325
|
*/
|
|
1591
|
-
deleteEnvironment: async (r,
|
|
1592
|
-
|
|
1593
|
-
const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))),
|
|
1326
|
+
deleteEnvironment: async (r, e = {}) => {
|
|
1327
|
+
d("deleteEnvironment", "environmentName", r);
|
|
1328
|
+
const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, g);
|
|
1594
1329
|
let n;
|
|
1595
1330
|
l && (n = l.baseOptions);
|
|
1596
|
-
const o = { method: "DELETE", ...n, ...
|
|
1597
|
-
v(
|
|
1331
|
+
const o = { method: "DELETE", ...n, ...e }, s = {};
|
|
1332
|
+
v(a, {});
|
|
1598
1333
|
let i = n && n.headers ? n.headers : {};
|
|
1599
|
-
return o.headers = { ...s, ...i, ...
|
|
1600
|
-
url: O(
|
|
1334
|
+
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
1335
|
+
url: O(a),
|
|
1601
1336
|
options: o
|
|
1602
1337
|
};
|
|
1603
1338
|
},
|
|
@@ -1609,13 +1344,13 @@ const ee = function(l) {
|
|
|
1609
1344
|
* @param {*} [options] Override http request option.
|
|
1610
1345
|
* @throws {RequiredError}
|
|
1611
1346
|
*/
|
|
1612
|
-
getEnvironment: async (r,
|
|
1613
|
-
|
|
1614
|
-
const
|
|
1347
|
+
getEnvironment: async (r, e, t = {}) => {
|
|
1348
|
+
d("getEnvironment", "environmentName", r);
|
|
1349
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, g);
|
|
1615
1350
|
let o;
|
|
1616
1351
|
l && (o = l.baseOptions);
|
|
1617
1352
|
const s = { method: "GET", ...o, ...t }, c = {}, i = {};
|
|
1618
|
-
|
|
1353
|
+
e !== void 0 && (i.reload = e), v(n, i);
|
|
1619
1354
|
let p = o && o.headers ? o.headers : {};
|
|
1620
1355
|
return s.headers = { ...c, ...p, ...t.headers }, {
|
|
1621
1356
|
url: O(n),
|
|
@@ -1629,12 +1364,12 @@ const ee = function(l) {
|
|
|
1629
1364
|
* @throws {RequiredError}
|
|
1630
1365
|
*/
|
|
1631
1366
|
listEnvironments: async (r = {}) => {
|
|
1632
|
-
const
|
|
1633
|
-
let
|
|
1634
|
-
l && (
|
|
1635
|
-
const n = { method: "GET", ...
|
|
1367
|
+
const e = "/environments", t = new URL(e, g);
|
|
1368
|
+
let a;
|
|
1369
|
+
l && (a = l.baseOptions);
|
|
1370
|
+
const n = { method: "GET", ...a, ...r }, o = {};
|
|
1636
1371
|
v(t, {});
|
|
1637
|
-
let c =
|
|
1372
|
+
let c = a && a.headers ? a.headers : {};
|
|
1638
1373
|
return n.headers = { ...o, ...c, ...r.headers }, {
|
|
1639
1374
|
url: O(t),
|
|
1640
1375
|
options: n
|
|
@@ -1648,15 +1383,15 @@ const ee = function(l) {
|
|
|
1648
1383
|
* @param {*} [options] Override http request option.
|
|
1649
1384
|
* @throws {RequiredError}
|
|
1650
1385
|
*/
|
|
1651
|
-
updateEnvironment: async (r,
|
|
1652
|
-
|
|
1653
|
-
const
|
|
1386
|
+
updateEnvironment: async (r, e, t = {}) => {
|
|
1387
|
+
d("updateEnvironment", "environmentName", r), d("updateEnvironment", "environment", e);
|
|
1388
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, g);
|
|
1654
1389
|
let o;
|
|
1655
1390
|
l && (o = l.baseOptions);
|
|
1656
1391
|
const s = { method: "PATCH", ...o, ...t }, c = {}, i = {};
|
|
1657
1392
|
c["Content-Type"] = "application/json", v(n, i);
|
|
1658
1393
|
let p = o && o.headers ? o.headers : {};
|
|
1659
|
-
return s.headers = { ...c, ...p, ...t.headers }, s.data = I(
|
|
1394
|
+
return s.headers = { ...c, ...p, ...t.headers }, s.data = I(e, s, l), {
|
|
1660
1395
|
url: O(n),
|
|
1661
1396
|
options: s
|
|
1662
1397
|
};
|
|
@@ -1672,9 +1407,9 @@ const ee = function(l) {
|
|
|
1672
1407
|
* @param {*} [options] Override http request option.
|
|
1673
1408
|
* @throws {RequiredError}
|
|
1674
1409
|
*/
|
|
1675
|
-
async createEnvironment(
|
|
1676
|
-
const
|
|
1677
|
-
return (s, c) => b(
|
|
1410
|
+
async createEnvironment(e, t) {
|
|
1411
|
+
const a = await r.createEnvironment(e, t), n = l?.serverIndex ?? 0, o = V["EnvironmentsApi.createEnvironment"]?.[n]?.url;
|
|
1412
|
+
return (s, c) => b(a, h, u, l)(s, o || c);
|
|
1678
1413
|
},
|
|
1679
1414
|
/**
|
|
1680
1415
|
* Permanently deletes an environment and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The environment must exist and be accessible for deletion.
|
|
@@ -1683,9 +1418,9 @@ const ee = function(l) {
|
|
|
1683
1418
|
* @param {*} [options] Override http request option.
|
|
1684
1419
|
* @throws {RequiredError}
|
|
1685
1420
|
*/
|
|
1686
|
-
async deleteEnvironment(
|
|
1687
|
-
const
|
|
1688
|
-
return (s, c) => b(
|
|
1421
|
+
async deleteEnvironment(e, t) {
|
|
1422
|
+
const a = await r.deleteEnvironment(e, t), n = l?.serverIndex ?? 0, o = V["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;
|
|
1423
|
+
return (s, c) => b(a, h, u, l)(s, o || c);
|
|
1689
1424
|
},
|
|
1690
1425
|
/**
|
|
1691
1426
|
* Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
|
|
@@ -1695,8 +1430,8 @@ const ee = function(l) {
|
|
|
1695
1430
|
* @param {*} [options] Override http request option.
|
|
1696
1431
|
* @throws {RequiredError}
|
|
1697
1432
|
*/
|
|
1698
|
-
async getEnvironment(
|
|
1699
|
-
const n = await r.getEnvironment(
|
|
1433
|
+
async getEnvironment(e, t, a) {
|
|
1434
|
+
const n = await r.getEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = V["EnvironmentsApi.getEnvironment"]?.[o]?.url;
|
|
1700
1435
|
return (c, i) => b(n, h, u, l)(c, s || i);
|
|
1701
1436
|
},
|
|
1702
1437
|
/**
|
|
@@ -1705,8 +1440,8 @@ const ee = function(l) {
|
|
|
1705
1440
|
* @param {*} [options] Override http request option.
|
|
1706
1441
|
* @throws {RequiredError}
|
|
1707
1442
|
*/
|
|
1708
|
-
async listEnvironments(
|
|
1709
|
-
const t = await r.listEnvironments(
|
|
1443
|
+
async listEnvironments(e) {
|
|
1444
|
+
const t = await r.listEnvironments(e), a = l?.serverIndex ?? 0, n = V["EnvironmentsApi.listEnvironments"]?.[a]?.url;
|
|
1710
1445
|
return (o, s) => b(t, h, u, l)(o, n || s);
|
|
1711
1446
|
},
|
|
1712
1447
|
/**
|
|
@@ -1717,12 +1452,12 @@ const ee = function(l) {
|
|
|
1717
1452
|
* @param {*} [options] Override http request option.
|
|
1718
1453
|
* @throws {RequiredError}
|
|
1719
1454
|
*/
|
|
1720
|
-
async updateEnvironment(
|
|
1721
|
-
const n = await r.updateEnvironment(
|
|
1455
|
+
async updateEnvironment(e, t, a) {
|
|
1456
|
+
const n = await r.updateEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = V["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
|
|
1722
1457
|
return (c, i) => b(n, h, u, l)(c, s || i);
|
|
1723
1458
|
}
|
|
1724
1459
|
};
|
|
1725
|
-
},
|
|
1460
|
+
}, Le = function(l, r, e) {
|
|
1726
1461
|
const t = x(l);
|
|
1727
1462
|
return {
|
|
1728
1463
|
/**
|
|
@@ -1732,8 +1467,8 @@ const ee = function(l) {
|
|
|
1732
1467
|
* @param {*} [options] Override http request option.
|
|
1733
1468
|
* @throws {RequiredError}
|
|
1734
1469
|
*/
|
|
1735
|
-
createEnvironment(
|
|
1736
|
-
return t.createEnvironment(
|
|
1470
|
+
createEnvironment(a, n) {
|
|
1471
|
+
return t.createEnvironment(a, n).then((o) => o(e, r));
|
|
1737
1472
|
},
|
|
1738
1473
|
/**
|
|
1739
1474
|
* Permanently deletes an environment and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The environment must exist and be accessible for deletion.
|
|
@@ -1742,8 +1477,8 @@ const ee = function(l) {
|
|
|
1742
1477
|
* @param {*} [options] Override http request option.
|
|
1743
1478
|
* @throws {RequiredError}
|
|
1744
1479
|
*/
|
|
1745
|
-
deleteEnvironment(
|
|
1746
|
-
return t.deleteEnvironment(
|
|
1480
|
+
deleteEnvironment(a, n) {
|
|
1481
|
+
return t.deleteEnvironment(a, n).then((o) => o(e, r));
|
|
1747
1482
|
},
|
|
1748
1483
|
/**
|
|
1749
1484
|
* Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
|
|
@@ -1753,8 +1488,8 @@ const ee = function(l) {
|
|
|
1753
1488
|
* @param {*} [options] Override http request option.
|
|
1754
1489
|
* @throws {RequiredError}
|
|
1755
1490
|
*/
|
|
1756
|
-
getEnvironment(
|
|
1757
|
-
return t.getEnvironment(
|
|
1491
|
+
getEnvironment(a, n, o) {
|
|
1492
|
+
return t.getEnvironment(a, n, o).then((s) => s(e, r));
|
|
1758
1493
|
},
|
|
1759
1494
|
/**
|
|
1760
1495
|
* Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information.
|
|
@@ -1762,8 +1497,8 @@ const ee = function(l) {
|
|
|
1762
1497
|
* @param {*} [options] Override http request option.
|
|
1763
1498
|
* @throws {RequiredError}
|
|
1764
1499
|
*/
|
|
1765
|
-
listEnvironments(
|
|
1766
|
-
return t.listEnvironments(
|
|
1500
|
+
listEnvironments(a) {
|
|
1501
|
+
return t.listEnvironments(a).then((n) => n(e, r));
|
|
1767
1502
|
},
|
|
1768
1503
|
/**
|
|
1769
1504
|
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
|
|
@@ -1773,12 +1508,12 @@ const ee = function(l) {
|
|
|
1773
1508
|
* @param {*} [options] Override http request option.
|
|
1774
1509
|
* @throws {RequiredError}
|
|
1775
1510
|
*/
|
|
1776
|
-
updateEnvironment(
|
|
1777
|
-
return t.updateEnvironment(
|
|
1511
|
+
updateEnvironment(a, n, o) {
|
|
1512
|
+
return t.updateEnvironment(a, n, o).then((s) => s(e, r));
|
|
1778
1513
|
}
|
|
1779
1514
|
};
|
|
1780
1515
|
};
|
|
1781
|
-
class ae extends
|
|
1516
|
+
class ae extends y {
|
|
1782
1517
|
/**
|
|
1783
1518
|
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
1784
1519
|
* @summary Create a new environment
|
|
@@ -1787,8 +1522,8 @@ class ae extends k {
|
|
|
1787
1522
|
* @throws {RequiredError}
|
|
1788
1523
|
* @memberof EnvironmentsApi
|
|
1789
1524
|
*/
|
|
1790
|
-
createEnvironment(r,
|
|
1791
|
-
return x(this.configuration).createEnvironment(r,
|
|
1525
|
+
createEnvironment(r, e) {
|
|
1526
|
+
return x(this.configuration).createEnvironment(r, e).then((t) => t(this.axios, this.basePath));
|
|
1792
1527
|
}
|
|
1793
1528
|
/**
|
|
1794
1529
|
* Permanently deletes an environment and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The environment must exist and be accessible for deletion.
|
|
@@ -1798,8 +1533,8 @@ class ae extends k {
|
|
|
1798
1533
|
* @throws {RequiredError}
|
|
1799
1534
|
* @memberof EnvironmentsApi
|
|
1800
1535
|
*/
|
|
1801
|
-
deleteEnvironment(r,
|
|
1802
|
-
return x(this.configuration).deleteEnvironment(r,
|
|
1536
|
+
deleteEnvironment(r, e) {
|
|
1537
|
+
return x(this.configuration).deleteEnvironment(r, e).then((t) => t(this.axios, this.basePath));
|
|
1803
1538
|
}
|
|
1804
1539
|
/**
|
|
1805
1540
|
* Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
|
|
@@ -1810,8 +1545,8 @@ class ae extends k {
|
|
|
1810
1545
|
* @throws {RequiredError}
|
|
1811
1546
|
* @memberof EnvironmentsApi
|
|
1812
1547
|
*/
|
|
1813
|
-
getEnvironment(r,
|
|
1814
|
-
return x(this.configuration).getEnvironment(r,
|
|
1548
|
+
getEnvironment(r, e, t) {
|
|
1549
|
+
return x(this.configuration).getEnvironment(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
1815
1550
|
}
|
|
1816
1551
|
/**
|
|
1817
1552
|
* Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information.
|
|
@@ -1821,7 +1556,7 @@ class ae extends k {
|
|
|
1821
1556
|
* @memberof EnvironmentsApi
|
|
1822
1557
|
*/
|
|
1823
1558
|
listEnvironments(r) {
|
|
1824
|
-
return x(this.configuration).listEnvironments(r).then((
|
|
1559
|
+
return x(this.configuration).listEnvironments(r).then((e) => e(this.axios, this.basePath));
|
|
1825
1560
|
}
|
|
1826
1561
|
/**
|
|
1827
1562
|
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
|
|
@@ -1832,186 +1567,55 @@ class ae extends k {
|
|
|
1832
1567
|
* @throws {RequiredError}
|
|
1833
1568
|
* @memberof EnvironmentsApi
|
|
1834
1569
|
*/
|
|
1835
|
-
updateEnvironment(r,
|
|
1836
|
-
return x(this.configuration).updateEnvironment(r,
|
|
1570
|
+
updateEnvironment(r, e, t) {
|
|
1571
|
+
return x(this.configuration).updateEnvironment(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
1837
1572
|
}
|
|
1838
1573
|
}
|
|
1839
1574
|
const te = function(l) {
|
|
1840
1575
|
return {
|
|
1841
1576
|
/**
|
|
1842
|
-
*
|
|
1843
|
-
* @summary
|
|
1844
|
-
* @param {string} environmentName Name of the environment
|
|
1845
|
-
* @param {string} packageName Name of the package
|
|
1846
|
-
* @param {*} [options] Override http request option.
|
|
1847
|
-
* @throws {RequiredError}
|
|
1848
|
-
*/
|
|
1849
|
-
getManifest: async (r, a, t = {}) => {
|
|
1850
|
-
m("getManifest", "environmentName", r), m("getManifest", "packageName", a);
|
|
1851
|
-
const e = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), n = new URL(e, V);
|
|
1852
|
-
let o;
|
|
1853
|
-
l && (o = l.baseOptions);
|
|
1854
|
-
const s = { method: "GET", ...o, ...t }, c = {};
|
|
1855
|
-
v(n, {});
|
|
1856
|
-
let p = o && o.headers ? o.headers : {};
|
|
1857
|
-
return s.headers = { ...c, ...p, ...t.headers }, {
|
|
1858
|
-
url: O(n),
|
|
1859
|
-
options: s
|
|
1860
|
-
};
|
|
1861
|
-
},
|
|
1862
|
-
/**
|
|
1863
|
-
* 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.
|
|
1864
|
-
* @summary Perform an action on the package manifest
|
|
1865
|
-
* @param {string} environmentName Name of the environment
|
|
1866
|
-
* @param {string} packageName Name of the package
|
|
1867
|
-
* @param {ManifestActionActionEnum} action Action to perform on the manifest
|
|
1868
|
-
* @param {*} [options] Override http request option.
|
|
1869
|
-
* @throws {RequiredError}
|
|
1870
|
-
*/
|
|
1871
|
-
manifestAction: async (r, a, t, e = {}) => {
|
|
1872
|
-
m("manifestAction", "environmentName", r), m("manifestAction", "packageName", a), m("manifestAction", "action", t);
|
|
1873
|
-
const n = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(n, V);
|
|
1874
|
-
let s;
|
|
1875
|
-
l && (s = l.baseOptions);
|
|
1876
|
-
const c = { method: "POST", ...s, ...e }, i = {}, p = {};
|
|
1877
|
-
t !== void 0 && (p.action = t), v(o, p);
|
|
1878
|
-
let d = s && s.headers ? s.headers : {};
|
|
1879
|
-
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
1880
|
-
url: O(o),
|
|
1881
|
-
options: c
|
|
1882
|
-
};
|
|
1883
|
-
}
|
|
1884
|
-
};
|
|
1885
|
-
}, q = function(l) {
|
|
1886
|
-
const r = te(l);
|
|
1887
|
-
return {
|
|
1888
|
-
/**
|
|
1889
|
-
* Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
|
|
1890
|
-
* @summary Get the build manifest for a package
|
|
1891
|
-
* @param {string} environmentName Name of the environment
|
|
1892
|
-
* @param {string} packageName Name of the package
|
|
1893
|
-
* @param {*} [options] Override http request option.
|
|
1894
|
-
* @throws {RequiredError}
|
|
1895
|
-
*/
|
|
1896
|
-
async getManifest(a, t, e) {
|
|
1897
|
-
const n = await r.getManifest(a, t, e), o = l?.serverIndex ?? 0, s = g["ManifestsApi.getManifest"]?.[o]?.url;
|
|
1898
|
-
return (c, i) => b(n, h, u, l)(c, s || i);
|
|
1899
|
-
},
|
|
1900
|
-
/**
|
|
1901
|
-
* 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.
|
|
1902
|
-
* @summary Perform an action on the package manifest
|
|
1903
|
-
* @param {string} environmentName Name of the environment
|
|
1904
|
-
* @param {string} packageName Name of the package
|
|
1905
|
-
* @param {ManifestActionActionEnum} action Action to perform on the manifest
|
|
1906
|
-
* @param {*} [options] Override http request option.
|
|
1907
|
-
* @throws {RequiredError}
|
|
1908
|
-
*/
|
|
1909
|
-
async manifestAction(a, t, e, n) {
|
|
1910
|
-
const o = await r.manifestAction(a, t, e, n), s = l?.serverIndex ?? 0, c = g["ManifestsApi.manifestAction"]?.[s]?.url;
|
|
1911
|
-
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
1912
|
-
}
|
|
1913
|
-
};
|
|
1914
|
-
}, je = function(l, r, a) {
|
|
1915
|
-
const t = q(l);
|
|
1916
|
-
return {
|
|
1917
|
-
/**
|
|
1918
|
-
* Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
|
|
1919
|
-
* @summary Get the build manifest for a package
|
|
1920
|
-
* @param {string} environmentName Name of the environment
|
|
1921
|
-
* @param {string} packageName Name of the package
|
|
1922
|
-
* @param {*} [options] Override http request option.
|
|
1923
|
-
* @throws {RequiredError}
|
|
1924
|
-
*/
|
|
1925
|
-
getManifest(e, n, o) {
|
|
1926
|
-
return t.getManifest(e, n, o).then((s) => s(a, r));
|
|
1927
|
-
},
|
|
1928
|
-
/**
|
|
1929
|
-
* 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.
|
|
1930
|
-
* @summary Perform an action on the package manifest
|
|
1931
|
-
* @param {string} environmentName Name of the environment
|
|
1932
|
-
* @param {string} packageName Name of the package
|
|
1933
|
-
* @param {ManifestActionActionEnum} action Action to perform on the manifest
|
|
1934
|
-
* @param {*} [options] Override http request option.
|
|
1935
|
-
* @throws {RequiredError}
|
|
1936
|
-
*/
|
|
1937
|
-
manifestAction(e, n, o, s) {
|
|
1938
|
-
return t.manifestAction(e, n, o, s).then((c) => c(a, r));
|
|
1939
|
-
}
|
|
1940
|
-
};
|
|
1941
|
-
};
|
|
1942
|
-
class ne extends k {
|
|
1943
|
-
/**
|
|
1944
|
-
* Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
|
|
1945
|
-
* @summary Get the build manifest for a package
|
|
1946
|
-
* @param {string} environmentName Name of the environment
|
|
1947
|
-
* @param {string} packageName Name of the package
|
|
1948
|
-
* @param {*} [options] Override http request option.
|
|
1949
|
-
* @throws {RequiredError}
|
|
1950
|
-
* @memberof ManifestsApi
|
|
1951
|
-
*/
|
|
1952
|
-
getManifest(r, a, t) {
|
|
1953
|
-
return q(this.configuration).getManifest(r, a, t).then((e) => e(this.axios, this.basePath));
|
|
1954
|
-
}
|
|
1955
|
-
/**
|
|
1956
|
-
* 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.
|
|
1957
|
-
* @summary Perform an action on the package manifest
|
|
1958
|
-
* @param {string} environmentName Name of the environment
|
|
1959
|
-
* @param {string} packageName Name of the package
|
|
1960
|
-
* @param {ManifestActionActionEnum} action Action to perform on the manifest
|
|
1961
|
-
* @param {*} [options] Override http request option.
|
|
1962
|
-
* @throws {RequiredError}
|
|
1963
|
-
* @memberof ManifestsApi
|
|
1964
|
-
*/
|
|
1965
|
-
manifestAction(r, a, t, e) {
|
|
1966
|
-
return q(this.configuration).manifestAction(r, a, t, e).then((n) => n(this.axios, this.basePath));
|
|
1967
|
-
}
|
|
1968
|
-
}
|
|
1969
|
-
const Le = {
|
|
1970
|
-
Reload: "reload"
|
|
1971
|
-
}, re = function(l) {
|
|
1972
|
-
return {
|
|
1973
|
-
/**
|
|
1974
|
-
* 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.
|
|
1975
|
-
* @summary Create a materialization
|
|
1577
|
+
* Starts Round 1 of the two-round build protocol: asynchronously compiles the package, computes a build plan (per-source buildId, output columns, dependency/column lineage, connection capability), and pauses at BUILD_PLAN_READY without writing any tables. The control plane then issues Round 2 via POST .../materializations/{materializationId}?action=build with build instructions.
|
|
1578
|
+
* @summary Create a materialization (Round 1)
|
|
1976
1579
|
* @param {string} environmentName Name of the environment
|
|
1977
1580
|
* @param {string} packageName Name of the package
|
|
1978
1581
|
* @param {CreateMaterializationRequest} [createMaterializationRequest]
|
|
1979
1582
|
* @param {*} [options] Override http request option.
|
|
1980
1583
|
* @throws {RequiredError}
|
|
1981
1584
|
*/
|
|
1982
|
-
createMaterialization: async (r,
|
|
1983
|
-
|
|
1984
|
-
const n = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
1585
|
+
createMaterialization: async (r, e, t, a = {}) => {
|
|
1586
|
+
d("createMaterialization", "environmentName", r), d("createMaterialization", "packageName", e);
|
|
1587
|
+
const n = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, g);
|
|
1985
1588
|
let s;
|
|
1986
1589
|
l && (s = l.baseOptions);
|
|
1987
|
-
const c = { method: "POST", ...s, ...
|
|
1590
|
+
const c = { method: "POST", ...s, ...a }, i = {}, p = {};
|
|
1988
1591
|
i["Content-Type"] = "application/json", v(o, p);
|
|
1989
|
-
let
|
|
1990
|
-
return c.headers = { ...i, ...
|
|
1592
|
+
let m = s && s.headers ? s.headers : {};
|
|
1593
|
+
return c.headers = { ...i, ...m, ...a.headers }, c.data = I(t, c, l), {
|
|
1991
1594
|
url: O(o),
|
|
1992
1595
|
options: c
|
|
1993
1596
|
};
|
|
1994
1597
|
},
|
|
1995
1598
|
/**
|
|
1996
|
-
* Deletes a terminal (
|
|
1599
|
+
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the control plane owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
|
|
1997
1600
|
* @summary Delete a materialization
|
|
1998
1601
|
* @param {string} environmentName Name of the environment
|
|
1999
1602
|
* @param {string} packageName Name of the package
|
|
2000
1603
|
* @param {string} materializationId ID of the materialization
|
|
1604
|
+
* @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the control plane owns table GC).
|
|
2001
1605
|
* @param {*} [options] Override http request option.
|
|
2002
1606
|
* @throws {RequiredError}
|
|
2003
1607
|
*/
|
|
2004
|
-
deleteMaterialization: async (r,
|
|
2005
|
-
|
|
2006
|
-
const
|
|
2007
|
-
let
|
|
2008
|
-
l && (
|
|
2009
|
-
const
|
|
2010
|
-
v(
|
|
2011
|
-
let
|
|
2012
|
-
return
|
|
2013
|
-
url: O(
|
|
2014
|
-
options:
|
|
1608
|
+
deleteMaterialization: async (r, e, t, a, n = {}) => {
|
|
1609
|
+
d("deleteMaterialization", "environmentName", r), d("deleteMaterialization", "packageName", e), d("deleteMaterialization", "materializationId", t);
|
|
1610
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, g);
|
|
1611
|
+
let c;
|
|
1612
|
+
l && (c = l.baseOptions);
|
|
1613
|
+
const i = { method: "DELETE", ...c, ...n }, p = {}, m = {};
|
|
1614
|
+
a !== void 0 && (m.dropTables = a), v(s, m);
|
|
1615
|
+
let P = c && c.headers ? c.headers : {};
|
|
1616
|
+
return i.headers = { ...p, ...P, ...n.headers }, {
|
|
1617
|
+
url: O(s),
|
|
1618
|
+
options: i
|
|
2015
1619
|
};
|
|
2016
1620
|
},
|
|
2017
1621
|
/**
|
|
@@ -2023,15 +1627,15 @@ const Le = {
|
|
|
2023
1627
|
* @param {*} [options] Override http request option.
|
|
2024
1628
|
* @throws {RequiredError}
|
|
2025
1629
|
*/
|
|
2026
|
-
getMaterialization: async (r,
|
|
2027
|
-
|
|
2028
|
-
const n = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
1630
|
+
getMaterialization: async (r, e, t, a = {}) => {
|
|
1631
|
+
d("getMaterialization", "environmentName", r), d("getMaterialization", "packageName", e), d("getMaterialization", "materializationId", t);
|
|
1632
|
+
const n = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(n, g);
|
|
2029
1633
|
let s;
|
|
2030
1634
|
l && (s = l.baseOptions);
|
|
2031
|
-
const c = { method: "GET", ...s, ...
|
|
1635
|
+
const c = { method: "GET", ...s, ...a }, i = {};
|
|
2032
1636
|
v(o, {});
|
|
2033
|
-
let
|
|
2034
|
-
return c.headers = { ...i, ...
|
|
1637
|
+
let m = s && s.headers ? s.headers : {};
|
|
1638
|
+
return c.headers = { ...i, ...m, ...a.headers }, {
|
|
2035
1639
|
url: O(o),
|
|
2036
1640
|
options: c
|
|
2037
1641
|
};
|
|
@@ -2046,13 +1650,13 @@ const Le = {
|
|
|
2046
1650
|
* @param {*} [options] Override http request option.
|
|
2047
1651
|
* @throws {RequiredError}
|
|
2048
1652
|
*/
|
|
2049
|
-
listMaterializations: async (r,
|
|
2050
|
-
|
|
2051
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
1653
|
+
listMaterializations: async (r, e, t, a, n = {}) => {
|
|
1654
|
+
d("listMaterializations", "environmentName", r), d("listMaterializations", "packageName", e);
|
|
1655
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, g);
|
|
2052
1656
|
let c;
|
|
2053
1657
|
l && (c = l.baseOptions);
|
|
2054
|
-
const i = { method: "GET", ...c, ...n }, p = {},
|
|
2055
|
-
t !== void 0 && (
|
|
1658
|
+
const i = { method: "GET", ...c, ...n }, p = {}, m = {};
|
|
1659
|
+
t !== void 0 && (m.limit = t), a !== void 0 && (m.offset = a), v(s, m);
|
|
2056
1660
|
let P = c && c.headers ? c.headers : {};
|
|
2057
1661
|
return i.headers = { ...p, ...P, ...n.headers }, {
|
|
2058
1662
|
url: O(s),
|
|
@@ -2060,57 +1664,59 @@ const Le = {
|
|
|
2060
1664
|
};
|
|
2061
1665
|
},
|
|
2062
1666
|
/**
|
|
2063
|
-
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `
|
|
1667
|
+
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `build` - Round 2. Provide BuildInstructions (CP-assigned table id, physical table name, and realization per source). Builds only the instructed sources into the exact names provided and assembles the manifest. Valid only when the materialization is at BUILD_PLAN_READY. Returns 202. * `stop` - Cancels a PENDING, BUILD_PLAN_READY, or building materialization. Returns 200.
|
|
2064
1668
|
* @summary Perform an action on a materialization
|
|
2065
1669
|
* @param {string} environmentName Name of the environment
|
|
2066
1670
|
* @param {string} packageName Name of the package
|
|
2067
1671
|
* @param {string} materializationId ID of the materialization
|
|
2068
1672
|
* @param {MaterializationActionActionEnum} action Action to perform on the materialization
|
|
1673
|
+
* @param {BuildInstructions} [buildInstructions]
|
|
2069
1674
|
* @param {*} [options] Override http request option.
|
|
2070
1675
|
* @throws {RequiredError}
|
|
2071
1676
|
*/
|
|
2072
|
-
materializationAction: async (r,
|
|
2073
|
-
|
|
2074
|
-
const
|
|
2075
|
-
let
|
|
2076
|
-
l && (
|
|
2077
|
-
const
|
|
2078
|
-
|
|
2079
|
-
let
|
|
2080
|
-
return
|
|
2081
|
-
url: O(
|
|
2082
|
-
options:
|
|
1677
|
+
materializationAction: async (r, e, t, a, n, o = {}) => {
|
|
1678
|
+
d("materializationAction", "environmentName", r), d("materializationAction", "packageName", e), d("materializationAction", "materializationId", t), d("materializationAction", "action", a);
|
|
1679
|
+
const s = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), c = new URL(s, g);
|
|
1680
|
+
let i;
|
|
1681
|
+
l && (i = l.baseOptions);
|
|
1682
|
+
const p = { method: "POST", ...i, ...o }, m = {}, P = {};
|
|
1683
|
+
a !== void 0 && (P.action = a), m["Content-Type"] = "application/json", v(c, P);
|
|
1684
|
+
let k = i && i.headers ? i.headers : {};
|
|
1685
|
+
return p.headers = { ...m, ...k, ...o.headers }, p.data = I(n, p, l), {
|
|
1686
|
+
url: O(c),
|
|
1687
|
+
options: p
|
|
2083
1688
|
};
|
|
2084
1689
|
}
|
|
2085
1690
|
};
|
|
2086
1691
|
}, N = function(l) {
|
|
2087
|
-
const r =
|
|
1692
|
+
const r = te(l);
|
|
2088
1693
|
return {
|
|
2089
1694
|
/**
|
|
2090
|
-
*
|
|
2091
|
-
* @summary Create a materialization
|
|
1695
|
+
* Starts Round 1 of the two-round build protocol: asynchronously compiles the package, computes a build plan (per-source buildId, output columns, dependency/column lineage, connection capability), and pauses at BUILD_PLAN_READY without writing any tables. The control plane then issues Round 2 via POST .../materializations/{materializationId}?action=build with build instructions.
|
|
1696
|
+
* @summary Create a materialization (Round 1)
|
|
2092
1697
|
* @param {string} environmentName Name of the environment
|
|
2093
1698
|
* @param {string} packageName Name of the package
|
|
2094
1699
|
* @param {CreateMaterializationRequest} [createMaterializationRequest]
|
|
2095
1700
|
* @param {*} [options] Override http request option.
|
|
2096
1701
|
* @throws {RequiredError}
|
|
2097
1702
|
*/
|
|
2098
|
-
async createMaterialization(
|
|
2099
|
-
const o = await r.createMaterialization(
|
|
1703
|
+
async createMaterialization(e, t, a, n) {
|
|
1704
|
+
const o = await r.createMaterialization(e, t, a, n), s = l?.serverIndex ?? 0, c = V["MaterializationsApi.createMaterialization"]?.[s]?.url;
|
|
2100
1705
|
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
2101
1706
|
},
|
|
2102
1707
|
/**
|
|
2103
|
-
* Deletes a terminal (
|
|
1708
|
+
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the control plane owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
|
|
2104
1709
|
* @summary Delete a materialization
|
|
2105
1710
|
* @param {string} environmentName Name of the environment
|
|
2106
1711
|
* @param {string} packageName Name of the package
|
|
2107
1712
|
* @param {string} materializationId ID of the materialization
|
|
1713
|
+
* @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the control plane owns table GC).
|
|
2108
1714
|
* @param {*} [options] Override http request option.
|
|
2109
1715
|
* @throws {RequiredError}
|
|
2110
1716
|
*/
|
|
2111
|
-
async deleteMaterialization(
|
|
2112
|
-
const
|
|
2113
|
-
return (
|
|
1717
|
+
async deleteMaterialization(e, t, a, n, o) {
|
|
1718
|
+
const s = await r.deleteMaterialization(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
|
|
1719
|
+
return (p, m) => b(s, h, u, l)(p, i || m);
|
|
2114
1720
|
},
|
|
2115
1721
|
/**
|
|
2116
1722
|
*
|
|
@@ -2121,8 +1727,8 @@ const Le = {
|
|
|
2121
1727
|
* @param {*} [options] Override http request option.
|
|
2122
1728
|
* @throws {RequiredError}
|
|
2123
1729
|
*/
|
|
2124
|
-
async getMaterialization(
|
|
2125
|
-
const o = await r.getMaterialization(
|
|
1730
|
+
async getMaterialization(e, t, a, n) {
|
|
1731
|
+
const o = await r.getMaterialization(e, t, a, n), s = l?.serverIndex ?? 0, c = V["MaterializationsApi.getMaterialization"]?.[s]?.url;
|
|
2126
1732
|
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
2127
1733
|
},
|
|
2128
1734
|
/**
|
|
@@ -2135,51 +1741,53 @@ const Le = {
|
|
|
2135
1741
|
* @param {*} [options] Override http request option.
|
|
2136
1742
|
* @throws {RequiredError}
|
|
2137
1743
|
*/
|
|
2138
|
-
async listMaterializations(
|
|
2139
|
-
const s = await r.listMaterializations(
|
|
2140
|
-
return (p,
|
|
1744
|
+
async listMaterializations(e, t, a, n, o) {
|
|
1745
|
+
const s = await r.listMaterializations(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["MaterializationsApi.listMaterializations"]?.[c]?.url;
|
|
1746
|
+
return (p, m) => b(s, h, u, l)(p, i || m);
|
|
2141
1747
|
},
|
|
2142
1748
|
/**
|
|
2143
|
-
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `
|
|
1749
|
+
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `build` - Round 2. Provide BuildInstructions (CP-assigned table id, physical table name, and realization per source). Builds only the instructed sources into the exact names provided and assembles the manifest. Valid only when the materialization is at BUILD_PLAN_READY. Returns 202. * `stop` - Cancels a PENDING, BUILD_PLAN_READY, or building materialization. Returns 200.
|
|
2144
1750
|
* @summary Perform an action on a materialization
|
|
2145
1751
|
* @param {string} environmentName Name of the environment
|
|
2146
1752
|
* @param {string} packageName Name of the package
|
|
2147
1753
|
* @param {string} materializationId ID of the materialization
|
|
2148
1754
|
* @param {MaterializationActionActionEnum} action Action to perform on the materialization
|
|
1755
|
+
* @param {BuildInstructions} [buildInstructions]
|
|
2149
1756
|
* @param {*} [options] Override http request option.
|
|
2150
1757
|
* @throws {RequiredError}
|
|
2151
1758
|
*/
|
|
2152
|
-
async materializationAction(
|
|
2153
|
-
const
|
|
2154
|
-
return (
|
|
1759
|
+
async materializationAction(e, t, a, n, o, s) {
|
|
1760
|
+
const c = await r.materializationAction(e, t, a, n, o, s), i = l?.serverIndex ?? 0, p = V["MaterializationsApi.materializationAction"]?.[i]?.url;
|
|
1761
|
+
return (m, P) => b(c, h, u, l)(m, p || P);
|
|
2155
1762
|
}
|
|
2156
1763
|
};
|
|
2157
|
-
}, He = function(l, r,
|
|
1764
|
+
}, He = function(l, r, e) {
|
|
2158
1765
|
const t = N(l);
|
|
2159
1766
|
return {
|
|
2160
1767
|
/**
|
|
2161
|
-
*
|
|
2162
|
-
* @summary Create a materialization
|
|
1768
|
+
* Starts Round 1 of the two-round build protocol: asynchronously compiles the package, computes a build plan (per-source buildId, output columns, dependency/column lineage, connection capability), and pauses at BUILD_PLAN_READY without writing any tables. The control plane then issues Round 2 via POST .../materializations/{materializationId}?action=build with build instructions.
|
|
1769
|
+
* @summary Create a materialization (Round 1)
|
|
2163
1770
|
* @param {string} environmentName Name of the environment
|
|
2164
1771
|
* @param {string} packageName Name of the package
|
|
2165
1772
|
* @param {CreateMaterializationRequest} [createMaterializationRequest]
|
|
2166
1773
|
* @param {*} [options] Override http request option.
|
|
2167
1774
|
* @throws {RequiredError}
|
|
2168
1775
|
*/
|
|
2169
|
-
createMaterialization(
|
|
2170
|
-
return t.createMaterialization(
|
|
1776
|
+
createMaterialization(a, n, o, s) {
|
|
1777
|
+
return t.createMaterialization(a, n, o, s).then((c) => c(e, r));
|
|
2171
1778
|
},
|
|
2172
1779
|
/**
|
|
2173
|
-
* Deletes a terminal (
|
|
1780
|
+
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the control plane owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
|
|
2174
1781
|
* @summary Delete a materialization
|
|
2175
1782
|
* @param {string} environmentName Name of the environment
|
|
2176
1783
|
* @param {string} packageName Name of the package
|
|
2177
1784
|
* @param {string} materializationId ID of the materialization
|
|
1785
|
+
* @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the control plane owns table GC).
|
|
2178
1786
|
* @param {*} [options] Override http request option.
|
|
2179
1787
|
* @throws {RequiredError}
|
|
2180
1788
|
*/
|
|
2181
|
-
deleteMaterialization(
|
|
2182
|
-
return t.deleteMaterialization(
|
|
1789
|
+
deleteMaterialization(a, n, o, s, c) {
|
|
1790
|
+
return t.deleteMaterialization(a, n, o, s, c).then((i) => i(e, r));
|
|
2183
1791
|
},
|
|
2184
1792
|
/**
|
|
2185
1793
|
*
|
|
@@ -2190,8 +1798,8 @@ const Le = {
|
|
|
2190
1798
|
* @param {*} [options] Override http request option.
|
|
2191
1799
|
* @throws {RequiredError}
|
|
2192
1800
|
*/
|
|
2193
|
-
getMaterialization(
|
|
2194
|
-
return t.getMaterialization(
|
|
1801
|
+
getMaterialization(a, n, o, s) {
|
|
1802
|
+
return t.getMaterialization(a, n, o, s).then((c) => c(e, r));
|
|
2195
1803
|
},
|
|
2196
1804
|
/**
|
|
2197
1805
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2203,28 +1811,29 @@ const Le = {
|
|
|
2203
1811
|
* @param {*} [options] Override http request option.
|
|
2204
1812
|
* @throws {RequiredError}
|
|
2205
1813
|
*/
|
|
2206
|
-
listMaterializations(
|
|
2207
|
-
return t.listMaterializations(
|
|
1814
|
+
listMaterializations(a, n, o, s, c) {
|
|
1815
|
+
return t.listMaterializations(a, n, o, s, c).then((i) => i(e, r));
|
|
2208
1816
|
},
|
|
2209
1817
|
/**
|
|
2210
|
-
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `
|
|
1818
|
+
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `build` - Round 2. Provide BuildInstructions (CP-assigned table id, physical table name, and realization per source). Builds only the instructed sources into the exact names provided and assembles the manifest. Valid only when the materialization is at BUILD_PLAN_READY. Returns 202. * `stop` - Cancels a PENDING, BUILD_PLAN_READY, or building materialization. Returns 200.
|
|
2211
1819
|
* @summary Perform an action on a materialization
|
|
2212
1820
|
* @param {string} environmentName Name of the environment
|
|
2213
1821
|
* @param {string} packageName Name of the package
|
|
2214
1822
|
* @param {string} materializationId ID of the materialization
|
|
2215
1823
|
* @param {MaterializationActionActionEnum} action Action to perform on the materialization
|
|
1824
|
+
* @param {BuildInstructions} [buildInstructions]
|
|
2216
1825
|
* @param {*} [options] Override http request option.
|
|
2217
1826
|
* @throws {RequiredError}
|
|
2218
1827
|
*/
|
|
2219
|
-
materializationAction(
|
|
2220
|
-
return t.materializationAction(
|
|
1828
|
+
materializationAction(a, n, o, s, c, i) {
|
|
1829
|
+
return t.materializationAction(a, n, o, s, c, i).then((p) => p(e, r));
|
|
2221
1830
|
}
|
|
2222
1831
|
};
|
|
2223
1832
|
};
|
|
2224
|
-
class
|
|
1833
|
+
class ne extends y {
|
|
2225
1834
|
/**
|
|
2226
|
-
*
|
|
2227
|
-
* @summary Create a materialization
|
|
1835
|
+
* Starts Round 1 of the two-round build protocol: asynchronously compiles the package, computes a build plan (per-source buildId, output columns, dependency/column lineage, connection capability), and pauses at BUILD_PLAN_READY without writing any tables. The control plane then issues Round 2 via POST .../materializations/{materializationId}?action=build with build instructions.
|
|
1836
|
+
* @summary Create a materialization (Round 1)
|
|
2228
1837
|
* @param {string} environmentName Name of the environment
|
|
2229
1838
|
* @param {string} packageName Name of the package
|
|
2230
1839
|
* @param {CreateMaterializationRequest} [createMaterializationRequest]
|
|
@@ -2232,21 +1841,22 @@ class oe extends k {
|
|
|
2232
1841
|
* @throws {RequiredError}
|
|
2233
1842
|
* @memberof MaterializationsApi
|
|
2234
1843
|
*/
|
|
2235
|
-
createMaterialization(r,
|
|
2236
|
-
return N(this.configuration).createMaterialization(r,
|
|
1844
|
+
createMaterialization(r, e, t, a) {
|
|
1845
|
+
return N(this.configuration).createMaterialization(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
2237
1846
|
}
|
|
2238
1847
|
/**
|
|
2239
|
-
* Deletes a terminal (
|
|
1848
|
+
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the control plane owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
|
|
2240
1849
|
* @summary Delete a materialization
|
|
2241
1850
|
* @param {string} environmentName Name of the environment
|
|
2242
1851
|
* @param {string} packageName Name of the package
|
|
2243
1852
|
* @param {string} materializationId ID of the materialization
|
|
1853
|
+
* @param {boolean} [dropTables] When true, also drop the physical tables recorded in the materialization\'s manifest before deleting the record. Defaults to false (record-only delete; the control plane owns table GC).
|
|
2244
1854
|
* @param {*} [options] Override http request option.
|
|
2245
1855
|
* @throws {RequiredError}
|
|
2246
1856
|
* @memberof MaterializationsApi
|
|
2247
1857
|
*/
|
|
2248
|
-
deleteMaterialization(r,
|
|
2249
|
-
return N(this.configuration).deleteMaterialization(r,
|
|
1858
|
+
deleteMaterialization(r, e, t, a, n) {
|
|
1859
|
+
return N(this.configuration).deleteMaterialization(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
2250
1860
|
}
|
|
2251
1861
|
/**
|
|
2252
1862
|
*
|
|
@@ -2258,8 +1868,8 @@ class oe extends k {
|
|
|
2258
1868
|
* @throws {RequiredError}
|
|
2259
1869
|
* @memberof MaterializationsApi
|
|
2260
1870
|
*/
|
|
2261
|
-
getMaterialization(r,
|
|
2262
|
-
return N(this.configuration).getMaterialization(r,
|
|
1871
|
+
getMaterialization(r, e, t, a) {
|
|
1872
|
+
return N(this.configuration).getMaterialization(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
2263
1873
|
}
|
|
2264
1874
|
/**
|
|
2265
1875
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2272,28 +1882,29 @@ class oe extends k {
|
|
|
2272
1882
|
* @throws {RequiredError}
|
|
2273
1883
|
* @memberof MaterializationsApi
|
|
2274
1884
|
*/
|
|
2275
|
-
listMaterializations(r,
|
|
2276
|
-
return N(this.configuration).listMaterializations(r,
|
|
1885
|
+
listMaterializations(r, e, t, a, n) {
|
|
1886
|
+
return N(this.configuration).listMaterializations(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
2277
1887
|
}
|
|
2278
1888
|
/**
|
|
2279
|
-
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `
|
|
1889
|
+
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `build` - Round 2. Provide BuildInstructions (CP-assigned table id, physical table name, and realization per source). Builds only the instructed sources into the exact names provided and assembles the manifest. Valid only when the materialization is at BUILD_PLAN_READY. Returns 202. * `stop` - Cancels a PENDING, BUILD_PLAN_READY, or building materialization. Returns 200.
|
|
2280
1890
|
* @summary Perform an action on a materialization
|
|
2281
1891
|
* @param {string} environmentName Name of the environment
|
|
2282
1892
|
* @param {string} packageName Name of the package
|
|
2283
1893
|
* @param {string} materializationId ID of the materialization
|
|
2284
1894
|
* @param {MaterializationActionActionEnum} action Action to perform on the materialization
|
|
1895
|
+
* @param {BuildInstructions} [buildInstructions]
|
|
2285
1896
|
* @param {*} [options] Override http request option.
|
|
2286
1897
|
* @throws {RequiredError}
|
|
2287
1898
|
* @memberof MaterializationsApi
|
|
2288
1899
|
*/
|
|
2289
|
-
materializationAction(r,
|
|
2290
|
-
return N(this.configuration).materializationAction(r,
|
|
1900
|
+
materializationAction(r, e, t, a, n, o) {
|
|
1901
|
+
return N(this.configuration).materializationAction(r, e, t, a, n, o).then((s) => s(this.axios, this.basePath));
|
|
2291
1902
|
}
|
|
2292
1903
|
}
|
|
2293
|
-
const
|
|
2294
|
-
|
|
1904
|
+
const De = {
|
|
1905
|
+
Build: "build",
|
|
2295
1906
|
Stop: "stop"
|
|
2296
|
-
},
|
|
1907
|
+
}, re = function(l) {
|
|
2297
1908
|
return {
|
|
2298
1909
|
/**
|
|
2299
1910
|
* 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.
|
|
@@ -2305,15 +1916,15 @@ const fe = {
|
|
|
2305
1916
|
* @param {*} [options] Override http request option.
|
|
2306
1917
|
* @throws {RequiredError}
|
|
2307
1918
|
*/
|
|
2308
|
-
compileModelSource: async (r,
|
|
2309
|
-
|
|
2310
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
1919
|
+
compileModelSource: async (r, e, t, a, n = {}) => {
|
|
1920
|
+
d("compileModelSource", "environmentName", r), d("compileModelSource", "packageName", e), d("compileModelSource", "path", t), d("compileModelSource", "compileRequest", a);
|
|
1921
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
|
|
2311
1922
|
let c;
|
|
2312
1923
|
l && (c = l.baseOptions);
|
|
2313
|
-
const i = { method: "POST", ...c, ...n }, p = {},
|
|
2314
|
-
p["Content-Type"] = "application/json", v(s,
|
|
1924
|
+
const i = { method: "POST", ...c, ...n }, p = {}, m = {};
|
|
1925
|
+
p["Content-Type"] = "application/json", v(s, m);
|
|
2315
1926
|
let P = c && c.headers ? c.headers : {};
|
|
2316
|
-
return i.headers = { ...p, ...P, ...n.headers }, i.data = I(
|
|
1927
|
+
return i.headers = { ...p, ...P, ...n.headers }, i.data = I(a, i, l), {
|
|
2317
1928
|
url: O(s),
|
|
2318
1929
|
options: i
|
|
2319
1930
|
};
|
|
@@ -2328,15 +1939,15 @@ const fe = {
|
|
|
2328
1939
|
* @param {*} [options] Override http request option.
|
|
2329
1940
|
* @throws {RequiredError}
|
|
2330
1941
|
*/
|
|
2331
|
-
executeQueryModel: async (r,
|
|
2332
|
-
|
|
2333
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
1942
|
+
executeQueryModel: async (r, e, t, a, n = {}) => {
|
|
1943
|
+
d("executeQueryModel", "environmentName", r), d("executeQueryModel", "packageName", e), d("executeQueryModel", "path", t), d("executeQueryModel", "queryRequest", a);
|
|
1944
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
|
|
2334
1945
|
let c;
|
|
2335
1946
|
l && (c = l.baseOptions);
|
|
2336
|
-
const i = { method: "POST", ...c, ...n }, p = {},
|
|
2337
|
-
p["Content-Type"] = "application/json", v(s,
|
|
1947
|
+
const i = { method: "POST", ...c, ...n }, p = {}, m = {};
|
|
1948
|
+
p["Content-Type"] = "application/json", v(s, m);
|
|
2338
1949
|
let P = c && c.headers ? c.headers : {};
|
|
2339
|
-
return i.headers = { ...p, ...P, ...n.headers }, i.data = I(
|
|
1950
|
+
return i.headers = { ...p, ...P, ...n.headers }, i.data = I(a, i, l), {
|
|
2340
1951
|
url: O(s),
|
|
2341
1952
|
options: i
|
|
2342
1953
|
};
|
|
@@ -2351,13 +1962,13 @@ const fe = {
|
|
|
2351
1962
|
* @param {*} [options] Override http request option.
|
|
2352
1963
|
* @throws {RequiredError}
|
|
2353
1964
|
*/
|
|
2354
|
-
getModel: async (r,
|
|
2355
|
-
|
|
2356
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
1965
|
+
getModel: async (r, e, t, a, n = {}) => {
|
|
1966
|
+
d("getModel", "environmentName", r), d("getModel", "packageName", e), d("getModel", "path", t);
|
|
1967
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
|
|
2357
1968
|
let c;
|
|
2358
1969
|
l && (c = l.baseOptions);
|
|
2359
|
-
const i = { method: "GET", ...c, ...n }, p = {},
|
|
2360
|
-
|
|
1970
|
+
const i = { method: "GET", ...c, ...n }, p = {}, m = {};
|
|
1971
|
+
a !== void 0 && (m.versionId = a), v(s, m);
|
|
2361
1972
|
let P = c && c.headers ? c.headers : {};
|
|
2362
1973
|
return i.headers = { ...p, ...P, ...n.headers }, {
|
|
2363
1974
|
url: O(s),
|
|
@@ -2373,22 +1984,22 @@ const fe = {
|
|
|
2373
1984
|
* @param {*} [options] Override http request option.
|
|
2374
1985
|
* @throws {RequiredError}
|
|
2375
1986
|
*/
|
|
2376
|
-
listModels: async (r,
|
|
2377
|
-
|
|
2378
|
-
const n = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
1987
|
+
listModels: async (r, e, t, a = {}) => {
|
|
1988
|
+
d("listModels", "environmentName", r), d("listModels", "packageName", e);
|
|
1989
|
+
const n = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, g);
|
|
2379
1990
|
let s;
|
|
2380
1991
|
l && (s = l.baseOptions);
|
|
2381
|
-
const c = { method: "GET", ...s, ...
|
|
1992
|
+
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
2382
1993
|
t !== void 0 && (p.versionId = t), v(o, p);
|
|
2383
|
-
let
|
|
2384
|
-
return c.headers = { ...i, ...
|
|
1994
|
+
let m = s && s.headers ? s.headers : {};
|
|
1995
|
+
return c.headers = { ...i, ...m, ...a.headers }, {
|
|
2385
1996
|
url: O(o),
|
|
2386
1997
|
options: c
|
|
2387
1998
|
};
|
|
2388
1999
|
}
|
|
2389
2000
|
};
|
|
2390
2001
|
}, U = function(l) {
|
|
2391
|
-
const r =
|
|
2002
|
+
const r = re(l);
|
|
2392
2003
|
return {
|
|
2393
2004
|
/**
|
|
2394
2005
|
* 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.
|
|
@@ -2400,9 +2011,9 @@ const fe = {
|
|
|
2400
2011
|
* @param {*} [options] Override http request option.
|
|
2401
2012
|
* @throws {RequiredError}
|
|
2402
2013
|
*/
|
|
2403
|
-
async compileModelSource(
|
|
2404
|
-
const s = await r.compileModelSource(
|
|
2405
|
-
return (p,
|
|
2014
|
+
async compileModelSource(e, t, a, n, o) {
|
|
2015
|
+
const s = await r.compileModelSource(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ModelsApi.compileModelSource"]?.[c]?.url;
|
|
2016
|
+
return (p, m) => b(s, h, u, l)(p, i || m);
|
|
2406
2017
|
},
|
|
2407
2018
|
/**
|
|
2408
2019
|
* 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.
|
|
@@ -2414,9 +2025,9 @@ const fe = {
|
|
|
2414
2025
|
* @param {*} [options] Override http request option.
|
|
2415
2026
|
* @throws {RequiredError}
|
|
2416
2027
|
*/
|
|
2417
|
-
async executeQueryModel(
|
|
2418
|
-
const s = await r.executeQueryModel(
|
|
2419
|
-
return (p,
|
|
2028
|
+
async executeQueryModel(e, t, a, n, o) {
|
|
2029
|
+
const s = await r.executeQueryModel(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ModelsApi.executeQueryModel"]?.[c]?.url;
|
|
2030
|
+
return (p, m) => b(s, h, u, l)(p, i || m);
|
|
2420
2031
|
},
|
|
2421
2032
|
/**
|
|
2422
2033
|
* 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.
|
|
@@ -2428,9 +2039,9 @@ const fe = {
|
|
|
2428
2039
|
* @param {*} [options] Override http request option.
|
|
2429
2040
|
* @throws {RequiredError}
|
|
2430
2041
|
*/
|
|
2431
|
-
async getModel(
|
|
2432
|
-
const s = await r.getModel(
|
|
2433
|
-
return (p,
|
|
2042
|
+
async getModel(e, t, a, n, o) {
|
|
2043
|
+
const s = await r.getModel(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["ModelsApi.getModel"]?.[c]?.url;
|
|
2044
|
+
return (p, m) => b(s, h, u, l)(p, i || m);
|
|
2434
2045
|
},
|
|
2435
2046
|
/**
|
|
2436
2047
|
* 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.
|
|
@@ -2441,12 +2052,12 @@ const fe = {
|
|
|
2441
2052
|
* @param {*} [options] Override http request option.
|
|
2442
2053
|
* @throws {RequiredError}
|
|
2443
2054
|
*/
|
|
2444
|
-
async listModels(
|
|
2445
|
-
const o = await r.listModels(
|
|
2055
|
+
async listModels(e, t, a, n) {
|
|
2056
|
+
const o = await r.listModels(e, t, a, n), s = l?.serverIndex ?? 0, c = V["ModelsApi.listModels"]?.[s]?.url;
|
|
2446
2057
|
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
2447
2058
|
}
|
|
2448
2059
|
};
|
|
2449
|
-
},
|
|
2060
|
+
}, We = function(l, r, e) {
|
|
2450
2061
|
const t = U(l);
|
|
2451
2062
|
return {
|
|
2452
2063
|
/**
|
|
@@ -2459,8 +2070,8 @@ const fe = {
|
|
|
2459
2070
|
* @param {*} [options] Override http request option.
|
|
2460
2071
|
* @throws {RequiredError}
|
|
2461
2072
|
*/
|
|
2462
|
-
compileModelSource(
|
|
2463
|
-
return t.compileModelSource(
|
|
2073
|
+
compileModelSource(a, n, o, s, c) {
|
|
2074
|
+
return t.compileModelSource(a, n, o, s, c).then((i) => i(e, r));
|
|
2464
2075
|
},
|
|
2465
2076
|
/**
|
|
2466
2077
|
* 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.
|
|
@@ -2472,8 +2083,8 @@ const fe = {
|
|
|
2472
2083
|
* @param {*} [options] Override http request option.
|
|
2473
2084
|
* @throws {RequiredError}
|
|
2474
2085
|
*/
|
|
2475
|
-
executeQueryModel(
|
|
2476
|
-
return t.executeQueryModel(
|
|
2086
|
+
executeQueryModel(a, n, o, s, c) {
|
|
2087
|
+
return t.executeQueryModel(a, n, o, s, c).then((i) => i(e, r));
|
|
2477
2088
|
},
|
|
2478
2089
|
/**
|
|
2479
2090
|
* 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.
|
|
@@ -2485,8 +2096,8 @@ const fe = {
|
|
|
2485
2096
|
* @param {*} [options] Override http request option.
|
|
2486
2097
|
* @throws {RequiredError}
|
|
2487
2098
|
*/
|
|
2488
|
-
getModel(
|
|
2489
|
-
return t.getModel(
|
|
2099
|
+
getModel(a, n, o, s, c) {
|
|
2100
|
+
return t.getModel(a, n, o, s, c).then((i) => i(e, r));
|
|
2490
2101
|
},
|
|
2491
2102
|
/**
|
|
2492
2103
|
* 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.
|
|
@@ -2497,12 +2108,12 @@ const fe = {
|
|
|
2497
2108
|
* @param {*} [options] Override http request option.
|
|
2498
2109
|
* @throws {RequiredError}
|
|
2499
2110
|
*/
|
|
2500
|
-
listModels(
|
|
2501
|
-
return t.listModels(
|
|
2111
|
+
listModels(a, n, o, s) {
|
|
2112
|
+
return t.listModels(a, n, o, s).then((c) => c(e, r));
|
|
2502
2113
|
}
|
|
2503
2114
|
};
|
|
2504
2115
|
};
|
|
2505
|
-
class
|
|
2116
|
+
class oe extends y {
|
|
2506
2117
|
/**
|
|
2507
2118
|
* 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.
|
|
2508
2119
|
* @summary Compile Malloy source code
|
|
@@ -2514,8 +2125,8 @@ class ce extends k {
|
|
|
2514
2125
|
* @throws {RequiredError}
|
|
2515
2126
|
* @memberof ModelsApi
|
|
2516
2127
|
*/
|
|
2517
|
-
compileModelSource(r,
|
|
2518
|
-
return U(this.configuration).compileModelSource(r,
|
|
2128
|
+
compileModelSource(r, e, t, a, n) {
|
|
2129
|
+
return U(this.configuration).compileModelSource(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
2519
2130
|
}
|
|
2520
2131
|
/**
|
|
2521
2132
|
* 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.
|
|
@@ -2528,8 +2139,8 @@ class ce extends k {
|
|
|
2528
2139
|
* @throws {RequiredError}
|
|
2529
2140
|
* @memberof ModelsApi
|
|
2530
2141
|
*/
|
|
2531
|
-
executeQueryModel(r,
|
|
2532
|
-
return U(this.configuration).executeQueryModel(r,
|
|
2142
|
+
executeQueryModel(r, e, t, a, n) {
|
|
2143
|
+
return U(this.configuration).executeQueryModel(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
2533
2144
|
}
|
|
2534
2145
|
/**
|
|
2535
2146
|
* 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.
|
|
@@ -2542,8 +2153,8 @@ class ce extends k {
|
|
|
2542
2153
|
* @throws {RequiredError}
|
|
2543
2154
|
* @memberof ModelsApi
|
|
2544
2155
|
*/
|
|
2545
|
-
getModel(r,
|
|
2546
|
-
return U(this.configuration).getModel(r,
|
|
2156
|
+
getModel(r, e, t, a, n) {
|
|
2157
|
+
return U(this.configuration).getModel(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
2547
2158
|
}
|
|
2548
2159
|
/**
|
|
2549
2160
|
* 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.
|
|
@@ -2555,11 +2166,11 @@ class ce extends k {
|
|
|
2555
2166
|
* @throws {RequiredError}
|
|
2556
2167
|
* @memberof ModelsApi
|
|
2557
2168
|
*/
|
|
2558
|
-
listModels(r,
|
|
2559
|
-
return U(this.configuration).listModels(r,
|
|
2169
|
+
listModels(r, e, t, a) {
|
|
2170
|
+
return U(this.configuration).listModels(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
2560
2171
|
}
|
|
2561
2172
|
}
|
|
2562
|
-
const
|
|
2173
|
+
const se = function(l) {
|
|
2563
2174
|
return {
|
|
2564
2175
|
/**
|
|
2565
2176
|
* 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.
|
|
@@ -2575,17 +2186,17 @@ const le = function(l) {
|
|
|
2575
2186
|
* @param {*} [options] Override http request option.
|
|
2576
2187
|
* @throws {RequiredError}
|
|
2577
2188
|
*/
|
|
2578
|
-
executeNotebookCell: async (r,
|
|
2579
|
-
|
|
2580
|
-
const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
2189
|
+
executeNotebookCell: async (r, e, t, a, n, o, s, c, i = {}) => {
|
|
2190
|
+
d("executeNotebookCell", "environmentName", r), d("executeNotebookCell", "packageName", e), d("executeNotebookCell", "path", t), d("executeNotebookCell", "cellIndex", a);
|
|
2191
|
+
const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), m = new URL(p, g);
|
|
2581
2192
|
let P;
|
|
2582
2193
|
l && (P = l.baseOptions);
|
|
2583
|
-
const
|
|
2584
|
-
n !== void 0 && (C.versionId = n), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), c !== void 0 && (C.givens = c), v(
|
|
2194
|
+
const k = { method: "GET", ...P, ...i }, w = {}, C = {};
|
|
2195
|
+
n !== void 0 && (C.versionId = n), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), c !== void 0 && (C.givens = c), v(m, C);
|
|
2585
2196
|
let A = P && P.headers ? P.headers : {};
|
|
2586
|
-
return
|
|
2587
|
-
url: O(
|
|
2588
|
-
options:
|
|
2197
|
+
return k.headers = { ...w, ...A, ...i.headers }, {
|
|
2198
|
+
url: O(m),
|
|
2199
|
+
options: k
|
|
2589
2200
|
};
|
|
2590
2201
|
},
|
|
2591
2202
|
/**
|
|
@@ -2598,13 +2209,13 @@ const le = function(l) {
|
|
|
2598
2209
|
* @param {*} [options] Override http request option.
|
|
2599
2210
|
* @throws {RequiredError}
|
|
2600
2211
|
*/
|
|
2601
|
-
getNotebook: async (r,
|
|
2602
|
-
|
|
2603
|
-
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
2212
|
+
getNotebook: async (r, e, t, a, n = {}) => {
|
|
2213
|
+
d("getNotebook", "environmentName", r), d("getNotebook", "packageName", e), d("getNotebook", "path", t);
|
|
2214
|
+
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, g);
|
|
2604
2215
|
let c;
|
|
2605
2216
|
l && (c = l.baseOptions);
|
|
2606
|
-
const i = { method: "GET", ...c, ...n }, p = {},
|
|
2607
|
-
|
|
2217
|
+
const i = { method: "GET", ...c, ...n }, p = {}, m = {};
|
|
2218
|
+
a !== void 0 && (m.versionId = a), v(s, m);
|
|
2608
2219
|
let P = c && c.headers ? c.headers : {};
|
|
2609
2220
|
return i.headers = { ...p, ...P, ...n.headers }, {
|
|
2610
2221
|
url: O(s),
|
|
@@ -2620,22 +2231,22 @@ const le = function(l) {
|
|
|
2620
2231
|
* @param {*} [options] Override http request option.
|
|
2621
2232
|
* @throws {RequiredError}
|
|
2622
2233
|
*/
|
|
2623
|
-
listNotebooks: async (r,
|
|
2624
|
-
|
|
2625
|
-
const n = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
2234
|
+
listNotebooks: async (r, e, t, a = {}) => {
|
|
2235
|
+
d("listNotebooks", "environmentName", r), d("listNotebooks", "packageName", e);
|
|
2236
|
+
const n = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, g);
|
|
2626
2237
|
let s;
|
|
2627
2238
|
l && (s = l.baseOptions);
|
|
2628
|
-
const c = { method: "GET", ...s, ...
|
|
2239
|
+
const c = { method: "GET", ...s, ...a }, i = {}, p = {};
|
|
2629
2240
|
t !== void 0 && (p.versionId = t), v(o, p);
|
|
2630
|
-
let
|
|
2631
|
-
return c.headers = { ...i, ...
|
|
2241
|
+
let m = s && s.headers ? s.headers : {};
|
|
2242
|
+
return c.headers = { ...i, ...m, ...a.headers }, {
|
|
2632
2243
|
url: O(o),
|
|
2633
2244
|
options: c
|
|
2634
2245
|
};
|
|
2635
2246
|
}
|
|
2636
2247
|
};
|
|
2637
|
-
},
|
|
2638
|
-
const r =
|
|
2248
|
+
}, E = function(l) {
|
|
2249
|
+
const r = se(l);
|
|
2639
2250
|
return {
|
|
2640
2251
|
/**
|
|
2641
2252
|
* 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.
|
|
@@ -2651,9 +2262,9 @@ const le = function(l) {
|
|
|
2651
2262
|
* @param {*} [options] Override http request option.
|
|
2652
2263
|
* @throws {RequiredError}
|
|
2653
2264
|
*/
|
|
2654
|
-
async executeNotebookCell(
|
|
2655
|
-
const
|
|
2656
|
-
return (
|
|
2265
|
+
async executeNotebookCell(e, t, a, n, o, s, c, i, p) {
|
|
2266
|
+
const m = await r.executeNotebookCell(e, t, a, n, o, s, c, i, p), P = l?.serverIndex ?? 0, k = V["NotebooksApi.executeNotebookCell"]?.[P]?.url;
|
|
2267
|
+
return (w, C) => b(m, h, u, l)(w, k || C);
|
|
2657
2268
|
},
|
|
2658
2269
|
/**
|
|
2659
2270
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2665,9 +2276,9 @@ const le = function(l) {
|
|
|
2665
2276
|
* @param {*} [options] Override http request option.
|
|
2666
2277
|
* @throws {RequiredError}
|
|
2667
2278
|
*/
|
|
2668
|
-
async getNotebook(
|
|
2669
|
-
const s = await r.getNotebook(
|
|
2670
|
-
return (p,
|
|
2279
|
+
async getNotebook(e, t, a, n, o) {
|
|
2280
|
+
const s = await r.getNotebook(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["NotebooksApi.getNotebook"]?.[c]?.url;
|
|
2281
|
+
return (p, m) => b(s, h, u, l)(p, i || m);
|
|
2671
2282
|
},
|
|
2672
2283
|
/**
|
|
2673
2284
|
* 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.
|
|
@@ -2678,13 +2289,13 @@ const le = function(l) {
|
|
|
2678
2289
|
* @param {*} [options] Override http request option.
|
|
2679
2290
|
* @throws {RequiredError}
|
|
2680
2291
|
*/
|
|
2681
|
-
async listNotebooks(
|
|
2682
|
-
const o = await r.listNotebooks(
|
|
2292
|
+
async listNotebooks(e, t, a, n) {
|
|
2293
|
+
const o = await r.listNotebooks(e, t, a, n), s = l?.serverIndex ?? 0, c = V["NotebooksApi.listNotebooks"]?.[s]?.url;
|
|
2683
2294
|
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
2684
2295
|
}
|
|
2685
2296
|
};
|
|
2686
|
-
},
|
|
2687
|
-
const t =
|
|
2297
|
+
}, Ge = function(l, r, e) {
|
|
2298
|
+
const t = E(l);
|
|
2688
2299
|
return {
|
|
2689
2300
|
/**
|
|
2690
2301
|
* 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.
|
|
@@ -2700,8 +2311,8 @@ const le = function(l) {
|
|
|
2700
2311
|
* @param {*} [options] Override http request option.
|
|
2701
2312
|
* @throws {RequiredError}
|
|
2702
2313
|
*/
|
|
2703
|
-
executeNotebookCell(
|
|
2704
|
-
return t.executeNotebookCell(
|
|
2314
|
+
executeNotebookCell(a, n, o, s, c, i, p, m, P) {
|
|
2315
|
+
return t.executeNotebookCell(a, n, o, s, c, i, p, m, P).then((k) => k(e, r));
|
|
2705
2316
|
},
|
|
2706
2317
|
/**
|
|
2707
2318
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2713,8 +2324,8 @@ const le = function(l) {
|
|
|
2713
2324
|
* @param {*} [options] Override http request option.
|
|
2714
2325
|
* @throws {RequiredError}
|
|
2715
2326
|
*/
|
|
2716
|
-
getNotebook(
|
|
2717
|
-
return t.getNotebook(
|
|
2327
|
+
getNotebook(a, n, o, s, c) {
|
|
2328
|
+
return t.getNotebook(a, n, o, s, c).then((i) => i(e, r));
|
|
2718
2329
|
},
|
|
2719
2330
|
/**
|
|
2720
2331
|
* 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.
|
|
@@ -2725,12 +2336,12 @@ const le = function(l) {
|
|
|
2725
2336
|
* @param {*} [options] Override http request option.
|
|
2726
2337
|
* @throws {RequiredError}
|
|
2727
2338
|
*/
|
|
2728
|
-
listNotebooks(
|
|
2729
|
-
return t.listNotebooks(
|
|
2339
|
+
listNotebooks(a, n, o, s) {
|
|
2340
|
+
return t.listNotebooks(a, n, o, s).then((c) => c(e, r));
|
|
2730
2341
|
}
|
|
2731
2342
|
};
|
|
2732
2343
|
};
|
|
2733
|
-
class
|
|
2344
|
+
class ce extends y {
|
|
2734
2345
|
/**
|
|
2735
2346
|
* 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.
|
|
2736
2347
|
* @summary Execute a specific notebook cell
|
|
@@ -2746,8 +2357,8 @@ class ie extends k {
|
|
|
2746
2357
|
* @throws {RequiredError}
|
|
2747
2358
|
* @memberof NotebooksApi
|
|
2748
2359
|
*/
|
|
2749
|
-
executeNotebookCell(r,
|
|
2750
|
-
return
|
|
2360
|
+
executeNotebookCell(r, e, t, a, n, o, s, c, i) {
|
|
2361
|
+
return E(this.configuration).executeNotebookCell(r, e, t, a, n, o, s, c, i).then((p) => p(this.axios, this.basePath));
|
|
2751
2362
|
}
|
|
2752
2363
|
/**
|
|
2753
2364
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2760,8 +2371,8 @@ class ie extends k {
|
|
|
2760
2371
|
* @throws {RequiredError}
|
|
2761
2372
|
* @memberof NotebooksApi
|
|
2762
2373
|
*/
|
|
2763
|
-
getNotebook(r,
|
|
2764
|
-
return
|
|
2374
|
+
getNotebook(r, e, t, a, n) {
|
|
2375
|
+
return E(this.configuration).getNotebook(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
2765
2376
|
}
|
|
2766
2377
|
/**
|
|
2767
2378
|
* 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.
|
|
@@ -2773,35 +2384,34 @@ class ie extends k {
|
|
|
2773
2384
|
* @throws {RequiredError}
|
|
2774
2385
|
* @memberof NotebooksApi
|
|
2775
2386
|
*/
|
|
2776
|
-
listNotebooks(r,
|
|
2777
|
-
return
|
|
2387
|
+
listNotebooks(r, e, t, a) {
|
|
2388
|
+
return E(this.configuration).listNotebooks(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
2778
2389
|
}
|
|
2779
2390
|
}
|
|
2780
|
-
const
|
|
2391
|
+
const fe = {
|
|
2781
2392
|
True: "true",
|
|
2782
2393
|
False: "false"
|
|
2783
|
-
},
|
|
2394
|
+
}, le = function(l) {
|
|
2784
2395
|
return {
|
|
2785
2396
|
/**
|
|
2786
2397
|
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
2787
2398
|
* @summary Create a new package
|
|
2788
2399
|
* @param {string} environmentName Name of the environment
|
|
2789
2400
|
* @param {Package} _package
|
|
2790
|
-
* @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
|
|
2791
2401
|
* @param {*} [options] Override http request option.
|
|
2792
2402
|
* @throws {RequiredError}
|
|
2793
2403
|
*/
|
|
2794
|
-
createPackage: async (r,
|
|
2795
|
-
|
|
2796
|
-
const
|
|
2797
|
-
let
|
|
2798
|
-
l && (
|
|
2799
|
-
const
|
|
2800
|
-
|
|
2801
|
-
let
|
|
2802
|
-
return
|
|
2803
|
-
url: O(
|
|
2804
|
-
options:
|
|
2404
|
+
createPackage: async (r, e, t = {}) => {
|
|
2405
|
+
d("createPackage", "environmentName", r), d("createPackage", "_package", e);
|
|
2406
|
+
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), n = new URL(a, g);
|
|
2407
|
+
let o;
|
|
2408
|
+
l && (o = l.baseOptions);
|
|
2409
|
+
const s = { method: "POST", ...o, ...t }, c = {}, i = {};
|
|
2410
|
+
c["Content-Type"] = "application/json", v(n, i);
|
|
2411
|
+
let p = o && o.headers ? o.headers : {};
|
|
2412
|
+
return s.headers = { ...c, ...p, ...t.headers }, s.data = I(e, s, l), {
|
|
2413
|
+
url: O(n),
|
|
2414
|
+
options: s
|
|
2805
2415
|
};
|
|
2806
2416
|
},
|
|
2807
2417
|
/**
|
|
@@ -2812,9 +2422,9 @@ const Ge = {
|
|
|
2812
2422
|
* @param {*} [options] Override http request option.
|
|
2813
2423
|
* @throws {RequiredError}
|
|
2814
2424
|
*/
|
|
2815
|
-
deletePackage: async (r,
|
|
2816
|
-
|
|
2817
|
-
const
|
|
2425
|
+
deletePackage: async (r, e, t = {}) => {
|
|
2426
|
+
d("deletePackage", "environmentName", r), d("deletePackage", "packageName", e);
|
|
2427
|
+
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, g);
|
|
2818
2428
|
let o;
|
|
2819
2429
|
l && (o = l.baseOptions);
|
|
2820
2430
|
const s = { method: "DELETE", ...o, ...t }, c = {};
|
|
@@ -2835,13 +2445,13 @@ const Ge = {
|
|
|
2835
2445
|
* @param {*} [options] Override http request option.
|
|
2836
2446
|
* @throws {RequiredError}
|
|
2837
2447
|
*/
|
|
2838
|
-
getPackage: async (r,
|
|
2839
|
-
|
|
2840
|
-
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
2448
|
+
getPackage: async (r, e, t, a, n = {}) => {
|
|
2449
|
+
d("getPackage", "environmentName", r), d("getPackage", "packageName", e);
|
|
2450
|
+
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, g);
|
|
2841
2451
|
let c;
|
|
2842
2452
|
l && (c = l.baseOptions);
|
|
2843
|
-
const i = { method: "GET", ...c, ...n }, p = {},
|
|
2844
|
-
t !== void 0 && (
|
|
2453
|
+
const i = { method: "GET", ...c, ...n }, p = {}, m = {};
|
|
2454
|
+
t !== void 0 && (m.versionId = t), a !== void 0 && (m.reload = a), v(s, m);
|
|
2845
2455
|
let P = c && c.headers ? c.headers : {};
|
|
2846
2456
|
return i.headers = { ...p, ...P, ...n.headers }, {
|
|
2847
2457
|
url: O(s),
|
|
@@ -2855,16 +2465,16 @@ const Ge = {
|
|
|
2855
2465
|
* @param {*} [options] Override http request option.
|
|
2856
2466
|
* @throws {RequiredError}
|
|
2857
2467
|
*/
|
|
2858
|
-
listPackages: async (r,
|
|
2859
|
-
|
|
2860
|
-
const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))),
|
|
2468
|
+
listPackages: async (r, e = {}) => {
|
|
2469
|
+
d("listPackages", "environmentName", r);
|
|
2470
|
+
const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), a = new URL(t, g);
|
|
2861
2471
|
let n;
|
|
2862
2472
|
l && (n = l.baseOptions);
|
|
2863
|
-
const o = { method: "GET", ...n, ...
|
|
2864
|
-
v(
|
|
2473
|
+
const o = { method: "GET", ...n, ...e }, s = {};
|
|
2474
|
+
v(a, {});
|
|
2865
2475
|
let i = n && n.headers ? n.headers : {};
|
|
2866
|
-
return o.headers = { ...s, ...i, ...
|
|
2867
|
-
url: O(
|
|
2476
|
+
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
2477
|
+
url: O(a),
|
|
2868
2478
|
options: o
|
|
2869
2479
|
};
|
|
2870
2480
|
},
|
|
@@ -2877,35 +2487,34 @@ const Ge = {
|
|
|
2877
2487
|
* @param {*} [options] Override http request option.
|
|
2878
2488
|
* @throws {RequiredError}
|
|
2879
2489
|
*/
|
|
2880
|
-
updatePackage: async (r,
|
|
2881
|
-
|
|
2882
|
-
const n = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(
|
|
2490
|
+
updatePackage: async (r, e, t, a = {}) => {
|
|
2491
|
+
d("updatePackage", "environmentName", r), d("updatePackage", "packageName", e), d("updatePackage", "_package", t);
|
|
2492
|
+
const n = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, g);
|
|
2883
2493
|
let s;
|
|
2884
2494
|
l && (s = l.baseOptions);
|
|
2885
|
-
const c = { method: "PATCH", ...s, ...
|
|
2495
|
+
const c = { method: "PATCH", ...s, ...a }, i = {}, p = {};
|
|
2886
2496
|
i["Content-Type"] = "application/json", v(o, p);
|
|
2887
|
-
let
|
|
2888
|
-
return c.headers = { ...i, ...
|
|
2497
|
+
let m = s && s.headers ? s.headers : {};
|
|
2498
|
+
return c.headers = { ...i, ...m, ...a.headers }, c.data = I(t, c, l), {
|
|
2889
2499
|
url: O(o),
|
|
2890
2500
|
options: c
|
|
2891
2501
|
};
|
|
2892
2502
|
}
|
|
2893
2503
|
};
|
|
2894
2504
|
}, R = function(l) {
|
|
2895
|
-
const r =
|
|
2505
|
+
const r = le(l);
|
|
2896
2506
|
return {
|
|
2897
2507
|
/**
|
|
2898
2508
|
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
2899
2509
|
* @summary Create a new package
|
|
2900
2510
|
* @param {string} environmentName Name of the environment
|
|
2901
2511
|
* @param {Package} _package
|
|
2902
|
-
* @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
|
|
2903
2512
|
* @param {*} [options] Override http request option.
|
|
2904
2513
|
* @throws {RequiredError}
|
|
2905
2514
|
*/
|
|
2906
|
-
async createPackage(
|
|
2907
|
-
const
|
|
2908
|
-
return (
|
|
2515
|
+
async createPackage(e, t, a) {
|
|
2516
|
+
const n = await r.createPackage(e, t, a), o = l?.serverIndex ?? 0, s = V["PackagesApi.createPackage"]?.[o]?.url;
|
|
2517
|
+
return (c, i) => b(n, h, u, l)(c, s || i);
|
|
2909
2518
|
},
|
|
2910
2519
|
/**
|
|
2911
2520
|
* 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.
|
|
@@ -2915,8 +2524,8 @@ const Ge = {
|
|
|
2915
2524
|
* @param {*} [options] Override http request option.
|
|
2916
2525
|
* @throws {RequiredError}
|
|
2917
2526
|
*/
|
|
2918
|
-
async deletePackage(
|
|
2919
|
-
const n = await r.deletePackage(
|
|
2527
|
+
async deletePackage(e, t, a) {
|
|
2528
|
+
const n = await r.deletePackage(e, t, a), o = l?.serverIndex ?? 0, s = V["PackagesApi.deletePackage"]?.[o]?.url;
|
|
2920
2529
|
return (c, i) => b(n, h, u, l)(c, s || i);
|
|
2921
2530
|
},
|
|
2922
2531
|
/**
|
|
@@ -2929,9 +2538,9 @@ const Ge = {
|
|
|
2929
2538
|
* @param {*} [options] Override http request option.
|
|
2930
2539
|
* @throws {RequiredError}
|
|
2931
2540
|
*/
|
|
2932
|
-
async getPackage(
|
|
2933
|
-
const s = await r.getPackage(
|
|
2934
|
-
return (p,
|
|
2541
|
+
async getPackage(e, t, a, n, o) {
|
|
2542
|
+
const s = await r.getPackage(e, t, a, n, o), c = l?.serverIndex ?? 0, i = V["PackagesApi.getPackage"]?.[c]?.url;
|
|
2543
|
+
return (p, m) => b(s, h, u, l)(p, i || m);
|
|
2935
2544
|
},
|
|
2936
2545
|
/**
|
|
2937
2546
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
|
|
@@ -2940,9 +2549,9 @@ const Ge = {
|
|
|
2940
2549
|
* @param {*} [options] Override http request option.
|
|
2941
2550
|
* @throws {RequiredError}
|
|
2942
2551
|
*/
|
|
2943
|
-
async listPackages(
|
|
2944
|
-
const
|
|
2945
|
-
return (s, c) => b(
|
|
2552
|
+
async listPackages(e, t) {
|
|
2553
|
+
const a = await r.listPackages(e, t), n = l?.serverIndex ?? 0, o = V["PackagesApi.listPackages"]?.[n]?.url;
|
|
2554
|
+
return (s, c) => b(a, h, u, l)(s, o || c);
|
|
2946
2555
|
},
|
|
2947
2556
|
/**
|
|
2948
2557
|
* 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.
|
|
@@ -2953,12 +2562,12 @@ const Ge = {
|
|
|
2953
2562
|
* @param {*} [options] Override http request option.
|
|
2954
2563
|
* @throws {RequiredError}
|
|
2955
2564
|
*/
|
|
2956
|
-
async updatePackage(
|
|
2957
|
-
const o = await r.updatePackage(
|
|
2565
|
+
async updatePackage(e, t, a, n) {
|
|
2566
|
+
const o = await r.updatePackage(e, t, a, n), s = l?.serverIndex ?? 0, c = V["PackagesApi.updatePackage"]?.[s]?.url;
|
|
2958
2567
|
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
2959
2568
|
}
|
|
2960
2569
|
};
|
|
2961
|
-
}, _e = function(l, r,
|
|
2570
|
+
}, _e = function(l, r, e) {
|
|
2962
2571
|
const t = R(l);
|
|
2963
2572
|
return {
|
|
2964
2573
|
/**
|
|
@@ -2966,12 +2575,11 @@ const Ge = {
|
|
|
2966
2575
|
* @summary Create a new package
|
|
2967
2576
|
* @param {string} environmentName Name of the environment
|
|
2968
2577
|
* @param {Package} _package
|
|
2969
|
-
* @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
|
|
2970
2578
|
* @param {*} [options] Override http request option.
|
|
2971
2579
|
* @throws {RequiredError}
|
|
2972
2580
|
*/
|
|
2973
|
-
createPackage(
|
|
2974
|
-
return t.createPackage(
|
|
2581
|
+
createPackage(a, n, o) {
|
|
2582
|
+
return t.createPackage(a, n, o).then((s) => s(e, r));
|
|
2975
2583
|
},
|
|
2976
2584
|
/**
|
|
2977
2585
|
* 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.
|
|
@@ -2981,8 +2589,8 @@ const Ge = {
|
|
|
2981
2589
|
* @param {*} [options] Override http request option.
|
|
2982
2590
|
* @throws {RequiredError}
|
|
2983
2591
|
*/
|
|
2984
|
-
deletePackage(
|
|
2985
|
-
return t.deletePackage(
|
|
2592
|
+
deletePackage(a, n, o) {
|
|
2593
|
+
return t.deletePackage(a, n, o).then((s) => s(e, r));
|
|
2986
2594
|
},
|
|
2987
2595
|
/**
|
|
2988
2596
|
* 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.
|
|
@@ -2994,8 +2602,8 @@ const Ge = {
|
|
|
2994
2602
|
* @param {*} [options] Override http request option.
|
|
2995
2603
|
* @throws {RequiredError}
|
|
2996
2604
|
*/
|
|
2997
|
-
getPackage(
|
|
2998
|
-
return t.getPackage(
|
|
2605
|
+
getPackage(a, n, o, s, c) {
|
|
2606
|
+
return t.getPackage(a, n, o, s, c).then((i) => i(e, r));
|
|
2999
2607
|
},
|
|
3000
2608
|
/**
|
|
3001
2609
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
|
|
@@ -3004,8 +2612,8 @@ const Ge = {
|
|
|
3004
2612
|
* @param {*} [options] Override http request option.
|
|
3005
2613
|
* @throws {RequiredError}
|
|
3006
2614
|
*/
|
|
3007
|
-
listPackages(
|
|
3008
|
-
return t.listPackages(
|
|
2615
|
+
listPackages(a, n) {
|
|
2616
|
+
return t.listPackages(a, n).then((o) => o(e, r));
|
|
3009
2617
|
},
|
|
3010
2618
|
/**
|
|
3011
2619
|
* 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.
|
|
@@ -3016,24 +2624,23 @@ const Ge = {
|
|
|
3016
2624
|
* @param {*} [options] Override http request option.
|
|
3017
2625
|
* @throws {RequiredError}
|
|
3018
2626
|
*/
|
|
3019
|
-
updatePackage(
|
|
3020
|
-
return t.updatePackage(
|
|
2627
|
+
updatePackage(a, n, o, s) {
|
|
2628
|
+
return t.updatePackage(a, n, o, s).then((c) => c(e, r));
|
|
3021
2629
|
}
|
|
3022
2630
|
};
|
|
3023
2631
|
};
|
|
3024
|
-
class
|
|
2632
|
+
class ie extends y {
|
|
3025
2633
|
/**
|
|
3026
2634
|
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
3027
2635
|
* @summary Create a new package
|
|
3028
2636
|
* @param {string} environmentName Name of the environment
|
|
3029
2637
|
* @param {Package} _package
|
|
3030
|
-
* @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
|
|
3031
2638
|
* @param {*} [options] Override http request option.
|
|
3032
2639
|
* @throws {RequiredError}
|
|
3033
2640
|
* @memberof PackagesApi
|
|
3034
2641
|
*/
|
|
3035
|
-
createPackage(r,
|
|
3036
|
-
return R(this.configuration).createPackage(r,
|
|
2642
|
+
createPackage(r, e, t) {
|
|
2643
|
+
return R(this.configuration).createPackage(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
3037
2644
|
}
|
|
3038
2645
|
/**
|
|
3039
2646
|
* 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.
|
|
@@ -3044,8 +2651,8 @@ class me extends k {
|
|
|
3044
2651
|
* @throws {RequiredError}
|
|
3045
2652
|
* @memberof PackagesApi
|
|
3046
2653
|
*/
|
|
3047
|
-
deletePackage(r,
|
|
3048
|
-
return R(this.configuration).deletePackage(r,
|
|
2654
|
+
deletePackage(r, e, t) {
|
|
2655
|
+
return R(this.configuration).deletePackage(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
3049
2656
|
}
|
|
3050
2657
|
/**
|
|
3051
2658
|
* 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.
|
|
@@ -3058,8 +2665,8 @@ class me extends k {
|
|
|
3058
2665
|
* @throws {RequiredError}
|
|
3059
2666
|
* @memberof PackagesApi
|
|
3060
2667
|
*/
|
|
3061
|
-
getPackage(r,
|
|
3062
|
-
return R(this.configuration).getPackage(r,
|
|
2668
|
+
getPackage(r, e, t, a, n) {
|
|
2669
|
+
return R(this.configuration).getPackage(r, e, t, a, n).then((o) => o(this.axios, this.basePath));
|
|
3063
2670
|
}
|
|
3064
2671
|
/**
|
|
3065
2672
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
|
|
@@ -3069,8 +2676,8 @@ class me extends k {
|
|
|
3069
2676
|
* @throws {RequiredError}
|
|
3070
2677
|
* @memberof PackagesApi
|
|
3071
2678
|
*/
|
|
3072
|
-
listPackages(r,
|
|
3073
|
-
return R(this.configuration).listPackages(r,
|
|
2679
|
+
listPackages(r, e) {
|
|
2680
|
+
return R(this.configuration).listPackages(r, e).then((t) => t(this.axios, this.basePath));
|
|
3074
2681
|
}
|
|
3075
2682
|
/**
|
|
3076
2683
|
* 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.
|
|
@@ -3082,11 +2689,81 @@ class me extends k {
|
|
|
3082
2689
|
* @throws {RequiredError}
|
|
3083
2690
|
* @memberof PackagesApi
|
|
3084
2691
|
*/
|
|
3085
|
-
updatePackage(r,
|
|
3086
|
-
return R(this.configuration).updatePackage(r,
|
|
2692
|
+
updatePackage(r, e, t, a) {
|
|
2693
|
+
return R(this.configuration).updatePackage(r, e, t, a).then((n) => n(this.axios, this.basePath));
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
const pe = function(l) {
|
|
2697
|
+
return {
|
|
2698
|
+
/**
|
|
2699
|
+
* Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
2700
|
+
* @summary List package pages
|
|
2701
|
+
* @param {string} environmentName Name of the environment
|
|
2702
|
+
* @param {string} packageName Name of the package
|
|
2703
|
+
* @param {*} [options] Override http request option.
|
|
2704
|
+
* @throws {RequiredError}
|
|
2705
|
+
*/
|
|
2706
|
+
listPages: async (r, e, t = {}) => {
|
|
2707
|
+
d("listPages", "environmentName", r), d("listPages", "packageName", e);
|
|
2708
|
+
const a = "/environments/{environmentName}/packages/{packageName}/pages".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, g);
|
|
2709
|
+
let o;
|
|
2710
|
+
l && (o = l.baseOptions);
|
|
2711
|
+
const s = { method: "GET", ...o, ...t }, c = {};
|
|
2712
|
+
v(n, {});
|
|
2713
|
+
let p = o && o.headers ? o.headers : {};
|
|
2714
|
+
return s.headers = { ...c, ...p, ...t.headers }, {
|
|
2715
|
+
url: O(n),
|
|
2716
|
+
options: s
|
|
2717
|
+
};
|
|
2718
|
+
}
|
|
2719
|
+
};
|
|
2720
|
+
}, F = function(l) {
|
|
2721
|
+
const r = pe(l);
|
|
2722
|
+
return {
|
|
2723
|
+
/**
|
|
2724
|
+
* Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
2725
|
+
* @summary List package pages
|
|
2726
|
+
* @param {string} environmentName Name of the environment
|
|
2727
|
+
* @param {string} packageName Name of the package
|
|
2728
|
+
* @param {*} [options] Override http request option.
|
|
2729
|
+
* @throws {RequiredError}
|
|
2730
|
+
*/
|
|
2731
|
+
async listPages(e, t, a) {
|
|
2732
|
+
const n = await r.listPages(e, t, a), o = l?.serverIndex ?? 0, s = V["PagesApi.listPages"]?.[o]?.url;
|
|
2733
|
+
return (c, i) => b(n, h, u, l)(c, s || i);
|
|
2734
|
+
}
|
|
2735
|
+
};
|
|
2736
|
+
}, Ye = function(l, r, e) {
|
|
2737
|
+
const t = F(l);
|
|
2738
|
+
return {
|
|
2739
|
+
/**
|
|
2740
|
+
* Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
2741
|
+
* @summary List package pages
|
|
2742
|
+
* @param {string} environmentName Name of the environment
|
|
2743
|
+
* @param {string} packageName Name of the package
|
|
2744
|
+
* @param {*} [options] Override http request option.
|
|
2745
|
+
* @throws {RequiredError}
|
|
2746
|
+
*/
|
|
2747
|
+
listPages(a, n, o) {
|
|
2748
|
+
return t.listPages(a, n, o).then((s) => s(e, r));
|
|
2749
|
+
}
|
|
2750
|
+
};
|
|
2751
|
+
};
|
|
2752
|
+
class de extends y {
|
|
2753
|
+
/**
|
|
2754
|
+
* Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
2755
|
+
* @summary List package pages
|
|
2756
|
+
* @param {string} environmentName Name of the environment
|
|
2757
|
+
* @param {string} packageName Name of the package
|
|
2758
|
+
* @param {*} [options] Override http request option.
|
|
2759
|
+
* @throws {RequiredError}
|
|
2760
|
+
* @memberof PagesApi
|
|
2761
|
+
*/
|
|
2762
|
+
listPages(r, e, t) {
|
|
2763
|
+
return F(this.configuration).listPages(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
3087
2764
|
}
|
|
3088
2765
|
}
|
|
3089
|
-
const
|
|
2766
|
+
const me = function(l) {
|
|
3090
2767
|
return {
|
|
3091
2768
|
/**
|
|
3092
2769
|
* Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
@@ -3095,12 +2772,12 @@ const de = function(l) {
|
|
|
3095
2772
|
* @throws {RequiredError}
|
|
3096
2773
|
*/
|
|
3097
2774
|
getStatus: async (r = {}) => {
|
|
3098
|
-
const
|
|
3099
|
-
let
|
|
3100
|
-
l && (
|
|
3101
|
-
const n = { method: "GET", ...
|
|
2775
|
+
const e = "/status", t = new URL(e, g);
|
|
2776
|
+
let a;
|
|
2777
|
+
l && (a = l.baseOptions);
|
|
2778
|
+
const n = { method: "GET", ...a, ...r }, o = {};
|
|
3102
2779
|
v(t, {});
|
|
3103
|
-
let c =
|
|
2780
|
+
let c = a && a.headers ? a.headers : {};
|
|
3104
2781
|
return n.headers = { ...o, ...c, ...r.headers }, {
|
|
3105
2782
|
url: O(t),
|
|
3106
2783
|
options: n
|
|
@@ -3108,7 +2785,7 @@ const de = function(l) {
|
|
|
3108
2785
|
}
|
|
3109
2786
|
};
|
|
3110
2787
|
}, z = function(l) {
|
|
3111
|
-
const r =
|
|
2788
|
+
const r = me(l);
|
|
3112
2789
|
return {
|
|
3113
2790
|
/**
|
|
3114
2791
|
* Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
@@ -3116,12 +2793,12 @@ const de = function(l) {
|
|
|
3116
2793
|
* @param {*} [options] Override http request option.
|
|
3117
2794
|
* @throws {RequiredError}
|
|
3118
2795
|
*/
|
|
3119
|
-
async getStatus(
|
|
3120
|
-
const t = await r.getStatus(
|
|
2796
|
+
async getStatus(e) {
|
|
2797
|
+
const t = await r.getStatus(e), a = l?.serverIndex ?? 0, n = V["PublisherApi.getStatus"]?.[a]?.url;
|
|
3121
2798
|
return (o, s) => b(t, h, u, l)(o, n || s);
|
|
3122
2799
|
}
|
|
3123
2800
|
};
|
|
3124
|
-
}, Je = function(l, r,
|
|
2801
|
+
}, Je = function(l, r, e) {
|
|
3125
2802
|
const t = z(l);
|
|
3126
2803
|
return {
|
|
3127
2804
|
/**
|
|
@@ -3130,12 +2807,12 @@ const de = function(l) {
|
|
|
3130
2807
|
* @param {*} [options] Override http request option.
|
|
3131
2808
|
* @throws {RequiredError}
|
|
3132
2809
|
*/
|
|
3133
|
-
getStatus(
|
|
3134
|
-
return t.getStatus(
|
|
2810
|
+
getStatus(a) {
|
|
2811
|
+
return t.getStatus(a).then((n) => n(e, r));
|
|
3135
2812
|
}
|
|
3136
2813
|
};
|
|
3137
2814
|
};
|
|
3138
|
-
class he extends
|
|
2815
|
+
class he extends y {
|
|
3139
2816
|
/**
|
|
3140
2817
|
* Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
3141
2818
|
* @summary Get server status and health information
|
|
@@ -3144,7 +2821,7 @@ class he extends k {
|
|
|
3144
2821
|
* @memberof PublisherApi
|
|
3145
2822
|
*/
|
|
3146
2823
|
getStatus(r) {
|
|
3147
|
-
return z(this.configuration).getStatus(r).then((
|
|
2824
|
+
return z(this.configuration).getStatus(r).then((e) => e(this.axios, this.basePath));
|
|
3148
2825
|
}
|
|
3149
2826
|
}
|
|
3150
2827
|
const ue = function(l) {
|
|
@@ -3156,12 +2833,12 @@ const ue = function(l) {
|
|
|
3156
2833
|
* @throws {RequiredError}
|
|
3157
2834
|
*/
|
|
3158
2835
|
getWatchStatus: async (r = {}) => {
|
|
3159
|
-
const
|
|
3160
|
-
let
|
|
3161
|
-
l && (
|
|
3162
|
-
const n = { method: "GET", ...
|
|
2836
|
+
const e = "/watch-mode/status", t = new URL(e, g);
|
|
2837
|
+
let a;
|
|
2838
|
+
l && (a = l.baseOptions);
|
|
2839
|
+
const n = { method: "GET", ...a, ...r }, o = {};
|
|
3163
2840
|
v(t, {});
|
|
3164
|
-
let c =
|
|
2841
|
+
let c = a && a.headers ? a.headers : {};
|
|
3165
2842
|
return n.headers = { ...o, ...c, ...r.headers }, {
|
|
3166
2843
|
url: O(t),
|
|
3167
2844
|
options: n
|
|
@@ -3174,16 +2851,16 @@ const ue = function(l) {
|
|
|
3174
2851
|
* @param {*} [options] Override http request option.
|
|
3175
2852
|
* @throws {RequiredError}
|
|
3176
2853
|
*/
|
|
3177
|
-
startWatching: async (r,
|
|
3178
|
-
|
|
3179
|
-
const t = "/watch-mode/start",
|
|
2854
|
+
startWatching: async (r, e = {}) => {
|
|
2855
|
+
d("startWatching", "startWatchRequest", r);
|
|
2856
|
+
const t = "/watch-mode/start", a = new URL(t, g);
|
|
3180
2857
|
let n;
|
|
3181
2858
|
l && (n = l.baseOptions);
|
|
3182
|
-
const o = { method: "POST", ...n, ...
|
|
3183
|
-
s["Content-Type"] = "application/json", v(
|
|
2859
|
+
const o = { method: "POST", ...n, ...e }, s = {}, c = {};
|
|
2860
|
+
s["Content-Type"] = "application/json", v(a, c);
|
|
3184
2861
|
let i = n && n.headers ? n.headers : {};
|
|
3185
|
-
return o.headers = { ...s, ...i, ...
|
|
3186
|
-
url: O(
|
|
2862
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = I(r, o, l), {
|
|
2863
|
+
url: O(a),
|
|
3187
2864
|
options: o
|
|
3188
2865
|
};
|
|
3189
2866
|
},
|
|
@@ -3194,19 +2871,40 @@ const ue = function(l) {
|
|
|
3194
2871
|
* @throws {RequiredError}
|
|
3195
2872
|
*/
|
|
3196
2873
|
stopWatching: async (r = {}) => {
|
|
3197
|
-
const
|
|
3198
|
-
let
|
|
3199
|
-
l && (
|
|
3200
|
-
const n = { method: "POST", ...
|
|
2874
|
+
const e = "/watch-mode/stop", t = new URL(e, g);
|
|
2875
|
+
let a;
|
|
2876
|
+
l && (a = l.baseOptions);
|
|
2877
|
+
const n = { method: "POST", ...a, ...r }, o = {};
|
|
3201
2878
|
v(t, {});
|
|
3202
|
-
let c =
|
|
2879
|
+
let c = a && a.headers ? a.headers : {};
|
|
3203
2880
|
return n.headers = { ...o, ...c, ...r.headers }, {
|
|
3204
2881
|
url: O(t),
|
|
3205
2882
|
options: n
|
|
3206
2883
|
};
|
|
2884
|
+
},
|
|
2885
|
+
/**
|
|
2886
|
+
* Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
|
|
2887
|
+
* @summary Stream package change events (SSE)
|
|
2888
|
+
* @param {string} environmentName Name of the environment
|
|
2889
|
+
* @param {string} packageName Name of the package
|
|
2890
|
+
* @param {*} [options] Override http request option.
|
|
2891
|
+
* @throws {RequiredError}
|
|
2892
|
+
*/
|
|
2893
|
+
streamPackageEvents: async (r, e, t = {}) => {
|
|
2894
|
+
d("streamPackageEvents", "environmentName", r), d("streamPackageEvents", "packageName", e);
|
|
2895
|
+
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, g);
|
|
2896
|
+
let o;
|
|
2897
|
+
l && (o = l.baseOptions);
|
|
2898
|
+
const s = { method: "GET", ...o, ...t }, c = {};
|
|
2899
|
+
v(n, {});
|
|
2900
|
+
let p = o && o.headers ? o.headers : {};
|
|
2901
|
+
return s.headers = { ...c, ...p, ...t.headers }, {
|
|
2902
|
+
url: O(n),
|
|
2903
|
+
options: s
|
|
2904
|
+
};
|
|
3207
2905
|
}
|
|
3208
2906
|
};
|
|
3209
|
-
},
|
|
2907
|
+
}, T = function(l) {
|
|
3210
2908
|
const r = ue(l);
|
|
3211
2909
|
return {
|
|
3212
2910
|
/**
|
|
@@ -3215,8 +2913,8 @@ const ue = function(l) {
|
|
|
3215
2913
|
* @param {*} [options] Override http request option.
|
|
3216
2914
|
* @throws {RequiredError}
|
|
3217
2915
|
*/
|
|
3218
|
-
async getWatchStatus(
|
|
3219
|
-
const t = await r.getWatchStatus(
|
|
2916
|
+
async getWatchStatus(e) {
|
|
2917
|
+
const t = await r.getWatchStatus(e), a = l?.serverIndex ?? 0, n = V["WatchModeApi.getWatchStatus"]?.[a]?.url;
|
|
3220
2918
|
return (o, s) => b(t, h, u, l)(o, n || s);
|
|
3221
2919
|
},
|
|
3222
2920
|
/**
|
|
@@ -3226,9 +2924,9 @@ const ue = function(l) {
|
|
|
3226
2924
|
* @param {*} [options] Override http request option.
|
|
3227
2925
|
* @throws {RequiredError}
|
|
3228
2926
|
*/
|
|
3229
|
-
async startWatching(
|
|
3230
|
-
const
|
|
3231
|
-
return (s, c) => b(
|
|
2927
|
+
async startWatching(e, t) {
|
|
2928
|
+
const a = await r.startWatching(e, t), n = l?.serverIndex ?? 0, o = V["WatchModeApi.startWatching"]?.[n]?.url;
|
|
2929
|
+
return (s, c) => b(a, h, u, l)(s, o || c);
|
|
3232
2930
|
},
|
|
3233
2931
|
/**
|
|
3234
2932
|
* Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
|
|
@@ -3236,13 +2934,25 @@ const ue = function(l) {
|
|
|
3236
2934
|
* @param {*} [options] Override http request option.
|
|
3237
2935
|
* @throws {RequiredError}
|
|
3238
2936
|
*/
|
|
3239
|
-
async stopWatching(
|
|
3240
|
-
const t = await r.stopWatching(
|
|
2937
|
+
async stopWatching(e) {
|
|
2938
|
+
const t = await r.stopWatching(e), a = l?.serverIndex ?? 0, n = V["WatchModeApi.stopWatching"]?.[a]?.url;
|
|
3241
2939
|
return (o, s) => b(t, h, u, l)(o, n || s);
|
|
2940
|
+
},
|
|
2941
|
+
/**
|
|
2942
|
+
* Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
|
|
2943
|
+
* @summary Stream package change events (SSE)
|
|
2944
|
+
* @param {string} environmentName Name of the environment
|
|
2945
|
+
* @param {string} packageName Name of the package
|
|
2946
|
+
* @param {*} [options] Override http request option.
|
|
2947
|
+
* @throws {RequiredError}
|
|
2948
|
+
*/
|
|
2949
|
+
async streamPackageEvents(e, t, a) {
|
|
2950
|
+
const n = await r.streamPackageEvents(e, t, a), o = l?.serverIndex ?? 0, s = V["WatchModeApi.streamPackageEvents"]?.[o]?.url;
|
|
2951
|
+
return (c, i) => b(n, h, u, l)(c, s || i);
|
|
3242
2952
|
}
|
|
3243
2953
|
};
|
|
3244
|
-
}, Ke = function(l, r,
|
|
3245
|
-
const t =
|
|
2954
|
+
}, Ke = function(l, r, e) {
|
|
2955
|
+
const t = T(l);
|
|
3246
2956
|
return {
|
|
3247
2957
|
/**
|
|
3248
2958
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -3250,8 +2960,8 @@ const ue = function(l) {
|
|
|
3250
2960
|
* @param {*} [options] Override http request option.
|
|
3251
2961
|
* @throws {RequiredError}
|
|
3252
2962
|
*/
|
|
3253
|
-
getWatchStatus(
|
|
3254
|
-
return t.getWatchStatus(
|
|
2963
|
+
getWatchStatus(a) {
|
|
2964
|
+
return t.getWatchStatus(a).then((n) => n(e, r));
|
|
3255
2965
|
},
|
|
3256
2966
|
/**
|
|
3257
2967
|
* Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
|
|
@@ -3260,8 +2970,8 @@ const ue = function(l) {
|
|
|
3260
2970
|
* @param {*} [options] Override http request option.
|
|
3261
2971
|
* @throws {RequiredError}
|
|
3262
2972
|
*/
|
|
3263
|
-
startWatching(
|
|
3264
|
-
return t.startWatching(
|
|
2973
|
+
startWatching(a, n) {
|
|
2974
|
+
return t.startWatching(a, n).then((o) => o(e, r));
|
|
3265
2975
|
},
|
|
3266
2976
|
/**
|
|
3267
2977
|
* Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
|
|
@@ -3269,12 +2979,23 @@ const ue = function(l) {
|
|
|
3269
2979
|
* @param {*} [options] Override http request option.
|
|
3270
2980
|
* @throws {RequiredError}
|
|
3271
2981
|
*/
|
|
3272
|
-
stopWatching(
|
|
3273
|
-
return t.stopWatching(
|
|
2982
|
+
stopWatching(a) {
|
|
2983
|
+
return t.stopWatching(a).then((n) => n(e, r));
|
|
2984
|
+
},
|
|
2985
|
+
/**
|
|
2986
|
+
* Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
|
|
2987
|
+
* @summary Stream package change events (SSE)
|
|
2988
|
+
* @param {string} environmentName Name of the environment
|
|
2989
|
+
* @param {string} packageName Name of the package
|
|
2990
|
+
* @param {*} [options] Override http request option.
|
|
2991
|
+
* @throws {RequiredError}
|
|
2992
|
+
*/
|
|
2993
|
+
streamPackageEvents(a, n, o) {
|
|
2994
|
+
return t.streamPackageEvents(a, n, o).then((s) => s(e, r));
|
|
3274
2995
|
}
|
|
3275
2996
|
};
|
|
3276
2997
|
};
|
|
3277
|
-
class Pe extends
|
|
2998
|
+
class Pe extends y {
|
|
3278
2999
|
/**
|
|
3279
3000
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
3280
3001
|
* @summary Get watch mode status
|
|
@@ -3283,7 +3004,7 @@ class Pe extends k {
|
|
|
3283
3004
|
* @memberof WatchModeApi
|
|
3284
3005
|
*/
|
|
3285
3006
|
getWatchStatus(r) {
|
|
3286
|
-
return
|
|
3007
|
+
return T(this.configuration).getWatchStatus(r).then((e) => e(this.axios, this.basePath));
|
|
3287
3008
|
}
|
|
3288
3009
|
/**
|
|
3289
3010
|
* Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
|
|
@@ -3293,8 +3014,8 @@ class Pe extends k {
|
|
|
3293
3014
|
* @throws {RequiredError}
|
|
3294
3015
|
* @memberof WatchModeApi
|
|
3295
3016
|
*/
|
|
3296
|
-
startWatching(r,
|
|
3297
|
-
return
|
|
3017
|
+
startWatching(r, e) {
|
|
3018
|
+
return T(this.configuration).startWatching(r, e).then((t) => t(this.axios, this.basePath));
|
|
3298
3019
|
}
|
|
3299
3020
|
/**
|
|
3300
3021
|
* Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
|
|
@@ -3304,10 +3025,22 @@ class Pe extends k {
|
|
|
3304
3025
|
* @memberof WatchModeApi
|
|
3305
3026
|
*/
|
|
3306
3027
|
stopWatching(r) {
|
|
3307
|
-
return
|
|
3028
|
+
return T(this.configuration).stopWatching(r).then((e) => e(this.axios, this.basePath));
|
|
3029
|
+
}
|
|
3030
|
+
/**
|
|
3031
|
+
* Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
|
|
3032
|
+
* @summary Stream package change events (SSE)
|
|
3033
|
+
* @param {string} environmentName Name of the environment
|
|
3034
|
+
* @param {string} packageName Name of the package
|
|
3035
|
+
* @param {*} [options] Override http request option.
|
|
3036
|
+
* @throws {RequiredError}
|
|
3037
|
+
* @memberof WatchModeApi
|
|
3038
|
+
*/
|
|
3039
|
+
streamPackageEvents(r, e, t) {
|
|
3040
|
+
return T(this.configuration).streamPackageEvents(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
3308
3041
|
}
|
|
3309
3042
|
}
|
|
3310
|
-
class
|
|
3043
|
+
class Ve {
|
|
3311
3044
|
/**
|
|
3312
3045
|
* parameter for apiKey security
|
|
3313
3046
|
* @param name security name
|
|
@@ -3383,11 +3116,11 @@ class ge {
|
|
|
3383
3116
|
* @return True if the given MIME is JSON, false otherwise.
|
|
3384
3117
|
*/
|
|
3385
3118
|
isJsonMime(r) {
|
|
3386
|
-
const
|
|
3387
|
-
return r !== null && (
|
|
3119
|
+
const e = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
|
|
3120
|
+
return r !== null && (e.test(r) || r.toLowerCase() === "application/json-patch+json");
|
|
3388
3121
|
}
|
|
3389
3122
|
}
|
|
3390
|
-
const
|
|
3123
|
+
const ge = new L({
|
|
3391
3124
|
defaultOptions: {
|
|
3392
3125
|
queries: {
|
|
3393
3126
|
retry: !1,
|
|
@@ -3400,9 +3133,9 @@ const Ve = new L({
|
|
|
3400
3133
|
}
|
|
3401
3134
|
});
|
|
3402
3135
|
h.defaults.baseURL || (h.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
3403
|
-
const j =
|
|
3404
|
-
const
|
|
3405
|
-
baseURL: l ||
|
|
3136
|
+
const j = W(void 0), ve = (l, r) => {
|
|
3137
|
+
const e = `${window.location.protocol}//${window.location.host}/api/v0`, t = h.create({
|
|
3138
|
+
baseURL: l || e,
|
|
3406
3139
|
withCredentials: !0,
|
|
3407
3140
|
timeout: 6e5
|
|
3408
3141
|
});
|
|
@@ -3410,127 +3143,128 @@ const j = D(void 0), ve = (l, r) => {
|
|
|
3410
3143
|
const o = await r?.();
|
|
3411
3144
|
return n.headers.Authorization = o || "", n;
|
|
3412
3145
|
});
|
|
3413
|
-
const
|
|
3146
|
+
const a = new Ve({ basePath: e });
|
|
3414
3147
|
return {
|
|
3415
|
-
models: new
|
|
3416
|
-
publisher: new he(
|
|
3417
|
-
environments: new ae(
|
|
3418
|
-
packages: new
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3148
|
+
models: new oe(a, e, t),
|
|
3149
|
+
publisher: new he(a, e, t),
|
|
3150
|
+
environments: new ae(a, e, t),
|
|
3151
|
+
packages: new ie(a, e, t),
|
|
3152
|
+
pages: new de(a, e, t),
|
|
3153
|
+
notebooks: new ce(a, e, t),
|
|
3154
|
+
connections: new J(a, e, t),
|
|
3155
|
+
databases: new Z(a, e, t),
|
|
3156
|
+
materializations: new ne(
|
|
3424
3157
|
a,
|
|
3158
|
+
e,
|
|
3425
3159
|
t
|
|
3426
3160
|
),
|
|
3427
|
-
|
|
3428
|
-
watchMode: new Pe(e, a, t)
|
|
3161
|
+
watchMode: new Pe(a, e, t)
|
|
3429
3162
|
};
|
|
3430
|
-
},
|
|
3163
|
+
}, Xe = ({
|
|
3431
3164
|
children: l,
|
|
3432
3165
|
getAccessToken: r,
|
|
3433
|
-
baseURL:
|
|
3166
|
+
baseURL: e,
|
|
3434
3167
|
mutable: t
|
|
3435
3168
|
}) => {
|
|
3436
|
-
const
|
|
3437
|
-
() => ve(
|
|
3438
|
-
[
|
|
3439
|
-
), n =
|
|
3440
|
-
|
|
3441
|
-
let
|
|
3169
|
+
const a = G(
|
|
3170
|
+
() => ve(e, r),
|
|
3171
|
+
[e, r]
|
|
3172
|
+
), n = e || `${window.location.protocol}//${window.location.host}/api/v0`, [o, s] = $(t), [c, i] = $(!0);
|
|
3173
|
+
f(() => {
|
|
3174
|
+
let m = !0;
|
|
3442
3175
|
return (async () => {
|
|
3443
3176
|
try {
|
|
3444
|
-
const
|
|
3445
|
-
if (
|
|
3446
|
-
const C =
|
|
3177
|
+
const k = await a.publisher.getStatus();
|
|
3178
|
+
if (m) {
|
|
3179
|
+
const C = k.data?.frozenConfig;
|
|
3447
3180
|
let A;
|
|
3448
3181
|
C ? A = !1 : t === void 0 ? A = !0 : A = t, s(A), i(!1);
|
|
3449
3182
|
}
|
|
3450
|
-
} catch (
|
|
3451
|
-
console.error("Failed to fetch publisher status:",
|
|
3183
|
+
} catch (k) {
|
|
3184
|
+
console.error("Failed to fetch publisher status:", k), m && (s(t), i(!1));
|
|
3452
3185
|
}
|
|
3453
3186
|
})(), () => {
|
|
3454
|
-
|
|
3187
|
+
m = !1;
|
|
3455
3188
|
};
|
|
3456
|
-
}, [
|
|
3189
|
+
}, [a, t]);
|
|
3457
3190
|
const p = {
|
|
3458
3191
|
server: n,
|
|
3459
3192
|
getAccessToken: r,
|
|
3460
|
-
apiClients:
|
|
3193
|
+
apiClients: a,
|
|
3461
3194
|
mutable: o,
|
|
3462
3195
|
isLoadingStatus: c
|
|
3463
3196
|
};
|
|
3464
|
-
return /* @__PURE__ */
|
|
3465
|
-
},
|
|
3466
|
-
const l =
|
|
3197
|
+
return /* @__PURE__ */ Q(H, { client: ge, children: /* @__PURE__ */ Q(j.Provider, { value: p, children: l }) });
|
|
3198
|
+
}, Ze = () => {
|
|
3199
|
+
const l = D(j);
|
|
3467
3200
|
if (l === void 0)
|
|
3468
3201
|
throw new Error("useServer must be used within a ServerProvider");
|
|
3469
3202
|
return l;
|
|
3470
3203
|
};
|
|
3471
3204
|
export {
|
|
3472
|
-
|
|
3473
|
-
|
|
3205
|
+
F as $,
|
|
3206
|
+
ke as A,
|
|
3474
3207
|
ne as B,
|
|
3475
3208
|
Ce as C,
|
|
3476
3209
|
Re as D,
|
|
3477
3210
|
ee as E,
|
|
3478
3211
|
Ue as F,
|
|
3479
|
-
|
|
3212
|
+
De as G,
|
|
3480
3213
|
re as H,
|
|
3481
|
-
|
|
3482
|
-
|
|
3214
|
+
U as I,
|
|
3215
|
+
We as J,
|
|
3483
3216
|
oe as K,
|
|
3484
3217
|
Te as L,
|
|
3485
3218
|
we as M,
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3219
|
+
Ee as N,
|
|
3220
|
+
se as O,
|
|
3221
|
+
Qe as P,
|
|
3222
|
+
E as Q,
|
|
3223
|
+
$e as R,
|
|
3224
|
+
Xe as S,
|
|
3225
|
+
Ge as T,
|
|
3226
|
+
ce as U,
|
|
3227
|
+
fe as V,
|
|
3228
|
+
le as W,
|
|
3229
|
+
R as X,
|
|
3230
|
+
_e as Y,
|
|
3231
|
+
ie as Z,
|
|
3232
|
+
pe as _,
|
|
3233
|
+
ye as a,
|
|
3234
|
+
Ye as a0,
|
|
3502
3235
|
de as a1,
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3236
|
+
me as a2,
|
|
3237
|
+
z as a3,
|
|
3238
|
+
Je as a4,
|
|
3239
|
+
he as a5,
|
|
3240
|
+
ue as a6,
|
|
3241
|
+
T as a7,
|
|
3242
|
+
Ke as a8,
|
|
3243
|
+
Pe as a9,
|
|
3244
|
+
Ve as aa,
|
|
3511
3245
|
Ae as b,
|
|
3512
3246
|
xe as c,
|
|
3513
3247
|
Ne as d,
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3248
|
+
Me as e,
|
|
3249
|
+
Be as f,
|
|
3250
|
+
ge as g,
|
|
3251
|
+
Y as h,
|
|
3518
3252
|
S as i,
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3253
|
+
qe as j,
|
|
3254
|
+
J as k,
|
|
3255
|
+
K as l,
|
|
3522
3256
|
B as m,
|
|
3523
|
-
|
|
3524
|
-
|
|
3257
|
+
Fe as n,
|
|
3258
|
+
ze as o,
|
|
3525
3259
|
X as p,
|
|
3526
|
-
|
|
3527
|
-
|
|
3260
|
+
q,
|
|
3261
|
+
je as r,
|
|
3528
3262
|
Z as s,
|
|
3529
3263
|
x as t,
|
|
3530
|
-
|
|
3531
|
-
|
|
3264
|
+
Ze as u,
|
|
3265
|
+
Le as v,
|
|
3532
3266
|
ae as w,
|
|
3533
3267
|
te as x,
|
|
3534
|
-
|
|
3535
|
-
|
|
3268
|
+
N as y,
|
|
3269
|
+
He as z
|
|
3536
3270
|
};
|