@metabase/cli 0.1.13 → 0.1.15
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 +108 -0
- package/dist/add-collection-Bnuh0d4j.mjs +10 -0
- package/dist/{add-collection-BQsx2Q-S.mjs → add-collection-CXhrMjXU.mjs} +4 -4
- package/dist/{archive-FLrOqODN.mjs → archive-BUwiCFnd.mjs} +3 -3
- package/dist/{archive-BS4U2_gi.mjs → archive-Blc1dz8Z.mjs} +3 -3
- package/dist/{archive-D7qtYihp.mjs → archive-BxGSR7El.mjs} +3 -3
- package/dist/{archive-BP53zrzs.mjs → archive-CQiaCBSj.mjs} +3 -3
- package/dist/{archive-BrYMa87Z.mjs → archive-D-Ovk0-E.mjs} +3 -3
- package/dist/{archive-H8wBIt8q.mjs → archive-Drt-rWvU.mjs} +3 -3
- package/dist/{archive-Dt5zuiwu.mjs → archive-yTvDRQUZ.mjs} +3 -3
- package/dist/auth-Bkue4Psy.mjs +19 -0
- package/dist/{body-3vzTm8Jj.mjs → body-B9XTTDEu.mjs} +1 -1
- package/dist/{branches-Lr1cCUdg.mjs → branches-Ct3PK5U3.mjs} +4 -4
- package/dist/{cancel-Br3FHyDR.mjs → cancel-tST8Bh0w.mjs} +3 -3
- package/dist/{cancel-task-BXgeq3MH.mjs → cancel-task-BHnzRQKL.mjs} +4 -4
- package/dist/card-faWo9ZWU.mjs +20 -0
- package/dist/{cards-D-AkjCxr.mjs → cards-BySIFsLG.mjs} +3 -3
- package/dist/cli.mjs +24 -23
- package/dist/collection-DcRz7fmf.mjs +20 -0
- package/dist/{collection-namespace-BQ_ebqOP.mjs → collection-namespace-D8ohM5gD.mjs} +1 -1
- package/dist/{create-DHUhRzcV.mjs → create-4mAGsBd0.mjs} +3 -3
- package/dist/{create-Dx1SDXyQ.mjs → create-BDWthCYq.mjs} +3 -3
- package/dist/{create-DUdkitlQ.mjs → create-C43RQYgj.mjs} +4 -4
- package/dist/{create-BpAak62U.mjs → create-C7FPeJqF.mjs} +3 -3
- package/dist/{create-CDL9WHiR.mjs → create-D3cVDtxM.mjs} +3 -3
- package/dist/{create-C1xYECl-.mjs → create-DGxZmbxh.mjs} +4 -4
- package/dist/{create-CcZEV9xx.mjs → create-DnT1Sayk.mjs} +3 -3
- package/dist/{create-y4j2I1aH.mjs → create-DxDD6n1d.mjs} +5 -5
- package/dist/create-HZ-9GMLx.mjs +44 -0
- package/dist/{create-branch-BvZKizC4.mjs → create-branch-jPE7nW-E.mjs} +4 -4
- package/dist/{create-ux0yPpq1.mjs → create-fIDFkdox.mjs} +3 -3
- package/dist/{current-task-DaWn0DYt.mjs → current-task-rW54KJax.mjs} +4 -4
- package/dist/dashboard-pXAxJTTx.mjs +21 -0
- package/dist/db-CmHHj5eI.mjs +22 -0
- package/dist/{delete-CW3cEHlr.mjs → delete-BWO6uB4P.mjs} +4 -4
- package/dist/delete-CBwztF6P.mjs +50 -0
- package/dist/{delete-DFWjBpzl.mjs → delete-CeigtfRI.mjs} +4 -4
- package/dist/{delete-table-Wa0yRsnM.mjs → delete-table-BXzvDEPG.mjs} +4 -4
- package/dist/dependencies-D2N9eqm1.mjs +40 -0
- package/dist/{dirty-CKcGYIpv.mjs → dirty-DoEZRSGB.mjs} +4 -4
- package/dist/document-DQIhL75C.mjs +19 -0
- package/dist/{eid-m44hs7Ul.mjs → eid-1mROiwJr.mjs} +3 -3
- package/dist/{error-DR_i1hxJ.mjs → error-D5bZ5BUX.mjs} +1 -1
- package/dist/{export-8C4F9pYn.mjs → export-Bgv5B4_F.mjs} +6 -6
- package/dist/field-B-UcqFzm.mjs +18 -0
- package/dist/{fields-hXrRjf7e.mjs → fields-VA7tXHJz.mjs} +3 -3
- package/dist/{get-8r-_QuSr.mjs → get-B8etVxWD.mjs} +3 -3
- package/dist/{get-cjqlMKF5.mjs → get-BgIE_YEg.mjs} +4 -4
- package/dist/{get-xVPjvf7O.mjs → get-BtAD26gc.mjs} +3 -3
- package/dist/{get-CqU4xVSg.mjs → get-C-UeGtgW.mjs} +2 -2
- package/dist/{get-9MCrsgTf.mjs → get-CGkhSY5L.mjs} +3 -3
- package/dist/{get-BxgSKzca.mjs → get-CqnCaosn.mjs} +3 -3
- package/dist/{get-DWg3riaY.mjs → get-D9o38nK5.mjs} +2 -2
- package/dist/{get-BlNLGR-F.mjs → get-DAsaor0n.mjs} +2 -2
- package/dist/{get-D7WUNQYY.mjs → get-DLRBq8kR.mjs} +3 -3
- package/dist/{get-C7EKJGTP.mjs → get-DvQoDU2m.mjs} +4 -4
- package/dist/{get-BjCQctuS.mjs → get-RQFSmnpY.mjs} +3 -3
- package/dist/{get-3zFOkcl_.mjs → get-Wj88mnhn.mjs} +3 -3
- package/dist/{get-Cit5liJv.mjs → get-eUYDNALt.mjs} +3 -3
- package/dist/{get-CvLECgtm.mjs → get-qnGGGRTa.mjs} +3 -3
- package/dist/{get-run-CTDPEDcU.mjs → get-run-CATz-XMS.mjs} +4 -4
- package/dist/git-sync-CwOvcUI2.mjs +28 -0
- package/dist/{has-remote-changes-DYo4PQfC.mjs → has-remote-changes-B6YEMC90.mjs} +4 -4
- package/dist/{import-Cwd-_wYv.mjs → import-Bl2Wj9Xf.mjs} +6 -6
- package/dist/{is-dirty-HynZex-f.mjs → is-dirty-D9MoFj0T.mjs} +3 -3
- package/dist/is-dirty-MT0BT4CS.mjs +9 -0
- package/dist/{items-D4pSBGxR.mjs → items-LjtICjvX.mjs} +3 -3
- package/dist/{list-Ctze3nfU.mjs → list-B5Q7E2Km.mjs} +3 -3
- package/dist/{list-ET066OdN.mjs → list-Bjp9nd0o.mjs} +2 -2
- package/dist/{list-CI1WQ8U3.mjs → list-C410Ptw_.mjs} +2 -2
- package/dist/{list-F0BQNbaZ.mjs → list-C6U3Ftg8.mjs} +3 -3
- package/dist/{list-DBjOFesD.mjs → list-CfWblVHJ.mjs} +2 -2
- package/dist/{list-XgdM17ix.mjs → list-ChK06rJh.mjs} +2 -2
- package/dist/{list-DMZumpNv.mjs → list-CoRX8Ruc.mjs} +2 -2
- package/dist/{list-D3BBrpoQ.mjs → list-Cx8JxS2C.mjs} +2 -2
- package/dist/{list-_xdr1WKh.mjs → list-DMik04Dh.mjs} +3 -3
- package/dist/list-DaJk60dd.mjs +32 -0
- package/dist/{list-D7o0DOZe.mjs → list-DcjenlTM.mjs} +2 -2
- package/dist/{list-Bqy3rN6k.mjs → list-DfoNv0gb.mjs} +2 -2
- package/dist/{list-D-Ms9fhd.mjs → list-Dq86BAMG.mjs} +2 -2
- package/dist/{list-De2qX1w8.mjs → list-DtrfE0sF.mjs} +3 -3
- package/dist/{list-B2QX8BZ3.mjs → list-cnqPlJgC.mjs} +2 -2
- package/dist/{login-BHDdLJzw.mjs → login-Cn2UtFUt.mjs} +3 -3
- package/dist/{logout-ClizU0OL.mjs → logout-_HXgEmqA.mjs} +2 -2
- package/dist/measure-BIAoqgcS.mjs +19 -0
- package/dist/{metadata-D23RdbEZ.mjs → metadata-8yqT8OZI.mjs} +3 -3
- package/dist/{metadata-a_N6Sx30.mjs → metadata-DHODjg1d.mjs} +3 -3
- package/dist/{parse-id-B1BlAunl.mjs → parse-id-DNPeV0Iu.mjs} +1 -1
- package/dist/{path-FSfPscAQ.mjs → path-BflajM08.mjs} +2 -2
- package/dist/{poll-Dl5Zv4Ed.mjs → poll-CYkX02Bm.mjs} +1 -1
- package/dist/{poll-task-BoRK94WQ.mjs → poll-task-oXpl3wzp.mjs} +2 -2
- package/dist/{preflight-CVlo39xa.mjs → preflight-BdJr2amA.mjs} +1 -1
- package/dist/publish-CGUkIqSm.mjs +70 -0
- package/dist/{query-yZ9HeaGp.mjs → query-CxTjguwp.mjs} +3 -3
- package/dist/{query-CSvpJssD.mjs → query-DWQaN7hO.mjs} +3 -3
- package/dist/{remove-collection-CV7ssevw.mjs → remove-collection-BwcFi8Fs.mjs} +6 -6
- package/dist/{rescan-values-CMeOv6yx.mjs → rescan-values-B9Qtsd32.mjs} +3 -3
- package/dist/{run-CIJOYXor.mjs → run-3eFtdI2Z.mjs} +6 -6
- package/dist/run-C-vftXCu.mjs +59 -0
- package/dist/{runs--CzbmfPg.mjs → runs-CpRTkn1W.mjs} +4 -4
- package/dist/{runtime-DJTGfiKO.mjs → runtime-C1QgWHM7.mjs} +1 -1
- package/dist/{schema-tables-BII9pHR8.mjs → schema-tables-rdeupgsu.mjs} +3 -3
- package/dist/{schemas-BzxVz71I.mjs → schemas-Cr7RjYqV.mjs} +3 -3
- package/dist/{search-CjJZdaM0.mjs → search-D7Yq2MDu.mjs} +3 -3
- package/dist/segment-BN8sFunv.mjs +19 -0
- package/dist/selectors-DPc2ZDdd.mjs +37 -0
- package/dist/{set-Ds_brNWu.mjs → set-X2N6x7pe.mjs} +3 -3
- package/dist/set-active-BoBa3pOw.mjs +56 -0
- package/dist/{setting-YDJRWd1m.mjs → setting-zZjcOPyE.mjs} +3 -3
- package/dist/{setup-DJb-NgSM.mjs → setup-C47WUieB.mjs} +3 -3
- package/dist/{skills-Dn-kn8Wj.mjs → skills-Po0YPVU5.mjs} +3 -3
- package/dist/snippet-DK0ZA8m5.mjs +19 -0
- package/dist/{stash-DGujowmx.mjs → stash-BV4sEp73.mjs} +6 -6
- package/dist/{status-Cx0TIn1I.mjs → status-BKF9rRnk.mjs} +5 -5
- package/dist/{status-3-Tl07gu.mjs → status-Cf8c0NON.mjs} +2 -2
- package/dist/{summary-CT-xFvnX.mjs → summary-RgLcBcEh.mjs} +3 -3
- package/dist/{sync-schema-BTF7O3FM.mjs → sync-schema-DKEel2Sv.mjs} +5 -5
- package/dist/table-COAKXNuj.mjs +21 -0
- package/dist/transform-Bto4U82j.mjs +25 -0
- package/dist/transform-job-_fW1y2tg.mjs +22 -0
- package/dist/transform-tag-C8n1oTr1.mjs +18 -0
- package/dist/transform-tag-DB46AhAj.mjs +36 -0
- package/dist/transforms-BOQ9CG0l.mjs +40 -0
- package/dist/{tree-CLUxXw-Z.mjs → tree-CF8mscd9.mjs} +2 -2
- package/dist/unpublish-CmaRNjK3.mjs +76 -0
- package/dist/{update-DD5Q37bz.mjs → update-B59h7KmS.mjs} +5 -5
- package/dist/{update-Z_LMzsiz.mjs → update-BXZBEeUp.mjs} +4 -4
- package/dist/{update-I0t_6Mni.mjs → update-BuypOaXq.mjs} +4 -4
- package/dist/{update-BeH_S7h9.mjs → update-CgQOSuZt.mjs} +4 -4
- package/dist/{update-BfNmqvuN.mjs → update-DERsb0eO.mjs} +5 -5
- package/dist/{update-tQvEYuzD.mjs → update-DQPg0_-d.mjs} +4 -4
- package/dist/{update-6IuvkFCk.mjs → update-DR4WkAET.mjs} +4 -4
- package/dist/{update-DpCv5Mdo.mjs → update-DoQpy9SA.mjs} +4 -4
- package/dist/update-Kz4kyqY_.mjs +51 -0
- package/dist/{update-dashcard-Bl3wbB8-.mjs → update-dashcard-BJVeSGvO.mjs} +4 -4
- package/dist/{update-C_Ui5qPU.mjs → update-nwXgVNQa.mjs} +6 -6
- package/dist/{update-DdqzxPIr.mjs → update-rhfPHALN.mjs} +4 -4
- package/dist/{upgrade-r2ZlfstE.mjs → upgrade-CNrkJF6s.mjs} +2 -2
- package/dist/{uuid-BduDonqb.mjs → uuid-Dpl3ALKq.mjs} +2 -2
- package/dist/{values-DuNE6Jxc.mjs → values-DMYpkoEH.mjs} +3 -3
- package/dist/{verify-D_yq68-R.mjs → verify-By9ZYzx4.mjs} +1 -1
- package/dist/{wait-CoDzO37B.mjs → wait-BzIAj8lJ.mjs} +5 -5
- package/dist/{wait-flags-BxUfF5zy.mjs → wait-flags-DQrxnlwv.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +2 -1
- package/skill-data/transform/SKILL.md +17 -3
- package/dist/add-collection-BiBKEHwz.mjs +0 -10
- package/dist/auth-DWA7DSo9.mjs +0 -19
- package/dist/card-DQV8WOIa.mjs +0 -20
- package/dist/collection-DIUWkVFY.mjs +0 -20
- package/dist/dashboard-CohHWhkV.mjs +0 -21
- package/dist/db-BD8JZUDw.mjs +0 -22
- package/dist/document-CRuag6F5.mjs +0 -19
- package/dist/field-CuabjsR7.mjs +0 -18
- package/dist/git-sync-CKsGGVOm.mjs +0 -28
- package/dist/is-dirty-Mkgi21bq.mjs +0 -9
- package/dist/measure-SmyQt9Lg.mjs +0 -19
- package/dist/segment-dkO4Ualw.mjs +0 -19
- package/dist/snippet-DqTiC73e.mjs +0 -19
- package/dist/table-DNGPtV4P.mjs +0 -19
- package/dist/transform-DEbvouxo.mjs +0 -24
- package/dist/transform-job-Du8npb7F.mjs +0 -19
- /package/dist/{delete-runtime-BhZAAvjc.mjs → delete-runtime-PzLFavb0.mjs} +0 -0
- /package/dist/{transform-job-B9pXBOwr.mjs → transform-job-C8lIS-7Q.mjs} +0 -0
- /package/dist/{transform-qczxOAzn.mjs → transform-n376akp8.mjs} +0 -0
package/README.md
CHANGED
|
@@ -129,6 +129,14 @@ mb transform list --json
|
|
|
129
129
|
mb transform get 1 --json
|
|
130
130
|
```
|
|
131
131
|
|
|
132
|
+
### `mb transform dependencies <id>`
|
|
133
|
+
|
|
134
|
+
List the upstream transforms this transform depends on (the ones that must run before it). The positional id is a transform id.
|
|
135
|
+
|
|
136
|
+
```sh
|
|
137
|
+
mb transform dependencies 1 --json
|
|
138
|
+
```
|
|
139
|
+
|
|
132
140
|
### `mb transform create`
|
|
133
141
|
|
|
134
142
|
```sh
|
|
@@ -251,6 +259,73 @@ mb transform-job delete 1 --yes
|
|
|
251
259
|
| ------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
252
260
|
| `--yes` | Skip the interactive confirmation prompt. In non-TTY contexts the prompt is skipped automatically (kubectl/gh/docker convention). |
|
|
253
261
|
|
|
262
|
+
### `mb transform-job run <id>`
|
|
263
|
+
|
|
264
|
+
Trigger a job manually and return immediately. The job runs every transform carrying one of the job's tags, plus those transforms' dependencies.
|
|
265
|
+
|
|
266
|
+
```sh
|
|
267
|
+
mb transform-job run 1
|
|
268
|
+
mb transform-job run 1 --force-refresh --json
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
| Flag | Description |
|
|
272
|
+
| ----------------- | --------------------------------------------------------------------------------------------------- |
|
|
273
|
+
| `--force-refresh` | Re-run the whole plan, including dependency transforms that are already fresh (skipped by default). |
|
|
274
|
+
|
|
275
|
+
### `mb transform-job transforms <id>`
|
|
276
|
+
|
|
277
|
+
List the transforms a job would run, resolved by the job's tags. The positional id is a job id.
|
|
278
|
+
|
|
279
|
+
```sh
|
|
280
|
+
mb transform-job transforms 1 --json
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
### `mb transform-job set-active <true|false>`
|
|
284
|
+
|
|
285
|
+
Activate or deactivate every transform job at once (admin only). Inactive jobs do not run on schedule; manual runs ignore the flag.
|
|
286
|
+
|
|
287
|
+
```sh
|
|
288
|
+
mb transform-job set-active false
|
|
289
|
+
mb transform-job set-active true --json
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
## Transform tags
|
|
293
|
+
|
|
294
|
+
CRUD on `/api/transform-tag`. Tags group transforms and jobs; reference them by id via the `tag_ids` field on a transform or job. The four built-in tags (`hourly`, `daily`, `weekly`, `monthly`) drive the built-in jobs. There is no get-by-id endpoint — use `list`.
|
|
295
|
+
|
|
296
|
+
### `mb transform-tag list`
|
|
297
|
+
|
|
298
|
+
```sh
|
|
299
|
+
mb transform-tag list --json
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### `mb transform-tag create`
|
|
303
|
+
|
|
304
|
+
```sh
|
|
305
|
+
mb transform-tag create --body '{"name":"nightly"}'
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
| Flag | Description |
|
|
309
|
+
| --------------- | ----------------------- |
|
|
310
|
+
| `--body <json>` | Inline JSON body. |
|
|
311
|
+
| `--file <path>` | Path to JSON body file. |
|
|
312
|
+
|
|
313
|
+
### `mb transform-tag update <id>`
|
|
314
|
+
|
|
315
|
+
```sh
|
|
316
|
+
mb transform-tag update 5 --body '{"name":"renamed"}'
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
### `mb transform-tag delete <id>`
|
|
320
|
+
|
|
321
|
+
```sh
|
|
322
|
+
mb transform-tag delete 5 --yes
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
| Flag | Description |
|
|
326
|
+
| ------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
327
|
+
| `--yes` | Skip the interactive confirmation prompt. In non-TTY contexts the prompt is skipped automatically (kubectl/gh/docker convention). |
|
|
328
|
+
|
|
254
329
|
## Databases
|
|
255
330
|
|
|
256
331
|
Read warehouse metadata from `/api/database`. The `db` group exposes the full database list, the per-database record, schema and table inspection, the two manual-sync triggers, and (rarely useful) full-warehouse rollup endpoints.
|
|
@@ -394,6 +469,39 @@ mb table update 42 --file patch.json
|
|
|
394
469
|
echo '{"description":"Customer dimension"}' | mb table update 42
|
|
395
470
|
```
|
|
396
471
|
|
|
472
|
+
### `mb table publish`
|
|
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`). |
|
|
504
|
+
|
|
397
505
|
## Fields
|
|
398
506
|
|
|
399
507
|
Inspect and edit individual columns via `/api/field`.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import "./runtime-C1QgWHM7.mjs";
|
|
4
|
+
import "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./parse-id-DNPeV0Iu.mjs";
|
|
6
|
+
import "./poll-CYkX02Bm.mjs";
|
|
7
|
+
import "./poll-task-oXpl3wzp.mjs";
|
|
8
|
+
import { SyncSettingsUpdateResult, add_collection_default, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-CXhrMjXU.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-D5bZ5BUX.mjs";
|
|
2
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.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-DNPeV0Iu.mjs";
|
|
5
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-oXpl3wzp.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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.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-DNPeV0Iu.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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
6
|
import { revisionMessageFlag } from "./revision-message-flag-C7zBeWEt.mjs";
|
|
7
7
|
import { Segment, segmentView } from "./segment-B9SEv9V_.mjs";
|
|
8
8
|
|
|
@@ -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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
6
|
import { Dashboard, dashboardView } from "./dashboard-B4bn3z6t.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/dashboard/archive.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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
6
|
import { Collection, collectionView } from "./collection-Deiziuu2.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/collection/archive.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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
6
|
import { Snippet, snippetView } from "./snippet-NNzqlksR.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/snippet/archive.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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
6
|
import { Measure, measureView } from "./measure-JJAdFoqK.mjs";
|
|
7
7
|
import { revisionMessageFlag } from "./revision-message-flag-C7zBeWEt.mjs";
|
|
8
8
|
|
|
@@ -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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.mjs";
|
|
6
6
|
import { Document, documentView } from "./document-qfwR0r63.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/commands/document/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-Cn2UtFUt.mjs").then((m) => m.default),
|
|
12
|
+
status: () => import("./status-Cf8c0NON.mjs").then((m) => m.default),
|
|
13
|
+
list: () => import("./list-C6U3Ftg8.mjs").then((m) => m.default),
|
|
14
|
+
logout: () => import("./logout-_HXgEmqA.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-C1QgWHM7.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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import "./poll-
|
|
6
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
5
|
+
import "./poll-CYkX02Bm.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-oXpl3wzp.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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.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-CYkX02Bm.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncTask, syncTaskView } from "./poll-task-oXpl3wzp.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-C410Ptw_.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-Wj88mnhn.mjs").then((mod) => mod.default),
|
|
12
|
+
query: () => import("./query-DWQaN7hO.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-4mAGsBd0.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-rhfPHALN.mjs").then((mod) => mod.default),
|
|
15
|
+
archive: () => import("./archive-BUwiCFnd.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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
4
|
import { renderList } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { parseId } from "./parse-id-DNPeV0Iu.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-D5bZ5BUX.mjs";
|
|
4
4
|
import { defineCommand, renderUsage, runMain } from "citty";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/global-flags.ts
|
|
@@ -58,28 +58,29 @@ 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
|
-
document: () => import("./document-
|
|
69
|
-
transform: () => import("./transform-
|
|
70
|
-
"transform-job": () => import("./transform-job-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
61
|
+
auth: () => import("./auth-Bkue4Psy.mjs").then((mod) => mod.default),
|
|
62
|
+
db: () => import("./db-CmHHj5eI.mjs").then((mod) => mod.default),
|
|
63
|
+
table: () => import("./table-COAKXNuj.mjs").then((mod) => mod.default),
|
|
64
|
+
field: () => import("./field-B-UcqFzm.mjs").then((mod) => mod.default),
|
|
65
|
+
card: () => import("./card-faWo9ZWU.mjs").then((mod) => mod.default),
|
|
66
|
+
dashboard: () => import("./dashboard-pXAxJTTx.mjs").then((mod) => mod.default),
|
|
67
|
+
collection: () => import("./collection-DcRz7fmf.mjs").then((mod) => mod.default),
|
|
68
|
+
document: () => import("./document-DQIhL75C.mjs").then((mod) => mod.default),
|
|
69
|
+
transform: () => import("./transform-Bto4U82j.mjs").then((mod) => mod.default),
|
|
70
|
+
"transform-job": () => import("./transform-job-_fW1y2tg.mjs").then((mod) => mod.default),
|
|
71
|
+
"transform-tag": () => import("./transform-tag-C8n1oTr1.mjs").then((mod) => mod.default),
|
|
72
|
+
setting: () => import("./setting-zZjcOPyE.mjs").then((mod) => mod.default),
|
|
73
|
+
search: () => import("./search-D7Yq2MDu.mjs").then((mod) => mod.default),
|
|
74
|
+
"git-sync": () => import("./git-sync-CwOvcUI2.mjs").then((mod) => mod.default),
|
|
75
|
+
setup: () => import("./setup-C47WUieB.mjs").then((mod) => mod.default),
|
|
76
|
+
snippet: () => import("./snippet-DK0ZA8m5.mjs").then((mod) => mod.default),
|
|
77
|
+
segment: () => import("./segment-BN8sFunv.mjs").then((mod) => mod.default),
|
|
78
|
+
measure: () => import("./measure-BIAoqgcS.mjs").then((mod) => mod.default),
|
|
79
|
+
eid: () => import("./eid-1mROiwJr.mjs").then((mod) => mod.default),
|
|
80
|
+
query: () => import("./query-CxTjguwp.mjs").then((mod) => mod.default),
|
|
81
|
+
uuid: () => import("./uuid-Dpl3ALKq.mjs").then((mod) => mod.default),
|
|
82
|
+
upgrade: () => import("./upgrade-CNrkJF6s.mjs").then((mod) => mod.default),
|
|
83
|
+
skills: () => import("./skills-Po0YPVU5.mjs").then((mod) => mod.default),
|
|
83
84
|
__manifest: () => import("./manifest-DYeLri80.mjs").then((mod) => mod.createManifestCommand(main))
|
|
84
85
|
}
|
|
85
86
|
});
|
|
@@ -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-CfWblVHJ.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-DAsaor0n.mjs").then((mod) => mod.default),
|
|
12
|
+
items: () => import("./items-LjtICjvX.mjs").then((mod) => mod.default),
|
|
13
|
+
tree: () => import("./tree-CF8mscd9.mjs").then((mod) => mod.default),
|
|
14
|
+
create: () => import("./create-C7FPeJqF.mjs").then((mod) => mod.default),
|
|
15
|
+
archive: () => import("./archive-CQiaCBSj.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-C1QgWHM7.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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.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-B9XTTDEu.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,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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.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-B9XTTDEu.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
8
|
import { Snippet, SnippetCreateInput, snippetView } from "./snippet-NNzqlksR.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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.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-B9XTTDEu.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-BdJr2amA.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/dashboard/create.ts
|
|
15
15
|
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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.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-B9XTTDEu.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";
|
|
@@ -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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.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-B9XTTDEu.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";
|
|
@@ -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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.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-B9XTTDEu.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-C8lIS-7Q.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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.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-B9XTTDEu.mjs";
|
|
7
7
|
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
8
|
import { Document, DocumentCreateInput, documentView } from "./document-qfwR0r63.mjs";
|
|
9
9
|
|
|
@@ -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-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.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-B9XTTDEu.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-n376akp8.mjs";
|
|
11
|
+
import { enrichTransformCollectionError } from "./collection-namespace-D8ohM5gD.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/transform/create.ts
|
|
14
14
|
var create_default = defineMetabaseCommand({
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import "./command-augment-CAur0XOQ.mjs";
|
|
2
|
+
import { connectionFlags, outputFlags, profileFlag } from "./error-D5bZ5BUX.mjs";
|
|
3
|
+
import { defineMetabaseCommand } from "./runtime-C1QgWHM7.mjs";
|
|
4
|
+
import { renderSummary } from "./capabilities-BX1rnVuH.mjs";
|
|
5
|
+
import "./input-BXWgdKiS.mjs";
|
|
6
|
+
import { readBody } from "./body-B9XTTDEu.mjs";
|
|
7
|
+
import { bodyInputFlags } from "./body-flags-D7q87Btw.mjs";
|
|
8
|
+
import { TransformTag, TransformTagCreateInput, transformTagView } from "./transform-tag-DB46AhAj.mjs";
|
|
9
|
+
|
|
10
|
+
//#region src/commands/transform-tag/create.ts
|
|
11
|
+
var create_default = defineMetabaseCommand({
|
|
12
|
+
meta: {
|
|
13
|
+
name: "create",
|
|
14
|
+
description: "Create a transform tag"
|
|
15
|
+
},
|
|
16
|
+
capabilities: { minVersion: 59 },
|
|
17
|
+
args: {
|
|
18
|
+
...outputFlags,
|
|
19
|
+
...profileFlag,
|
|
20
|
+
...connectionFlags,
|
|
21
|
+
...bodyInputFlags
|
|
22
|
+
},
|
|
23
|
+
outputSchema: TransformTag,
|
|
24
|
+
examples: [
|
|
25
|
+
"mb transform-tag create --body '{\"name\":\"nightly\"}'",
|
|
26
|
+
"mb transform-tag create --file tag.json",
|
|
27
|
+
"echo '{\"name\":\"nightly\"}' | mb transform-tag create"
|
|
28
|
+
],
|
|
29
|
+
async run({ args, ctx, getClient }) {
|
|
30
|
+
const body = await readBody({
|
|
31
|
+
flag: args.body,
|
|
32
|
+
file: args.file
|
|
33
|
+
}, TransformTagCreateInput);
|
|
34
|
+
const client = await getClient();
|
|
35
|
+
const created = await client.requestParsed(TransformTag, "/api/transform-tag", {
|
|
36
|
+
method: "POST",
|
|
37
|
+
body
|
|
38
|
+
});
|
|
39
|
+
renderSummary(created, transformTagView, `Created transform tag ${created.id} "${created.name}".`, ctx);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { create_default as default };
|