@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
|
@@ -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 { Field, FieldUpdateInput, fieldView } from "./field-
|
|
9
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
10
|
+
import { Field, FieldUpdateInput, fieldView } from "./field-D6CJbmAR.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/field/update.ts
|
|
13
13
|
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 { Segment, SegmentUpdateInput, segmentView } from "./segment-
|
|
9
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
10
|
+
import { Segment, SegmentUpdateInput, segmentView } from "./segment-D0XmKSU2.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/segment/update.ts
|
|
13
13
|
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 { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-
|
|
9
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
10
|
+
import { TransformJob, TransformJobUpdateInput, transformJobView } from "./transform-job-DZ38Xc3k.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/transform-job/update.ts
|
|
13
13
|
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 { ConfigError } from "./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 { ConfigError } from "./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 { DashboardDetail, Dashcard, DashcardPatchInput, dashcardView } from "./dashboard-
|
|
9
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
10
|
+
import { DashboardDetail, Dashcard, DashcardPatchInput, dashcardView } from "./dashboard-DyrRSbqQ.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/dashboard/update-dashcard.ts
|
|
13
13
|
var update_dashcard_default = defineMetabaseCommand({
|
|
@@ -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-
|
|
9
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
10
10
|
import { Card, CardUpdateInput, cardView } from "./card-BOGKT258.mjs";
|
|
11
|
-
import
|
|
11
|
+
import "./validate-DlXXSNQ-.mjs";
|
|
12
|
+
import { preflightInternalMbql5Query, skipValidateFlag } from "./validate-query-Bc1-_glK.mjs";
|
|
12
13
|
|
|
13
14
|
//#region src/commands/card/update.ts
|
|
14
15
|
var update_default = defineMetabaseCommand({
|
|
@@ -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 { defineMetabaseCommand, localUrl, outputFlags } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import { checkDockerReady, requireWorkspaceContainerLocation } from "./docker-
|
|
3
|
+
import { renderItem } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import { defineMetabaseCommand, localUrl, outputFlags } from "./runtime-Dwaw7sqU.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
7
|
+
import "./poll-DJWznjP9.mjs";
|
|
8
|
+
import { checkDockerReady, requireWorkspaceContainerLocation } from "./docker-m-PE5frg.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/workspace/url.ts
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import "./package-BPEXn1Of.mjs";
|
|
2
|
+
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
+
import { writeJson, writeText } from "./render-D8GOkk4P.mjs";
|
|
4
|
+
import { ConfigError } from "./errors-DqPLKwoK.mjs";
|
|
5
|
+
import { defineMetabaseCommand, outputFlags, parseInteger } from "./runtime-Dwaw7sqU.mjs";
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
import { randomUUID } from "node:crypto";
|
|
8
|
+
|
|
9
|
+
//#region src/commands/uuid.ts
|
|
10
|
+
const MAX_COUNT = 1e4;
|
|
11
|
+
const UuidList = z.array(z.string().uuid());
|
|
12
|
+
var uuid_default = defineMetabaseCommand({
|
|
13
|
+
meta: {
|
|
14
|
+
name: "uuid",
|
|
15
|
+
description: "Mint UUID v4 strings (Node crypto.randomUUID) for MBQL `lib/uuid` slots, native template-tag ids, etc. Agents must call this to obtain UUIDs rather than authoring them by hand — hand-written placeholders fail the bundled MBQL 5 schema's `format: \"uuid\"` check."
|
|
16
|
+
},
|
|
17
|
+
args: {
|
|
18
|
+
...outputFlags,
|
|
19
|
+
count: {
|
|
20
|
+
type: "string",
|
|
21
|
+
description: `How many UUIDs to mint (default 1, max ${MAX_COUNT})`,
|
|
22
|
+
default: "1"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
outputSchema: UuidList,
|
|
26
|
+
examples: [
|
|
27
|
+
"metabase uuid",
|
|
28
|
+
"metabase uuid --count 5",
|
|
29
|
+
"metabase uuid --count 5 --json"
|
|
30
|
+
],
|
|
31
|
+
run({ args, ctx }) {
|
|
32
|
+
const count = parseInteger(args.count, {
|
|
33
|
+
name: "--count",
|
|
34
|
+
min: 1
|
|
35
|
+
});
|
|
36
|
+
if (count > MAX_COUNT) throw new ConfigError(`invalid --count: ${count} (must be ≤ ${MAX_COUNT})`);
|
|
37
|
+
const uuids = Array.from({ length: count }, () => randomUUID());
|
|
38
|
+
if (ctx.format === "json") {
|
|
39
|
+
writeJson(uuids);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
writeText(uuids.join("\n"));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { uuid_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isPlainObject
|
|
2
|
-
import {
|
|
1
|
+
import { isPlainObject } from "./render-D8GOkk4P.mjs";
|
|
2
|
+
import { escapeJsonPointerSegment } from "./errors-DqPLKwoK.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import Ajv2020 from "ajv/dist/2020.js";
|
|
5
5
|
import addFormats from "ajv-formats";
|
|
@@ -1450,20 +1450,35 @@ function getInternalValidator() {
|
|
|
1450
1450
|
if (internalValidator === null) internalValidator = buildAjv(internalIdSchema);
|
|
1451
1451
|
return internalValidator;
|
|
1452
1452
|
}
|
|
1453
|
+
const UUID_HINT_MESSAGE = "must be a UUID v4 (RFC 4122) — run `metabase uuid` (or `metabase uuid --count N`) to mint one. The MBQL 5 schema rejects placeholder strings (`a1`, `uuid-1`, etc.); agents must call the CLI for UUIDs rather than authoring them.";
|
|
1454
|
+
const FIELD_SLOT1_HINT_MESSAGE = "must be the field options object — MBQL 5 field refs are [\"field\", {options}, fieldId]; the legacy MBQL 4 shape [\"field\", id, opts] is not accepted here. (Tip: `metabase uuid` mints `lib/uuid` strings if you need them.)";
|
|
1455
|
+
function clauseSlot1HintMessage(operator, slot1) {
|
|
1456
|
+
return `must be the clause options object — every MBQL 5 clause is ["${operator}", {options}, ...args]; got ${describeJsonValue(slot1)} at index 1`;
|
|
1457
|
+
}
|
|
1458
|
+
const FormatErrorParams = z.object({ format: z.string() });
|
|
1459
|
+
function isUuidFormatIssue(issue) {
|
|
1460
|
+
if (issue.keyword !== "format") return false;
|
|
1461
|
+
const parsed = FormatErrorParams.safeParse(issue.params);
|
|
1462
|
+
return parsed.success && parsed.data.format === "uuid";
|
|
1463
|
+
}
|
|
1453
1464
|
function runValidator(validator, value) {
|
|
1454
1465
|
if (validator(value)) return {
|
|
1455
1466
|
ok: true,
|
|
1456
1467
|
errors: []
|
|
1457
1468
|
};
|
|
1458
|
-
const
|
|
1469
|
+
const overrides = collectMessageOverrides(value);
|
|
1459
1470
|
const issues = validator.errors ?? [];
|
|
1460
1471
|
const errors = issues.map((issue) => {
|
|
1461
1472
|
if (issue.message === void 0) throw new Error(`Ajv issue at ${issue.instancePath} has no message`);
|
|
1462
1473
|
const path = issue.instancePath === "" ? "/" : issue.instancePath;
|
|
1463
|
-
|
|
1474
|
+
if (isUuidFormatIssue(issue)) return {
|
|
1475
|
+
path,
|
|
1476
|
+
message: UUID_HINT_MESSAGE
|
|
1477
|
+
};
|
|
1478
|
+
const overridden = overrides.get(path);
|
|
1464
1479
|
return {
|
|
1465
1480
|
path,
|
|
1466
|
-
message:
|
|
1481
|
+
message: overridden ?? issue.message
|
|
1467
1482
|
};
|
|
1468
1483
|
});
|
|
1469
1484
|
return {
|
|
@@ -1471,32 +1486,38 @@ function runValidator(validator, value) {
|
|
|
1471
1486
|
errors
|
|
1472
1487
|
};
|
|
1473
1488
|
}
|
|
1474
|
-
function
|
|
1475
|
-
const
|
|
1489
|
+
function collectMessageOverrides(root) {
|
|
1490
|
+
const overrides = new Map();
|
|
1476
1491
|
visit(root, "");
|
|
1477
|
-
return
|
|
1492
|
+
return overrides;
|
|
1478
1493
|
function visit(node, path) {
|
|
1479
1494
|
if (Array.isArray(node)) {
|
|
1480
|
-
const
|
|
1481
|
-
if (
|
|
1495
|
+
const slot1 = clauseSlot1Message(node);
|
|
1496
|
+
if (slot1 !== null) overrides.set(`${path}/1`, slot1);
|
|
1497
|
+
const slot2 = refSlot2Message(node);
|
|
1498
|
+
if (slot2 !== null) overrides.set(`${path}/2`, slot2);
|
|
1482
1499
|
for (let index = 0; index < node.length; index += 1) visit(node[index], `${path}/${index}`);
|
|
1483
1500
|
return;
|
|
1484
1501
|
}
|
|
1485
1502
|
if (!isPlainObject(node)) return;
|
|
1486
|
-
for (const key of Object.keys(node)) {
|
|
1487
|
-
const segment = key.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
1488
|
-
visit(node[key], `${path}/${segment}`);
|
|
1489
|
-
}
|
|
1503
|
+
for (const key of Object.keys(node)) visit(node[key], `${path}/${escapeJsonPointerSegment(key)}`);
|
|
1490
1504
|
}
|
|
1491
1505
|
}
|
|
1492
|
-
function
|
|
1506
|
+
function clauseSlot1Message(clause) {
|
|
1507
|
+
if (clause.length < 2) return null;
|
|
1508
|
+
const operator = clause[0];
|
|
1509
|
+
if (typeof operator !== "string") return null;
|
|
1510
|
+
const slot1 = clause[1];
|
|
1511
|
+
if (isPlainObject(slot1)) return null;
|
|
1512
|
+
if (operator === "field") return FIELD_SLOT1_HINT_MESSAGE;
|
|
1513
|
+
return clauseSlot1HintMessage(operator, slot1);
|
|
1514
|
+
}
|
|
1515
|
+
function refSlot2Message(clause) {
|
|
1493
1516
|
if (clause.length !== 3) return null;
|
|
1494
1517
|
const kind = clause[0];
|
|
1495
1518
|
if (typeof kind !== "string") return null;
|
|
1496
|
-
const hint = refHintForKind(kind);
|
|
1497
|
-
if (hint === null) return null;
|
|
1498
1519
|
if (typeof clause[2] === "string") return null;
|
|
1499
|
-
return
|
|
1520
|
+
return refHintForKind(kind);
|
|
1500
1521
|
}
|
|
1501
1522
|
function refHintForKind(kind) {
|
|
1502
1523
|
switch (kind) {
|
|
@@ -1505,6 +1526,13 @@ function refHintForKind(kind) {
|
|
|
1505
1526
|
default: return null;
|
|
1506
1527
|
}
|
|
1507
1528
|
}
|
|
1529
|
+
function describeJsonValue(value) {
|
|
1530
|
+
if (value === null) return "null";
|
|
1531
|
+
if (Array.isArray(value)) return "array";
|
|
1532
|
+
if (typeof value === "string") return `string ${JSON.stringify(value)}`;
|
|
1533
|
+
if (typeof value === "number" || typeof value === "boolean") return `${typeof value} ${String(value)}`;
|
|
1534
|
+
return typeof value;
|
|
1535
|
+
}
|
|
1508
1536
|
function validateExternalQuery(value) {
|
|
1509
1537
|
return runValidator(getExternalValidator(), value);
|
|
1510
1538
|
}
|
|
@@ -1548,20 +1576,4 @@ function getQuerySchemaBundle(mode) {
|
|
|
1548
1576
|
}
|
|
1549
1577
|
|
|
1550
1578
|
//#endregion
|
|
1551
|
-
|
|
1552
|
-
const skipValidateFlag = { "skip-validate": {
|
|
1553
|
-
type: "boolean",
|
|
1554
|
-
description: "Skip the local MBQL 5 pre-flight validation; let the server be the authority. Use only when the bundled schema disagrees with what the server accepts."
|
|
1555
|
-
} };
|
|
1556
|
-
function preflightInternalMbql5Query(query, contextLabel, options) {
|
|
1557
|
-
if (options.skip) return;
|
|
1558
|
-
if (isLegacyEnvelopeWrappingMbql5(query)) throw new ConfigError(`${contextLabel}: MBQL 5 query nested inside a legacy {type:"query", query:…} envelope. For MBQL 5, dataset_query is the mbql/query value itself: {"lib/type":"mbql/query", database:N, stages:[…]}.`);
|
|
1559
|
-
if (!isMbql5Query(query)) return;
|
|
1560
|
-
const outcome = validateInternalQuery(query);
|
|
1561
|
-
if (outcome.ok) return;
|
|
1562
|
-
writeJson(outcome);
|
|
1563
|
-
throw new ConfigError(`${contextLabel}: ${outcome.errors.length} error(s) — pass valid MBQL 5 or use the legacy format`);
|
|
1564
|
-
}
|
|
1565
|
-
|
|
1566
|
-
//#endregion
|
|
1567
|
-
export { getQuerySchemaBundle, preflightInternalMbql5Query, skipValidateFlag, validateExternalQuery, validateInternalQuery };
|
|
1579
|
+
export { getQuerySchemaBundle, isLegacyEnvelopeWrappingMbql5, isMbql5Query, validateExternalQuery, validateInternalQuery };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { writeJson } from "./render-D8GOkk4P.mjs";
|
|
2
|
+
import { ConfigError } from "./errors-DqPLKwoK.mjs";
|
|
3
|
+
import { isLegacyEnvelopeWrappingMbql5, isMbql5Query, validateInternalQuery } from "./validate-DlXXSNQ-.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/commands/validate-query.ts
|
|
6
|
+
const skipValidateFlag = { "skip-validate": {
|
|
7
|
+
type: "boolean",
|
|
8
|
+
description: "Skip the local MBQL 5 pre-flight validation; let the server be the authority. Use only when the bundled schema disagrees with what the server accepts."
|
|
9
|
+
} };
|
|
10
|
+
function preflightInternalMbql5Query(query, contextLabel, options) {
|
|
11
|
+
if (options.skip) return;
|
|
12
|
+
if (isLegacyEnvelopeWrappingMbql5(query)) throw new ConfigError(`${contextLabel}: MBQL 5 query nested inside a legacy {type:"query", query:…} envelope. For MBQL 5, dataset_query is the mbql/query value itself: {"lib/type":"mbql/query", database:N, stages:[…]}.`);
|
|
13
|
+
if (!isMbql5Query(query)) return;
|
|
14
|
+
const outcome = validateInternalQuery(query);
|
|
15
|
+
if (outcome.ok) return;
|
|
16
|
+
writeJson(outcome);
|
|
17
|
+
throw new ConfigError(`${contextLabel}: ${outcome.errors.length} error(s) — pass valid MBQL 5 or use the legacy format`);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { preflightInternalMbql5Query, skipValidateFlag };
|
|
@@ -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 { FieldValues, fieldValuesView } 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 { FieldValues, fieldValuesView } from "./field-D6CJbmAR.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/field/values.ts
|
|
10
10
|
var values_default = defineMetabaseCommand({
|
|
@@ -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 { parseId } from "./parse-id-
|
|
7
|
-
import { SyncTaskOrIdle, pollSyncTask, syncTaskIdleView, syncTaskView, throwIfFailedTask } from "./poll-task-
|
|
8
|
-
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-
|
|
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 { SyncTaskOrIdle, pollSyncTask, syncTaskIdleView, syncTaskView, throwIfFailedTask } from "./poll-task-CXSagHdO.mjs";
|
|
8
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-DJWznjP9.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/sync/wait.ts
|
|
11
11
|
const WaitResult = SyncTaskOrIdle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { pollUntil } from "./poll-
|
|
2
|
-
import { Workspace } from "./workspace-
|
|
1
|
+
import { pollUntil } from "./poll-DJWznjP9.mjs";
|
|
2
|
+
import { Workspace } from "./workspace-jfsegcq8.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/workspace/database/wait.ts
|
|
5
5
|
async function waitForDatabaseProvisioned(client, workspaceId, databaseId, schedule) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { parseId } from "./parse-id-
|
|
2
|
-
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-
|
|
1
|
+
import { parseId } from "./parse-id-BqO2IY1b.mjs";
|
|
2
|
+
import { DEFAULT_INTERVAL_MS, DEFAULT_TIMEOUT_MS } from "./poll-DJWznjP9.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/wait-flags.ts
|
|
5
5
|
const waitFlags = {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/workspace/index.ts
|
|
4
|
+
var workspace_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "workspace",
|
|
7
|
+
description: "Manage Metabase workspaces (workspace-manager)"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-BAEch4jn.mjs").then((mod) => mod.default),
|
|
11
|
+
create: () => import("./create-BL84c0N2.mjs").then((mod) => mod.default),
|
|
12
|
+
database: () => import("./database-DiSMWtmg.mjs").then((mod) => mod.default),
|
|
13
|
+
start: () => import("./start-DpzDRfxQ.mjs").then((mod) => mod.default),
|
|
14
|
+
stop: () => import("./stop-Da7M-CRc.mjs").then((mod) => mod.default),
|
|
15
|
+
remove: () => import("./remove-32Z7lUm6.mjs").then((mod) => mod.default),
|
|
16
|
+
logs: () => import("./logs-DS6fKVNx.mjs").then((mod) => mod.default),
|
|
17
|
+
url: () => import("./url-yVWrLimZ.mjs").then((mod) => mod.default),
|
|
18
|
+
credentials: () => import("./credentials-dN7n9-oM.mjs").then((mod) => mod.default),
|
|
19
|
+
ps: () => import("./ps-NVWIylrB.mjs").then((mod) => mod.default)
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { workspace_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigError, ValidationError, errorMessage } from "./errors-
|
|
1
|
+
import { ConfigError, ValidationError, errorMessage } from "./errors-DqPLKwoK.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { randomBytes } from "node:crypto";
|
|
4
4
|
import { YAMLParseError, parse, stringify } from "yaml";
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import "./package-CtkDnX1U.mjs";
|
|
2
|
-
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import "./render-BYWlZPEH.mjs";
|
|
4
|
-
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import "./runtime-BfWVLqFk.mjs";
|
|
6
|
-
import "./parse-id-jvzdqaO1.mjs";
|
|
7
|
-
import "./poll-task-DlcGug4o.mjs";
|
|
8
|
-
import "./poll-48PVbWIx.mjs";
|
|
9
|
-
import { SyncSettingsUpdateResult, add_collection_default, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-DB2C0Pdw.mjs";
|
|
10
|
-
|
|
11
|
-
export { add_collection_default as default };
|
package/dist/auth-DHOpcw11.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/auth/index.ts
|
|
4
|
-
var auth_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "auth",
|
|
7
|
-
description: "Authenticate against a Metabase instance"
|
|
8
|
-
},
|
|
9
|
-
default: "login",
|
|
10
|
-
subCommands: {
|
|
11
|
-
login: () => import("./login-CxCs_C85.mjs").then((m) => m.default),
|
|
12
|
-
status: () => import("./status-C9OI3uvE.mjs").then((m) => m.default),
|
|
13
|
-
list: () => import("./list-B-Kt_Mm-.mjs").then((m) => m.default),
|
|
14
|
-
logout: () => import("./logout-f05owqsV.mjs").then((m) => m.default)
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { auth_default as default };
|
package/dist/card-D1JLv6cG.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/card/index.ts
|
|
4
|
-
var card_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "card",
|
|
7
|
-
description: "Manage Metabase cards (questions, models, metrics)"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
list: () => import("./list-oRK_VvRO.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-DNOdvjBL.mjs").then((mod) => mod.default),
|
|
12
|
-
query: () => import("./query-Cv5RkyWm.mjs").then((mod) => mod.default),
|
|
13
|
-
create: () => import("./create-gL677HA2.mjs").then((mod) => mod.default),
|
|
14
|
-
update: () => import("./update-qh8LxZtb.mjs").then((mod) => mod.default),
|
|
15
|
-
archive: () => import("./archive-CuYuesnm.mjs").then((mod) => mod.default)
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { card_default as default };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/collection/index.ts
|
|
4
|
-
var collection_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "collection",
|
|
7
|
-
description: "Browse Metabase collections"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
list: () => import("./list-0k71E5wJ.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-B-UkMh-Y.mjs").then((mod) => mod.default),
|
|
12
|
-
items: () => import("./items-DJp96l7n.mjs").then((mod) => mod.default),
|
|
13
|
-
tree: () => import("./tree-DN8mtMcc.mjs").then((mod) => mod.default),
|
|
14
|
-
create: () => import("./create-C7306Nj2.mjs").then((mod) => mod.default)
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { collection_default as default };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/dashboard/index.ts
|
|
4
|
-
var dashboard_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "dashboard",
|
|
7
|
-
description: "Manage Metabase dashboards"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
list: () => import("./list-RDJdCGOR.mjs").then((mod) => mod.default),
|
|
11
|
-
get: () => import("./get-BPRZaF53.mjs").then((mod) => mod.default),
|
|
12
|
-
cards: () => import("./cards-Bhu7cd67.mjs").then((mod) => mod.default),
|
|
13
|
-
create: () => import("./create-B2QidM_x.mjs").then((mod) => mod.default),
|
|
14
|
-
update: () => import("./update-pM-Gf5JQ.mjs").then((mod) => mod.default),
|
|
15
|
-
"update-dashcard": () => import("./update-dashcard-DDsQTcDm.mjs").then((mod) => mod.default)
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { dashboard_default as default };
|
package/dist/db-CBCfAbIZ.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/db/index.ts
|
|
4
|
-
var db_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "db",
|
|
7
|
-
description: "Inspect Metabase databases",
|
|
8
|
-
alias: "database"
|
|
9
|
-
},
|
|
10
|
-
subCommands: {
|
|
11
|
-
list: () => import("./list-C_sUJ2Yc.mjs").then((m) => m.default),
|
|
12
|
-
get: () => import("./get-BnRMSv1G.mjs").then((m) => m.default),
|
|
13
|
-
metadata: () => import("./metadata-Bl8qs0rn.mjs").then((m) => m.default),
|
|
14
|
-
schemas: () => import("./schemas-DEprqU5v.mjs").then((m) => m.default),
|
|
15
|
-
"schema-tables": () => import("./schema-tables-BPF2GaD5.mjs").then((m) => m.default),
|
|
16
|
-
"sync-schema": () => import("./sync-schema-DHP2ut3W.mjs").then((m) => m.default),
|
|
17
|
-
"rescan-values": () => import("./rescan-values-LuCZs_-Y.mjs").then((m) => m.default)
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
export { db_default as default };
|
package/dist/field-DbuCWbv9.mjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/field/index.ts
|
|
4
|
-
var field_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "field",
|
|
7
|
-
description: "Inspect Metabase fields"
|
|
8
|
-
},
|
|
9
|
-
subCommands: {
|
|
10
|
-
get: () => import("./get-BnXEaySB.mjs").then((m) => m.default),
|
|
11
|
-
values: () => import("./values-Bifff37r.mjs").then((m) => m.default),
|
|
12
|
-
summary: () => import("./summary-CFIZw6Z_.mjs").then((m) => m.default),
|
|
13
|
-
update: () => import("./update-B_rysKwt.mjs").then((m) => m.default)
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { field_default as default };
|
package/dist/get-DpDiG-Kd.mjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import "./package-CtkDnX1U.mjs";
|
|
2
|
-
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import { renderItem } from "./render-BYWlZPEH.mjs";
|
|
4
|
-
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-BfWVLqFk.mjs";
|
|
6
|
-
import { parseId } from "./parse-id-jvzdqaO1.mjs";
|
|
7
|
-
import "./field-BakUM_Le.mjs";
|
|
8
|
-
import { Table, tableView } from "./table-DhB2_Dxd.mjs";
|
|
9
|
-
|
|
10
|
-
//#region src/commands/table/get.ts
|
|
11
|
-
var get_default = defineMetabaseCommand({
|
|
12
|
-
meta: {
|
|
13
|
-
name: "get",
|
|
14
|
-
description: "Get a table by id (basic; use `table metadata` for hydrated fields)"
|
|
15
|
-
},
|
|
16
|
-
args: {
|
|
17
|
-
...outputFlags,
|
|
18
|
-
...profileFlag,
|
|
19
|
-
...connectionFlags,
|
|
20
|
-
id: {
|
|
21
|
-
type: "positional",
|
|
22
|
-
description: "Table id",
|
|
23
|
-
required: true
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
outputSchema: Table,
|
|
27
|
-
examples: ["metabase table get 42", "metabase table get 42 --json"],
|
|
28
|
-
async run({ args, ctx, getClient }) {
|
|
29
|
-
const id = parseId(args.id);
|
|
30
|
-
const client = await getClient();
|
|
31
|
-
const table = await client.requestParsed(Table, `/api/table/${id}`);
|
|
32
|
-
renderItem(table, tableView, ctx);
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
export { get_default as default };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "./package-CtkDnX1U.mjs";
|
|
2
|
-
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
|
-
import "./render-BYWlZPEH.mjs";
|
|
4
|
-
import "./errors-C6w1eZ1F.mjs";
|
|
5
|
-
import "./runtime-BfWVLqFk.mjs";
|
|
6
|
-
import "./poll-task-DlcGug4o.mjs";
|
|
7
|
-
import "./poll-48PVbWIx.mjs";
|
|
8
|
-
import { IsDirtyResult, is_dirty_default } from "./is-dirty-0l6YxY-x.mjs";
|
|
9
|
-
|
|
10
|
-
export { is_dirty_default as default };
|