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