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