@metabase/cli 0.1.0-alpha.workspaces-commands.935a64c → 0.1.1
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 +54 -51
- package/dist/{add-collection-B-Ye-3rk.mjs → add-collection--zwkmE1S.mjs} +6 -6
- package/dist/{add-collection-FNN_Arg9.mjs → add-collection-B1qe0D1U.mjs} +6 -6
- package/dist/{api-key-3kWHdrkv.mjs → api-key-gzCbKDjL.mjs} +1 -1
- package/dist/{archive-PiPTzqta.mjs → archive-CitmlD1e.mjs} +3 -3
- package/dist/{archive-C-G9Nxoi.mjs → archive-CnhWegtR.mjs} +5 -4
- package/dist/{archive-CeBvAhT6.mjs → archive-DQjBOXnx.mjs} +4 -4
- package/dist/{archive-Ctx4ppbz.mjs → archive-Ni8-lQ1Y.mjs} +5 -5
- package/dist/auth-BPjsrFxM.mjs +19 -0
- package/dist/{body-DnyBxVKv.mjs → body-DRBgxS6-.mjs} +1 -1
- package/dist/{branches-fnskukyH.mjs → branches-C5Jcw8wu.mjs} +6 -6
- package/dist/{cancel-BHS55uG8.mjs → cancel-Ca3r7Y6v.mjs} +3 -3
- package/dist/{cancel-task--Ql2riG6.mjs → cancel-task-C1-8vDKS.mjs} +7 -7
- package/dist/card-BGAy3eIb.mjs +20 -0
- package/dist/{card-B2ZlGpQP.mjs → card-CAEZWixN.mjs} +11 -14
- package/dist/{cards-Tqz7qbEd.mjs → cards-CILfMPUP.mjs} +4 -4
- package/dist/cli.mjs +24 -24
- package/dist/{collection-DFqH6N7s.mjs → collection-B3sPXRLs.mjs} +5 -12
- package/dist/collection-D8cnCB98.mjs +19 -0
- package/dist/{create-DnboeX4b.mjs → create-3Z6rm-4O.mjs} +4 -4
- package/dist/{create-BPqZI8eJ.mjs → create-BsY5RrVY.mjs} +3 -3
- package/dist/{create-QfYOXoyJ.mjs → create-C4OCclBD.mjs} +3 -3
- package/dist/{create-DIEuYQS2.mjs → create-COsD7Vzm.mjs} +6 -6
- package/dist/{create-C4Fec2QG.mjs → create-CP8ou91U.mjs} +4 -4
- package/dist/{create-xCp5Qxzv.mjs → create-CeIi_QLj.mjs} +8 -7
- package/dist/{create-Bn3BDzsS.mjs → create-CqNw6PmR.mjs} +7 -6
- package/dist/{create-DX5SX5HJ.mjs → create-DE_5NrFy.mjs} +5 -5
- package/dist/{create-Ddk53JTY.mjs → create-MEhhhgMC.mjs} +4 -4
- package/dist/{create-DM5QcfYo.mjs → create-QxDmleKJ.mjs} +5 -5
- package/dist/{create-branch-BPTa-3oe.mjs → create-branch-CKMYaAHk.mjs} +7 -7
- package/dist/{credentials-DDGZCExr.mjs → credentials-CwRKvdP2.mjs} +5 -5
- package/dist/{current-task-CXqMeAkI.mjs → current-task-Dutjys16.mjs} +7 -7
- package/dist/dashboard-B4fVp392.mjs +20 -0
- package/dist/{database-CV_nC20t.mjs → database-BMTb0CzV.mjs} +3 -3
- package/dist/{database-DzcFix9u.mjs → database-Dvkfy3JM.mjs} +1 -1
- package/dist/db-ACuuaEok.mjs +22 -0
- package/dist/{delete-DOJmKqAE.mjs → delete-BMQZuVXZ.mjs} +3 -3
- package/dist/{delete-ChZr_uHC.mjs → delete-BvcA4jPj.mjs} +3 -3
- package/dist/{delete-table-BbD1ux3D.mjs → delete-table-DUPjHKk4.mjs} +3 -3
- package/dist/{deprovision-DR5NpXeq.mjs → deprovision-Bsc1S15j.mjs} +6 -6
- package/dist/{dirty-D7HBPBUv.mjs → dirty-CXcdoUhY.mjs} +6 -6
- package/dist/{docker-pmX_H1ii.mjs → docker-D-ieBsP7.mjs} +2 -2
- package/dist/{eid-DVc2ebwX.mjs → eid-pvOsEMPZ.mjs} +1 -1
- package/dist/{export-Bc6K_0BX.mjs → export-BjGhLEOi.mjs} +9 -9
- package/dist/field-BI2bt8e9.mjs +18 -0
- package/dist/field-DciLbuv-.mjs +276 -0
- package/dist/{fields-CNsoNqGV.mjs → fields-Do8HHm_T.mjs} +5 -5
- package/dist/{get-Cxo5iHU_.mjs → get-BGFGWkH0.mjs} +4 -4
- package/dist/{get-CKGYT_h9.mjs → get-BmE_VHdl.mjs} +3 -3
- package/dist/{get-CX_Ck6Nk.mjs → get-C7sshmqF.mjs} +4 -4
- package/dist/{get-DfKxQ_oa.mjs → get-CObKBj2J.mjs} +4 -4
- package/dist/{get-BS3kP2wR.mjs → get-Cq5U_Eep.mjs} +4 -4
- package/dist/{get-BL4-XDrc.mjs → get-D4GUJBiX.mjs} +4 -4
- package/dist/{get-CYZbQcOF.mjs → get-DFrsi77F.mjs} +2 -2
- package/dist/{get-CkYr30at.mjs → get-DczxeETg.mjs} +5 -5
- package/dist/{get-BjzVuL-u.mjs → get-DeQa3ThJ.mjs} +5 -4
- package/dist/{get-IBjYDviZ.mjs → get-DhZ_dGUb.mjs} +3 -3
- package/dist/{get-pklCz_0L.mjs → get-DzCVafyO.mjs} +3 -3
- package/dist/{get-Dm4j4-C2.mjs → get-YCnVqq-z.mjs} +6 -6
- package/dist/{get-run-R1jpsFMw.mjs → get-run-CTyW29s3.mjs} +3 -3
- package/dist/git-sync-BOmT8HEU.mjs +28 -0
- package/dist/{has-remote-changes-B5tQE21X.mjs → has-remote-changes-xX8vMVsX.mjs} +6 -6
- package/dist/{import-DdzCXmMi.mjs → import-CaAUNtXz.mjs} +9 -9
- package/dist/is-dirty-CPu-xqkW.mjs +10 -0
- package/dist/{is-dirty-bh6hmk9i.mjs → is-dirty-mgxEwEk4.mjs} +4 -4
- package/dist/{items-CrWoxVHo.mjs → items-Cg67tdto.mjs} +8 -8
- package/dist/{license-BOayhs8F.mjs → license-CwKzVMD0.mjs} +3 -3
- package/dist/{list-Cou-Ac2l.mjs → list-BqdNQ1nU.mjs} +3 -3
- package/dist/{list-D4LvgIyR.mjs → list-BwGdD45N.mjs} +3 -3
- package/dist/{list-MWSTuRJt.mjs → list-CfOVsAZz.mjs} +2 -2
- package/dist/{list-BjBJzP7V.mjs → list-CpyNn1Zn.mjs} +2 -2
- package/dist/{list-BYCK1KmR.mjs → list-CwwOoGLK.mjs} +2 -2
- package/dist/{list-DLypWjAD.mjs → list-DD8CQx8l.mjs} +5 -5
- package/dist/{list-gW9tCjmY.mjs → list-DL-RWpIE.mjs} +2 -2
- package/dist/{list-D3jKvEiW.mjs → list-DLlq3FyS.mjs} +5 -5
- package/dist/{list-BQV5NshX.mjs → list-DdQ4jmUQ.mjs} +3 -3
- package/dist/{list-Wgyl5jTw.mjs → list-DshbLoqR.mjs} +4 -3
- package/dist/{list-D6eczTGQ.mjs → list-DzTMpoBs.mjs} +3 -3
- package/dist/{list-Cxwr9_8m.mjs → list-JgRtCzz3.mjs} +2 -2
- package/dist/{list-IW7vnt50.mjs → list-WzgJcwB5.mjs} +2 -2
- package/dist/{login-Ce_o5MLd.mjs → login-DJnmR2wX.mjs} +2 -2
- package/dist/{logout-BBmwrBSd.mjs → logout-BMe_1Zp8.mjs} +2 -2
- package/dist/{logs-BH3YzGoR.mjs → logs-CQxKJ3HG.mjs} +5 -5
- package/dist/measure-BGyYbtqO.mjs +19 -0
- package/dist/{metadata-qxadwd31.mjs → metadata-CLIALntn.mjs} +5 -5
- package/dist/{metadata-CtHgIDV0.mjs → metadata-T-fNUWg_.mjs} +6 -6
- package/dist/{package-_D_P9V4h.mjs → package-DBsS7a5x.mjs} +1 -1
- package/dist/{parse-id-Dy4xSeLf.mjs → parse-id-BUOZQqjp.mjs} +1 -1
- package/dist/{parse-schemas-uB5tn5jL.mjs → parse-schemas-BnW4T1_I.mjs} +1 -1
- package/dist/{poll-DcT586gB.mjs → poll-DMmmZWvi.mjs} +1 -1
- package/dist/{poll-task-DgGZa-HF.mjs → poll-task-2Ckiwp8U.mjs} +5 -5
- package/dist/{preflight-DBQDG_jz.mjs → preflight-CC_g6EWU.mjs} +2 -2
- package/dist/{provision-RmlAclSj.mjs → provision-BUgWJWAV.mjs} +8 -8
- package/dist/{ps-BGzvw2a9.mjs → ps-BUNHygf-.mjs} +5 -5
- package/dist/{ps-cwwTN6HT.mjs → ps-Yv0JjLVN.mjs} +2 -2
- package/dist/{query-DhWf5_XU.mjs → query-CzfbuG8a.mjs} +36 -13
- package/dist/{query-RJ_1ZaP2.mjs → query-UIebHmbT.mjs} +7 -6
- package/dist/{remove-D9ZM9DBZ.mjs → remove-BAUbcwuF.mjs} +5 -5
- package/dist/{remove-CrAURrqj.mjs → remove-CN2PNGTR.mjs} +2 -2
- package/dist/{remove-collection-B2sz1JdF.mjs → remove-collection-C6NxEh53.mjs} +9 -9
- package/dist/{rescan-values-CQq-jhLD.mjs → rescan-values-CcB4F9qa.mjs} +6 -6
- package/dist/{run-NLdh0m0D.mjs → run-BjXZtu_6.mjs} +5 -5
- package/dist/{runs-oT0ELgMP.mjs → runs-CXx7l1NY.mjs} +4 -4
- package/dist/{runtime-C6l1Ju-X.mjs → runtime-D7jihh81.mjs} +1 -1
- package/dist/{schema-tables-BLYcUDzk.mjs → schema-tables-BCJT2DM_.mjs} +5 -5
- package/dist/{schemas-BVVEdKjp.mjs → schemas-DlNpbn4H.mjs} +3 -3
- package/dist/{search-BFam2-sx.mjs → search-Dt-6mdHZ.mjs} +3 -4
- package/dist/segment-C52QNnSs.mjs +19 -0
- package/dist/{set-KA89W3VR.mjs → set-DCESWpi3.mjs} +2 -2
- package/dist/{set-6L9BIstn.mjs → set-L7cuHjVZ.mjs} +3 -3
- package/dist/{setting-DXD5ho6c.mjs → setting-DysGAuYS.mjs} +3 -3
- package/dist/{setup-CFjHjBdY.mjs → setup-_ypJDPAY.mjs} +3 -3
- package/dist/snippet-vb3G9R8a.mjs +19 -0
- package/dist/{start-tLaBkkBI.mjs → start-BokXnb0V.mjs} +7 -8
- package/dist/{stash-DzHfWm1n.mjs → stash-CaGX6PfX.mjs} +7 -7
- package/dist/{status-EclMz7Yv.mjs → status-BaX9vedb.mjs} +8 -8
- package/dist/{status-51muEP07.mjs → status-CyecXzN4.mjs} +2 -2
- package/dist/{status-B5TB381j.mjs → status-RpVyPEty.mjs} +2 -2
- package/dist/{stop-C4bFdYps.mjs → stop-BRuF_Cg1.mjs} +6 -6
- package/dist/{summary-BNdAw8Te.mjs → summary-CpEOiOlZ.mjs} +4 -4
- package/dist/{sync-schema-YQWrC6jD.mjs → sync-schema-4Cl4h8Jn.mjs} +6 -6
- package/dist/table-BeMWuvzO.mjs +19 -0
- package/dist/{table-Ck9sInse.mjs → table-jljEqZ0R.mjs} +1 -5
- package/dist/transform-DwRc-w6y.mjs +24 -0
- package/dist/transform-job-BigWrctt.mjs +19 -0
- package/dist/{transform-job-DZ38Xc3k.mjs → transform-job-Csr86muI.mjs} +7 -0
- package/dist/{translate-DGO4Vbq8.mjs → translate-DqLlXXUx.mjs} +3 -3
- package/dist/{tree-DFBClf8v.mjs → tree-BT24nkLM.mjs} +3 -3
- package/dist/{update-BWanyZkB.mjs → update-BCXKQi2n.mjs} +6 -6
- package/dist/{update-owCnAziw.mjs → update-BXbLmC2b.mjs} +5 -5
- package/dist/{update-BGQ4CrAK.mjs → update-C1Frz9GR.mjs} +4 -4
- package/dist/{update-BoyiATwc.mjs → update-C5goGhNr.mjs} +6 -6
- package/dist/{update-BgHAOPmj.mjs → update-CCOyB0iT.mjs} +8 -8
- package/dist/{update-BFNyczga.mjs → update-D04NMueX.mjs} +8 -7
- package/dist/{update-DMMSjt0B.mjs → update-D6WVtNV1.mjs} +9 -8
- package/dist/{update-Dxyn8J5P.mjs → update-DFR46LsB.mjs} +7 -7
- package/dist/{update-D7phI8Ix.mjs → update-DyLItrpV.mjs} +6 -6
- package/dist/{update-dashcard-CdoKnQEk.mjs → update-dashcard-av0_PYeg.mjs} +10 -6
- package/dist/{update-C4oIEQ0a.mjs → update-mrgvQF4i.mjs} +5 -5
- package/dist/{url-mHVfZ4uL.mjs → url-x4wn_l3k.mjs} +5 -5
- package/dist/{uuid-BnDZbdAN.mjs → uuid-BZHbti8B.mjs} +2 -2
- package/dist/{validate-query-DQDzQCQv.mjs → validate-query-B07oGG4K.mjs} +1 -1
- package/dist/{values-CmTVidt-.mjs → values-Be6i0Fs9.mjs} +4 -4
- package/dist/{wait-DWDeV8l6.mjs → wait-BMqQD8k_.mjs} +8 -8
- package/dist/{wait-rHAJDRWM.mjs → wait-CWizX_sR.mjs} +1 -1
- package/dist/{wait-flags-DGvYn3LJ.mjs → wait-flags-DO3ar2tf.mjs} +2 -2
- package/dist/workspace-CG1xyJ86.mjs +24 -0
- package/package.json +1 -1
- package/dist/auth-yEUbA368.mjs +0 -19
- package/dist/card-Dnm0jydp.mjs +0 -20
- package/dist/collection-CXH6n3JD.mjs +0 -19
- package/dist/dashboard-B9zTXDYK.mjs +0 -20
- package/dist/db-D2koZa54.mjs +0 -22
- package/dist/field-D6CJbmAR.mjs +0 -142
- package/dist/field-ilGuKrWV.mjs +0 -18
- package/dist/is-dirty-BVGP-zkM.mjs +0 -10
- package/dist/measure-Bb_do8gt.mjs +0 -19
- package/dist/remote-sync-Wo7mzKgy.mjs +0 -28
- package/dist/segment-B0M4sLKF.mjs +0 -19
- package/dist/snippet-Cnk5Slje.mjs +0 -19
- package/dist/table-Dx13ukJ1.mjs +0 -19
- package/dist/transform-BaknXzIk.mjs +0 -24
- package/dist/transform-job-Cbg7x7Wv.mjs +0 -19
- package/dist/workspace-BBzIcZC3.mjs +0 -24
- /package/dist/{dashboard-DyrRSbqQ.mjs → dashboard-CnMD04PQ.mjs} +0 -0
- /package/dist/{manifest-VVjycZCe.mjs → manifest-Dv5B9Blc.mjs} +0 -0
- /package/dist/{measure-jbc7fsCs.mjs → measure-BEQfnLdN.mjs} +0 -0
- /package/dist/{paginate-B9W7ZuBj.mjs → paginate-CTSfuYiF.mjs} +0 -0
- /package/dist/{parse-ref-FBB8uGZw.mjs → parse-ref-DGvh4aDn.mjs} +0 -0
- /package/dist/{revision-message-flag-D4E1lKE5.mjs → revision-message-flag-CWQbKhdl.mjs} +0 -0
- /package/dist/{validate-GPoiblzw.mjs → validate-DCYx6jdL.mjs} +0 -0
|
@@ -6,28 +6,19 @@ const CollectionAuthorityLevel = z.enum(["official"]);
|
|
|
6
6
|
const CollectionType = z.enum([
|
|
7
7
|
"instance-analytics",
|
|
8
8
|
"trash",
|
|
9
|
-
"remote-synced",
|
|
10
9
|
"library",
|
|
11
10
|
"library-data",
|
|
12
11
|
"library-metrics",
|
|
13
|
-
"shared-tenant-collection",
|
|
14
12
|
"tenant-specific-root-collection"
|
|
15
13
|
]);
|
|
16
|
-
const CollectionNamespace = z.
|
|
17
|
-
|
|
18
|
-
"transforms",
|
|
19
|
-
"analytics",
|
|
20
|
-
"tenant-specific",
|
|
21
|
-
"shared-tenant-collection"
|
|
22
|
-
]);
|
|
23
|
-
const COLLECTION_ITEM_MODELS = [
|
|
14
|
+
const CollectionNamespace = z.string().min(1);
|
|
15
|
+
const COLLECTION_ITEM_FILTER_MODELS = [
|
|
24
16
|
"card",
|
|
25
17
|
"dataset",
|
|
26
18
|
"metric",
|
|
27
19
|
"dashboard",
|
|
28
20
|
"snippet",
|
|
29
21
|
"collection",
|
|
30
|
-
"indexed-entity",
|
|
31
22
|
"document",
|
|
32
23
|
"table",
|
|
33
24
|
"transform",
|
|
@@ -36,6 +27,8 @@ const COLLECTION_ITEM_MODELS = [
|
|
|
36
27
|
"timeline",
|
|
37
28
|
"no_models"
|
|
38
29
|
];
|
|
30
|
+
const CollectionItemFilterModel = z.enum(COLLECTION_ITEM_FILTER_MODELS);
|
|
31
|
+
const COLLECTION_ITEM_MODELS = [...COLLECTION_ITEM_FILTER_MODELS, "indexed-entity"];
|
|
39
32
|
const CollectionItemModel = z.enum(COLLECTION_ITEM_MODELS);
|
|
40
33
|
const COLLECTION_PINNED_STATES = [
|
|
41
34
|
"all",
|
|
@@ -167,4 +160,4 @@ const CollectionCreateInput = z.object({
|
|
|
167
160
|
}).loose();
|
|
168
161
|
|
|
169
162
|
//#endregion
|
|
170
|
-
export {
|
|
163
|
+
export { COLLECTION_ITEM_FILTER_MODELS, COLLECTION_PINNED_STATES, Collection, CollectionCompact, CollectionCreateInput, CollectionItem, CollectionItemCompact, CollectionItemFilterModel, CollectionPinnedState, CollectionTreeNode, collectionItemView, collectionView };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/collection/index.ts
|
|
4
|
+
var collection_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "collection",
|
|
7
|
+
description: "Browse Metabase collections"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-DdQ4jmUQ.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-D4GUJBiX.mjs").then((mod) => mod.default),
|
|
12
|
+
items: () => import("./items-Cg67tdto.mjs").then((mod) => mod.default),
|
|
13
|
+
tree: () => import("./tree-BT24nkLM.mjs").then((mod) => mod.default),
|
|
14
|
+
create: () => import("./create-3Z6rm-4O.mjs").then((mod) => mod.default)
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { collection_default as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
5
|
import "./input-ikCiip6x.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
7
|
+
import { readBody } from "./body-DRBgxS6-.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { Collection, CollectionCreateInput, collectionView } from "./collection-
|
|
9
|
+
import { Collection, CollectionCreateInput, collectionView } from "./collection-B3sPXRLs.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/collection/create.ts
|
|
12
12
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
5
|
import "./input-ikCiip6x.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
7
|
+
import { readBody } from "./body-DRBgxS6-.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { Snippet, SnippetCreateInput, snippetView } from "./snippet-Dw0Sjzkr.mjs";
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
5
|
import "./input-ikCiip6x.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
7
|
+
import { readBody } from "./body-DRBgxS6-.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { Workspace, WorkspaceCreateInput, workspaceView } from "./workspace-DVuqKJGG.mjs";
|
|
10
10
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
5
|
import "./input-ikCiip6x.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
7
|
+
import { readBody } from "./body-DRBgxS6-.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import "./validate-
|
|
10
|
-
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
11
|
-
import { Measure, MeasureCreateInput, measureView } from "./measure-
|
|
9
|
+
import "./validate-DCYx6jdL.mjs";
|
|
10
|
+
import { MEASURE_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-B07oGG4K.mjs";
|
|
11
|
+
import { Measure, MeasureCreateInput, measureView } from "./measure-BEQfnLdN.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/measure/create.ts
|
|
14
14
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
5
|
import "./input-ikCiip6x.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
7
|
+
import { readBody } from "./body-DRBgxS6-.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
9
|
import { requireBothOrNeither } from "./flag-pair-DtR1AiBQ.mjs";
|
|
10
|
-
import { parseId } from "./parse-id-
|
|
10
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
|
|
13
13
|
//#region src/domain/api-key.ts
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
5
|
import "./input-ikCiip6x.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
7
|
+
import { readBody } from "./body-DRBgxS6-.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
9
|
+
import "./field-DciLbuv-.mjs";
|
|
10
|
+
import "./card-CAEZWixN.mjs";
|
|
11
|
+
import "./validate-DCYx6jdL.mjs";
|
|
12
|
+
import { Dashboard, DashboardCreateInput, DashboardDetail, dashboardView } from "./dashboard-CnMD04PQ.mjs";
|
|
13
|
+
import { preflightDashcardCardReferences, wrapChainedDashboardWriteError } from "./preflight-CC_g6EWU.mjs";
|
|
13
14
|
|
|
14
15
|
//#region src/commands/dashboard/create.ts
|
|
15
16
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
5
|
import "./input-ikCiip6x.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
7
|
+
import { readBody } from "./body-DRBgxS6-.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import
|
|
10
|
-
import "./
|
|
11
|
-
import
|
|
9
|
+
import "./field-DciLbuv-.mjs";
|
|
10
|
+
import { Card, CardCreateInput, cardView } from "./card-CAEZWixN.mjs";
|
|
11
|
+
import "./validate-DCYx6jdL.mjs";
|
|
12
|
+
import { CARD_DATASET_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-B07oGG4K.mjs";
|
|
12
13
|
|
|
13
14
|
//#region src/commands/card/create.ts
|
|
14
15
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
5
|
import "./input-ikCiip6x.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
7
|
+
import { readBody } from "./body-DRBgxS6-.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import "./validate-
|
|
10
|
-
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
9
|
+
import "./validate-DCYx6jdL.mjs";
|
|
10
|
+
import { SEGMENT_DEFINITION_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-B07oGG4K.mjs";
|
|
11
11
|
import { Segment, SegmentCreateInput, segmentView } from "./segment-BMrUBz94.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/segment/create.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
5
|
import "./input-ikCiip6x.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
7
|
+
import { readBody } from "./body-DRBgxS6-.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-
|
|
9
|
+
import { TransformJob, TransformJobCreateInput, transformJobView } from "./transform-job-Csr86muI.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/commands/transform-job/create.ts
|
|
12
12
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
5
|
import "./input-ikCiip6x.mjs";
|
|
6
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
7
|
-
import { readBody } from "./body-
|
|
6
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
7
|
+
import { readBody } from "./body-DRBgxS6-.mjs";
|
|
8
8
|
import { bodyInputFlags } from "./body-flags-BK7J6Daz.mjs";
|
|
9
|
-
import "./validate-
|
|
10
|
-
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-
|
|
9
|
+
import "./validate-DCYx6jdL.mjs";
|
|
10
|
+
import { TRANSFORM_SOURCE_QUERY_LABELS, preflightMbql5Query, skipValidateFlag } from "./validate-query-B07oGG4K.mjs";
|
|
11
11
|
import { Transform, TransformCreateInput, transformView } from "./transform-IEX4Mx3X.mjs";
|
|
12
12
|
|
|
13
13
|
//#region src/commands/transform/create.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import { ConfigError } from "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { REMOTE_SYNC_PATHS } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS } from "./poll-task-2Ckiwp8U.mjs";
|
|
7
|
+
import "./poll-DMmmZWvi.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
|
-
//#region src/commands/
|
|
10
|
+
//#region src/commands/git-sync/create-branch.ts
|
|
11
11
|
const CreateBranchResult = z.object({
|
|
12
12
|
status: z.literal("success"),
|
|
13
13
|
message: z.string()
|
|
@@ -25,7 +25,7 @@ const createBranchView = {
|
|
|
25
25
|
var create_branch_default = defineMetabaseCommand({
|
|
26
26
|
meta: {
|
|
27
27
|
name: "create-branch",
|
|
28
|
-
description: "Create a new branch on the git remote and switch
|
|
28
|
+
description: "Create a new branch on the git remote and switch git-sync to it"
|
|
29
29
|
},
|
|
30
30
|
args: {
|
|
31
31
|
...outputFlags,
|
|
@@ -38,7 +38,7 @@ var create_branch_default = defineMetabaseCommand({
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
outputSchema: CreateBranchResult,
|
|
41
|
-
examples: ["metabase
|
|
41
|
+
examples: ["metabase git-sync create-branch feat/dashboards", "metabase git-sync create-branch feat/x --json"],
|
|
42
42
|
async run({ args, ctx, getClient }) {
|
|
43
43
|
const name = args.name.trim();
|
|
44
44
|
if (name === "") throw new ConfigError("invalid name: branch name must not be blank");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { defineMetabaseCommand, localUrl, outputFlags, parseJson } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import "./poll-
|
|
8
|
-
import { checkDockerReady, readContainerCredentialsFile, requireWorkspaceContainerLocation } from "./docker-
|
|
5
|
+
import { defineMetabaseCommand, localUrl, outputFlags, parseJson } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
|
+
import "./poll-DMmmZWvi.mjs";
|
|
8
|
+
import { checkDockerReady, readContainerCredentialsFile, requireWorkspaceContainerLocation } from "./docker-D-ieBsP7.mjs";
|
|
9
9
|
import { WorkspaceCredentials } from "./workspace-credentials-B6BL-X0d.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { SyncTaskOrIdle, fetchCurrentTask, syncTaskIdleView, syncTaskView } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { SyncTaskOrIdle, fetchCurrentTask, syncTaskIdleView, syncTaskView } from "./poll-task-2Ckiwp8U.mjs";
|
|
7
|
+
import "./poll-DMmmZWvi.mjs";
|
|
8
8
|
|
|
9
|
-
//#region src/commands/
|
|
9
|
+
//#region src/commands/git-sync/current-task.ts
|
|
10
10
|
const CurrentTaskResult = SyncTaskOrIdle;
|
|
11
11
|
var current_task_default = defineMetabaseCommand({
|
|
12
12
|
meta: {
|
|
13
13
|
name: "current-task",
|
|
14
|
-
description: "Get the most recent
|
|
14
|
+
description: "Get the most recent git-sync task (or idle if none)"
|
|
15
15
|
},
|
|
16
16
|
args: {
|
|
17
17
|
...outputFlags,
|
|
@@ -19,7 +19,7 @@ var current_task_default = defineMetabaseCommand({
|
|
|
19
19
|
...connectionFlags
|
|
20
20
|
},
|
|
21
21
|
outputSchema: CurrentTaskResult,
|
|
22
|
-
examples: ["metabase
|
|
22
|
+
examples: ["metabase git-sync current-task", "metabase git-sync current-task --json"],
|
|
23
23
|
async run({ ctx, getClient }) {
|
|
24
24
|
const client = await getClient();
|
|
25
25
|
const task = await fetchCurrentTask(client);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/dashboard/index.ts
|
|
4
|
+
var dashboard_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "dashboard",
|
|
7
|
+
description: "Manage Metabase dashboards"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
list: () => import("./list-BqdNQ1nU.mjs").then((mod) => mod.default),
|
|
11
|
+
get: () => import("./get-Cq5U_Eep.mjs").then((mod) => mod.default),
|
|
12
|
+
cards: () => import("./cards-CILfMPUP.mjs").then((mod) => mod.default),
|
|
13
|
+
create: () => import("./create-CeIi_QLj.mjs").then((mod) => mod.default),
|
|
14
|
+
update: () => import("./update-D6WVtNV1.mjs").then((mod) => mod.default),
|
|
15
|
+
"update-dashcard": () => import("./update-dashcard-av0_PYeg.mjs").then((mod) => mod.default)
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { dashboard_default as default };
|
|
@@ -7,9 +7,9 @@ var database_default = defineCommand({
|
|
|
7
7
|
description: "Manage databases provisioned to a workspace"
|
|
8
8
|
},
|
|
9
9
|
subCommands: {
|
|
10
|
-
provision: () => import("./provision-
|
|
11
|
-
update: () => import("./update-
|
|
12
|
-
deprovision: () => import("./deprovision-
|
|
10
|
+
provision: () => import("./provision-BUgWJWAV.mjs").then((mod) => mod.default),
|
|
11
|
+
update: () => import("./update-CCOyB0iT.mjs").then((mod) => mod.default),
|
|
12
|
+
deprovision: () => import("./deprovision-Bsc1S15j.mjs").then((mod) => mod.default)
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/db/index.ts
|
|
4
|
+
var db_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "db",
|
|
7
|
+
description: "Inspect Metabase databases",
|
|
8
|
+
alias: "database"
|
|
9
|
+
},
|
|
10
|
+
subCommands: {
|
|
11
|
+
list: () => import("./list-DLlq3FyS.mjs").then((m) => m.default),
|
|
12
|
+
get: () => import("./get-YCnVqq-z.mjs").then((m) => m.default),
|
|
13
|
+
metadata: () => import("./metadata-T-fNUWg_.mjs").then((m) => m.default),
|
|
14
|
+
schemas: () => import("./schemas-DlNpbn4H.mjs").then((m) => m.default),
|
|
15
|
+
"schema-tables": () => import("./schema-tables-BCJT2DM_.mjs").then((m) => m.default),
|
|
16
|
+
"sync-schema": () => import("./sync-schema-4Cl4h8Jn.mjs").then((m) => m.default),
|
|
17
|
+
"rescan-values": () => import("./rescan-values-CcB4F9qa.mjs").then((m) => m.default)
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { db_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
7
|
import "./prompt-Bf3DQ-qE.mjs";
|
|
8
8
|
import { DeleteResult, confirmAndDelete } from "./delete-runtime-BMzvfj_B.mjs";
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
7
|
import "./prompt-Bf3DQ-qE.mjs";
|
|
8
8
|
import { DeleteResult, confirmAndDelete } from "./delete-runtime-BMzvfj_B.mjs";
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
7
|
import "./prompt-Bf3DQ-qE.mjs";
|
|
8
8
|
import { DeleteResult, confirmAndDelete } from "./delete-runtime-BMzvfj_B.mjs";
|
|
9
9
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
7
|
import "./prompt-Bf3DQ-qE.mjs";
|
|
8
|
-
import "./poll-
|
|
8
|
+
import "./poll-DMmmZWvi.mjs";
|
|
9
9
|
import { DeleteResult, confirmAndDelete } from "./delete-runtime-BMzvfj_B.mjs";
|
|
10
|
-
import { parseWaitFlags, waitFlags } from "./wait-flags-
|
|
10
|
+
import { parseWaitFlags, waitFlags } from "./wait-flags-DO3ar2tf.mjs";
|
|
11
11
|
import "./workspace-DVuqKJGG.mjs";
|
|
12
|
-
import { waitForDatabaseGone } from "./wait-
|
|
12
|
+
import { waitForDatabaseGone } from "./wait-CWizX_sR.mjs";
|
|
13
13
|
|
|
14
14
|
//#region src/commands/workspace/database/deprovision.ts
|
|
15
15
|
var deprovision_default = defineMetabaseCommand({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderList } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-
|
|
6
|
-
import { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, syncDirtyItemView } from "./poll-task-
|
|
7
|
-
import "./poll-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, listEnvelopeSchema, outputFlags, profileFlag, wrapList } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { REMOTE_SYNC_PATHS, SyncDirtyItem, SyncDirtyItemCompact, syncDirtyItemView } from "./poll-task-2Ckiwp8U.mjs";
|
|
7
|
+
import "./poll-DMmmZWvi.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
|
|
10
|
-
//#region src/commands/
|
|
10
|
+
//#region src/commands/git-sync/dirty.ts
|
|
11
11
|
const SyncDirtyApiResponse = z.object({ dirty: z.array(SyncDirtyItem) });
|
|
12
12
|
const SyncDirtyListEnvelope = listEnvelopeSchema(SyncDirtyItemCompact);
|
|
13
13
|
var dirty_default = defineMetabaseCommand({
|
|
@@ -21,7 +21,7 @@ var dirty_default = defineMetabaseCommand({
|
|
|
21
21
|
...connectionFlags
|
|
22
22
|
},
|
|
23
23
|
outputSchema: SyncDirtyListEnvelope,
|
|
24
|
-
examples: ["metabase
|
|
24
|
+
examples: ["metabase git-sync dirty", "metabase git-sync dirty --json"],
|
|
25
25
|
async run({ ctx, getClient }) {
|
|
26
26
|
const client = await getClient();
|
|
27
27
|
const response = await client.requestParsed(SyncDirtyApiResponse, REMOTE_SYNC_PATHS.dirty);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigError, MetabaseError, errorMessage, isNotFoundError } from "./predicates-DiIiS3k7.mjs";
|
|
2
|
-
import { parseJson } from "./runtime-
|
|
3
|
-
import { pollUntil } from "./poll-
|
|
2
|
+
import { parseJson } from "./runtime-D7jihh81.mjs";
|
|
3
|
+
import { pollUntil } from "./poll-DMmmZWvi.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { spawn } from "node:child_process";
|
|
6
6
|
|
|
@@ -6,7 +6,7 @@ var eid_default = defineCommand({
|
|
|
6
6
|
name: "eid",
|
|
7
7
|
description: "Translate Metabase entity ids (string EIDs) to numeric ids"
|
|
8
8
|
},
|
|
9
|
-
subCommands: { translate: () => import("./translate-
|
|
9
|
+
subCommands: { translate: () => import("./translate-DqLlXXUx.mjs").then((mod) => mod.default) }
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./package-
|
|
1
|
+
import "./package-DBsS7a5x.mjs";
|
|
2
2
|
import "./command-augment-D9pI9Vbh.mjs";
|
|
3
3
|
import { renderItem, warn } from "./render-DXv-D6fU.mjs";
|
|
4
4
|
import "./predicates-DiIiS3k7.mjs";
|
|
5
|
-
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-
|
|
6
|
-
import { parseId } from "./parse-id-
|
|
7
|
-
import { REMOTE_SYNC_PATHS, SyncTask, pollFlags, pollSyncTask, throwIfFailedTask } from "./poll-task-
|
|
8
|
-
import "./poll-
|
|
5
|
+
import { connectionFlags, defineMetabaseCommand, outputFlags, profileFlag } from "./runtime-D7jihh81.mjs";
|
|
6
|
+
import { parseId } from "./parse-id-BUOZQqjp.mjs";
|
|
7
|
+
import { REMOTE_SYNC_PATHS, SyncTask, pollFlags, pollSyncTask, throwIfFailedTask } from "./poll-task-2Ckiwp8U.mjs";
|
|
8
|
+
import "./poll-DMmmZWvi.mjs";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
|
|
11
|
-
//#region src/commands/
|
|
11
|
+
//#region src/commands/git-sync/export.ts
|
|
12
12
|
const SyncExportKickoff = z.object({
|
|
13
13
|
message: z.string(),
|
|
14
14
|
task_id: z.number().int().positive()
|
|
@@ -56,9 +56,9 @@ var export_default = defineMetabaseCommand({
|
|
|
56
56
|
},
|
|
57
57
|
outputSchema: SyncExportResult,
|
|
58
58
|
examples: [
|
|
59
|
-
"metabase
|
|
60
|
-
"metabase
|
|
61
|
-
"metabase
|
|
59
|
+
"metabase git-sync export -m \"update dashboards\"",
|
|
60
|
+
"metabase git-sync export --branch main --json",
|
|
61
|
+
"metabase git-sync export --no-wait"
|
|
62
62
|
],
|
|
63
63
|
async run({ args, ctx, getClient }) {
|
|
64
64
|
const timeoutMs = parseId(args.timeout, "timeout");
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineCommand } from "citty";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/field/index.ts
|
|
4
|
+
var field_default = defineCommand({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "field",
|
|
7
|
+
description: "Inspect Metabase fields"
|
|
8
|
+
},
|
|
9
|
+
subCommands: {
|
|
10
|
+
get: () => import("./get-C7sshmqF.mjs").then((m) => m.default),
|
|
11
|
+
values: () => import("./values-Be6i0Fs9.mjs").then((m) => m.default),
|
|
12
|
+
summary: () => import("./summary-CpEOiOlZ.mjs").then((m) => m.default),
|
|
13
|
+
update: () => import("./update-mrgvQF4i.mjs").then((m) => m.default)
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { field_default as default };
|