@metabase/cli 0.1.14 → 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 +49 -0
- package/dist/add-collection-BqfYL4FU.mjs +10 -0
- package/dist/{add-collection-Cubho2HN.mjs → add-collection-H4LcP-9B.mjs} +4 -4
- package/dist/{archive-DTN6Anme.mjs → archive-B3cjzOIK.mjs} +5 -5
- package/dist/{archive-C8G0KIPI.mjs → archive-BCXoM1nX.mjs} +3 -3
- package/dist/{archive-BBboJ-z3.mjs → archive-C6MDtV1F.mjs} +3 -3
- package/dist/{archive-BrzOTxSA.mjs → archive-CQQWkC5S.mjs} +4 -4
- package/dist/{archive-DCIwtfv0.mjs → archive-CdUS-OG9.mjs} +3 -3
- package/dist/{archive-F2g-bAXf.mjs → archive-D1mfiftv.mjs} +5 -5
- package/dist/{archive-D6eMYNI5.mjs → archive-hN8PfvhX.mjs} +3 -3
- package/dist/auth-BaCMFLTA.mjs +19 -0
- package/dist/{body-CXpIB6hY.mjs → body-DB2upz6a.mjs} +1 -1
- package/dist/{branches-r9SVJIV5.mjs → branches-B6R60Vr1.mjs} +4 -4
- package/dist/{cancel-BbLZsVYQ.mjs → cancel-oPsWomYc.mjs} +3 -3
- package/dist/{cancel-task-CojB-8XX.mjs → cancel-task-CleJVDNI.mjs} +4 -4
- package/dist/card-DzH3aK0a.mjs +20 -0
- package/dist/{cards-e9Wgnbnq.mjs → cards-Bw37jizL.mjs} +3 -3
- package/dist/cli.mjs +26 -25
- package/dist/collection-Wagz-ira.mjs +20 -0
- package/dist/{collection-namespace-DmKMqLr0.mjs → collection-namespace-CUDPh2rF.mjs} +1 -1
- package/dist/{create-C5-JhEUc.mjs → create-B-mvVFIl.mjs} +3 -3
- package/dist/{create-onFRzFwS.mjs → create-B87ZQjNM.mjs} +5 -5
- package/dist/{create-Bbe2EM9f.mjs → create-BEkuqChu.mjs} +4 -4
- package/dist/{create-Bz4hf7W0.mjs → create-Bj6PuaAW.mjs} +4 -4
- package/dist/{create-DFMpgUvH.mjs → create-CF2Zn4pT.mjs} +3 -3
- package/dist/create-CZ0_s5ap.mjs +34 -0
- package/dist/{create-UzeYyGq6.mjs → create-CfLaBO0V.mjs} +4 -4
- package/dist/{create-C4G_z8qO.mjs → create-Cy2TNnJB.mjs} +4 -4
- package/dist/{create-Bu9edPBn.mjs → create-D-qE3Oq8.mjs} +3 -3
- package/dist/{create-BzKW27Hh.mjs → create-DSWjS09p.mjs} +4 -4
- package/dist/{create-Cq-ay6cJ.mjs → create-DwoqFYb9.mjs} +4 -4
- package/dist/{create-branch--GJ_RxIN.mjs → create-branch-BaZ00MIc.mjs} +4 -4
- package/dist/{current-task-C0mMBzdB.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-CGw1hwGZ.mjs → delete-DHrFA1SZ.mjs} +4 -4
- package/dist/{delete-Dbzs51x3.mjs → delete-DJti0TOA.mjs} +4 -4
- package/dist/{delete-CxTPHzom.mjs → delete-evwMw6Hk.mjs} +4 -4
- package/dist/{delete-table-B6obSpLU.mjs → delete-table-DvuuwVqu.mjs} +4 -4
- package/dist/{dependencies-DfkbJqzQ.mjs → dependencies-DrV31Rj5.mjs} +4 -4
- package/dist/{dirty-BqL_DE6p.mjs → dirty-C-rkrnVM.mjs} +4 -4
- package/dist/document-CU28GfFw.mjs +19 -0
- package/dist/{eid-C31VGHAM.mjs → eid-BeXI-eII.mjs} +3 -3
- package/dist/{error-BOi_ux9O.mjs → error-CIObEXLY.mjs} +1 -1
- package/dist/{export--_0e40xU.mjs → export-CGa-SgEV.mjs} +6 -6
- package/dist/field-BTbzlcyC.mjs +18 -0
- package/dist/{fields-BRiL6KEF.mjs → fields-Recymu7n.mjs} +4 -4
- package/dist/{get-DMeF2FLQ.mjs → get-7fWSU6ow.mjs} +3 -3
- package/dist/{get-C-o2-vnf.mjs → get-BAH_M5vj.mjs} +4 -4
- package/dist/{get-CCyfx_AY.mjs → get-BD_P_Ejc.mjs} +3 -3
- package/dist/{get-ev4Zw3Gj.mjs → get-BM-d3-zk.mjs} +4 -4
- package/dist/{get-C6njgZmF.mjs → get-BQxLtFE-.mjs} +4 -4
- package/dist/{get-B2-RLrYJ.mjs → get-C6g2C4dM.mjs} +4 -4
- package/dist/{get-DQOvqH9P.mjs → get-CARdLkmp.mjs} +4 -4
- package/dist/{get-B_TdMKu-.mjs → get-CHi8tU_1.mjs} +5 -5
- package/dist/{get-Cs7a7s2Z.mjs → get-CXMv-r1p.mjs} +3 -3
- package/dist/{get--bNbxDkk.mjs → get-CYh2DBsq.mjs} +3 -3
- package/dist/{get-CcGU3YaY.mjs → get-DaixPDU9.mjs} +4 -4
- package/dist/{get-DGZw_U0s.mjs → get-Nc5GOs6-.mjs} +3 -3
- package/dist/{get-B-phl324.mjs → get-Q2WZ79q_.mjs} +4 -4
- package/dist/get-b4xbfFbA.mjs +35 -0
- package/dist/{get-LJam7ZQ-.mjs → get-rFcAVIch.mjs} +2 -2
- package/dist/{get-run-Cp7ATZPQ.mjs → get-run-CfQR6ZNa.mjs} +4 -4
- package/dist/git-sync-CBxS2urR.mjs +28 -0
- package/dist/{has-remote-changes-Bw_Xp9Ii.mjs → has-remote-changes-Bvyv4FLP.mjs} +4 -4
- package/dist/{import-BmoC0ECq.mjs → import-c3o3OAx0.mjs} +6 -6
- package/dist/{is-dirty-BDmXm34E.mjs → is-dirty-BE53XwOC.mjs} +3 -3
- package/dist/is-dirty-Z-pqyVyB.mjs +9 -0
- package/dist/{items-BI-O48Sc.mjs → items-1KkBMiO4.mjs} +3 -3
- package/dist/library-BlbH0xyK.mjs +18 -0
- package/dist/{list-B7g2c9K7.mjs → list-7rwzxX6t.mjs} +3 -3
- package/dist/{list-JCMQ06wX.mjs → list-BC2B02IR.mjs} +3 -3
- package/dist/{list-CNeaMSjy.mjs → list-BqgbrpQQ.mjs} +3 -3
- package/dist/list-BwdO1_gX.mjs +99 -0
- package/dist/{list-Cju3N2kB.mjs → list-C4KnM3Rq.mjs} +2 -2
- package/dist/{list-DhWVjE6U.mjs → list-CO5J3SZU.mjs} +4 -4
- package/dist/{list-BE3wVc-a.mjs → list-CSjFJDls.mjs} +3 -3
- package/dist/{list-Cqvt6gpK.mjs → list-D52_BozQ.mjs} +2 -2
- package/dist/{list-BkEFHJe8.mjs → list-DHb4vQUM.mjs} +3 -3
- package/dist/{list-CTfCgMTk.mjs → list-DIvOPW1g.mjs} +4 -4
- package/dist/{list-DM-Oa-oB.mjs → list-DPcPTqFU.mjs} +3 -3
- package/dist/{list-BcSjOiK1.mjs → list-DUEYX3bX.mjs} +2 -2
- package/dist/{list-DIFjjwBV.mjs → list-Drr4JiWg.mjs} +3 -3
- package/dist/{list-Cz_2UyGV.mjs → list-F0vkE22V.mjs} +2 -2
- package/dist/{list-CRUjh592.mjs → list-FR8Q1SzV.mjs} +3 -3
- package/dist/{login-BF6LkxPI.mjs → login-C0Rf2hg0.mjs} +3 -3
- package/dist/{logout-Cg8Z_XD_.mjs → logout-C7_UON-s.mjs} +2 -2
- package/dist/measure-BUedPu4K.mjs +19 -0
- package/dist/{metadata-CmvvOpKI.mjs → metadata-Db3Kpo-z.mjs} +5 -5
- package/dist/{metadata-B15u_YYT.mjs → metadata-FltZq5Ek.mjs} +4 -4
- package/dist/{parse-id-DMs04KM3.mjs → parse-id-B5adfBlS.mjs} +1 -1
- package/dist/{path-YsfpMb_h.mjs → path-BojuJkE4.mjs} +3 -3
- package/dist/{poll-13tgWrN_.mjs → poll-AduuU55-.mjs} +1 -1
- package/dist/{poll-task-BuAHsDEK.mjs → poll-task-B00Qwd87.mjs} +2 -2
- package/dist/{preflight-wCSgVqbX.mjs → preflight-QVPvG_Xg.mjs} +1 -1
- package/dist/publish-h5RJh6im.mjs +66 -0
- package/dist/{query-x6g6unDt.mjs → query-BUkuB4bZ.mjs} +3 -3
- package/dist/{query-DnYdI0fl.mjs → query-Dvi-Rksy.mjs} +3 -3
- package/dist/{remove-collection-CLTqx7ys.mjs → remove-collection-D8ZfB2RN.mjs} +6 -6
- package/dist/{rescan-values-C7b78yA2.mjs → rescan-values-DOsDLrRG.mjs} +5 -5
- package/dist/resolve-BQ9vjlNJ.mjs +84 -0
- package/dist/{run-DR5O1_EU.mjs → run-CeG0KH5W.mjs} +3 -3
- package/dist/{run-CsYI4Sqv.mjs → run-CjhD-Zbr.mjs} +6 -6
- package/dist/{runs-DWbtqOyw.mjs → runs-6k8C6kXF.mjs} +4 -4
- package/dist/{runtime-7JTC-usO.mjs → runtime-CmAIahm5.mjs} +1 -1
- package/dist/{schema-tables-Cte09dhE.mjs → schema-tables-C45QegaY.mjs} +4 -4
- package/dist/{schemas-DAmSPGiC.mjs → schemas-EVwEFuTj.mjs} +3 -3
- package/dist/{search-Di-SFcZm.mjs → search-C_uw_D1U.mjs} +3 -3
- package/dist/segment-CkZUZcWz.mjs +19 -0
- package/dist/selectors-AktxTEMK.mjs +37 -0
- package/dist/{set-C1rIETEg.mjs → set-C3EAuyb8.mjs} +5 -5
- package/dist/{set-active-CJ1VaxEC.mjs → set-active-BW6LN6y0.mjs} +2 -2
- package/dist/{setting-6WqN3L3F.mjs → setting-C50HEiGG.mjs} +3 -3
- package/dist/{setup-DbXhTopr.mjs → setup-CYrbNrlG.mjs} +3 -3
- package/dist/{skills-CfWrH-1L.mjs → skills-D6xQkmhu.mjs} +3 -3
- package/dist/snippet-BjaWAxCu.mjs +19 -0
- package/dist/{stash-BCNSzoYQ.mjs → stash-C1V2FvJR.mjs} +6 -6
- package/dist/{status-CG3Lbl5_.mjs → status-CxYw6zQM.mjs} +5 -5
- package/dist/{status-BocNdqNq.mjs → status-DY92F9mn.mjs} +2 -2
- package/dist/{summary-TApK2JbW.mjs → summary-DOxgqJoA.mjs} +3 -3
- package/dist/{sync-schema-COA-OlO3.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-Bo4u0YqS.mjs → transforms-DzBJDydn.mjs} +4 -4
- package/dist/{tree-CGh-ZG4n.mjs → tree-B3f5F_dP.mjs} +2 -2
- package/dist/unpublish-B5RDeN-V.mjs +77 -0
- package/dist/{update-ETzjZl17.mjs → update-BIZ9XhjS.mjs} +5 -5
- package/dist/{update-ZPsCSWR6.mjs → update-C0pFSc1B.mjs} +6 -6
- package/dist/{update-DtUhmJar.mjs → update-CcvDVqNd.mjs} +4 -4
- package/dist/{update-Br_cd74H.mjs → update-CiWPEqQ-.mjs} +5 -5
- package/dist/{update-ysNL-mE-.mjs → update-D5gioyBa.mjs} +4 -4
- package/dist/{update-CCIkTuxz.mjs → update-D698CaeV.mjs} +5 -5
- package/dist/{update-Bob7lvnr.mjs → update-DOfL_KPx.mjs} +5 -5
- package/dist/{update-DCvTlxUK.mjs → update-DSueNZRw.mjs} +5 -5
- package/dist/{update-DLQygCXg.mjs → update-DudyZ-FP.mjs} +5 -5
- package/dist/{update-Co4WLVkK.mjs → update-I3TA2Tem.mjs} +4 -4
- package/dist/{update-BuJjTYAx.mjs → update-PZPNx0Xd.mjs} +5 -5
- package/dist/{update-dashcard-Du-h_8oY.mjs → update-dashcard-BXZ4vS15.mjs} +4 -4
- package/dist/{upgrade-CavKMkQ4.mjs → upgrade-4cWfLu90.mjs} +2 -2
- package/dist/{uuid-BL33x41p.mjs → uuid---pAboNQ.mjs} +2 -2
- package/dist/{values-DVu97Fcd.mjs → values-I503dI7K.mjs} +3 -3
- package/dist/{verify-BLUei79N.mjs → verify-BMhTWW9s.mjs} +1 -1
- package/dist/{wait-flags-Z_JC7x4L.mjs → wait-flags-HtCL2l1r.mjs} +2 -2
- package/dist/{wait-C0P8Qt37.mjs → wait-oMSs_IdS.mjs} +5 -5
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +2 -1
- package/skill-data/data-transformation/SKILL.md +35 -28
- package/skill-data/semantic-layer/SKILL.md +5 -0
- package/dist/add-collection-Cdhj6DJb.mjs +0 -10
- package/dist/auth-D4cXDeiH.mjs +0 -19
- package/dist/card-BMN-mcxn.mjs +0 -20
- package/dist/collection-DZnA3zXr.mjs +0 -20
- package/dist/dashboard-PB_c3Irl.mjs +0 -21
- package/dist/db-q0lYg3k8.mjs +0 -22
- package/dist/document-4TwzGwl3.mjs +0 -19
- package/dist/field-Bi_O_Sdg.mjs +0 -18
- package/dist/git-sync-BOZdFF09.mjs +0 -28
- package/dist/is-dirty-B6usK-aU.mjs +0 -9
- package/dist/list-RC1HQ2dg.mjs +0 -42
- package/dist/measure-BRzkMY5y.mjs +0 -19
- package/dist/segment-DiHHHk2a.mjs +0 -19
- package/dist/snippet-B-anQo6y.mjs +0 -19
- package/dist/table-Bnj8IBKx.mjs +0 -19
- package/dist/transform-QCDItglq.mjs +0 -25
- package/dist/transform-job-Dawm4Lag.mjs +0 -22
- package/dist/transform-tag-CN-bTSne.mjs +0 -18
- /package/dist/{delete-runtime-BhZAAvjc.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-qczxOAzn.mjs → transform-MmqHKGU-.mjs} +0 -0
- /package/dist/{transform-job-B9pXBOwr.mjs → transform-job-CtVziW85.mjs} +0 -0
- /package/dist/{transform-tag-BLAbrywB.mjs → transform-tag-wFiWmiyO.mjs} +0 -0
package/README.md
CHANGED
|
@@ -469,6 +469,8 @@ mb table update 42 --file patch.json
|
|
|
469
469
|
echo '{"description":"Customer dimension"}' | mb table update 42
|
|
470
470
|
```
|
|
471
471
|
|
|
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).
|
|
473
|
+
|
|
472
474
|
## Fields
|
|
473
475
|
|
|
474
476
|
Inspect and edit individual columns via `/api/field`.
|
|
@@ -958,6 +960,53 @@ mb collection archive 4
|
|
|
958
960
|
mb collection archive 4 --json
|
|
959
961
|
```
|
|
960
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
|
+
|
|
961
1010
|
## Documents
|
|
962
1011
|
|
|
963
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
|
|
|
@@ -1,15 +1,15 @@
|
|
|
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-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 { Dashboard, DashboardCreateInput, DashboardDetail, dashboardView } from "./dashboard-B4bn3z6t.mjs";
|
|
12
|
-
import { preflightDashcardCardReferences, wrapChainedDashboardWriteError } from "./preflight-
|
|
12
|
+
import { preflightDashcardCardReferences, wrapChainedDashboardWriteError } from "./preflight-QVPvG_Xg.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/dashboard/create.ts
|
|
15
15
|
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 { Snippet, SnippetCreateInput, snippetView } from "./snippet-
|
|
8
|
+
import { Snippet, SnippetCreateInput, snippetView } from "./snippet-D4SyVLKB.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/commands/snippet/create.ts
|
|
11
11
|
var create_default = defineMetabaseCommand({
|