@noy-db/hub 0.2.0-pre.17 → 0.2.0-pre.19
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/aggregate/index.cjs +227 -3
- package/dist/aggregate/index.cjs.map +1 -1
- package/dist/aggregate/index.d.cts +3 -3
- package/dist/aggregate/index.d.ts +3 -3
- package/dist/aggregate/index.js +5 -4
- package/dist/aggregate/index.js.map +1 -1
- package/dist/attestation/index.cjs.map +1 -1
- package/dist/attestation/index.d.cts +5 -5
- package/dist/attestation/index.d.ts +5 -5
- package/dist/attestation/index.js +6 -6
- package/dist/blobs/index.cjs +4 -10
- package/dist/blobs/index.cjs.map +1 -1
- package/dist/blobs/index.d.cts +6 -6
- package/dist/blobs/index.d.ts +6 -6
- package/dist/blobs/index.js +6 -6
- package/dist/bundle/index.cjs +1587 -392
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +7 -7
- package/dist/bundle/index.d.ts +7 -7
- package/dist/bundle/index.js +10 -10
- package/dist/{chunk-NBBMMJ2H.js → chunk-3FSMVWBN.js} +4 -4
- package/dist/{chunk-HGVSHKZW.js → chunk-3Q2AOPLT.js} +100 -29
- package/dist/chunk-3Q2AOPLT.js.map +1 -0
- package/dist/{chunk-SHX5QBCI.js → chunk-4ULLGYPA.js} +3 -3
- package/dist/{chunk-CD2AVTEM.js → chunk-5IGWRMEC.js} +5 -5
- package/dist/{chunk-QO6RGLLD.js → chunk-6KESZO5D.js} +35 -7
- package/dist/chunk-6KESZO5D.js.map +1 -0
- package/dist/{chunk-GP3SDSH2.js → chunk-6OSOE6BY.js} +15 -2
- package/dist/chunk-6OSOE6BY.js.map +1 -0
- package/dist/{chunk-F4G63NTZ.js → chunk-7C6VFNIY.js} +2 -2
- package/dist/{chunk-XJV6OB4D.js → chunk-7HD67R6U.js} +2 -2
- package/dist/{chunk-UMLVJTYV.js → chunk-ADB7GPM3.js} +7 -4
- package/dist/chunk-ADB7GPM3.js.map +1 -0
- package/dist/{chunk-NYSYPFXJ.js → chunk-B6E5IRPJ.js} +3 -3
- package/dist/chunk-CYNTFU2D.js +129 -0
- package/dist/chunk-CYNTFU2D.js.map +1 -0
- package/dist/{chunk-ZEGSDPB7.js → chunk-DJF3FXW5.js} +35 -1
- package/dist/chunk-DJF3FXW5.js.map +1 -0
- package/dist/{chunk-3G3W65EQ.js → chunk-DY3EOJEN.js} +2 -2
- package/dist/{chunk-YYVZYTWW.js → chunk-E66DSTJP.js} +3 -3
- package/dist/{chunk-5LIROIDM.js → chunk-FBLAWK6A.js} +2 -2
- package/dist/{chunk-E77UKJYL.js → chunk-FPHRTW2Z.js} +5 -5
- package/dist/{state-vault-W2OEABNO.js → chunk-G4PYA575.js} +24 -7
- package/dist/chunk-G4PYA575.js.map +1 -0
- package/dist/{chunk-U5QCMH3W.js → chunk-GKQAU52M.js} +4 -4
- package/dist/{chunk-2FU2FTXD.js → chunk-GYAWXHFO.js} +2 -2
- package/dist/{chunk-ROPJVUG3.js → chunk-H42KZXNV.js} +5 -210
- package/dist/chunk-H42KZXNV.js.map +1 -0
- package/dist/{chunk-XPIHJ34I.js → chunk-IBVTH4JR.js} +4 -4
- package/dist/{chunk-C3HYQPV4.js → chunk-IVP5IVON.js} +2 -2
- package/dist/{chunk-BL5GYANC.js → chunk-KEDJDWWQ.js} +3 -3
- package/dist/{chunk-I5IUYN7B.js → chunk-KNKNOJFS.js} +3 -3
- package/dist/chunk-KNKNOJFS.js.map +1 -0
- package/dist/{chunk-D77ZQSQQ.js → chunk-KYGGXXT6.js} +829 -170
- package/dist/chunk-KYGGXXT6.js.map +1 -0
- package/dist/{chunk-J7RWBXFY.js → chunk-LSIIPKYT.js} +2 -2
- package/dist/{chunk-BSZOCSDZ.js → chunk-M3FPNTO2.js} +4 -4
- package/dist/{chunk-XMVHEWF6.js → chunk-MI36HL5G.js} +4 -4
- package/dist/{chunk-ROVO6NPJ.js → chunk-NN6IISZO.js} +58 -3
- package/dist/chunk-NN6IISZO.js.map +1 -0
- package/dist/{chunk-7H2GEJ3O.js → chunk-OBMYMKGO.js} +29 -6
- package/dist/{chunk-7H2GEJ3O.js.map → chunk-OBMYMKGO.js.map} +1 -1
- package/dist/{chunk-UNTGHX5A.js → chunk-OKOKPYWH.js} +2 -2
- package/dist/{chunk-WV7WV6JO.js → chunk-OY7RX2VL.js} +9 -15
- package/dist/chunk-OY7RX2VL.js.map +1 -0
- package/dist/{chunk-H2MRGONI.js → chunk-PTGQPWMV.js} +2 -2
- package/dist/{chunk-BJSLBUJ7.js → chunk-PWFTQHYX.js} +2 -2
- package/dist/{chunk-5AXTH4QZ.js → chunk-Q5MCHUXZ.js} +2 -2
- package/dist/{chunk-QHM6XEAH.js → chunk-S22UOMHM.js} +6 -6
- package/dist/{chunk-WIAOUFFB.js → chunk-S3XA7G35.js} +2 -2
- package/dist/{chunk-SISBMAPO.js → chunk-SHIUFIPW.js} +1 -1
- package/dist/chunk-SHIUFIPW.js.map +1 -0
- package/dist/{chunk-KCEHMDZF.js → chunk-U7JNBSS3.js} +3 -3
- package/dist/{chunk-ZNGPEV5J.js → chunk-V3VIRTTE.js} +3 -3
- package/dist/{chunk-TIDXB5DF.js → chunk-V5FZWQNN.js} +4 -4
- package/dist/chunk-VEIVAYJ7.js +361 -0
- package/dist/chunk-VEIVAYJ7.js.map +1 -0
- package/dist/{chunk-AEIKD3PP.js → chunk-VNUE6FHP.js} +3 -3
- package/dist/{chunk-DYYYUW5D.js → chunk-WFK2EVYU.js} +10 -2
- package/dist/chunk-WFK2EVYU.js.map +1 -0
- package/dist/{chunk-XMHUK5PN.js → chunk-X7FJMKT3.js} +2 -2
- package/dist/{chunk-FEJDVE3Z.js → chunk-XPH3FWME.js} +7 -2
- package/dist/{chunk-FEJDVE3Z.js.map → chunk-XPH3FWME.js.map} +1 -1
- package/dist/{chunk-SNMJ7SB3.js → chunk-Y5J63SMF.js} +5 -5
- package/dist/{chunk-M476FOQ7.js → chunk-YLRRU72W.js} +2 -2
- package/dist/{chunk-DWEBTE2W.js → chunk-YX333DPS.js} +4 -4
- package/dist/{chunk-BH3X5L6A.js → chunk-YZE6C3TQ.js} +3 -3
- package/dist/consent/index.cjs.map +1 -1
- package/dist/consent/index.d.cts +6 -6
- package/dist/consent/index.d.ts +6 -6
- package/dist/consent/index.js +3 -3
- package/dist/{crypto-7BN2HDWG.js → crypto-B46VNH6X.js} +3 -3
- package/dist/{delegation-MGH5SODX.js → delegation-5HON72PV.js} +5 -5
- package/dist/derivations/index.cjs +82 -2
- package/dist/derivations/index.cjs.map +1 -1
- package/dist/derivations/index.d.cts +7 -7
- package/dist/derivations/index.d.ts +7 -7
- package/dist/derivations/index.js +8 -6
- package/dist/{dev-unlock-iXbYFAWl.d.cts → dev-unlock-BR1rMOS-.d.cts} +1 -1
- package/dist/{dev-unlock-CI1ijTML.d.ts → dev-unlock-whL49sxV.d.ts} +1 -1
- package/dist/{errors-Dz64FA65.d.cts → errors-DL-zTrrF.d.cts} +29 -1
- package/dist/{errors-Dz64FA65.d.ts → errors-DL-zTrrF.d.ts} +29 -1
- package/dist/executor-44R5CUS2.js +12 -0
- package/dist/executor-AOACUK7Z.js +8 -0
- package/dist/executor-OKFLQCDW.js +8 -0
- package/dist/{fanout-sidecar-FIJJ46YG.js → fanout-sidecar-DCQWJQ6S.js} +2 -2
- package/dist/forget/index.cjs.map +1 -1
- package/dist/forget/index.d.cts +1 -1
- package/dist/forget/index.d.ts +1 -1
- package/dist/forget/index.js +4 -4
- package/dist/guards/index.cjs +80 -3
- package/dist/guards/index.cjs.map +1 -1
- package/dist/guards/index.d.cts +7 -7
- package/dist/guards/index.d.ts +7 -7
- package/dist/guards/index.js +8 -4
- package/dist/{hash-tEcM5fnv.d.cts → hash-BEUBmmI4.d.cts} +1 -1
- package/dist/{hash-blk7Bkes.d.ts → hash-Dtb7FwWd.d.ts} +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +7 -7
- package/dist/history/index.d.ts +7 -7
- package/dist/history/index.js +5 -5
- package/dist/i18n/index.cjs +149 -132
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +6 -6
- package/dist/i18n/index.d.ts +6 -6
- package/dist/i18n/index.js +14 -14
- package/dist/{index-u-kWzSrL.d.cts → index-BM7O48Ur.d.cts} +85 -9
- package/dist/{index-C-SSRIxP.d.cts → index-BMmajblo.d.cts} +14 -0
- package/dist/{index-C-SSRIxP.d.ts → index-BMmajblo.d.ts} +14 -0
- package/dist/{index-DpU6KWof.d.ts → index-BelbyUwz.d.ts} +85 -9
- package/dist/index.cjs +2206 -992
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -16
- package/dist/index.d.ts +29 -16
- package/dist/index.js +76 -54
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.cjs.map +1 -1
- package/dist/indexing/index.js +4 -4
- package/dist/issue-EPA2PSWP.js +12 -0
- package/dist/{ledger-LFVLHE5H.js → ledger-LS6GXCBP.js} +5 -5
- package/dist/materialized-views/index.cjs +257 -4
- package/dist/materialized-views/index.cjs.map +1 -1
- package/dist/materialized-views/index.d.cts +7 -7
- package/dist/materialized-views/index.d.ts +7 -7
- package/dist/materialized-views/index.js +8 -7
- package/dist/noydb-BVKFP74P.js +38 -0
- package/dist/overlay-views/index.cjs.map +1 -1
- package/dist/overlay-views/index.d.cts +7 -7
- package/dist/overlay-views/index.d.ts +7 -7
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +6 -6
- package/dist/periods/index.d.ts +6 -6
- package/dist/periods/index.js +5 -5
- package/dist/{public-envelope-RXZNP3V6.js → public-envelope-AGU6SS4Z.js} +4 -4
- package/dist/query/index.cjs +320 -28
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +3 -3
- package/dist/query/index.d.ts +3 -3
- package/dist/query/index.js +7 -6
- package/dist/read-only-facade-EX6WZZBP.js +7 -0
- package/dist/registry-ERNAMRDE.js +8 -0
- package/dist/registry-EXTHSXQW.js +8 -0
- package/dist/{registry-SECUWSGY.js → registry-RDPTFXQ7.js} +3 -3
- package/dist/{revoke-B54H2S2W.js → revoke-IFLXEZA5.js} +6 -6
- package/dist/sealed-record/index.cjs.map +1 -1
- package/dist/sealed-record/index.d.cts +1 -1
- package/dist/sealed-record/index.d.ts +1 -1
- package/dist/sealed-record/index.js +2 -2
- package/dist/session/index.cjs.map +1 -1
- package/dist/session/index.d.cts +7 -7
- package/dist/session/index.d.ts +7 -7
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.cjs.map +1 -1
- package/dist/shadow/index.d.cts +6 -6
- package/dist/shadow/index.d.ts +6 -6
- package/dist/shadow/index.js +2 -2
- package/dist/{signer-YSXZT574.js → signer-UNWOUJAK.js} +5 -5
- package/dist/snapshots/index.cjs.map +1 -1
- package/dist/snapshots/index.d.cts +6 -6
- package/dist/snapshots/index.d.ts +6 -6
- package/dist/snapshots/index.js +4 -4
- package/dist/{stale-TOA36SRK.js → stale-NTEV5SLX.js} +2 -2
- package/dist/state-vault-TUTFRTOA.js +14 -0
- package/dist/state-vault-TUTFRTOA.js.map +1 -0
- package/dist/store/index.cjs +8 -0
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +13 -6
- package/dist/store/index.d.ts +13 -6
- package/dist/store/index.js +2 -2
- package/dist/{strategy-4M9jo172.d.ts → strategy-BDxQnnTX.d.ts} +315 -4
- package/dist/{strategy-CLC1j79g.d.cts → strategy-C5ol6NdV.d.cts} +315 -4
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +5 -5
- package/dist/sync/index.d.ts +5 -5
- package/dist/sync/index.js +4 -4
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +6 -6
- package/dist/team/index.d.ts +6 -6
- package/dist/team/index.js +8 -8
- package/dist/transition-guard-B1N82hMf.d.cts +165 -0
- package/dist/transition-guard-C__YeF3_.d.ts +165 -0
- package/dist/tx/index.cjs.map +1 -1
- package/dist/tx/index.d.cts +6 -6
- package/dist/tx/index.d.ts +6 -6
- package/dist/tx/index.js +3 -3
- package/dist/{types-CljIHm_J.d.ts → types-CraiZOyO.d.ts} +609 -305
- package/dist/{types-CrSpRDuG.d.cts → types-D-gr5t0G.d.cts} +609 -305
- package/dist/{ulid-CrI7PPbA.d.cts → ulid-DQnSAP5W.d.cts} +1 -1
- package/dist/{ulid-CWfL2Vfv.d.ts → ulid-FFRRHkVf.d.ts} +1 -1
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/{vault-group-DHAHFX2A.js → vault-group-27EV7KB4.js} +205 -8
- package/dist/vault-group-27EV7KB4.js.map +1 -0
- package/dist/{with-materialized-view-NzF71cG_.d.cts → with-materialized-view-BboqxyV3.d.cts} +1 -1
- package/dist/{with-materialized-view-B892zYZV.d.ts → with-materialized-view-CguCeVcT.d.ts} +1 -1
- package/dist/{with-overlayed-view-CR6m7CHe.d.ts → with-overlayed-view-DO08u_tx.d.ts} +1 -1
- package/dist/{with-overlayed-view-UI8qSGL4.d.cts → with-overlayed-view-mmsg5Of3.d.cts} +1 -1
- package/dist/with-rollup-_TyBzz3T.d.ts +47 -0
- package/dist/with-rollup-aaxOZcIb.d.cts +47 -0
- package/package.json +3 -3
- package/dist/chunk-D77ZQSQQ.js.map +0 -1
- package/dist/chunk-DYYYUW5D.js.map +0 -1
- package/dist/chunk-GP3SDSH2.js.map +0 -1
- package/dist/chunk-HGVSHKZW.js.map +0 -1
- package/dist/chunk-I5IUYN7B.js.map +0 -1
- package/dist/chunk-JDWE6JMX.js +0 -139
- package/dist/chunk-JDWE6JMX.js.map +0 -1
- package/dist/chunk-PDULVIBY.js +0 -63
- package/dist/chunk-PDULVIBY.js.map +0 -1
- package/dist/chunk-QO6RGLLD.js.map +0 -1
- package/dist/chunk-ROPJVUG3.js.map +0 -1
- package/dist/chunk-ROVO6NPJ.js.map +0 -1
- package/dist/chunk-SISBMAPO.js.map +0 -1
- package/dist/chunk-UMLVJTYV.js.map +0 -1
- package/dist/chunk-WV7WV6JO.js.map +0 -1
- package/dist/chunk-ZEGSDPB7.js.map +0 -1
- package/dist/executor-3W63Y44O.js +0 -11
- package/dist/executor-CFFWPWBJ.js +0 -8
- package/dist/executor-VDQQOR4F.js +0 -8
- package/dist/immutable-guard-B5M95nbq.d.ts +0 -82
- package/dist/immutable-guard-qN3zF8o1.d.cts +0 -82
- package/dist/issue-TTMGHQ2J.js +0 -12
- package/dist/noydb-36S6GQNC.js +0 -37
- package/dist/read-only-facade-ITU6L7BL.js +0 -7
- package/dist/registry-3YFLZ7WD.js +0 -8
- package/dist/registry-TGZISEWC.js +0 -8
- package/dist/state-vault-W2OEABNO.js.map +0 -1
- package/dist/vault-group-DHAHFX2A.js.map +0 -1
- package/dist/with-derivation-BZ2y4bzF.d.ts +0 -13
- package/dist/with-derivation-Bozs8DmD.d.cts +0 -13
- /package/dist/{chunk-NBBMMJ2H.js.map → chunk-3FSMVWBN.js.map} +0 -0
- /package/dist/{chunk-SHX5QBCI.js.map → chunk-4ULLGYPA.js.map} +0 -0
- /package/dist/{chunk-CD2AVTEM.js.map → chunk-5IGWRMEC.js.map} +0 -0
- /package/dist/{chunk-F4G63NTZ.js.map → chunk-7C6VFNIY.js.map} +0 -0
- /package/dist/{chunk-XJV6OB4D.js.map → chunk-7HD67R6U.js.map} +0 -0
- /package/dist/{chunk-NYSYPFXJ.js.map → chunk-B6E5IRPJ.js.map} +0 -0
- /package/dist/{chunk-3G3W65EQ.js.map → chunk-DY3EOJEN.js.map} +0 -0
- /package/dist/{chunk-YYVZYTWW.js.map → chunk-E66DSTJP.js.map} +0 -0
- /package/dist/{chunk-5LIROIDM.js.map → chunk-FBLAWK6A.js.map} +0 -0
- /package/dist/{chunk-E77UKJYL.js.map → chunk-FPHRTW2Z.js.map} +0 -0
- /package/dist/{chunk-U5QCMH3W.js.map → chunk-GKQAU52M.js.map} +0 -0
- /package/dist/{chunk-2FU2FTXD.js.map → chunk-GYAWXHFO.js.map} +0 -0
- /package/dist/{chunk-XPIHJ34I.js.map → chunk-IBVTH4JR.js.map} +0 -0
- /package/dist/{chunk-C3HYQPV4.js.map → chunk-IVP5IVON.js.map} +0 -0
- /package/dist/{chunk-BL5GYANC.js.map → chunk-KEDJDWWQ.js.map} +0 -0
- /package/dist/{chunk-J7RWBXFY.js.map → chunk-LSIIPKYT.js.map} +0 -0
- /package/dist/{chunk-BSZOCSDZ.js.map → chunk-M3FPNTO2.js.map} +0 -0
- /package/dist/{chunk-XMVHEWF6.js.map → chunk-MI36HL5G.js.map} +0 -0
- /package/dist/{chunk-UNTGHX5A.js.map → chunk-OKOKPYWH.js.map} +0 -0
- /package/dist/{chunk-H2MRGONI.js.map → chunk-PTGQPWMV.js.map} +0 -0
- /package/dist/{chunk-BJSLBUJ7.js.map → chunk-PWFTQHYX.js.map} +0 -0
- /package/dist/{chunk-5AXTH4QZ.js.map → chunk-Q5MCHUXZ.js.map} +0 -0
- /package/dist/{chunk-QHM6XEAH.js.map → chunk-S22UOMHM.js.map} +0 -0
- /package/dist/{chunk-WIAOUFFB.js.map → chunk-S3XA7G35.js.map} +0 -0
- /package/dist/{chunk-KCEHMDZF.js.map → chunk-U7JNBSS3.js.map} +0 -0
- /package/dist/{chunk-ZNGPEV5J.js.map → chunk-V3VIRTTE.js.map} +0 -0
- /package/dist/{chunk-TIDXB5DF.js.map → chunk-V5FZWQNN.js.map} +0 -0
- /package/dist/{chunk-AEIKD3PP.js.map → chunk-VNUE6FHP.js.map} +0 -0
- /package/dist/{chunk-XMHUK5PN.js.map → chunk-X7FJMKT3.js.map} +0 -0
- /package/dist/{chunk-SNMJ7SB3.js.map → chunk-Y5J63SMF.js.map} +0 -0
- /package/dist/{chunk-M476FOQ7.js.map → chunk-YLRRU72W.js.map} +0 -0
- /package/dist/{chunk-DWEBTE2W.js.map → chunk-YX333DPS.js.map} +0 -0
- /package/dist/{chunk-BH3X5L6A.js.map → chunk-YZE6C3TQ.js.map} +0 -0
- /package/dist/{crypto-7BN2HDWG.js.map → crypto-B46VNH6X.js.map} +0 -0
- /package/dist/{delegation-MGH5SODX.js.map → delegation-5HON72PV.js.map} +0 -0
- /package/dist/{executor-3W63Y44O.js.map → executor-44R5CUS2.js.map} +0 -0
- /package/dist/{executor-CFFWPWBJ.js.map → executor-AOACUK7Z.js.map} +0 -0
- /package/dist/{executor-VDQQOR4F.js.map → executor-OKFLQCDW.js.map} +0 -0
- /package/dist/{fanout-sidecar-FIJJ46YG.js.map → fanout-sidecar-DCQWJQ6S.js.map} +0 -0
- /package/dist/{issue-TTMGHQ2J.js.map → issue-EPA2PSWP.js.map} +0 -0
- /package/dist/{ledger-LFVLHE5H.js.map → ledger-LS6GXCBP.js.map} +0 -0
- /package/dist/{noydb-36S6GQNC.js.map → noydb-BVKFP74P.js.map} +0 -0
- /package/dist/{public-envelope-RXZNP3V6.js.map → public-envelope-AGU6SS4Z.js.map} +0 -0
- /package/dist/{read-only-facade-ITU6L7BL.js.map → read-only-facade-EX6WZZBP.js.map} +0 -0
- /package/dist/{registry-3YFLZ7WD.js.map → registry-ERNAMRDE.js.map} +0 -0
- /package/dist/{registry-SECUWSGY.js.map → registry-EXTHSXQW.js.map} +0 -0
- /package/dist/{registry-TGZISEWC.js.map → registry-RDPTFXQ7.js.map} +0 -0
- /package/dist/{revoke-B54H2S2W.js.map → revoke-IFLXEZA5.js.map} +0 -0
- /package/dist/{signer-YSXZT574.js.map → signer-UNWOUJAK.js.map} +0 -0
- /package/dist/{stale-TOA36SRK.js.map → stale-NTEV5SLX.js.map} +0 -0
package/dist/bundle/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { T as TransferSealPayload } from '../ulid-
|
|
2
|
-
export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as encodeBundleHeader, j as generateULID, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, m as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../ulid-
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
1
|
+
import { T as TransferSealPayload } from '../ulid-DQnSAP5W.cjs';
|
|
2
|
+
export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as encodeBundleHeader, j as generateULID, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, m as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../ulid-DQnSAP5W.cjs';
|
|
3
|
+
import { ba as Vault, aP as NoydbStore, b6 as SealingKeyProvider, bb as RecoveryEnrollmentInput, bc as ShamirRecoveryProvider } from '../types-D-gr5t0G.cjs';
|
|
4
|
+
export { t as AdoptionStateError, B as BackupCorruptedError, u as BackupLedgerError, v as BundleIntegrityError, w as BundleSealMismatchError, x as BundleVersionConflictError, P as PartitionExtractionError, y as TransferSealError } from '../errors-DL-zTrrF.cjs';
|
|
5
5
|
import '../lazy-builder-eYZzLEL1.cjs';
|
|
6
6
|
import '../predicate-BmhBSPCH.cjs';
|
|
7
|
-
import '../strategy-
|
|
7
|
+
import '../strategy-C5ol6NdV.cjs';
|
|
8
8
|
import '../strategy-BSxFXGzb.cjs';
|
|
9
|
-
import '../index-
|
|
10
|
-
import '../index-
|
|
9
|
+
import '../index-BMmajblo.cjs';
|
|
10
|
+
import '../index-BM7O48Ur.cjs';
|
|
11
11
|
import '@noy-db/attestation';
|
|
12
12
|
|
|
13
13
|
/**
|
package/dist/bundle/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { T as TransferSealPayload } from '../ulid-
|
|
2
|
-
export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as encodeBundleHeader, j as generateULID, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, m as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../ulid-
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
1
|
+
import { T as TransferSealPayload } from '../ulid-FFRRHkVf.js';
|
|
2
|
+
export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as encodeBundleHeader, j as generateULID, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, m as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../ulid-FFRRHkVf.js';
|
|
3
|
+
import { ba as Vault, aP as NoydbStore, b6 as SealingKeyProvider, bb as RecoveryEnrollmentInput, bc as ShamirRecoveryProvider } from '../types-CraiZOyO.js';
|
|
4
|
+
export { t as AdoptionStateError, B as BackupCorruptedError, u as BackupLedgerError, v as BundleIntegrityError, w as BundleSealMismatchError, x as BundleVersionConflictError, P as PartitionExtractionError, y as TransferSealError } from '../errors-DL-zTrrF.js';
|
|
5
5
|
import '../lazy-builder-ChSqcF5t.js';
|
|
6
6
|
import '../predicate-BmhBSPCH.js';
|
|
7
|
-
import '../strategy-
|
|
7
|
+
import '../strategy-BDxQnnTX.js';
|
|
8
8
|
import '../strategy-BSxFXGzb.js';
|
|
9
|
-
import '../index-
|
|
10
|
-
import '../index-
|
|
9
|
+
import '../index-BMmajblo.js';
|
|
10
|
+
import '../index-BelbyUwz.js';
|
|
11
11
|
import '@noy-db/attestation';
|
|
12
12
|
|
|
13
13
|
/**
|
package/dist/bundle/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SCHEMAS_COLLECTION,
|
|
3
3
|
resolveManagedSecret
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-VNUE6FHP.js";
|
|
5
5
|
import {
|
|
6
6
|
COMPRESSION_BROTLI,
|
|
7
7
|
COMPRESSION_GZIP,
|
|
@@ -20,12 +20,12 @@ import {
|
|
|
20
20
|
resetBrotliSupportCache,
|
|
21
21
|
validateBundleHeader,
|
|
22
22
|
writeNoydbBundle
|
|
23
|
-
} from "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
23
|
+
} from "../chunk-KEDJDWWQ.js";
|
|
24
|
+
import "../chunk-E66DSTJP.js";
|
|
25
|
+
import "../chunk-GKQAU52M.js";
|
|
26
26
|
import {
|
|
27
27
|
createOwnerKeyring
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-M3FPNTO2.js";
|
|
29
29
|
import {
|
|
30
30
|
generateULID,
|
|
31
31
|
isULID
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
LEDGER_COLLECTION,
|
|
35
35
|
LedgerStore
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-YX333DPS.js";
|
|
37
37
|
import {
|
|
38
38
|
canonicalJson,
|
|
39
39
|
envelopePayloadHash,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
NOYDB_BACKUP_VERSION,
|
|
44
44
|
NOYDB_FORMAT_VERSION
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-SHIUFIPW.js";
|
|
46
46
|
import {
|
|
47
47
|
base64ToBuffer,
|
|
48
48
|
bufferToBase64,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
unwrapCek,
|
|
53
53
|
wrapCek,
|
|
54
54
|
wrapKey
|
|
55
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-OKOKPYWH.js";
|
|
56
56
|
import {
|
|
57
57
|
AdoptionStateError,
|
|
58
58
|
BackupCorruptedError,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
PartitionExtractionError,
|
|
64
64
|
TransferSealError,
|
|
65
65
|
ValidationError
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-DJF3FXW5.js";
|
|
67
67
|
|
|
68
68
|
// src/bundle/walk-closure.ts
|
|
69
69
|
async function walkClosure(vault, opts) {
|
|
@@ -543,7 +543,7 @@ async function createOwnerOnAdoptedPartition(store, vaultName, opts) {
|
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
if (isManaged(opts)) {
|
|
546
|
-
const { createNoydb } = await import("../noydb-
|
|
546
|
+
const { createNoydb } = await import("../noydb-BVKFP74P.js");
|
|
547
547
|
const db = await createNoydb({
|
|
548
548
|
store,
|
|
549
549
|
user: userId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
dekKey
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FBLAWK6A.js";
|
|
4
4
|
import {
|
|
5
5
|
generateULID
|
|
6
6
|
} from "./chunk-FZU343FL.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
encrypt,
|
|
10
10
|
unwrapKey,
|
|
11
11
|
wrapKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OKOKPYWH.js";
|
|
13
13
|
import {
|
|
14
14
|
DelegationTargetMissingError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DJF3FXW5.js";
|
|
16
16
|
|
|
17
17
|
// src/team/delegation.ts
|
|
18
18
|
var DELEGATIONS_COLLECTION = "_delegations";
|
|
@@ -94,4 +94,4 @@ export {
|
|
|
94
94
|
loadActiveDelegations,
|
|
95
95
|
revokeDelegation
|
|
96
96
|
};
|
|
97
|
-
//# sourceMappingURL=chunk-
|
|
97
|
+
//# sourceMappingURL=chunk-3FSMVWBN.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
wrapMoneyReducers
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OBMYMKGO.js";
|
|
4
4
|
import {
|
|
5
5
|
MoneyPrecisionError,
|
|
6
6
|
evaluateClause,
|
|
@@ -9,14 +9,17 @@ import {
|
|
|
9
9
|
moneyFieldClause,
|
|
10
10
|
parseToScaledInt,
|
|
11
11
|
readPath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LSIIPKYT.js";
|
|
13
|
+
import {
|
|
14
|
+
applyI18nLocale
|
|
15
|
+
} from "./chunk-VEIVAYJ7.js";
|
|
13
16
|
import {
|
|
14
17
|
CrossJoinSourceUnknownError,
|
|
15
18
|
CrossJoinTooLargeError,
|
|
16
19
|
DanglingReferenceError,
|
|
17
20
|
JoinTooLargeError,
|
|
18
21
|
ValidationError
|
|
19
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DJF3FXW5.js";
|
|
20
23
|
|
|
21
24
|
// src/query/join.ts
|
|
22
25
|
var DEFAULT_JOIN_MAX_ROWS = 5e4;
|
|
@@ -46,15 +49,15 @@ function warnCeilingApproaching(target, side, rows, maxRows) {
|
|
|
46
49
|
`[noy-db] .join() ${side} side is at ${pct}% of the ${maxRows}-row ceiling for target "${target}" (${rows} rows). Streaming joins over scan() are not yet supported for collections that need to exceed this.`
|
|
47
50
|
);
|
|
48
51
|
}
|
|
49
|
-
function applyJoins(rows, joins, context) {
|
|
52
|
+
function applyJoins(rows, joins, context, locale) {
|
|
50
53
|
if (joins.length === 0) return [...rows];
|
|
51
54
|
let result = [...rows];
|
|
52
55
|
for (const leg of joins) {
|
|
53
|
-
result = applyOneJoin(result, leg, context);
|
|
56
|
+
result = applyOneJoin(result, leg, context, locale);
|
|
54
57
|
}
|
|
55
58
|
return result;
|
|
56
59
|
}
|
|
57
|
-
function applyOneJoin(leftRows, leg, context) {
|
|
60
|
+
function applyOneJoin(leftRows, leg, context, locale) {
|
|
58
61
|
if (leg.isDictJoin) {
|
|
59
62
|
const dictSource = context.resolveDictSource?.(leg.field);
|
|
60
63
|
if (!dictSource) {
|
|
@@ -109,24 +112,27 @@ function applyOneJoin(leftRows, leg, context) {
|
|
|
109
112
|
if (rightSnapshot.length > maxRows * JOIN_WARN_FRACTION) {
|
|
110
113
|
warnCeilingApproaching(leg.target, "right", rightSnapshot.length, maxRows);
|
|
111
114
|
}
|
|
115
|
+
const effLocale = locale ?? context.defaultLocale;
|
|
116
|
+
const i18nResolve = effLocale !== void 0 && source.i18nFields !== void 0 ? (right) => right !== null && typeof right === "object" ? applyI18nLocale(right, source.i18nFields, effLocale, void 0, "join") : right : void 0;
|
|
112
117
|
const strategy = leg.strategy ?? (source.lookupById ? "nested" : "hash");
|
|
113
118
|
if (strategy === "nested" && source.lookupById) {
|
|
114
119
|
const lookup = (id) => source.lookupById?.(id);
|
|
115
|
-
return nestedLoopJoin(leftRows, leg, lookup);
|
|
120
|
+
return nestedLoopJoin(leftRows, leg, lookup, i18nResolve);
|
|
116
121
|
}
|
|
117
|
-
return hashJoin(leftRows, leg, rightSnapshot);
|
|
122
|
+
return hashJoin(leftRows, leg, rightSnapshot, i18nResolve);
|
|
118
123
|
}
|
|
119
|
-
function nestedLoopJoin(leftRows, leg, lookupById) {
|
|
124
|
+
function nestedLoopJoin(leftRows, leg, lookupById, i18nResolve) {
|
|
120
125
|
const out = [];
|
|
121
126
|
for (const left of leftRows) {
|
|
122
127
|
const rawId = readPath(left, leg.field);
|
|
123
128
|
const key = coerceRefKey(rawId);
|
|
124
|
-
|
|
129
|
+
let right = key === null ? void 0 : lookupById(key);
|
|
130
|
+
if (i18nResolve && right !== void 0) right = i18nResolve(right);
|
|
125
131
|
out.push(attachJoin(left, leg, right, rawId));
|
|
126
132
|
}
|
|
127
133
|
return out;
|
|
128
134
|
}
|
|
129
|
-
function hashJoin(leftRows, leg, rightSnapshot) {
|
|
135
|
+
function hashJoin(leftRows, leg, rightSnapshot, i18nResolve) {
|
|
130
136
|
const rightMap = /* @__PURE__ */ new Map();
|
|
131
137
|
for (const record of rightSnapshot) {
|
|
132
138
|
const rawId = readPath(record, "id");
|
|
@@ -139,7 +145,8 @@ function hashJoin(leftRows, leg, rightSnapshot) {
|
|
|
139
145
|
for (const left of leftRows) {
|
|
140
146
|
const rawId = readPath(left, leg.field);
|
|
141
147
|
const key = coerceRefKey(rawId);
|
|
142
|
-
|
|
148
|
+
let right = key === null ? void 0 : rightMap.get(key);
|
|
149
|
+
if (i18nResolve && right !== void 0) right = i18nResolve(right);
|
|
143
150
|
out.push(attachJoin(left, leg, right, rawId));
|
|
144
151
|
}
|
|
145
152
|
return out;
|
|
@@ -451,6 +458,21 @@ function formatCurrency(decimal, currency, scale, locale) {
|
|
|
451
458
|
});
|
|
452
459
|
return fmt.format(decimal);
|
|
453
460
|
}
|
|
461
|
+
function moneyScaledValue(stored, desc) {
|
|
462
|
+
let raw;
|
|
463
|
+
if (desc.mode === "fixed") {
|
|
464
|
+
raw = stored;
|
|
465
|
+
} else {
|
|
466
|
+
if (!isMoneyValueObject(stored)) return null;
|
|
467
|
+
raw = stored.amount;
|
|
468
|
+
}
|
|
469
|
+
if (typeof raw !== "string" && typeof raw !== "number") return null;
|
|
470
|
+
try {
|
|
471
|
+
return BigInt(String(raw));
|
|
472
|
+
} catch {
|
|
473
|
+
return null;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
454
476
|
function decodeValue(stored, desc) {
|
|
455
477
|
let currency;
|
|
456
478
|
let scaledIntString;
|
|
@@ -688,11 +710,16 @@ var Query = class _Query {
|
|
|
688
710
|
this.predicates
|
|
689
711
|
);
|
|
690
712
|
}
|
|
691
|
-
/**
|
|
692
|
-
|
|
713
|
+
/**
|
|
714
|
+
* Sort by a field. Subsequent calls are tie-breakers. Pass
|
|
715
|
+
* `{ by: 'label' }` to sort a `dictKey`/`staticDict` field by its resolved
|
|
716
|
+
* label at the query locale instead of the stored code (#285).
|
|
717
|
+
*/
|
|
718
|
+
orderBy(field, direction = "asc", opts) {
|
|
719
|
+
const entry = opts?.by === "label" ? { field, direction, by: "label" } : { field, direction };
|
|
693
720
|
return new _Query(
|
|
694
721
|
this.source,
|
|
695
|
-
{ ...this.plan, orderBy: [...this.plan.orderBy,
|
|
722
|
+
{ ...this.plan, orderBy: [...this.plan.orderBy, entry] },
|
|
696
723
|
this.joinContext,
|
|
697
724
|
this.aggregateStrategy,
|
|
698
725
|
this.predicates
|
|
@@ -895,16 +922,21 @@ var Query = class _Query {
|
|
|
895
922
|
* carries any join legs, they are applied after `where` / `orderBy`
|
|
896
923
|
* / `limit` / `offset` narrow the left set. See the `.join()` doc
|
|
897
924
|
* for the ordering rationale.
|
|
925
|
+
*
|
|
926
|
+
* `opts.locale` (#285 §3) resolves JOINED right-side i18n fields at the
|
|
927
|
+
* `join` layer to that locale; without it, the owning collection's default
|
|
928
|
+
* locale applies, and a locale-less query leaves joined i18n fields raw.
|
|
929
|
+
* (Left/base i18n fields are resolved by `get`/`list`, not here.)
|
|
898
930
|
*/
|
|
899
|
-
toArray() {
|
|
900
|
-
const base = this.decodeMoney(executePlanWithSource(this.source, this.plan, this.joinContext));
|
|
931
|
+
toArray(opts) {
|
|
932
|
+
const base = this.decodeMoney(executePlanWithSource(this.source, this.plan, this.joinContext, opts?.locale));
|
|
901
933
|
if (this.plan.joins.length === 0) return base;
|
|
902
934
|
if (!this.joinContext) {
|
|
903
935
|
throw new Error(
|
|
904
936
|
`Query.toArray(): plan carries ${this.plan.joins.length} join leg(s) but no JoinContext is attached. This usually means the Query was constructed via the raw Query constructor with a plan that had joins pre-populated. Use collection.query().join(...) instead.`
|
|
905
937
|
);
|
|
906
938
|
}
|
|
907
|
-
return applyJoins(base, this.plan.joins, this.joinContext);
|
|
939
|
+
return applyJoins(base, this.plan.joins, this.joinContext, opts?.locale);
|
|
908
940
|
}
|
|
909
941
|
/**
|
|
910
942
|
* Decode this source's money fields on read (stored scaled-int → canonical
|
|
@@ -923,9 +955,9 @@ var Query = class _Query {
|
|
|
923
955
|
if (!moneyFields || Object.keys(moneyFields).length === 0) return records;
|
|
924
956
|
return records.map((r) => decodeMoneyFields(r, moneyFields, "raw"));
|
|
925
957
|
}
|
|
926
|
-
/** Return the first matching record, or null. Joins are applied. */
|
|
927
|
-
first() {
|
|
928
|
-
const arr = this.limit(1).toArray();
|
|
958
|
+
/** Return the first matching record, or null. Joins are applied. `opts.locale` resolves joined i18n fields (#285 §3). */
|
|
959
|
+
first(opts) {
|
|
960
|
+
const arr = this.limit(1).toArray(opts);
|
|
929
961
|
return arr[0] ?? null;
|
|
930
962
|
}
|
|
931
963
|
/**
|
|
@@ -1168,7 +1200,7 @@ var Query = class _Query {
|
|
|
1168
1200
|
return serializePlan(this.plan);
|
|
1169
1201
|
}
|
|
1170
1202
|
};
|
|
1171
|
-
function executePlanWithSource(source, plan, joinContext) {
|
|
1203
|
+
function executePlanWithSource(source, plan, joinContext, locale) {
|
|
1172
1204
|
const hasCrossJoins = plan.clauses.some((c) => c.type === "crossJoin");
|
|
1173
1205
|
let result;
|
|
1174
1206
|
if (hasCrossJoins) {
|
|
@@ -1183,7 +1215,8 @@ function executePlanWithSource(source, plan, joinContext) {
|
|
|
1183
1215
|
result = remainingClauses.length === 0 ? [...candidates] : filterRecords(candidates, remainingClauses, fnViewDecoder(source));
|
|
1184
1216
|
}
|
|
1185
1217
|
if (plan.orderBy.length > 0) {
|
|
1186
|
-
|
|
1218
|
+
const labelMaps = buildOrderLabelMaps(plan.orderBy, joinContext, locale);
|
|
1219
|
+
result = sortRecords(result, plan.orderBy, source.moneyFields, labelMaps);
|
|
1187
1220
|
}
|
|
1188
1221
|
if (plan.offset > 0) {
|
|
1189
1222
|
result = result.slice(plan.offset);
|
|
@@ -1340,17 +1373,55 @@ function applyCrossJoin(leftRel, clause, rightSource) {
|
|
|
1340
1373
|
}
|
|
1341
1374
|
return expanded;
|
|
1342
1375
|
}
|
|
1343
|
-
function sortRecords(records, orderBy) {
|
|
1376
|
+
function sortRecords(records, orderBy, moneyFields, labelMaps) {
|
|
1344
1377
|
return [...records].sort((a, b) => {
|
|
1345
|
-
for (const { field, direction } of orderBy) {
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
const
|
|
1378
|
+
for (const { field, direction, by } of orderBy) {
|
|
1379
|
+
let av = readField(a, field);
|
|
1380
|
+
let bv = readField(b, field);
|
|
1381
|
+
const labelMap = by === "label" ? labelMaps?.get(field) : void 0;
|
|
1382
|
+
if (labelMap) {
|
|
1383
|
+
av = (typeof av === "string" ? labelMap.get(av) : void 0) ?? av;
|
|
1384
|
+
bv = (typeof bv === "string" ? labelMap.get(bv) : void 0) ?? bv;
|
|
1385
|
+
const cmp2 = compareValues(av, bv);
|
|
1386
|
+
if (cmp2 !== 0) return direction === "asc" ? cmp2 : -cmp2;
|
|
1387
|
+
continue;
|
|
1388
|
+
}
|
|
1389
|
+
const desc = moneyFields?.[field];
|
|
1390
|
+
const cmp = desc ? compareMoney(av, bv, desc) : compareValues(av, bv);
|
|
1349
1391
|
if (cmp !== 0) return direction === "asc" ? cmp : -cmp;
|
|
1350
1392
|
}
|
|
1351
1393
|
return 0;
|
|
1352
1394
|
});
|
|
1353
1395
|
}
|
|
1396
|
+
function buildOrderLabelMaps(orderBy, joinContext, locale) {
|
|
1397
|
+
if (!joinContext?.resolveDictSource) return void 0;
|
|
1398
|
+
const resolveDict = joinContext.resolveDictSource.bind(joinContext);
|
|
1399
|
+
let maps;
|
|
1400
|
+
for (const { field, by } of orderBy) {
|
|
1401
|
+
if (by !== "label") continue;
|
|
1402
|
+
const dictSource = resolveDict(field);
|
|
1403
|
+
if (!dictSource) continue;
|
|
1404
|
+
const loc = locale ?? dictSource.displayLocale;
|
|
1405
|
+
if (loc === void 0) continue;
|
|
1406
|
+
const codeToLabel = /* @__PURE__ */ new Map();
|
|
1407
|
+
for (const entry of dictSource.snapshot()) {
|
|
1408
|
+
const k = entry["key"];
|
|
1409
|
+
const labels = entry["labels"];
|
|
1410
|
+
const label = labels?.[loc];
|
|
1411
|
+
if (typeof k === "string" && typeof label === "string") codeToLabel.set(k, label);
|
|
1412
|
+
}
|
|
1413
|
+
;
|
|
1414
|
+
(maps ??= /* @__PURE__ */ new Map()).set(field, codeToLabel);
|
|
1415
|
+
}
|
|
1416
|
+
return maps;
|
|
1417
|
+
}
|
|
1418
|
+
function compareMoney(a, b, desc) {
|
|
1419
|
+
const av = moneyScaledValue(a, desc);
|
|
1420
|
+
const bv = moneyScaledValue(b, desc);
|
|
1421
|
+
if (av === null) return bv === null ? 0 : 1;
|
|
1422
|
+
if (bv === null) return -1;
|
|
1423
|
+
return av < bv ? -1 : av > bv ? 1 : 0;
|
|
1424
|
+
}
|
|
1354
1425
|
function readField(record, field) {
|
|
1355
1426
|
if (record === null || record === void 0) return void 0;
|
|
1356
1427
|
if (!field.includes(".")) {
|
|
@@ -1906,4 +1977,4 @@ export {
|
|
|
1906
1977
|
executePlan,
|
|
1907
1978
|
ScanBuilder
|
|
1908
1979
|
};
|
|
1909
|
-
//# sourceMappingURL=chunk-
|
|
1980
|
+
//# sourceMappingURL=chunk-3Q2AOPLT.js.map
|