@metabase/cli 0.1.0-alpha.workspaces-commands.28a297a → 0.1.0-alpha.workspaces-commands.aa383a1
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 +59 -22
- package/dist/add-collection-Bw_KL6EH.mjs +11 -0
- package/dist/{add-collection-DB2C0Pdw.mjs → add-collection-Cvh_24_Q.mjs} +4 -4
- package/dist/{api-key-BqZV1nLg.mjs → api-key-d2kBtC3S.mjs} +1 -1
- package/dist/{archive-e-4fxNMq.mjs → archive-BbY8tyIA.mjs} +7 -7
- package/dist/{archive-c6NmnA8k.mjs → archive-CMEk6RsU.mjs} +6 -6
- package/dist/{archive-CuYuesnm.mjs → archive-O0WoU8LU.mjs} +5 -5
- package/dist/{archive-B1keZ1oV.mjs → archive-WgWmkexh.mjs} +7 -7
- package/dist/auth-DCoGwYKi.mjs +19 -0
- package/dist/{body-D_BRIb1g.mjs → body-C2lo4Axp.mjs} +3 -3
- package/dist/{branches-Dy_8vIh4.mjs → branches-ohsIXufV.mjs} +6 -6
- package/dist/{cancel-Djld5ex0.mjs → cancel-eV9xzouo.mjs} +5 -5
- package/dist/{cancel-task-DX_5nq_N.mjs → cancel-task-DEI788SO.mjs} +6 -6
- package/dist/card-CtK41cpb.mjs +20 -0
- package/dist/{cards-Bhu7cd67.mjs → cards-B_XNja43.mjs} +6 -6
- package/dist/cli.mjs +24 -23
- package/dist/collection-CWYozp35.mjs +19 -0
- package/dist/{collection-BsiGRKXh.mjs → collection-DFqH6N7s.mjs} +2 -2
- package/dist/{create-CeaThiSk.mjs → create-BL84c0N2.mjs} +7 -7
- package/dist/{create-DObs_ZQY.mjs → create-CVRcTydU.mjs} +7 -7
- package/dist/{create-D52ykhxx.mjs → create-D5GQ3L7D.mjs} +8 -8
- package/dist/{create-BLntykb-.mjs → create-D_WX4JYl.mjs} +7 -7
- package/dist/{create-CXqsPb0D.mjs → create-Dh7YG1mO.mjs} +7 -7
- package/dist/{create-branch-B7GstHWB.mjs → create-branch-NM1OQ9Vk.mjs} +6 -6
- package/dist/{create-B2QidM_x.mjs → create-lBZSfAKV.mjs} +24 -16
- package/dist/{create-C7306Nj2.mjs → create-lYoy27zG.mjs} +7 -7
- package/dist/{create-gL677HA2.mjs → create-oFRJZRJW.mjs} +8 -7
- package/dist/{create-Dm32X31o.mjs → create-o_cxdysF.mjs} +7 -7
- package/dist/{create-u53lHBvb.mjs → create-wIKFYXjw.mjs} +9 -8
- package/dist/{credentials-3xkVaa31.mjs → credentials-dN7n9-oM.mjs} +8 -8
- package/dist/{current-task-MW424eQU.mjs → current-task-1oigZEYp.mjs} +6 -6
- package/dist/dashboard-GeAXKl0W.mjs +20 -0
- package/dist/{database-zA2GgRgJ.mjs → database-DiSMWtmg.mjs} +3 -3
- package/dist/{database-GbK7OAPX.mjs → database-DzcFix9u.mjs} +1 -1
- package/dist/db-2G-o2xtr.mjs +22 -0
- package/dist/{delete-CuUZ7fBH.mjs → delete-BV0Dawne.mjs} +7 -7
- package/dist/{delete-5RYMpau4.mjs → delete-D1Apu5tv.mjs} +7 -7
- package/dist/{delete-runtime-DCc3Hie4.mjs → delete-runtime-D8z0lCJ2.mjs} +2 -2
- package/dist/{delete-table-DdtjSOzx.mjs → delete-table-DQHUlwKv.mjs} +7 -7
- package/dist/{deprovision-BD9cBJHd.mjs → deprovision-osrI7qAP.mjs} +11 -11
- package/dist/{dirty-6hyoJZf4.mjs → dirty-BTHmduNN.mjs} +6 -6
- package/dist/{docker-W7ITnCLd.mjs → docker-m-PE5frg.mjs} +3 -3
- package/dist/{eid-AISoTK5d.mjs → eid-CANLCfwr.mjs} +1 -1
- package/dist/{errors-C6w1eZ1F.mjs → errors-DqPLKwoK.mjs} +54 -8
- package/dist/{export-Dfki7m6s.mjs → export-hg-kX3d5.mjs} +7 -7
- package/dist/field-CzZEYFp6.mjs +18 -0
- package/dist/{fields-DV4ytEF-.mjs → fields-B_QxZGbf.mjs} +7 -7
- package/dist/{flag-pair-Dz-mbq0z.mjs → flag-pair-Byca1x-Q.mjs} +1 -1
- package/dist/{get-BnXEaySB.mjs → get-BBcrLO_W.mjs} +6 -6
- package/dist/{get-DNOdvjBL.mjs → get-BD7Vyb-k.mjs} +5 -5
- package/dist/{get-Er4CIEdM.mjs → get-BZcSoeSY.mjs} +6 -6
- package/dist/get-Bp_SqgyX.mjs +53 -0
- package/dist/{get-TNKECwY7.mjs → get-CONAtf64.mjs} +6 -6
- package/dist/{get-AUwMskl2.mjs → get-D-ZPuk_T.mjs} +6 -6
- package/dist/{get-BPRZaF53.mjs → get-DQjJhZRm.mjs} +6 -6
- package/dist/{get-B-UkMh-Y.mjs → get-Dxyz8B08.mjs} +6 -6
- package/dist/{get-CSiojYCN.mjs → get-TRJ6QpYc.mjs} +6 -6
- package/dist/{get-CNhRpCvU.mjs → get-huQZIpRI.mjs} +6 -6
- package/dist/{get-BnRMSv1G.mjs → get-lPU3jSyo.mjs} +8 -8
- package/dist/{get-run-Dyv3Bm6R.mjs → get-run-WxHde6zO.mjs} +6 -6
- package/dist/{get-CcUzva2o.mjs → get-slUdOmG4.mjs} +6 -6
- package/dist/{has-remote-changes-CYrO6398.mjs → has-remote-changes-CQCior6b.mjs} +6 -6
- package/dist/{import-CyAT3jWh.mjs → import-y-7_YKQH.mjs} +7 -7
- package/dist/{input-DMcm_A5s.mjs → input-a1VFtFBh.mjs} +1 -1
- package/dist/is-dirty-CJ5aaXXs.mjs +10 -0
- package/dist/{is-dirty-0l6YxY-x.mjs → is-dirty-ZgX5mDJq.mjs} +3 -3
- package/dist/{items-DJp96l7n.mjs → items-ZP8yJJTA.mjs} +8 -8
- package/dist/{key-CjpAYsPz.mjs → key-UvYm9cOw.mjs} +1 -1
- package/dist/{license-CHccrjDp.mjs → license-2t70RAE_.mjs} +3 -3
- package/dist/{list-DkaTIDOc.mjs → list-B2dOeeua.mjs} +5 -5
- package/dist/{list-BJn9elDD.mjs → list-BAEch4jn.mjs} +5 -5
- package/dist/{list-C_sUJ2Yc.mjs → list-BHzsTJmU.mjs} +7 -7
- package/dist/{list-CpsaUvI3.mjs → list-BmI-BGK_.mjs} +7 -7
- package/dist/{list-B-Kt_Mm-.mjs → list-BsmGs2Wf.mjs} +4 -4
- package/dist/{list-BseZmPLw.mjs → list-CQVnPfi1.mjs} +5 -5
- package/dist/{list-DlWhwK41.mjs → list-CV-cfKnu.mjs} +5 -5
- package/dist/{list-BLxdaPvq.mjs → list-DO-Dxbq3.mjs} +5 -5
- package/dist/{list-RDJdCGOR.mjs → list-DZKxyQw1.mjs} +5 -5
- package/dist/{list-C0vbiU9Q.mjs → list-DjO6IxiH.mjs} +5 -5
- package/dist/{list-oRK_VvRO.mjs → list-VIZSxtf3.mjs} +4 -4
- package/dist/{list-CI_jCedk.mjs → list-dSoWq6_Y.mjs} +5 -5
- package/dist/{list-0k71E5wJ.mjs → list-ehmXcC-t.mjs} +5 -5
- package/dist/{login-CxCs_C85.mjs → login-D4a3b52m.mjs} +6 -6
- package/dist/{logout-f05owqsV.mjs → logout-BhO5sEm8.mjs} +5 -5
- package/dist/{logs-XUAbckH-.mjs → logs-DS6fKVNx.mjs} +6 -6
- package/dist/{manifest-CdAV6-YB.mjs → manifest-DalRNBAy.mjs} +2 -2
- package/dist/measure-Bagaha3J.mjs +19 -0
- package/dist/{metadata-Bl8qs0rn.mjs → metadata-CKuOfkMS.mjs} +8 -8
- package/dist/{metadata-MEAm5q9I.mjs → metadata-DN4Mqj7s.mjs} +7 -7
- package/dist/{package-CtkDnX1U.mjs → package-BPEXn1Of.mjs} +1 -1
- package/dist/{paginate-CnTxzOh2.mjs → paginate-B9W7ZuBj.mjs} +2 -2
- package/dist/{parse-id-jvzdqaO1.mjs → parse-id-BqO2IY1b.mjs} +1 -1
- package/dist/{parse-ref-CyeuK_yM.mjs → parse-ref-Oyf_TeW-.mjs} +1 -1
- package/dist/{parse-schemas-Dr5c5urd.mjs → parse-schemas-CJ0dEiTk.mjs} +2 -2
- package/dist/{poll-48PVbWIx.mjs → poll-DJWznjP9.mjs} +2 -2
- package/dist/{poll-task-DlcGug4o.mjs → poll-task-CXSagHdO.mjs} +2 -2
- package/dist/preflight-DQv-qq5r.mjs +91 -0
- package/dist/{prompt-k9s4Ntk5.mjs → prompt-g87Vvbx8.mjs} +1 -1
- package/dist/{provision-BqKjBXr6.mjs → provision-DXr7ZG8I.mjs} +12 -12
- package/dist/{ps-DFLSO-al.mjs → ps-DWXhgZVf.mjs} +3 -3
- package/dist/ps-NVWIylrB.mjs +10 -0
- package/dist/{query-BoIeOotH.mjs → query-DR0R8J_B.mjs} +9 -8
- package/dist/{query-Cv5RkyWm.mjs → query-q7b2hzrE.mjs} +5 -5
- package/dist/{remove-BZFVrrRi.mjs → remove-32Z7lUm6.mjs} +8 -8
- package/dist/{remove-CtOb1Exs.mjs → remove-Brcrdtfx.mjs} +5 -5
- package/dist/{remove-collection-CiRwsouq.mjs → remove-collection-D3RQTzDz.mjs} +8 -8
- package/dist/{render-BYWlZPEH.mjs → render-D8GOkk4P.mjs} +5 -2
- package/dist/{rescan-values-LuCZs_-Y.mjs → rescan-values-BpRkyMZp.mjs} +8 -8
- package/dist/{run-f5GaSWrR.mjs → run-DGMovJHI.mjs} +8 -8
- package/dist/{runs-ChAmvhjK.mjs → runs-DRnBkXmG.mjs} +7 -7
- package/dist/{runtime-BfWVLqFk.mjs → runtime-Dwaw7sqU.mjs} +13 -8
- package/dist/{schema-tables-BPF2GaD5.mjs → schema-tables-C-Rslrnl.mjs} +7 -7
- package/dist/{schemas-DEprqU5v.mjs → schemas-DzUHirII.mjs} +5 -5
- package/dist/{search-BU6MBJkj.mjs → search-CKie8hjZ.mjs} +5 -5
- package/dist/segment-C66MvGDy.mjs +19 -0
- package/dist/{set-D_MQ_q20.mjs → set-DuwiAGUc.mjs} +6 -6
- package/dist/{set-B65rz1rA.mjs → set-xF9CP68x.mjs} +8 -8
- package/dist/{setting-BDbBiriX.mjs → setting-DWoyNzLC.mjs} +3 -3
- package/dist/{setup-DfWKuwgQ.mjs → setup-Cn54kGu2.mjs} +6 -6
- package/dist/snippet-TOO4F2a8.mjs +19 -0
- package/dist/{start-qqtkW4kF.mjs → start-DpzDRfxQ.mjs} +12 -12
- package/dist/{stash-RjmKwTnL.mjs → stash-BT5wUeNt.mjs} +7 -7
- package/dist/{status-Bq9Or4ap.mjs → status-D7PR1KJp.mjs} +7 -7
- package/dist/{status-CMV_Y9s8.mjs → status-DKMAE9zo.mjs} +4 -4
- package/dist/{status-C9OI3uvE.mjs → status-g9cjxsHd.mjs} +4 -4
- package/dist/{stop-DYG1Hk0D.mjs → stop-Da7M-CRc.mjs} +8 -8
- package/dist/{summary-CFIZw6Z_.mjs → summary-3quv6ksc.mjs} +6 -6
- package/dist/sync-CcYMBXTo.mjs +28 -0
- package/dist/{sync-schema-DHP2ut3W.mjs → sync-schema-HcO7DSYi.mjs} +8 -8
- package/dist/{table-DhB2_Dxd.mjs → table-Ck9sInse.mjs} +2 -2
- package/dist/table-CpsE5VUF.mjs +19 -0
- package/dist/transform-CUxV3WSi.mjs +24 -0
- package/dist/transform-job-Dry0r1Xz.mjs +19 -0
- package/dist/{translate-C1KCIueR.mjs → translate-Z7f_VDDn.mjs} +7 -7
- package/dist/{tree-DN8mtMcc.mjs → tree-DZNnXYjb.mjs} +5 -5
- package/dist/{update-DPDC9Z5Z.mjs → update--v4lsiLM.mjs} +10 -9
- package/dist/{update-C4IrhfoO.mjs → update-BmvyguU9.mjs} +8 -8
- package/dist/{update-oct4Rsd_.mjs → update-C9N9kLkB.mjs} +9 -9
- package/dist/{update-vJoiGxbD.mjs → update-CKrsR2vZ.mjs} +12 -12
- package/dist/{update-D876ZU92.mjs → update-CPc3u-aB.mjs} +8 -8
- package/dist/{update-pM-Gf5JQ.mjs → update-CfLDXi8m.mjs} +13 -9
- package/dist/{update-B_rysKwt.mjs → update-D2J1WtKn.mjs} +8 -8
- package/dist/{update-gilP1tVa.mjs → update-DE0DPo7n.mjs} +8 -8
- package/dist/{update-DF5zkSQK.mjs → update-D_2eMRda.mjs} +8 -8
- package/dist/{update-dashcard-DDsQTcDm.mjs → update-dashcard-28PIWnwP.mjs} +8 -8
- package/dist/{update-qh8LxZtb.mjs → update-fRqtvI5G.mjs} +9 -8
- package/dist/{url-sg5mpmoG.mjs → url-yVWrLimZ.mjs} +7 -7
- package/dist/uuid-D9rbiLTK.mjs +47 -0
- package/dist/{validate-query-D0aAFTUs.mjs → validate-DlXXSNQ-.mjs} +47 -35
- package/dist/validate-query-Bc1-_glK.mjs +21 -0
- package/dist/{values-Bifff37r.mjs → values-K_-V36xz.mjs} +6 -6
- package/dist/{wait-CmT20Yfw.mjs → wait-C2S1JuUq.mjs} +7 -7
- package/dist/{wait-BNcrEoQa.mjs → wait-Ch__WrKD.mjs} +2 -2
- package/dist/{wait-flags-DNJCAYmz.mjs → wait-flags-Jdygg1yT.mjs} +2 -2
- package/dist/workspace-DAlhADfI.mjs +24 -0
- package/dist/{workspace-credentials-D_ivv5vy.mjs → workspace-credentials-U6bazYof.mjs} +1 -1
- package/package.json +1 -1
- package/dist/add-collection-Dwu5Rcn3.mjs +0 -11
- package/dist/auth-DHOpcw11.mjs +0 -19
- package/dist/card-D1JLv6cG.mjs +0 -20
- package/dist/collection-C2C4HUz_.mjs +0 -19
- package/dist/dashboard-BLr8iCSU.mjs +0 -20
- package/dist/db-CBCfAbIZ.mjs +0 -22
- package/dist/field-DbuCWbv9.mjs +0 -18
- package/dist/get-DpDiG-Kd.mjs +0 -37
- package/dist/is-dirty-ChP4hRvg.mjs +0 -10
- package/dist/measure-CDMN4H2K.mjs +0 -19
- package/dist/ps-R3DY2-cz.mjs +0 -10
- package/dist/segment-CYr8A0Qx.mjs +0 -19
- package/dist/snippet-CbNr7l5W.mjs +0 -19
- package/dist/sync-CHqSTijq.mjs +0 -28
- package/dist/table-BjX5aZ_b.mjs +0 -19
- package/dist/transform-hfQvOcAS.mjs +0 -24
- package/dist/transform-job-BtJZYt5N.mjs +0 -19
- package/dist/workspace-DvZtoFEM.mjs +0 -24
- /package/dist/{dashboard-CztCJxke.mjs → dashboard-DyrRSbqQ.mjs} +0 -0
- /package/dist/{field-BakUM_Le.mjs → field-D6CJbmAR.mjs} +0 -0
- /package/dist/{measure-B1GKcZxO.mjs → measure-jbc7fsCs.mjs} +0 -0
- /package/dist/{revision-message-flag-BJiGjb5m.mjs → revision-message-flag-D4E1lKE5.mjs} +0 -0
- /package/dist/{segment-CQ5w3M_W.mjs → segment-D0XmKSU2.mjs} +0 -0
- /package/dist/{setting-DIXJ2haa.mjs → setting-DH7Kgx94.mjs} +0 -0
- /package/dist/{snippet-DRTklDg3.mjs → snippet-CBTV07b-.mjs} +0 -0
- /package/dist/{transform-92odFxg-.mjs → transform-IEX4Mx3X.mjs} +0 -0
- /package/dist/{transform-job-DgApCViL.mjs → transform-job-DZ38Xc3k.mjs} +0 -0
- /package/dist/{workspace-D93cDL8-.mjs → workspace-jfsegcq8.mjs} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/segment/index.ts
|
|
4
|
+
var segment_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "segment",
|
|
7
|
+
description: "Inspect Metabase segments"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-CQVnPfi1.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-slUdOmG4.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-o_cxdysF.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-DE0DPo7n.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-WgWmkexh.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { segment_default as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem, warn } from "./render-
|
|
4
|
-
import { ConfigError } from "./errors-
|
|
5
|
-
import { readInput } from "./input-
|
|
6
|
-
import { defineMetabaseCommand, outputFlags, readEnvLicenseToken, writeLicense } from "./runtime-
|
|
7
|
-
import { promptPassword } from "./prompt-
|
|
3
|
+
import { renderItem, warn } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import { ConfigError } from "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import { readInput } from "./input-a1VFtFBh.mjs";
|
|
6
|
+
import { defineMetabaseCommand, outputFlags, readEnvLicenseToken, writeLicense } from "./runtime-Dwaw7sqU.mjs";
|
|
7
|
+
import { promptPassword } from "./prompt-g87Vvbx8.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/license/set.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./errors-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
8
|
-
import { SettingValue, settingValueView } from "./setting-
|
|
9
|
-
import { parseSettingKey } from "./key-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import "./input-a1VFtFBh.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dwaw7sqU.mjs";
|
|
7
|
+
import { readBody } from "./body-C2lo4Axp.mjs";
|
|
8
|
+
import { SettingValue, settingValueView } from "./setting-DH7Kgx94.mjs";
|
|
9
|
+
import { parseSettingKey } from "./key-UvYm9cOw.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/setting/set.ts
|
|
@@ -8,9 +8,9 @@ var setting_default = defineCommand({
|
|
|
8
8
|
alias: "settings"
|
|
9
9
|
},
|
|
10
10
|
subCommands: {
|
|
11
|
-
list: () => import("./list-
|
|
12
|
-
get: () => import("./get-
|
|
13
|
-
set: () => import("./set-
|
|
11
|
+
list: () => import("./list-DjO6IxiH.mjs").then((m) => m.default),
|
|
12
|
+
get: () => import("./get-huQZIpRI.mjs").then((m) => m.default),
|
|
13
|
+
set: () => import("./set-xF9CP68x.mjs").then((m) => m.default)
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./errors-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import "./input-a1VFtFBh.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dwaw7sqU.mjs";
|
|
7
|
+
import { readBody } from "./body-C2lo4Axp.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
@@ -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-DO-Dxbq3.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-CONAtf64.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-Dh7YG1mO.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-CPc3u-aB.mjs").then((mod) => mod.default),
|
|
14
|
+
archive: () => import("./archive-CMEk6RsU.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { snippet_default as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem, warn } from "./render-
|
|
4
|
-
import { ConfigError, errorMessage } from "./errors-
|
|
5
|
-
import { connectionFlags, createClient, defineMetabaseCommand, localUrl, outputFlags, parseInteger, parseOptionalInteger, profileFlag, resolveLicenseToken } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { pollUntil } from "./poll-
|
|
8
|
-
import { Workspace } from "./workspace-
|
|
9
|
-
import { CONTAINER_REPO_DIR, checkDockerReady, containerLifecycleStatus, containerNameFor, pullImage, removeContainer, runProcess, runWorkspaceContainer, scrubContainerConfig, waitForConfigConsumed } from "./docker-
|
|
10
|
-
import { REPO_SYNC_MODES, RepoSyncMode, buildCredentialsJson, generateWorkspaceCredentials, injectCredentialsIntoConfig, injectRepoSettingsIntoConfig } from "./workspace-credentials-
|
|
3
|
+
import { renderItem, warn } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import { ConfigError, errorMessage } from "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import { connectionFlags, createClient, defineMetabaseCommand, localUrl, outputFlags, parseInteger, parseOptionalInteger, profileFlag, resolveLicenseToken } from "./runtime-Dwaw7sqU.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
7
|
+
import { pollUntil } from "./poll-DJWznjP9.mjs";
|
|
8
|
+
import { Workspace } from "./workspace-jfsegcq8.mjs";
|
|
9
|
+
import { CONTAINER_REPO_DIR, checkDockerReady, containerLifecycleStatus, containerNameFor, pullImage, removeContainer, runProcess, runWorkspaceContainer, scrubContainerConfig, waitForConfigConsumed } from "./docker-m-PE5frg.mjs";
|
|
10
|
+
import { REPO_SYNC_MODES, RepoSyncMode, buildCredentialsJson, generateWorkspaceCredentials, injectCredentialsIntoConfig, injectRepoSettingsIntoConfig } from "./workspace-credentials-U6bazYof.mjs";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import { stat } from "node:fs/promises";
|
|
13
13
|
import { resolve } from "node:path";
|
|
@@ -131,8 +131,8 @@ var start_default = defineMetabaseCommand({
|
|
|
131
131
|
},
|
|
132
132
|
pull: {
|
|
133
133
|
type: "boolean",
|
|
134
|
-
description: "
|
|
135
|
-
default:
|
|
134
|
+
description: "Pull the image before starting",
|
|
135
|
+
default: true
|
|
136
136
|
},
|
|
137
137
|
metadata: {
|
|
138
138
|
type: "boolean",
|
|
@@ -163,7 +163,7 @@ var start_default = defineMetabaseCommand({
|
|
|
163
163
|
"metabase workspace start 1",
|
|
164
164
|
"metabase workspace start 1 --wait",
|
|
165
165
|
"metabase workspace start 1 --port 3100",
|
|
166
|
-
"metabase workspace start 1 --image metabase/metabase-dev:feature-workspaces-v2 --pull",
|
|
166
|
+
"metabase workspace start 1 --image metabase/metabase-dev:feature-workspaces-v2 --no-pull",
|
|
167
167
|
"metabase workspace start 1 --force",
|
|
168
168
|
"metabase workspace start 1 --repo /path/to/sync-repo --wait",
|
|
169
169
|
"metabase workspace start 1 --repo /path/to/sync-repo --repo-branch dev --repo-mode read-only"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import { ConfigError } from "./errors-
|
|
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-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import { ConfigError } from "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dwaw7sqU.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
7
|
+
import { REMOTE_SYNC_PATHS, SyncTask, pollFlags, pollSyncTask, throwIfFailedTask } from "./poll-task-CXSagHdO.mjs";
|
|
8
|
+
import "./poll-DJWznjP9.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/sync/stash.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./errors-
|
|
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-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dwaw7sqU.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncTask, fetchCurrentTask, fetchOptionalParsed } from "./poll-task-CXSagHdO.mjs";
|
|
7
|
+
import "./poll-DJWznjP9.mjs";
|
|
8
|
+
import { IsDirtyResult } from "./is-dirty-ZgX5mDJq.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-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./errors-
|
|
5
|
-
import { account, credentials, defineMetabaseCommand, outputFlags } from "./runtime-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import { account, credentials, defineMetabaseCommand, outputFlags } from "./runtime-Dwaw7sqU.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/license/status.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./errors-
|
|
5
|
-
import { account, credentials, defineMetabaseCommand, originOnly, outputFlags, profileFlag, resolveProfileName } from "./runtime-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import { account, credentials, defineMetabaseCommand, originOnly, outputFlags, profileFlag, resolveProfileName } from "./runtime-Dwaw7sqU.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/auth/status.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./errors-
|
|
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-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import { defineMetabaseCommand, outputFlags } from "./runtime-Dwaw7sqU.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
7
|
+
import "./poll-DJWznjP9.mjs";
|
|
8
|
+
import { checkDockerReady, containerLifecycleStatus, containerNameFor, stopContainer } from "./docker-m-PE5frg.mjs";
|
|
9
|
+
import { LocalWorkspaceState } from "./ps-DWXhgZVf.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/workspace/stop.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./errors-
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { FieldSummary, FieldSummaryRaw, fieldSummaryView } from "./field-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dwaw7sqU.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
7
|
+
import { FieldSummary, FieldSummaryRaw, fieldSummaryView } from "./field-D6CJbmAR.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/field/summary.ts
|
|
10
10
|
var summary_default = defineMetabaseCommand({
|
|
@@ -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-D7PR1KJp.mjs").then((mod) => mod.default),
|
|
11
|
+
"is-dirty": () => import("./is-dirty-CJ5aaXXs.mjs").then((mod) => mod.default),
|
|
12
|
+
"has-remote-changes": () => import("./has-remote-changes-CQCior6b.mjs").then((mod) => mod.default),
|
|
13
|
+
dirty: () => import("./dirty-BTHmduNN.mjs").then((mod) => mod.default),
|
|
14
|
+
"current-task": () => import("./current-task-1oigZEYp.mjs").then((mod) => mod.default),
|
|
15
|
+
"cancel-task": () => import("./cancel-task-DEI788SO.mjs").then((mod) => mod.default),
|
|
16
|
+
wait: () => import("./wait-C2S1JuUq.mjs").then((mod) => mod.default),
|
|
17
|
+
import: () => import("./import-y-7_YKQH.mjs").then((mod) => mod.default),
|
|
18
|
+
export: () => import("./export-hg-kX3d5.mjs").then((mod) => mod.default),
|
|
19
|
+
stash: () => import("./stash-BT5wUeNt.mjs").then((mod) => mod.default),
|
|
20
|
+
branches: () => import("./branches-ohsIXufV.mjs").then((mod) => mod.default),
|
|
21
|
+
"create-branch": () => import("./create-branch-NM1OQ9Vk.mjs").then((mod) => mod.default),
|
|
22
|
+
"add-collection": () => import("./add-collection-Bw_KL6EH.mjs").then((mod) => mod.default),
|
|
23
|
+
"remove-collection": () => import("./remove-collection-D3RQTzDz.mjs").then((mod) => mod.default)
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { sync_default as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./errors-
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./field-
|
|
8
|
-
import "./table-
|
|
9
|
-
import { DatabaseSyncResult, databaseSyncResultView } from "./database-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dwaw7sqU.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
7
|
+
import "./field-D6CJbmAR.mjs";
|
|
8
|
+
import "./table-Ck9sInse.mjs";
|
|
9
|
+
import { DatabaseSyncResult, databaseSyncResultView } from "./database-DzcFix9u.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/db/sync-schema.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Field } from "./field-
|
|
1
|
+
import { Field, FieldCompact } from "./field-D6CJbmAR.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region src/domain/table.ts
|
|
@@ -47,7 +47,7 @@ const TableCompact = Table.pick({
|
|
|
47
47
|
db_id: true,
|
|
48
48
|
schema: true,
|
|
49
49
|
entity_type: true
|
|
50
|
-
}).strip();
|
|
50
|
+
}).strip().extend({ fields: z.array(FieldCompact).optional() });
|
|
51
51
|
const tableView = {
|
|
52
52
|
compactPick: TableCompact,
|
|
53
53
|
tableColumns: [
|
|
@@ -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-BmI-BGK_.mjs").then((m) => m.default),
|
|
11
|
+
get: () => import("./get-Bp_SqgyX.mjs").then((m) => m.default),
|
|
12
|
+
metadata: () => import("./metadata-DN4Mqj7s.mjs").then((m) => m.default),
|
|
13
|
+
fields: () => import("./fields-B_QxZGbf.mjs").then((m) => m.default),
|
|
14
|
+
update: () => import("./update-C9N9kLkB.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-dSoWq6_Y.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-BZcSoeSY.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-wIKFYXjw.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update--v4lsiLM.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-BV0Dawne.mjs").then((mod) => mod.default),
|
|
15
|
+
"delete-table": () => import("./delete-table-DQHUlwKv.mjs").then((mod) => mod.default),
|
|
16
|
+
run: () => import("./run-DGMovJHI.mjs").then((mod) => mod.default),
|
|
17
|
+
cancel: () => import("./cancel-eV9xzouo.mjs").then((mod) => mod.default),
|
|
18
|
+
"get-run": () => import("./get-run-WxHde6zO.mjs").then((mod) => mod.default),
|
|
19
|
+
runs: () => import("./runs-DRnBkXmG.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-CV-cfKnu.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-D-ZPuk_T.mjs").then((mod) => mod.default),
|
|
12
|
+
create: () => import("./create-CVRcTydU.mjs").then((mod) => mod.default),
|
|
13
|
+
update: () => import("./update-D_2eMRda.mjs").then((mod) => mod.default),
|
|
14
|
+
delete: () => import("./delete-D1Apu5tv.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { transform_job_default as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import { ConfigError } from "./errors-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, parseCsv, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import { ConfigError } from "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import "./input-a1VFtFBh.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, parseCsv, profileFlag } from "./runtime-Dwaw7sqU.mjs";
|
|
7
|
+
import { readBody } from "./body-C2lo4Axp.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { requireBothOrNeither } from "./flag-pair-
|
|
9
|
+
import { requireBothOrNeither } from "./flag-pair-Byca1x-Q.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
12
12
|
//#region src/domain/eid-translation.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { writeJson } from "./render-
|
|
4
|
-
import { ConfigError } from "./errors-
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { CollectionTreeNode } from "./collection-
|
|
3
|
+
import { writeJson } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import { ConfigError } from "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dwaw7sqU.mjs";
|
|
6
|
+
import { CollectionTreeNode } from "./collection-DFqH6N7s.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/collection/tree.ts
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./errors-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import "./input-a1VFtFBh.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dwaw7sqU.mjs";
|
|
7
|
+
import { readBody } from "./body-C2lo4Axp.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
9
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
10
|
+
import "./validate-DlXXSNQ-.mjs";
|
|
11
|
+
import { preflightInternalMbql5Query, skipValidateFlag } from "./validate-query-Bc1-_glK.mjs";
|
|
12
|
+
import { Transform, TransformUpdateInput, transformView } from "./transform-IEX4Mx3X.mjs";
|
|
12
13
|
|
|
13
14
|
//#region src/commands/transform/update.ts
|
|
14
15
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./errors-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import "./input-a1VFtFBh.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dwaw7sqU.mjs";
|
|
7
|
+
import { readBody } from "./body-C2lo4Axp.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { Measure, MeasureUpdateInput, measureView } from "./measure-
|
|
9
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
10
|
+
import { Measure, MeasureUpdateInput, measureView } from "./measure-jbc7fsCs.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/measure/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./errors-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import "./input-a1VFtFBh.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dwaw7sqU.mjs";
|
|
7
|
+
import { readBody } from "./body-C2lo4Axp.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import "./field-
|
|
11
|
-
import { Table, TableUpdateInput, tableView } from "./table-
|
|
9
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
10
|
+
import "./field-D6CJbmAR.mjs";
|
|
11
|
+
import { Table, TableUpdateInput, tableView } from "./table-Ck9sInse.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/table/update.ts
|
|
14
14
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./errors-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import "./input-a1VFtFBh.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dwaw7sqU.mjs";
|
|
7
|
+
import { readBody } from "./body-C2lo4Axp.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-
|
|
12
|
-
import { Workspace, WorkspaceUpdateDatabaseInput, workspaceView } from "./workspace-
|
|
13
|
-
import { waitForDatabaseProvisioned } from "./wait-
|
|
14
|
-
import { parseSchemasCsv } from "./parse-schemas-
|
|
9
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
10
|
+
import "./poll-DJWznjP9.mjs";
|
|
11
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-Jdygg1yT.mjs";
|
|
12
|
+
import { Workspace, WorkspaceUpdateDatabaseInput, workspaceView } from "./workspace-jfsegcq8.mjs";
|
|
13
|
+
import { waitForDatabaseProvisioned } from "./wait-Ch__WrKD.mjs";
|
|
14
|
+
import { parseSchemasCsv } from "./parse-schemas-CJ0dEiTk.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-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./errors-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import "./input-a1VFtFBh.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dwaw7sqU.mjs";
|
|
7
|
+
import { readBody } from "./body-C2lo4Axp.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-
|
|
9
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
10
|
+
import { Snippet, SnippetUpdateInput, snippetView } from "./snippet-CBTV07b-.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/snippet/update.ts
|
|
13
13
|
var update_default = defineMetabaseCommand({
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-
|
|
4
|
-
import "./errors-
|
|
5
|
-
import "./input-
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import "./input-a1VFtFBh.mjs";
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-Dwaw7sqU.mjs";
|
|
7
|
+
import { readBody } from "./body-C2lo4Axp.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { parseId } from "./parse-id-
|
|
10
|
-
import
|
|
9
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
10
|
+
import "./card-BOGKT258.mjs";
|
|
11
|
+
import "./validate-DlXXSNQ-.mjs";
|
|
12
|
+
import { DashboardDetail, DashboardUpdateInput, dashboardView } from "./dashboard-DyrRSbqQ.mjs";
|
|
13
|
+
import { preflightDashcardCardReferences } from "./preflight-DQv-qq5r.mjs";
|
|
11
14
|
|
|
12
15
|
//#region src/commands/dashboard/update.ts
|
|
13
16
|
var update_default = defineMetabaseCommand({
|
|
14
17
|
meta: {
|
|
15
18
|
name: "update",
|
|
16
|
-
description: "Update a dashboard (and optionally its dashcards/tabs) by id"
|
|
19
|
+
description: "Update a dashboard (and optionally its dashcards/tabs) by id; any positive card_id referenced from dashcards is pre-flight-validated against /api/card/:id (exists, not archived) before the PUT"
|
|
17
20
|
},
|
|
18
21
|
args: {
|
|
19
22
|
...outputFlags,
|
|
@@ -40,6 +43,7 @@ var update_default = defineMetabaseCommand({
|
|
|
40
43
|
file: args.file
|
|
41
44
|
}, DashboardUpdateInput);
|
|
42
45
|
const client = await getClient();
|
|
46
|
+
await preflightDashcardCardReferences(client, body.dashcards);
|
|
43
47
|
const updated = await client.requestParsed(DashboardDetail, `/api/dashboard/${id}`, {
|
|
44
48
|
method: "PUT",
|
|
45
49
|
body
|