@metabase/cli 0.1.15 → 0.1.16
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 +48 -32
- package/dist/add-collection-BqfYL4FU.mjs +10 -0
- package/dist/{add-collection-CXhrMjXU.mjs → add-collection-H4LcP-9B.mjs} +4 -4
- package/dist/{archive-Drt-rWvU.mjs → archive-B3cjzOIK.mjs} +5 -5
- package/dist/{archive-BUwiCFnd.mjs → archive-BCXoM1nX.mjs} +3 -3
- package/dist/{archive-BxGSR7El.mjs → archive-C6MDtV1F.mjs} +3 -3
- package/dist/{archive-D-Ovk0-E.mjs → archive-CQQWkC5S.mjs} +4 -4
- package/dist/{archive-yTvDRQUZ.mjs → archive-CdUS-OG9.mjs} +3 -3
- package/dist/{archive-Blc1dz8Z.mjs → archive-D1mfiftv.mjs} +5 -5
- package/dist/{archive-CQiaCBSj.mjs → archive-hN8PfvhX.mjs} +3 -3
- package/dist/auth-BaCMFLTA.mjs +19 -0
- package/dist/{body-B9XTTDEu.mjs → body-DB2upz6a.mjs} +1 -1
- package/dist/{branches-Ct3PK5U3.mjs → branches-B6R60Vr1.mjs} +4 -4
- package/dist/{cancel-tST8Bh0w.mjs → cancel-oPsWomYc.mjs} +3 -3
- package/dist/{cancel-task-BHnzRQKL.mjs → cancel-task-CleJVDNI.mjs} +4 -4
- package/dist/card-DzH3aK0a.mjs +20 -0
- package/dist/{cards-BySIFsLG.mjs → cards-Bw37jizL.mjs} +3 -3
- package/dist/cli.mjs +26 -25
- package/dist/collection-Wagz-ira.mjs +20 -0
- package/dist/{collection-namespace-D8ohM5gD.mjs → collection-namespace-CUDPh2rF.mjs} +1 -1
- package/dist/{create-4mAGsBd0.mjs → create-B-mvVFIl.mjs} +3 -3
- package/dist/{create-DxDD6n1d.mjs → create-B87ZQjNM.mjs} +5 -5
- package/dist/{create-D3cVDtxM.mjs → create-BEkuqChu.mjs} +4 -4
- package/dist/{create-HZ-9GMLx.mjs → create-Bj6PuaAW.mjs} +4 -4
- package/dist/{create-C7FPeJqF.mjs → create-CF2Zn4pT.mjs} +3 -3
- package/dist/create-CZ0_s5ap.mjs +34 -0
- package/dist/{create-fIDFkdox.mjs → create-CfLaBO0V.mjs} +4 -4
- package/dist/{create-DGxZmbxh.mjs → create-Cy2TNnJB.mjs} +4 -4
- package/dist/{create-DnT1Sayk.mjs → create-D-qE3Oq8.mjs} +3 -3
- package/dist/{create-C43RQYgj.mjs → create-DSWjS09p.mjs} +4 -4
- package/dist/{create-BDWthCYq.mjs → create-DwoqFYb9.mjs} +4 -4
- package/dist/{create-branch-jPE7nW-E.mjs → create-branch-BaZ00MIc.mjs} +4 -4
- package/dist/{current-task-rW54KJax.mjs → current-task-Dr5dOD4V.mjs} +4 -4
- package/dist/dashboard-OUgS1Gi-.mjs +21 -0
- package/dist/{database-BmsxuRmO.mjs → database-BJxGUXhA.mjs} +1 -1
- package/dist/db-Btfl5JMZ.mjs +22 -0
- package/dist/{delete-BWO6uB4P.mjs → delete-DHrFA1SZ.mjs} +4 -4
- package/dist/{delete-CBwztF6P.mjs → delete-DJti0TOA.mjs} +4 -4
- package/dist/{delete-CeigtfRI.mjs → delete-evwMw6Hk.mjs} +4 -4
- package/dist/{delete-table-BXzvDEPG.mjs → delete-table-DvuuwVqu.mjs} +4 -4
- package/dist/{dependencies-D2N9eqm1.mjs → dependencies-DrV31Rj5.mjs} +4 -4
- package/dist/{dirty-DoEZRSGB.mjs → dirty-C-rkrnVM.mjs} +4 -4
- package/dist/document-CU28GfFw.mjs +19 -0
- package/dist/{eid-1mROiwJr.mjs → eid-BeXI-eII.mjs} +3 -3
- package/dist/{error-D5bZ5BUX.mjs → error-CIObEXLY.mjs} +1 -1
- package/dist/{export-Bgv5B4_F.mjs → export-CGa-SgEV.mjs} +6 -6
- package/dist/field-BTbzlcyC.mjs +18 -0
- package/dist/{fields-VA7tXHJz.mjs → fields-Recymu7n.mjs} +4 -4
- package/dist/{get-C-UeGtgW.mjs → get-7fWSU6ow.mjs} +3 -3
- package/dist/{get-DvQoDU2m.mjs → get-BAH_M5vj.mjs} +4 -4
- package/dist/{get-BtAD26gc.mjs → get-BD_P_Ejc.mjs} +3 -3
- package/dist/{get-CqnCaosn.mjs → get-BM-d3-zk.mjs} +4 -4
- package/dist/{get-B8etVxWD.mjs → get-BQxLtFE-.mjs} +4 -4
- package/dist/{get-DLRBq8kR.mjs → get-C6g2C4dM.mjs} +4 -4
- package/dist/{get-D9o38nK5.mjs → get-CARdLkmp.mjs} +4 -4
- package/dist/{get-CGkhSY5L.mjs → get-CHi8tU_1.mjs} +5 -5
- package/dist/{get-Wj88mnhn.mjs → get-CXMv-r1p.mjs} +3 -3
- package/dist/{get-RQFSmnpY.mjs → get-CYh2DBsq.mjs} +3 -3
- package/dist/{get-BgIE_YEg.mjs → get-DaixPDU9.mjs} +4 -4
- package/dist/{get-qnGGGRTa.mjs → get-Nc5GOs6-.mjs} +3 -3
- package/dist/{get-eUYDNALt.mjs → get-Q2WZ79q_.mjs} +4 -4
- package/dist/get-b4xbfFbA.mjs +35 -0
- package/dist/{get-DAsaor0n.mjs → get-rFcAVIch.mjs} +2 -2
- package/dist/{get-run-CATz-XMS.mjs → get-run-CfQR6ZNa.mjs} +4 -4
- package/dist/git-sync-CBxS2urR.mjs +28 -0
- package/dist/{has-remote-changes-B6YEMC90.mjs → has-remote-changes-Bvyv4FLP.mjs} +4 -4
- package/dist/{import-Bl2Wj9Xf.mjs → import-c3o3OAx0.mjs} +6 -6
- package/dist/{is-dirty-D9MoFj0T.mjs → is-dirty-BE53XwOC.mjs} +3 -3
- package/dist/is-dirty-Z-pqyVyB.mjs +9 -0
- package/dist/{items-LjtICjvX.mjs → items-1KkBMiO4.mjs} +3 -3
- package/dist/library-BlbH0xyK.mjs +18 -0
- package/dist/{list-DMik04Dh.mjs → list-7rwzxX6t.mjs} +3 -3
- package/dist/{list-B5Q7E2Km.mjs → list-BC2B02IR.mjs} +3 -3
- package/dist/{list-DcjenlTM.mjs → list-BqgbrpQQ.mjs} +3 -3
- package/dist/list-BwdO1_gX.mjs +99 -0
- package/dist/{list-ChK06rJh.mjs → list-C4KnM3Rq.mjs} +2 -2
- package/dist/{list-Dq86BAMG.mjs → list-CO5J3SZU.mjs} +4 -4
- package/dist/{list-cnqPlJgC.mjs → list-CSjFJDls.mjs} +3 -3
- package/dist/{list-C410Ptw_.mjs → list-D52_BozQ.mjs} +2 -2
- package/dist/{list-DfoNv0gb.mjs → list-DHb4vQUM.mjs} +3 -3
- package/dist/{list-DtrfE0sF.mjs → list-DIvOPW1g.mjs} +4 -4
- package/dist/{list-DaJk60dd.mjs → list-DPcPTqFU.mjs} +3 -3
- package/dist/{list-Bjp9nd0o.mjs → list-DUEYX3bX.mjs} +2 -2
- package/dist/{list-CoRX8Ruc.mjs → list-Drr4JiWg.mjs} +3 -3
- package/dist/{list-CfWblVHJ.mjs → list-F0vkE22V.mjs} +2 -2
- package/dist/{list-C6U3Ftg8.mjs → list-FR8Q1SzV.mjs} +3 -3
- package/dist/{login-Cn2UtFUt.mjs → login-C0Rf2hg0.mjs} +3 -3
- package/dist/{logout-_HXgEmqA.mjs → logout-C7_UON-s.mjs} +2 -2
- package/dist/measure-BUedPu4K.mjs +19 -0
- package/dist/{metadata-8yqT8OZI.mjs → metadata-Db3Kpo-z.mjs} +5 -5
- package/dist/{metadata-DHODjg1d.mjs → metadata-FltZq5Ek.mjs} +4 -4
- package/dist/{parse-id-DNPeV0Iu.mjs → parse-id-B5adfBlS.mjs} +1 -1
- package/dist/{path-BflajM08.mjs → path-BojuJkE4.mjs} +3 -3
- package/dist/{poll-CYkX02Bm.mjs → poll-AduuU55-.mjs} +1 -1
- package/dist/{poll-task-oXpl3wzp.mjs → poll-task-B00Qwd87.mjs} +2 -2
- package/dist/{preflight-BdJr2amA.mjs → preflight-QVPvG_Xg.mjs} +1 -1
- package/dist/publish-h5RJh6im.mjs +66 -0
- package/dist/{query-DWQaN7hO.mjs → query-BUkuB4bZ.mjs} +3 -3
- package/dist/{query-CxTjguwp.mjs → query-Dvi-Rksy.mjs} +3 -3
- package/dist/{remove-collection-BwcFi8Fs.mjs → remove-collection-D8ZfB2RN.mjs} +6 -6
- package/dist/{rescan-values-B9Qtsd32.mjs → rescan-values-DOsDLrRG.mjs} +5 -5
- package/dist/resolve-BQ9vjlNJ.mjs +84 -0
- package/dist/{run-C-vftXCu.mjs → run-CeG0KH5W.mjs} +3 -3
- package/dist/{run-3eFtdI2Z.mjs → run-CjhD-Zbr.mjs} +6 -6
- package/dist/{runs-CpRTkn1W.mjs → runs-6k8C6kXF.mjs} +4 -4
- package/dist/{runtime-C1QgWHM7.mjs → runtime-CmAIahm5.mjs} +1 -1
- package/dist/{schema-tables-rdeupgsu.mjs → schema-tables-C45QegaY.mjs} +4 -4
- package/dist/{schemas-Cr7RjYqV.mjs → schemas-EVwEFuTj.mjs} +3 -3
- package/dist/{search-D7Yq2MDu.mjs → search-C_uw_D1U.mjs} +3 -3
- package/dist/segment-CkZUZcWz.mjs +19 -0
- package/dist/{selectors-DPc2ZDdd.mjs → selectors-AktxTEMK.mjs} +3 -3
- package/dist/{set-X2N6x7pe.mjs → set-C3EAuyb8.mjs} +5 -5
- package/dist/{set-active-BoBa3pOw.mjs → set-active-BW6LN6y0.mjs} +2 -2
- package/dist/{setting-zZjcOPyE.mjs → setting-C50HEiGG.mjs} +3 -3
- package/dist/{setup-C47WUieB.mjs → setup-CYrbNrlG.mjs} +3 -3
- package/dist/{skills-Po0YPVU5.mjs → skills-D6xQkmhu.mjs} +3 -3
- package/dist/snippet-BjaWAxCu.mjs +19 -0
- package/dist/{stash-BV4sEp73.mjs → stash-C1V2FvJR.mjs} +6 -6
- package/dist/{status-BKF9rRnk.mjs → status-CxYw6zQM.mjs} +5 -5
- package/dist/{status-Cf8c0NON.mjs → status-DY92F9mn.mjs} +2 -2
- package/dist/{summary-RgLcBcEh.mjs → summary-DOxgqJoA.mjs} +3 -3
- package/dist/{sync-schema-DKEel2Sv.mjs → sync-schema-CQPfffjU.mjs} +7 -7
- package/dist/table-B35ovbcd.mjs +19 -0
- package/dist/{table-qDD2kApF.mjs → table-CDMG0Zi5.mjs} +8 -1
- package/dist/transform-DF79sJ0_.mjs +25 -0
- package/dist/transform-job-PmA_D8gz.mjs +22 -0
- package/dist/transform-tag-CE3cuO1K.mjs +18 -0
- package/dist/{transforms-BOQ9CG0l.mjs → transforms-DzBJDydn.mjs} +4 -4
- package/dist/{tree-CF8mscd9.mjs → tree-B3f5F_dP.mjs} +2 -2
- package/dist/{unpublish-CmaRNjK3.mjs → unpublish-B5RDeN-V.mjs} +17 -16
- package/dist/{update-DR4WkAET.mjs → update-BIZ9XhjS.mjs} +5 -5
- package/dist/{update-nwXgVNQa.mjs → update-C0pFSc1B.mjs} +6 -6
- package/dist/{update-DoQpy9SA.mjs → update-CcvDVqNd.mjs} +4 -4
- package/dist/{update-BuypOaXq.mjs → update-CiWPEqQ-.mjs} +5 -5
- package/dist/{update-CgQOSuZt.mjs → update-D5gioyBa.mjs} +4 -4
- package/dist/{update-B59h7KmS.mjs → update-D698CaeV.mjs} +5 -5
- package/dist/{update-DERsb0eO.mjs → update-DOfL_KPx.mjs} +5 -5
- package/dist/{update-Kz4kyqY_.mjs → update-DSueNZRw.mjs} +5 -5
- package/dist/{update-DQPg0_-d.mjs → update-DudyZ-FP.mjs} +5 -5
- package/dist/{update-rhfPHALN.mjs → update-I3TA2Tem.mjs} +4 -4
- package/dist/{update-BXZBEeUp.mjs → update-PZPNx0Xd.mjs} +5 -5
- package/dist/{update-dashcard-BJVeSGvO.mjs → update-dashcard-BXZ4vS15.mjs} +4 -4
- package/dist/{upgrade-CNrkJF6s.mjs → upgrade-4cWfLu90.mjs} +2 -2
- package/dist/{uuid-Dpl3ALKq.mjs → uuid---pAboNQ.mjs} +2 -2
- package/dist/{values-DMYpkoEH.mjs → values-I503dI7K.mjs} +3 -3
- package/dist/{verify-By9ZYzx4.mjs → verify-BMhTWW9s.mjs} +1 -1
- package/dist/{wait-flags-DQrxnlwv.mjs → wait-flags-HtCL2l1r.mjs} +2 -2
- package/dist/{wait-BzIAj8lJ.mjs → wait-oMSs_IdS.mjs} +5 -5
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +2 -2
- package/skill-data/data-transformation/SKILL.md +35 -28
- package/skill-data/semantic-layer/SKILL.md +5 -0
- package/dist/add-collection-Bnuh0d4j.mjs +0 -10
- package/dist/auth-Bkue4Psy.mjs +0 -19
- package/dist/card-faWo9ZWU.mjs +0 -20
- package/dist/collection-DcRz7fmf.mjs +0 -20
- package/dist/dashboard-pXAxJTTx.mjs +0 -21
- package/dist/db-CmHHj5eI.mjs +0 -22
- package/dist/document-DQIhL75C.mjs +0 -19
- package/dist/field-B-UcqFzm.mjs +0 -18
- package/dist/git-sync-CwOvcUI2.mjs +0 -28
- package/dist/is-dirty-MT0BT4CS.mjs +0 -9
- package/dist/list-Cx8JxS2C.mjs +0 -42
- package/dist/measure-BIAoqgcS.mjs +0 -19
- package/dist/publish-CGUkIqSm.mjs +0 -70
- package/dist/segment-BN8sFunv.mjs +0 -19
- package/dist/snippet-DK0ZA8m5.mjs +0 -19
- package/dist/table-COAKXNuj.mjs +0 -21
- package/dist/transform-Bto4U82j.mjs +0 -25
- package/dist/transform-job-_fW1y2tg.mjs +0 -22
- package/dist/transform-tag-C8n1oTr1.mjs +0 -18
- /package/dist/{delete-runtime-PzLFavb0.mjs → delete-runtime-CZMw_AGX.mjs} +0 -0
- /package/dist/{key-C8q5oIr5.mjs → key-DwiMOWRQ.mjs} +0 -0
- /package/dist/{manifest-DYeLri80.mjs → manifest-B2F8iL7X.mjs} +0 -0
- /package/dist/{measure-JJAdFoqK.mjs → measure-BCv5wDDN.mjs} +0 -0
- /package/dist/{revision-message-flag-C7zBeWEt.mjs → revision-message-flag-CP5NFrWQ.mjs} +0 -0
- /package/dist/{segment-B9SEv9V_.mjs → segment-BAUuELKs.mjs} +0 -0
- /package/dist/{setting-i0pugNHl.mjs → setting-DhMk0TNo.mjs} +0 -0
- /package/dist/{skills-CJ8g8fhQ.mjs → skills-DJsuBguh.mjs} +0 -0
- /package/dist/{snippet-NNzqlksR.mjs → snippet-D4SyVLKB.mjs} +0 -0
- /package/dist/{transform-n376akp8.mjs → transform-MmqHKGU-.mjs} +0 -0
- /package/dist/{transform-job-C8lIS-7Q.mjs → transform-job-CtVziW85.mjs} +0 -0
- /package/dist/{transform-tag-DB46AhAj.mjs → transform-tag-wFiWmiyO.mjs} +0 -0
package/README.md
CHANGED
|
@@ -469,38 +469,7 @@ mb table update 42 --file patch.json
|
|
|
469
469
|
echo '{"description":"Customer dimension"}' | mb table update 42
|
|
470
470
|
```
|
|
471
471
|
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
Publish tables to a library collection (`POST /api/ee/data-studio/table/publish-tables`), surfacing them as trusted data sources. The selected tables and every upstream table they depend on are set to the target `library-data` collection. Select tables with `--table-ids`, whole databases with `--db-ids`, or schemas with `--schemas` — the filters are combined. Requires the `library` premium feature.
|
|
475
|
-
|
|
476
|
-
```sh
|
|
477
|
-
mb table publish --collection-id 12 --table-ids 1,2,3
|
|
478
|
-
mb table publish --collection-id 12 --db-ids 1 --json
|
|
479
|
-
mb table publish --collection-id 12 --schemas 1:public,1:analytics
|
|
480
|
-
```
|
|
481
|
-
|
|
482
|
-
| Flag | Description |
|
|
483
|
-
| ---------------------- | ----------------------------------------------------------------- |
|
|
484
|
-
| `--collection-id <id>` | Target library collection id (required). |
|
|
485
|
-
| `--table-ids <ids>` | Comma-separated table ids. |
|
|
486
|
-
| `--db-ids <ids>` | Comma-separated database ids. |
|
|
487
|
-
| `--schemas <ids>` | Comma-separated schema ids, each `<db-id>:<schema>` (`1:public`). |
|
|
488
|
-
|
|
489
|
-
### `mb table unpublish`
|
|
490
|
-
|
|
491
|
-
Unpublish tables from the library (`POST /api/ee/data-studio/table/unpublish-tables`). Clears the library collection for the selected tables and every downstream table that depends on them. Same selector flags as `publish` (minus `--collection-id`). Requires the `library` premium feature.
|
|
492
|
-
|
|
493
|
-
```sh
|
|
494
|
-
mb table unpublish --table-ids 1,2,3
|
|
495
|
-
mb table unpublish --db-ids 1 --json
|
|
496
|
-
mb table unpublish --schemas 1:public,1:analytics
|
|
497
|
-
```
|
|
498
|
-
|
|
499
|
-
| Flag | Description |
|
|
500
|
-
| ------------------- | ----------------------------------------------------------------- |
|
|
501
|
-
| `--table-ids <ids>` | Comma-separated table ids. |
|
|
502
|
-
| `--db-ids <ids>` | Comma-separated database ids. |
|
|
503
|
-
| `--schemas <ids>` | Comma-separated schema ids, each `<db-id>:<schema>` (`1:public`). |
|
|
472
|
+
Publish status surfaces on the table itself — `table get`/`table list` carry `is_published` (and `collection_id` under `--full`). Publishing tables to the Library is done with [`mb library publish`](#library).
|
|
504
473
|
|
|
505
474
|
## Fields
|
|
506
475
|
|
|
@@ -991,6 +960,53 @@ mb collection archive 4
|
|
|
991
960
|
mb collection archive 4 --json
|
|
992
961
|
```
|
|
993
962
|
|
|
963
|
+
## Library
|
|
964
|
+
|
|
965
|
+
Curate the Metabase **Library** — a governed subtree (`library-data` "Data" for published tables, `library-metrics` "Metrics" for official metrics, under a `library` root). Tables published to Data appear first when people pick a data source and rank up in search, steering everyone toward trusted, analysis-ready tables. Requires the `library` premium feature (Pro/Enterprise) and admin or data-analyst permission (Curate alone won't publish tables). Publish status surfaces on the table via `is_published` (`table get`/`table list`).
|
|
966
|
+
|
|
967
|
+
### `mb library get`
|
|
968
|
+
|
|
969
|
+
Show the Library and its Data/Metrics collection ids (`GET /api/ee/library/`). Errors if the Library hasn't been created yet.
|
|
970
|
+
|
|
971
|
+
```sh
|
|
972
|
+
mb library get
|
|
973
|
+
mb library get --json
|
|
974
|
+
```
|
|
975
|
+
|
|
976
|
+
### `mb library create`
|
|
977
|
+
|
|
978
|
+
Create the Library subtree (`POST /api/ee/library/`). Idempotent — returns the existing Library when it's already there.
|
|
979
|
+
|
|
980
|
+
```sh
|
|
981
|
+
mb library create
|
|
982
|
+
mb library create --json
|
|
983
|
+
```
|
|
984
|
+
|
|
985
|
+
### `mb library publish`
|
|
986
|
+
|
|
987
|
+
Publish tables (and their upstream dependencies) into the Library's Data collection (`POST /api/ee/data-studio/table/publish-tables`). The target Data collection is resolved automatically and the Library is created if it doesn't exist yet — there's no collection id to pass.
|
|
988
|
+
|
|
989
|
+
```sh
|
|
990
|
+
mb library publish --table-ids 1,2,3
|
|
991
|
+
mb library publish --db-ids 1 --json
|
|
992
|
+
mb library publish --schemas 1:public,1:analytics
|
|
993
|
+
```
|
|
994
|
+
|
|
995
|
+
| Flag | Description |
|
|
996
|
+
| ------------------- | ----------------------------------------------------------------- |
|
|
997
|
+
| `--table-ids <ids>` | Comma-separated table ids. |
|
|
998
|
+
| `--db-ids <ids>` | Comma-separated database ids. |
|
|
999
|
+
| `--schemas <ids>` | Comma-separated schema ids, each `<db-id>:<schema>` (`1:public`). |
|
|
1000
|
+
|
|
1001
|
+
### `mb library unpublish`
|
|
1002
|
+
|
|
1003
|
+
Unpublish tables (and their downstream dependents) from the Library (`POST /api/ee/data-studio/table/unpublish-tables`). Same selector flags as `publish`.
|
|
1004
|
+
|
|
1005
|
+
```sh
|
|
1006
|
+
mb library unpublish --table-ids 1,2,3
|
|
1007
|
+
mb library unpublish --db-ids 1 --json
|
|
1008
|
+
```
|
|
1009
|
+
|
|
994
1010
|
## Documents
|
|
995
1011
|
|
|
996
1012
|
CRUD on `/api/document`. A document is a rich-text page that mixes prose with embedded saved questions (`cardEmbed`) and inline links to Metabase entities (`smartLink`). The body is a [TipTap](https://tiptap.dev/) (ProseMirror) JSON tree stored under `content_type: application/json+vnd.prose-mirror`. The agent-facing format reference lives in the bundled `document` skill (`mb skills get document`). It's a baseline OSS feature — no elevated server version or premium token required.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import "./error-CIObEXLY.mjs";
|
|
3
|
+
import "./runtime-CmAIahm5.mjs";
|
|
4
|
+
import "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./parse-id-B5adfBlS.mjs";
|
|
6
|
+
import "./poll-AduuU55-.mjs";
|
|
7
|
+
import "./poll-task-B00Qwd87.mjs";
|
|
8
|
+
import { SyncSettingsUpdateResult, add_collection_default, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-H4LcP-9B.mjs";
|
|
9
|
+
|
|
10
|
+
export { add_collection_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
2
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
1
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
2
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
3
3
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
4
|
-
import { parseId } from "./parse-id-
|
|
5
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
4
|
+
import { parseId } from "./parse-id-B5adfBlS.mjs";
|
|
5
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-B00Qwd87.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/git-sync/add-collection.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { Measure, measureView } from "./measure-
|
|
7
|
-
import { revisionMessageFlag } from "./revision-message-flag-
|
|
5
|
+
import { parseId } from "./parse-id-B5adfBlS.mjs";
|
|
6
|
+
import { Measure, measureView } from "./measure-BCv5wDDN.mjs";
|
|
7
|
+
import { revisionMessageFlag } from "./revision-message-flag-CP5NFrWQ.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/measure/archive.ts
|
|
10
10
|
var archive_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./field-E0IBy4Uw.mjs";
|
|
6
6
|
import { Card, cardView } from "./card-wCPcuKSi.mjs";
|
|
7
|
-
import { parseId } from "./parse-id-
|
|
7
|
+
import { parseId } from "./parse-id-B5adfBlS.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/card/archive.ts
|
|
10
10
|
var archive_default = defineMetabaseCommand({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-B5adfBlS.mjs";
|
|
6
6
|
import { Dashboard, dashboardView } from "./dashboard-B4bn3z6t.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/dashboard/archive.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { Snippet, snippetView } from "./snippet-
|
|
5
|
+
import { parseId } from "./parse-id-B5adfBlS.mjs";
|
|
6
|
+
import { Snippet, snippetView } from "./snippet-D4SyVLKB.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/snippet/archive.ts
|
|
9
9
|
var archive_default = defineMetabaseCommand({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-B5adfBlS.mjs";
|
|
6
6
|
import { Document, documentView } from "./document-qfwR0r63.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/document/archive.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
6
|
-
import { revisionMessageFlag } from "./revision-message-flag-
|
|
7
|
-
import { Segment, segmentView } from "./segment-
|
|
5
|
+
import { parseId } from "./parse-id-B5adfBlS.mjs";
|
|
6
|
+
import { revisionMessageFlag } from "./revision-message-flag-CP5NFrWQ.mjs";
|
|
7
|
+
import { Segment, segmentView } from "./segment-BAUuELKs.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/segment/archive.ts
|
|
10
10
|
var archive_default = defineMetabaseCommand({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-B5adfBlS.mjs";
|
|
6
6
|
import { Collection, collectionView } from "./collection-Deiziuu2.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/collection/archive.ts
|
|
@@ -0,0 +1,19 @@
|
|
|
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-C0Rf2hg0.mjs").then((m) => m.default),
|
|
12
|
+
status: () => import("./status-DY92F9mn.mjs").then((m) => m.default),
|
|
13
|
+
list: () => import("./list-FR8Q1SzV.mjs").then((m) => m.default),
|
|
14
|
+
logout: () => import("./logout-C7_UON-s.mjs").then((m) => m.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { auth_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { parseJson } from "./runtime-
|
|
2
|
+
import { parseJson } from "./runtime-CmAIahm5.mjs";
|
|
3
3
|
import { DEFAULT_FLAG_NAME, readInput } from "./input-BXWgdKiS.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/runtime/body.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import "./poll-
|
|
6
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
5
|
+
import "./poll-AduuU55-.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-B00Qwd87.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/commands/git-sync/branches.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-B5adfBlS.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/transform/cancel.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import "./poll-
|
|
6
|
-
import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-
|
|
5
|
+
import "./poll-AduuU55-.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-B00Qwd87.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/git-sync/cancel-task.ts
|
|
9
9
|
var cancel_task_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,20 @@
|
|
|
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-D52_BozQ.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-CXMv-r1p.mjs").then((mod) => mod.default),
|
|
12
|
+
query: () => import("./query-BUkuB4bZ.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-B-mvVFIl.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-I3TA2Tem.mjs").then((mod) => mod.default),
|
|
15
|
+
archive: () => import("./archive-BCXoM1nX.mjs").then((mod) => mod.default)
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { card_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-B5adfBlS.mjs";
|
|
6
6
|
import { DashboardDetail, DashcardCompact, dashcardView } from "./dashboard-B4bn3z6t.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/dashboard/cards.ts
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { ConfigError, flagConsumesValue, getMetabaseAugment, normalizeFlag, resolveCitty, toAliasArray } from "./command-augment-CAur0XOQ.mjs";
|
|
3
|
-
import { connectionFlags, outputFlags, package_default, profileFlag, reportError } from "./error-
|
|
3
|
+
import { connectionFlags, outputFlags, package_default, profileFlag, reportError } from "./error-CIObEXLY.mjs";
|
|
4
4
|
import { defineCommand, renderUsage, runMain } from "citty";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/global-flags.ts
|
|
@@ -58,30 +58,31 @@ const main = defineCommand({
|
|
|
58
58
|
description: package_default.description
|
|
59
59
|
},
|
|
60
60
|
subCommands: {
|
|
61
|
-
auth: () => import("./auth-
|
|
62
|
-
db: () => import("./db-
|
|
63
|
-
table: () => import("./table-
|
|
64
|
-
field: () => import("./field-
|
|
65
|
-
card: () => import("./card-
|
|
66
|
-
dashboard: () => import("./dashboard-
|
|
67
|
-
collection: () => import("./collection-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"transform-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
61
|
+
auth: () => import("./auth-BaCMFLTA.mjs").then((mod) => mod.default),
|
|
62
|
+
db: () => import("./db-Btfl5JMZ.mjs").then((mod) => mod.default),
|
|
63
|
+
table: () => import("./table-B35ovbcd.mjs").then((mod) => mod.default),
|
|
64
|
+
field: () => import("./field-BTbzlcyC.mjs").then((mod) => mod.default),
|
|
65
|
+
card: () => import("./card-DzH3aK0a.mjs").then((mod) => mod.default),
|
|
66
|
+
dashboard: () => import("./dashboard-OUgS1Gi-.mjs").then((mod) => mod.default),
|
|
67
|
+
collection: () => import("./collection-Wagz-ira.mjs").then((mod) => mod.default),
|
|
68
|
+
library: () => import("./library-BlbH0xyK.mjs").then((mod) => mod.default),
|
|
69
|
+
document: () => import("./document-CU28GfFw.mjs").then((mod) => mod.default),
|
|
70
|
+
transform: () => import("./transform-DF79sJ0_.mjs").then((mod) => mod.default),
|
|
71
|
+
"transform-job": () => import("./transform-job-PmA_D8gz.mjs").then((mod) => mod.default),
|
|
72
|
+
"transform-tag": () => import("./transform-tag-CE3cuO1K.mjs").then((mod) => mod.default),
|
|
73
|
+
setting: () => import("./setting-C50HEiGG.mjs").then((mod) => mod.default),
|
|
74
|
+
search: () => import("./search-C_uw_D1U.mjs").then((mod) => mod.default),
|
|
75
|
+
"git-sync": () => import("./git-sync-CBxS2urR.mjs").then((mod) => mod.default),
|
|
76
|
+
setup: () => import("./setup-CYrbNrlG.mjs").then((mod) => mod.default),
|
|
77
|
+
snippet: () => import("./snippet-BjaWAxCu.mjs").then((mod) => mod.default),
|
|
78
|
+
segment: () => import("./segment-CkZUZcWz.mjs").then((mod) => mod.default),
|
|
79
|
+
measure: () => import("./measure-BUedPu4K.mjs").then((mod) => mod.default),
|
|
80
|
+
eid: () => import("./eid-BeXI-eII.mjs").then((mod) => mod.default),
|
|
81
|
+
query: () => import("./query-Dvi-Rksy.mjs").then((mod) => mod.default),
|
|
82
|
+
uuid: () => import("./uuid---pAboNQ.mjs").then((mod) => mod.default),
|
|
83
|
+
upgrade: () => import("./upgrade-4cWfLu90.mjs").then((mod) => mod.default),
|
|
84
|
+
skills: () => import("./skills-D6xQkmhu.mjs").then((mod) => mod.default),
|
|
85
|
+
__manifest: () => import("./manifest-B2F8iL7X.mjs").then((mod) => mod.createManifestCommand(main))
|
|
85
86
|
}
|
|
86
87
|
});
|
|
87
88
|
var main_default = main;
|
|
@@ -0,0 +1,20 @@
|
|
|
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: "Manage Metabase collections"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-F0vkE22V.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-rFcAVIch.mjs").then((mod) => mod.default),
|
|
12
|
+
items: () => import("./items-1KkBMiO4.mjs").then((mod) => mod.default),
|
|
13
|
+
tree: () => import("./tree-B3f5F_dP.mjs").then((mod) => mod.default),
|
|
14
|
+
create: () => import("./create-CF2Zn4pT.mjs").then((mod) => mod.default),
|
|
15
|
+
archive: () => import("./archive-hN8PfvhX.mjs").then((mod) => mod.default)
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { collection_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigError } from "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { HttpError } from "./runtime-
|
|
2
|
+
import { HttpError } from "./runtime-CmAIahm5.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/transform/collection-namespace.ts
|
|
5
5
|
const TRANSFORMS_NAMESPACE_HINT = "transforms can only be filed in a :transforms-namespace collection. Create one with `mb collection create --body '{\"name\":\"…\"}' --namespace transforms` and pass its id as collection_id, or omit collection_id to leave the transform uncollected.";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
6
|
import "./field-E0IBy4Uw.mjs";
|
|
7
7
|
import { Card, CardCreateInput, cardView } from "./card-wCPcuKSi.mjs";
|
|
8
|
-
import { readBody } from "./body-
|
|
8
|
+
import { readBody } from "./body-DB2upz6a.mjs";
|
|
9
9
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
10
10
|
import "./validate-VawhJ5Sc.mjs";
|
|
11
11
|
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { readBody } from "./body-
|
|
6
|
+
import { readBody } from "./body-DB2upz6a.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
8
|
import "./validate-VawhJ5Sc.mjs";
|
|
9
9
|
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
10
|
-
import { Transform, TransformCreateInput, transformView } from "./transform-
|
|
11
|
-
import { enrichTransformCollectionError } from "./collection-namespace-
|
|
10
|
+
import { Transform, TransformCreateInput, transformView } from "./transform-MmqHKGU-.mjs";
|
|
11
|
+
import { enrichTransformCollectionError } from "./collection-namespace-CUDPh2rF.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/transform/create.ts
|
|
14
14
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { readBody } from "./body-
|
|
6
|
+
import { readBody } from "./body-DB2upz6a.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
8
|
import "./validate-VawhJ5Sc.mjs";
|
|
9
9
|
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
10
|
-
import { Measure, MeasureCreateInput, measureView } from "./measure-
|
|
10
|
+
import { Measure, MeasureCreateInput, measureView } from "./measure-BCv5wDDN.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/measure/create.ts
|
|
13
13
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { readBody } from "./body-
|
|
6
|
+
import { readBody } from "./body-DB2upz6a.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
|
-
import { TransformTag, TransformTagCreateInput, transformTagView } from "./transform-tag-
|
|
8
|
+
import { TransformTag, TransformTagCreateInput, transformTagView } from "./transform-tag-wFiWmiyO.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/transform-tag/create.ts
|
|
11
11
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { readBody } from "./body-
|
|
6
|
+
import { readBody } from "./body-DB2upz6a.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
8
|
import { parseEnumFlag } from "./parse-enum-BatHQ-Gs.mjs";
|
|
9
9
|
import { Collection, CollectionCreateInput, CollectionNamespace, collectionView } from "./collection-Deiziuu2.mjs";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./collection-Deiziuu2.mjs";
|
|
6
|
+
import { Library, createLibrary, libraryView } from "./resolve-BQ9vjlNJ.mjs";
|
|
7
|
+
|
|
8
|
+
//#region src/commands/library/create.ts
|
|
9
|
+
var create_default = defineMetabaseCommand({
|
|
10
|
+
meta: {
|
|
11
|
+
name: "create",
|
|
12
|
+
description: "Create the Library (Data + Metrics collections); idempotent"
|
|
13
|
+
},
|
|
14
|
+
details: "Creates the Library subtree if it doesn't exist and returns it; a no-op that returns the existing Library when it's already there. Only admins and data analysts can curate the Library.",
|
|
15
|
+
capabilities: {
|
|
16
|
+
minVersion: 59,
|
|
17
|
+
tokenFeature: "library"
|
|
18
|
+
},
|
|
19
|
+
args: {
|
|
20
|
+
...outputFlags,
|
|
21
|
+
...profileFlag,
|
|
22
|
+
...connectionFlags
|
|
23
|
+
},
|
|
24
|
+
outputSchema: Library,
|
|
25
|
+
examples: ["mb library create", "mb library create --json"],
|
|
26
|
+
async run({ ctx, getClient }) {
|
|
27
|
+
const client = await getClient();
|
|
28
|
+
const library = await createLibrary(client);
|
|
29
|
+
renderSummary(library, libraryView, `Library ready (collection ${library.id}).`, ctx);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { create_default as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { readBody } from "./body-
|
|
6
|
+
import { readBody } from "./body-DB2upz6a.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
8
|
import "./validate-VawhJ5Sc.mjs";
|
|
9
9
|
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-CSV-TTnd.mjs";
|
|
10
|
-
import { Segment, SegmentCreateInput, segmentView } from "./segment-
|
|
10
|
+
import { Segment, SegmentCreateInput, segmentView } from "./segment-BAUuELKs.mjs";
|
|
11
11
|
|
|
12
12
|
//#region src/commands/segment/create.ts
|
|
13
13
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { readBody } from "./body-
|
|
6
|
+
import { readBody } from "./body-DB2upz6a.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
|
-
import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-
|
|
8
|
+
import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-CtVziW85.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/transform-job/create.ts
|
|
11
11
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
-
import { connectionFlags, outputFlags, profileFlag } from "./error-
|
|
3
|
-
import { defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-CIObEXLY.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-CmAIahm5.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
5
|
import "./input-BXWgdKiS.mjs";
|
|
6
|
-
import { readBody } from "./body-
|
|
6
|
+
import { readBody } from "./body-DB2upz6a.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
8
|
import { Document, DocumentCreateInput, documentView } from "./document-qfwR0r63.mjs";
|
|
9
9
|
|