@malloy-publisher/sdk 0.0.171 → 0.0.173
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-B3JEKslr.es.js → ServerProvider-DXWYRUEP.es.js} +87 -82
- package/dist/ServerProvider-s3PckSTX.cjs.js +1 -0
- package/dist/client/api.d.ts +68 -7
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +40 -39
- package/dist/components/Connections/common.d.ts +11 -2
- package/dist/components/Project/ConnectionExplorer.d.ts +3 -1
- package/dist/index.cjs.js +67 -67
- package/dist/index.es.js +4781 -4658
- package/package.json +1 -1
- package/src/components/Connections/AddConnectionDialog.tsx +64 -13
- package/src/components/Connections/EditConnectionDialog.tsx +72 -17
- package/src/components/Connections/common.ts +65 -0
- package/src/components/Package/Connections.tsx +11 -3
- package/src/components/Project/ConnectionExplorer.tsx +49 -18
- package/dist/ServerProvider-DqcKomsp.cjs.js +0 -1
|
@@ -41,15 +41,19 @@ const O = function(c, ...a) {
|
|
|
41
41
|
Snowflake: "snowflake",
|
|
42
42
|
Postgres: "postgres",
|
|
43
43
|
Gcs: "gcs",
|
|
44
|
-
S3: "s3"
|
|
44
|
+
S3: "s3",
|
|
45
|
+
Azure: "azure"
|
|
45
46
|
}, be = {
|
|
47
|
+
ServicePrincipal: "service_principal",
|
|
48
|
+
SasToken: "sas_token"
|
|
49
|
+
}, ge = {
|
|
46
50
|
Error: "error",
|
|
47
51
|
Warn: "warn",
|
|
48
52
|
Debug: "debug"
|
|
49
|
-
},
|
|
53
|
+
}, Se = {
|
|
50
54
|
Success: "success",
|
|
51
55
|
Error: "error"
|
|
52
|
-
},
|
|
56
|
+
}, ye = {
|
|
53
57
|
Postgres: "postgres",
|
|
54
58
|
Bigquery: "bigquery",
|
|
55
59
|
Snowflake: "snowflake",
|
|
@@ -58,21 +62,21 @@ const O = function(c, ...a) {
|
|
|
58
62
|
Duckdb: "duckdb",
|
|
59
63
|
Motherduck: "motherduck",
|
|
60
64
|
Ducklake: "ducklake"
|
|
61
|
-
},
|
|
65
|
+
}, Ce = {
|
|
62
66
|
Ok: "ok",
|
|
63
67
|
Failed: "failed"
|
|
64
|
-
},
|
|
68
|
+
}, je = {
|
|
65
69
|
Embedded: "embedded",
|
|
66
70
|
Materialized: "materialized"
|
|
67
|
-
},
|
|
71
|
+
}, xe = {
|
|
68
72
|
Debug: "debug",
|
|
69
73
|
Info: "info",
|
|
70
74
|
Warn: "warn",
|
|
71
75
|
Error: "error"
|
|
72
|
-
},
|
|
76
|
+
}, Ae = {
|
|
73
77
|
Markdown: "markdown",
|
|
74
78
|
Code: "code"
|
|
75
|
-
},
|
|
79
|
+
}, ke = {
|
|
76
80
|
Markdown: "markdown",
|
|
77
81
|
Code: "code"
|
|
78
82
|
}, Ne = {
|
|
@@ -617,7 +621,7 @@ const O = function(c, ...a) {
|
|
|
617
621
|
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
618
622
|
}
|
|
619
623
|
};
|
|
620
|
-
},
|
|
624
|
+
}, ve = function(c, a, e) {
|
|
621
625
|
const r = y(c);
|
|
622
626
|
return {
|
|
623
627
|
/**
|
|
@@ -1043,7 +1047,7 @@ const J = function(c) {
|
|
|
1043
1047
|
return (n, l) => g(t, u, m, c)(n, s || l);
|
|
1044
1048
|
}
|
|
1045
1049
|
};
|
|
1046
|
-
},
|
|
1050
|
+
}, Ie = function(c, a, e) {
|
|
1047
1051
|
const r = Q(c);
|
|
1048
1052
|
return {
|
|
1049
1053
|
/**
|
|
@@ -1058,7 +1062,7 @@ const J = function(c) {
|
|
|
1058
1062
|
}
|
|
1059
1063
|
};
|
|
1060
1064
|
};
|
|
1061
|
-
class
|
|
1065
|
+
class Re extends j {
|
|
1062
1066
|
/**
|
|
1063
1067
|
* Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
1064
1068
|
* @summary Test database connection configuration
|
|
@@ -1113,7 +1117,7 @@ const K = function(c) {
|
|
|
1113
1117
|
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
1114
1118
|
}
|
|
1115
1119
|
};
|
|
1116
|
-
},
|
|
1120
|
+
}, Ue = function(c, a, e) {
|
|
1117
1121
|
const r = B(c);
|
|
1118
1122
|
return {
|
|
1119
1123
|
/**
|
|
@@ -1130,7 +1134,7 @@ const K = function(c) {
|
|
|
1130
1134
|
}
|
|
1131
1135
|
};
|
|
1132
1136
|
};
|
|
1133
|
-
class
|
|
1137
|
+
class _ extends j {
|
|
1134
1138
|
/**
|
|
1135
1139
|
* 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.
|
|
1136
1140
|
* @summary List embedded databases
|
|
@@ -1148,7 +1152,7 @@ class X extends j {
|
|
|
1148
1152
|
const Y = function(c) {
|
|
1149
1153
|
return {
|
|
1150
1154
|
/**
|
|
1151
|
-
* Compiles Malloy source code in the context of a specific model
|
|
1155
|
+
* 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.
|
|
1152
1156
|
* @summary Compile Malloy source code
|
|
1153
1157
|
* @param {string} projectName Name of the project
|
|
1154
1158
|
* @param {string} packageName Name of the package
|
|
@@ -1239,11 +1243,11 @@ const Y = function(c) {
|
|
|
1239
1243
|
};
|
|
1240
1244
|
}
|
|
1241
1245
|
};
|
|
1242
|
-
},
|
|
1246
|
+
}, N = function(c) {
|
|
1243
1247
|
const a = Y(c);
|
|
1244
1248
|
return {
|
|
1245
1249
|
/**
|
|
1246
|
-
* Compiles Malloy source code in the context of a specific model
|
|
1250
|
+
* 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.
|
|
1247
1251
|
* @summary Compile Malloy source code
|
|
1248
1252
|
* @param {string} projectName Name of the project
|
|
1249
1253
|
* @param {string} packageName Name of the package
|
|
@@ -1298,11 +1302,11 @@ const Y = function(c) {
|
|
|
1298
1302
|
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
1299
1303
|
}
|
|
1300
1304
|
};
|
|
1301
|
-
},
|
|
1302
|
-
const r =
|
|
1305
|
+
}, we = function(c, a, e) {
|
|
1306
|
+
const r = N(c);
|
|
1303
1307
|
return {
|
|
1304
1308
|
/**
|
|
1305
|
-
* Compiles Malloy source code in the context of a specific model
|
|
1309
|
+
* 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.
|
|
1306
1310
|
* @summary Compile Malloy source code
|
|
1307
1311
|
* @param {string} projectName Name of the project
|
|
1308
1312
|
* @param {string} packageName Name of the package
|
|
@@ -1354,9 +1358,9 @@ const Y = function(c) {
|
|
|
1354
1358
|
}
|
|
1355
1359
|
};
|
|
1356
1360
|
};
|
|
1357
|
-
class
|
|
1361
|
+
class X extends j {
|
|
1358
1362
|
/**
|
|
1359
|
-
* Compiles Malloy source code in the context of a specific model
|
|
1363
|
+
* 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.
|
|
1360
1364
|
* @summary Compile Malloy source code
|
|
1361
1365
|
* @param {string} projectName Name of the project
|
|
1362
1366
|
* @param {string} packageName Name of the package
|
|
@@ -1367,7 +1371,7 @@ class _ extends j {
|
|
|
1367
1371
|
* @memberof ModelsApi
|
|
1368
1372
|
*/
|
|
1369
1373
|
compileModelSource(a, e, r, t, o) {
|
|
1370
|
-
return
|
|
1374
|
+
return N(this.configuration).compileModelSource(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
|
|
1371
1375
|
}
|
|
1372
1376
|
/**
|
|
1373
1377
|
* 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.
|
|
@@ -1381,7 +1385,7 @@ class _ extends j {
|
|
|
1381
1385
|
* @memberof ModelsApi
|
|
1382
1386
|
*/
|
|
1383
1387
|
executeQueryModel(a, e, r, t, o) {
|
|
1384
|
-
return
|
|
1388
|
+
return N(this.configuration).executeQueryModel(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
|
|
1385
1389
|
}
|
|
1386
1390
|
/**
|
|
1387
1391
|
* 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.
|
|
@@ -1395,7 +1399,7 @@ class _ extends j {
|
|
|
1395
1399
|
* @memberof ModelsApi
|
|
1396
1400
|
*/
|
|
1397
1401
|
getModel(a, e, r, t, o) {
|
|
1398
|
-
return
|
|
1402
|
+
return N(this.configuration).getModel(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
|
|
1399
1403
|
}
|
|
1400
1404
|
/**
|
|
1401
1405
|
* 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.
|
|
@@ -1408,7 +1412,7 @@ class _ extends j {
|
|
|
1408
1412
|
* @memberof ModelsApi
|
|
1409
1413
|
*/
|
|
1410
1414
|
listModels(a, e, r, t) {
|
|
1411
|
-
return
|
|
1415
|
+
return N(this.configuration).listModels(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
1412
1416
|
}
|
|
1413
1417
|
}
|
|
1414
1418
|
const Z = function(c) {
|
|
@@ -1431,8 +1435,8 @@ const Z = function(c) {
|
|
|
1431
1435
|
c && (i = c.baseOptions);
|
|
1432
1436
|
const p = { method: "GET", ...i, ...s }, h = {}, S = {};
|
|
1433
1437
|
o !== void 0 && (S.versionId = o), O(l, S);
|
|
1434
|
-
let
|
|
1435
|
-
return p.headers = { ...h, ...
|
|
1438
|
+
let k = i && i.headers ? i.headers : {};
|
|
1439
|
+
return p.headers = { ...h, ...k, ...s.headers }, {
|
|
1436
1440
|
url: b(l),
|
|
1437
1441
|
options: p
|
|
1438
1442
|
};
|
|
@@ -1529,7 +1533,7 @@ const Z = function(c) {
|
|
|
1529
1533
|
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
1530
1534
|
}
|
|
1531
1535
|
};
|
|
1532
|
-
},
|
|
1536
|
+
}, Te = function(c, a, e) {
|
|
1533
1537
|
const r = I(c);
|
|
1534
1538
|
return {
|
|
1535
1539
|
/**
|
|
@@ -1793,7 +1797,7 @@ const te = function(c) {
|
|
|
1793
1797
|
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
1794
1798
|
}
|
|
1795
1799
|
};
|
|
1796
|
-
},
|
|
1800
|
+
}, Qe = function(c, a, e) {
|
|
1797
1801
|
const r = x(c);
|
|
1798
1802
|
return {
|
|
1799
1803
|
/**
|
|
@@ -2082,7 +2086,7 @@ const re = function(c) {
|
|
|
2082
2086
|
return (l, i) => g(o, u, m, c)(l, n || i);
|
|
2083
2087
|
}
|
|
2084
2088
|
};
|
|
2085
|
-
},
|
|
2089
|
+
}, Be = function(c, a, e) {
|
|
2086
2090
|
const r = A(c);
|
|
2087
2091
|
return {
|
|
2088
2092
|
/**
|
|
@@ -2231,7 +2235,7 @@ const se = function(c) {
|
|
|
2231
2235
|
return (s, n) => g(r, u, m, c)(s, o || n);
|
|
2232
2236
|
}
|
|
2233
2237
|
};
|
|
2234
|
-
},
|
|
2238
|
+
}, qe = function(c, a, e) {
|
|
2235
2239
|
const r = q(c);
|
|
2236
2240
|
return {
|
|
2237
2241
|
/**
|
|
@@ -2351,7 +2355,7 @@ const ce = function(c) {
|
|
|
2351
2355
|
return (s, n) => g(r, u, m, c)(s, o || n);
|
|
2352
2356
|
}
|
|
2353
2357
|
};
|
|
2354
|
-
},
|
|
2358
|
+
}, Me = function(c, a, e) {
|
|
2355
2359
|
const r = R(c);
|
|
2356
2360
|
return {
|
|
2357
2361
|
/**
|
|
@@ -2520,16 +2524,16 @@ const pe = new F({
|
|
|
2520
2524
|
});
|
|
2521
2525
|
const t = new ie({ basePath: e });
|
|
2522
2526
|
return {
|
|
2523
|
-
models: new
|
|
2527
|
+
models: new X(t, e, r),
|
|
2524
2528
|
publisher: new ne(t, e, r),
|
|
2525
2529
|
projects: new oe(t, e, r),
|
|
2526
2530
|
packages: new ae(t, e, r),
|
|
2527
2531
|
notebooks: new ee(t, e, r),
|
|
2528
2532
|
connections: new z(t, e, r),
|
|
2529
|
-
databases: new
|
|
2533
|
+
databases: new _(t, e, r),
|
|
2530
2534
|
watchMode: new le(t, e, r)
|
|
2531
2535
|
};
|
|
2532
|
-
},
|
|
2536
|
+
}, $e = ({
|
|
2533
2537
|
children: c,
|
|
2534
2538
|
getAccessToken: a,
|
|
2535
2539
|
baseURL: e,
|
|
@@ -2543,14 +2547,14 @@ const pe = new F({
|
|
|
2543
2547
|
let h = !0;
|
|
2544
2548
|
return (async () => {
|
|
2545
2549
|
try {
|
|
2546
|
-
const
|
|
2550
|
+
const k = await t.publisher.getStatus();
|
|
2547
2551
|
if (h) {
|
|
2548
|
-
const $ =
|
|
2552
|
+
const $ = k.data?.frozenConfig;
|
|
2549
2553
|
let v;
|
|
2550
2554
|
$ ? v = !1 : r === void 0 ? v = !0 : v = r, n(v), i(!1);
|
|
2551
2555
|
}
|
|
2552
|
-
} catch (
|
|
2553
|
-
console.error("Failed to fetch publisher status:",
|
|
2556
|
+
} catch (k) {
|
|
2557
|
+
console.error("Failed to fetch publisher status:", k), h && (n(r), i(!1));
|
|
2554
2558
|
}
|
|
2555
2559
|
})(), () => {
|
|
2556
2560
|
h = !1;
|
|
@@ -2564,7 +2568,7 @@ const pe = new F({
|
|
|
2564
2568
|
isLoadingStatus: l
|
|
2565
2569
|
};
|
|
2566
2570
|
return /* @__PURE__ */ w(E, { client: pe, children: /* @__PURE__ */ w(M.Provider, { value: p, children: c }) });
|
|
2567
|
-
},
|
|
2571
|
+
}, Fe = () => {
|
|
2568
2572
|
const c = L(M);
|
|
2569
2573
|
if (c === void 0)
|
|
2570
2574
|
throw new Error("useServer must be used within a ServerProvider");
|
|
@@ -2572,53 +2576,54 @@ const pe = new F({
|
|
|
2572
2576
|
};
|
|
2573
2577
|
export {
|
|
2574
2578
|
Oe as A,
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2579
|
+
ee as B,
|
|
2580
|
+
ge as C,
|
|
2581
|
+
je as D,
|
|
2582
|
+
x as E,
|
|
2583
|
+
Qe as F,
|
|
2584
|
+
ae as G,
|
|
2585
|
+
re as H,
|
|
2586
|
+
A as I,
|
|
2587
|
+
Be as J,
|
|
2588
|
+
oe as K,
|
|
2589
|
+
xe as L,
|
|
2586
2590
|
Y as M,
|
|
2587
|
-
|
|
2588
|
-
|
|
2591
|
+
Ae as N,
|
|
2592
|
+
se as O,
|
|
2589
2593
|
te as P,
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2594
|
+
q as Q,
|
|
2595
|
+
qe as R,
|
|
2596
|
+
$e as S,
|
|
2597
|
+
ne as T,
|
|
2598
|
+
R as U,
|
|
2599
|
+
Me as V,
|
|
2596
2600
|
ce as W,
|
|
2597
|
-
|
|
2598
|
-
|
|
2601
|
+
le as X,
|
|
2602
|
+
ie as Y,
|
|
2603
|
+
be as a,
|
|
2599
2604
|
Se as b,
|
|
2600
2605
|
ye as c,
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2606
|
+
Ce as d,
|
|
2607
|
+
ke as e,
|
|
2608
|
+
Ne as f,
|
|
2604
2609
|
pe as g,
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2610
|
+
G as h,
|
|
2611
|
+
y as i,
|
|
2612
|
+
ve as j,
|
|
2613
|
+
z as k,
|
|
2614
|
+
J as l,
|
|
2615
|
+
Q as m,
|
|
2611
2616
|
Ie as n,
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2617
|
+
Re as o,
|
|
2618
|
+
K as p,
|
|
2619
|
+
B as q,
|
|
2620
|
+
Ue as r,
|
|
2621
|
+
_ as s,
|
|
2622
|
+
N as t,
|
|
2623
|
+
Fe as u,
|
|
2624
|
+
we as v,
|
|
2625
|
+
X as w,
|
|
2626
|
+
Z as x,
|
|
2627
|
+
I as y,
|
|
2628
|
+
Te as z
|
|
2624
2629
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const M=require("react/jsx-runtime"),q=require("@tanstack/react-query"),u=require("axios"),k=require("react"),m="http://localhost/api/v0".replace(/\/+$/,"");class A{constructor(a,e=m,r=u){this.basePath=e,this.axios=r,a&&(this.configuration=a,this.basePath=a.basePath??e)}configuration}class se extends Error{constructor(a,e){super(e),this.field=a,this.name="RequiredError"}}const P={},V="https://example.com",d=function(c,a,e){if(e==null)throw new se(a,`Required parameter ${a} was null or undefined when calling ${c}.`)};function T(c,a,e=""){a!=null&&(typeof a=="object"?Array.isArray(a)?a.forEach(r=>T(c,r,e)):Object.keys(a).forEach(r=>T(c,a[r],`${e}${e!==""?".":""}${r}`)):c.has(e)?c.append(e,a):c.set(e,a))}const b=function(c,...a){const e=new URLSearchParams(c.search);T(e,a),c.search=e.toString()},y=function(c,a,e){const r=typeof c!="string";return(r&&e&&e.isJsonMime?e.isJsonMime(a.headers["Content-Type"]):r)?JSON.stringify(c!==void 0?c:{}):c||""},O=function(c){return c.pathname+c.search+c.hash},g=function(c,a,e,r){return(t=a,o=e)=>{const s={...c.options,url:(t.defaults.baseURL?"":r?.basePath??o)+c.url};return t.request(s)}},ne={Bigquery:"bigquery",Snowflake:"snowflake",Postgres:"postgres",Gcs:"gcs",S3:"s3",Azure:"azure"},ce={ServicePrincipal:"service_principal",SasToken:"sas_token"},le={Error:"error",Warn:"warn",Debug:"debug"},ie={Success:"success",Error:"error"},pe={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Mysql:"mysql",Duckdb:"duckdb",Motherduck:"motherduck",Ducklake:"ducklake"},de={Ok:"ok",Failed:"failed"},he={Embedded:"embedded",Materialized:"materialized"},ue={Debug:"debug",Info:"info",Warn:"warn",Error:"error"},me={Markdown:"markdown",Code:"code"},Pe={Markdown:"markdown",Code:"code"},Ve={Initializing:"initializing",Serving:"serving",Draining:"draining"},B=function(c){return{createConnection:async(a,e,r,t={})=>{d("createConnection","projectName",a),d("createConnection","connectionName",e),d("createConnection","connection",r);const o="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"POST",...n,...t},i={},p={};i["Content-Type"]="application/json",b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},l.data=y(r,l,c),{url:O(s),options:l}},deleteConnection:async(a,e,r={})=>{d("deleteConnection","projectName",a),d("deleteConnection","connectionName",e);const t="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(t,V);let s;c&&(s=c.baseOptions);const n={method:"DELETE",...s,...r},l={};b(o,{});let p=s&&s.headers?s.headers:{};return n.headers={...l,...p,...r.headers},{url:O(o),options:n}},getConnection:async(a,e,r={})=>{d("getConnection","projectName",a),d("getConnection","connectionName",e);const t="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(t,V);let s;c&&(s=c.baseOptions);const n={method:"GET",...s,...r},l={};b(o,{});let p=s&&s.headers?s.headers:{};return n.headers={...l,...p,...r.headers},{url:O(o),options:n}},getQuerydata:async(a,e,r,t,o={})=>{d("getQuerydata","projectName",a),d("getQuerydata","connectionName",e);const s="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"GET",...l,...o},p={},h={};r!==void 0&&(h.sqlStatement=r),t!==void 0&&(h.options=t),b(n,h);let S=l&&l.headers?l.headers:{};return i.headers={...p,...S,...o.headers},{url:O(n),options:i}},getSqlsource:async(a,e,r,t={})=>{d("getSqlsource","projectName",a),d("getSqlsource","connectionName",e);const o="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"GET",...n,...t},i={},p={};r!==void 0&&(p.sqlStatement=r),b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},{url:O(s),options:l}},getTable:async(a,e,r,t,o={})=>{d("getTable","projectName",a),d("getTable","connectionName",e),d("getTable","schemaName",r),d("getTable","tablePath",t);const s="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))).replace("{schemaName}",encodeURIComponent(String(r))).replace("{tablePath}",encodeURIComponent(String(t))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"GET",...l,...o},p={};b(n,{});let S=l&&l.headers?l.headers:{};return i.headers={...p,...S,...o.headers},{url:O(n),options:i}},getTablesource:async(a,e,r,t,o={})=>{d("getTablesource","projectName",a),d("getTablesource","connectionName",e);const s="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"GET",...l,...o},p={},h={};r!==void 0&&(h.tableKey=r),t!==void 0&&(h.tablePath=t),b(n,h);let S=l&&l.headers?l.headers:{};return i.headers={...p,...S,...o.headers},{url:O(n),options:i}},getTemporarytable:async(a,e,r,t={})=>{d("getTemporarytable","projectName",a),d("getTemporarytable","connectionName",e);const o="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"GET",...n,...t},i={},p={};r!==void 0&&(p.sqlStatement=r),b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},{url:O(s),options:l}},listConnections:async(a,e={})=>{d("listConnections","projectName",a);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(a))),t=new URL(r,V);let o;c&&(o=c.baseOptions);const s={method:"GET",...o,...e},n={};b(t,{});let i=o&&o.headers?o.headers:{};return s.headers={...n,...i,...e.headers},{url:O(t),options:s}},listSchemas:async(a,e,r={})=>{d("listSchemas","projectName",a),d("listSchemas","connectionName",e);const t="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(t,V);let s;c&&(s=c.baseOptions);const n={method:"GET",...s,...r},l={};b(o,{});let p=s&&s.headers?s.headers:{};return n.headers={...l,...p,...r.headers},{url:O(o),options:n}},listTables:async(a,e,r,t={})=>{d("listTables","projectName",a),d("listTables","connectionName",e),d("listTables","schemaName",r);const o="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))).replace("{schemaName}",encodeURIComponent(String(r))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"GET",...n,...t},i={};b(s,{});let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},{url:O(s),options:l}},postQuerydata:async(a,e,r,t,o={})=>{d("postQuerydata","projectName",a),d("postQuerydata","connectionName",e),d("postQuerydata","postSqlsourceRequest",r);const s="/projects/{projectName}/connections/{connectionName}/sqlQuery".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"POST",...l,...o},p={},h={};t!==void 0&&(h.options=t),p["Content-Type"]="application/json",b(n,h);let S=l&&l.headers?l.headers:{};return i.headers={...p,...S,...o.headers},i.data=y(r,i,c),{url:O(n),options:i}},postSqlsource:async(a,e,r,t={})=>{d("postSqlsource","projectName",a),d("postSqlsource","connectionName",e),d("postSqlsource","postSqlsourceRequest",r);const o="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"POST",...n,...t},i={},p={};i["Content-Type"]="application/json",b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},l.data=y(r,l,c),{url:O(s),options:l}},postTemporarytable:async(a,e,r,t={})=>{d("postTemporarytable","projectName",a),d("postTemporarytable","connectionName",e),d("postTemporarytable","postSqlsourceRequest",r);const o="/projects/{projectName}/connections/{connectionName}/sqlTemporaryTable".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"POST",...n,...t},i={},p={};i["Content-Type"]="application/json",b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},l.data=y(r,l,c),{url:O(s),options:l}},updateConnection:async(a,e,r,t={})=>{d("updateConnection","projectName",a),d("updateConnection","connectionName",e),d("updateConnection","updateConnectionRequest",r);const o="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"PATCH",...n,...t},i={},p={};i["Content-Type"]="application/json",b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},l.data=y(r,l,c),{url:O(s),options:l}}}},C=function(c){const a=B(c);return{async createConnection(e,r,t,o){const s=await a.createConnection(e,r,t,o),n=c?.serverIndex??0,l=P["ConnectionsApi.createConnection"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)},async deleteConnection(e,r,t){const o=await a.deleteConnection(e,r,t),s=c?.serverIndex??0,n=P["ConnectionsApi.deleteConnection"]?.[s]?.url;return(l,i)=>g(o,u,m,c)(l,n||i)},async getConnection(e,r,t){const o=await a.getConnection(e,r,t),s=c?.serverIndex??0,n=P["ConnectionsApi.getConnection"]?.[s]?.url;return(l,i)=>g(o,u,m,c)(l,n||i)},async getQuerydata(e,r,t,o,s){const n=await a.getQuerydata(e,r,t,o,s),l=c?.serverIndex??0,i=P["ConnectionsApi.getQuerydata"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async getSqlsource(e,r,t,o){const s=await a.getSqlsource(e,r,t,o),n=c?.serverIndex??0,l=P["ConnectionsApi.getSqlsource"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)},async getTable(e,r,t,o,s){const n=await a.getTable(e,r,t,o,s),l=c?.serverIndex??0,i=P["ConnectionsApi.getTable"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async getTablesource(e,r,t,o,s){const n=await a.getTablesource(e,r,t,o,s),l=c?.serverIndex??0,i=P["ConnectionsApi.getTablesource"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async getTemporarytable(e,r,t,o){const s=await a.getTemporarytable(e,r,t,o),n=c?.serverIndex??0,l=P["ConnectionsApi.getTemporarytable"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)},async listConnections(e,r){const t=await a.listConnections(e,r),o=c?.serverIndex??0,s=P["ConnectionsApi.listConnections"]?.[o]?.url;return(n,l)=>g(t,u,m,c)(n,s||l)},async listSchemas(e,r,t){const o=await a.listSchemas(e,r,t),s=c?.serverIndex??0,n=P["ConnectionsApi.listSchemas"]?.[s]?.url;return(l,i)=>g(o,u,m,c)(l,n||i)},async listTables(e,r,t,o){const s=await a.listTables(e,r,t,o),n=c?.serverIndex??0,l=P["ConnectionsApi.listTables"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)},async postQuerydata(e,r,t,o,s){const n=await a.postQuerydata(e,r,t,o,s),l=c?.serverIndex??0,i=P["ConnectionsApi.postQuerydata"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async postSqlsource(e,r,t,o){const s=await a.postSqlsource(e,r,t,o),n=c?.serverIndex??0,l=P["ConnectionsApi.postSqlsource"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)},async postTemporarytable(e,r,t,o){const s=await a.postTemporarytable(e,r,t,o),n=c?.serverIndex??0,l=P["ConnectionsApi.postTemporarytable"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)},async updateConnection(e,r,t,o){const s=await a.updateConnection(e,r,t,o),n=c?.serverIndex??0,l=P["ConnectionsApi.updateConnection"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)}}},be=function(c,a,e){const r=C(c);return{createConnection(t,o,s,n){return r.createConnection(t,o,s,n).then(l=>l(e,a))},deleteConnection(t,o,s){return r.deleteConnection(t,o,s).then(n=>n(e,a))},getConnection(t,o,s){return r.getConnection(t,o,s).then(n=>n(e,a))},getQuerydata(t,o,s,n,l){return r.getQuerydata(t,o,s,n,l).then(i=>i(e,a))},getSqlsource(t,o,s,n){return r.getSqlsource(t,o,s,n).then(l=>l(e,a))},getTable(t,o,s,n,l){return r.getTable(t,o,s,n,l).then(i=>i(e,a))},getTablesource(t,o,s,n,l){return r.getTablesource(t,o,s,n,l).then(i=>i(e,a))},getTemporarytable(t,o,s,n){return r.getTemporarytable(t,o,s,n).then(l=>l(e,a))},listConnections(t,o){return r.listConnections(t,o).then(s=>s(e,a))},listSchemas(t,o,s){return r.listSchemas(t,o,s).then(n=>n(e,a))},listTables(t,o,s,n){return r.listTables(t,o,s,n).then(l=>l(e,a))},postQuerydata(t,o,s,n,l){return r.postQuerydata(t,o,s,n,l).then(i=>i(e,a))},postSqlsource(t,o,s,n){return r.postSqlsource(t,o,s,n).then(l=>l(e,a))},postTemporarytable(t,o,s,n){return r.postTemporarytable(t,o,s,n).then(l=>l(e,a))},updateConnection(t,o,s,n){return r.updateConnection(t,o,s,n).then(l=>l(e,a))}}};class $ extends A{createConnection(a,e,r,t){return C(this.configuration).createConnection(a,e,r,t).then(o=>o(this.axios,this.basePath))}deleteConnection(a,e,r){return C(this.configuration).deleteConnection(a,e,r).then(t=>t(this.axios,this.basePath))}getConnection(a,e,r){return C(this.configuration).getConnection(a,e,r).then(t=>t(this.axios,this.basePath))}getQuerydata(a,e,r,t,o){return C(this.configuration).getQuerydata(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}getSqlsource(a,e,r,t){return C(this.configuration).getSqlsource(a,e,r,t).then(o=>o(this.axios,this.basePath))}getTable(a,e,r,t,o){return C(this.configuration).getTable(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}getTablesource(a,e,r,t,o){return C(this.configuration).getTablesource(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}getTemporarytable(a,e,r,t){return C(this.configuration).getTemporarytable(a,e,r,t).then(o=>o(this.axios,this.basePath))}listConnections(a,e){return C(this.configuration).listConnections(a,e).then(r=>r(this.axios,this.basePath))}listSchemas(a,e,r){return C(this.configuration).listSchemas(a,e,r).then(t=>t(this.axios,this.basePath))}listTables(a,e,r,t){return C(this.configuration).listTables(a,e,r,t).then(o=>o(this.axios,this.basePath))}postQuerydata(a,e,r,t,o){return C(this.configuration).postQuerydata(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}postSqlsource(a,e,r,t){return C(this.configuration).postSqlsource(a,e,r,t).then(o=>o(this.axios,this.basePath))}postTemporarytable(a,e,r,t){return C(this.configuration).postTemporarytable(a,e,r,t).then(o=>o(this.axios,this.basePath))}updateConnection(a,e,r,t){return C(this.configuration).updateConnection(a,e,r,t).then(o=>o(this.axios,this.basePath))}}const E=function(c){return{testConnectionConfiguration:async(a,e={})=>{d("testConnectionConfiguration","connection",a);const r="/connections/test",t=new URL(r,V);let o;c&&(o=c.baseOptions);const s={method:"POST",...o,...e},n={},l={};n["Content-Type"]="application/json",b(t,l);let i=o&&o.headers?o.headers:{};return s.headers={...n,...i,...e.headers},s.data=y(a,s,c),{url:O(t),options:s}}}},w=function(c){const a=E(c);return{async testConnectionConfiguration(e,r){const t=await a.testConnectionConfiguration(e,r),o=c?.serverIndex??0,s=P["ConnectionsTestApi.testConnectionConfiguration"]?.[o]?.url;return(n,l)=>g(t,u,m,c)(n,s||l)}}},Oe=function(c,a,e){const r=w(c);return{testConnectionConfiguration(t,o){return r.testConnectionConfiguration(t,o).then(s=>s(e,a))}}};class ge extends A{testConnectionConfiguration(a,e){return w(this.configuration).testConnectionConfiguration(a,e).then(r=>r(this.axios,this.basePath))}}const L=function(c){return{listDatabases:async(a,e,r,t={})=>{d("listDatabases","projectName",a),d("listDatabases","packageName",e);const o="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"GET",...n,...t},i={},p={};r!==void 0&&(p.versionId=r),b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},{url:O(s),options:l}}}},Q=function(c){const a=L(c);return{async listDatabases(e,r,t,o){const s=await a.listDatabases(e,r,t,o),n=c?.serverIndex??0,l=P["DatabasesApi.listDatabases"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)}}},Se=function(c,a,e){const r=Q(c);return{listDatabases(t,o,s,n){return r.listDatabases(t,o,s,n).then(l=>l(e,a))}}};class H extends A{listDatabases(a,e,r,t){return Q(this.configuration).listDatabases(a,e,r,t).then(o=>o(this.axios,this.basePath))}}const W=function(c){return{compileModelSource:async(a,e,r,t,o={})=>{d("compileModelSource","projectName",a),d("compileModelSource","packageName",e),d("compileModelSource","path",r),d("compileModelSource","compileRequest",t);const s="/projects/{projectName}/packages/{packageName}/models/{path}/compile".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"POST",...l,...o},p={},h={};p["Content-Type"]="application/json",b(n,h);let S=l&&l.headers?l.headers:{};return i.headers={...p,...S,...o.headers},i.data=y(t,i,c),{url:O(n),options:i}},executeQueryModel:async(a,e,r,t,o={})=>{d("executeQueryModel","projectName",a),d("executeQueryModel","packageName",e),d("executeQueryModel","path",r),d("executeQueryModel","queryRequest",t);const s="/projects/{projectName}/packages/{packageName}/models/{path}/query".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"POST",...l,...o},p={},h={};p["Content-Type"]="application/json",b(n,h);let S=l&&l.headers?l.headers:{};return i.headers={...p,...S,...o.headers},i.data=y(t,i,c),{url:O(n),options:i}},getModel:async(a,e,r,t,o={})=>{d("getModel","projectName",a),d("getModel","packageName",e),d("getModel","path",r);const s="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"GET",...l,...o},p={},h={};t!==void 0&&(h.versionId=t),b(n,h);let S=l&&l.headers?l.headers:{};return i.headers={...p,...S,...o.headers},{url:O(n),options:i}},listModels:async(a,e,r,t={})=>{d("listModels","projectName",a),d("listModels","packageName",e);const o="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"GET",...n,...t},i={},p={};r!==void 0&&(p.versionId=r),b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},{url:O(s),options:l}}}},N=function(c){const a=W(c);return{async compileModelSource(e,r,t,o,s){const n=await a.compileModelSource(e,r,t,o,s),l=c?.serverIndex??0,i=P["ModelsApi.compileModelSource"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async executeQueryModel(e,r,t,o,s){const n=await a.executeQueryModel(e,r,t,o,s),l=c?.serverIndex??0,i=P["ModelsApi.executeQueryModel"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async getModel(e,r,t,o,s){const n=await a.getModel(e,r,t,o,s),l=c?.serverIndex??0,i=P["ModelsApi.getModel"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async listModels(e,r,t,o){const s=await a.listModels(e,r,t,o),n=c?.serverIndex??0,l=P["ModelsApi.listModels"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)}}},Ce=function(c,a,e){const r=N(c);return{compileModelSource(t,o,s,n,l){return r.compileModelSource(t,o,s,n,l).then(i=>i(e,a))},executeQueryModel(t,o,s,n,l){return r.executeQueryModel(t,o,s,n,l).then(i=>i(e,a))},getModel(t,o,s,n,l){return r.getModel(t,o,s,n,l).then(i=>i(e,a))},listModels(t,o,s,n){return r.listModels(t,o,s,n).then(l=>l(e,a))}}};class D extends A{compileModelSource(a,e,r,t,o){return N(this.configuration).compileModelSource(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}executeQueryModel(a,e,r,t,o){return N(this.configuration).executeQueryModel(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}getModel(a,e,r,t,o){return N(this.configuration).getModel(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}listModels(a,e,r,t){return N(this.configuration).listModels(a,e,r,t).then(o=>o(this.axios,this.basePath))}}const f=function(c){return{executeNotebookCell:async(a,e,r,t,o,s={})=>{d("executeNotebookCell","projectName",a),d("executeNotebookCell","packageName",e),d("executeNotebookCell","path",r),d("executeNotebookCell","cellIndex",t);const n="/projects/{projectName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))).replace("{cellIndex}",encodeURIComponent(String(t))),l=new URL(n,V);let i;c&&(i=c.baseOptions);const p={method:"GET",...i,...s},h={},S={};o!==void 0&&(S.versionId=o),b(l,S);let v=i&&i.headers?i.headers:{};return p.headers={...h,...v,...s.headers},{url:O(l),options:p}},getNotebook:async(a,e,r,t,o={})=>{d("getNotebook","projectName",a),d("getNotebook","packageName",e),d("getNotebook","path",r);const s="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"GET",...l,...o},p={},h={};t!==void 0&&(h.versionId=t),b(n,h);let S=l&&l.headers?l.headers:{};return i.headers={...p,...S,...o.headers},{url:O(n),options:i}},listNotebooks:async(a,e,r,t={})=>{d("listNotebooks","projectName",a),d("listNotebooks","packageName",e);const o="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"GET",...n,...t},i={},p={};r!==void 0&&(p.versionId=r),b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},{url:O(s),options:l}}}},R=function(c){const a=f(c);return{async executeNotebookCell(e,r,t,o,s,n){const l=await a.executeNotebookCell(e,r,t,o,s,n),i=c?.serverIndex??0,p=P["NotebooksApi.executeNotebookCell"]?.[i]?.url;return(h,S)=>g(l,u,m,c)(h,p||S)},async getNotebook(e,r,t,o,s){const n=await a.getNotebook(e,r,t,o,s),l=c?.serverIndex??0,i=P["NotebooksApi.getNotebook"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async listNotebooks(e,r,t,o){const s=await a.listNotebooks(e,r,t,o),n=c?.serverIndex??0,l=P["NotebooksApi.listNotebooks"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)}}},ye=function(c,a,e){const r=R(c);return{executeNotebookCell(t,o,s,n,l,i){return r.executeNotebookCell(t,o,s,n,l,i).then(p=>p(e,a))},getNotebook(t,o,s,n,l){return r.getNotebook(t,o,s,n,l).then(i=>i(e,a))},listNotebooks(t,o,s,n){return r.listNotebooks(t,o,s,n).then(l=>l(e,a))}}};class G extends A{executeNotebookCell(a,e,r,t,o,s){return R(this.configuration).executeNotebookCell(a,e,r,t,o,s).then(n=>n(this.axios,this.basePath))}getNotebook(a,e,r,t,o){return R(this.configuration).getNotebook(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}listNotebooks(a,e,r,t){return R(this.configuration).listNotebooks(a,e,r,t).then(o=>o(this.axios,this.basePath))}}const z=function(c){return{createPackage:async(a,e,r={})=>{d("createPackage","projectName",a),d("createPackage","_package",e);const t="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(a))),o=new URL(t,V);let s;c&&(s=c.baseOptions);const n={method:"POST",...s,...r},l={},i={};l["Content-Type"]="application/json",b(o,i);let p=s&&s.headers?s.headers:{};return n.headers={...l,...p,...r.headers},n.data=y(e,n,c),{url:O(o),options:n}},deletePackage:async(a,e,r={})=>{d("deletePackage","projectName",a),d("deletePackage","packageName",e);const t="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(t,V);let s;c&&(s=c.baseOptions);const n={method:"DELETE",...s,...r},l={};b(o,{});let p=s&&s.headers?s.headers:{};return n.headers={...l,...p,...r.headers},{url:O(o),options:n}},getPackage:async(a,e,r,t,o={})=>{d("getPackage","projectName",a),d("getPackage","packageName",e);const s="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"GET",...l,...o},p={},h={};r!==void 0&&(h.versionId=r),t!==void 0&&(h.reload=t),b(n,h);let S=l&&l.headers?l.headers:{};return i.headers={...p,...S,...o.headers},{url:O(n),options:i}},listPackages:async(a,e={})=>{d("listPackages","projectName",a);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(a))),t=new URL(r,V);let o;c&&(o=c.baseOptions);const s={method:"GET",...o,...e},n={};b(t,{});let i=o&&o.headers?o.headers:{};return s.headers={...n,...i,...e.headers},{url:O(t),options:s}},updatePackage:async(a,e,r,t={})=>{d("updatePackage","projectName",a),d("updatePackage","packageName",e),d("updatePackage","_package",r);const o="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"PATCH",...n,...t},i={},p={};i["Content-Type"]="application/json",b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},l.data=y(r,l,c),{url:O(s),options:l}}}},j=function(c){const a=z(c);return{async createPackage(e,r,t){const o=await a.createPackage(e,r,t),s=c?.serverIndex??0,n=P["PackagesApi.createPackage"]?.[s]?.url;return(l,i)=>g(o,u,m,c)(l,n||i)},async deletePackage(e,r,t){const o=await a.deletePackage(e,r,t),s=c?.serverIndex??0,n=P["PackagesApi.deletePackage"]?.[s]?.url;return(l,i)=>g(o,u,m,c)(l,n||i)},async getPackage(e,r,t,o,s){const n=await a.getPackage(e,r,t,o,s),l=c?.serverIndex??0,i=P["PackagesApi.getPackage"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async listPackages(e,r){const t=await a.listPackages(e,r),o=c?.serverIndex??0,s=P["PackagesApi.listPackages"]?.[o]?.url;return(n,l)=>g(t,u,m,c)(n,s||l)},async updatePackage(e,r,t,o){const s=await a.updatePackage(e,r,t,o),n=c?.serverIndex??0,l=P["PackagesApi.updatePackage"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)}}},Ae=function(c,a,e){const r=j(c);return{createPackage(t,o,s){return r.createPackage(t,o,s).then(n=>n(e,a))},deletePackage(t,o,s){return r.deletePackage(t,o,s).then(n=>n(e,a))},getPackage(t,o,s,n,l){return r.getPackage(t,o,s,n,l).then(i=>i(e,a))},listPackages(t,o){return r.listPackages(t,o).then(s=>s(e,a))},updatePackage(t,o,s,n){return r.updatePackage(t,o,s,n).then(l=>l(e,a))}}};class J extends A{createPackage(a,e,r){return j(this.configuration).createPackage(a,e,r).then(t=>t(this.axios,this.basePath))}deletePackage(a,e,r){return j(this.configuration).deletePackage(a,e,r).then(t=>t(this.axios,this.basePath))}getPackage(a,e,r,t,o){return j(this.configuration).getPackage(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}listPackages(a,e){return j(this.configuration).listPackages(a,e).then(r=>r(this.axios,this.basePath))}updatePackage(a,e,r,t){return j(this.configuration).updatePackage(a,e,r,t).then(o=>o(this.axios,this.basePath))}}const _=function(c){return{createProject:async(a,e={})=>{d("createProject","project",a);const r="/projects",t=new URL(r,V);let o;c&&(o=c.baseOptions);const s={method:"POST",...o,...e},n={},l={};n["Content-Type"]="application/json",b(t,l);let i=o&&o.headers?o.headers:{};return s.headers={...n,...i,...e.headers},s.data=y(a,s,c),{url:O(t),options:s}},deleteProject:async(a,e={})=>{d("deleteProject","projectName",a);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(a))),t=new URL(r,V);let o;c&&(o=c.baseOptions);const s={method:"DELETE",...o,...e},n={};b(t,{});let i=o&&o.headers?o.headers:{};return s.headers={...n,...i,...e.headers},{url:O(t),options:s}},getProject:async(a,e,r={})=>{d("getProject","projectName",a);const t="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(a))),o=new URL(t,V);let s;c&&(s=c.baseOptions);const n={method:"GET",...s,...r},l={},i={};e!==void 0&&(i.reload=e),b(o,i);let p=s&&s.headers?s.headers:{};return n.headers={...l,...p,...r.headers},{url:O(o),options:n}},listProjects:async(a={})=>{const e="/projects",r=new URL(e,V);let t;c&&(t=c.baseOptions);const o={method:"GET",...t,...a},s={};b(r,{});let l=t&&t.headers?t.headers:{};return o.headers={...s,...l,...a.headers},{url:O(r),options:o}},updateProject:async(a,e,r={})=>{d("updateProject","projectName",a),d("updateProject","project",e);const t="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(a))),o=new URL(t,V);let s;c&&(s=c.baseOptions);const n={method:"PATCH",...s,...r},l={},i={};l["Content-Type"]="application/json",b(o,i);let p=s&&s.headers?s.headers:{};return n.headers={...l,...p,...r.headers},n.data=y(e,n,c),{url:O(o),options:n}}}},x=function(c){const a=_(c);return{async createProject(e,r){const t=await a.createProject(e,r),o=c?.serverIndex??0,s=P["ProjectsApi.createProject"]?.[o]?.url;return(n,l)=>g(t,u,m,c)(n,s||l)},async deleteProject(e,r){const t=await a.deleteProject(e,r),o=c?.serverIndex??0,s=P["ProjectsApi.deleteProject"]?.[o]?.url;return(n,l)=>g(t,u,m,c)(n,s||l)},async getProject(e,r,t){const o=await a.getProject(e,r,t),s=c?.serverIndex??0,n=P["ProjectsApi.getProject"]?.[s]?.url;return(l,i)=>g(o,u,m,c)(l,n||i)},async listProjects(e){const r=await a.listProjects(e),t=c?.serverIndex??0,o=P["ProjectsApi.listProjects"]?.[t]?.url;return(s,n)=>g(r,u,m,c)(s,o||n)},async updateProject(e,r,t){const o=await a.updateProject(e,r,t),s=c?.serverIndex??0,n=P["ProjectsApi.updateProject"]?.[s]?.url;return(l,i)=>g(o,u,m,c)(l,n||i)}}},je=function(c,a,e){const r=x(c);return{createProject(t,o){return r.createProject(t,o).then(s=>s(e,a))},deleteProject(t,o){return r.deleteProject(t,o).then(s=>s(e,a))},getProject(t,o,s){return r.getProject(t,o,s).then(n=>n(e,a))},listProjects(t){return r.listProjects(t).then(o=>o(e,a))},updateProject(t,o,s){return r.updateProject(t,o,s).then(n=>n(e,a))}}};class K extends A{createProject(a,e){return x(this.configuration).createProject(a,e).then(r=>r(this.axios,this.basePath))}deleteProject(a,e){return x(this.configuration).deleteProject(a,e).then(r=>r(this.axios,this.basePath))}getProject(a,e,r){return x(this.configuration).getProject(a,e,r).then(t=>t(this.axios,this.basePath))}listProjects(a){return x(this.configuration).listProjects(a).then(e=>e(this.axios,this.basePath))}updateProject(a,e,r){return x(this.configuration).updateProject(a,e,r).then(t=>t(this.axios,this.basePath))}}const Y=function(c){return{getStatus:async(a={})=>{const e="/status",r=new URL(e,V);let t;c&&(t=c.baseOptions);const o={method:"GET",...t,...a},s={};b(r,{});let l=t&&t.headers?t.headers:{};return o.headers={...s,...l,...a.headers},{url:O(r),options:o}}}},F=function(c){const a=Y(c);return{async getStatus(e){const r=await a.getStatus(e),t=c?.serverIndex??0,o=P["PublisherApi.getStatus"]?.[t]?.url;return(s,n)=>g(r,u,m,c)(s,o||n)}}},xe=function(c,a,e){const r=F(c);return{getStatus(t){return r.getStatus(t).then(o=>o(e,a))}}};class X extends A{getStatus(a){return F(this.configuration).getStatus(a).then(e=>e(this.axios,this.basePath))}}const Z=function(c){return{getWatchStatus:async(a={})=>{const e="/watch-mode/status",r=new URL(e,V);let t;c&&(t=c.baseOptions);const o={method:"GET",...t,...a},s={};b(r,{});let l=t&&t.headers?t.headers:{};return o.headers={...s,...l,...a.headers},{url:O(r),options:o}},startWatching:async(a,e={})=>{d("startWatching","startWatchRequest",a);const r="/watch-mode/start",t=new URL(r,V);let o;c&&(o=c.baseOptions);const s={method:"POST",...o,...e},n={},l={};n["Content-Type"]="application/json",b(t,l);let i=o&&o.headers?o.headers:{};return s.headers={...n,...i,...e.headers},s.data=y(a,s,c),{url:O(t),options:s}},stopWatching:async(a={})=>{const e="/watch-mode/stop",r=new URL(e,V);let t;c&&(t=c.baseOptions);const o={method:"POST",...t,...a},s={};b(r,{});let l=t&&t.headers?t.headers:{};return o.headers={...s,...l,...a.headers},{url:O(r),options:o}}}},I=function(c){const a=Z(c);return{async getWatchStatus(e){const r=await a.getWatchStatus(e),t=c?.serverIndex??0,o=P["WatchModeApi.getWatchStatus"]?.[t]?.url;return(s,n)=>g(r,u,m,c)(s,o||n)},async startWatching(e,r){const t=await a.startWatching(e,r),o=c?.serverIndex??0,s=P["WatchModeApi.startWatching"]?.[o]?.url;return(n,l)=>g(t,u,m,c)(n,s||l)},async stopWatching(e){const r=await a.stopWatching(e),t=c?.serverIndex??0,o=P["WatchModeApi.stopWatching"]?.[t]?.url;return(s,n)=>g(r,u,m,c)(s,o||n)}}},ke=function(c,a,e){const r=I(c);return{getWatchStatus(t){return r.getWatchStatus(t).then(o=>o(e,a))},startWatching(t,o){return r.startWatching(t,o).then(s=>s(e,a))},stopWatching(t){return r.stopWatching(t).then(o=>o(e,a))}}};class ee extends A{getWatchStatus(a){return I(this.configuration).getWatchStatus(a).then(e=>e(this.axios,this.basePath))}startWatching(a,e){return I(this.configuration).startWatching(a,e).then(r=>r(this.axios,this.basePath))}stopWatching(a){return I(this.configuration).stopWatching(a).then(e=>e(this.axios,this.basePath))}}class te{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(a={}){this.apiKey=a.apiKey,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.serverIndex=a.serverIndex,this.baseOptions={...a.baseOptions,headers:{...a.baseOptions?.headers}},this.formDataCtor=a.formDataCtor}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return a!==null&&(e.test(a)||a.toLowerCase()==="application/json-patch+json")}}const ae=new q.QueryClient({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),re=k.createContext(void 0),Ne=(c,a)=>{const e=`${window.location.protocol}//${window.location.host}/api/v0`,r=u.create({baseURL:c||e,withCredentials:!0,timeout:6e5});r.interceptors.request.use(async o=>{const s=await a?.();return o.headers.Authorization=s||"",o});const t=new te({basePath:e});return{models:new D(t,e,r),publisher:new X(t,e,r),projects:new K(t,e,r),packages:new J(t,e,r),notebooks:new G(t,e,r),connections:new $(t,e,r),databases:new H(t,e,r),watchMode:new ee(t,e,r)}},ve=({children:c,getAccessToken:a,baseURL:e,mutable:r})=>{const t=k.useMemo(()=>Ne(e,a),[e,a]),o=e||`${window.location.protocol}//${window.location.host}/api/v0`,[s,n]=k.useState(r),[l,i]=k.useState(!0);k.useEffect(()=>{let h=!0;return(async()=>{try{const v=await t.publisher.getStatus();if(h){const oe=v.data?.frozenConfig;let U;oe?U=!1:r===void 0?U=!0:U=r,n(U),i(!1)}}catch(v){console.error("Failed to fetch publisher status:",v),h&&(n(r),i(!1))}})(),()=>{h=!1}},[t,r]);const p={server:o,getAccessToken:a,apiClients:t,mutable:s,isLoadingStatus:l};return M.jsx(q.QueryClientProvider,{client:ae,children:M.jsx(re.Provider,{value:p,children:c})})},Re=()=>{const c=k.useContext(re);if(c===void 0)throw new Error("useServer must be used within a ServerProvider");return c};exports.AttachedDatabaseTypeEnum=ne;exports.AzureConnectionAuthTypeEnum=ce;exports.CompileProblemSeverityEnum=le;exports.CompileResultStatusEnum=ie;exports.Configuration=te;exports.ConnectionStatusStatusEnum=de;exports.ConnectionTypeEnum=pe;exports.ConnectionsApi=$;exports.ConnectionsApiAxiosParamCreator=B;exports.ConnectionsApiFactory=be;exports.ConnectionsApiFp=C;exports.ConnectionsTestApi=ge;exports.ConnectionsTestApiAxiosParamCreator=E;exports.ConnectionsTestApiFactory=Oe;exports.ConnectionsTestApiFp=w;exports.DatabaseTypeEnum=he;exports.DatabasesApi=H;exports.DatabasesApiAxiosParamCreator=L;exports.DatabasesApiFactory=Se;exports.DatabasesApiFp=Q;exports.LogMessageSeverityEnum=ue;exports.ModelsApi=D;exports.ModelsApiAxiosParamCreator=W;exports.ModelsApiFactory=Ce;exports.ModelsApiFp=N;exports.NotebookCellResultTypeEnum=Pe;exports.NotebookCellTypeEnum=me;exports.NotebooksApi=G;exports.NotebooksApiAxiosParamCreator=f;exports.NotebooksApiFactory=ye;exports.NotebooksApiFp=R;exports.PackagesApi=J;exports.PackagesApiAxiosParamCreator=z;exports.PackagesApiFactory=Ae;exports.PackagesApiFp=j;exports.ProjectsApi=K;exports.ProjectsApiAxiosParamCreator=_;exports.ProjectsApiFactory=je;exports.ProjectsApiFp=x;exports.PublisherApi=X;exports.PublisherApiAxiosParamCreator=Y;exports.PublisherApiFactory=xe;exports.PublisherApiFp=F;exports.ServerProvider=ve;exports.ServerStatusOperationalStateEnum=Ve;exports.WatchModeApi=ee;exports.WatchModeApiAxiosParamCreator=Z;exports.WatchModeApiFactory=ke;exports.WatchModeApiFp=I;exports.globalQueryClient=ae;exports.useServer=Re;
|
package/dist/client/api.d.ts
CHANGED
|
@@ -55,6 +55,12 @@ export interface AttachedDatabase {
|
|
|
55
55
|
* @memberof AttachedDatabase
|
|
56
56
|
*/
|
|
57
57
|
's3Connection'?: S3Connection;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {AzureConnection}
|
|
61
|
+
* @memberof AttachedDatabase
|
|
62
|
+
*/
|
|
63
|
+
'azureConnection'?: AzureConnection;
|
|
58
64
|
}
|
|
59
65
|
export declare const AttachedDatabaseTypeEnum: {
|
|
60
66
|
readonly Bigquery: "bigquery";
|
|
@@ -62,8 +68,63 @@ export declare const AttachedDatabaseTypeEnum: {
|
|
|
62
68
|
readonly Postgres: "postgres";
|
|
63
69
|
readonly Gcs: "gcs";
|
|
64
70
|
readonly S3: "s3";
|
|
71
|
+
readonly Azure: "azure";
|
|
65
72
|
};
|
|
66
73
|
export type AttachedDatabaseTypeEnum = typeof AttachedDatabaseTypeEnum[keyof typeof AttachedDatabaseTypeEnum];
|
|
74
|
+
/**
|
|
75
|
+
* Azure Data Lake Storage (ADLS Gen2) / Blob Storage connection configuration Supports https://, http://, abfss://, and az:// URL schemes.
|
|
76
|
+
* @export
|
|
77
|
+
* @interface AzureConnection
|
|
78
|
+
*/
|
|
79
|
+
export interface AzureConnection {
|
|
80
|
+
/**
|
|
81
|
+
* Authentication method for Azure Storage
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof AzureConnection
|
|
84
|
+
*/
|
|
85
|
+
'authType': AzureConnectionAuthTypeEnum;
|
|
86
|
+
/**
|
|
87
|
+
* Full SAS URL including token; required for sas_token auth. Supports single file, directory glob (*.ext), or recursive (**) patterns. Example: https://account.blob.core.windows.net/container/path/_*.parquet?sp=rl&st=...
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof AzureConnection
|
|
90
|
+
*/
|
|
91
|
+
'sasUrl'?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Azure AD tenant ID (required for service_principal)
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof AzureConnection
|
|
96
|
+
*/
|
|
97
|
+
'tenantId'?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Azure AD application (client) ID (required for service_principal)
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof AzureConnection
|
|
102
|
+
*/
|
|
103
|
+
'clientId'?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Azure AD client secret (required for service_principal)
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof AzureConnection
|
|
108
|
+
*/
|
|
109
|
+
'clientSecret'?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Azure Storage account name (required for service_principal)
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof AzureConnection
|
|
114
|
+
*/
|
|
115
|
+
'accountName'?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Azure file URL to query; required for service_principal auth. Supports single file, directory glob (*.ext), or recursive (**) patterns. Example: https://account.blob.core.windows.net/container/path/_**
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof AzureConnection
|
|
120
|
+
*/
|
|
121
|
+
'fileUrl'?: string;
|
|
122
|
+
}
|
|
123
|
+
export declare const AzureConnectionAuthTypeEnum: {
|
|
124
|
+
readonly ServicePrincipal: "service_principal";
|
|
125
|
+
readonly SasToken: "sas_token";
|
|
126
|
+
};
|
|
127
|
+
export type AzureConnectionAuthTypeEnum = typeof AzureConnectionAuthTypeEnum[keyof typeof AzureConnectionAuthTypeEnum];
|
|
67
128
|
/**
|
|
68
129
|
* Google BigQuery database connection configuration
|
|
69
130
|
* @export
|
|
@@ -1578,19 +1639,19 @@ export interface WatchStatus {
|
|
|
1578
1639
|
* @type {boolean}
|
|
1579
1640
|
* @memberof WatchStatus
|
|
1580
1641
|
*/
|
|
1581
|
-
'enabled'
|
|
1642
|
+
'enabled': boolean;
|
|
1582
1643
|
/**
|
|
1583
1644
|
* Name of the project being watched for file changes
|
|
1584
1645
|
* @type {string}
|
|
1585
1646
|
* @memberof WatchStatus
|
|
1586
1647
|
*/
|
|
1587
|
-
'projectName'
|
|
1648
|
+
'projectName': string;
|
|
1588
1649
|
/**
|
|
1589
1650
|
* The file system path being monitored for changes, null if not watching
|
|
1590
1651
|
* @type {string}
|
|
1591
1652
|
* @memberof WatchStatus
|
|
1592
1653
|
*/
|
|
1593
|
-
'watchingPath'
|
|
1654
|
+
'watchingPath': string;
|
|
1594
1655
|
}
|
|
1595
1656
|
/**
|
|
1596
1657
|
* ConnectionsApi - axios parameter creator
|
|
@@ -2377,7 +2438,7 @@ export declare class DatabasesApi extends BaseAPI {
|
|
|
2377
2438
|
*/
|
|
2378
2439
|
export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2379
2440
|
/**
|
|
2380
|
-
* Compiles Malloy source code in the context of a specific model
|
|
2441
|
+
* 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.
|
|
2381
2442
|
* @summary Compile Malloy source code
|
|
2382
2443
|
* @param {string} projectName Name of the project
|
|
2383
2444
|
* @param {string} packageName Name of the package
|
|
@@ -2426,7 +2487,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2426
2487
|
*/
|
|
2427
2488
|
export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
2428
2489
|
/**
|
|
2429
|
-
* Compiles Malloy source code in the context of a specific model
|
|
2490
|
+
* 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.
|
|
2430
2491
|
* @summary Compile Malloy source code
|
|
2431
2492
|
* @param {string} projectName Name of the project
|
|
2432
2493
|
* @param {string} packageName Name of the package
|
|
@@ -2475,7 +2536,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
2475
2536
|
*/
|
|
2476
2537
|
export declare const ModelsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2477
2538
|
/**
|
|
2478
|
-
* Compiles Malloy source code in the context of a specific model
|
|
2539
|
+
* 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.
|
|
2479
2540
|
* @summary Compile Malloy source code
|
|
2480
2541
|
* @param {string} projectName Name of the project
|
|
2481
2542
|
* @param {string} packageName Name of the package
|
|
@@ -2526,7 +2587,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
2526
2587
|
*/
|
|
2527
2588
|
export declare class ModelsApi extends BaseAPI {
|
|
2528
2589
|
/**
|
|
2529
|
-
* Compiles Malloy source code in the context of a specific model
|
|
2590
|
+
* 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.
|
|
2530
2591
|
* @summary Compile Malloy source code
|
|
2531
2592
|
* @param {string} projectName Name of the project
|
|
2532
2593
|
* @param {string} packageName Name of the package
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-s3PckSTX.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.Configuration=e.Configuration;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.ProjectsApi=e.ProjectsApi;exports.ProjectsApiAxiosParamCreator=e.ProjectsApiAxiosParamCreator;exports.ProjectsApiFactory=e.ProjectsApiFactory;exports.ProjectsApiFp=e.ProjectsApiFp;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.useServer=e.useServer;
|