@malloy-publisher/sdk 0.0.138 → 0.0.139
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 +122 -1
- package/dist/ServerProvider-Bzid56gJ.cjs.js +1 -0
- package/dist/{ServerProvider-B8JWg8Mo.es.js → ServerProvider-D-y63tG0.es.js} +68 -68
- package/dist/client/api.d.ts +18 -0
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/Notebook/Notebook.d.ts +4 -1
- package/dist/components/filter/DimensionFilter.d.ts +43 -0
- package/dist/components/filter/index.d.ts +4 -0
- package/dist/components/filter/utils.d.ts +75 -0
- package/dist/components/index.d.ts +7 -6
- package/dist/components/styles.d.ts +3 -3
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useDimensionFilters.d.ts +84 -0
- package/dist/hooks/useDimensionFiltersFromSpec.d.ts +52 -0
- package/dist/hooks/useDimensionFiltersQuery.d.ts +79 -0
- package/dist/hooks/useDimensionalFilterRangeData.d.ts +106 -0
- package/dist/index.cjs.js +141 -112
- package/dist/index.d.ts +3 -2
- package/dist/index.es.js +47795 -39755
- package/dist/sdk.css +1 -1
- package/package.json +16 -11
- package/src/components/Home/Home.tsx +15 -11
- package/src/components/Notebook/Notebook.tsx +315 -31
- package/src/components/RenderedResult/RenderedResult.tsx +22 -3
- package/src/components/filter/DimensionFilter.tsx +738 -0
- package/src/components/filter/index.ts +20 -0
- package/src/components/filter/utils.ts +354 -0
- package/src/components/highlighter.ts +14 -6
- package/src/components/index.ts +7 -6
- package/src/hooks/index.ts +31 -0
- package/src/hooks/useDimensionFilters.ts +322 -0
- package/src/hooks/useDimensionFiltersFromSpec.ts +117 -0
- package/src/hooks/useDimensionFiltersQuery.ts +300 -0
- package/src/hooks/useDimensionalFilterRangeData.ts +758 -0
- package/src/index.ts +3 -2
- package/dist/ServerProvider-DC74Txr5.cjs.js +0 -1
- package/dist/abap-BmBUA35e.es.js +0 -6
- package/dist/abap-Dwt2rH6y.cjs.js +0 -1
- package/dist/actionscript-3-mj8Uhnsc.cjs.js +0 -1
- package/dist/actionscript-3-zFUbzQa9.es.js +0 -6
- package/dist/ada-CBvPkFpZ.es.js +0 -6
- package/dist/ada-DZM58Vqs.cjs.js +0 -1
- package/dist/andromeeda-BXc5FOIb.cjs.js +0 -1
- package/dist/andromeeda-uXNdzNpk.es.js +0 -4
- package/dist/angular-html-B60m4jt-.cjs.js +0 -1
- package/dist/angular-html-D3aW1y6T.es.js +0 -32
- package/dist/angular-ts-Jud40GrY.es.js +0 -21
- package/dist/angular-ts-SIlYrqkG.cjs.js +0 -1
- package/dist/apache-CVNlsSDc.es.js +0 -6
- package/dist/apache-D7v5fxtZ.cjs.js +0 -1
- package/dist/apex-4hrAnw0a.cjs.js +0 -1
- package/dist/apex-DFk3KRB1.es.js +0 -6
- package/dist/apl-CKSaOFbt.cjs.js +0 -1
- package/dist/apl-pE3PRTDr.es.js +0 -16
- package/dist/applescript-CYMR_y0g.es.js +0 -6
- package/dist/applescript-Cnd3Dxju.cjs.js +0 -1
- package/dist/ara-4QmU5e04.es.js +0 -6
- package/dist/ara-BQ2aGbFQ.cjs.js +0 -1
- package/dist/asciidoc-C6nYvw8K.cjs.js +0 -1
- package/dist/asciidoc-v_1bjgUg.es.js +0 -6
- package/dist/asm-CQnBVCj-.cjs.js +0 -1
- package/dist/asm-RC0Yh-NZ.es.js +0 -6
- package/dist/astro-Be6fybGX.es.js +0 -16
- package/dist/astro-KhYkz6Xu.cjs.js +0 -1
- package/dist/aurora-x-BwoVEUWZ.es.js +0 -4
- package/dist/aurora-x-C5IpmIOG.cjs.js +0 -1
- package/dist/awk-DUx4h__E.cjs.js +0 -1
- package/dist/awk-gPH8MVMW.es.js +0 -6
- package/dist/ayu-dark-Cv7nTiif.cjs.js +0 -1
- package/dist/ayu-dark-CxPZkpb2.es.js +0 -4
- package/dist/ballerina-CXlzbmzl.cjs.js +0 -1
- package/dist/ballerina-kvLnRU_e.es.js +0 -6
- package/dist/bat-BHYy44sT.es.js +0 -6
- package/dist/bat-DlMT9sut.cjs.js +0 -1
- package/dist/beancount-CyyiuUzM.cjs.js +0 -1
- package/dist/beancount-D-MADTs_.es.js +0 -6
- package/dist/berry-B0EjuzrL.cjs.js +0 -1
- package/dist/berry-Ci9U0o4h.es.js +0 -6
- package/dist/bibtex-CX618D15.es.js +0 -6
- package/dist/bibtex-CfoG9xRq.cjs.js +0 -1
- package/dist/bicep-D6PH_9IY.cjs.js +0 -1
- package/dist/bicep-iuYiPopT.es.js +0 -6
- package/dist/blade-C0tMuk8f.cjs.js +0 -1
- package/dist/blade-DmXp5Zcz.es.js +0 -18
- package/dist/bsl-CfHcite8.cjs.js +0 -1
- package/dist/bsl-NPX_d-bb.es.js +0 -8
- package/dist/c-C4sXGJZM.cjs.js +0 -1
- package/dist/c-DASdrs7p.es.js +0 -6
- package/dist/cadence-BDALQi26.es.js +0 -6
- package/dist/cadence-Dq2CYzXG.cjs.js +0 -1
- package/dist/cairo-17kO8-kb.es.js +0 -8
- package/dist/cairo-CcKpJkyf.cjs.js +0 -1
- package/dist/catppuccin-frappe-BrTOiad2.es.js +0 -4
- package/dist/catppuccin-frappe-DXAedND3.cjs.js +0 -1
- package/dist/catppuccin-latte-D-dc_R4m.es.js +0 -4
- package/dist/catppuccin-latte-mwGw3-Ej.cjs.js +0 -1
- package/dist/catppuccin-macchiato-DN4jOp0G.es.js +0 -4
- package/dist/catppuccin-macchiato-cQCk9ADg.cjs.js +0 -1
- package/dist/catppuccin-mocha-B8yCE3-3.es.js +0 -4
- package/dist/catppuccin-mocha-ClSzDZSl.cjs.js +0 -1
- package/dist/clarity-CNgV2Ths.es.js +0 -6
- package/dist/clarity-ytMkUD5Q.cjs.js +0 -1
- package/dist/clojure-B_Wv414H.cjs.js +0 -1
- package/dist/clojure-CsKKFGwv.es.js +0 -6
- package/dist/cmake-Dr-A3iJx.es.js +0 -6
- package/dist/cmake-TBUaQXYY.cjs.js +0 -1
- package/dist/cobol-BzcJm6ie.es.js +0 -10
- package/dist/cobol-DXFNH4EH.cjs.js +0 -1
- package/dist/codeowners-Bt9yU6NX.es.js +0 -6
- package/dist/codeowners-QhPK6lIJ.cjs.js +0 -1
- package/dist/codeql-B7Q9tkDJ.cjs.js +0 -1
- package/dist/codeql-DBNTqJi1.es.js +0 -6
- package/dist/coffee-GRRSkgX1.cjs.js +0 -1
- package/dist/coffee-q2iaxUnQ.es.js +0 -8
- package/dist/common-lisp-Ced3ctK5.cjs.js +0 -1
- package/dist/common-lisp-r7ZEOG7T.es.js +0 -6
- package/dist/coq-BTRB4iqi.cjs.js +0 -1
- package/dist/coq-CB6Pv_W9.es.js +0 -6
- package/dist/cpp-CPOvHZqs.cjs.js +0 -1
- package/dist/cpp-CPQtoCcU.es.js +0 -18
- package/dist/crystal-BY_Cg265.es.js +0 -18
- package/dist/crystal-C6AG-iew.cjs.js +0 -1
- package/dist/csharp-CYWRhZ2R.es.js +0 -6
- package/dist/csharp-TKds-MhG.cjs.js +0 -1
- package/dist/css-B0kbn78J.cjs.js +0 -1
- package/dist/css-D1aVdRIU.es.js +0 -6
- package/dist/csv-BVJjiaC3.cjs.js +0 -1
- package/dist/csv-DvCncUGQ.es.js +0 -6
- package/dist/cue-BXMrmvay.es.js +0 -6
- package/dist/cue-Cz4J-rnd.cjs.js +0 -1
- package/dist/cypher-DTm5zNR1.es.js +0 -6
- package/dist/cypher-DuKTiyez.cjs.js +0 -1
- package/dist/d-BW9Wd7aK.cjs.js +0 -1
- package/dist/d-D6ZXmn3l.es.js +0 -6
- package/dist/dark-plus-Cd5emcYO.cjs.js +0 -1
- package/dist/dark-plus-pUHDTVV0.es.js +0 -4
- package/dist/dart-CWs-er6b.cjs.js +0 -1
- package/dist/dart-Dz59Is3F.es.js +0 -6
- package/dist/dax-CDxFL2Kb.cjs.js +0 -1
- package/dist/dax-DTVGzydb.es.js +0 -6
- package/dist/desktop-CFgo0jo7.cjs.js +0 -1
- package/dist/desktop-Db9vb-dl.es.js +0 -6
- package/dist/diff-BsEkKwI8.cjs.js +0 -1
- package/dist/diff-XmNrvgM1.es.js +0 -6
- package/dist/docker-DWH2onkn.es.js +0 -6
- package/dist/docker-hwiw4W8I.cjs.js +0 -1
- package/dist/dotenv-4337wvzu.es.js +0 -6
- package/dist/dotenv-CJ5o3G1C.cjs.js +0 -1
- package/dist/dracula-BNgwAJ-d.cjs.js +0 -1
- package/dist/dracula-BtZx2Kac.es.js +0 -4
- package/dist/dracula-soft-BHZ7sHFu.cjs.js +0 -1
- package/dist/dracula-soft-BKa-aqBv.es.js +0 -4
- package/dist/dream-maker-CvvfrJSx.es.js +0 -6
- package/dist/dream-maker-DBharE9Q.cjs.js +0 -1
- package/dist/edge-DI6_BHKG.es.js +0 -12
- package/dist/edge-i77KJtJz.cjs.js +0 -1
- package/dist/elixir-D00NoPSM.cjs.js +0 -1
- package/dist/elixir-ic9y5jcd.es.js +0 -8
- package/dist/elm-Bhj5Vf-e.cjs.js +0 -1
- package/dist/elm-DxnUqUaW.es.js +0 -8
- package/dist/emacs-lisp-BAefI874.es.js +0 -6
- package/dist/emacs-lisp-CDDyFsvQ.cjs.js +0 -1
- package/dist/erb-Cbj2YePa.es.js +0 -10
- package/dist/erb-Dybaw01v.cjs.js +0 -1
- package/dist/erlang-3VgdrQXV.cjs.js +0 -1
- package/dist/erlang-CmIiwF3I.es.js +0 -6
- package/dist/everforest-dark-DMCBqXCK.es.js +0 -4
- package/dist/everforest-dark-_sBMomR1.cjs.js +0 -1
- package/dist/everforest-light-BbXl82Em.es.js +0 -4
- package/dist/everforest-light-H0xoYxl0.cjs.js +0 -1
- package/dist/fennel-BvcDRFAV.cjs.js +0 -1
- package/dist/fennel-DNqkz9pE.es.js +0 -6
- package/dist/fish-CnamI0Ar.cjs.js +0 -1
- package/dist/fish-DIm72t2T.es.js +0 -6
- package/dist/fluent-BapTxJsC.es.js +0 -6
- package/dist/fluent-DFpT66K8.cjs.js +0 -1
- package/dist/fortran-fixed-form-DECY15PY.es.js +0 -8
- package/dist/fortran-fixed-form-u_RcUPMu.cjs.js +0 -1
- package/dist/fortran-free-form-CNDsBFUj.es.js +0 -6
- package/dist/fortran-free-form-IaGrWIda.cjs.js +0 -1
- package/dist/fsharp-B-aK2rr3.cjs.js +0 -1
- package/dist/fsharp-D2ZqviWP.es.js +0 -8
- package/dist/gdresource-BBAqNWe4.cjs.js +0 -1
- package/dist/gdresource-RIsK8sku.es.js +0 -10
- package/dist/gdscript-5N_43TPQ.cjs.js +0 -1
- package/dist/gdscript-D7aheHm-.es.js +0 -6
- package/dist/gdshader-BGJEsM2Z.es.js +0 -6
- package/dist/gdshader-Bl85Hrm5.cjs.js +0 -1
- package/dist/genie-C9gPjc6J.es.js +0 -6
- package/dist/genie-DGsxMAbQ.cjs.js +0 -1
- package/dist/gherkin-CVV6nEUH.cjs.js +0 -1
- package/dist/gherkin-bka1Exbx.es.js +0 -6
- package/dist/git-commit-BRJ1E4Bx.es.js +0 -8
- package/dist/git-commit-CwfgI4fD.cjs.js +0 -1
- package/dist/git-rebase-C3X7aMpn.es.js +0 -8
- package/dist/git-rebase-DUvbIQDw.cjs.js +0 -1
- package/dist/github-dark-BKL9xNgN.cjs.js +0 -1
- package/dist/github-dark-DenFmJkN.es.js +0 -4
- package/dist/github-dark-default-BJPUVz4H.es.js +0 -4
- package/dist/github-dark-default-Dsv5MuSi.cjs.js +0 -1
- package/dist/github-dark-dimmed-CtB9hz8U.cjs.js +0 -1
- package/dist/github-dark-dimmed-DUshB20C.es.js +0 -4
- package/dist/github-dark-high-contrast-BqZVM-jF.cjs.js +0 -1
- package/dist/github-dark-high-contrast-D3aGCnF8.es.js +0 -4
- package/dist/github-light-BFTOhCbz.cjs.js +0 -1
- package/dist/github-light-JYsPkUQd.es.js +0 -4
- package/dist/github-light-default-BZoWH9dH.cjs.js +0 -1
- package/dist/github-light-default-D99KPAby.es.js +0 -4
- package/dist/github-light-high-contrast-BbmZE-Mp.es.js +0 -4
- package/dist/github-light-high-contrast-Ks3kPGJU.cjs.js +0 -1
- package/dist/gleam-B4k9YFGD.es.js +0 -6
- package/dist/gleam-nR4mjrhK.cjs.js +0 -1
- package/dist/glimmer-js-C4MQf3Na.es.js +0 -14
- package/dist/glimmer-js-CNfyUqSb.cjs.js +0 -1
- package/dist/glimmer-ts-Bp7_dELi.cjs.js +0 -1
- package/dist/glimmer-ts-CoYpqZrZ.es.js +0 -14
- package/dist/glsl-BYTq1Tfl.es.js +0 -8
- package/dist/glsl-CIu1PL9X.cjs.js +0 -1
- package/dist/gnuplot-CurtDYoJ.cjs.js +0 -1
- package/dist/gnuplot-DnWoRZt-.es.js +0 -6
- package/dist/go-BErP6iv1.es.js +0 -6
- package/dist/go-CM9_GlwL.cjs.js +0 -1
- package/dist/graphql-BnnSMMC2.cjs.js +0 -1
- package/dist/graphql-g3nHRc0M.es.js +0 -14
- package/dist/groovy-BaVp9Il5.cjs.js +0 -1
- package/dist/groovy-IWs5-NIO.es.js +0 -6
- package/dist/hack-BVxH3fsq.cjs.js +0 -1
- package/dist/hack-wPAsyujS.es.js +0 -10
- package/dist/haml-4TJ757dz.es.js +0 -10
- package/dist/haml-vutdexHh.cjs.js +0 -1
- package/dist/handlebars-7GDLw__F.es.js +0 -14
- package/dist/handlebars-COmZnO8P.cjs.js +0 -1
- package/dist/haskell-CtlGos0K.es.js +0 -6
- package/dist/haskell-suhyCHEm.cjs.js +0 -1
- package/dist/haxe-BIQU1qHi.cjs.js +0 -1
- package/dist/haxe-CZZ33vZw.es.js +0 -6
- package/dist/hcl-6hOg9WP4.es.js +0 -6
- package/dist/hcl-CbQ1yCnz.cjs.js +0 -1
- package/dist/hjson-CgwED-oz.es.js +0 -6
- package/dist/hjson-Ddklb4QM.cjs.js +0 -1
- package/dist/hlsl-3-lv4gi7.es.js +0 -6
- package/dist/hlsl-B4NkiBfC.cjs.js +0 -1
- package/dist/houston-BDYrDoDW.es.js +0 -4
- package/dist/houston-T57H3gQZ.cjs.js +0 -1
- package/dist/html-Dc-Bg17s.cjs.js +0 -1
- package/dist/html-PSPajZka.es.js +0 -10
- package/dist/html-derivative-Brb3b4aI.es.js +0 -8
- package/dist/html-derivative-CY9mJeT0.cjs.js +0 -1
- package/dist/http-BrKsebcH.cjs.js +0 -1
- package/dist/http-CWBcr-Ch.es.js +0 -14
- package/dist/hxml-DLduiIv3.es.js +0 -8
- package/dist/hxml-DbGPHkY4.cjs.js +0 -1
- package/dist/hy-C2xHhR6I.es.js +0 -6
- package/dist/hy-DpyTdO3T.cjs.js +0 -1
- package/dist/imba-BEYqRZzB.es.js +0 -8
- package/dist/imba-CAIkF-GD.cjs.js +0 -1
- package/dist/ini-BUcvsX-U.es.js +0 -6
- package/dist/ini-CymULaw_.cjs.js +0 -1
- package/dist/java-B7odJ7Ap.es.js +0 -6
- package/dist/java-Bn1Lvoni.cjs.js +0 -1
- package/dist/javascript-Bnnicc83.cjs.js +0 -1
- package/dist/javascript-fa8UlHZE.es.js +0 -6
- package/dist/jinja-BoeZymy4.cjs.js +0 -1
- package/dist/jinja-DKLHYjK0.es.js +0 -11
- package/dist/jison-C0DlFEjB.cjs.js +0 -1
- package/dist/jison-CzPfUIvM.es.js +0 -8
- package/dist/json-71t8ZF9g.es.js +0 -6
- package/dist/json-y-J1j5EW.cjs.js +0 -1
- package/dist/json5-CzvlWgZ7.cjs.js +0 -1
- package/dist/json5-Z7F6rA6a.es.js +0 -6
- package/dist/jsonc-BnhWfmQw.cjs.js +0 -1
- package/dist/jsonc-Dphhs4m2.es.js +0 -6
- package/dist/jsonl-BbGkWPJz.cjs.js +0 -1
- package/dist/jsonl-D9jj92Gg.es.js +0 -6
- package/dist/jsonnet-Bn--UDZ1.cjs.js +0 -1
- package/dist/jsonnet-DEQ7IUoJ.es.js +0 -6
- package/dist/jssm-4CSVp8lc.cjs.js +0 -1
- package/dist/jssm-j74e88UX.es.js +0 -6
- package/dist/jsx-Bkesy5tT.es.js +0 -6
- package/dist/jsx-D8YwVp-7.cjs.js +0 -1
- package/dist/julia-B_r6juN7.es.js +0 -16
- package/dist/julia-DLxGoAlk.cjs.js +0 -1
- package/dist/kanagawa-dragon-BJZF7xDr.cjs.js +0 -1
- package/dist/kanagawa-dragon-CiKur4Hl.es.js +0 -4
- package/dist/kanagawa-lotus-BKu-smKu.es.js +0 -4
- package/dist/kanagawa-lotus-BhgzmRV4.cjs.js +0 -1
- package/dist/kanagawa-wave-BgJip59C.cjs.js +0 -1
- package/dist/kanagawa-wave-CQwozSzG.es.js +0 -4
- package/dist/kotlin-DCgZY7Ii.es.js +0 -6
- package/dist/kotlin-DDI6myF6.cjs.js +0 -1
- package/dist/kusto-Cw029H-v.es.js +0 -6
- package/dist/kusto-OZxALJZT.cjs.js +0 -1
- package/dist/laserwave--izBLY1I.cjs.js +0 -1
- package/dist/laserwave-6a00oqik.es.js +0 -4
- package/dist/latex-CXOK56Uv.cjs.js +0 -1
- package/dist/latex-GxBxlqbc.es.js +0 -8
- package/dist/lean-CYSet4vs.es.js +0 -6
- package/dist/lean-D1iY-35j.cjs.js +0 -1
- package/dist/less-DIaY7vQJ.cjs.js +0 -1
- package/dist/less-DQA4v-Nm.es.js +0 -6
- package/dist/light-plus-B5D0le0o.cjs.js +0 -1
- package/dist/light-plus-CZuVqSLX.es.js +0 -4
- package/dist/liquid-BYouVITI.cjs.js +0 -1
- package/dist/liquid-BxBkR-z5.es.js +0 -14
- package/dist/log-BIXUeBaj.cjs.js +0 -1
- package/dist/log-D2eRfqDn.es.js +0 -6
- package/dist/logo-B2d3b27P.cjs.js +0 -1
- package/dist/logo-QEAtGWZ9.es.js +0 -6
- package/dist/lua-B2_GGnC5.cjs.js +0 -1
- package/dist/lua-DeXVjwzF.es.js +0 -8
- package/dist/luau-BjYGiqID.es.js +0 -6
- package/dist/luau-CvqAeq4F.cjs.js +0 -1
- package/dist/make-BjuHP00g.es.js +0 -6
- package/dist/make-Oob5Z9Pk.cjs.js +0 -1
- package/dist/markdown-B6guhLWd.es.js +0 -6
- package/dist/markdown-BGBuj4LZ.cjs.js +0 -1
- package/dist/marko-CS7eEGs3.cjs.js +0 -1
- package/dist/marko-DwPYPpB3.es.js +0 -14
- package/dist/material-theme-D6KBX41T.es.js +0 -4
- package/dist/material-theme-Dj0-OyRN.cjs.js +0 -1
- package/dist/material-theme-darker-CkRroheE.es.js +0 -4
- package/dist/material-theme-darker-Dvfs29ir.cjs.js +0 -1
- package/dist/material-theme-lighter-BUBw43Yz.es.js +0 -4
- package/dist/material-theme-lighter-EU3ZGl_r.cjs.js +0 -1
- package/dist/material-theme-ocean-ClGX14Ja.es.js +0 -4
- package/dist/material-theme-ocean-px_3Pwqa.cjs.js +0 -1
- package/dist/material-theme-palenight-38jxvsGX.cjs.js +0 -1
- package/dist/material-theme-palenight-C1RVm8K1.es.js +0 -4
- package/dist/matlab-BpQlIJiw.es.js +0 -6
- package/dist/matlab-CbN2rF6P.cjs.js +0 -1
- package/dist/mdc-Bkl-bu_Z.cjs.js +0 -1
- package/dist/mdc-X4YjkufV.es.js +0 -12
- package/dist/mdx-Cl31h8mi.cjs.js +0 -1
- package/dist/mdx-DIoECIFU.es.js +0 -6
- package/dist/mermaid-BZ7WHNIe.es.js +0 -6
- package/dist/mermaid-CSogK_LM.cjs.js +0 -1
- package/dist/min-dark-C7ak0t6c.es.js +0 -4
- package/dist/min-dark-tt5o_I5e.cjs.js +0 -1
- package/dist/min-light-CKFxVcPp.es.js +0 -4
- package/dist/min-light-tmTHl_CQ.cjs.js +0 -1
- package/dist/mipsasm-BseoYJQp.cjs.js +0 -1
- package/dist/mipsasm-DusDYkFc.es.js +0 -6
- package/dist/mojo-CY9jaezJ.es.js +0 -6
- package/dist/mojo-D8QAG3Ze.cjs.js +0 -1
- package/dist/monokai-C1KBYcO0.es.js +0 -4
- package/dist/monokai-DMIxv6MM.cjs.js +0 -1
- package/dist/move-ChphFumd.es.js +0 -6
- package/dist/move-DaBrcjat.cjs.js +0 -1
- package/dist/narrat-Dz4d7OmN.es.js +0 -6
- package/dist/narrat-oOfAO4q8.cjs.js +0 -1
- package/dist/nextflow-BxJSKvPb.cjs.js +0 -1
- package/dist/nextflow-DW0Yq9a2.es.js +0 -6
- package/dist/nginx-ChI-VqNT.es.js +0 -8
- package/dist/nginx-LuyFICzP.cjs.js +0 -1
- package/dist/night-owl-BN78kThQ.cjs.js +0 -1
- package/dist/night-owl-Bm2rzalh.es.js +0 -4
- package/dist/nim-BiJA-5u7.es.js +0 -20
- package/dist/nim-DkC83hsN.cjs.js +0 -1
- package/dist/nix-Cg5uV_xg.es.js +0 -6
- package/dist/nix-DNME0Ea7.cjs.js +0 -1
- package/dist/nord-CC5OiUXg.es.js +0 -4
- package/dist/nord-Ca5AGUWc.cjs.js +0 -1
- package/dist/nushell-BfRnzRWn.es.js +0 -6
- package/dist/nushell-DI9Z3l3M.cjs.js +0 -1
- package/dist/objective-c-BGg9R27G.es.js +0 -6
- package/dist/objective-c-DVx8Rcni.cjs.js +0 -1
- package/dist/objective-cpp-CJ3y3V_5.es.js +0 -6
- package/dist/objective-cpp-s6XI7Jvk.cjs.js +0 -1
- package/dist/ocaml-BZLsfx_o.es.js +0 -6
- package/dist/ocaml-kUzDDUf2.cjs.js +0 -1
- package/dist/one-dark-pro-D7-kP8fv.es.js +0 -4
- package/dist/one-dark-pro-JOzzHStv.cjs.js +0 -1
- package/dist/one-light-020-h_lv.cjs.js +0 -1
- package/dist/one-light-D9sNaUtq.es.js +0 -4
- package/dist/pascal-D509_I72.cjs.js +0 -1
- package/dist/pascal-l2bqd7Dz.es.js +0 -6
- package/dist/perl-CkXYjL3t.es.js +0 -16
- package/dist/perl-DUnCLRB_.cjs.js +0 -1
- package/dist/php-D0k1sQr6.cjs.js +0 -1
- package/dist/php-q40Yjh5d.es.js +0 -18
- package/dist/plastic-CSTz3KZp.es.js +0 -4
- package/dist/plastic-r5piqq-S.cjs.js +0 -1
- package/dist/plsql-C_qH_YOK.cjs.js +0 -1
- package/dist/plsql-oVq_K_wH.es.js +0 -6
- package/dist/po-5jaeIyVd.es.js +0 -6
- package/dist/po-CBsLQIcu.cjs.js +0 -1
- package/dist/poimandres-BLP3NNjc.cjs.js +0 -1
- package/dist/poimandres-C-VADXHD.es.js +0 -4
- package/dist/polar-De-CDeYv.cjs.js +0 -1
- package/dist/polar-wcLp8ci7.es.js +0 -6
- package/dist/postcss-BZ3MNRIJ.es.js +0 -6
- package/dist/postcss-BtcsgaYj.cjs.js +0 -1
- package/dist/powerquery-B0rHn13V.cjs.js +0 -1
- package/dist/powerquery-CgRa2XRw.es.js +0 -6
- package/dist/powershell-Diwyv8Eh.es.js +0 -6
- package/dist/powershell-rCX2OYXT.cjs.js +0 -1
- package/dist/prisma-BaaUHYMp.cjs.js +0 -1
- package/dist/prisma-COL_v1x4.es.js +0 -6
- package/dist/prolog-CuvJOxqT.es.js +0 -6
- package/dist/prolog-DrXD2tGS.cjs.js +0 -1
- package/dist/proto-BtmQjBQu.cjs.js +0 -1
- package/dist/proto-o9HLmF90.es.js +0 -6
- package/dist/pug-Br4hpvIv.es.js +0 -12
- package/dist/pug-CFQMpTUe.cjs.js +0 -1
- package/dist/puppet-cIrXIuy8.cjs.js +0 -1
- package/dist/puppet-wpGOnQp5.es.js +0 -6
- package/dist/purescript-B_1NgE2N.es.js +0 -6
- package/dist/purescript-CX9QPs2N.cjs.js +0 -1
- package/dist/python-B9x3euv6.cjs.js +0 -1
- package/dist/python-xYxLFJY-.es.js +0 -6
- package/dist/qml-CzqrIM5W.cjs.js +0 -1
- package/dist/qml-D5gi21kK.es.js +0 -8
- package/dist/qmldir-BInDYbpo.es.js +0 -6
- package/dist/qmldir-DNF9H2ir.cjs.js +0 -1
- package/dist/qss-C744dLby.cjs.js +0 -1
- package/dist/qss-D-h4NdUG.es.js +0 -6
- package/dist/r-DgOc9oMe.cjs.js +0 -1
- package/dist/r-F-9I-ITZ.es.js +0 -6
- package/dist/racket-BoD1TBFT.es.js +0 -6
- package/dist/racket-Do9_vqnd.cjs.js +0 -1
- package/dist/raku-BW8wAUIz.cjs.js +0 -1
- package/dist/raku-IaYcw19m.es.js +0 -6
- package/dist/razor-Bt_t1YJb.es.js +0 -10
- package/dist/razor-COQhlwWF.cjs.js +0 -1
- package/dist/red-7y8PH7HH.es.js +0 -4
- package/dist/red-BQGOv1D5.cjs.js +0 -1
- package/dist/reg-CGWN_v-z.cjs.js +0 -1
- package/dist/reg-CMUdAgIP.es.js +0 -6
- package/dist/regexp-GiFkbxS-.es.js +0 -6
- package/dist/regexp-N7Z4hEeU.cjs.js +0 -1
- package/dist/rel-BYqA7mnV.cjs.js +0 -1
- package/dist/rel-BaRn3QX7.es.js +0 -6
- package/dist/riscv-B9V3SsvW.es.js +0 -6
- package/dist/riscv-ayQMUpo9.cjs.js +0 -1
- package/dist/rose-pine-DKEdv1Oe.cjs.js +0 -1
- package/dist/rose-pine-DhT-HZE9.es.js +0 -4
- package/dist/rose-pine-dawn-Bvt6DtVH.cjs.js +0 -1
- package/dist/rose-pine-dawn-DiCjL2i4.es.js +0 -4
- package/dist/rose-pine-moon-BNmGHlcn.es.js +0 -4
- package/dist/rose-pine-moon-cHuJy0Ng.cjs.js +0 -1
- package/dist/rst-BmKw97ch.es.js +0 -22
- package/dist/rst-Bq-h_T5U.cjs.js +0 -1
- package/dist/ruby-Bw5IEIKD.cjs.js +0 -1
- package/dist/ruby-cs7BSa_9.es.js +0 -30
- package/dist/rust-BnFKGEfa.cjs.js +0 -1
- package/dist/rust-Pc7DCsZD.es.js +0 -6
- package/dist/sas-BWKaSYkZ.cjs.js +0 -1
- package/dist/sas-DgvHx4mL.es.js +0 -8
- package/dist/sass-B9gYryDE.cjs.js +0 -1
- package/dist/sass-iCyS6eP9.es.js +0 -6
- package/dist/scala-C85dOwSU.cjs.js +0 -1
- package/dist/scala-Cly-fENF.es.js +0 -6
- package/dist/scheme-B_XUaARm.cjs.js +0 -1
- package/dist/scheme-Zi24oEYu.es.js +0 -6
- package/dist/scss-B_hSZppj.es.js +0 -8
- package/dist/scss-CV3c8_Y7.cjs.js +0 -1
- package/dist/sdbl-7Y5u0OW0.cjs.js +0 -1
- package/dist/sdbl-BBamrXFL.es.js +0 -6
- package/dist/shaderlab-CJ8U2E2w.cjs.js +0 -1
- package/dist/shaderlab-U9mqcu_f.es.js +0 -8
- package/dist/shellscript-3DYM9fut.cjs.js +0 -1
- package/dist/shellscript-Dn0-btNd.es.js +0 -6
- package/dist/shellsession-CbKmorC3.cjs.js +0 -1
- package/dist/shellsession-LvXGClmj.es.js +0 -8
- package/dist/slack-dark-akqwQ7ED.cjs.js +0 -1
- package/dist/slack-dark-i7wN4OET.es.js +0 -4
- package/dist/slack-ochin-BoQQWmTv.cjs.js +0 -1
- package/dist/slack-ochin-ndHf0LoP.es.js +0 -4
- package/dist/smalltalk-CCvytUuW.cjs.js +0 -1
- package/dist/smalltalk-Cns31tKw.es.js +0 -6
- package/dist/snazzy-light-BlSJXAu4.es.js +0 -4
- package/dist/snazzy-light-D_IwRieF.cjs.js +0 -1
- package/dist/solarized-dark-UTmkh7lw.es.js +0 -4
- package/dist/solarized-dark-gmm-WbDC.cjs.js +0 -1
- package/dist/solarized-light-BheCkDPT.es.js +0 -4
- package/dist/solarized-light-DzcxRSZP.cjs.js +0 -1
- package/dist/solidity-BG_k8fA_.es.js +0 -6
- package/dist/solidity-BcNcjFC4.cjs.js +0 -1
- package/dist/soy-B2d9ZydM.cjs.js +0 -1
- package/dist/soy-C0yEn39K.es.js +0 -8
- package/dist/sparql-CiBxIK0g.cjs.js +0 -1
- package/dist/sparql-CuZaxpno.es.js +0 -8
- package/dist/splunk-CTqDjQdo.es.js +0 -6
- package/dist/splunk-CzITjJj7.cjs.js +0 -1
- package/dist/sql-BqWZrLHB.cjs.js +0 -1
- package/dist/sql-DCkt643-.es.js +0 -6
- package/dist/ssh-config-DHHGll-v.es.js +0 -6
- package/dist/ssh-config-DUPeuEdB.cjs.js +0 -1
- package/dist/stata-B8m3qL-x.cjs.js +0 -1
- package/dist/stata-Dv81f34z.es.js +0 -8
- package/dist/stylus-ByHs6N-o.cjs.js +0 -1
- package/dist/stylus-n_9f0QQ5.es.js +0 -6
- package/dist/svelte-CfLoBBrI.cjs.js +0 -1
- package/dist/svelte-SoJd35Jr.es.js +0 -14
- package/dist/swift-BAWqNR8A.es.js +0 -6
- package/dist/swift-C5DnOriA.cjs.js +0 -1
- package/dist/synthwave-84-BBRLOmNT.cjs.js +0 -1
- package/dist/synthwave-84-NU3C_KFZ.es.js +0 -4
- package/dist/system-verilog-ClPLYLwh.cjs.js +0 -1
- package/dist/system-verilog-Cui-g-ut.es.js +0 -6
- package/dist/systemd-BASX0DlX.cjs.js +0 -1
- package/dist/systemd-CsKYQIQK.es.js +0 -6
- package/dist/talonscript-D2dGh8FO.es.js +0 -6
- package/dist/talonscript-DkCSnLHD.cjs.js +0 -1
- package/dist/tasl-BAQJK7KZ.cjs.js +0 -1
- package/dist/tasl-D3W8HMV6.es.js +0 -6
- package/dist/tcl-2y0Fuc4S.es.js +0 -6
- package/dist/tcl-CwJAYTvh.cjs.js +0 -1
- package/dist/templ-BSMv2wKZ.cjs.js +0 -1
- package/dist/templ-C7he2afp.es.js +0 -12
- package/dist/terraform-BGW6Oerf.es.js +0 -6
- package/dist/terraform-s-pzyVvp.cjs.js +0 -1
- package/dist/tex-B0y3cEZp.es.js +0 -8
- package/dist/tex-DwtFCA08.cjs.js +0 -1
- package/dist/tokyo-night-9T7_vGSy.cjs.js +0 -1
- package/dist/tokyo-night-LhP3hHhi.es.js +0 -4
- package/dist/toml-CQSfOn0e.es.js +0 -6
- package/dist/toml-CyMM7IXy.cjs.js +0 -1
- package/dist/ts-tags-C5-4VQhf.es.js +0 -41
- package/dist/ts-tags-MIr66hKK.cjs.js +0 -1
- package/dist/tsv-BtvSkaG0.es.js +0 -6
- package/dist/tsv-DqNGnuVj.cjs.js +0 -1
- package/dist/tsx-DiGsgWT8.es.js +0 -6
- package/dist/tsx-DpBRUnKC.cjs.js +0 -1
- package/dist/turtle-BJ2wmjPc.es.js +0 -6
- package/dist/turtle-DfO3eAsu.cjs.js +0 -1
- package/dist/twig-BzjoX4ZJ.cjs.js +0 -1
- package/dist/twig-OmkATFdv.es.js +0 -18
- package/dist/typescript-BqvpT6pB.cjs.js +0 -1
- package/dist/typescript-buWNZFwO.es.js +0 -6
- package/dist/typespec-P-ZVy8yC.cjs.js +0 -1
- package/dist/typespec-bLbdsxJL.es.js +0 -6
- package/dist/typst-BVh2IsT9.cjs.js +0 -1
- package/dist/typst-Y9_SmXTs.es.js +0 -6
- package/dist/v-BUlE9136.cjs.js +0 -1
- package/dist/v-wa8Orrdd.es.js +0 -6
- package/dist/vala-BIymb2K_.cjs.js +0 -1
- package/dist/vala-DRdriFr_.es.js +0 -6
- package/dist/vb-E2_-jk4M.es.js +0 -6
- package/dist/vb-IXOh8mqV.cjs.js +0 -1
- package/dist/verilog-B1iBoR5_.es.js +0 -6
- package/dist/verilog-BiglCqvO.cjs.js +0 -1
- package/dist/vesper-CJsaOsSM.es.js +0 -4
- package/dist/vesper-DqLWLxOu.cjs.js +0 -1
- package/dist/vhdl-CJUzuS2t.cjs.js +0 -1
- package/dist/vhdl-CRVaAhXk.es.js +0 -6
- package/dist/viml-B-zWOd7Z.es.js +0 -6
- package/dist/viml-B1nKLcgt.cjs.js +0 -1
- package/dist/vitesse-black-BoGvW84i.es.js +0 -4
- package/dist/vitesse-black-MF-1S1MG.cjs.js +0 -1
- package/dist/vitesse-dark-Cym-eLtO.es.js +0 -4
- package/dist/vitesse-dark-SIffJYSe.cjs.js +0 -1
- package/dist/vitesse-light-CcmG315c.es.js +0 -4
- package/dist/vitesse-light-U63SkYGT.cjs.js +0 -1
- package/dist/vue-DCwwWMGI.es.js +0 -31
- package/dist/vue-DYZqcRaZ.cjs.js +0 -1
- package/dist/vue-html-CdPbyrq1.cjs.js +0 -1
- package/dist/vue-html-sRE_Ny23.es.js +0 -10
- package/dist/vyper-CO9xUkIY.cjs.js +0 -1
- package/dist/vyper-DWutKXpa.es.js +0 -6
- package/dist/wasm-Bv5f0gKv.es.js +0 -6
- package/dist/wasm-CdIThIat.cjs.js +0 -1
- package/dist/wenyan-BMYnfus1.es.js +0 -6
- package/dist/wenyan-BSJ3fk7e.cjs.js +0 -1
- package/dist/wgsl-DnPoPGDU.es.js +0 -6
- package/dist/wgsl-d3zZE7ZN.cjs.js +0 -1
- package/dist/wikitext-BRCqXN2g.cjs.js +0 -1
- package/dist/wikitext-CntM04PE.es.js +0 -6
- package/dist/wolfram-C3rR92zj.cjs.js +0 -1
- package/dist/wolfram-Ws5qPlX9.es.js +0 -6
- package/dist/xml-BRLTD55J.cjs.js +0 -1
- package/dist/xml-Ch1q_kJp.es.js +0 -8
- package/dist/xsl-DyL8yqXw.es.js +0 -8
- package/dist/xsl-ETbYGV_-.cjs.js +0 -1
- package/dist/yaml-7DV6pRKj.cjs.js +0 -1
- package/dist/yaml-Bbg74JKr.es.js +0 -6
- package/dist/zenscript-BWMxwjeH.cjs.js +0 -1
- package/dist/zenscript-C0RKE4nU.es.js +0 -6
- package/dist/zig-D6SXBGNm.es.js +0 -6
- package/dist/zig-yAcNfpgW.cjs.js +0 -1
package/README.md
CHANGED
|
@@ -17,4 +17,125 @@ import '@malloy-publisher/sdk/styles.css';
|
|
|
17
17
|
**Rendering a package**
|
|
18
18
|
```react
|
|
19
19
|
<Package name="ecommerce" projectName="malloy-samples" navigate={navigate} />
|
|
20
|
-
```
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Dimensional Filters
|
|
23
|
+
|
|
24
|
+
The SDK supports interactive dimensional filtering for notebooks and embedded data apps. Filters are configured through annotations in Malloy source files and notebooks.
|
|
25
|
+
|
|
26
|
+
### Filter Types
|
|
27
|
+
|
|
28
|
+
| Type | UI Component | Use Case |
|
|
29
|
+
|------|--------------|----------|
|
|
30
|
+
| `Star` | Multi-select dropdown | String fields with discrete values |
|
|
31
|
+
| `MinMax` | Range slider | Numeric fields |
|
|
32
|
+
| `DateMinMax` | Date range picker | Date/timestamp fields |
|
|
33
|
+
| `Retrieval` | Semantic search input | Free-text concept search |
|
|
34
|
+
| `Boolean` | Toggle switch | Boolean fields |
|
|
35
|
+
|
|
36
|
+
### Source Declaration Syntax
|
|
37
|
+
|
|
38
|
+
Add filter annotations to dimensions in your Malloy source files using the `#(filter)` tag:
|
|
39
|
+
|
|
40
|
+
```malloy
|
|
41
|
+
source: flights is duckdb.table('data/flights.parquet') extend {
|
|
42
|
+
dimension:
|
|
43
|
+
// Multi-select dropdown for string values
|
|
44
|
+
#(filter) {"type": "Star"}
|
|
45
|
+
origin_code is origin
|
|
46
|
+
|
|
47
|
+
// Range slider for numeric values
|
|
48
|
+
#(filter) {"type": "MinMax"}
|
|
49
|
+
distance_miles is distance
|
|
50
|
+
|
|
51
|
+
// Date range picker
|
|
52
|
+
#(filter) {"type": "DateMinMax"}
|
|
53
|
+
flight_departure is dep_time
|
|
54
|
+
|
|
55
|
+
join_one: carriers with carrier
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
source: carriers is duckdb.table('data/carriers.parquet') extend {
|
|
59
|
+
dimension:
|
|
60
|
+
#(filter) {"type": "Star"}
|
|
61
|
+
nickname is nickname_old
|
|
62
|
+
|
|
63
|
+
// Semantic search for text fields (requires embedding index)
|
|
64
|
+
#(index_values) n=-1
|
|
65
|
+
#(filter) {"type": "Retrieval"}
|
|
66
|
+
name is name_old
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
source: recalls is duckdb.table('data/recalls.csv') extend {
|
|
70
|
+
dimension:
|
|
71
|
+
// Boolean toggle filter
|
|
72
|
+
#(filter) {"type": "Boolean"}
|
|
73
|
+
is_major_recall is potentially_affected > 100000
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Notebook Annotation Syntax
|
|
78
|
+
|
|
79
|
+
Enable filters in a notebook by adding a `##(filters)` annotation in a Malloy code cell. This annotation specifies which dimensions should appear as filters using `source.dimension` format:
|
|
80
|
+
|
|
81
|
+
**Simple array format:**
|
|
82
|
+
```malloy
|
|
83
|
+
##(filters) ["flights.origin_code", "carriers.name", "flights.flight_departure"]
|
|
84
|
+
import {flights, carriers} from 'flights.malloy'
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The filter type for each dimension is determined by the `#(filter)` annotation on that dimension in the source file. If no source annotation exists, the dimension is ignored.
|
|
88
|
+
|
|
89
|
+
**Note**: Concept search is not supported by the Publisher.
|
|
90
|
+
When using the Notebook component, you supply an async function which implements the search for that column+query.
|
|
91
|
+
If no search function is supplied, the filter is ignored.
|
|
92
|
+
|
|
93
|
+
### React Hooks for Programmatic Filtering
|
|
94
|
+
|
|
95
|
+
For custom data apps, use the SDK's React hooks:
|
|
96
|
+
|
|
97
|
+
```tsx
|
|
98
|
+
import {
|
|
99
|
+
useDimensionFiltersFromSpec,
|
|
100
|
+
DimensionFiltersConfig
|
|
101
|
+
} from '@malloy-publisher/sdk';
|
|
102
|
+
|
|
103
|
+
const config: DimensionFiltersConfig = {
|
|
104
|
+
project: "malloy-samples",
|
|
105
|
+
package: "faa",
|
|
106
|
+
indexLimit: 1000,
|
|
107
|
+
dimensionSpecs: [
|
|
108
|
+
{ dimensionName: "origin_code", filterType: "Star", source: "flights", model: "flights.malloy" },
|
|
109
|
+
{ dimensionName: "distance", filterType: "MinMax", source: "flights", model: "flights.malloy" },
|
|
110
|
+
{ dimensionName: "dep_time", filterType: "DateMinMax", source: "flights", model: "flights.malloy" },
|
|
111
|
+
],
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
function FilteredDashboard() {
|
|
115
|
+
const {
|
|
116
|
+
filterStates, // Current filter values
|
|
117
|
+
updateFilter, // Update a single filter
|
|
118
|
+
clearAllFilters, // Reset all filters
|
|
119
|
+
activeFilters, // Array of active filter selections
|
|
120
|
+
data, // Dimension values for dropdowns/sliders
|
|
121
|
+
isLoading, // Loading state
|
|
122
|
+
executeQuery, // Run query with current filters
|
|
123
|
+
queryString, // Generated Malloy query
|
|
124
|
+
} = useDimensionFiltersFromSpec(config);
|
|
125
|
+
|
|
126
|
+
// Render filter UI and results...
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Match Types
|
|
131
|
+
|
|
132
|
+
Filters support different match types depending on the filter type:
|
|
133
|
+
|
|
134
|
+
| Match Type | Description | Applicable To |
|
|
135
|
+
|------------|-------------|---------------|
|
|
136
|
+
| `Equals` | Exact match (multi-select supported) | Star, Retrieval |
|
|
137
|
+
| `Contains` | Substring match | Star |
|
|
138
|
+
| `Greater Than` / `Less Than` | Comparison | MinMax |
|
|
139
|
+
| `Between` | Range (inclusive) | MinMax, DateMinMax |
|
|
140
|
+
| `After` / `Before` | Date comparison | DateMinMax |
|
|
141
|
+
| `Concept Search` | Semantic similarity | Retrieval |
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const Q=require("react/jsx-runtime"),F=require("@tanstack/react-query"),u=require("axios"),I=require("react"),m="http://localhost/api/v0".replace(/\/+$/,"");class C{constructor(a,e=m,r=u){this.basePath=e,this.axios=r,a&&(this.configuration=a,this.basePath=a.basePath??e)}configuration}class ae extends Error{constructor(a,e){super(e),this.field=a,this.name="RequiredError"}}const P={},V="https://example.com",d=function(c,a,e){if(e==null)throw new ae(a,`Required parameter ${a} was null or undefined when calling ${c}.`)};function R(c,a,e=""){a!=null&&(typeof a=="object"?Array.isArray(a)?a.forEach(r=>R(c,r,e)):Object.keys(a).forEach(r=>R(c,a[r],`${e}${e!==""?".":""}${r}`)):c.has(e)?c.append(e,a):c.set(e,a))}const b=function(c,...a){const e=new URLSearchParams(c.search);R(e,a),c.search=e.toString()},S=function(c,a,e){const r=typeof c!="string";return(r&&e&&e.isJsonMime?e.isJsonMime(a.headers["Content-Type"]):r)?JSON.stringify(c!==void 0?c:{}):c||""},O=function(c){return c.pathname+c.search+c.hash},g=function(c,a,e,r){return(t=a,o=e)=>{const s={...c.options,url:(t.defaults.baseURL?"":r?.basePath??o)+c.url};return t.request(s)}},re={Bigquery:"bigquery",Snowflake:"snowflake",Postgres:"postgres"},oe={Postgres:"postgres",Bigquery:"bigquery",Snowflake:"snowflake",Trino:"trino",Mysql:"mysql",Duckdb:"duckdb",Motherduck:"motherduck"},se={Ok:"ok",Failed:"failed"},ne={Embedded:"embedded",Materialized:"materialized"},ce={Markdown:"markdown",Code:"code"},le={Markdown:"markdown",Code:"code"},q=function(c){return{getConnection:async(a,e,r={})=>{d("getConnection","projectName",a),d("getConnection","connectionName",e);const t="/projects/{projectName}/connections/{connectionName}".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(t,V);let s;c&&(s=c.baseOptions);const n={method:"GET",...s,...r},l={};b(o,{});let p=s&&s.headers?s.headers:{};return n.headers={...l,...p,...r.headers},{url:O(o),options:n}},getQuerydata:async(a,e,r,t,o={})=>{d("getQuerydata","projectName",a),d("getQuerydata","connectionName",e);const s="/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"GET",...l,...o},p={},h={};r!==void 0&&(h.sqlStatement=r),t!==void 0&&(h.options=t),b(n,h);let y=l&&l.headers?l.headers:{};return i.headers={...p,...y,...o.headers},{url:O(n),options:i}},getSqlsource:async(a,e,r,t={})=>{d("getSqlsource","projectName",a),d("getSqlsource","connectionName",e);const o="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"GET",...n,...t},i={},p={};r!==void 0&&(p.sqlStatement=r),b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},{url:O(s),options:l}},getTable:async(a,e,r,t,o={})=>{d("getTable","projectName",a),d("getTable","connectionName",e),d("getTable","schemaName",r),d("getTable","tablePath",t);const s="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))).replace("{schemaName}",encodeURIComponent(String(r))).replace("{tablePath}",encodeURIComponent(String(t))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"GET",...l,...o},p={};b(n,{});let y=l&&l.headers?l.headers:{};return i.headers={...p,...y,...o.headers},{url:O(n),options:i}},getTablesource:async(a,e,r,t,o={})=>{d("getTablesource","projectName",a),d("getTablesource","connectionName",e);const s="/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"GET",...l,...o},p={},h={};r!==void 0&&(h.tableKey=r),t!==void 0&&(h.tablePath=t),b(n,h);let y=l&&l.headers?l.headers:{};return i.headers={...p,...y,...o.headers},{url:O(n),options:i}},getTemporarytable:async(a,e,r,t={})=>{d("getTemporarytable","projectName",a),d("getTemporarytable","connectionName",e);const o="/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"GET",...n,...t},i={},p={};r!==void 0&&(p.sqlStatement=r),b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},{url:O(s),options:l}},listConnections:async(a,e={})=>{d("listConnections","projectName",a);const r="/projects/{projectName}/connections".replace("{projectName}",encodeURIComponent(String(a))),t=new URL(r,V);let o;c&&(o=c.baseOptions);const s={method:"GET",...o,...e},n={};b(t,{});let i=o&&o.headers?o.headers:{};return s.headers={...n,...i,...e.headers},{url:O(t),options:s}},listSchemas:async(a,e,r={})=>{d("listSchemas","projectName",a),d("listSchemas","connectionName",e);const t="/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),o=new URL(t,V);let s;c&&(s=c.baseOptions);const n={method:"GET",...s,...r},l={};b(o,{});let p=s&&s.headers?s.headers:{};return n.headers={...l,...p,...r.headers},{url:O(o),options:n}},listTables:async(a,e,r,t={})=>{d("listTables","projectName",a),d("listTables","connectionName",e),d("listTables","schemaName",r);const o="/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))).replace("{schemaName}",encodeURIComponent(String(r))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"GET",...n,...t},i={};b(s,{});let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},{url:O(s),options:l}},postQuerydata:async(a,e,r,t,o={})=>{d("postQuerydata","projectName",a),d("postQuerydata","connectionName",e),d("postQuerydata","postSqlsourceRequest",r);const s="/projects/{projectName}/connections/{connectionName}/sqlQuery".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"POST",...l,...o},p={},h={};t!==void 0&&(h.options=t),p["Content-Type"]="application/json",b(n,h);let y=l&&l.headers?l.headers:{};return i.headers={...p,...y,...o.headers},i.data=S(r,i,c),{url:O(n),options:i}},postSqlsource:async(a,e,r,t={})=>{d("postSqlsource","projectName",a),d("postSqlsource","connectionName",e),d("postSqlsource","postSqlsourceRequest",r);const o="/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"POST",...n,...t},i={},p={};i["Content-Type"]="application/json",b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},l.data=S(r,l,c),{url:O(s),options:l}},postTemporarytable:async(a,e,r,t={})=>{d("postTemporarytable","projectName",a),d("postTemporarytable","connectionName",e),d("postTemporarytable","postSqlsourceRequest",r);const o="/projects/{projectName}/connections/{connectionName}/sqlTemporaryTable".replace("{projectName}",encodeURIComponent(String(a))).replace("{connectionName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"POST",...n,...t},i={},p={};i["Content-Type"]="application/json",b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},l.data=S(r,l,c),{url:O(s),options:l}}}},A=function(c){const a=q(c);return{async getConnection(e,r,t){const o=await a.getConnection(e,r,t),s=c?.serverIndex??0,n=P["ConnectionsApi.getConnection"]?.[s]?.url;return(l,i)=>g(o,u,m,c)(l,n||i)},async getQuerydata(e,r,t,o,s){const n=await a.getQuerydata(e,r,t,o,s),l=c?.serverIndex??0,i=P["ConnectionsApi.getQuerydata"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async getSqlsource(e,r,t,o){const s=await a.getSqlsource(e,r,t,o),n=c?.serverIndex??0,l=P["ConnectionsApi.getSqlsource"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)},async getTable(e,r,t,o,s){const n=await a.getTable(e,r,t,o,s),l=c?.serverIndex??0,i=P["ConnectionsApi.getTable"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async getTablesource(e,r,t,o,s){const n=await a.getTablesource(e,r,t,o,s),l=c?.serverIndex??0,i=P["ConnectionsApi.getTablesource"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async getTemporarytable(e,r,t,o){const s=await a.getTemporarytable(e,r,t,o),n=c?.serverIndex??0,l=P["ConnectionsApi.getTemporarytable"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)},async listConnections(e,r){const t=await a.listConnections(e,r),o=c?.serverIndex??0,s=P["ConnectionsApi.listConnections"]?.[o]?.url;return(n,l)=>g(t,u,m,c)(n,s||l)},async listSchemas(e,r,t){const o=await a.listSchemas(e,r,t),s=c?.serverIndex??0,n=P["ConnectionsApi.listSchemas"]?.[s]?.url;return(l,i)=>g(o,u,m,c)(l,n||i)},async listTables(e,r,t,o){const s=await a.listTables(e,r,t,o),n=c?.serverIndex??0,l=P["ConnectionsApi.listTables"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)},async postQuerydata(e,r,t,o,s){const n=await a.postQuerydata(e,r,t,o,s),l=c?.serverIndex??0,i=P["ConnectionsApi.postQuerydata"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async postSqlsource(e,r,t,o){const s=await a.postSqlsource(e,r,t,o),n=c?.serverIndex??0,l=P["ConnectionsApi.postSqlsource"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)},async postTemporarytable(e,r,t,o){const s=await a.postTemporarytable(e,r,t,o),n=c?.serverIndex??0,l=P["ConnectionsApi.postTemporarytable"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)}}},ie=function(c,a,e){const r=A(c);return{getConnection(t,o,s){return r.getConnection(t,o,s).then(n=>n(e,a))},getQuerydata(t,o,s,n,l){return r.getQuerydata(t,o,s,n,l).then(i=>i(e,a))},getSqlsource(t,o,s,n){return r.getSqlsource(t,o,s,n).then(l=>l(e,a))},getTable(t,o,s,n,l){return r.getTable(t,o,s,n,l).then(i=>i(e,a))},getTablesource(t,o,s,n,l){return r.getTablesource(t,o,s,n,l).then(i=>i(e,a))},getTemporarytable(t,o,s,n){return r.getTemporarytable(t,o,s,n).then(l=>l(e,a))},listConnections(t,o){return r.listConnections(t,o).then(s=>s(e,a))},listSchemas(t,o,s){return r.listSchemas(t,o,s).then(n=>n(e,a))},listTables(t,o,s,n){return r.listTables(t,o,s,n).then(l=>l(e,a))},postQuerydata(t,o,s,n,l){return r.postQuerydata(t,o,s,n,l).then(i=>i(e,a))},postSqlsource(t,o,s,n){return r.postSqlsource(t,o,s,n).then(l=>l(e,a))},postTemporarytable(t,o,s,n){return r.postTemporarytable(t,o,s,n).then(l=>l(e,a))}}};class B extends C{getConnection(a,e,r){return A(this.configuration).getConnection(a,e,r).then(t=>t(this.axios,this.basePath))}getQuerydata(a,e,r,t,o){return A(this.configuration).getQuerydata(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}getSqlsource(a,e,r,t){return A(this.configuration).getSqlsource(a,e,r,t).then(o=>o(this.axios,this.basePath))}getTable(a,e,r,t,o){return A(this.configuration).getTable(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}getTablesource(a,e,r,t,o){return A(this.configuration).getTablesource(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}getTemporarytable(a,e,r,t){return A(this.configuration).getTemporarytable(a,e,r,t).then(o=>o(this.axios,this.basePath))}listConnections(a,e){return A(this.configuration).listConnections(a,e).then(r=>r(this.axios,this.basePath))}listSchemas(a,e,r){return A(this.configuration).listSchemas(a,e,r).then(t=>t(this.axios,this.basePath))}listTables(a,e,r,t){return A(this.configuration).listTables(a,e,r,t).then(o=>o(this.axios,this.basePath))}postQuerydata(a,e,r,t,o){return A(this.configuration).postQuerydata(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}postSqlsource(a,e,r,t){return A(this.configuration).postSqlsource(a,e,r,t).then(o=>o(this.axios,this.basePath))}postTemporarytable(a,e,r,t){return A(this.configuration).postTemporarytable(a,e,r,t).then(o=>o(this.axios,this.basePath))}}const M=function(c){return{testConnectionConfiguration:async(a,e={})=>{d("testConnectionConfiguration","connection",a);const r="/connections/test",t=new URL(r,V);let o;c&&(o=c.baseOptions);const s={method:"POST",...o,...e},n={},l={};n["Content-Type"]="application/json",b(t,l);let i=o&&o.headers?o.headers:{};return s.headers={...n,...i,...e.headers},s.data=S(a,s,c),{url:O(t),options:s}}}},U=function(c){const a=M(c);return{async testConnectionConfiguration(e,r){const t=await a.testConnectionConfiguration(e,r),o=c?.serverIndex??0,s=P["ConnectionsTestApi.testConnectionConfiguration"]?.[o]?.url;return(n,l)=>g(t,u,m,c)(n,s||l)}}},pe=function(c,a,e){const r=U(c);return{testConnectionConfiguration(t,o){return r.testConnectionConfiguration(t,o).then(s=>s(e,a))}}};class de extends C{testConnectionConfiguration(a,e){return U(this.configuration).testConnectionConfiguration(a,e).then(r=>r(this.axios,this.basePath))}}const $=function(c){return{listDatabases:async(a,e,r,t={})=>{d("listDatabases","projectName",a),d("listDatabases","packageName",e);const o="/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"GET",...n,...t},i={},p={};r!==void 0&&(p.versionId=r),b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},{url:O(s),options:l}}}},T=function(c){const a=$(c);return{async listDatabases(e,r,t,o){const s=await a.listDatabases(e,r,t,o),n=c?.serverIndex??0,l=P["DatabasesApi.listDatabases"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)}}},he=function(c,a,e){const r=T(c);return{listDatabases(t,o,s,n){return r.listDatabases(t,o,s,n).then(l=>l(e,a))}}};class E extends C{listDatabases(a,e,r,t){return T(this.configuration).listDatabases(a,e,r,t).then(o=>o(this.axios,this.basePath))}}const L=function(c){return{executeQueryModel:async(a,e,r,t,o={})=>{d("executeQueryModel","projectName",a),d("executeQueryModel","packageName",e),d("executeQueryModel","path",r),d("executeQueryModel","queryRequest",t);const s="/projects/{projectName}/packages/{packageName}/models/{path}/query".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"POST",...l,...o},p={},h={};p["Content-Type"]="application/json",b(n,h);let y=l&&l.headers?l.headers:{};return i.headers={...p,...y,...o.headers},i.data=S(t,i,c),{url:O(n),options:i}},getModel:async(a,e,r,t,o={})=>{d("getModel","projectName",a),d("getModel","packageName",e),d("getModel","path",r);const s="/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"GET",...l,...o},p={},h={};t!==void 0&&(h.versionId=t),b(n,h);let y=l&&l.headers?l.headers:{};return i.headers={...p,...y,...o.headers},{url:O(n),options:i}},listModels:async(a,e,r,t={})=>{d("listModels","projectName",a),d("listModels","packageName",e);const o="/projects/{projectName}/packages/{packageName}/models".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"GET",...n,...t},i={},p={};r!==void 0&&(p.versionId=r),b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},{url:O(s),options:l}}}},k=function(c){const a=L(c);return{async executeQueryModel(e,r,t,o,s){const n=await a.executeQueryModel(e,r,t,o,s),l=c?.serverIndex??0,i=P["ModelsApi.executeQueryModel"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async getModel(e,r,t,o,s){const n=await a.getModel(e,r,t,o,s),l=c?.serverIndex??0,i=P["ModelsApi.getModel"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async listModels(e,r,t,o){const s=await a.listModels(e,r,t,o),n=c?.serverIndex??0,l=P["ModelsApi.listModels"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)}}},ue=function(c,a,e){const r=k(c);return{executeQueryModel(t,o,s,n,l){return r.executeQueryModel(t,o,s,n,l).then(i=>i(e,a))},getModel(t,o,s,n,l){return r.getModel(t,o,s,n,l).then(i=>i(e,a))},listModels(t,o,s,n){return r.listModels(t,o,s,n).then(l=>l(e,a))}}};class H extends C{executeQueryModel(a,e,r,t,o){return k(this.configuration).executeQueryModel(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}getModel(a,e,r,t,o){return k(this.configuration).getModel(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}listModels(a,e,r,t){return k(this.configuration).listModels(a,e,r,t).then(o=>o(this.axios,this.basePath))}}const W=function(c){return{executeNotebookCell:async(a,e,r,t,o,s={})=>{d("executeNotebookCell","projectName",a),d("executeNotebookCell","packageName",e),d("executeNotebookCell","path",r),d("executeNotebookCell","cellIndex",t);const n="/projects/{projectName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))).replace("{cellIndex}",encodeURIComponent(String(t))),l=new URL(n,V);let i;c&&(i=c.baseOptions);const p={method:"GET",...i,...s},h={},y={};o!==void 0&&(y.versionId=o),b(l,y);let te=i&&i.headers?i.headers:{};return p.headers={...h,...te,...s.headers},{url:O(l),options:p}},getNotebook:async(a,e,r,t,o={})=>{d("getNotebook","projectName",a),d("getNotebook","packageName",e),d("getNotebook","path",r);const s="/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))).replace("{path}",encodeURIComponent(String(r))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"GET",...l,...o},p={},h={};t!==void 0&&(h.versionId=t),b(n,h);let y=l&&l.headers?l.headers:{};return i.headers={...p,...y,...o.headers},{url:O(n),options:i}},listNotebooks:async(a,e,r,t={})=>{d("listNotebooks","projectName",a),d("listNotebooks","packageName",e);const o="/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"GET",...n,...t},i={},p={};r!==void 0&&(p.versionId=r),b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},{url:O(s),options:l}}}},N=function(c){const a=W(c);return{async executeNotebookCell(e,r,t,o,s,n){const l=await a.executeNotebookCell(e,r,t,o,s,n),i=c?.serverIndex??0,p=P["NotebooksApi.executeNotebookCell"]?.[i]?.url;return(h,y)=>g(l,u,m,c)(h,p||y)},async getNotebook(e,r,t,o,s){const n=await a.getNotebook(e,r,t,o,s),l=c?.serverIndex??0,i=P["NotebooksApi.getNotebook"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async listNotebooks(e,r,t,o){const s=await a.listNotebooks(e,r,t,o),n=c?.serverIndex??0,l=P["NotebooksApi.listNotebooks"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)}}},me=function(c,a,e){const r=N(c);return{executeNotebookCell(t,o,s,n,l,i){return r.executeNotebookCell(t,o,s,n,l,i).then(p=>p(e,a))},getNotebook(t,o,s,n,l){return r.getNotebook(t,o,s,n,l).then(i=>i(e,a))},listNotebooks(t,o,s,n){return r.listNotebooks(t,o,s,n).then(l=>l(e,a))}}};class D extends C{executeNotebookCell(a,e,r,t,o,s){return N(this.configuration).executeNotebookCell(a,e,r,t,o,s).then(n=>n(this.axios,this.basePath))}getNotebook(a,e,r,t,o){return N(this.configuration).getNotebook(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}listNotebooks(a,e,r,t){return N(this.configuration).listNotebooks(a,e,r,t).then(o=>o(this.axios,this.basePath))}}const G=function(c){return{createPackage:async(a,e,r={})=>{d("createPackage","projectName",a),d("createPackage","_package",e);const t="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(a))),o=new URL(t,V);let s;c&&(s=c.baseOptions);const n={method:"POST",...s,...r},l={},i={};l["Content-Type"]="application/json",b(o,i);let p=s&&s.headers?s.headers:{};return n.headers={...l,...p,...r.headers},n.data=S(e,n,c),{url:O(o),options:n}},deletePackage:async(a,e,r={})=>{d("deletePackage","projectName",a),d("deletePackage","packageName",e);const t="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))),o=new URL(t,V);let s;c&&(s=c.baseOptions);const n={method:"DELETE",...s,...r},l={};b(o,{});let p=s&&s.headers?s.headers:{};return n.headers={...l,...p,...r.headers},{url:O(o),options:n}},getPackage:async(a,e,r,t,o={})=>{d("getPackage","projectName",a),d("getPackage","packageName",e);const s="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))),n=new URL(s,V);let l;c&&(l=c.baseOptions);const i={method:"GET",...l,...o},p={},h={};r!==void 0&&(h.versionId=r),t!==void 0&&(h.reload=t),b(n,h);let y=l&&l.headers?l.headers:{};return i.headers={...p,...y,...o.headers},{url:O(n),options:i}},listPackages:async(a,e={})=>{d("listPackages","projectName",a);const r="/projects/{projectName}/packages".replace("{projectName}",encodeURIComponent(String(a))),t=new URL(r,V);let o;c&&(o=c.baseOptions);const s={method:"GET",...o,...e},n={};b(t,{});let i=o&&o.headers?o.headers:{};return s.headers={...n,...i,...e.headers},{url:O(t),options:s}},updatePackage:async(a,e,r,t={})=>{d("updatePackage","projectName",a),d("updatePackage","packageName",e),d("updatePackage","_package",r);const o="/projects/{projectName}/packages/{packageName}".replace("{projectName}",encodeURIComponent(String(a))).replace("{packageName}",encodeURIComponent(String(e))),s=new URL(o,V);let n;c&&(n=c.baseOptions);const l={method:"PATCH",...n,...t},i={},p={};i["Content-Type"]="application/json",b(s,p);let h=n&&n.headers?n.headers:{};return l.headers={...i,...h,...t.headers},l.data=S(r,l,c),{url:O(s),options:l}}}},j=function(c){const a=G(c);return{async createPackage(e,r,t){const o=await a.createPackage(e,r,t),s=c?.serverIndex??0,n=P["PackagesApi.createPackage"]?.[s]?.url;return(l,i)=>g(o,u,m,c)(l,n||i)},async deletePackage(e,r,t){const o=await a.deletePackage(e,r,t),s=c?.serverIndex??0,n=P["PackagesApi.deletePackage"]?.[s]?.url;return(l,i)=>g(o,u,m,c)(l,n||i)},async getPackage(e,r,t,o,s){const n=await a.getPackage(e,r,t,o,s),l=c?.serverIndex??0,i=P["PackagesApi.getPackage"]?.[l]?.url;return(p,h)=>g(n,u,m,c)(p,i||h)},async listPackages(e,r){const t=await a.listPackages(e,r),o=c?.serverIndex??0,s=P["PackagesApi.listPackages"]?.[o]?.url;return(n,l)=>g(t,u,m,c)(n,s||l)},async updatePackage(e,r,t,o){const s=await a.updatePackage(e,r,t,o),n=c?.serverIndex??0,l=P["PackagesApi.updatePackage"]?.[n]?.url;return(i,p)=>g(s,u,m,c)(i,l||p)}}},Pe=function(c,a,e){const r=j(c);return{createPackage(t,o,s){return r.createPackage(t,o,s).then(n=>n(e,a))},deletePackage(t,o,s){return r.deletePackage(t,o,s).then(n=>n(e,a))},getPackage(t,o,s,n,l){return r.getPackage(t,o,s,n,l).then(i=>i(e,a))},listPackages(t,o){return r.listPackages(t,o).then(s=>s(e,a))},updatePackage(t,o,s,n){return r.updatePackage(t,o,s,n).then(l=>l(e,a))}}};class f extends C{createPackage(a,e,r){return j(this.configuration).createPackage(a,e,r).then(t=>t(this.axios,this.basePath))}deletePackage(a,e,r){return j(this.configuration).deletePackage(a,e,r).then(t=>t(this.axios,this.basePath))}getPackage(a,e,r,t,o){return j(this.configuration).getPackage(a,e,r,t,o).then(s=>s(this.axios,this.basePath))}listPackages(a,e){return j(this.configuration).listPackages(a,e).then(r=>r(this.axios,this.basePath))}updatePackage(a,e,r,t){return j(this.configuration).updatePackage(a,e,r,t).then(o=>o(this.axios,this.basePath))}}const z=function(c){return{createProject:async(a,e={})=>{d("createProject","project",a);const r="/projects",t=new URL(r,V);let o;c&&(o=c.baseOptions);const s={method:"POST",...o,...e},n={},l={};n["Content-Type"]="application/json",b(t,l);let i=o&&o.headers?o.headers:{};return s.headers={...n,...i,...e.headers},s.data=S(a,s,c),{url:O(t),options:s}},deleteProject:async(a,e={})=>{d("deleteProject","projectName",a);const r="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(a))),t=new URL(r,V);let o;c&&(o=c.baseOptions);const s={method:"DELETE",...o,...e},n={};b(t,{});let i=o&&o.headers?o.headers:{};return s.headers={...n,...i,...e.headers},{url:O(t),options:s}},getProject:async(a,e,r={})=>{d("getProject","projectName",a);const t="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(a))),o=new URL(t,V);let s;c&&(s=c.baseOptions);const n={method:"GET",...s,...r},l={},i={};e!==void 0&&(i.reload=e),b(o,i);let p=s&&s.headers?s.headers:{};return n.headers={...l,...p,...r.headers},{url:O(o),options:n}},listProjects:async(a={})=>{const e="/projects",r=new URL(e,V);let t;c&&(t=c.baseOptions);const o={method:"GET",...t,...a},s={};b(r,{});let l=t&&t.headers?t.headers:{};return o.headers={...s,...l,...a.headers},{url:O(r),options:o}},updateProject:async(a,e,r={})=>{d("updateProject","projectName",a),d("updateProject","project",e);const t="/projects/{projectName}".replace("{projectName}",encodeURIComponent(String(a))),o=new URL(t,V);let s;c&&(s=c.baseOptions);const n={method:"PATCH",...s,...r},l={},i={};l["Content-Type"]="application/json",b(o,i);let p=s&&s.headers?s.headers:{};return n.headers={...l,...p,...r.headers},n.data=S(e,n,c),{url:O(o),options:n}}}},x=function(c){const a=z(c);return{async createProject(e,r){const t=await a.createProject(e,r),o=c?.serverIndex??0,s=P["ProjectsApi.createProject"]?.[o]?.url;return(n,l)=>g(t,u,m,c)(n,s||l)},async deleteProject(e,r){const t=await a.deleteProject(e,r),o=c?.serverIndex??0,s=P["ProjectsApi.deleteProject"]?.[o]?.url;return(n,l)=>g(t,u,m,c)(n,s||l)},async getProject(e,r,t){const o=await a.getProject(e,r,t),s=c?.serverIndex??0,n=P["ProjectsApi.getProject"]?.[s]?.url;return(l,i)=>g(o,u,m,c)(l,n||i)},async listProjects(e){const r=await a.listProjects(e),t=c?.serverIndex??0,o=P["ProjectsApi.listProjects"]?.[t]?.url;return(s,n)=>g(r,u,m,c)(s,o||n)},async updateProject(e,r,t){const o=await a.updateProject(e,r,t),s=c?.serverIndex??0,n=P["ProjectsApi.updateProject"]?.[s]?.url;return(l,i)=>g(o,u,m,c)(l,n||i)}}},Ve=function(c,a,e){const r=x(c);return{createProject(t,o){return r.createProject(t,o).then(s=>s(e,a))},deleteProject(t,o){return r.deleteProject(t,o).then(s=>s(e,a))},getProject(t,o,s){return r.getProject(t,o,s).then(n=>n(e,a))},listProjects(t){return r.listProjects(t).then(o=>o(e,a))},updateProject(t,o,s){return r.updateProject(t,o,s).then(n=>n(e,a))}}};class J extends C{createProject(a,e){return x(this.configuration).createProject(a,e).then(r=>r(this.axios,this.basePath))}deleteProject(a,e){return x(this.configuration).deleteProject(a,e).then(r=>r(this.axios,this.basePath))}getProject(a,e,r){return x(this.configuration).getProject(a,e,r).then(t=>t(this.axios,this.basePath))}listProjects(a){return x(this.configuration).listProjects(a).then(e=>e(this.axios,this.basePath))}updateProject(a,e,r){return x(this.configuration).updateProject(a,e,r).then(t=>t(this.axios,this.basePath))}}const K=function(c){return{getStatus:async(a={})=>{const e="/status",r=new URL(e,V);let t;c&&(t=c.baseOptions);const o={method:"GET",...t,...a},s={};b(r,{});let l=t&&t.headers?t.headers:{};return o.headers={...s,...l,...a.headers},{url:O(r),options:o}}}},w=function(c){const a=K(c);return{async getStatus(e){const r=await a.getStatus(e),t=c?.serverIndex??0,o=P["PublisherApi.getStatus"]?.[t]?.url;return(s,n)=>g(r,u,m,c)(s,o||n)}}},be=function(c,a,e){const r=w(c);return{getStatus(t){return r.getStatus(t).then(o=>o(e,a))}}};class Oe extends C{getStatus(a){return w(this.configuration).getStatus(a).then(e=>e(this.axios,this.basePath))}}const Y=function(c){return{getWatchStatus:async(a={})=>{const e="/watch-mode/status",r=new URL(e,V);let t;c&&(t=c.baseOptions);const o={method:"GET",...t,...a},s={};b(r,{});let l=t&&t.headers?t.headers:{};return o.headers={...s,...l,...a.headers},{url:O(r),options:o}},startWatching:async(a,e={})=>{d("startWatching","startWatchRequest",a);const r="/watch-mode/start",t=new URL(r,V);let o;c&&(o=c.baseOptions);const s={method:"POST",...o,...e},n={},l={};n["Content-Type"]="application/json",b(t,l);let i=o&&o.headers?o.headers:{};return s.headers={...n,...i,...e.headers},s.data=S(a,s,c),{url:O(t),options:s}},stopWatching:async(a={})=>{const e="/watch-mode/stop",r=new URL(e,V);let t;c&&(t=c.baseOptions);const o={method:"POST",...t,...a},s={};b(r,{});let l=t&&t.headers?t.headers:{};return o.headers={...s,...l,...a.headers},{url:O(r),options:o}}}},v=function(c){const a=Y(c);return{async getWatchStatus(e){const r=await a.getWatchStatus(e),t=c?.serverIndex??0,o=P["WatchModeApi.getWatchStatus"]?.[t]?.url;return(s,n)=>g(r,u,m,c)(s,o||n)},async startWatching(e,r){const t=await a.startWatching(e,r),o=c?.serverIndex??0,s=P["WatchModeApi.startWatching"]?.[o]?.url;return(n,l)=>g(t,u,m,c)(n,s||l)},async stopWatching(e){const r=await a.stopWatching(e),t=c?.serverIndex??0,o=P["WatchModeApi.stopWatching"]?.[t]?.url;return(s,n)=>g(r,u,m,c)(s,o||n)}}},ge=function(c,a,e){const r=v(c);return{getWatchStatus(t){return r.getWatchStatus(t).then(o=>o(e,a))},startWatching(t,o){return r.startWatching(t,o).then(s=>s(e,a))},stopWatching(t){return r.stopWatching(t).then(o=>o(e,a))}}};class _ extends C{getWatchStatus(a){return v(this.configuration).getWatchStatus(a).then(e=>e(this.axios,this.basePath))}startWatching(a,e){return v(this.configuration).startWatching(a,e).then(r=>r(this.axios,this.basePath))}stopWatching(a){return v(this.configuration).stopWatching(a).then(e=>e(this.axios,this.basePath))}}class X{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(a={}){this.apiKey=a.apiKey,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.serverIndex=a.serverIndex,this.baseOptions={...a.baseOptions,headers:{...a.baseOptions?.headers}},this.formDataCtor=a.formDataCtor}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return a!==null&&(e.test(a)||a.toLowerCase()==="application/json-patch+json")}}const Z=new F.QueryClient({defaultOptions:{queries:{retry:!1,throwOnError:!1},mutations:{retry:!1,throwOnError:!1}}}),ee=I.createContext(void 0),ye=(c,a)=>{const e=`${window.location.protocol}//${window.location.host}/api/v0`,r=u.create({baseURL:c||e,withCredentials:!0,timeout:6e5});r.interceptors.request.use(async o=>{const s=await a?.();return o.headers.Authorization=s||"",o});const t=new X({basePath:e});return{models:new H(t,e,r),projects:new J(t,e,r),packages:new f(t,e,r),notebooks:new D(t,e,r),connections:new B(t,e,r),databases:new E(t,e,r),watchMode:new _(t,e,r)}},Ae=({children:c,getAccessToken:a,baseURL:e,mutable:r=!0})=>{const t=I.useMemo(()=>ye(e,a),[e,a]),o={server:e||`${window.location.protocol}//${window.location.host}/api/v0`,getAccessToken:a,apiClients:t,mutable:r};return Q.jsx(F.QueryClientProvider,{client:Z,children:Q.jsx(ee.Provider,{value:o,children:c})})},Se=()=>{const c=I.useContext(ee);if(c===void 0)throw new Error("useServer must be used within a ServerProvider");return c};exports.AttachedDatabaseTypeEnum=re;exports.Configuration=X;exports.ConnectionStatusStatusEnum=se;exports.ConnectionTypeEnum=oe;exports.ConnectionsApi=B;exports.ConnectionsApiAxiosParamCreator=q;exports.ConnectionsApiFactory=ie;exports.ConnectionsApiFp=A;exports.ConnectionsTestApi=de;exports.ConnectionsTestApiAxiosParamCreator=M;exports.ConnectionsTestApiFactory=pe;exports.ConnectionsTestApiFp=U;exports.DatabaseTypeEnum=ne;exports.DatabasesApi=E;exports.DatabasesApiAxiosParamCreator=$;exports.DatabasesApiFactory=he;exports.DatabasesApiFp=T;exports.ModelsApi=H;exports.ModelsApiAxiosParamCreator=L;exports.ModelsApiFactory=ue;exports.ModelsApiFp=k;exports.NotebookCellResultTypeEnum=le;exports.NotebookCellTypeEnum=ce;exports.NotebooksApi=D;exports.NotebooksApiAxiosParamCreator=W;exports.NotebooksApiFactory=me;exports.NotebooksApiFp=N;exports.PackagesApi=f;exports.PackagesApiAxiosParamCreator=G;exports.PackagesApiFactory=Pe;exports.PackagesApiFp=j;exports.ProjectsApi=J;exports.ProjectsApiAxiosParamCreator=z;exports.ProjectsApiFactory=Ve;exports.ProjectsApiFp=x;exports.PublisherApi=Oe;exports.PublisherApiAxiosParamCreator=K;exports.PublisherApiFactory=be;exports.PublisherApiFp=w;exports.ServerProvider=Ae;exports.WatchModeApi=_;exports.WatchModeApiAxiosParamCreator=Y;exports.WatchModeApiFactory=ge;exports.WatchModeApiFp=v;exports.globalQueryClient=Z;exports.useServer=Se;
|
|
@@ -2,32 +2,21 @@ import { jsx as I } from "react/jsx-runtime";
|
|
|
2
2
|
import { QueryClient as B, QueryClientProvider as $ } from "@tanstack/react-query";
|
|
3
3
|
import u from "axios";
|
|
4
4
|
import { useContext as F, createContext as M, useMemo as E } from "react";
|
|
5
|
-
const
|
|
6
|
-
defaultOptions: {
|
|
7
|
-
queries: {
|
|
8
|
-
retry: !1,
|
|
9
|
-
throwOnError: !1
|
|
10
|
-
},
|
|
11
|
-
mutations: {
|
|
12
|
-
retry: !1,
|
|
13
|
-
throwOnError: !1
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}), m = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
5
|
+
const m = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
17
6
|
class x {
|
|
18
7
|
constructor(a, e = m, r = u) {
|
|
19
8
|
this.basePath = e, this.axios = r, a && (this.configuration = a, this.basePath = a.basePath ?? e);
|
|
20
9
|
}
|
|
21
10
|
configuration;
|
|
22
11
|
}
|
|
23
|
-
class
|
|
12
|
+
class L extends Error {
|
|
24
13
|
constructor(a, e) {
|
|
25
14
|
super(e), this.field = a, this.name = "RequiredError";
|
|
26
15
|
}
|
|
27
16
|
}
|
|
28
17
|
const P = {}, V = "https://example.com", d = function(c, a, e) {
|
|
29
18
|
if (e == null)
|
|
30
|
-
throw new
|
|
19
|
+
throw new L(a, `Required parameter ${a} was null or undefined when calling ${c}.`);
|
|
31
20
|
};
|
|
32
21
|
function R(c, a, e = "") {
|
|
33
22
|
a != null && (typeof a == "object" ? Array.isArray(a) ? a.forEach((r) => R(c, r, e)) : Object.keys(a).forEach(
|
|
@@ -71,7 +60,7 @@ const b = function(c, ...a) {
|
|
|
71
60
|
}, Ve = {
|
|
72
61
|
Markdown: "markdown",
|
|
73
62
|
Code: "code"
|
|
74
|
-
},
|
|
63
|
+
}, H = function(c) {
|
|
75
64
|
return {
|
|
76
65
|
/**
|
|
77
66
|
* Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
@@ -343,7 +332,7 @@ const b = function(c, ...a) {
|
|
|
343
332
|
}
|
|
344
333
|
};
|
|
345
334
|
}, S = function(c) {
|
|
346
|
-
const a =
|
|
335
|
+
const a = H(c);
|
|
347
336
|
return {
|
|
348
337
|
/**
|
|
349
338
|
* Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
@@ -659,7 +648,7 @@ const b = function(c, ...a) {
|
|
|
659
648
|
}
|
|
660
649
|
};
|
|
661
650
|
};
|
|
662
|
-
class
|
|
651
|
+
class W extends x {
|
|
663
652
|
/**
|
|
664
653
|
* Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
665
654
|
* @summary Get connection details
|
|
@@ -821,7 +810,7 @@ class D extends x {
|
|
|
821
810
|
return S(this.configuration).postTemporarytable(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
822
811
|
}
|
|
823
812
|
}
|
|
824
|
-
const
|
|
813
|
+
const D = function(c) {
|
|
825
814
|
return {
|
|
826
815
|
/**
|
|
827
816
|
* Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
@@ -845,7 +834,7 @@ const f = function(c) {
|
|
|
845
834
|
}
|
|
846
835
|
};
|
|
847
836
|
}, U = function(c) {
|
|
848
|
-
const a =
|
|
837
|
+
const a = D(c);
|
|
849
838
|
return {
|
|
850
839
|
/**
|
|
851
840
|
* Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
@@ -887,7 +876,7 @@ class ge extends x {
|
|
|
887
876
|
return U(this.configuration).testConnectionConfiguration(a, e).then((r) => r(this.axios, this.basePath));
|
|
888
877
|
}
|
|
889
878
|
}
|
|
890
|
-
const
|
|
879
|
+
const f = function(c) {
|
|
891
880
|
return {
|
|
892
881
|
/**
|
|
893
882
|
* Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
@@ -913,7 +902,7 @@ const G = function(c) {
|
|
|
913
902
|
}
|
|
914
903
|
};
|
|
915
904
|
}, w = function(c) {
|
|
916
|
-
const a =
|
|
905
|
+
const a = f(c);
|
|
917
906
|
return {
|
|
918
907
|
/**
|
|
919
908
|
* Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
@@ -946,7 +935,7 @@ const G = function(c) {
|
|
|
946
935
|
}
|
|
947
936
|
};
|
|
948
937
|
};
|
|
949
|
-
class
|
|
938
|
+
class G extends x {
|
|
950
939
|
/**
|
|
951
940
|
* Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
952
941
|
* @summary List embedded databases
|
|
@@ -961,7 +950,7 @@ class z extends x {
|
|
|
961
950
|
return w(this.configuration).listDatabases(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
962
951
|
}
|
|
963
952
|
}
|
|
964
|
-
const
|
|
953
|
+
const z = function(c) {
|
|
965
954
|
return {
|
|
966
955
|
/**
|
|
967
956
|
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
|
|
@@ -1033,7 +1022,7 @@ const J = function(c) {
|
|
|
1033
1022
|
}
|
|
1034
1023
|
};
|
|
1035
1024
|
}, k = function(c) {
|
|
1036
|
-
const a =
|
|
1025
|
+
const a = z(c);
|
|
1037
1026
|
return {
|
|
1038
1027
|
/**
|
|
1039
1028
|
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
|
|
@@ -1120,7 +1109,7 @@ const J = function(c) {
|
|
|
1120
1109
|
}
|
|
1121
1110
|
};
|
|
1122
1111
|
};
|
|
1123
|
-
class
|
|
1112
|
+
class J extends x {
|
|
1124
1113
|
/**
|
|
1125
1114
|
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
|
|
1126
1115
|
* @summary Execute Malloy query
|
|
@@ -1163,7 +1152,7 @@ class K extends x {
|
|
|
1163
1152
|
return k(this.configuration).listModels(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
1164
1153
|
}
|
|
1165
1154
|
}
|
|
1166
|
-
const
|
|
1155
|
+
const K = function(c) {
|
|
1167
1156
|
return {
|
|
1168
1157
|
/**
|
|
1169
1158
|
* Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
|
|
@@ -1236,7 +1225,7 @@ const Y = function(c) {
|
|
|
1236
1225
|
}
|
|
1237
1226
|
};
|
|
1238
1227
|
}, N = function(c) {
|
|
1239
|
-
const a =
|
|
1228
|
+
const a = K(c);
|
|
1240
1229
|
return {
|
|
1241
1230
|
/**
|
|
1242
1231
|
* Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
|
|
@@ -1325,7 +1314,7 @@ const Y = function(c) {
|
|
|
1325
1314
|
}
|
|
1326
1315
|
};
|
|
1327
1316
|
};
|
|
1328
|
-
class
|
|
1317
|
+
class Y extends x {
|
|
1329
1318
|
/**
|
|
1330
1319
|
* Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
|
|
1331
1320
|
* @summary Execute a specific notebook cell
|
|
@@ -1369,7 +1358,7 @@ class _ extends x {
|
|
|
1369
1358
|
return N(this.configuration).listNotebooks(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
1370
1359
|
}
|
|
1371
1360
|
}
|
|
1372
|
-
const
|
|
1361
|
+
const _ = function(c) {
|
|
1373
1362
|
return {
|
|
1374
1363
|
/**
|
|
1375
1364
|
* Creates a new Malloy package within the specified project. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
@@ -1480,7 +1469,7 @@ const X = function(c) {
|
|
|
1480
1469
|
}
|
|
1481
1470
|
};
|
|
1482
1471
|
}, C = function(c) {
|
|
1483
|
-
const a =
|
|
1472
|
+
const a = _(c);
|
|
1484
1473
|
return {
|
|
1485
1474
|
/**
|
|
1486
1475
|
* Creates a new Malloy package within the specified project. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
@@ -1607,7 +1596,7 @@ const X = function(c) {
|
|
|
1607
1596
|
}
|
|
1608
1597
|
};
|
|
1609
1598
|
};
|
|
1610
|
-
class
|
|
1599
|
+
class X extends x {
|
|
1611
1600
|
/**
|
|
1612
1601
|
* Creates a new Malloy package within the specified project. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
1613
1602
|
* @summary Create a new package
|
|
@@ -1671,7 +1660,7 @@ class Z extends x {
|
|
|
1671
1660
|
return C(this.configuration).updatePackage(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
1672
1661
|
}
|
|
1673
1662
|
}
|
|
1674
|
-
const
|
|
1663
|
+
const Z = function(c) {
|
|
1675
1664
|
return {
|
|
1676
1665
|
/**
|
|
1677
1666
|
* Creates a new Malloy project with the specified configuration. A project serves as a container for packages, connections, and other resources. The project will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -1775,7 +1764,7 @@ const ee = function(c) {
|
|
|
1775
1764
|
}
|
|
1776
1765
|
};
|
|
1777
1766
|
}, A = function(c) {
|
|
1778
|
-
const a =
|
|
1767
|
+
const a = Z(c);
|
|
1779
1768
|
return {
|
|
1780
1769
|
/**
|
|
1781
1770
|
* Creates a new Malloy project with the specified configuration. A project serves as a container for packages, connections, and other resources. The project will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -1890,7 +1879,7 @@ const ee = function(c) {
|
|
|
1890
1879
|
}
|
|
1891
1880
|
};
|
|
1892
1881
|
};
|
|
1893
|
-
class
|
|
1882
|
+
class ee extends x {
|
|
1894
1883
|
/**
|
|
1895
1884
|
* Creates a new Malloy project with the specified configuration. A project serves as a container for packages, connections, and other resources. The project will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
1896
1885
|
* @summary Create a new project
|
|
@@ -1948,7 +1937,7 @@ class te extends x {
|
|
|
1948
1937
|
return A(this.configuration).updateProject(a, e, r).then((t) => t(this.axios, this.basePath));
|
|
1949
1938
|
}
|
|
1950
1939
|
}
|
|
1951
|
-
const
|
|
1940
|
+
const te = function(c) {
|
|
1952
1941
|
return {
|
|
1953
1942
|
/**
|
|
1954
1943
|
* Returns the current status of the Malloy Publisher server, including initialization state, available projects, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
@@ -1970,7 +1959,7 @@ const ae = function(c) {
|
|
|
1970
1959
|
}
|
|
1971
1960
|
};
|
|
1972
1961
|
}, T = function(c) {
|
|
1973
|
-
const a =
|
|
1962
|
+
const a = te(c);
|
|
1974
1963
|
return {
|
|
1975
1964
|
/**
|
|
1976
1965
|
* Returns the current status of the Malloy Publisher server, including initialization state, available projects, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
@@ -2009,7 +1998,7 @@ class ke extends x {
|
|
|
2009
1998
|
return T(this.configuration).getStatus(a).then((e) => e(this.axios, this.basePath));
|
|
2010
1999
|
}
|
|
2011
2000
|
}
|
|
2012
|
-
const
|
|
2001
|
+
const ae = function(c) {
|
|
2013
2002
|
return {
|
|
2014
2003
|
/**
|
|
2015
2004
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which project is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -2069,7 +2058,7 @@ const re = function(c) {
|
|
|
2069
2058
|
}
|
|
2070
2059
|
};
|
|
2071
2060
|
}, v = function(c) {
|
|
2072
|
-
const a =
|
|
2061
|
+
const a = ae(c);
|
|
2073
2062
|
return {
|
|
2074
2063
|
/**
|
|
2075
2064
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which project is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -2136,7 +2125,7 @@ const re = function(c) {
|
|
|
2136
2125
|
}
|
|
2137
2126
|
};
|
|
2138
2127
|
};
|
|
2139
|
-
class
|
|
2128
|
+
class re extends x {
|
|
2140
2129
|
/**
|
|
2141
2130
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which project is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
2142
2131
|
* @summary Get watch mode status
|
|
@@ -2169,7 +2158,7 @@ class oe extends x {
|
|
|
2169
2158
|
return v(this.configuration).stopWatching(a).then((e) => e(this.axios, this.basePath));
|
|
2170
2159
|
}
|
|
2171
2160
|
}
|
|
2172
|
-
class
|
|
2161
|
+
class oe {
|
|
2173
2162
|
/**
|
|
2174
2163
|
* parameter for apiKey security
|
|
2175
2164
|
* @param name security name
|
|
@@ -2249,7 +2238,18 @@ class se {
|
|
|
2249
2238
|
return a !== null && (e.test(a) || a.toLowerCase() === "application/json-patch+json");
|
|
2250
2239
|
}
|
|
2251
2240
|
}
|
|
2252
|
-
const
|
|
2241
|
+
const se = new B({
|
|
2242
|
+
defaultOptions: {
|
|
2243
|
+
queries: {
|
|
2244
|
+
retry: !1,
|
|
2245
|
+
throwOnError: !1
|
|
2246
|
+
},
|
|
2247
|
+
mutations: {
|
|
2248
|
+
retry: !1,
|
|
2249
|
+
throwOnError: !1
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
}), Q = M(void 0), ne = (c, a) => {
|
|
2253
2253
|
const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = u.create({
|
|
2254
2254
|
baseURL: c || e,
|
|
2255
2255
|
withCredentials: !0,
|
|
@@ -2259,15 +2259,15 @@ const Q = M(void 0), ne = (c, a) => {
|
|
|
2259
2259
|
const s = await a?.();
|
|
2260
2260
|
return o.headers.Authorization = s || "", o;
|
|
2261
2261
|
});
|
|
2262
|
-
const t = new
|
|
2262
|
+
const t = new oe({ basePath: e });
|
|
2263
2263
|
return {
|
|
2264
|
-
models: new
|
|
2265
|
-
projects: new
|
|
2266
|
-
packages: new
|
|
2267
|
-
notebooks: new
|
|
2268
|
-
connections: new
|
|
2269
|
-
databases: new
|
|
2270
|
-
watchMode: new
|
|
2264
|
+
models: new J(t, e, r),
|
|
2265
|
+
projects: new ee(t, e, r),
|
|
2266
|
+
packages: new X(t, e, r),
|
|
2267
|
+
notebooks: new Y(t, e, r),
|
|
2268
|
+
connections: new W(t, e, r),
|
|
2269
|
+
databases: new G(t, e, r),
|
|
2270
|
+
watchMode: new re(t, e, r)
|
|
2271
2271
|
};
|
|
2272
2272
|
}, ve = ({
|
|
2273
2273
|
children: c,
|
|
@@ -2284,7 +2284,7 @@ const Q = M(void 0), ne = (c, a) => {
|
|
|
2284
2284
|
apiClients: t,
|
|
2285
2285
|
mutable: r
|
|
2286
2286
|
};
|
|
2287
|
-
return /* @__PURE__ */ I($, { client:
|
|
2287
|
+
return /* @__PURE__ */ I($, { client: se, children: /* @__PURE__ */ I(Q.Provider, { value: o, children: c }) });
|
|
2288
2288
|
}, Re = () => {
|
|
2289
2289
|
const c = F(Q);
|
|
2290
2290
|
if (c === void 0)
|
|
@@ -2293,49 +2293,49 @@ const Q = M(void 0), ne = (c, a) => {
|
|
|
2293
2293
|
};
|
|
2294
2294
|
export {
|
|
2295
2295
|
de as A,
|
|
2296
|
-
|
|
2296
|
+
Z as B,
|
|
2297
2297
|
he as C,
|
|
2298
2298
|
me as D,
|
|
2299
2299
|
A as E,
|
|
2300
2300
|
Ce as F,
|
|
2301
|
-
|
|
2302
|
-
|
|
2301
|
+
ee as G,
|
|
2302
|
+
te as H,
|
|
2303
2303
|
T as I,
|
|
2304
2304
|
Ae as J,
|
|
2305
2305
|
ke as K,
|
|
2306
2306
|
v as L,
|
|
2307
|
-
|
|
2307
|
+
z as M,
|
|
2308
2308
|
Pe as N,
|
|
2309
2309
|
Ne as O,
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2310
|
+
_ as P,
|
|
2311
|
+
re as Q,
|
|
2312
|
+
oe as R,
|
|
2313
2313
|
ve as S,
|
|
2314
|
-
|
|
2314
|
+
ae as W,
|
|
2315
2315
|
ue as a,
|
|
2316
2316
|
Ve as b,
|
|
2317
|
-
|
|
2317
|
+
H as c,
|
|
2318
2318
|
S as d,
|
|
2319
2319
|
be as e,
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2320
|
+
W as f,
|
|
2321
|
+
se as g,
|
|
2322
|
+
D as h,
|
|
2323
2323
|
U as i,
|
|
2324
2324
|
Oe as j,
|
|
2325
2325
|
ge as k,
|
|
2326
|
-
|
|
2326
|
+
f as l,
|
|
2327
2327
|
w as m,
|
|
2328
2328
|
ye as n,
|
|
2329
|
-
|
|
2329
|
+
G as o,
|
|
2330
2330
|
k as p,
|
|
2331
2331
|
Se as q,
|
|
2332
|
-
|
|
2333
|
-
|
|
2332
|
+
J as r,
|
|
2333
|
+
K as s,
|
|
2334
2334
|
N as t,
|
|
2335
2335
|
Re as u,
|
|
2336
2336
|
je as v,
|
|
2337
|
-
|
|
2337
|
+
Y as w,
|
|
2338
2338
|
C as x,
|
|
2339
2339
|
xe as y,
|
|
2340
|
-
|
|
2340
|
+
X as z
|
|
2341
2341
|
};
|
package/dist/client/api.d.ts
CHANGED
|
@@ -503,6 +503,18 @@ export interface NotebookCell {
|
|
|
503
503
|
* @memberof NotebookCell
|
|
504
504
|
*/
|
|
505
505
|
'text'?: string;
|
|
506
|
+
/**
|
|
507
|
+
* Array of JSON strings containing SourceInfo objects made available in this cell
|
|
508
|
+
* @type {Array<string>}
|
|
509
|
+
* @memberof NotebookCell
|
|
510
|
+
*/
|
|
511
|
+
'newSources'?: Array<string>;
|
|
512
|
+
/**
|
|
513
|
+
* JSON string containing QueryInfo object for the query in this cell (if the cell contains a query)
|
|
514
|
+
* @type {string}
|
|
515
|
+
* @memberof NotebookCell
|
|
516
|
+
*/
|
|
517
|
+
'queryInfo'?: string;
|
|
506
518
|
}
|
|
507
519
|
export declare const NotebookCellTypeEnum: {
|
|
508
520
|
readonly Markdown: "markdown";
|
|
@@ -805,6 +817,12 @@ export interface RawNotebook {
|
|
|
805
817
|
* @memberof RawNotebook
|
|
806
818
|
*/
|
|
807
819
|
'notebookCells'?: Array<NotebookCell>;
|
|
820
|
+
/**
|
|
821
|
+
* Array of file-level (##) annotations attached to the notebook
|
|
822
|
+
* @type {Array<string>}
|
|
823
|
+
* @memberof RawNotebook
|
|
824
|
+
*/
|
|
825
|
+
'annotations'?: Array<string>;
|
|
808
826
|
}
|
|
809
827
|
/**
|
|
810
828
|
* A schema name in a Connection.
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../ServerProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../ServerProvider-Bzid56gJ.cjs.js");exports.AttachedDatabaseTypeEnum=o.AttachedDatabaseTypeEnum;exports.Configuration=o.Configuration;exports.ConnectionStatusStatusEnum=o.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=o.ConnectionTypeEnum;exports.ConnectionsApi=o.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=o.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=o.ConnectionsApiFactory;exports.ConnectionsApiFp=o.ConnectionsApiFp;exports.ConnectionsTestApi=o.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=o.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=o.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=o.ConnectionsTestApiFp;exports.DatabaseTypeEnum=o.DatabaseTypeEnum;exports.DatabasesApi=o.DatabasesApi;exports.DatabasesApiAxiosParamCreator=o.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=o.DatabasesApiFactory;exports.DatabasesApiFp=o.DatabasesApiFp;exports.ModelsApi=o.ModelsApi;exports.ModelsApiAxiosParamCreator=o.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=o.ModelsApiFactory;exports.ModelsApiFp=o.ModelsApiFp;exports.NotebookCellResultTypeEnum=o.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=o.NotebookCellTypeEnum;exports.NotebooksApi=o.NotebooksApi;exports.NotebooksApiAxiosParamCreator=o.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=o.NotebooksApiFactory;exports.NotebooksApiFp=o.NotebooksApiFp;exports.PackagesApi=o.PackagesApi;exports.PackagesApiAxiosParamCreator=o.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=o.PackagesApiFactory;exports.PackagesApiFp=o.PackagesApiFp;exports.ProjectsApi=o.ProjectsApi;exports.ProjectsApiAxiosParamCreator=o.ProjectsApiAxiosParamCreator;exports.ProjectsApiFactory=o.ProjectsApiFactory;exports.ProjectsApiFp=o.ProjectsApiFp;exports.PublisherApi=o.PublisherApi;exports.PublisherApiAxiosParamCreator=o.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=o.PublisherApiFactory;exports.PublisherApiFp=o.PublisherApiFp;exports.ServerProvider=o.ServerProvider;exports.WatchModeApi=o.WatchModeApi;exports.WatchModeApiAxiosParamCreator=o.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=o.WatchModeApiFactory;exports.WatchModeApiFp=o.WatchModeApiFp;exports.globalQueryClient=o.globalQueryClient;exports.useServer=o.useServer;
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as o, R as e, a as i, C as t, f as r, c as p, e as A, d as n, k as c, h as C, j as P, i as F, D as b, o as l, l as m, n as u, m as y, r as d, M as k, q as x, p as h, b as M, N as T, w as g, s as D, v as E, t as N, z as j, P as S, y as W, x as v, G as f, B as Q, F as R, E as q, K as w, H as z, J as B, I as G, S as H, Q as I, W as J, O as K, L, g as O, u as U } from "../ServerProvider-
|
|
1
|
+
import { A as o, R as e, a as i, C as t, f as r, c as p, e as A, d as n, k as c, h as C, j as P, i as F, D as b, o as l, l as m, n as u, m as y, r as d, M as k, q as x, p as h, b as M, N as T, w as g, s as D, v as E, t as N, z as j, P as S, y as W, x as v, G as f, B as Q, F as R, E as q, K as w, H as z, J as B, I as G, S as H, Q as I, W as J, O as K, L, g as O, u as U } from "../ServerProvider-D-y63tG0.es.js";
|
|
2
2
|
export {
|
|
3
3
|
o as AttachedDatabaseTypeEnum,
|
|
4
4
|
e as Configuration,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { RetrievalFunction } from '../filter/DimensionFilter';
|
|
1
2
|
interface NotebookProps {
|
|
2
3
|
resourceUri: string;
|
|
3
4
|
maxResultSize?: number;
|
|
5
|
+
/** Optional retrieval function for semantic search filters */
|
|
6
|
+
retrievalFn?: RetrievalFunction;
|
|
4
7
|
}
|
|
5
|
-
export default function Notebook({ resourceUri, maxResultSize, }: NotebookProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default function Notebook({ resourceUri, maxResultSize, retrievalFn, }: NotebookProps): import("react/jsx-runtime").JSX.Element;
|
|
6
9
|
export {};
|