@noy-db/hub 0.2.0-pre.18 → 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 +520 -46
- 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-6Q5XRLKG.js → chunk-3FSMVWBN.js} +4 -4
- package/dist/{chunk-647TFNYL.js → chunk-3Q2AOPLT.js} +76 -28
- package/dist/chunk-3Q2AOPLT.js.map +1 -0
- package/dist/{chunk-2U226RDC.js → chunk-4ULLGYPA.js} +3 -3
- package/dist/{chunk-6FHCU3QO.js → chunk-5IGWRMEC.js} +5 -5
- package/dist/{chunk-Y5XVB75E.js → chunk-6KESZO5D.js} +35 -7
- package/dist/chunk-6KESZO5D.js.map +1 -0
- package/dist/{chunk-KQ523X3A.js → chunk-6OSOE6BY.js} +2 -2
- package/dist/{chunk-HWK75CYX.js → chunk-7C6VFNIY.js} +2 -2
- package/dist/{chunk-33DAO2XG.js → chunk-7HD67R6U.js} +2 -2
- package/dist/{chunk-RQFG2YSV.js → chunk-B6E5IRPJ.js} +3 -3
- package/dist/{chunk-YWYW2YNO.js → chunk-CYNTFU2D.js} +2 -2
- package/dist/{chunk-HMFC6M2G.js → chunk-DJF3FXW5.js} +17 -1
- package/dist/{chunk-HMFC6M2G.js.map → chunk-DJF3FXW5.js.map} +1 -1
- package/dist/{chunk-KTZ2MHQK.js → chunk-DY3EOJEN.js} +2 -2
- package/dist/{chunk-PGVEL5IZ.js → chunk-E66DSTJP.js} +3 -3
- package/dist/{chunk-6YEC7LLO.js → chunk-FBLAWK6A.js} +2 -2
- package/dist/{chunk-LQ3GD5LL.js → chunk-FPHRTW2Z.js} +5 -5
- package/dist/{chunk-ZJ67TB4S.js → chunk-G4PYA575.js} +2 -2
- package/dist/{chunk-45643PAU.js → chunk-GKQAU52M.js} +4 -4
- package/dist/{chunk-5KKNBDCT.js → chunk-GYAWXHFO.js} +2 -2
- package/dist/{chunk-KOURQXIU.js → chunk-H42KZXNV.js} +5 -210
- package/dist/chunk-H42KZXNV.js.map +1 -0
- package/dist/{chunk-6XEGHIBA.js → chunk-IBVTH4JR.js} +4 -4
- package/dist/{chunk-AB7JF2KF.js → chunk-IVP5IVON.js} +2 -2
- package/dist/{chunk-T4T5I5L6.js → chunk-KEDJDWWQ.js} +3 -3
- package/dist/{chunk-C2OYWD5S.js → chunk-KNKNOJFS.js} +3 -3
- package/dist/chunk-KNKNOJFS.js.map +1 -0
- package/dist/{chunk-F2IJ2HGD.js → chunk-KYGGXXT6.js} +228 -69
- package/dist/chunk-KYGGXXT6.js.map +1 -0
- package/dist/{chunk-RZWQNMMP.js → chunk-LSIIPKYT.js} +2 -2
- package/dist/{chunk-FQRAYDS4.js → chunk-M3FPNTO2.js} +4 -4
- package/dist/{chunk-DR5I7Q6N.js → chunk-MI36HL5G.js} +4 -4
- package/dist/{chunk-Z3I2WNGF.js → chunk-NN6IISZO.js} +2 -2
- package/dist/{chunk-32XVU2LT.js → chunk-OBMYMKGO.js} +29 -6
- package/dist/{chunk-32XVU2LT.js.map → chunk-OBMYMKGO.js.map} +1 -1
- package/dist/{chunk-QJKZ5WUP.js → chunk-OKOKPYWH.js} +2 -2
- package/dist/{chunk-CMISAJAE.js → chunk-OY7RX2VL.js} +9 -15
- package/dist/chunk-OY7RX2VL.js.map +1 -0
- package/dist/{chunk-Z3BE5BRK.js → chunk-PTGQPWMV.js} +2 -2
- package/dist/{chunk-QPJ7Z4L3.js → chunk-PWFTQHYX.js} +2 -2
- package/dist/{chunk-K3NYRK7U.js → chunk-Q5MCHUXZ.js} +2 -2
- package/dist/{chunk-IQ4GMEYZ.js → chunk-S22UOMHM.js} +6 -6
- package/dist/{chunk-WZCG3EZ6.js → chunk-S3XA7G35.js} +2 -2
- package/dist/{chunk-LGPSCKWZ.js → chunk-SHIUFIPW.js} +1 -1
- package/dist/chunk-SHIUFIPW.js.map +1 -0
- package/dist/{chunk-BUBJYIZ7.js → chunk-U7JNBSS3.js} +3 -3
- package/dist/{chunk-TFAN3NFD.js → chunk-V3VIRTTE.js} +3 -3
- package/dist/{chunk-VVDSDOVV.js → chunk-V5FZWQNN.js} +4 -4
- package/dist/chunk-VEIVAYJ7.js +361 -0
- package/dist/chunk-VEIVAYJ7.js.map +1 -0
- package/dist/{chunk-P57D4KBG.js → chunk-VNUE6FHP.js} +3 -3
- package/dist/{chunk-TPOHMOGX.js → chunk-WFK2EVYU.js} +10 -2
- package/dist/chunk-WFK2EVYU.js.map +1 -0
- package/dist/{chunk-TTS3RWL5.js → chunk-X7FJMKT3.js} +2 -2
- package/dist/{chunk-HZOEBM67.js → chunk-XPH3FWME.js} +7 -2
- package/dist/{chunk-HZOEBM67.js.map → chunk-XPH3FWME.js.map} +1 -1
- package/dist/{chunk-DKMPR76W.js → chunk-Y5J63SMF.js} +5 -5
- package/dist/{chunk-HOO5I3VG.js → chunk-YLRRU72W.js} +2 -2
- package/dist/{chunk-MGB67HKX.js → chunk-YX333DPS.js} +4 -4
- package/dist/{chunk-4UI5T3K7.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-FNK3XPCS.js → crypto-B46VNH6X.js} +3 -3
- package/dist/{delegation-FMXNUWE6.js → delegation-5HON72PV.js} +5 -5
- 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 +4 -4
- package/dist/{dev-unlock-3_2b_vo6.d.cts → dev-unlock-BR1rMOS-.d.cts} +1 -1
- package/dist/{dev-unlock-BMvwPr_E.d.ts → dev-unlock-whL49sxV.d.ts} +1 -1
- package/dist/{errors-DUTlAt3Y.d.ts → errors-DL-zTrrF.d.cts} +14 -1
- package/dist/{errors-DUTlAt3Y.d.cts → errors-DL-zTrrF.d.ts} +14 -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-JGHXAJO5.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.map +1 -1
- package/dist/guards/index.d.cts +7 -7
- package/dist/guards/index.d.ts +7 -7
- package/dist/guards/index.js +3 -3
- package/dist/{hash-BnWnL9bQ.d.cts → hash-BEUBmmI4.d.cts} +1 -1
- package/dist/{hash-BThBJFO1.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-C6lgoUhK.d.cts → index-BM7O48Ur.d.cts} +47 -8
- package/dist/{index-C-SSRIxP.d.ts → index-BMmajblo.d.cts} +14 -0
- package/dist/{index-C-SSRIxP.d.cts → index-BMmajblo.d.ts} +14 -0
- package/dist/{index-DP1JTWHZ.d.ts → index-BelbyUwz.d.ts} +47 -8
- package/dist/index.cjs +799 -465
- 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 +56 -52
- 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-GXC2YA3A.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-HXOFHY4N.js → public-envelope-AGU6SS4Z.js} +4 -4
- package/dist/query/index.cjs +296 -27
- 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/registry-ERNAMRDE.js +8 -0
- package/dist/registry-EXTHSXQW.js +8 -0
- package/dist/{registry-WVXO6NH5.js → registry-RDPTFXQ7.js} +3 -3
- package/dist/{revoke-7LCWE2AH.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-HAVDLGOK.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-PGTEGJDI.js → stale-NTEV5SLX.js} +2 -2
- package/dist/{state-vault-QKQKN3H3.js → state-vault-TUTFRTOA.js} +4 -4
- 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-Diwh5lzS.d.ts → strategy-BDxQnnTX.d.ts} +315 -4
- package/dist/{strategy-nuyN8K5N.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--t3exQHF.d.cts → transition-guard-B1N82hMf.d.cts} +1 -1
- package/dist/{transition-guard-BlI9Oy5K.d.ts → transition-guard-C__YeF3_.d.ts} +1 -1
- 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-Diqc2caK.d.ts → types-CraiZOyO.d.ts} +134 -292
- package/dist/{types-BpLPqyaO.d.cts → types-D-gr5t0G.d.cts} +134 -292
- package/dist/{ulid-DNiRB4Mx.d.cts → ulid-DQnSAP5W.d.cts} +1 -1
- package/dist/{ulid-B1zNV8r9.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-DPZVFRI5.js → vault-group-27EV7KB4.js} +29 -8
- package/dist/vault-group-27EV7KB4.js.map +1 -0
- package/dist/{with-materialized-view-BdH_A_r6.d.cts → with-materialized-view-BboqxyV3.d.cts} +1 -1
- package/dist/{with-materialized-view-CzAgp_HJ.d.ts → with-materialized-view-CguCeVcT.d.ts} +1 -1
- package/dist/{with-overlayed-view-BJbqQnsR.d.ts → with-overlayed-view-DO08u_tx.d.ts} +1 -1
- package/dist/{with-overlayed-view-C40rDPlu.d.cts → with-overlayed-view-mmsg5Of3.d.cts} +1 -1
- package/dist/{with-rollup-DrlGkxiE.d.ts → with-rollup-_TyBzz3T.d.ts} +1 -1
- package/dist/{with-rollup-Bopu5UDZ.d.cts → with-rollup-aaxOZcIb.d.cts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-647TFNYL.js.map +0 -1
- package/dist/chunk-C2OYWD5S.js.map +0 -1
- package/dist/chunk-CMISAJAE.js.map +0 -1
- package/dist/chunk-F2IJ2HGD.js.map +0 -1
- package/dist/chunk-KOURQXIU.js.map +0 -1
- package/dist/chunk-LGPSCKWZ.js.map +0 -1
- package/dist/chunk-M3H7VSRV.js +0 -139
- package/dist/chunk-M3H7VSRV.js.map +0 -1
- package/dist/chunk-TPOHMOGX.js.map +0 -1
- package/dist/chunk-Y5XVB75E.js.map +0 -1
- package/dist/executor-IZ2NVXCY.js +0 -11
- package/dist/executor-THSEYEJG.js +0 -8
- package/dist/executor-WLFDUTOM.js +0 -8
- package/dist/issue-R2MWQO6K.js +0 -12
- package/dist/noydb-RJL6FQ4B.js +0 -37
- package/dist/registry-3T2RZC5A.js +0 -8
- package/dist/registry-DMS7OKBM.js +0 -8
- package/dist/vault-group-DPZVFRI5.js.map +0 -1
- /package/dist/{chunk-6Q5XRLKG.js.map → chunk-3FSMVWBN.js.map} +0 -0
- /package/dist/{chunk-2U226RDC.js.map → chunk-4ULLGYPA.js.map} +0 -0
- /package/dist/{chunk-6FHCU3QO.js.map → chunk-5IGWRMEC.js.map} +0 -0
- /package/dist/{chunk-KQ523X3A.js.map → chunk-6OSOE6BY.js.map} +0 -0
- /package/dist/{chunk-HWK75CYX.js.map → chunk-7C6VFNIY.js.map} +0 -0
- /package/dist/{chunk-33DAO2XG.js.map → chunk-7HD67R6U.js.map} +0 -0
- /package/dist/{chunk-RQFG2YSV.js.map → chunk-B6E5IRPJ.js.map} +0 -0
- /package/dist/{chunk-YWYW2YNO.js.map → chunk-CYNTFU2D.js.map} +0 -0
- /package/dist/{chunk-KTZ2MHQK.js.map → chunk-DY3EOJEN.js.map} +0 -0
- /package/dist/{chunk-PGVEL5IZ.js.map → chunk-E66DSTJP.js.map} +0 -0
- /package/dist/{chunk-6YEC7LLO.js.map → chunk-FBLAWK6A.js.map} +0 -0
- /package/dist/{chunk-LQ3GD5LL.js.map → chunk-FPHRTW2Z.js.map} +0 -0
- /package/dist/{chunk-ZJ67TB4S.js.map → chunk-G4PYA575.js.map} +0 -0
- /package/dist/{chunk-45643PAU.js.map → chunk-GKQAU52M.js.map} +0 -0
- /package/dist/{chunk-5KKNBDCT.js.map → chunk-GYAWXHFO.js.map} +0 -0
- /package/dist/{chunk-6XEGHIBA.js.map → chunk-IBVTH4JR.js.map} +0 -0
- /package/dist/{chunk-AB7JF2KF.js.map → chunk-IVP5IVON.js.map} +0 -0
- /package/dist/{chunk-T4T5I5L6.js.map → chunk-KEDJDWWQ.js.map} +0 -0
- /package/dist/{chunk-RZWQNMMP.js.map → chunk-LSIIPKYT.js.map} +0 -0
- /package/dist/{chunk-FQRAYDS4.js.map → chunk-M3FPNTO2.js.map} +0 -0
- /package/dist/{chunk-DR5I7Q6N.js.map → chunk-MI36HL5G.js.map} +0 -0
- /package/dist/{chunk-Z3I2WNGF.js.map → chunk-NN6IISZO.js.map} +0 -0
- /package/dist/{chunk-QJKZ5WUP.js.map → chunk-OKOKPYWH.js.map} +0 -0
- /package/dist/{chunk-Z3BE5BRK.js.map → chunk-PTGQPWMV.js.map} +0 -0
- /package/dist/{chunk-QPJ7Z4L3.js.map → chunk-PWFTQHYX.js.map} +0 -0
- /package/dist/{chunk-K3NYRK7U.js.map → chunk-Q5MCHUXZ.js.map} +0 -0
- /package/dist/{chunk-IQ4GMEYZ.js.map → chunk-S22UOMHM.js.map} +0 -0
- /package/dist/{chunk-WZCG3EZ6.js.map → chunk-S3XA7G35.js.map} +0 -0
- /package/dist/{chunk-BUBJYIZ7.js.map → chunk-U7JNBSS3.js.map} +0 -0
- /package/dist/{chunk-TFAN3NFD.js.map → chunk-V3VIRTTE.js.map} +0 -0
- /package/dist/{chunk-VVDSDOVV.js.map → chunk-V5FZWQNN.js.map} +0 -0
- /package/dist/{chunk-P57D4KBG.js.map → chunk-VNUE6FHP.js.map} +0 -0
- /package/dist/{chunk-TTS3RWL5.js.map → chunk-X7FJMKT3.js.map} +0 -0
- /package/dist/{chunk-DKMPR76W.js.map → chunk-Y5J63SMF.js.map} +0 -0
- /package/dist/{chunk-HOO5I3VG.js.map → chunk-YLRRU72W.js.map} +0 -0
- /package/dist/{chunk-MGB67HKX.js.map → chunk-YX333DPS.js.map} +0 -0
- /package/dist/{chunk-4UI5T3K7.js.map → chunk-YZE6C3TQ.js.map} +0 -0
- /package/dist/{crypto-FNK3XPCS.js.map → crypto-B46VNH6X.js.map} +0 -0
- /package/dist/{delegation-FMXNUWE6.js.map → delegation-5HON72PV.js.map} +0 -0
- /package/dist/{executor-IZ2NVXCY.js.map → executor-44R5CUS2.js.map} +0 -0
- /package/dist/{executor-THSEYEJG.js.map → executor-AOACUK7Z.js.map} +0 -0
- /package/dist/{executor-WLFDUTOM.js.map → executor-OKFLQCDW.js.map} +0 -0
- /package/dist/{fanout-sidecar-JGHXAJO5.js.map → fanout-sidecar-DCQWJQ6S.js.map} +0 -0
- /package/dist/{issue-R2MWQO6K.js.map → issue-EPA2PSWP.js.map} +0 -0
- /package/dist/{ledger-GXC2YA3A.js.map → ledger-LS6GXCBP.js.map} +0 -0
- /package/dist/{noydb-RJL6FQ4B.js.map → noydb-BVKFP74P.js.map} +0 -0
- /package/dist/{public-envelope-HXOFHY4N.js.map → public-envelope-AGU6SS4Z.js.map} +0 -0
- /package/dist/{registry-3T2RZC5A.js.map → registry-ERNAMRDE.js.map} +0 -0
- /package/dist/{registry-DMS7OKBM.js.map → registry-EXTHSXQW.js.map} +0 -0
- /package/dist/{registry-WVXO6NH5.js.map → registry-RDPTFXQ7.js.map} +0 -0
- /package/dist/{revoke-7LCWE2AH.js.map → revoke-IFLXEZA5.js.map} +0 -0
- /package/dist/{signer-HAVDLGOK.js.map → signer-UNWOUJAK.js.map} +0 -0
- /package/dist/{stale-PGTEGJDI.js.map → stale-NTEV5SLX.js.map} +0 -0
- /package/dist/{state-vault-QKQKN3H3.js.map → state-vault-TUTFRTOA.js.map} +0 -0
package/dist/i18n/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { D as
|
|
1
|
+
export { I as I18nMap, a as I18nTextDescriptor, b as I18nTextOptions, L as Layer, O as OnMissing, c as OnMissingPolicy, R as ResolveI18nOptions, d as applyI18nLocale, g as getAtPath, i as i18nText, e as isI18nTextDescriptor, r as resolveI18nText, f as resolvePolicy, s as setAtPathInPlace, v as validateI18nTextValue } from '../strategy-C5ol6NdV.cjs';
|
|
2
|
+
import { I as I18nStrategy } from '../types-D-gr5t0G.cjs';
|
|
3
|
+
export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, S as ScriptWarning, e as StaticDictDescriptor, f as dictCollectionName, g as dictKey, h as enforceScript, i as inferScripts, j as isDictCollectionName, k as isDictKeyDescriptor, l as isStaticDictDescriptor, s as staticDict } from '../types-D-gr5t0G.cjs';
|
|
4
|
+
export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, S as ScriptViolationError, b as StaticDictReadonlyError, T as TranslatorNotConfiguredError, U as UnknownDictCodeError } from '../errors-DL-zTrrF.cjs';
|
|
4
5
|
import '../lazy-builder-eYZzLEL1.cjs';
|
|
5
6
|
import '../predicate-BmhBSPCH.cjs';
|
|
6
|
-
import '../strategy-nuyN8K5N.cjs';
|
|
7
7
|
import '../strategy-BSxFXGzb.cjs';
|
|
8
|
-
import '../index-
|
|
9
|
-
import '../index-
|
|
8
|
+
import '../index-BMmajblo.cjs';
|
|
9
|
+
import '../index-BM7O48Ur.cjs';
|
|
10
10
|
import '@noy-db/attestation';
|
|
11
11
|
|
|
12
12
|
/**
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { D as
|
|
1
|
+
export { I as I18nMap, a as I18nTextDescriptor, b as I18nTextOptions, L as Layer, O as OnMissing, c as OnMissingPolicy, R as ResolveI18nOptions, d as applyI18nLocale, g as getAtPath, i as i18nText, e as isI18nTextDescriptor, r as resolveI18nText, f as resolvePolicy, s as setAtPathInPlace, v as validateI18nTextValue } from '../strategy-BDxQnnTX.js';
|
|
2
|
+
import { I as I18nStrategy } from '../types-CraiZOyO.js';
|
|
3
|
+
export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, S as ScriptWarning, e as StaticDictDescriptor, f as dictCollectionName, g as dictKey, h as enforceScript, i as inferScripts, j as isDictCollectionName, k as isDictKeyDescriptor, l as isStaticDictDescriptor, s as staticDict } from '../types-CraiZOyO.js';
|
|
4
|
+
export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, S as ScriptViolationError, b as StaticDictReadonlyError, T as TranslatorNotConfiguredError, U as UnknownDictCodeError } from '../errors-DL-zTrrF.js';
|
|
4
5
|
import '../lazy-builder-ChSqcF5t.js';
|
|
5
6
|
import '../predicate-BmhBSPCH.js';
|
|
6
|
-
import '../strategy-Diwh5lzS.js';
|
|
7
7
|
import '../strategy-BSxFXGzb.js';
|
|
8
|
-
import '../index-
|
|
9
|
-
import '../index-
|
|
8
|
+
import '../index-BMmajblo.js';
|
|
9
|
+
import '../index-BelbyUwz.js';
|
|
10
10
|
import '@noy-db/attestation';
|
|
11
11
|
|
|
12
12
|
/**
|
package/dist/i18n/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
enforceScript,
|
|
3
|
-
inferScripts
|
|
4
|
-
} from "../chunk-M3H7VSRV.js";
|
|
5
1
|
import {
|
|
6
2
|
DICT_COLLECTION_PREFIX,
|
|
7
3
|
DictionaryHandle,
|
|
8
|
-
applyI18nLocale,
|
|
9
4
|
dictCollectionName,
|
|
10
5
|
dictKey,
|
|
11
|
-
getAtPath,
|
|
12
|
-
i18nText,
|
|
13
6
|
isDictCollectionName,
|
|
14
7
|
isDictKeyDescriptor,
|
|
15
|
-
isI18nTextDescriptor,
|
|
16
8
|
isStaticDictDescriptor,
|
|
9
|
+
staticDict
|
|
10
|
+
} from "../chunk-H42KZXNV.js";
|
|
11
|
+
import {
|
|
12
|
+
applyI18nLocale,
|
|
13
|
+
enforceScript,
|
|
14
|
+
getAtPath,
|
|
15
|
+
i18nText,
|
|
16
|
+
inferScripts,
|
|
17
|
+
isI18nTextDescriptor,
|
|
17
18
|
resolveI18nText,
|
|
18
19
|
resolvePolicy,
|
|
19
20
|
setAtPathInPlace,
|
|
20
|
-
staticDict,
|
|
21
21
|
validateI18nTextValue
|
|
22
|
-
} from "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
} from "../chunk-VEIVAYJ7.js";
|
|
23
|
+
import "../chunk-M3FPNTO2.js";
|
|
24
24
|
import "../chunk-PDVP3C2I.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-SHIUFIPW.js";
|
|
26
|
+
import "../chunk-OKOKPYWH.js";
|
|
27
27
|
import {
|
|
28
28
|
DictKeyInUseError,
|
|
29
29
|
DictKeyMissingError,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
StaticDictReadonlyError,
|
|
35
35
|
TranslatorNotConfiguredError,
|
|
36
36
|
UnknownDictCodeError
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-DJF3FXW5.js";
|
|
38
38
|
|
|
39
39
|
// src/i18n/active.ts
|
|
40
40
|
function withI18n() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as CollectionIndexes, a as Clause, O as Operator } from './predicate-BmhBSPCH.cjs';
|
|
2
|
-
import { N as NoydbError } from './errors-
|
|
3
|
-
import {
|
|
2
|
+
import { N as NoydbError } from './errors-DL-zTrrF.cjs';
|
|
3
|
+
import { a as I18nTextDescriptor, N as MoneyDescriptor, A as AggregateStrategy, j as AggregateSpec, k as Aggregation, h as AggregateResult, o as GroupedQuery, p as GroupedQueryN } from './strategy-C5ol6NdV.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Foreign-key references — the soft-FK mechanism.
|
|
@@ -322,6 +322,16 @@ interface JoinableSource {
|
|
|
322
322
|
* (#291). Plain `_dict_*`-backed sources omit it.
|
|
323
323
|
*/
|
|
324
324
|
readonly displayLocale?: string;
|
|
325
|
+
/**
|
|
326
|
+
* i18nText descriptors of the right-side collection (#285 §3, `join`
|
|
327
|
+
* layer). When present and the query carries a locale, each joined
|
|
328
|
+
* right-side record's i18n fields resolve to that locale at the `join`
|
|
329
|
+
* layer (`resolvePolicy(onMissing, 'join')`) BEFORE it is attached under
|
|
330
|
+
* the leg's alias — so a joined `i18nText` field is a resolved string, not
|
|
331
|
+
* a raw `{ locale }` map. Locale-less queries leave joined fields raw
|
|
332
|
+
* (consistent with a locale-less read).
|
|
333
|
+
*/
|
|
334
|
+
readonly i18nFields?: Record<string, I18nTextDescriptor>;
|
|
325
335
|
/**
|
|
326
336
|
* Subscribe to mutations on this source. The callback fires
|
|
327
337
|
* AFTER the underlying record set has been updated. Returns an
|
|
@@ -344,6 +354,13 @@ interface JoinableSource {
|
|
|
344
354
|
interface JoinContext {
|
|
345
355
|
/** Name of the left-side (owning) collection. */
|
|
346
356
|
readonly leftCollection: string;
|
|
357
|
+
/**
|
|
358
|
+
* The owning collection's default locale (#285 §3). Used to resolve joined
|
|
359
|
+
* i18n fields at the `join` layer when a terminal call doesn't pass an
|
|
360
|
+
* explicit locale — so `openVault({ locale })` flows to joins like it does
|
|
361
|
+
* to `get`/`list`. A per-call `toArray({ locale })` overrides it.
|
|
362
|
+
*/
|
|
363
|
+
readonly defaultLocale?: string;
|
|
347
364
|
/** Look up a `RefDescriptor` by field name on the left collection. */
|
|
348
365
|
resolveRef(field: string): RefDescriptor | null;
|
|
349
366
|
/** Resolve a right-side source by target collection name. */
|
|
@@ -385,7 +402,7 @@ interface JoinContext {
|
|
|
385
402
|
* query like `.join('a', { maxRows: 100_000 }).join('b', { maxRows: 50 })`,
|
|
386
403
|
* which should throw on the second leg if the left set exceeds 50.
|
|
387
404
|
*/
|
|
388
|
-
declare function applyJoins(rows: readonly unknown[], joins: readonly JoinLeg[], context: JoinContext): unknown[];
|
|
405
|
+
declare function applyJoins(rows: readonly unknown[], joins: readonly JoinLeg[], context: JoinContext, locale?: string): unknown[];
|
|
389
406
|
/**
|
|
390
407
|
* Test-only: reset the join warning deduplication state between
|
|
391
408
|
* tests. Production code never calls this — the dedup state is
|
|
@@ -516,6 +533,13 @@ declare function buildLiveQuery<T>(recompute: () => T[], upstreams: readonly Liv
|
|
|
516
533
|
interface OrderBy {
|
|
517
534
|
readonly field: string;
|
|
518
535
|
readonly direction: 'asc' | 'desc';
|
|
536
|
+
/**
|
|
537
|
+
* Sort key for a `dictKey`/`staticDict` field (#285): `'value'` (default)
|
|
538
|
+
* sorts by the stored code; `'label'` sorts by the code's resolved label at
|
|
539
|
+
* the query locale (`toArray({ locale })`, or a `staticDict` `displayLocale`).
|
|
540
|
+
* Falls back to the code when no label resolves.
|
|
541
|
+
*/
|
|
542
|
+
readonly by?: 'value' | 'label';
|
|
519
543
|
}
|
|
520
544
|
/**
|
|
521
545
|
* A complete query plan: zero-or-more clauses, optional ordering, pagination,
|
|
@@ -654,8 +678,14 @@ declare class Query<T> {
|
|
|
654
678
|
and(builder: (q: Query<T>) => Query<T>): Query<T>;
|
|
655
679
|
/** Escape hatch: add an arbitrary predicate function. Not serializable. */
|
|
656
680
|
filter(fn: (record: T) => boolean): Query<T>;
|
|
657
|
-
/**
|
|
658
|
-
|
|
681
|
+
/**
|
|
682
|
+
* Sort by a field. Subsequent calls are tie-breakers. Pass
|
|
683
|
+
* `{ by: 'label' }` to sort a `dictKey`/`staticDict` field by its resolved
|
|
684
|
+
* label at the query locale instead of the stored code (#285).
|
|
685
|
+
*/
|
|
686
|
+
orderBy(field: string, direction?: 'asc' | 'desc', opts?: {
|
|
687
|
+
by?: 'value' | 'label';
|
|
688
|
+
}): Query<T>;
|
|
659
689
|
/** Cap the result size. */
|
|
660
690
|
limit(n: number): Query<T>;
|
|
661
691
|
/** Skip the first N matching records (after ordering). */
|
|
@@ -758,8 +788,15 @@ declare class Query<T> {
|
|
|
758
788
|
* carries any join legs, they are applied after `where` / `orderBy`
|
|
759
789
|
* / `limit` / `offset` narrow the left set. See the `.join()` doc
|
|
760
790
|
* for the ordering rationale.
|
|
791
|
+
*
|
|
792
|
+
* `opts.locale` (#285 §3) resolves JOINED right-side i18n fields at the
|
|
793
|
+
* `join` layer to that locale; without it, the owning collection's default
|
|
794
|
+
* locale applies, and a locale-less query leaves joined i18n fields raw.
|
|
795
|
+
* (Left/base i18n fields are resolved by `get`/`list`, not here.)
|
|
761
796
|
*/
|
|
762
|
-
toArray(
|
|
797
|
+
toArray(opts?: {
|
|
798
|
+
locale?: string;
|
|
799
|
+
}): T[];
|
|
763
800
|
/**
|
|
764
801
|
* Decode this source's money fields on read (stored scaled-int → canonical
|
|
765
802
|
* decimal), so `query().toArray()` agrees with `get()`/`sum()` on the value.
|
|
@@ -773,8 +810,10 @@ declare class Query<T> {
|
|
|
773
810
|
* money read through `get()`/`list()` with a locale.
|
|
774
811
|
*/
|
|
775
812
|
private decodeMoney;
|
|
776
|
-
/** Return the first matching record, or null. Joins are applied. */
|
|
777
|
-
first(
|
|
813
|
+
/** Return the first matching record, or null. Joins are applied. `opts.locale` resolves joined i18n fields (#285 §3). */
|
|
814
|
+
first(opts?: {
|
|
815
|
+
locale?: string;
|
|
816
|
+
}): T | null;
|
|
778
817
|
/**
|
|
779
818
|
* Return the number of matching records (after where/filter,
|
|
780
819
|
* before limit). **Joins are NOT applied** — count() reports the
|
|
@@ -333,6 +333,20 @@ interface ForgetResult {
|
|
|
333
333
|
readonly blobsRetainedShared: number;
|
|
334
334
|
/** Collections with blobs that could NOT be crypto-shredded — legacy (no `_cek`) or blobs disabled (see type docs). */
|
|
335
335
|
readonly blobResidueCollections: readonly string[];
|
|
336
|
+
/**
|
|
337
|
+
* Count of persisted `_idx/<field>/<recordId>` index side-cars hard-deleted
|
|
338
|
+
* across the shredded records (#401). These live under the retained
|
|
339
|
+
* collection DEK, so crypto-shred alone would leave the indexed field VALUES
|
|
340
|
+
* readable — `forget()` must delete them.
|
|
341
|
+
*/
|
|
342
|
+
readonly indexPostingsPurged: number;
|
|
343
|
+
/**
|
|
344
|
+
* `collection:id:field` entries whose persisted `_idx` side-car could NOT be
|
|
345
|
+
* deleted (#401) — index residue that still leaks the indexed value under the
|
|
346
|
+
* retained collection DEK. Non-empty means erasure is INCOMPLETE: retry, or
|
|
347
|
+
* purge the side-car out of band.
|
|
348
|
+
*/
|
|
349
|
+
readonly indexResidue: readonly string[];
|
|
336
350
|
/** The single `op:'forget'` ledger entry appended for this erasure. */
|
|
337
351
|
readonly ledgerEntry: LedgerEntry;
|
|
338
352
|
}
|
|
@@ -333,6 +333,20 @@ interface ForgetResult {
|
|
|
333
333
|
readonly blobsRetainedShared: number;
|
|
334
334
|
/** Collections with blobs that could NOT be crypto-shredded — legacy (no `_cek`) or blobs disabled (see type docs). */
|
|
335
335
|
readonly blobResidueCollections: readonly string[];
|
|
336
|
+
/**
|
|
337
|
+
* Count of persisted `_idx/<field>/<recordId>` index side-cars hard-deleted
|
|
338
|
+
* across the shredded records (#401). These live under the retained
|
|
339
|
+
* collection DEK, so crypto-shred alone would leave the indexed field VALUES
|
|
340
|
+
* readable — `forget()` must delete them.
|
|
341
|
+
*/
|
|
342
|
+
readonly indexPostingsPurged: number;
|
|
343
|
+
/**
|
|
344
|
+
* `collection:id:field` entries whose persisted `_idx` side-car could NOT be
|
|
345
|
+
* deleted (#401) — index residue that still leaks the indexed value under the
|
|
346
|
+
* retained collection DEK. Non-empty means erasure is INCOMPLETE: retry, or
|
|
347
|
+
* purge the side-car out of band.
|
|
348
|
+
*/
|
|
349
|
+
readonly indexResidue: readonly string[];
|
|
336
350
|
/** The single `op:'forget'` ledger entry appended for this erasure. */
|
|
337
351
|
readonly ledgerEntry: LedgerEntry;
|
|
338
352
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as CollectionIndexes, a as Clause, O as Operator } from './predicate-BmhBSPCH.js';
|
|
2
|
-
import { N as NoydbError } from './errors-
|
|
3
|
-
import {
|
|
2
|
+
import { N as NoydbError } from './errors-DL-zTrrF.js';
|
|
3
|
+
import { a as I18nTextDescriptor, N as MoneyDescriptor, A as AggregateStrategy, j as AggregateSpec, k as Aggregation, h as AggregateResult, o as GroupedQuery, p as GroupedQueryN } from './strategy-BDxQnnTX.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Foreign-key references — the soft-FK mechanism.
|
|
@@ -322,6 +322,16 @@ interface JoinableSource {
|
|
|
322
322
|
* (#291). Plain `_dict_*`-backed sources omit it.
|
|
323
323
|
*/
|
|
324
324
|
readonly displayLocale?: string;
|
|
325
|
+
/**
|
|
326
|
+
* i18nText descriptors of the right-side collection (#285 §3, `join`
|
|
327
|
+
* layer). When present and the query carries a locale, each joined
|
|
328
|
+
* right-side record's i18n fields resolve to that locale at the `join`
|
|
329
|
+
* layer (`resolvePolicy(onMissing, 'join')`) BEFORE it is attached under
|
|
330
|
+
* the leg's alias — so a joined `i18nText` field is a resolved string, not
|
|
331
|
+
* a raw `{ locale }` map. Locale-less queries leave joined fields raw
|
|
332
|
+
* (consistent with a locale-less read).
|
|
333
|
+
*/
|
|
334
|
+
readonly i18nFields?: Record<string, I18nTextDescriptor>;
|
|
325
335
|
/**
|
|
326
336
|
* Subscribe to mutations on this source. The callback fires
|
|
327
337
|
* AFTER the underlying record set has been updated. Returns an
|
|
@@ -344,6 +354,13 @@ interface JoinableSource {
|
|
|
344
354
|
interface JoinContext {
|
|
345
355
|
/** Name of the left-side (owning) collection. */
|
|
346
356
|
readonly leftCollection: string;
|
|
357
|
+
/**
|
|
358
|
+
* The owning collection's default locale (#285 §3). Used to resolve joined
|
|
359
|
+
* i18n fields at the `join` layer when a terminal call doesn't pass an
|
|
360
|
+
* explicit locale — so `openVault({ locale })` flows to joins like it does
|
|
361
|
+
* to `get`/`list`. A per-call `toArray({ locale })` overrides it.
|
|
362
|
+
*/
|
|
363
|
+
readonly defaultLocale?: string;
|
|
347
364
|
/** Look up a `RefDescriptor` by field name on the left collection. */
|
|
348
365
|
resolveRef(field: string): RefDescriptor | null;
|
|
349
366
|
/** Resolve a right-side source by target collection name. */
|
|
@@ -385,7 +402,7 @@ interface JoinContext {
|
|
|
385
402
|
* query like `.join('a', { maxRows: 100_000 }).join('b', { maxRows: 50 })`,
|
|
386
403
|
* which should throw on the second leg if the left set exceeds 50.
|
|
387
404
|
*/
|
|
388
|
-
declare function applyJoins(rows: readonly unknown[], joins: readonly JoinLeg[], context: JoinContext): unknown[];
|
|
405
|
+
declare function applyJoins(rows: readonly unknown[], joins: readonly JoinLeg[], context: JoinContext, locale?: string): unknown[];
|
|
389
406
|
/**
|
|
390
407
|
* Test-only: reset the join warning deduplication state between
|
|
391
408
|
* tests. Production code never calls this — the dedup state is
|
|
@@ -516,6 +533,13 @@ declare function buildLiveQuery<T>(recompute: () => T[], upstreams: readonly Liv
|
|
|
516
533
|
interface OrderBy {
|
|
517
534
|
readonly field: string;
|
|
518
535
|
readonly direction: 'asc' | 'desc';
|
|
536
|
+
/**
|
|
537
|
+
* Sort key for a `dictKey`/`staticDict` field (#285): `'value'` (default)
|
|
538
|
+
* sorts by the stored code; `'label'` sorts by the code's resolved label at
|
|
539
|
+
* the query locale (`toArray({ locale })`, or a `staticDict` `displayLocale`).
|
|
540
|
+
* Falls back to the code when no label resolves.
|
|
541
|
+
*/
|
|
542
|
+
readonly by?: 'value' | 'label';
|
|
519
543
|
}
|
|
520
544
|
/**
|
|
521
545
|
* A complete query plan: zero-or-more clauses, optional ordering, pagination,
|
|
@@ -654,8 +678,14 @@ declare class Query<T> {
|
|
|
654
678
|
and(builder: (q: Query<T>) => Query<T>): Query<T>;
|
|
655
679
|
/** Escape hatch: add an arbitrary predicate function. Not serializable. */
|
|
656
680
|
filter(fn: (record: T) => boolean): Query<T>;
|
|
657
|
-
/**
|
|
658
|
-
|
|
681
|
+
/**
|
|
682
|
+
* Sort by a field. Subsequent calls are tie-breakers. Pass
|
|
683
|
+
* `{ by: 'label' }` to sort a `dictKey`/`staticDict` field by its resolved
|
|
684
|
+
* label at the query locale instead of the stored code (#285).
|
|
685
|
+
*/
|
|
686
|
+
orderBy(field: string, direction?: 'asc' | 'desc', opts?: {
|
|
687
|
+
by?: 'value' | 'label';
|
|
688
|
+
}): Query<T>;
|
|
659
689
|
/** Cap the result size. */
|
|
660
690
|
limit(n: number): Query<T>;
|
|
661
691
|
/** Skip the first N matching records (after ordering). */
|
|
@@ -758,8 +788,15 @@ declare class Query<T> {
|
|
|
758
788
|
* carries any join legs, they are applied after `where` / `orderBy`
|
|
759
789
|
* / `limit` / `offset` narrow the left set. See the `.join()` doc
|
|
760
790
|
* for the ordering rationale.
|
|
791
|
+
*
|
|
792
|
+
* `opts.locale` (#285 §3) resolves JOINED right-side i18n fields at the
|
|
793
|
+
* `join` layer to that locale; without it, the owning collection's default
|
|
794
|
+
* locale applies, and a locale-less query leaves joined i18n fields raw.
|
|
795
|
+
* (Left/base i18n fields are resolved by `get`/`list`, not here.)
|
|
761
796
|
*/
|
|
762
|
-
toArray(
|
|
797
|
+
toArray(opts?: {
|
|
798
|
+
locale?: string;
|
|
799
|
+
}): T[];
|
|
763
800
|
/**
|
|
764
801
|
* Decode this source's money fields on read (stored scaled-int → canonical
|
|
765
802
|
* decimal), so `query().toArray()` agrees with `get()`/`sum()` on the value.
|
|
@@ -773,8 +810,10 @@ declare class Query<T> {
|
|
|
773
810
|
* money read through `get()`/`list()` with a locale.
|
|
774
811
|
*/
|
|
775
812
|
private decodeMoney;
|
|
776
|
-
/** Return the first matching record, or null. Joins are applied. */
|
|
777
|
-
first(
|
|
813
|
+
/** Return the first matching record, or null. Joins are applied. `opts.locale` resolves joined i18n fields (#285 §3). */
|
|
814
|
+
first(opts?: {
|
|
815
|
+
locale?: string;
|
|
816
|
+
}): T | null;
|
|
778
817
|
/**
|
|
779
818
|
* Return the number of matching records (after where/filter,
|
|
780
819
|
* before limit). **Joins are NOT applied** — count() reports the
|