@metabase/cli 0.3.2-alpha.fix-transform-test-ee-path.041c793 → 0.3.2-alpha.fix-transform-test-ee-path.8ac2a7a
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/dist/{add-collection-73X1DmCM.mjs → add-collection-B_-eMU_k.mjs} +2 -2
- package/dist/{alert-BB38lWSL.mjs → alert-Dalin_DD.mjs} +6 -6
- package/dist/{alerts-DxyzqLSU.mjs → alerts-DpBgrjPI.mjs} +3 -3
- package/dist/{append-CHme1Enm.mjs → append-C1JNVALm.mjs} +3 -3
- package/dist/{archive-Cq3fnc0v2.mjs → archive-52ZHbFDm2.mjs} +2 -2
- package/dist/{archive-eS-XA74p.mjs → archive-B51prFgS.mjs} +2 -2
- package/dist/{archive-CP5Hlqjw.mjs → archive-BkITQyWW.mjs} +2 -2
- package/dist/{archive-DPL1qOuL.mjs → archive-CISXgZAI.mjs} +2 -2
- package/dist/{archive-BMyvyf62.mjs → archive-CdKf_Eqq.mjs} +2 -2
- package/dist/{archive-CqKqNdUh.mjs → archive-CicPYX27.mjs} +2 -2
- package/dist/{archive-DKFPJ9j3.mjs → archive-CwITzj_j.mjs} +2 -2
- package/dist/{archive-BGiDxu8O.mjs → archive-DA3OiLEE.mjs} +2 -2
- package/dist/{archive-DBcxZwLd.mjs → archive-DVHxeDKS.mjs} +2 -2
- package/dist/{archive-C4Y2B58q.mjs → archive-DckxlWBt.mjs} +2 -2
- package/dist/{archive-Czo5T0Lp.mjs → archive-cAdUa1-2.mjs} +2 -2
- package/dist/{auth-6YyB0HNB.mjs → auth-A96JOCQx.mjs} +4 -4
- package/dist/{body-OjAWKVaU.mjs → body-CshgcV6U.mjs} +2 -2
- package/dist/{branches-D5YLVFDK.mjs → branches-CbcwWYL9.mjs} +1 -1
- package/dist/{cancel-DeRIq1YJ.mjs → cancel-DpDcVY7M.mjs} +2 -2
- package/dist/{cancel-task-CqExODVm.mjs → cancel-task-B4RDvIYb.mjs} +1 -1
- package/dist/{card-BMSqofd7.mjs → card-CefVYtF7.mjs} +7 -7
- package/dist/{cards-B813G9I5.mjs → cards-BC0JX8Yg.mjs} +2 -2
- package/dist/cli.mjs +43 -33
- package/dist/{client-cJ7aw0Gt.mjs → client-ClL6gf7G.mjs} +4 -313
- package/dist/{collection-BfNg7tEg.mjs → collection-Be5AHVWP.mjs} +6 -6
- package/dist/{collection-namespace-CVzDgJV0.mjs → collection-namespace-Dv0l-V9K.mjs} +1 -1
- package/dist/{content-translation-QKWt9l76.mjs → content-translation-BXIXL4eW.mjs} +2 -2
- package/dist/{create-CWGsiFvU.mjs → create--fiwuTWc.mjs} +2 -2
- package/dist/{create-DEBgYRlM.mjs → create-B9qXQ_wV.mjs} +2 -2
- package/dist/{create-CvIeb1NU.mjs → create-BVNhtAgF.mjs} +3 -3
- package/dist/{create-BWp6L_dW.mjs → create-BbjSOTN-.mjs} +3 -3
- package/dist/{create-DmKwDQCY2.mjs → create-BcsVwXgS2.mjs} +2 -2
- package/dist/{create-BLiB2xqo.mjs → create-Bryrkb9g.mjs} +2 -2
- package/dist/{create-DJm0YuLW.mjs → create-CHr8MPPq.mjs} +2 -2
- package/dist/{create-BJad6MR82.mjs → create-D--Z1S3p2.mjs} +4 -4
- package/dist/{create-CMV3qlzJ.mjs → create-DWFJdyIr.mjs} +2 -2
- package/dist/{create-CvpeAcFc.mjs → create-Dhai9zAt.mjs} +2 -2
- package/dist/{create-uanpKsPo.mjs → create-DiJ8bUb-.mjs} +3 -3
- package/dist/{create-Bef5eBCA.mjs → create-DmN2gFc4.mjs} +2 -2
- package/dist/{create-D50TxVTk.mjs → create-NCKHHdov.mjs} +1 -1
- package/dist/{create-CoFg1p6m.mjs → create-YetX69Re.mjs} +2 -2
- package/dist/{create-4UnoQvsy.mjs → create-Za1EskpV.mjs} +3 -3
- package/dist/{create-branch-BN5iH-GM.mjs → create-branch-CseVn3lp.mjs} +1 -1
- package/dist/{create-bvpl6Fn5.mjs → create-kZIIEN2Y.mjs} +3 -3
- package/dist/{csv-BhuX9fwh.mjs → csv-DNzesu8y.mjs} +3 -3
- package/dist/{current-task-BMt2NeqV.mjs → current-task-DRTKZcP9.mjs} +2 -2
- package/dist/{dashboard-Ct_ajSYI.mjs → dashboard-CMw13KXM.mjs} +9 -9
- package/dist/{db-B_LW2VE-.mjs → db-BDijt81U.mjs} +6 -6
- package/dist/{delete-CowGO4rh.mjs → delete--15it-A8.mjs} +2 -2
- package/dist/{delete-DZ_ICQug.mjs → delete-Bsdwqh7H.mjs} +2 -2
- package/dist/{delete-BOcPK_H9.mjs → delete-BudvZkvK.mjs} +2 -2
- package/dist/{delete-D2bUV6uo.mjs → delete-BxjJ66BS.mjs} +2 -2
- package/dist/{delete-Ur7b11no.mjs → delete-Dc8E5YwZ.mjs} +2 -2
- package/dist/{delete-table-Dd8X573t.mjs → delete-table-5AQpn8OB.mjs} +2 -2
- package/dist/{delete-D0f7VatX.mjs → delete-wFsy80db.mjs} +2 -2
- package/dist/{dependencies-XDVLBwko.mjs → dependencies-C1ogC3BV.mjs} +2 -2
- package/dist/{dirty-k-JmGLsS.mjs → dirty-CSLDYO-K.mjs} +1 -1
- package/dist/{document-BW9iow8R.mjs → document-BGzVip5_.mjs} +5 -5
- package/dist/{download-CQjPIYDO.mjs → download-Ddap1OAo.mjs} +1 -1
- package/dist/{eid-CNTKDgwj.mjs → eid-HnrWhPoe.mjs} +2 -2
- package/dist/{events-BshWlkDp.mjs → events-CXqetjcS.mjs} +2 -2
- package/dist/{export-Dq6ecU8h.mjs → export-IFZdgYZ2.mjs} +3 -3
- package/dist/{field-Bo2ISMO4.mjs → field-BJ6HoLRd.mjs} +4 -4
- package/dist/{fields-CVctqn5G.mjs → fields-DxHxuxwO.mjs} +2 -2
- package/dist/{get-Bl3OmlBP.mjs → get-B2pj2q3X.mjs} +2 -2
- package/dist/{get-BD81MHl_.mjs → get-BF2vdF3W.mjs} +2 -2
- package/dist/{get-Dw7jAno3.mjs → get-BGLvyOO3.mjs} +2 -2
- package/dist/{get-CrpwxWOV.mjs → get-BcoJ9Aha.mjs} +2 -2
- package/dist/{get-Df6cGHCM.mjs → get-BiPclcIP.mjs} +2 -2
- package/dist/{get-wjIgUlNl.mjs → get-C3cuZNeW.mjs} +2 -2
- package/dist/{get-RslzBaXx.mjs → get-CDnmpfHQ.mjs} +1 -1
- package/dist/{get-PWhOdz1z.mjs → get-CE9_4Q7E.mjs} +1 -1
- package/dist/{get-Dr-U321T2.mjs → get-C_tdSMwW2.mjs} +2 -2
- package/dist/{get-B4RgW-VT.mjs → get-CxUQyhte.mjs} +2 -2
- package/dist/{get-CTPvdcud.mjs → get-DW7mCaGe.mjs} +2 -2
- package/dist/{get-C5sWciaE.mjs → get-D_x-ENFe.mjs} +2 -2
- package/dist/{get-D4oGhZWX.mjs → get-DjlQhgD4.mjs} +2 -2
- package/dist/{get-BvgEF--n.mjs → get-DmKtPNOy.mjs} +2 -2
- package/dist/{get-DfMVlz64.mjs → get-Dtre5jzh.mjs} +1 -1
- package/dist/{get-CO6X4nZH.mjs → get-H6kInHIx.mjs} +3 -3
- package/dist/{get-7xTeNGAo.mjs → get-b0CoPz5B.mjs} +2 -2
- package/dist/{get-8b5Sh50q.mjs → get-eJilYnHk.mjs} +2 -2
- package/dist/{get-BtTetWzm.mjs → get-i0KInCw9.mjs} +3 -3
- package/dist/{get-BvSA_mmf.mjs → get-jofVjU6e.mjs} +2 -2
- package/dist/{get-run-CZdDqfUj.mjs → get-run-BE1HtJDW.mjs} +2 -2
- package/dist/git-sync-xKC1sqC4.mjs +28 -0
- package/dist/{has-remote-changes-i-3MVxat.mjs → has-remote-changes-Cj1KhBOT.mjs} +1 -1
- package/dist/{import-DWEKejya.mjs → import-DLb9VN4l.mjs} +3 -3
- package/dist/{input-DEvkIjGr.mjs → input-D5tQEfqN.mjs} +1 -1
- package/dist/{is-dirty-C5ipqd4v.mjs → is-dirty-BxtgV2xF.mjs} +1 -1
- package/dist/{items-hKJ2ZDwy.mjs → items-DLUYc5-z.mjs} +1 -1
- package/dist/{library-B7_04UVK.mjs → library-BNSxXOpc.mjs} +4 -4
- package/dist/{list-DKZnQ4Ts.mjs → list-B1soS8QW.mjs} +1 -1
- package/dist/{list-D6tTvYUP.mjs → list-BQnOEB3W.mjs} +1 -1
- package/dist/{list-CjNXskB4.mjs → list-BUz6KOfw.mjs} +1 -1
- package/dist/{list-CmFh1GQ_.mjs → list-BcP1DTJH.mjs} +1 -1
- package/dist/{list-eKDT1XXk.mjs → list-C5mS_ehX.mjs} +3 -3
- package/dist/{list-DfRqNH1N.mjs → list-CBLxhaNZ.mjs} +1 -1
- package/dist/{list-Bs7_Rysg.mjs → list-CERbeLbQ.mjs} +1 -1
- package/dist/{list-Cen-7uTo.mjs → list-COLpwXW4.mjs} +1 -1
- package/dist/{list-VNC-_E59.mjs → list-CQbiSx26.mjs} +1 -1
- package/dist/{list-DKcC4cm0.mjs → list-CX9qZ-bx.mjs} +1 -1
- package/dist/{list-B-9QOX9Y.mjs → list-CehE6KBV.mjs} +1 -1
- package/dist/{list-CHuhMXet.mjs → list-Cuhf2lKL.mjs} +2 -2
- package/dist/{list-CgH-H-O6.mjs → list-CzRzCbCY.mjs} +1 -1
- package/dist/{list-6myofqMv.mjs → list-D-SyhKFw.mjs} +2 -2
- package/dist/{list-CLZU_EOf.mjs → list-Dat8QNcf.mjs} +1 -1
- package/dist/{list-DI820W6w.mjs → list-M8J10Ozk.mjs} +1 -1
- package/dist/{list-oX2SMzxZ.mjs → list-Sd7jGZoX.mjs} +1 -1
- package/dist/{list-DjwnsyXM.mjs → list-cIMww2Me.mjs} +3 -3
- package/dist/{list-1vdClKSE.mjs → list-jhQSgh6i.mjs} +1 -1
- package/dist/{login-DumZaWXK.mjs → login-BfLqBfCd.mjs} +6 -6
- package/dist/{logout-BsXPRc-3.mjs → logout-BpRXB3Ze.mjs} +2 -2
- package/dist/{measure-BFxkbAoa.mjs → measure-Ds8O5Evr.mjs} +5 -5
- package/dist/{parameter-values-CoF9Hx1p.mjs → parameter-values-DhrkLXoN.mjs} +2 -2
- package/dist/{parse-id-DmFJgpY6.mjs → parse-id-DtM6q9HU.mjs} +1 -1
- package/dist/{path-BQ4lRDyN.mjs → path-_GHFrTLx.mjs} +2 -2
- package/dist/{poll-CZeXepUQ.mjs → poll-KLl4Eq8Y.mjs} +2 -2
- package/dist/{preflight-BTQe4swo.mjs → preflight-BpYtF0IU.mjs} +3 -3
- package/dist/{process-CTrfxxaC.mjs → process-CLtOWKBn.mjs} +1 -1
- package/dist/{publish-CFB2Cc5A.mjs → publish-D-7Zlmuk.mjs} +3 -3
- package/dist/{query-BJbUnAHf.mjs → query-B1CZztxs.mjs} +2 -2
- package/dist/{query-CV2KCS5O.mjs → query-CxESKMve.mjs} +4 -4
- package/dist/{remove-collection-D3yvKH3e.mjs → remove-collection-C4saCFxz.mjs} +2 -2
- package/dist/{render-BJRCs7rA.mjs → render-6O_eF-P1.mjs} +2 -2
- package/dist/{replace-uj4WTqx_.mjs → replace-BuR4f2Ai.mjs} +3 -3
- package/dist/{rescan-values-CzxQU318.mjs → rescan-values-CNOiiWQ5.mjs} +2 -2
- package/dist/{run-B2f_omHu.mjs → run-DijA_BXt.mjs} +2 -2
- package/dist/{run-DlO1J1Sx.mjs → run-FmRruANb.mjs} +21 -7
- package/dist/{run-yX2dtmE5.mjs → run-QEUbWNm7.mjs} +7 -7
- package/dist/{runs-DzUO45wU.mjs → runs-BSlhVeDO.mjs} +2 -2
- package/dist/{runtime-arKqJqIT.mjs → runtime-Dtb93zKy.mjs} +2 -2
- package/dist/{schema-tables-DZCNzuQ6.mjs → schema-tables-BE3rEb6I.mjs} +2 -2
- package/dist/{schemas-2ejqaVsG.mjs → schemas-yDjBiwlH.mjs} +2 -2
- package/dist/{search-DcihauDZ.mjs → search-CR_xNArA.mjs} +2 -2
- package/dist/{segment-BQT2poPG.mjs → segment-Cm6zQjJW.mjs} +5 -5
- package/dist/{selectors-BzestDld.mjs → selectors-C-vgMcGK.mjs} +2 -2
- package/dist/{send-DMxoLFo7.mjs → send-kC8oerkT.mjs} +2 -2
- package/dist/{set-active-RrvWR9NY.mjs → set-active-lDKhAlij.mjs} +1 -1
- package/dist/{set-CDmiD0vv.mjs → set-tFhPkxrL.mjs} +2 -2
- package/dist/{setting-BiBLCcxz.mjs → setting-DrJXCaFE.mjs} +3 -3
- package/dist/{setup-DYsTzkWO.mjs → setup-BWY9M0iR.mjs} +2 -2
- package/dist/{signal-k7cm5N6h.mjs → signal-Csom0mt5.mjs} +1 -1
- package/dist/{skill-list-D9_1Pmt7.mjs → skill-list-CCes8pKe.mjs} +1 -1
- package/dist/{skills-BPHXUfeL.mjs → skills-DE9ej5Rg.mjs} +2 -2
- package/dist/{skills-C3bxxC6a.mjs → skills-DPRN2384.mjs} +3 -3
- package/dist/{snippet-BtfxE60H.mjs → snippet-DWHTSo9c.mjs} +5 -5
- package/dist/{stash-DdheS0Ad.mjs → stash-C9oDvQ9P.mjs} +3 -3
- package/dist/{status-CXouQJ31.mjs → status-CkpujA26.mjs} +2 -2
- package/dist/{status-BuIzXRX1.mjs → status-DSdXmNC3.mjs} +2 -2
- package/dist/{subscription-CJ8Igs1U.mjs → subscription-DKOKoHRG.mjs} +5 -5
- package/dist/{subscriptions-D0NpGvCQ.mjs → subscriptions-C5SyJL4B.mjs} +3 -3
- package/dist/{summary-D04S8gGj.mjs → summary-DTPgXsc0.mjs} +2 -2
- package/dist/{sync-schema-DrA5zkdl.mjs → sync-schema-DKKkNSR7.mjs} +3 -3
- package/dist/{sync-task-BXeWuARG.mjs → sync-task-BtDnTXCP.mjs} +2 -1
- package/dist/{table-Dntbz7Q2.mjs → table-I8NXSdUC.mjs} +4 -4
- package/dist/{timeline-8jwsldo3.mjs → timeline-B_ESH-6W.mjs} +7 -7
- package/dist/{timeline-event-BbB1xEdI.mjs → timeline-event-n4Lzet7l.mjs} +5 -5
- package/dist/transform-BNuNiH9d.mjs +28 -0
- package/dist/transform-job-B7yc6dfH.mjs +22 -0
- package/dist/{transform-tag-PjryheLF.mjs → transform-tag-D6NXqWaX.mjs} +4 -4
- package/dist/{transform-test-DSTkKKNC.mjs → transform-test-C1Oqtfb-.mjs} +6 -6
- package/dist/{transforms-CijX3VE7.mjs → transforms-O4NtXqFz.mjs} +2 -2
- package/dist/transport-CyVo29u7.mjs +313 -0
- package/dist/{tree-Cmb3O6rH.mjs → tree-CuyF116R.mjs} +1 -1
- package/dist/{unpublish-DkP_AcK5.mjs → unpublish-DvWefKJi.mjs} +2 -2
- package/dist/{update-FCP5Lop2.mjs → update-2KIpYgyj.mjs} +3 -3
- package/dist/{update-8UmD1prT.mjs → update-76nzOc71.mjs} +3 -3
- package/dist/{update-D9kOTr0n.mjs → update-7oKvP1HC.mjs} +4 -4
- package/dist/{update-D6Zzvc7F.mjs → update-AJ2JmwDl.mjs} +3 -3
- package/dist/{update-CtLbFCd_.mjs → update-BB6Go_RX.mjs} +3 -3
- package/dist/{update-C91m9YAR.mjs → update-Bah7N8QX.mjs} +4 -4
- package/dist/{update-D8htjzNJ.mjs → update-CGJvIS-l.mjs} +3 -3
- package/dist/{update-BrXGg3QO.mjs → update-D7dG7H-z.mjs} +4 -4
- package/dist/{update-BFyRBc-H.mjs → update-DOdcflLH.mjs} +4 -4
- package/dist/{update-KSHnb6vB.mjs → update-DV54H3L5.mjs} +5 -5
- package/dist/{update-DPTio6i1.mjs → update-DXmZuJho.mjs} +3 -3
- package/dist/{update-Dz47cKBk.mjs → update-DmgRIp7o.mjs} +3 -3
- package/dist/{update-DlWB9s0v.mjs → update-H_fdjugs.mjs} +3 -3
- package/dist/{update-DubrpPbz.mjs → update-To6A1Ugu.mjs} +3 -3
- package/dist/{update-dashcard-BlibHa5o.mjs → update-dashcard-DjT5QOkL.mjs} +3 -3
- package/dist/{update-Ci8YL4_2.mjs → update-l3PyNQKG.mjs} +4 -4
- package/dist/{update-COcx61Ur.mjs → update-xEegxIyH.mjs} +3 -3
- package/dist/{upgrade-EwL6wPSY.mjs → upgrade-CuJx9fX4.mjs} +4 -4
- package/dist/{upload-BZshRJIM.mjs → upload-2YFFBSln.mjs} +3 -3
- package/dist/{upload-D0KaTqUE.mjs → upload-CboARPZm.mjs} +2 -2
- package/dist/{upload-Do2PBSeH.mjs → upload-DOO94rCQ.mjs} +2 -2
- package/dist/{uuid-DjKLDIVE.mjs → uuid-InwZlrpQ.mjs} +1 -1
- package/dist/{validate-xR_MHBNR.mjs → validate-D6-Vg_kn.mjs} +1 -1
- package/dist/{validate-query-D6_ad-Gi.mjs → validate-query-B90KYPQr.mjs} +1 -1
- package/dist/{values-Dc9612_L.mjs → values-CsZLk1Ls.mjs} +2 -2
- package/dist/{verify-DVN1eqXZ.mjs → verify-DrGjZwBM.mjs} +3 -3
- package/dist/{wait-C-ovOTAZ.mjs → wait-BmzdarP9.mjs} +4 -4
- package/dist/{wait-flags-BQNmuvIj.mjs → wait-flags-CiJGrTCT.mjs} +2 -2
- package/package.json +1 -1
- package/skill-data/core/SKILL.md +1 -1
- package/skill-data/transform/SKILL.md +5 -5
- package/skill-data/transform-test-plan/references/checks.md +3 -0
- package/dist/git-sync-BmoRk0UV.mjs +0 -28
- package/dist/transform-job-B-1YAbvy.mjs +0 -22
- package/dist/transform-m6s4kkWU.mjs +0 -28
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Q as ConfigError, et as InternalError, it as TimeoutError, rt as ResponseShapeError, st as errorMessage } from "./cli.mjs";
|
|
2
2
|
import { n as Notification, r as NotificationCardPayload, t as CARD_PAYLOAD_TYPE } from "./notification-DaA4bBHW.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { n as
|
|
3
|
+
import { H as parseJsonOrPlain, L as HttpError } from "./runtime-Dtb93zKy.mjs";
|
|
4
|
+
import { n as createTransport } from "./transport-CyVo29u7.mjs";
|
|
5
5
|
import { a as FieldSearchMatches, i as FieldRemappedValue, l as FieldValues, n as FieldBaseType, o as FieldSemanticType, t as Field } from "./field-CcN4oZy6.mjs";
|
|
6
6
|
import { a as TemporalUnit, r as ParameterValues } from "./parameter-Celg0wZa.mjs";
|
|
7
7
|
import { a as CardQueryResult, l as DatasetQuery, s as CardType, t as Card } from "./card-voh1k4hl.mjs";
|
|
@@ -11,7 +11,7 @@ import { t as Snippet } from "./snippet-CyKAgIZl.mjs";
|
|
|
11
11
|
import { c as CollectionItem, i as CollectionAuthorityLevel, m as CollectionTreeNode, r as Collection, s as CollectionId } from "./collection-BxdPxD38.mjs";
|
|
12
12
|
import { t as ContentTranslationUploadResult } from "./content-translation-BrHOrmj9.mjs";
|
|
13
13
|
import { a as DashboardDetail, c as Dashcard, r as DashboardCopy, t as Dashboard } from "./dashboard-D0hwTC-f.mjs";
|
|
14
|
-
import { r as pollUntil } from "./poll-
|
|
14
|
+
import { r as pollUntil } from "./poll-KLl4Eq8Y.mjs";
|
|
15
15
|
import { t as Document } from "./document-BHpLJbKU.mjs";
|
|
16
16
|
import { i as EidTranslateResult } from "./eid-translation-zEHtr5Oc.mjs";
|
|
17
17
|
import { c as SyncSettingsUpdateResult, i as SyncExportPreflight, n as SyncDirtyItem, p as isSyncTaskTerminal, s as SyncRemoteChanges, t as SyncBranchCreated, u as SyncTask } from "./git-sync-BwBRmEhE.mjs";
|
|
@@ -29,7 +29,6 @@ import { t as TransformTag } from "./transform-tag-CcElGp3C.mjs";
|
|
|
29
29
|
import { i as TransformTestRunResult, t as TransformTest } from "./transform-test-BjjCQ2xm.mjs";
|
|
30
30
|
import { t as UploadResult } from "./upload-DAtxBBms.mjs";
|
|
31
31
|
import { z } from "zod";
|
|
32
|
-
import { setTimeout } from "node:timers/promises";
|
|
33
32
|
//#region \0rolldown/runtime.js
|
|
34
33
|
var __defProp = Object.defineProperty;
|
|
35
34
|
var __exportAll = (all, no_symbols) => {
|
|
@@ -42,314 +41,6 @@ var __exportAll = (all, no_symbols) => {
|
|
|
42
41
|
return target;
|
|
43
42
|
};
|
|
44
43
|
//#endregion
|
|
45
|
-
//#region ../client/src/http/response-shape.ts
|
|
46
|
-
async function parseJsonResponse(text, schema, context) {
|
|
47
|
-
try {
|
|
48
|
-
return parseJson(text, schema, { source: context.url });
|
|
49
|
-
} catch (error) {
|
|
50
|
-
if (error instanceof ValidationError) throw ResponseShapeError.fromZodIssues({
|
|
51
|
-
kind: "zod",
|
|
52
|
-
method: context.method,
|
|
53
|
-
url: context.url,
|
|
54
|
-
status: context.status,
|
|
55
|
-
zodIssues: error.developerDetail.zodIssues,
|
|
56
|
-
serverTag: await context.getServerTag(),
|
|
57
|
-
serverSkew: context.serverSkew
|
|
58
|
-
});
|
|
59
|
-
throw error;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region ../client/src/http/retry.ts
|
|
64
|
-
const BASE_DELAY_MS = 250;
|
|
65
|
-
const MAX_DELAY_MS = 8e3;
|
|
66
|
-
const MS_PER_SECOND = 1e3;
|
|
67
|
-
function backoffDelay({ attempt, retryAfterHeader }) {
|
|
68
|
-
const fromHeader = parseRetryAfter(retryAfterHeader);
|
|
69
|
-
if (fromHeader !== null) return fromHeader;
|
|
70
|
-
return Math.min(MAX_DELAY_MS, BASE_DELAY_MS * 2 ** attempt);
|
|
71
|
-
}
|
|
72
|
-
function parseRetryAfter(header) {
|
|
73
|
-
if (!header) return null;
|
|
74
|
-
const numeric = Number(header);
|
|
75
|
-
if (Number.isFinite(numeric) && numeric >= 0) return Math.round(numeric * MS_PER_SECOND);
|
|
76
|
-
const dateMs = Date.parse(header);
|
|
77
|
-
if (Number.isFinite(dateMs)) return Math.max(0, dateMs - Date.now());
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
function sleep(ms, signal) {
|
|
81
|
-
return setTimeout(ms, void 0, { signal });
|
|
82
|
-
}
|
|
83
|
-
async function runWithRetries(attempt, signal) {
|
|
84
|
-
let attemptIndex = 0;
|
|
85
|
-
while (true) {
|
|
86
|
-
const outcome = await attempt(attemptIndex);
|
|
87
|
-
if (outcome.kind === "success") return outcome.response;
|
|
88
|
-
await sleep(outcome.delayMs, signal);
|
|
89
|
-
attemptIndex += 1;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region ../client/src/http/transport.ts
|
|
94
|
-
const UNAUTHORIZED_STATUS = 401;
|
|
95
|
-
const DEFAULT_TIMEOUT_MS = 3e4;
|
|
96
|
-
const OCTET_STREAM_CONTENT_TYPE = "application/octet-stream";
|
|
97
|
-
const TEXT_CONTENT_TYPE_PREFIX = "text/";
|
|
98
|
-
const ERROR_BODY_BYTE_CAP = 64 * 1024;
|
|
99
|
-
const IDEMPOTENT_METHODS = /* @__PURE__ */ new Set([
|
|
100
|
-
"GET",
|
|
101
|
-
"HEAD",
|
|
102
|
-
"OPTIONS"
|
|
103
|
-
]);
|
|
104
|
-
function createTransport(config, options) {
|
|
105
|
-
const baseUrl = normalizeUrl(config.url);
|
|
106
|
-
assertCredentialHeaderSafe(config.credential);
|
|
107
|
-
const fetchImpl = options.fetchImpl ?? globalThis.fetch.bind(globalThis);
|
|
108
|
-
let settledProfile = options.server ?? null;
|
|
109
|
-
const getServerTag = options.getServerTag ?? (async () => tagOf(settledProfile));
|
|
110
|
-
const serverSkew = () => settledProfile === null ? null : settledProfile.skew;
|
|
111
|
-
const refreshCredential = options.refreshCredential;
|
|
112
|
-
let credential = config.credential;
|
|
113
|
-
const knownSecrets = new Set(credentialSecrets(credential));
|
|
114
|
-
const redactionContext = { knownSecrets };
|
|
115
|
-
let refreshInFlight = null;
|
|
116
|
-
function tryRefreshCredential() {
|
|
117
|
-
const refresh = refreshCredential;
|
|
118
|
-
if (credential.kind !== "oauth" || refresh === void 0) return Promise.resolve(false);
|
|
119
|
-
refreshInFlight ??= refreshOnce(refresh).finally(() => {
|
|
120
|
-
refreshInFlight = null;
|
|
121
|
-
});
|
|
122
|
-
return refreshInFlight;
|
|
123
|
-
}
|
|
124
|
-
async function refreshOnce(refresh) {
|
|
125
|
-
const next = await refresh();
|
|
126
|
-
if (next === null) return false;
|
|
127
|
-
credential = next;
|
|
128
|
-
for (const secret of credentialSecrets(next)) knownSecrets.add(secret);
|
|
129
|
-
return true;
|
|
130
|
-
}
|
|
131
|
-
async function attemptOnce(prepared, attempt) {
|
|
132
|
-
const hasRetriesLeft = attempt < prepared.retries;
|
|
133
|
-
const timeoutSignal = AbortSignal.timeout(prepared.timeoutMs);
|
|
134
|
-
const combined = combineAborts(timeoutSignal, prepared.cancelSignal);
|
|
135
|
-
let response;
|
|
136
|
-
try {
|
|
137
|
-
response = await fetchImpl(prepared.url, {
|
|
138
|
-
method: prepared.method,
|
|
139
|
-
headers: prepared.headers,
|
|
140
|
-
body: prepared.body,
|
|
141
|
-
signal: combined
|
|
142
|
-
});
|
|
143
|
-
} catch (error) {
|
|
144
|
-
throwIfAborted(prepared.cancelSignal);
|
|
145
|
-
const isStaleSocketFirstTry = attempt === 0 && isConnectionClosed(error);
|
|
146
|
-
if (prepared.idempotent && (hasRetriesLeft || isStaleSocketFirstTry)) return {
|
|
147
|
-
kind: "retry",
|
|
148
|
-
delayMs: backoffDelay({ attempt })
|
|
149
|
-
};
|
|
150
|
-
if (timeoutSignal.aborted) throw new TimeoutError(`Request timed out after ${prepared.timeoutMs}ms`, {
|
|
151
|
-
kind: "http",
|
|
152
|
-
method: prepared.method,
|
|
153
|
-
url: prepared.url,
|
|
154
|
-
timeoutMs: prepared.timeoutMs
|
|
155
|
-
});
|
|
156
|
-
throw buildNetworkError(error, prepared.method, prepared.url);
|
|
157
|
-
}
|
|
158
|
-
const canRetryStatus = hasRetriesLeft && prepared.idempotent;
|
|
159
|
-
if (!response.ok && isRetryableStatus(response.status) && canRetryStatus) {
|
|
160
|
-
const retryAfter = response.headers.get("Retry-After");
|
|
161
|
-
response.body?.cancel().catch(() => void 0);
|
|
162
|
-
return {
|
|
163
|
-
kind: "retry",
|
|
164
|
-
delayMs: backoffDelay({
|
|
165
|
-
attempt,
|
|
166
|
-
retryAfterHeader: retryAfter
|
|
167
|
-
})
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
if (!response.ok) {
|
|
171
|
-
const rawBody = await readBodyForError(response);
|
|
172
|
-
const serverTag = await getServerTag();
|
|
173
|
-
throw new HttpError({
|
|
174
|
-
status: response.status,
|
|
175
|
-
statusText: response.statusText,
|
|
176
|
-
method: prepared.method,
|
|
177
|
-
url: prepared.url,
|
|
178
|
-
responseHeaders: response.headers,
|
|
179
|
-
rawBody,
|
|
180
|
-
serverTag,
|
|
181
|
-
redactionContext
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
assertContentType(response, prepared);
|
|
185
|
-
return {
|
|
186
|
-
kind: "success",
|
|
187
|
-
response
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
async function executeRaw(prepared) {
|
|
191
|
-
try {
|
|
192
|
-
return await runWithRetries((attempt) => attemptOnce(prepared, attempt), prepared.cancelSignal);
|
|
193
|
-
} catch (error) {
|
|
194
|
-
throwIfAborted(prepared.cancelSignal);
|
|
195
|
-
throw error;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
async function executeWithAuthRefresh(path, opts) {
|
|
199
|
-
const prepared = prepare(path, opts);
|
|
200
|
-
try {
|
|
201
|
-
return {
|
|
202
|
-
response: await executeRaw(prepared),
|
|
203
|
-
prepared
|
|
204
|
-
};
|
|
205
|
-
} catch (error) {
|
|
206
|
-
if (error instanceof HttpError && error.status === UNAUTHORIZED_STATUS) {
|
|
207
|
-
if (await tryRefreshCredential()) {
|
|
208
|
-
const retried = prepare(path, opts);
|
|
209
|
-
return {
|
|
210
|
-
response: await executeRaw(retried),
|
|
211
|
-
prepared: retried
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
throw error;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
function prepare(path, opts = {}) {
|
|
219
|
-
const method = opts.method ?? "GET";
|
|
220
|
-
const expectContentType = opts.expectContentType ?? "json";
|
|
221
|
-
const url = buildUrl(baseUrl, path, opts.query);
|
|
222
|
-
const headers = new Headers();
|
|
223
|
-
const auth = credentialAuthHeader(credential);
|
|
224
|
-
headers.set(auth.name, auth.value);
|
|
225
|
-
headers.set("accept", acceptHeader(expectContentType));
|
|
226
|
-
headers.set("user-agent", options.userAgent);
|
|
227
|
-
let body = null;
|
|
228
|
-
if (opts.body !== void 0 && opts.body !== null) if (typeof opts.body === "string" || opts.body instanceof URLSearchParams) body = opts.body;
|
|
229
|
-
else if (opts.body instanceof FormData || opts.body instanceof ReadableStream) body = opts.body;
|
|
230
|
-
else if (opts.body instanceof Uint8Array) {
|
|
231
|
-
body = opts.body;
|
|
232
|
-
headers.set("content-type", OCTET_STREAM_CONTENT_TYPE);
|
|
233
|
-
} else {
|
|
234
|
-
body = JSON.stringify(opts.body);
|
|
235
|
-
headers.set("content-type", JSON_CONTENT_TYPE);
|
|
236
|
-
}
|
|
237
|
-
return {
|
|
238
|
-
url,
|
|
239
|
-
method,
|
|
240
|
-
headers,
|
|
241
|
-
body,
|
|
242
|
-
expectContentType,
|
|
243
|
-
retries: opts.retries ?? 3,
|
|
244
|
-
idempotent: opts.idempotent ?? IDEMPOTENT_METHODS.has(method),
|
|
245
|
-
timeoutMs: opts.timeoutMs ?? DEFAULT_TIMEOUT_MS,
|
|
246
|
-
cancelSignal: combineAborts(opts.signal, options.signal)
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
let serverProfile = options.server === void 0 ? null : Promise.resolve(options.server);
|
|
250
|
-
async function server(wait = {}) {
|
|
251
|
-
throwIfAborted(wait.signal);
|
|
252
|
-
if (serverProfile === null) {
|
|
253
|
-
const probe = probeServer(transport).then((info) => {
|
|
254
|
-
settledProfile = createServerProfile(info);
|
|
255
|
-
return settledProfile;
|
|
256
|
-
});
|
|
257
|
-
probe.catch(() => {
|
|
258
|
-
serverProfile = null;
|
|
259
|
-
});
|
|
260
|
-
serverProfile = probe;
|
|
261
|
-
}
|
|
262
|
-
return untilAborted(serverProfile, wait.signal);
|
|
263
|
-
}
|
|
264
|
-
const enforceRequirements = options.enforceRequirements ?? true;
|
|
265
|
-
async function requireFeatures(features, wait = {}) {
|
|
266
|
-
if (!enforceRequirements || features.length === 0) return;
|
|
267
|
-
const failure = checkFeatures(features, await server(wait));
|
|
268
|
-
if (failure !== null) throw new CapabilityError(failure);
|
|
269
|
-
}
|
|
270
|
-
async function requireMethod(key, wait = {}) {
|
|
271
|
-
return requireFeatures(methodRequirements(key), wait);
|
|
272
|
-
}
|
|
273
|
-
const transport = {
|
|
274
|
-
server,
|
|
275
|
-
require: requireMethod,
|
|
276
|
-
requireFeatures,
|
|
277
|
-
async requestRaw(path, opts) {
|
|
278
|
-
return (await executeWithAuthRefresh(path, opts ?? {})).response;
|
|
279
|
-
},
|
|
280
|
-
async requestParsed(schema, path, opts) {
|
|
281
|
-
const { response, prepared } = await executeWithAuthRefresh(path, {
|
|
282
|
-
...opts,
|
|
283
|
-
expectContentType: "json"
|
|
284
|
-
});
|
|
285
|
-
return parseJsonResponse(await response.text(), schema, {
|
|
286
|
-
method: prepared.method,
|
|
287
|
-
url: prepared.url,
|
|
288
|
-
status: response.status,
|
|
289
|
-
getServerTag,
|
|
290
|
-
serverSkew: serverSkew()
|
|
291
|
-
});
|
|
292
|
-
},
|
|
293
|
-
async requestStream(path, opts) {
|
|
294
|
-
const { response, prepared } = await executeWithAuthRefresh(path, {
|
|
295
|
-
...opts,
|
|
296
|
-
expectContentType: opts?.expectContentType ?? "binary"
|
|
297
|
-
});
|
|
298
|
-
if (!response.body) throw new NetworkError("Response had no body to stream", {
|
|
299
|
-
method: prepared.method,
|
|
300
|
-
url: prepared.url,
|
|
301
|
-
cause: "missing body"
|
|
302
|
-
});
|
|
303
|
-
return response.body;
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
return transport;
|
|
307
|
-
}
|
|
308
|
-
function tagOf(profile) {
|
|
309
|
-
return profile === null ? null : profile.version.tag;
|
|
310
|
-
}
|
|
311
|
-
function buildUrl(baseUrl, path, query) {
|
|
312
|
-
const normalizedPath = path.startsWith("/") ? path : `/${path}`;
|
|
313
|
-
const target = new URL(baseUrl + normalizedPath);
|
|
314
|
-
if (query) for (const [key, value] of Object.entries(query)) {
|
|
315
|
-
if (value === void 0) continue;
|
|
316
|
-
if (Array.isArray(value)) for (const entry of value) target.searchParams.append(key, String(entry));
|
|
317
|
-
else target.searchParams.append(key, String(value));
|
|
318
|
-
}
|
|
319
|
-
return target.toString();
|
|
320
|
-
}
|
|
321
|
-
function acceptHeader(expected) {
|
|
322
|
-
if (expected === "json") return JSON_CONTENT_TYPE;
|
|
323
|
-
if (expected === "text") return "text/*";
|
|
324
|
-
return "*/*";
|
|
325
|
-
}
|
|
326
|
-
function assertContentType(response, prepared) {
|
|
327
|
-
if (prepared.expectContentType === "binary") return;
|
|
328
|
-
const contentType = response.headers.get("content-type");
|
|
329
|
-
if (contentType === null) throwContentTypeMismatch(response, prepared, prepared.expectContentType);
|
|
330
|
-
if (prepared.expectContentType === "json" && !contentType.includes("application/json")) throwContentTypeMismatch(response, prepared, "json");
|
|
331
|
-
if (prepared.expectContentType === "text" && !contentType.startsWith(TEXT_CONTENT_TYPE_PREFIX)) throwContentTypeMismatch(response, prepared, "text");
|
|
332
|
-
}
|
|
333
|
-
function throwContentTypeMismatch(response, prepared, expected) {
|
|
334
|
-
const actual = response.headers.get("content-type") ?? "no content-type";
|
|
335
|
-
throw new HttpError({
|
|
336
|
-
status: response.status,
|
|
337
|
-
statusText: response.statusText,
|
|
338
|
-
method: prepared.method,
|
|
339
|
-
url: prepared.url,
|
|
340
|
-
responseHeaders: response.headers,
|
|
341
|
-
rawBody: null,
|
|
342
|
-
overrideUserMessage: `Expected ${expected} response but got ${actual}`
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
async function readBodyForError(response) {
|
|
346
|
-
try {
|
|
347
|
-
return Buffer.from(await response.arrayBuffer()).subarray(0, ERROR_BODY_BYTE_CAP).toString("utf8");
|
|
348
|
-
} catch (error) {
|
|
349
|
-
return `[body read failed: ${errorMessage(error)}]`;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
//#endregion
|
|
353
44
|
//#region ../client/src/domain/dataset.ts
|
|
354
45
|
const CompiledQuery = z.object({
|
|
355
46
|
query: z.union([z.string(), z.array(z.unknown())]),
|
|
@@ -8,12 +8,12 @@ var collection_default = defineCommandGroup({
|
|
|
8
8
|
purpose: "collection ref forms and the transforms namespace"
|
|
9
9
|
}],
|
|
10
10
|
subCommands: {
|
|
11
|
-
list: () => import("./list-
|
|
12
|
-
get: () => import("./get-
|
|
13
|
-
items: () => import("./items-
|
|
14
|
-
tree: () => import("./tree-
|
|
15
|
-
create: () => import("./create-
|
|
16
|
-
archive: () => import("./archive-
|
|
11
|
+
list: () => import("./list-B1soS8QW.mjs").then((mod) => mod.default),
|
|
12
|
+
get: () => import("./get-Dtre5jzh.mjs").then((mod) => mod.default),
|
|
13
|
+
items: () => import("./items-DLUYc5-z.mjs").then((mod) => mod.default),
|
|
14
|
+
tree: () => import("./tree-CuyF116R.mjs").then((mod) => mod.default),
|
|
15
|
+
create: () => import("./create-Bryrkb9g.mjs").then((mod) => mod.default),
|
|
16
|
+
archive: () => import("./archive-CISXgZAI.mjs").then((mod) => mod.default)
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Q as ConfigError } from "./cli.mjs";
|
|
2
|
-
import { L as HttpError } from "./runtime-
|
|
2
|
+
import { L as HttpError } from "./runtime-Dtb93zKy.mjs";
|
|
3
3
|
//#region src/commands/transform/collection-namespace.ts
|
|
4
4
|
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.";
|
|
5
5
|
function enrichTransformCollectionError(error) {
|
|
@@ -4,8 +4,8 @@ var content_translation_default = defineCommandGroup({
|
|
|
4
4
|
name: "content-translation",
|
|
5
5
|
description: "Download or replace the content translation dictionary",
|
|
6
6
|
subCommands: {
|
|
7
|
-
download: () => import("./download-
|
|
8
|
-
upload: () => import("./upload-
|
|
7
|
+
download: () => import("./download-Ddap1OAo.mjs").then((mod) => mod.default),
|
|
8
|
+
upload: () => import("./upload-CboARPZm.mjs").then((mod) => mod.default)
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
|
+
import { t as readBody } from "./body-CshgcV6U.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as TransformTagCreateInput, t as TransformTag } from "./transform-tag-CcElGp3C.mjs";
|
|
6
6
|
import { t as transformTagView } from "./transform-tag-Dmb4u3-Q.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
|
+
import { t as readBody } from "./body-CshgcV6U.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as DocumentCreateInput, t as Document } from "./document-BHpLJbKU.mjs";
|
|
6
6
|
import { t as documentView } from "./document-CA0Q6lqu.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
|
+
import { t as readBody } from "./body-CshgcV6U.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as CardCreateInput, t as Card } from "./card-voh1k4hl.mjs";
|
|
6
6
|
import { n as cardView } from "./card-CEkp1mcI.mjs";
|
|
7
|
-
import { a as preflightMbql5Query, o as skipValidateFlag, t as CARD_DATASET_QUERY_LABELS } from "./validate-query-
|
|
7
|
+
import { a as preflightMbql5Query, o as skipValidateFlag, t as CARD_DATASET_QUERY_LABELS } from "./validate-query-B90KYPQr.mjs";
|
|
8
8
|
//#region src/commands/card/create.ts
|
|
9
9
|
var create_default = defineMetabaseCommand({
|
|
10
10
|
meta: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
|
+
import { t as readBody } from "./body-CshgcV6U.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as MeasureCreateInput, t as Measure } from "./measure-CtfjqJFP.mjs";
|
|
6
|
-
import { a as preflightMbql5Query, n as MEASURE_DEFINITION_LABELS, o as skipValidateFlag } from "./validate-query-
|
|
6
|
+
import { a as preflightMbql5Query, n as MEASURE_DEFINITION_LABELS, o as skipValidateFlag } from "./validate-query-B90KYPQr.mjs";
|
|
7
7
|
import { t as measureView } from "./measure-4P0bOlZ3.mjs";
|
|
8
8
|
//#region src/commands/measure/create.ts
|
|
9
9
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
|
+
import { t as readBody } from "./body-CshgcV6U.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { i as PulseCreateInput, t as Pulse } from "./pulse-Dz0ocv0l.mjs";
|
|
6
6
|
import { t as pulseView } from "./pulse-x0gFxWfG.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
|
+
import { t as readBody } from "./body-CshgcV6U.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { f as CollectionNamespace, o as CollectionCreateInput, r as Collection } from "./collection-BxdPxD38.mjs";
|
|
6
6
|
import { t as parseEnumFlag } from "./parse-enum-Dc0dMZ3P.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
|
+
import { t as readBody } from "./body-CshgcV6U.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { i as TransformJobCreateInput, t as TransformJob } from "./transform-job-CCguL6LP.mjs";
|
|
6
6
|
import { t as transformJobView } from "./transform-job-AaMZRxAq.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
|
+
import { t as readBody } from "./body-CshgcV6U.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as TransformCreateInput, t as Transform } from "./transform-DiW7bREn.mjs";
|
|
6
|
-
import { a as preflightMbql5Query, i as TRANSFORM_SOURCE_QUERY_LABELS, o as skipValidateFlag } from "./validate-query-
|
|
6
|
+
import { a as preflightMbql5Query, i as TRANSFORM_SOURCE_QUERY_LABELS, o as skipValidateFlag } from "./validate-query-B90KYPQr.mjs";
|
|
7
7
|
import { n as transformView } from "./transform-CtqB1WYo.mjs";
|
|
8
|
-
import { t as enrichTransformCollectionError } from "./collection-namespace-
|
|
8
|
+
import { t as enrichTransformCollectionError } from "./collection-namespace-Dv0l-V9K.mjs";
|
|
9
9
|
//#region src/commands/transform/create.ts
|
|
10
10
|
var create_default = defineMetabaseCommand({
|
|
11
11
|
meta: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
|
+
import { t as readBody } from "./body-CshgcV6U.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { i as TimelineEvent, o as TimelineEventCreateInput } from "./timeline-CCSU2qOS.mjs";
|
|
6
6
|
import { t as timelineEventView } from "./timeline-uDCmwGFT.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
|
+
import { t as readBody } from "./body-CshgcV6U.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as SnippetCreateInput, t as Snippet } from "./snippet-CyKAgIZl.mjs";
|
|
6
6
|
import { t as snippetView } from "./snippet-oJLaYW9V.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
|
+
import { t as readBody } from "./body-CshgcV6U.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as TransformTestCreateInput, t as TransformTest } from "./transform-test-BjjCQ2xm.mjs";
|
|
6
6
|
import { t as transformTestView } from "./transform-test-gzDcbypy.mjs";
|
|
@@ -10,7 +10,7 @@ var create_default = defineMetabaseCommand({
|
|
|
10
10
|
name: "create",
|
|
11
11
|
description: "Create a transform test from JSON"
|
|
12
12
|
},
|
|
13
|
-
details: "The JSON body needs a `transform_id`, a `name`, the `inputs` standing in for every table the transform reads, and the `expectations` checked against its output. An input names its `table` and carries either `format: \"sql\"` with a `sql` query or `format: \"rows\"` with `columns` and `rows`. An expectation is either `type: \"empty\"` with the `sql` that must return nothing, or `type: \"equals\"
|
|
13
|
+
details: "The JSON body needs a `transform_id`, a `name`, the `inputs` standing in for every table the transform reads, and the `expectations` checked against its output. An input names its `table` and carries either `format: \"sql\"` with a `sql` query or `format: \"rows\"` with `columns` and `rows`. An expectation is either `type: \"empty\"` with the `sql` that must return nothing, or `type: \"equals\"` with `format: \"rows\"` and the `columns` and `rows` the output must hold exactly. The body is closed at every level: a test read back with `get --full` has to shed `id`, `entity_id`, `creator_id`, `created_at` and `updated_at` before it can be sent.",
|
|
14
14
|
requires: ["transformTest.create"],
|
|
15
15
|
args: {
|
|
16
16
|
...outputFlags,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
2
|
import { a as NotificationCreateInput, n as Notification } from "./notification-DaA4bBHW.mjs";
|
|
3
3
|
import { t as notificationView } from "./notification-DVrLkjFT.mjs";
|
|
4
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
4
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
5
5
|
import { t as describeAlert } from "./summary-BytbDz6e.mjs";
|
|
6
|
-
import { t as readBody } from "./body-
|
|
6
|
+
import { t as readBody } from "./body-CshgcV6U.mjs";
|
|
7
7
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
8
8
|
//#region src/commands/alert/create.ts
|
|
9
9
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
3
|
import { t as Library } from "./library-BPIzb3K_.mjs";
|
|
4
4
|
import { t as libraryView } from "./library-PGCfm0UA.mjs";
|
|
5
5
|
//#region src/commands/library/create.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
|
+
import { t as readBody } from "./body-CshgcV6U.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as TimelineCreateInput, t as Timeline } from "./timeline-CCSU2qOS.mjs";
|
|
6
6
|
import { n as timelineView } from "./timeline-uDCmwGFT.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
|
+
import { t as readBody } from "./body-CshgcV6U.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { r as SegmentCreateInput, t as Segment } from "./segment-OsrbUDzw.mjs";
|
|
6
|
-
import { a as preflightMbql5Query, o as skipValidateFlag, r as SEGMENT_DEFINITION_LABELS } from "./validate-query-
|
|
6
|
+
import { a as preflightMbql5Query, o as skipValidateFlag, r as SEGMENT_DEFINITION_LABELS } from "./validate-query-B90KYPQr.mjs";
|
|
7
7
|
import { t as segmentView } from "./segment-C_gl5ag6.mjs";
|
|
8
8
|
//#region src/commands/segment/create.ts
|
|
9
9
|
var create_default = defineMetabaseCommand({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { H as outputFlags, Q as ConfigError, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
3
|
import { t as SyncBranchCreated } from "./git-sync-BwBRmEhE.mjs";
|
|
4
4
|
import { t as syncBranchCreatedView } from "./git-sync-TjX1r_wF.mjs";
|
|
5
5
|
//#region src/commands/git-sync/create-branch.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as readBody } from "./body-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
|
+
import { t as readBody } from "./body-CshgcV6U.mjs";
|
|
4
4
|
import { t as bodyInputFlags } from "./body-flags-AqKpN01Y.mjs";
|
|
5
5
|
import { i as DashboardCreateInput, t as Dashboard } from "./dashboard-D0hwTC-f.mjs";
|
|
6
6
|
import { t as dashboardView } from "./dashboard-DgK81azj.mjs";
|
|
7
|
-
import { n as wrapChainedDashboardWriteError, t as preflightDashcardCardReferences } from "./preflight-
|
|
7
|
+
import { n as wrapChainedDashboardWriteError, t as preflightDashcardCardReferences } from "./preflight-BpYtF0IU.mjs";
|
|
8
8
|
//#region src/commands/dashboard/create.ts
|
|
9
9
|
var create_default = defineMetabaseCommand({
|
|
10
10
|
meta: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
3
|
-
import { t as parseId } from "./parse-id-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
|
+
import { t as parseId } from "./parse-id-DtM6q9HU.mjs";
|
|
4
4
|
import { t as UploadResult } from "./upload-DAtxBBms.mjs";
|
|
5
|
-
import { n as requireUploadFilePath, t as readCsvFile } from "./upload-
|
|
5
|
+
import { n as requireUploadFilePath, t as readCsvFile } from "./upload-DOO94rCQ.mjs";
|
|
6
6
|
import { t as uploadResultView } from "./upload-C3z5ZaXA.mjs";
|
|
7
7
|
//#region src/commands/upload/csv.ts
|
|
8
8
|
const ROOT_COLLECTION = "root";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { H as outputFlags, U as profileFlag, p as renderSummary, z as connectionFlags } from "./cli.mjs";
|
|
2
|
-
import { t as defineMetabaseCommand } from "./runtime-
|
|
2
|
+
import { t as defineMetabaseCommand } from "./runtime-Dtb93zKy.mjs";
|
|
3
3
|
import { c as syncTaskView } from "./git-sync-TjX1r_wF.mjs";
|
|
4
|
-
import { n as formatSyncTask, r as syncTaskIdleView, t as SyncTaskOrIdle } from "./sync-task-
|
|
4
|
+
import { n as formatSyncTask, r as syncTaskIdleView, t as SyncTaskOrIdle } from "./sync-task-BtDnTXCP.mjs";
|
|
5
5
|
//#region src/commands/git-sync/current-task.ts
|
|
6
6
|
const CurrentTaskResult = SyncTaskOrIdle;
|
|
7
7
|
var current_task_default = defineMetabaseCommand({
|
|
@@ -18,15 +18,15 @@ var dashboard_default = defineCommandGroup({
|
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
subCommands: {
|
|
21
|
-
list: () => import("./list-
|
|
22
|
-
get: () => import("./get-
|
|
23
|
-
cards: () => import("./cards-
|
|
24
|
-
"parameter-values": () => import("./parameter-values-
|
|
25
|
-
subscriptions: () => import("./subscriptions-
|
|
26
|
-
create: () => import("./create-
|
|
27
|
-
update: () => import("./update-
|
|
28
|
-
"update-dashcard": () => import("./update-dashcard-
|
|
29
|
-
archive: () => import("./archive-
|
|
21
|
+
list: () => import("./list-BUz6KOfw.mjs").then((mod) => mod.default),
|
|
22
|
+
get: () => import("./get-BGLvyOO3.mjs").then((mod) => mod.default),
|
|
23
|
+
cards: () => import("./cards-BC0JX8Yg.mjs").then((mod) => mod.default),
|
|
24
|
+
"parameter-values": () => import("./parameter-values-DhrkLXoN.mjs").then((mod) => mod.default),
|
|
25
|
+
subscriptions: () => import("./subscriptions-C5SyJL4B.mjs").then((mod) => mod.default),
|
|
26
|
+
create: () => import("./create-kZIIEN2Y.mjs").then((mod) => mod.default),
|
|
27
|
+
update: () => import("./update-DOdcflLH.mjs").then((mod) => mod.default),
|
|
28
|
+
"update-dashcard": () => import("./update-dashcard-DjT5QOkL.mjs").then((mod) => mod.default),
|
|
29
|
+
archive: () => import("./archive-CwITzj_j.mjs").then((mod) => mod.default)
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
//#endregion
|