@metabase/cli 0.1.0-alpha.workspaces-commands.68d980f → 0.1.0-alpha.workspaces-commands.2c53ab6
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 +12 -12
- package/dist/{add-collection-Cu4B6KXG.mjs → add-collection-CglWilCW.mjs} +3 -3
- package/dist/{add-collection-DGV1rqqR.mjs → add-collection-DJyCI-0s.mjs} +6 -6
- package/dist/{api-key-6_Q5e_K0.mjs → api-key-df2ZsJBo.mjs} +1 -1
- package/dist/{archive-DHjG2vSi.mjs → archive-CCVNS2SS.mjs} +3 -3
- package/dist/{archive-Bpf0QvqP.mjs → archive-D3reknjN.mjs} +3 -3
- package/dist/{archive-C2ziJ31w.mjs → archive-DHseQfsj.mjs} +3 -3
- package/dist/{archive-CYgtaA_I.mjs → archive-Dta_mr4o.mjs} +3 -3
- package/dist/auth-48hkspfk.mjs +19 -0
- package/dist/{body-BAdJj5HJ.mjs → body-Dhcf1O4J.mjs} +1 -1
- package/dist/{branches-DkwkHvgF.mjs → branches-DV7_2s8y.mjs} +4 -4
- package/dist/{cancel-UgDP_AM-.mjs → cancel-DNbb4CBS.mjs} +3 -3
- package/dist/{cancel-task-DCV5l_rj.mjs → cancel-task-CDjt9-vy.mjs} +4 -4
- package/dist/card-BYs0LI-2.mjs +20 -0
- package/dist/{cards-BXYJMHYy.mjs → cards-coJN4bZN.mjs} +4 -4
- package/dist/cli.mjs +22 -22
- package/dist/collection-DKHhQUaC.mjs +19 -0
- package/dist/{create-yiHTy9qd.mjs → create-2ufjukAT.mjs} +3 -3
- package/dist/{create-D4_iBwTY.mjs → create-BBYkUPJr.mjs} +3 -3
- package/dist/{create-DCAvWcNL.mjs → create-BZKCfIc9.mjs} +4 -4
- package/dist/{create-RneHGLFF.mjs → create-BjiAKAtp.mjs} +3 -3
- package/dist/{create-BUcIJ1nk.mjs → create-CssxnW-h.mjs} +3 -3
- package/dist/{create-BLwyolnm.mjs → create-CytUU9ZM.mjs} +3 -3
- package/dist/{create-DCEuLMff.mjs → create-D2H_tAy9.mjs} +4 -4
- package/dist/{create-D9zWWm9b.mjs → create-D6mskDx3.mjs} +3 -3
- package/dist/{create-n7yxR6s2.mjs → create-DVxYduNp.mjs} +3 -3
- package/dist/{create-D9CEUvL3.mjs → create-DdlYGYMQ.mjs} +3 -3
- package/dist/{create-branch-BfSrjGld.mjs → create-branch-BxdlgUF3.mjs} +4 -4
- package/dist/{credentials-BnX6KoeQ.mjs → credentials-C0XoCrdj.mjs} +5 -5
- package/dist/{current-task-C60CWYop.mjs → current-task-D4ESrhJg.mjs} +4 -4
- package/dist/{dashboard-C7MhcBfX.mjs → dashboard-CztCJxke.mjs} +10 -1
- package/dist/dashboard-Do_DrOBD.mjs +20 -0
- package/dist/{database-BkSdTiyB.mjs → database-CRiXkFXN.mjs} +3 -3
- package/dist/db-CA1COQRS.mjs +22 -0
- package/dist/{delete-nxO9ND-q.mjs → delete-CGsM3A9N.mjs} +3 -3
- package/dist/{delete-D39mHiYu.mjs → delete-dmfeaLnL.mjs} +3 -3
- package/dist/{delete-table-Dk1C3x9k.mjs → delete-table-DrLiWAcy.mjs} +3 -3
- package/dist/{deprovision-CCokm00M.mjs → deprovision-DUOEcrED.mjs} +6 -6
- package/dist/{dirty-Da9uKlQp.mjs → dirty-7iiqqjBz.mjs} +4 -4
- package/dist/{docker-En_jqSVW.mjs → docker-BZjPjatS.mjs} +4 -12
- package/dist/{eid-BQx_tnuC.mjs → eid-BroD_GP3.mjs} +1 -1
- package/dist/{export-PQ84ihYr.mjs → export-B3eYlEi7.mjs} +5 -5
- package/dist/field-DWyPAP-J.mjs +18 -0
- package/dist/{fields-BhN1M2TD.mjs → fields-DyTkwb75.mjs} +3 -3
- package/dist/{get-DQ0lm-Dx.mjs → get-A9FQMAbD.mjs} +3 -3
- package/dist/{get-CAYdsSX4.mjs → get-BE1MwBTF.mjs} +2 -2
- package/dist/{get-CbwJfVx1.mjs → get-BGWeW5cp.mjs} +3 -3
- package/dist/{get-CScnOuJ-.mjs → get-CcC1nGEb.mjs} +3 -3
- package/dist/{get-CtsZA_BB.mjs → get-DGIYvzKJ.mjs} +3 -3
- package/dist/{get-BifK1SP6.mjs → get-DHP5AeV_.mjs} +3 -3
- package/dist/{get-D64v79fP.mjs → get-DNUPiMmh.mjs} +4 -4
- package/dist/{get-DpFyct1X.mjs → get-DgIz7LEl.mjs} +3 -3
- package/dist/{get-Dopinaxx.mjs → get-DtlMXBPa.mjs} +3 -3
- package/dist/{get-D6dlsNBD.mjs → get-KrXvSLOx.mjs} +3 -3
- package/dist/{get-CaRX225l.mjs → get-T36pllqi.mjs} +2 -2
- package/dist/{get-DM2UkeKJ.mjs → get-lncPdHmT.mjs} +3 -3
- package/dist/{get-run-DpjKXCww.mjs → get-run-CAFGtvMv.mjs} +3 -3
- package/dist/{has-remote-changes-BgbCIv30.mjs → has-remote-changes-BQMJmg1p.mjs} +4 -4
- package/dist/{import-BRC4SYRj.mjs → import-yZJ4v4W7.mjs} +5 -5
- package/dist/{is-dirty-BduCa9nf.mjs → is-dirty-Bu8nOhQa.mjs} +2 -2
- package/dist/is-dirty-DmdX_Bba.mjs +10 -0
- package/dist/{items-NE7Z-vuw.mjs → items-B1c7eCtM.mjs} +3 -3
- package/dist/{license-MWU4vLvD.mjs → license-Bl7tz7XB.mjs} +3 -3
- package/dist/{list-Bgt_qxRd.mjs → list-BR1ga_lK.mjs} +2 -2
- package/dist/{list-_4_qW2nQ.mjs → list-C3BiNPb-.mjs} +2 -2
- package/dist/{list-C1wNHDPl.mjs → list-C5MvVG_k.mjs} +2 -2
- package/dist/{list--EFsidRC.mjs → list-CcKluubc.mjs} +3 -3
- package/dist/{list-D6KnlTOp.mjs → list-CiXwABFC.mjs} +2 -2
- package/dist/{list-CR1Dkcbk.mjs → list-Cs6U1iyJ.mjs} +2 -2
- package/dist/{list-C-ucaNmG.mjs → list-DKGrW6ds.mjs} +2 -2
- package/dist/{list-BMFbKnG1.mjs → list-DQdAUZNJ.mjs} +3 -3
- package/dist/{list-B_XtS5VX.mjs → list-DdzkvpfC.mjs} +2 -2
- package/dist/{list-BPC7KqBQ.mjs → list-DnVt2DI6.mjs} +2 -2
- package/dist/{list-BB9IsaT4.mjs → list-DwvTiRJM.mjs} +2 -2
- package/dist/{list-jHGjjZdC.mjs → list-b-d_WQtD.mjs} +2 -2
- package/dist/{list-DeNHJECx.mjs → list-ffNPfhjn.mjs} +2 -2
- package/dist/{login-B30jvHfe.mjs → login-DWZ3237S.mjs} +10 -3
- package/dist/{logout-bWublBcN.mjs → logout-BQQXb8Yz.mjs} +3 -3
- package/dist/{logs-DsiDIT90.mjs → logs-DmLSVBBI.mjs} +5 -5
- package/dist/measure-CHXwfh6U.mjs +19 -0
- package/dist/{metadata-DCVxSKX7.mjs → metadata-CSXl30nB.mjs} +3 -3
- package/dist/{metadata-DCFEJsKY.mjs → metadata-bbnwhok9.mjs} +3 -3
- package/dist/{package-Be4_p9f8.mjs → package-CPA0hL4E.mjs} +1 -1
- package/dist/{parse-id-DKRTKFB2.mjs → parse-id-B6lwJaSN.mjs} +1 -1
- package/dist/{parse-schemas-CtMwPgZe.mjs → parse-schemas-D-SskXW5.mjs} +1 -1
- package/dist/{poll-task-UMS6aAza.mjs → poll-task-Br9sXlAY.mjs} +2 -2
- package/dist/{poll-BXEPgd4X.mjs → poll-txMmreGz.mjs} +1 -1
- package/dist/{provision-BDtZZK84.mjs → provision-yQ_U65mn.mjs} +8 -8
- package/dist/{ps-iON5iNUT.mjs → ps-Cme4djhG.mjs} +5 -5
- package/dist/{ps-DcKt1oHS.mjs → ps-gOyo1hvO.mjs} +2 -2
- package/dist/{query-7qZ7dWnE.mjs → query-8QKziTh6.mjs} +3 -3
- package/dist/{query-DtD0dc_V.mjs → query-BEdVNMoh.mjs} +3 -3
- package/dist/{remove-UWzVKtfF.mjs → remove-CcLnrQn3.mjs} +2 -2
- package/dist/{remove-D194SUD-.mjs → remove-E-GvBZlu.mjs} +5 -5
- package/dist/{remove-collection-BUwKxMsH.mjs → remove-collection-e91EDPU0.mjs} +6 -6
- package/dist/{rescan-values-zYxt5WcO.mjs → rescan-values-DpnBq_8O.mjs} +3 -3
- package/dist/{run-DwYkAZHU.mjs → run-znsYOoVE.mjs} +5 -5
- package/dist/{runs-CeHd9FOO.mjs → runs-CUKCYtQ9.mjs} +3 -3
- package/dist/{runtime-Dlk-yyFO.mjs → runtime-BosOjtk8.mjs} +72 -5
- package/dist/{schema-tables-LZG9R38V.mjs → schema-tables-CpzG9dGB.mjs} +3 -3
- package/dist/{schemas-ZC7JrOKM.mjs → schemas-C7qPExUI.mjs} +3 -3
- package/dist/{search-StdHjR5q.mjs → search-CdZXuKMD.mjs} +3 -3
- package/dist/segment-CZueKbMG.mjs +19 -0
- package/dist/{set-Ey8zuk9j.mjs → set-B5LrZvTf.mjs} +2 -2
- package/dist/{set-CgDS1Feo.mjs → set-QLnnGXA-.mjs} +3 -3
- package/dist/{setting-D4mR5WMp.mjs → setting-VdsV1zJU.mjs} +3 -3
- package/dist/{setup-DKRzEM6a.mjs → setup-PfuxdpC2.mjs} +3 -3
- package/dist/snippet-Dt6U2B_d.mjs +19 -0
- package/dist/{start-15kcQYwC.mjs → start-CcKJAPgj.mjs} +42 -23
- package/dist/{stash-CQkpgkAr.mjs → stash-BOsZ3D2a.mjs} +5 -5
- package/dist/{status-Dg0qSJtP.mjs → status-BUqpX1A6.mjs} +2 -2
- package/dist/{status-BmYxYGZE.mjs → status-C9HOIR6B.mjs} +5 -5
- package/dist/{status-D0LTLSrI.mjs → status-m3vjBsvZ.mjs} +2 -2
- package/dist/{stop-B9M_LliY.mjs → stop-CmtMjLTX.mjs} +6 -6
- package/dist/{summary-CSGteNEX.mjs → summary-FQ1HuTaZ.mjs} +3 -3
- package/dist/sync-CGSQJVtH.mjs +28 -0
- package/dist/{sync-schema-BjGQtnol.mjs → sync-schema-toerKFPx.mjs} +3 -3
- package/dist/table-C-rXoinA.mjs +19 -0
- package/dist/transform-BYGryvCT.mjs +24 -0
- package/dist/transform-job-BPyH5JYX.mjs +19 -0
- package/dist/{translate-DRajJsf0.mjs → translate-DH9gj3A1.mjs} +3 -3
- package/dist/{tree-eunCOx9U.mjs → tree-e5lsaBMb.mjs} +2 -2
- package/dist/{update-CSsRBrV5.mjs → update-2K6P3N8w.mjs} +8 -8
- package/dist/{update-Bhfzszoc.mjs → update-BC5oAGMa.mjs} +5 -5
- package/dist/{update-CkrxPRXK.mjs → update-BcXRa34z.mjs} +4 -4
- package/dist/{update-B0bpqs4y.mjs → update-Bzorlabk.mjs} +4 -4
- package/dist/{update-BprFaiqH.mjs → update-CYDjM57D.mjs} +4 -4
- package/dist/{update-D14Sl_IP.mjs → update-Clsuv_an.mjs} +4 -4
- package/dist/{update-6BC1K7uY.mjs → update-DJZezcI8.mjs} +4 -4
- package/dist/{update-D1mHRo8M.mjs → update-DOGMjGIX.mjs} +4 -4
- package/dist/{update-C-i8drfb.mjs → update-Drz-xQbM.mjs} +4 -4
- package/dist/{update-BJk9pfiv.mjs → update-_D3IOLob.mjs} +4 -4
- package/dist/{update-dashcard-I13krLAG.mjs → update-dashcard-hd6u-wic.mjs} +5 -5
- package/dist/{url-CRyx47hL.mjs → url-w4yNSMK8.mjs} +5 -5
- package/dist/{values-BhYRwEvd.mjs → values-Bc7KrzM8.mjs} +3 -3
- package/dist/{wait-Dx7gfA8G.mjs → wait-BcS6YYo4.mjs} +1 -1
- package/dist/{wait-dqZ8MsDQ.mjs → wait-DSN55m4Q.mjs} +5 -5
- package/dist/{wait-flags-Czo_9Q__.mjs → wait-flags-CqeQ7xey.mjs} +2 -2
- package/dist/workspace-DZG1Sm5g.mjs +24 -0
- package/package.json +1 -1
- package/dist/auth-BaMPV-un.mjs +0 -19
- package/dist/card-DI78jgjG.mjs +0 -20
- package/dist/collection-BcMoZLX0.mjs +0 -19
- package/dist/dashboard-B8zj0bZS.mjs +0 -20
- package/dist/db-DG-1rI_O.mjs +0 -22
- package/dist/field-CE-2zFaL.mjs +0 -18
- package/dist/is-dirty-hMK61S1s.mjs +0 -10
- package/dist/measure-Bc9tjbVl.mjs +0 -19
- package/dist/segment-BVM0WSM7.mjs +0 -19
- package/dist/snippet-BO-gCn0H.mjs +0 -19
- package/dist/sync-_BtDG63a.mjs +0 -28
- package/dist/table-C0N9hfqm.mjs +0 -19
- package/dist/transform-BycLORsG.mjs +0 -24
- package/dist/transform-job-B_SvpPfl.mjs +0 -19
- package/dist/workspace-eQ2gxKYO.mjs +0 -24
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/snippet/index.ts
|
|
4
|
+
var snippet_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "snippet",
|
|
7
|
+
description: "Inspect Metabase native query snippets"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DdzkvpfC.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-DgIz7LEl.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-D6mskDx3.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-_D3IOLob.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-D3reknjN.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { snippet_default as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem, warn } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError, errorMessage } from "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, localUrl, outputFlags, parseInteger, parseOptionalInteger, profileFlag, resolveLicenseToken } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { pollUntil } from "./poll-
|
|
5
|
+
import { connectionFlags, createClient, defineMetabaseCommand, localUrl, outputFlags, parseInteger, parseOptionalInteger, profileFlag, resolveLicenseToken } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
7
|
+
import { pollUntil } from "./poll-txMmreGz.mjs";
|
|
8
8
|
import { Workspace } from "./workspace-D93cDL8-.mjs";
|
|
9
|
-
import { CONTAINER_REPO_DIR, checkDockerReady, containerLifecycleStatus, containerNameFor, pullImage, removeContainer, runProcess, runWorkspaceContainer, scrubContainerConfig, waitForConfigConsumed } from "./docker-
|
|
9
|
+
import { CONTAINER_REPO_DIR, checkDockerReady, containerLifecycleStatus, containerNameFor, pullImage, removeContainer, runProcess, runWorkspaceContainer, scrubContainerConfig, waitForConfigConsumed } from "./docker-BZjPjatS.mjs";
|
|
10
10
|
import { REPO_SYNC_MODES, RepoSyncMode, buildCredentialsJson, generateWorkspaceCredentials, injectCredentialsIntoConfig, injectRepoSettingsIntoConfig } from "./workspace-credentials-D_ivv5vy.mjs";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import { stat } from "node:fs/promises";
|
|
@@ -53,13 +53,14 @@ async function findFreePort(start) {
|
|
|
53
53
|
//#region src/commands/workspace/start.ts
|
|
54
54
|
const DEFAULT_IMAGE = "metabase/metabase-dev:feature-workspaces-v2";
|
|
55
55
|
const DEFAULT_HOST_PORT = 3e3;
|
|
56
|
-
const
|
|
57
|
-
const DEFAULT_CONFIG_CONSUMED_TIMEOUT_MS = 6e4;
|
|
56
|
+
const DEFAULT_READY_TIMEOUT_MS = 24e4;
|
|
58
57
|
const HEALTH_INTERVAL_MS = 2e3;
|
|
59
58
|
const HEALTH_MAX_INTERVAL_MS = 1e4;
|
|
60
59
|
const HEALTH_PROBE_TIMEOUT_MS = 4e3;
|
|
61
60
|
const DEFAULT_REPO_MODE = "read-write";
|
|
62
61
|
const REPO_FILE_URL = `file://${CONTAINER_REPO_DIR}`;
|
|
62
|
+
const METADATA_IMPORT_TIMEOUT_MS = DEFAULT_READY_TIMEOUT_MS;
|
|
63
|
+
const MetadataImportResult = z.object({ success: z.boolean() });
|
|
63
64
|
const StartResult = z.object({
|
|
64
65
|
workspace_id: z.number().int().positive(),
|
|
65
66
|
workspace_name: z.string(),
|
|
@@ -120,13 +121,13 @@ var start_default = defineMetabaseCommand({
|
|
|
120
121
|
},
|
|
121
122
|
wait: {
|
|
122
123
|
type: "boolean",
|
|
123
|
-
description: "Block until /api/health is ready before returning. Default: return as soon as the container has consumed config.yml.",
|
|
124
|
+
description: "Block until /api/health is ready before returning. Default: return as soon as the container has consumed config.yml. (Implied when --metadata is on, since the import requires a live API.)",
|
|
124
125
|
default: false
|
|
125
126
|
},
|
|
126
127
|
timeout: {
|
|
127
128
|
type: "string",
|
|
128
|
-
description: `
|
|
129
|
-
default: String(
|
|
129
|
+
description: `Per-phase readiness deadline in ms — covers post-create config consumption and (with --wait) the /api/health probe. Default: ${DEFAULT_READY_TIMEOUT_MS}.`,
|
|
130
|
+
default: String(DEFAULT_READY_TIMEOUT_MS)
|
|
130
131
|
},
|
|
131
132
|
pull: {
|
|
132
133
|
type: "boolean",
|
|
@@ -135,12 +136,12 @@ var start_default = defineMetabaseCommand({
|
|
|
135
136
|
},
|
|
136
137
|
metadata: {
|
|
137
138
|
type: "boolean",
|
|
138
|
-
description: "Fetch the workspace's warehouse metadata and
|
|
139
|
+
description: "Fetch the workspace's warehouse metadata from the parent and POST it to the child instance once it is healthy",
|
|
139
140
|
default: true
|
|
140
141
|
},
|
|
141
142
|
force: {
|
|
142
143
|
type: "boolean",
|
|
143
|
-
description: "
|
|
144
|
+
description: "Remove and recreate the container even if it is running. Stopped containers (exited/created/dead) are recreated automatically without this flag.",
|
|
144
145
|
default: false
|
|
145
146
|
},
|
|
146
147
|
repo: {
|
|
@@ -174,7 +175,7 @@ var start_default = defineMetabaseCommand({
|
|
|
174
175
|
name: "--port",
|
|
175
176
|
min: 1
|
|
176
177
|
});
|
|
177
|
-
const
|
|
178
|
+
const readyTimeoutMs = parseInteger(args.timeout ?? String(DEFAULT_READY_TIMEOUT_MS), {
|
|
178
179
|
name: "--timeout",
|
|
179
180
|
min: 1e3
|
|
180
181
|
});
|
|
@@ -182,7 +183,7 @@ var start_default = defineMetabaseCommand({
|
|
|
182
183
|
const resolved = await getResolvedConfig();
|
|
183
184
|
const licenseToken = await resolveLicenseToken({});
|
|
184
185
|
await checkDockerReady();
|
|
185
|
-
await ensureNoExistingContainer(containerName, args.force);
|
|
186
|
+
await ensureNoExistingContainer(workspaceId, containerName, args.force);
|
|
186
187
|
const pullPromise = args.pull ? pullImage(args.image) : Promise.resolve();
|
|
187
188
|
const workspace = await client.requestParsed(Workspace, `/api/ee/workspace-manager/${workspaceId}`);
|
|
188
189
|
assertAllDatabasesProvisioned(workspace);
|
|
@@ -210,22 +211,23 @@ var start_default = defineMetabaseCommand({
|
|
|
210
211
|
hostPort,
|
|
211
212
|
configYaml,
|
|
212
213
|
credentialsJson,
|
|
213
|
-
metadataJson,
|
|
214
214
|
licenseToken,
|
|
215
215
|
bindMounts: repoOptions === null ? [] : [repoOptions.bindMount]
|
|
216
216
|
});
|
|
217
|
-
await waitForConfigConsumed(workspaceId,
|
|
217
|
+
await waitForConfigConsumed(workspaceId, readyTimeoutMs);
|
|
218
218
|
try {
|
|
219
219
|
await scrubContainerConfig(workspaceId);
|
|
220
220
|
} catch (error) {
|
|
221
221
|
warn(`could not scrub in-container config.yml: ${errorMessage(error)}`);
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
const needsHealth = args.wait || metadataJson !== null;
|
|
224
|
+
if (needsHealth) await waitForHealth(hostPort, readyTimeoutMs);
|
|
225
|
+
if (metadataJson !== null) await importMetadataIntoChild(hostPort, credentials, metadataJson);
|
|
224
226
|
const result = {
|
|
225
227
|
workspace_id: workspaceId,
|
|
226
228
|
workspace_name: workspace.name,
|
|
227
229
|
container_name: containerName,
|
|
228
|
-
state:
|
|
230
|
+
state: needsHealth ? "running" : "starting",
|
|
229
231
|
host_port: hostPort,
|
|
230
232
|
url: localUrl(hostPort),
|
|
231
233
|
image: args.image
|
|
@@ -242,13 +244,18 @@ function assertAllDatabasesProvisioned(workspace) {
|
|
|
242
244
|
throw new ConfigError(`workspace ${workspace.id} is not ready: ${summary}. Wait for provisioning to finish.`);
|
|
243
245
|
}
|
|
244
246
|
}
|
|
245
|
-
async function ensureNoExistingContainer(containerName, force) {
|
|
246
|
-
if (
|
|
247
|
-
|
|
248
|
-
if (status !== "missing") throw new ConfigError(`container ${containerName} already exists (state=${status}). Use --force to recreate, or stop/remove it first.`);
|
|
247
|
+
async function ensureNoExistingContainer(workspaceId, containerName, force) {
|
|
248
|
+
if (force) {
|
|
249
|
+
await removeContainer(containerName);
|
|
249
250
|
return;
|
|
250
251
|
}
|
|
251
|
-
await
|
|
252
|
+
const status = await containerLifecycleStatus(containerName);
|
|
253
|
+
if (status === "missing") return;
|
|
254
|
+
if (status === "exited" || status === "created" || status === "dead") {
|
|
255
|
+
await removeContainer(containerName);
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
throw new ConfigError(`container ${containerName} is currently ${status}. Run \`metabase workspace stop ${workspaceId}\` first, or use --force to recreate it.`);
|
|
252
259
|
}
|
|
253
260
|
async function resolveHostPort(requested) {
|
|
254
261
|
if (requested !== null) {
|
|
@@ -282,6 +289,18 @@ async function waitForHealth(hostPort, timeoutMs) {
|
|
|
282
289
|
timeoutMs
|
|
283
290
|
});
|
|
284
291
|
}
|
|
292
|
+
async function importMetadataIntoChild(hostPort, credentials, metadataJson) {
|
|
293
|
+
const childClient = createClient({
|
|
294
|
+
url: localUrl(hostPort),
|
|
295
|
+
apiKey: credentials.api_key.key
|
|
296
|
+
});
|
|
297
|
+
const result = await childClient.requestParsed(MetadataImportResult, "/api/ee/serialization/metadata/import", {
|
|
298
|
+
method: "POST",
|
|
299
|
+
body: metadataJson,
|
|
300
|
+
timeoutMs: METADATA_IMPORT_TIMEOUT_MS
|
|
301
|
+
});
|
|
302
|
+
if (!result.success) throw new ConfigError("workspace child rejected the metadata import (returned success=false)");
|
|
303
|
+
}
|
|
285
304
|
async function resolveRepoOptions(input) {
|
|
286
305
|
if (input.hostPath === void 0 || input.hostPath === "") {
|
|
287
306
|
const explicitBranch = input.branch !== void 0;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { REMOTE_SYNC_PATHS, SyncTask, pollFlags, pollSyncTask, throwIfFailedTask } from "./poll-task-
|
|
8
|
-
import "./poll-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
7
|
+
import { REMOTE_SYNC_PATHS, SyncTask, pollFlags, pollSyncTask, throwIfFailedTask } from "./poll-task-Br9sXlAY.mjs";
|
|
8
|
+
import "./poll-txMmreGz.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/sync/stash.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { account, credentials, defineMetabaseCommand, originOnly, outputFlags, profileFlag, resolveProfileName } from "./runtime-
|
|
5
|
+
import { account, credentials, defineMetabaseCommand, originOnly, outputFlags, profileFlag, resolveProfileName } from "./runtime-BosOjtk8.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/auth/status.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { REMOTE_SYNC_PATHS, SyncTask, fetchCurrentTask, fetchOptionalParsed } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import { IsDirtyResult } from "./is-dirty-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncTask, fetchCurrentTask, fetchOptionalParsed } from "./poll-task-Br9sXlAY.mjs";
|
|
7
|
+
import "./poll-txMmreGz.mjs";
|
|
8
|
+
import { IsDirtyResult } from "./is-dirty-Bu8nOhQa.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/sync/status.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { account, credentials, defineMetabaseCommand, outputFlags } from "./runtime-
|
|
5
|
+
import { account, credentials, defineMetabaseCommand, outputFlags } from "./runtime-BosOjtk8.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/license/status.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { defineMetabaseCommand, outputFlags } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import { checkDockerReady, containerLifecycleStatus, containerNameFor, stopContainer } from "./docker-
|
|
9
|
-
import { LocalWorkspaceState } from "./ps-
|
|
5
|
+
import { defineMetabaseCommand, outputFlags } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
7
|
+
import "./poll-txMmreGz.mjs";
|
|
8
|
+
import { checkDockerReady, containerLifecycleStatus, containerNameFor, stopContainer } from "./docker-BZjPjatS.mjs";
|
|
9
|
+
import { LocalWorkspaceState } from "./ps-gOyo1hvO.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/workspace/stop.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
7
7
|
import { FieldSummary, FieldSummaryRaw, fieldSummaryView } from "./field-BakUM_Le.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/field/summary.ts
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/sync/index.ts
|
|
4
|
+
var sync_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "sync",
|
|
7
|
+
description: "Remote-sync operations (import, export, status, branches)"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
status: () => import("./status-C9HOIR6B.mjs").then((mod) => mod.default),
|
|
11
|
+
"is-dirty": () => import("./is-dirty-DmdX_Bba.mjs").then((mod) => mod.default),
|
|
12
|
+
"has-remote-changes": () => import("./has-remote-changes-BQMJmg1p.mjs").then((mod) => mod.default),
|
|
13
|
+
dirty: () => import("./dirty-7iiqqjBz.mjs").then((mod) => mod.default),
|
|
14
|
+
"current-task": () => import("./current-task-D4ESrhJg.mjs").then((mod) => mod.default),
|
|
15
|
+
"cancel-task": () => import("./cancel-task-CDjt9-vy.mjs").then((mod) => mod.default),
|
|
16
|
+
wait: () => import("./wait-DSN55m4Q.mjs").then((mod) => mod.default),
|
|
17
|
+
import: () => import("./import-yZJ4v4W7.mjs").then((mod) => mod.default),
|
|
18
|
+
export: () => import("./export-B3eYlEi7.mjs").then((mod) => mod.default),
|
|
19
|
+
stash: () => import("./stash-BOsZ3D2a.mjs").then((mod) => mod.default),
|
|
20
|
+
branches: () => import("./branches-DV7_2s8y.mjs").then((mod) => mod.default),
|
|
21
|
+
"create-branch": () => import("./create-branch-BxdlgUF3.mjs").then((mod) => mod.default),
|
|
22
|
+
"add-collection": () => import("./add-collection-DJyCI-0s.mjs").then((mod) => mod.default),
|
|
23
|
+
"remove-collection": () => import("./remove-collection-e91EDPU0.mjs").then((mod) => mod.default)
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { sync_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
7
7
|
import "./field-BakUM_Le.mjs";
|
|
8
8
|
import "./table-DhB2_Dxd.mjs";
|
|
9
9
|
import { DatabaseSyncResult, databaseSyncResultView } from "./database-GbK7OAPX.mjs";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/table/index.ts
|
|
4
|
+
var table_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "table",
|
|
7
|
+
description: "Inspect Metabase tables"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-CcKluubc.mjs").then((m) => m.default),
|
|
11
|
+
get: () => import("./get-DtlMXBPa.mjs").then((m) => m.default),
|
|
12
|
+
metadata: () => import("./metadata-bbnwhok9.mjs").then((m) => m.default),
|
|
13
|
+
fields: () => import("./fields-DyTkwb75.mjs").then((m) => m.default),
|
|
14
|
+
update: () => import("./update-DOGMjGIX.mjs").then((m) => m.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { table_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/transform/index.ts
|
|
4
|
+
var transform_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "transform",
|
|
7
|
+
description: "Manage Metabase transforms"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-CiXwABFC.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-A9FQMAbD.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-CytUU9ZM.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-BcXRa34z.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-dmfeaLnL.mjs").then((mod) => mod.default),
|
|
15
|
+
"delete-table": () => import("./delete-table-DrLiWAcy.mjs").then((mod) => mod.default),
|
|
16
|
+
run: () => import("./run-znsYOoVE.mjs").then((mod) => mod.default),
|
|
17
|
+
cancel: () => import("./cancel-DNbb4CBS.mjs").then((mod) => mod.default),
|
|
18
|
+
"get-run": () => import("./get-run-CAFGtvMv.mjs").then((mod) => mod.default),
|
|
19
|
+
runs: () => import("./runs-CUKCYtQ9.mjs").then((mod) => mod.default)
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { transform_default as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/transform-job/index.ts
|
|
4
|
+
var transform_job_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "transform-job",
|
|
7
|
+
description: "Manage Metabase transform jobs"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-Cs6U1iyJ.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-CcC1nGEb.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-2ufjukAT.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-Drz-xQbM.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-CGsM3A9N.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { transform_job_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, parseCsv, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, parseCsv, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { requireBothOrNeither } from "./flag-pair-Dz-mbq0z.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { writeJson } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
6
6
|
import { CollectionTreeNode } from "./collection-BsiGRKXh.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import "./poll-
|
|
11
|
-
import { parseWaitFlags, waitFlags } from "./wait-flags-
|
|
9
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
10
|
+
import "./poll-txMmreGz.mjs";
|
|
11
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-CqeQ7xey.mjs";
|
|
12
12
|
import { Workspace, WorkspaceUpdateDatabaseInput, workspaceView } from "./workspace-D93cDL8-.mjs";
|
|
13
|
-
import { waitForDatabaseProvisioned } from "./wait-
|
|
14
|
-
import { parseSchemasCsv } from "./parse-schemas-
|
|
13
|
+
import { waitForDatabaseProvisioned } from "./wait-BcS6YYo4.mjs";
|
|
14
|
+
import { parseSchemasCsv } from "./parse-schemas-D-SskXW5.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/commands/workspace/database/update.ts
|
|
17
17
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-
|
|
9
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
10
|
+
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-CztCJxke.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/dashboard/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
10
10
|
import { preflightInternalMbql5Query, skipValidateFlag } from "./validate-query-D0aAFTUs.mjs";
|
|
11
11
|
import { Transform, TransformUpdateInput, transformView } from "./transform-92odFxg-.mjs";
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
10
10
|
import { Card, CardUpdateInput, cardView } from "./card-BOGKT258.mjs";
|
|
11
11
|
import { preflightInternalMbql5Query, skipValidateFlag } from "./validate-query-D0aAFTUs.mjs";
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
10
10
|
import { Measure, MeasureUpdateInput, measureView } from "./measure-B1GKcZxO.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/measure/update.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
10
10
|
import { Segment, SegmentUpdateInput, segmentView } from "./segment-CQ5w3M_W.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/segment/update.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
10
10
|
import { Field, FieldUpdateInput, fieldView } from "./field-BakUM_Le.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/field/update.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
10
10
|
import "./field-BakUM_Le.mjs";
|
|
11
11
|
import { Table, TableUpdateInput, tableView } from "./table-DhB2_Dxd.mjs";
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
10
10
|
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-DgApCViL.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/transform-job/update.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
9
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
10
10
|
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-DRTklDg3.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/snippet/update.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-CPA0hL4E.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
4
|
import { ConfigError } from "./errors-C6w1eZ1F.mjs";
|
|
5
5
|
import "./input-DMcm_A5s.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BosOjtk8.mjs";
|
|
7
|
+
import { readBody } from "./body-Dhcf1O4J.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { DashboardDetail, Dashcard, DashcardPatchInput, dashcardView } from "./dashboard-
|
|
9
|
+
import { parseId } from "./parse-id-B6lwJaSN.mjs";
|
|
10
|
+
import { DashboardDetail, Dashcard, DashcardPatchInput, dashcardView } from "./dashboard-CztCJxke.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/dashboard/update-dashcard.ts
|
|
13
13
|
var update_dashcard_default = defineMetabaseCommand({
|