@noy-db/hub 0.2.0-pre.17 → 0.2.0-pre.18
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.map +1 -1
- package/dist/aggregate/index.d.cts +3 -3
- package/dist/aggregate/index.d.ts +3 -3
- package/dist/aggregate/index.js +4 -4
- package/dist/attestation/index.cjs.map +1 -1
- package/dist/attestation/index.d.cts +4 -4
- package/dist/attestation/index.d.ts +4 -4
- package/dist/attestation/index.js +6 -6
- package/dist/blobs/index.cjs.map +1 -1
- package/dist/blobs/index.d.cts +5 -5
- package/dist/blobs/index.d.ts +5 -5
- package/dist/blobs/index.js +6 -6
- package/dist/bundle/index.cjs +994 -273
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +6 -6
- package/dist/bundle/index.d.ts +6 -6
- package/dist/bundle/index.js +10 -10
- package/dist/{chunk-SHX5QBCI.js → chunk-2U226RDC.js} +3 -3
- package/dist/{chunk-7H2GEJ3O.js → chunk-32XVU2LT.js} +3 -3
- package/dist/{chunk-XJV6OB4D.js → chunk-33DAO2XG.js} +2 -2
- package/dist/{chunk-U5QCMH3W.js → chunk-45643PAU.js} +4 -4
- package/dist/{chunk-BH3X5L6A.js → chunk-4UI5T3K7.js} +3 -3
- package/dist/{chunk-2FU2FTXD.js → chunk-5KKNBDCT.js} +2 -2
- package/dist/{chunk-HGVSHKZW.js → chunk-647TFNYL.js} +30 -7
- package/dist/chunk-647TFNYL.js.map +1 -0
- package/dist/{chunk-CD2AVTEM.js → chunk-6FHCU3QO.js} +5 -5
- package/dist/{chunk-NBBMMJ2H.js → chunk-6Q5XRLKG.js} +4 -4
- package/dist/{chunk-XPIHJ34I.js → chunk-6XEGHIBA.js} +4 -4
- package/dist/{chunk-5LIROIDM.js → chunk-6YEC7LLO.js} +2 -2
- package/dist/{chunk-C3HYQPV4.js → chunk-AB7JF2KF.js} +2 -2
- package/dist/{chunk-UMLVJTYV.js → chunk-ADB7GPM3.js} +7 -4
- package/dist/chunk-ADB7GPM3.js.map +1 -0
- package/dist/{chunk-KCEHMDZF.js → chunk-BUBJYIZ7.js} +3 -3
- package/dist/{chunk-I5IUYN7B.js → chunk-C2OYWD5S.js} +3 -3
- package/dist/{chunk-WV7WV6JO.js → chunk-CMISAJAE.js} +5 -5
- package/dist/{chunk-SNMJ7SB3.js → chunk-DKMPR76W.js} +5 -5
- package/dist/{chunk-XMVHEWF6.js → chunk-DR5I7Q6N.js} +4 -4
- package/dist/{chunk-D77ZQSQQ.js → chunk-F2IJ2HGD.js} +652 -152
- package/dist/chunk-F2IJ2HGD.js.map +1 -0
- package/dist/{chunk-BSZOCSDZ.js → chunk-FQRAYDS4.js} +4 -4
- package/dist/{chunk-ZEGSDPB7.js → chunk-HMFC6M2G.js} +19 -1
- package/dist/chunk-HMFC6M2G.js.map +1 -0
- package/dist/{chunk-M476FOQ7.js → chunk-HOO5I3VG.js} +2 -2
- package/dist/{chunk-F4G63NTZ.js → chunk-HWK75CYX.js} +2 -2
- package/dist/{chunk-FEJDVE3Z.js → chunk-HZOEBM67.js} +2 -2
- package/dist/{chunk-QHM6XEAH.js → chunk-IQ4GMEYZ.js} +6 -6
- package/dist/{chunk-5AXTH4QZ.js → chunk-K3NYRK7U.js} +2 -2
- package/dist/{chunk-ROPJVUG3.js → chunk-KOURQXIU.js} +5 -5
- package/dist/chunk-KOURQXIU.js.map +1 -0
- package/dist/{chunk-GP3SDSH2.js → chunk-KQ523X3A.js} +15 -2
- package/dist/chunk-KQ523X3A.js.map +1 -0
- package/dist/{chunk-3G3W65EQ.js → chunk-KTZ2MHQK.js} +2 -2
- package/dist/{chunk-SISBMAPO.js → chunk-LGPSCKWZ.js} +1 -1
- package/dist/chunk-LGPSCKWZ.js.map +1 -0
- package/dist/{chunk-E77UKJYL.js → chunk-LQ3GD5LL.js} +5 -5
- package/dist/{chunk-JDWE6JMX.js → chunk-M3H7VSRV.js} +2 -2
- package/dist/{chunk-DWEBTE2W.js → chunk-MGB67HKX.js} +4 -4
- package/dist/{chunk-AEIKD3PP.js → chunk-P57D4KBG.js} +3 -3
- package/dist/{chunk-YYVZYTWW.js → chunk-PGVEL5IZ.js} +3 -3
- package/dist/{chunk-UNTGHX5A.js → chunk-QJKZ5WUP.js} +2 -2
- package/dist/{chunk-BJSLBUJ7.js → chunk-QPJ7Z4L3.js} +2 -2
- package/dist/{chunk-NYSYPFXJ.js → chunk-RQFG2YSV.js} +3 -3
- package/dist/{chunk-J7RWBXFY.js → chunk-RZWQNMMP.js} +2 -2
- package/dist/{chunk-BL5GYANC.js → chunk-T4T5I5L6.js} +3 -3
- package/dist/{chunk-ZNGPEV5J.js → chunk-TFAN3NFD.js} +3 -3
- package/dist/{chunk-DYYYUW5D.js → chunk-TPOHMOGX.js} +2 -2
- package/dist/{chunk-XMHUK5PN.js → chunk-TTS3RWL5.js} +2 -2
- package/dist/{chunk-TIDXB5DF.js → chunk-VVDSDOVV.js} +4 -4
- package/dist/{chunk-WIAOUFFB.js → chunk-WZCG3EZ6.js} +2 -2
- package/dist/{chunk-QO6RGLLD.js → chunk-Y5XVB75E.js} +4 -4
- package/dist/chunk-YWYW2YNO.js +129 -0
- package/dist/chunk-YWYW2YNO.js.map +1 -0
- package/dist/{chunk-H2MRGONI.js → chunk-Z3BE5BRK.js} +2 -2
- package/dist/{chunk-ROVO6NPJ.js → chunk-Z3I2WNGF.js} +58 -3
- package/dist/chunk-Z3I2WNGF.js.map +1 -0
- package/dist/{state-vault-W2OEABNO.js → chunk-ZJ67TB4S.js} +24 -7
- package/dist/chunk-ZJ67TB4S.js.map +1 -0
- package/dist/consent/index.cjs.map +1 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/consent/index.js +3 -3
- package/dist/{crypto-7BN2HDWG.js → crypto-FNK3XPCS.js} +3 -3
- package/dist/{delegation-MGH5SODX.js → delegation-FMXNUWE6.js} +5 -5
- package/dist/derivations/index.cjs +82 -2
- package/dist/derivations/index.cjs.map +1 -1
- package/dist/derivations/index.d.cts +6 -6
- package/dist/derivations/index.d.ts +6 -6
- package/dist/derivations/index.js +8 -6
- package/dist/{dev-unlock-iXbYFAWl.d.cts → dev-unlock-3_2b_vo6.d.cts} +1 -1
- package/dist/{dev-unlock-CI1ijTML.d.ts → dev-unlock-BMvwPr_E.d.ts} +1 -1
- package/dist/{errors-Dz64FA65.d.ts → errors-DUTlAt3Y.d.cts} +16 -1
- package/dist/{errors-Dz64FA65.d.cts → errors-DUTlAt3Y.d.ts} +16 -1
- package/dist/executor-IZ2NVXCY.js +11 -0
- package/dist/executor-THSEYEJG.js +8 -0
- package/dist/executor-WLFDUTOM.js +8 -0
- package/dist/{fanout-sidecar-FIJJ46YG.js → fanout-sidecar-JGHXAJO5.js} +2 -2
- 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 +6 -6
- package/dist/guards/index.d.ts +6 -6
- package/dist/guards/index.js +8 -4
- package/dist/{hash-blk7Bkes.d.ts → hash-BThBJFO1.d.ts} +1 -1
- package/dist/{hash-tEcM5fnv.d.cts → hash-BnWnL9bQ.d.cts} +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +6 -6
- package/dist/history/index.d.ts +6 -6
- package/dist/history/index.js +5 -5
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +5 -5
- package/dist/i18n/index.d.ts +5 -5
- package/dist/i18n/index.js +6 -6
- package/dist/{index-u-kWzSrL.d.cts → index-C6lgoUhK.d.cts} +40 -3
- package/dist/{index-DpU6KWof.d.ts → index-DP1JTWHZ.d.ts} +40 -3
- package/dist/index.cjs +1202 -322
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.js +65 -47
- 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-R2MWQO6K.js +12 -0
- package/dist/{ledger-LFVLHE5H.js → ledger-GXC2YA3A.js} +5 -5
- package/dist/materialized-views/index.cjs.map +1 -1
- package/dist/materialized-views/index.d.cts +6 -6
- package/dist/materialized-views/index.d.ts +6 -6
- package/dist/materialized-views/index.js +7 -7
- package/dist/noydb-RJL6FQ4B.js +37 -0
- package/dist/overlay-views/index.cjs.map +1 -1
- package/dist/overlay-views/index.d.cts +6 -6
- package/dist/overlay-views/index.d.ts +6 -6
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +5 -5
- package/dist/periods/index.d.ts +5 -5
- package/dist/periods/index.js +5 -5
- package/dist/{public-envelope-RXZNP3V6.js → public-envelope-HXOFHY4N.js} +4 -4
- package/dist/query/index.cjs +26 -3
- 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 +6 -6
- package/dist/read-only-facade-EX6WZZBP.js +7 -0
- package/dist/registry-3T2RZC5A.js +8 -0
- package/dist/registry-DMS7OKBM.js +8 -0
- package/dist/{registry-SECUWSGY.js → registry-WVXO6NH5.js} +3 -3
- package/dist/{revoke-B54H2S2W.js → revoke-7LCWE2AH.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 +6 -6
- package/dist/session/index.d.ts +6 -6
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.cjs.map +1 -1
- package/dist/shadow/index.d.cts +5 -5
- package/dist/shadow/index.d.ts +5 -5
- package/dist/shadow/index.js +2 -2
- package/dist/{signer-YSXZT574.js → signer-HAVDLGOK.js} +5 -5
- package/dist/snapshots/index.cjs.map +1 -1
- package/dist/snapshots/index.d.cts +5 -5
- package/dist/snapshots/index.d.ts +5 -5
- package/dist/snapshots/index.js +4 -4
- package/dist/{stale-TOA36SRK.js → stale-PGTEGJDI.js} +2 -2
- package/dist/state-vault-QKQKN3H3.js +14 -0
- package/dist/state-vault-QKQKN3H3.js.map +1 -0
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +5 -5
- package/dist/store/index.d.ts +5 -5
- package/dist/store/index.js +2 -2
- package/dist/{strategy-4M9jo172.d.ts → strategy-Diwh5lzS.d.ts} +1 -1
- package/dist/{strategy-CLC1j79g.d.cts → strategy-nuyN8K5N.d.cts} +1 -1
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +4 -4
- package/dist/sync/index.d.ts +4 -4
- package/dist/sync/index.js +4 -4
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +5 -5
- package/dist/team/index.d.ts +5 -5
- package/dist/team/index.js +8 -8
- package/dist/transition-guard--t3exQHF.d.cts +165 -0
- package/dist/transition-guard-BlI9Oy5K.d.ts +165 -0
- package/dist/tx/index.cjs.map +1 -1
- package/dist/tx/index.d.cts +5 -5
- package/dist/tx/index.d.ts +5 -5
- package/dist/tx/index.js +3 -3
- package/dist/{types-CrSpRDuG.d.cts → types-BpLPqyaO.d.cts} +487 -25
- package/dist/{types-CljIHm_J.d.ts → types-Diqc2caK.d.ts} +487 -25
- package/dist/{ulid-CWfL2Vfv.d.ts → ulid-B1zNV8r9.d.ts} +1 -1
- package/dist/{ulid-CrI7PPbA.d.cts → ulid-DNiRB4Mx.d.cts} +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-DPZVFRI5.js} +182 -6
- package/dist/vault-group-DPZVFRI5.js.map +1 -0
- package/dist/{with-materialized-view-NzF71cG_.d.cts → with-materialized-view-BdH_A_r6.d.cts} +1 -1
- package/dist/{with-materialized-view-B892zYZV.d.ts → with-materialized-view-CzAgp_HJ.d.ts} +1 -1
- package/dist/{with-overlayed-view-CR6m7CHe.d.ts → with-overlayed-view-BJbqQnsR.d.ts} +1 -1
- package/dist/{with-overlayed-view-UI8qSGL4.d.cts → with-overlayed-view-C40rDPlu.d.cts} +1 -1
- package/dist/with-rollup-Bopu5UDZ.d.cts +47 -0
- package/dist/with-rollup-DrlGkxiE.d.ts +47 -0
- package/package.json +3 -3
- package/dist/chunk-D77ZQSQQ.js.map +0 -1
- package/dist/chunk-GP3SDSH2.js.map +0 -1
- package/dist/chunk-HGVSHKZW.js.map +0 -1
- package/dist/chunk-PDULVIBY.js +0 -63
- package/dist/chunk-PDULVIBY.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-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-SHX5QBCI.js.map → chunk-2U226RDC.js.map} +0 -0
- /package/dist/{chunk-7H2GEJ3O.js.map → chunk-32XVU2LT.js.map} +0 -0
- /package/dist/{chunk-XJV6OB4D.js.map → chunk-33DAO2XG.js.map} +0 -0
- /package/dist/{chunk-U5QCMH3W.js.map → chunk-45643PAU.js.map} +0 -0
- /package/dist/{chunk-BH3X5L6A.js.map → chunk-4UI5T3K7.js.map} +0 -0
- /package/dist/{chunk-2FU2FTXD.js.map → chunk-5KKNBDCT.js.map} +0 -0
- /package/dist/{chunk-CD2AVTEM.js.map → chunk-6FHCU3QO.js.map} +0 -0
- /package/dist/{chunk-NBBMMJ2H.js.map → chunk-6Q5XRLKG.js.map} +0 -0
- /package/dist/{chunk-XPIHJ34I.js.map → chunk-6XEGHIBA.js.map} +0 -0
- /package/dist/{chunk-5LIROIDM.js.map → chunk-6YEC7LLO.js.map} +0 -0
- /package/dist/{chunk-C3HYQPV4.js.map → chunk-AB7JF2KF.js.map} +0 -0
- /package/dist/{chunk-KCEHMDZF.js.map → chunk-BUBJYIZ7.js.map} +0 -0
- /package/dist/{chunk-I5IUYN7B.js.map → chunk-C2OYWD5S.js.map} +0 -0
- /package/dist/{chunk-WV7WV6JO.js.map → chunk-CMISAJAE.js.map} +0 -0
- /package/dist/{chunk-SNMJ7SB3.js.map → chunk-DKMPR76W.js.map} +0 -0
- /package/dist/{chunk-XMVHEWF6.js.map → chunk-DR5I7Q6N.js.map} +0 -0
- /package/dist/{chunk-BSZOCSDZ.js.map → chunk-FQRAYDS4.js.map} +0 -0
- /package/dist/{chunk-M476FOQ7.js.map → chunk-HOO5I3VG.js.map} +0 -0
- /package/dist/{chunk-F4G63NTZ.js.map → chunk-HWK75CYX.js.map} +0 -0
- /package/dist/{chunk-FEJDVE3Z.js.map → chunk-HZOEBM67.js.map} +0 -0
- /package/dist/{chunk-QHM6XEAH.js.map → chunk-IQ4GMEYZ.js.map} +0 -0
- /package/dist/{chunk-5AXTH4QZ.js.map → chunk-K3NYRK7U.js.map} +0 -0
- /package/dist/{chunk-3G3W65EQ.js.map → chunk-KTZ2MHQK.js.map} +0 -0
- /package/dist/{chunk-E77UKJYL.js.map → chunk-LQ3GD5LL.js.map} +0 -0
- /package/dist/{chunk-JDWE6JMX.js.map → chunk-M3H7VSRV.js.map} +0 -0
- /package/dist/{chunk-DWEBTE2W.js.map → chunk-MGB67HKX.js.map} +0 -0
- /package/dist/{chunk-AEIKD3PP.js.map → chunk-P57D4KBG.js.map} +0 -0
- /package/dist/{chunk-YYVZYTWW.js.map → chunk-PGVEL5IZ.js.map} +0 -0
- /package/dist/{chunk-UNTGHX5A.js.map → chunk-QJKZ5WUP.js.map} +0 -0
- /package/dist/{chunk-BJSLBUJ7.js.map → chunk-QPJ7Z4L3.js.map} +0 -0
- /package/dist/{chunk-NYSYPFXJ.js.map → chunk-RQFG2YSV.js.map} +0 -0
- /package/dist/{chunk-J7RWBXFY.js.map → chunk-RZWQNMMP.js.map} +0 -0
- /package/dist/{chunk-BL5GYANC.js.map → chunk-T4T5I5L6.js.map} +0 -0
- /package/dist/{chunk-ZNGPEV5J.js.map → chunk-TFAN3NFD.js.map} +0 -0
- /package/dist/{chunk-DYYYUW5D.js.map → chunk-TPOHMOGX.js.map} +0 -0
- /package/dist/{chunk-XMHUK5PN.js.map → chunk-TTS3RWL5.js.map} +0 -0
- /package/dist/{chunk-TIDXB5DF.js.map → chunk-VVDSDOVV.js.map} +0 -0
- /package/dist/{chunk-WIAOUFFB.js.map → chunk-WZCG3EZ6.js.map} +0 -0
- /package/dist/{chunk-QO6RGLLD.js.map → chunk-Y5XVB75E.js.map} +0 -0
- /package/dist/{chunk-H2MRGONI.js.map → chunk-Z3BE5BRK.js.map} +0 -0
- /package/dist/{crypto-7BN2HDWG.js.map → crypto-FNK3XPCS.js.map} +0 -0
- /package/dist/{delegation-MGH5SODX.js.map → delegation-FMXNUWE6.js.map} +0 -0
- /package/dist/{executor-3W63Y44O.js.map → executor-IZ2NVXCY.js.map} +0 -0
- /package/dist/{executor-CFFWPWBJ.js.map → executor-THSEYEJG.js.map} +0 -0
- /package/dist/{executor-VDQQOR4F.js.map → executor-WLFDUTOM.js.map} +0 -0
- /package/dist/{fanout-sidecar-FIJJ46YG.js.map → fanout-sidecar-JGHXAJO5.js.map} +0 -0
- /package/dist/{issue-TTMGHQ2J.js.map → issue-R2MWQO6K.js.map} +0 -0
- /package/dist/{ledger-LFVLHE5H.js.map → ledger-GXC2YA3A.js.map} +0 -0
- /package/dist/{noydb-36S6GQNC.js.map → noydb-RJL6FQ4B.js.map} +0 -0
- /package/dist/{public-envelope-RXZNP3V6.js.map → public-envelope-HXOFHY4N.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-3T2RZC5A.js.map} +0 -0
- /package/dist/{registry-SECUWSGY.js.map → registry-DMS7OKBM.js.map} +0 -0
- /package/dist/{registry-TGZISEWC.js.map → registry-WVXO6NH5.js.map} +0 -0
- /package/dist/{revoke-B54H2S2W.js.map → revoke-7LCWE2AH.js.map} +0 -0
- /package/dist/{signer-YSXZT574.js.map → signer-HAVDLGOK.js.map} +0 -0
- /package/dist/{stale-TOA36SRK.js.map → stale-PGTEGJDI.js.map} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { w as withDerivation } from '../with-
|
|
2
|
-
import { aK as DerivationStrategy, aL as DerivationContext } from '../types-
|
|
3
|
-
export { aM as ArrayOutputSpec, aN as DerivationRegistry, aO as DerivationStrategyHandle, aP as DerivedFromMeta, aQ as OutputSpec, aR as RecordOutputSpec } from '../types-
|
|
4
|
-
export {
|
|
1
|
+
export { w as withDerivation, a as withRollup } from '../with-rollup-Bopu5UDZ.cjs';
|
|
2
|
+
import { aK as DerivationStrategy, aL as DerivationContext } from '../types-BpLPqyaO.cjs';
|
|
3
|
+
export { aM as ArrayOutputSpec, aN as DerivationRegistry, aO as DerivationStrategyHandle, aP as DerivedFromMeta, aQ as OutputSpec, aR as RecordOutputSpec } from '../types-BpLPqyaO.cjs';
|
|
4
|
+
export { i as DerivationCapExceededError, j as DerivationCycleError, k as DerivationDepthError, l as DerivationOutputShapeError, m as DerivationOutputUnknownError } from '../errors-DUTlAt3Y.cjs';
|
|
5
5
|
import '../lazy-builder-eYZzLEL1.cjs';
|
|
6
6
|
import '../predicate-BmhBSPCH.cjs';
|
|
7
|
-
import '../strategy-
|
|
7
|
+
import '../strategy-nuyN8K5N.cjs';
|
|
8
8
|
import '../strategy-BSxFXGzb.cjs';
|
|
9
9
|
import '../index-C-SSRIxP.cjs';
|
|
10
|
-
import '../index-
|
|
10
|
+
import '../index-C6lgoUhK.cjs';
|
|
11
11
|
import '@noy-db/attestation';
|
|
12
12
|
|
|
13
13
|
interface RunResult {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { w as withDerivation } from '../with-
|
|
2
|
-
import { aK as DerivationStrategy, aL as DerivationContext } from '../types-
|
|
3
|
-
export { aM as ArrayOutputSpec, aN as DerivationRegistry, aO as DerivationStrategyHandle, aP as DerivedFromMeta, aQ as OutputSpec, aR as RecordOutputSpec } from '../types-
|
|
4
|
-
export {
|
|
1
|
+
export { w as withDerivation, a as withRollup } from '../with-rollup-DrlGkxiE.js';
|
|
2
|
+
import { aK as DerivationStrategy, aL as DerivationContext } from '../types-Diqc2caK.js';
|
|
3
|
+
export { aM as ArrayOutputSpec, aN as DerivationRegistry, aO as DerivationStrategyHandle, aP as DerivedFromMeta, aQ as OutputSpec, aR as RecordOutputSpec } from '../types-Diqc2caK.js';
|
|
4
|
+
export { i as DerivationCapExceededError, j as DerivationCycleError, k as DerivationDepthError, l as DerivationOutputShapeError, m as DerivationOutputUnknownError } from '../errors-DUTlAt3Y.js';
|
|
5
5
|
import '../lazy-builder-ChSqcF5t.js';
|
|
6
6
|
import '../predicate-BmhBSPCH.js';
|
|
7
|
-
import '../strategy-
|
|
7
|
+
import '../strategy-Diwh5lzS.js';
|
|
8
8
|
import '../strategy-BSxFXGzb.js';
|
|
9
9
|
import '../index-C-SSRIxP.js';
|
|
10
|
-
import '../index-
|
|
10
|
+
import '../index-DP1JTWHZ.js';
|
|
11
11
|
import '@noy-db/attestation';
|
|
12
12
|
|
|
13
13
|
interface RunResult {
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
withDerivation
|
|
3
|
-
|
|
2
|
+
withDerivation,
|
|
3
|
+
withRollup
|
|
4
|
+
} from "../chunk-YWYW2YNO.js";
|
|
4
5
|
import {
|
|
5
6
|
DerivationRegistry
|
|
6
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-KQ523X3A.js";
|
|
7
8
|
import {
|
|
8
9
|
DerivationExecutor
|
|
9
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-33DAO2XG.js";
|
|
10
11
|
import {
|
|
11
12
|
DerivationCapExceededError,
|
|
12
13
|
DerivationCycleError,
|
|
13
14
|
DerivationDepthError,
|
|
14
15
|
DerivationOutputShapeError,
|
|
15
16
|
DerivationOutputUnknownError
|
|
16
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-HMFC6M2G.js";
|
|
17
18
|
export {
|
|
18
19
|
DerivationCapExceededError,
|
|
19
20
|
DerivationCycleError,
|
|
@@ -22,6 +23,7 @@ export {
|
|
|
22
23
|
DerivationOutputShapeError,
|
|
23
24
|
DerivationOutputUnknownError,
|
|
24
25
|
DerivationRegistry,
|
|
25
|
-
withDerivation
|
|
26
|
+
withDerivation,
|
|
27
|
+
withRollup
|
|
26
28
|
};
|
|
27
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -398,6 +398,21 @@ declare class FieldFrozenError extends NoydbError {
|
|
|
398
398
|
readonly fields: readonly string[];
|
|
399
399
|
constructor(collection: string, id: string, fields: readonly string[]);
|
|
400
400
|
}
|
|
401
|
+
/**
|
|
402
|
+
* Thrown by a `transitionGuard` when a write moves a state field along an
|
|
403
|
+
* arc that the declared transition graph does not allow — either an
|
|
404
|
+
* update `from → to` that is not a listed edge, or an insert whose
|
|
405
|
+
* initial state is not in the allowed `initial` set (reported with
|
|
406
|
+
* `from: '(none)'`). Override via an amendment transaction by an
|
|
407
|
+
* authorized role, like any guard.
|
|
408
|
+
*/
|
|
409
|
+
declare class IllegalTransitionError extends NoydbError {
|
|
410
|
+
readonly collection: string;
|
|
411
|
+
readonly id: string;
|
|
412
|
+
readonly from: string;
|
|
413
|
+
readonly to: string;
|
|
414
|
+
constructor(collection: string, id: string, from: string, to: string);
|
|
415
|
+
}
|
|
401
416
|
/**
|
|
402
417
|
* Thrown by an amendment invariant when the proposed change-set violates
|
|
403
418
|
* the declared business rule (e.g. disbursement total not preserved).
|
|
@@ -1416,4 +1431,4 @@ declare class RecordCekNotFoundError extends NoydbError {
|
|
|
1416
1431
|
constructor(collection: string, id: string);
|
|
1417
1432
|
}
|
|
1418
1433
|
|
|
1419
|
-
export {
|
|
1434
|
+
export { FilenameSanitizationError as $, AmendmentForbiddenError as A, BackupCorruptedError as B, MaterializedViewCycleError as C, DictKeyInUseError as D, MaterializedViewSourceUnknownError as E, FieldFrozenError as F, MaterializedViewTooLargeError as G, AlreadyElevatedError as H, IllegalTransitionError as I, ConflictError as J, CrossJoinSourceUnknownError as K, LocaleNotSpecifiedError as L, MissingTranslationError as M, NoydbError as N, OverlayBaseIsVirtualError as O, PartitionExtractionError as P, CrossJoinTooLargeError as Q, ReservedCollectionNameError as R, ScriptViolationError as S, TranslatorNotConfiguredError as T, UnknownDictCodeError as U, DanglingReferenceError as V, DecryptionError as W, DelegationTargetMissingError as X, DirectoryDisabledError as Y, ElevationExpiredError as Z, ExportCapabilityError as _, DictKeyMissingError as a, ForgetStrategyNotConfiguredError as a0, GroupCardinalityError as a1, ImportCapabilityError as a2, IndexRequiredError as a3, IndexWriteFailureError as a4, InvalidKeyError as a5, JoinTooLargeError as a6, KeyringCorruptError as a7, KeyringExpiredError as a8, LedgerContentionError as a9, TierNotGrantedError as aA, UniqueConstraintError as aB, UnknownShardError as aC, UnsupportedIndexOptionError as aD, ValidationError as aE, VaultTemplateNotFoundError as aF, MigrationRequiredError as aa, NetworkError as ab, NoAccessError as ac, NonAdditiveSchemaChangeError as ad, NotFoundError as ae, NumberingUncertaintyError as af, PathEscapeError as ag, PeriodClosedError as ah, PermissionDeniedError as ai, PrivilegeEscalationError as aj, QuiesceTimeoutError as ak, ReadOnlyAtInstantError as al, ReadOnlyError as am, ReadOnlyFrameError as an, RecordCekNotFoundError as ao, ReservedVaultNameError as ap, SchemaFenceError as aq, SchemaLockedError as ar, SchemaUpdateError as as, SchemaValidationError as at, SequenceContentionError as au, SequenceOfflineError as av, ShardProvisioningError as aw, StoreCapabilityError as ax, TamperedError as ay, TierDemoteDeniedError as az, StaticDictReadonlyError as b, SessionExpiredError as c, SessionNotFoundError as d, SessionPolicyError as e, InvariantError as f, RecordLockedError as g, SnapshotNotFoundError as h, DerivationCapExceededError as i, DerivationCycleError as j, DerivationDepthError as k, DerivationOutputShapeError as l, DerivationOutputUnknownError as m, OverlayCollectionUnavailableError as n, OverlayIdMismatchError as o, OverlayNameCollisionError as p, SealedRecordExpiredError as q, SealedRecordMismatchError as r, AttestationError as s, AdoptionStateError as t, BackupLedgerError as u, BundleIntegrityError as v, BundleSealMismatchError as w, BundleVersionConflictError as x, TransferSealError as y, MaterializedViewConfigError as z };
|
|
@@ -398,6 +398,21 @@ declare class FieldFrozenError extends NoydbError {
|
|
|
398
398
|
readonly fields: readonly string[];
|
|
399
399
|
constructor(collection: string, id: string, fields: readonly string[]);
|
|
400
400
|
}
|
|
401
|
+
/**
|
|
402
|
+
* Thrown by a `transitionGuard` when a write moves a state field along an
|
|
403
|
+
* arc that the declared transition graph does not allow — either an
|
|
404
|
+
* update `from → to` that is not a listed edge, or an insert whose
|
|
405
|
+
* initial state is not in the allowed `initial` set (reported with
|
|
406
|
+
* `from: '(none)'`). Override via an amendment transaction by an
|
|
407
|
+
* authorized role, like any guard.
|
|
408
|
+
*/
|
|
409
|
+
declare class IllegalTransitionError extends NoydbError {
|
|
410
|
+
readonly collection: string;
|
|
411
|
+
readonly id: string;
|
|
412
|
+
readonly from: string;
|
|
413
|
+
readonly to: string;
|
|
414
|
+
constructor(collection: string, id: string, from: string, to: string);
|
|
415
|
+
}
|
|
401
416
|
/**
|
|
402
417
|
* Thrown by an amendment invariant when the proposed change-set violates
|
|
403
418
|
* the declared business rule (e.g. disbursement total not preserved).
|
|
@@ -1416,4 +1431,4 @@ declare class RecordCekNotFoundError extends NoydbError {
|
|
|
1416
1431
|
constructor(collection: string, id: string);
|
|
1417
1432
|
}
|
|
1418
1433
|
|
|
1419
|
-
export {
|
|
1434
|
+
export { FilenameSanitizationError as $, AmendmentForbiddenError as A, BackupCorruptedError as B, MaterializedViewCycleError as C, DictKeyInUseError as D, MaterializedViewSourceUnknownError as E, FieldFrozenError as F, MaterializedViewTooLargeError as G, AlreadyElevatedError as H, IllegalTransitionError as I, ConflictError as J, CrossJoinSourceUnknownError as K, LocaleNotSpecifiedError as L, MissingTranslationError as M, NoydbError as N, OverlayBaseIsVirtualError as O, PartitionExtractionError as P, CrossJoinTooLargeError as Q, ReservedCollectionNameError as R, ScriptViolationError as S, TranslatorNotConfiguredError as T, UnknownDictCodeError as U, DanglingReferenceError as V, DecryptionError as W, DelegationTargetMissingError as X, DirectoryDisabledError as Y, ElevationExpiredError as Z, ExportCapabilityError as _, DictKeyMissingError as a, ForgetStrategyNotConfiguredError as a0, GroupCardinalityError as a1, ImportCapabilityError as a2, IndexRequiredError as a3, IndexWriteFailureError as a4, InvalidKeyError as a5, JoinTooLargeError as a6, KeyringCorruptError as a7, KeyringExpiredError as a8, LedgerContentionError as a9, TierNotGrantedError as aA, UniqueConstraintError as aB, UnknownShardError as aC, UnsupportedIndexOptionError as aD, ValidationError as aE, VaultTemplateNotFoundError as aF, MigrationRequiredError as aa, NetworkError as ab, NoAccessError as ac, NonAdditiveSchemaChangeError as ad, NotFoundError as ae, NumberingUncertaintyError as af, PathEscapeError as ag, PeriodClosedError as ah, PermissionDeniedError as ai, PrivilegeEscalationError as aj, QuiesceTimeoutError as ak, ReadOnlyAtInstantError as al, ReadOnlyError as am, ReadOnlyFrameError as an, RecordCekNotFoundError as ao, ReservedVaultNameError as ap, SchemaFenceError as aq, SchemaLockedError as ar, SchemaUpdateError as as, SchemaValidationError as at, SequenceContentionError as au, SequenceOfflineError as av, ShardProvisioningError as aw, StoreCapabilityError as ax, TamperedError as ay, TierDemoteDeniedError as az, StaticDictReadonlyError as b, SessionExpiredError as c, SessionNotFoundError as d, SessionPolicyError as e, InvariantError as f, RecordLockedError as g, SnapshotNotFoundError as h, DerivationCapExceededError as i, DerivationCycleError as j, DerivationDepthError as k, DerivationOutputShapeError as l, DerivationOutputUnknownError as m, OverlayCollectionUnavailableError as n, OverlayIdMismatchError as o, OverlayNameCollisionError as p, SealedRecordExpiredError as q, SealedRecordMismatchError as r, AttestationError as s, AdoptionStateError as t, BackupLedgerError as u, BundleIntegrityError as v, BundleSealMismatchError as w, BundleVersionConflictError as x, TransferSealError as y, MaterializedViewConfigError as z };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MaterializedViewExecutor
|
|
3
|
+
} from "./chunk-Y5XVB75E.js";
|
|
4
|
+
import "./chunk-5KKNBDCT.js";
|
|
5
|
+
import "./chunk-32XVU2LT.js";
|
|
6
|
+
import "./chunk-RZWQNMMP.js";
|
|
7
|
+
import "./chunk-HMFC6M2G.js";
|
|
8
|
+
export {
|
|
9
|
+
MaterializedViewExecutor
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=executor-IZ2NVXCY.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NOYDB_FORMAT_VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LGPSCKWZ.js";
|
|
4
4
|
|
|
5
5
|
// src/derivations/fanout-sidecar.ts
|
|
6
6
|
function recordId(source, sourceId, outputKey) {
|
|
@@ -48,4 +48,4 @@ export {
|
|
|
48
48
|
loadFanoutSidecar,
|
|
49
49
|
saveFanoutSidecar
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=fanout-sidecar-
|
|
51
|
+
//# sourceMappingURL=fanout-sidecar-JGHXAJO5.js.map
|
package/dist/forget/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
NO_FORGET,
|
|
3
3
|
SUBJECT_INDEX_COLLECTION,
|
|
4
4
|
withForgetCascade
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-C2OYWD5S.js";
|
|
6
|
+
import "../chunk-LGPSCKWZ.js";
|
|
7
|
+
import "../chunk-QJKZ5WUP.js";
|
|
8
|
+
import "../chunk-HMFC6M2G.js";
|
|
9
9
|
export {
|
|
10
10
|
NO_FORGET,
|
|
11
11
|
SUBJECT_INDEX_COLLECTION,
|
package/dist/guards/index.cjs
CHANGED
|
@@ -24,10 +24,12 @@ __export(guards_exports, {
|
|
|
24
24
|
FieldFrozenError: () => FieldFrozenError,
|
|
25
25
|
GuardExecutor: () => GuardExecutor,
|
|
26
26
|
GuardRegistry: () => GuardRegistry,
|
|
27
|
+
IllegalTransitionError: () => IllegalTransitionError,
|
|
27
28
|
InvariantError: () => InvariantError,
|
|
28
29
|
ReadOnlyVaultFacade: () => ReadOnlyVaultFacade,
|
|
29
30
|
RecordLockedError: () => RecordLockedError,
|
|
30
31
|
immutableGuard: () => immutableGuard,
|
|
32
|
+
transitionGuard: () => transitionGuard,
|
|
31
33
|
withGuard: () => withGuard
|
|
32
34
|
});
|
|
33
35
|
module.exports = __toCommonJS(guards_exports);
|
|
@@ -72,6 +74,23 @@ var FieldFrozenError = class extends NoydbError {
|
|
|
72
74
|
this.fields = fields;
|
|
73
75
|
}
|
|
74
76
|
};
|
|
77
|
+
var IllegalTransitionError = class extends NoydbError {
|
|
78
|
+
collection;
|
|
79
|
+
id;
|
|
80
|
+
from;
|
|
81
|
+
to;
|
|
82
|
+
constructor(collection, id, from, to) {
|
|
83
|
+
super(
|
|
84
|
+
"ILLEGAL_TRANSITION",
|
|
85
|
+
`Cannot transition ${collection}/${id} from "${from}" to "${to}" \u2014 not a declared arc. Use withTransactions({ amendment: true, reason }) with admin/owner role to override.`
|
|
86
|
+
);
|
|
87
|
+
this.name = "IllegalTransitionError";
|
|
88
|
+
this.collection = collection;
|
|
89
|
+
this.id = id;
|
|
90
|
+
this.from = from;
|
|
91
|
+
this.to = to;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
75
94
|
var InvariantError = class extends NoydbError {
|
|
76
95
|
constructor(message) {
|
|
77
96
|
super("INVARIANT_VIOLATED", message);
|
|
@@ -156,6 +175,59 @@ function immutableGuard(config) {
|
|
|
156
175
|
return withGuard(spec);
|
|
157
176
|
}
|
|
158
177
|
|
|
178
|
+
// src/guards/transition-guard.ts
|
|
179
|
+
function recordId2(record) {
|
|
180
|
+
const id = record?.id;
|
|
181
|
+
return typeof id === "string" ? id : "";
|
|
182
|
+
}
|
|
183
|
+
function stateOf(record, field) {
|
|
184
|
+
const v = record[field];
|
|
185
|
+
return typeof v === "string" ? v : String(v);
|
|
186
|
+
}
|
|
187
|
+
function transitionGuard(config) {
|
|
188
|
+
const { collection, field, transitions, initial, amendmentRoles, amendmentInvariant } = config;
|
|
189
|
+
const allowIdempotent = config.allowIdempotent ?? true;
|
|
190
|
+
if (!field) {
|
|
191
|
+
throw new ValidationError("transitionGuard: `field` is required");
|
|
192
|
+
}
|
|
193
|
+
if (transitions === void 0 || typeof transitions !== "object") {
|
|
194
|
+
throw new ValidationError("transitionGuard: `transitions` must be a state\u2192states map");
|
|
195
|
+
}
|
|
196
|
+
const spec = {
|
|
197
|
+
collection,
|
|
198
|
+
check: (incoming, ctx) => {
|
|
199
|
+
const rec = incoming;
|
|
200
|
+
const to = stateOf(rec, field);
|
|
201
|
+
if (ctx.existing === null) {
|
|
202
|
+
if (initial !== void 0 && !initial.includes(to)) {
|
|
203
|
+
throw new IllegalTransitionError(collection, recordId2(rec), "(none)", to);
|
|
204
|
+
}
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
const from = stateOf(ctx.existing, field);
|
|
208
|
+
if (from === to) {
|
|
209
|
+
if (allowIdempotent) return;
|
|
210
|
+
throw new IllegalTransitionError(collection, recordId2(rec), from, to);
|
|
211
|
+
}
|
|
212
|
+
const allowed = transitions[from] ?? [];
|
|
213
|
+
if (!allowed.includes(to)) {
|
|
214
|
+
throw new IllegalTransitionError(collection, recordId2(rec), from, to);
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
// The authorized override: inside an amendment transaction the check
|
|
218
|
+
// is skipped and the change is ledgered. By default no extra invariant
|
|
219
|
+
// — the amendment itself is the sanctioned exception. Callers may
|
|
220
|
+
// supply `amendmentInvariant` to keep a constraint inviolable even
|
|
221
|
+
// under amendment; a throw reverts the amendment as `InvariantError`.
|
|
222
|
+
amendment: {
|
|
223
|
+
roles: amendmentRoles ?? ["admin", "owner"],
|
|
224
|
+
invariant: amendmentInvariant ?? (() => {
|
|
225
|
+
})
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
return withGuard(spec);
|
|
229
|
+
}
|
|
230
|
+
|
|
159
231
|
// src/guards/registry.ts
|
|
160
232
|
var GuardRegistry = class {
|
|
161
233
|
_byCollection = /* @__PURE__ */ new Map();
|
|
@@ -351,14 +423,17 @@ function deepEqual(a, b) {
|
|
|
351
423
|
// src/guards/read-only-facade.ts
|
|
352
424
|
var ReadOnlyVaultFacade = class {
|
|
353
425
|
_vault;
|
|
354
|
-
|
|
426
|
+
_layer;
|
|
427
|
+
constructor(vault, layer = "read") {
|
|
355
428
|
this._vault = vault;
|
|
429
|
+
this._layer = layer;
|
|
356
430
|
}
|
|
357
431
|
collection(name) {
|
|
358
432
|
const c = this._vault.collection(name);
|
|
433
|
+
const layer = this._layer;
|
|
359
434
|
return {
|
|
360
|
-
get: (id) => c.get(id),
|
|
361
|
-
list: () => c.list(),
|
|
435
|
+
get: (id) => c.get(id, { _layer: layer }),
|
|
436
|
+
list: () => c.list({ _layer: layer }),
|
|
362
437
|
query: () => c.query()
|
|
363
438
|
};
|
|
364
439
|
}
|
|
@@ -369,10 +444,12 @@ var ReadOnlyVaultFacade = class {
|
|
|
369
444
|
FieldFrozenError,
|
|
370
445
|
GuardExecutor,
|
|
371
446
|
GuardRegistry,
|
|
447
|
+
IllegalTransitionError,
|
|
372
448
|
InvariantError,
|
|
373
449
|
ReadOnlyVaultFacade,
|
|
374
450
|
RecordLockedError,
|
|
375
451
|
immutableGuard,
|
|
452
|
+
transitionGuard,
|
|
376
453
|
withGuard
|
|
377
454
|
});
|
|
378
455
|
//# sourceMappingURL=index.cjs.map
|