@nicia-ai/typegraph 0.50.0 → 0.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/backend/drizzle/indexes.cjs +10 -8
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/drizzle/indexes.js +6 -4
- package/dist/backend/index.cjs +183 -50
- package/dist/backend/index.d.cts +90 -4
- package/dist/backend/index.d.ts +90 -4
- package/dist/backend/index.js +6 -9
- package/dist/backend/postgres/index.cjs +30 -28
- package/dist/backend/postgres/index.d.cts +7 -7
- package/dist/backend/postgres/index.d.ts +7 -7
- package/dist/backend/postgres/index.js +16 -14
- package/dist/backend/postgres/pglite-store.cjs +6 -62
- package/dist/backend/postgres/pglite-store.cjs.map +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +8 -8
- package/dist/backend/postgres/pglite-store.d.ts +8 -8
- package/dist/backend/postgres/pglite-store.js +6 -62
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +18 -16
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +17 -15
- package/dist/backend/sqlite/index.cjs +27 -25
- package/dist/backend/sqlite/index.d.cts +7 -7
- package/dist/backend/sqlite/index.d.ts +7 -7
- package/dist/backend/sqlite/index.js +14 -12
- package/dist/backend/sqlite/libsql.cjs +21 -19
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +16 -14
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +8 -64
- package/dist/backend/sqlite/local-store.cjs.map +1 -1
- package/dist/backend/sqlite/local-store.d.cts +8 -8
- package/dist/backend/sqlite/local-store.d.ts +8 -8
- package/dist/backend/sqlite/local-store.js +7 -64
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +22 -19
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +18 -15
- package/dist/{chunk-TUVD4DFR.cjs → chunk-2CVDZCXH.cjs} +122 -51
- package/dist/chunk-2CVDZCXH.cjs.map +1 -0
- package/dist/{chunk-I5C6OTKR.js → chunk-2DWTBNSH.js} +3 -3
- package/dist/{chunk-I5C6OTKR.js.map → chunk-2DWTBNSH.js.map} +1 -1
- package/dist/{chunk-C76WFIVZ.cjs → chunk-2KCTP3U2.cjs} +180 -127
- package/dist/chunk-2KCTP3U2.cjs.map +1 -0
- package/dist/{chunk-BYBDM423.cjs → chunk-322TBTOQ.cjs} +48 -48
- package/dist/{chunk-BYBDM423.cjs.map → chunk-322TBTOQ.cjs.map} +1 -1
- package/dist/chunk-36SX6QXP.cjs +186 -0
- package/dist/chunk-36SX6QXP.cjs.map +1 -0
- package/dist/{chunk-H3XP6BAV.js → chunk-36VYWVQU.js} +3 -3
- package/dist/{chunk-H3XP6BAV.js.map → chunk-36VYWVQU.js.map} +1 -1
- package/dist/{chunk-VTJVMP4I.js → chunk-4DKY6RIU.js} +102 -31
- package/dist/chunk-4DKY6RIU.js.map +1 -0
- package/dist/chunk-4QKOZYMV.js +9 -0
- package/dist/chunk-4QKOZYMV.js.map +1 -0
- package/dist/{chunk-U3Z7XKAG.js → chunk-57JM6NW3.js} +8 -18
- package/dist/chunk-57JM6NW3.js.map +1 -0
- package/dist/{chunk-WCLMKNQE.cjs → chunk-5FVZSE3B.cjs} +1356 -1108
- package/dist/chunk-5FVZSE3B.cjs.map +1 -0
- package/dist/{chunk-XMY2SXOH.cjs → chunk-5WWEYV4H.cjs} +2208 -579
- package/dist/chunk-5WWEYV4H.cjs.map +1 -0
- package/dist/{chunk-WQBAQZHR.js → chunk-6NLYIMJO.js} +4 -4
- package/dist/{chunk-WQBAQZHR.js.map → chunk-6NLYIMJO.js.map} +1 -1
- package/dist/{chunk-G2TLHH6T.cjs → chunk-7B7I7YAW.cjs} +6 -6
- package/dist/{chunk-G2TLHH6T.cjs.map → chunk-7B7I7YAW.cjs.map} +1 -1
- package/dist/{chunk-EDLKIQRI.js → chunk-7G5IYROL.js} +6 -548
- package/dist/chunk-7G5IYROL.js.map +1 -0
- package/dist/{chunk-46UGOVRW.js → chunk-7QFRK6PU.js} +3 -7
- package/dist/chunk-7QFRK6PU.js.map +1 -0
- package/dist/chunk-A4C4NJ5U.cjs +12 -0
- package/dist/chunk-A4C4NJ5U.cjs.map +1 -0
- package/dist/{chunk-7CCMCMJO.cjs → chunk-AOGOC6JF.cjs} +77 -68
- package/dist/chunk-AOGOC6JF.cjs.map +1 -0
- package/dist/{chunk-TYGGUWMS.cjs → chunk-B3MN7EJR.cjs} +177 -137
- package/dist/chunk-B3MN7EJR.cjs.map +1 -0
- package/dist/{chunk-K6VKTBST.cjs → chunk-BZ5MVITP.cjs} +4 -4
- package/dist/{chunk-K6VKTBST.cjs.map → chunk-BZ5MVITP.cjs.map} +1 -1
- package/dist/{chunk-ZAQUKCUC.js → chunk-CBOD7TXH.js} +5 -5
- package/dist/{chunk-ZAQUKCUC.js.map → chunk-CBOD7TXH.js.map} +1 -1
- package/dist/{chunk-LLVOQOWE.cjs → chunk-CRZ56SZU.cjs} +6 -5
- package/dist/chunk-CRZ56SZU.cjs.map +1 -0
- package/dist/{chunk-ON47CBE4.cjs → chunk-D3GWARN7.cjs} +47 -47
- package/dist/{chunk-ON47CBE4.cjs.map → chunk-D3GWARN7.cjs.map} +1 -1
- package/dist/{chunk-W5SOCUBL.js → chunk-D3OUDFU7.js} +5 -5
- package/dist/{chunk-W5SOCUBL.js.map → chunk-D3OUDFU7.js.map} +1 -1
- package/dist/chunk-EKG2UXNX.cjs +23 -0
- package/dist/chunk-EKG2UXNX.cjs.map +1 -0
- package/dist/{chunk-2Q45FAIE.js → chunk-EVYW3532.js} +28 -19
- package/dist/chunk-EVYW3532.js.map +1 -0
- package/dist/{chunk-7PRMDZIA.cjs → chunk-FMMW3KX7.cjs} +21 -55
- package/dist/chunk-FMMW3KX7.cjs.map +1 -0
- package/dist/chunk-H2VWDQWC.cjs +571 -0
- package/dist/chunk-H2VWDQWC.cjs.map +1 -0
- package/dist/chunk-H4FY6OZK.js +13 -0
- package/dist/chunk-H4FY6OZK.js.map +1 -0
- package/dist/{chunk-OJHD3LXJ.cjs → chunk-H5IJSROF.cjs} +2 -8
- package/dist/chunk-H5IJSROF.cjs.map +1 -0
- package/dist/{chunk-U5EL6JUV.js → chunk-I5IOSA27.js} +101 -103
- package/dist/chunk-I5IOSA27.js.map +1 -0
- package/dist/{chunk-SHC7BCG5.cjs → chunk-I7YAY2VQ.cjs} +7 -7
- package/dist/{chunk-SHC7BCG5.cjs.map → chunk-I7YAY2VQ.cjs.map} +1 -1
- package/dist/chunk-IRCWIA3R.js +20 -0
- package/dist/chunk-IRCWIA3R.js.map +1 -0
- package/dist/chunk-IVQBLXBK.cjs +55 -0
- package/dist/chunk-IVQBLXBK.cjs.map +1 -0
- package/dist/{chunk-5PP4KRPV.js → chunk-IZD4HTCP.js} +5 -5
- package/dist/{chunk-5PP4KRPV.js.map → chunk-IZD4HTCP.js.map} +1 -1
- package/dist/{chunk-RDP6ZRSM.cjs → chunk-JQKMEKKW.cjs} +261 -204
- package/dist/chunk-JQKMEKKW.cjs.map +1 -0
- package/dist/chunk-JVA3KDEA.cjs +691 -0
- package/dist/chunk-JVA3KDEA.cjs.map +1 -0
- package/dist/{chunk-JG5XIJDY.js → chunk-K67P5DLL.js} +62 -22
- package/dist/chunk-K67P5DLL.js.map +1 -0
- package/dist/{chunk-MX7EKQPM.js → chunk-K6OZIHKI.js} +345 -97
- package/dist/chunk-K6OZIHKI.js.map +1 -0
- package/dist/{chunk-CS6JTQQ2.cjs → chunk-KACEYDYV.cjs} +94 -62
- package/dist/chunk-KACEYDYV.cjs.map +1 -0
- package/dist/{chunk-5OWHU7Z7.cjs → chunk-L6EVYIID.cjs} +248 -210
- package/dist/chunk-L6EVYIID.cjs.map +1 -0
- package/dist/{chunk-7OWE7WD6.js → chunk-LI4K2KEJ.js} +4 -4
- package/dist/{chunk-7OWE7WD6.js.map → chunk-LI4K2KEJ.js.map} +1 -1
- package/dist/chunk-LKZDQ2B4.js +1581 -0
- package/dist/chunk-LKZDQ2B4.js.map +1 -0
- package/dist/{chunk-45YZXI6X.cjs → chunk-LLFPQOBA.cjs} +27 -27
- package/dist/{chunk-45YZXI6X.cjs.map → chunk-LLFPQOBA.cjs.map} +1 -1
- package/dist/{chunk-ZRJTM7MT.js → chunk-LZMQ3SFK.js} +3 -3
- package/dist/{chunk-ZRJTM7MT.js.map → chunk-LZMQ3SFK.js.map} +1 -1
- package/dist/{chunk-DI6VC62F.js → chunk-M3VTS3F6.js} +3 -3
- package/dist/{chunk-DI6VC62F.js.map → chunk-M3VTS3F6.js.map} +1 -1
- package/dist/{chunk-MZ34E2GN.js → chunk-NBOS7BY3.js} +60 -21
- package/dist/chunk-NBOS7BY3.js.map +1 -0
- package/dist/{chunk-YA36ABIL.js → chunk-NGQDGL5X.js} +14 -48
- package/dist/chunk-NGQDGL5X.js.map +1 -0
- package/dist/{chunk-ZBFZGLZE.cjs → chunk-NLX5OWK7.cjs} +6 -2
- package/dist/chunk-NLX5OWK7.cjs.map +1 -0
- package/dist/chunk-NUQ2YFFH.cjs +1637 -0
- package/dist/chunk-NUQ2YFFH.cjs.map +1 -0
- package/dist/{chunk-TTCOPKUL.cjs → chunk-OGL4X4PH.cjs} +182 -184
- package/dist/chunk-OGL4X4PH.cjs.map +1 -0
- package/dist/{chunk-HY5BNOUN.cjs → chunk-OTNTGEXR.cjs} +4 -4
- package/dist/{chunk-HY5BNOUN.cjs.map → chunk-OTNTGEXR.cjs.map} +1 -1
- package/dist/chunk-OTWE63BW.js +53 -0
- package/dist/chunk-OTWE63BW.js.map +1 -0
- package/dist/chunk-PC5NGH5A.js +549 -0
- package/dist/chunk-PC5NGH5A.js.map +1 -0
- package/dist/{chunk-IPRP6TDL.cjs → chunk-PS3TUWJM.cjs} +7 -7
- package/dist/{chunk-IPRP6TDL.cjs.map → chunk-PS3TUWJM.cjs.map} +1 -1
- package/dist/{chunk-V76FGHY3.js → chunk-PVFFH7TL.js} +5 -5
- package/dist/{chunk-V76FGHY3.js.map → chunk-PVFFH7TL.js.map} +1 -1
- package/dist/chunk-QCD5JKU4.cjs +15 -0
- package/dist/chunk-QCD5JKU4.cjs.map +1 -0
- package/dist/{chunk-IRPYOHRC.js → chunk-QG5VEOKX.js} +6 -2
- package/dist/chunk-QG5VEOKX.js.map +1 -0
- package/dist/{chunk-2CYI5HRH.js → chunk-RI7RJH4G.js} +49 -17
- package/dist/chunk-RI7RJH4G.js.map +1 -0
- package/dist/{chunk-5LKOVCPP.js → chunk-RVUL2HXY.js} +6 -5
- package/dist/chunk-RVUL2HXY.js.map +1 -0
- package/dist/{chunk-WK23PGTP.cjs → chunk-S5GU4LUN.cjs} +11 -11
- package/dist/{chunk-WK23PGTP.cjs.map → chunk-S5GU4LUN.cjs.map} +1 -1
- package/dist/{chunk-S33YQEL7.js → chunk-SDPWO2Z5.js} +6 -6
- package/dist/{chunk-S33YQEL7.js.map → chunk-SDPWO2Z5.js.map} +1 -1
- package/dist/{chunk-6S3PTHL4.js → chunk-SLGGT2XD.js} +3 -3
- package/dist/{chunk-6S3PTHL4.js.map → chunk-SLGGT2XD.js.map} +1 -1
- package/dist/{chunk-HSEZ7X6Y.cjs → chunk-TIJUA4I6.cjs} +45 -45
- package/dist/{chunk-HSEZ7X6Y.cjs.map → chunk-TIJUA4I6.cjs.map} +1 -1
- package/dist/{chunk-CSNOYIB4.cjs → chunk-TM54OBHX.cjs} +13 -13
- package/dist/{chunk-CSNOYIB4.cjs.map → chunk-TM54OBHX.cjs.map} +1 -1
- package/dist/{chunk-MM3JHVKZ.cjs → chunk-TUWSVL6I.cjs} +4 -4
- package/dist/{chunk-MM3JHVKZ.cjs.map → chunk-TUWSVL6I.cjs.map} +1 -1
- package/dist/{chunk-2GIV5X4P.js → chunk-TYEYRCXL.js} +86 -33
- package/dist/chunk-TYEYRCXL.js.map +1 -0
- package/dist/{chunk-MJPZNEJZ.js → chunk-UKOVGCRN.js} +2095 -496
- package/dist/chunk-UKOVGCRN.js.map +1 -0
- package/dist/chunk-UYKDYE5D.cjs +12 -0
- package/dist/{chunk-KWNWG4RC.cjs.map → chunk-UYKDYE5D.cjs.map} +1 -1
- package/dist/{chunk-FX5ZW6PN.js → chunk-VAAC7L57.js} +95 -40
- package/dist/chunk-VAAC7L57.js.map +1 -0
- package/dist/{chunk-ISKCIQF2.cjs → chunk-VKHXYVN7.cjs} +14 -25
- package/dist/chunk-VKHXYVN7.cjs.map +1 -0
- package/dist/chunk-VUQZNUHU.js +171 -0
- package/dist/chunk-VUQZNUHU.js.map +1 -0
- package/dist/{chunk-K2XYLVVB.cjs → chunk-WDM5WQK4.cjs} +175 -136
- package/dist/chunk-WDM5WQK4.cjs.map +1 -0
- package/dist/{chunk-GVYVGGPJ.js → chunk-WFSYYU4W.js} +66 -28
- package/dist/chunk-WFSYYU4W.js.map +1 -0
- package/dist/{chunk-R7MRFE5P.js → chunk-WS5MT2UJ.js} +3 -3
- package/dist/{chunk-R7MRFE5P.js.map → chunk-WS5MT2UJ.js.map} +1 -1
- package/dist/chunk-XORONCV3.js +202 -0
- package/dist/chunk-XORONCV3.js.map +1 -0
- package/dist/chunk-ZGVTNKTX.cjs +217 -0
- package/dist/chunk-ZGVTNKTX.cjs.map +1 -0
- package/dist/core/index.cjs +20 -20
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +4 -4
- package/dist/{ddl-B49O7dB_.d.ts → ddl-BvcbgzHo.d.ts} +3 -3
- package/dist/{ddl-DcZG660s.d.cts → ddl-Ufebz5q5.d.cts} +3 -3
- package/dist/graph-extension/index.d.cts +2 -4
- package/dist/graph-extension/index.d.ts +2 -4
- package/dist/graph-merge/index.cjs +140 -125
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +8 -9
- package/dist/graph-merge/index.d.ts +8 -9
- package/dist/graph-merge/index.js +42 -27
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/index.cjs +144 -143
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -12
- package/dist/index.d.ts +11 -12
- package/dist/index.js +30 -29
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +14 -12
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/indexes/index.js +7 -5
- package/dist/{ingestion-import-target-CI8OWIkM.d.ts → ingestion-import-target-CAs1OX-l.d.cts} +1 -1
- package/dist/{ingestion-import-target-DCpfM1PX.d.cts → ingestion-import-target-DCQSPfNx.d.ts} +1 -1
- package/dist/interchange/index.cjs +41 -39
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +8 -8
- package/dist/interchange/index.d.ts +8 -8
- package/dist/interchange/index.js +16 -14
- package/dist/interchange/index.js.map +1 -1
- package/dist/local-store-impl-JC7OBRAW.js +75 -0
- package/dist/local-store-impl-JC7OBRAW.js.map +1 -0
- package/dist/local-store-impl-UOS2LUIG.cjs +77 -0
- package/dist/local-store-impl-UOS2LUIG.cjs.map +1 -0
- package/dist/{manager-Cfg1ENj1.d.ts → manager-B68OrPR2.d.ts} +1 -2
- package/dist/{manager-D348fa6W.d.cts → manager-D_t7oK69.d.cts} +1 -2
- package/dist/pglite-store-impl-J5J5AA52.cjs +75 -0
- package/dist/pglite-store-impl-J5J5AA52.cjs.map +1 -0
- package/dist/pglite-store-impl-LDRH2DUH.js +73 -0
- package/dist/pglite-store-impl-LDRH2DUH.js.map +1 -0
- package/dist/{postgres-UStOycLI.d.ts → postgres-BPLSVyHM.d.ts} +1 -1
- package/dist/{postgres-CH1kkM5J.d.cts → postgres-CqvtFC2y.d.cts} +1 -1
- package/dist/profiler/index.d.cts +9 -9
- package/dist/profiler/index.d.ts +9 -9
- package/dist/provenance/index.cjs +33 -20
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +7 -7
- package/dist/provenance/index.d.ts +7 -7
- package/dist/provenance/index.js +24 -11
- package/dist/provenance/index.js.map +1 -1
- package/dist/{repair-validity-windows-aWX7VNvv.d.cts → repair-validity-windows-DEzCKAdy.d.cts} +7 -3
- package/dist/{repair-validity-windows-BtOEe2pS.d.ts → repair-validity-windows-GMdaS2AH.d.ts} +7 -3
- package/dist/resolve-D_H8MHtq.d.ts +1805 -0
- package/dist/resolve-WEW8gWws.d.cts +1805 -0
- package/dist/schema/index.cjs +42 -40
- package/dist/schema/index.d.cts +4 -6
- package/dist/schema/index.d.ts +4 -6
- package/dist/schema/index.js +15 -13
- package/dist/{searchable-z4BiFfHI.d.ts → searchable-C_UREI9K.d.ts} +1 -1
- package/dist/{searchable-C8-RrL3l.d.cts → searchable-ClgET_i7.d.cts} +1 -1
- package/dist/{sqlite-axLw5Lo5.d.ts → sqlite-D1mXO9Kp.d.cts} +2 -1
- package/dist/{sqlite-Cyx9j9o6.d.cts → sqlite-MZA3oZNB.d.ts} +2 -1
- package/dist/{store-CTfQ9taw.d.ts → store-CuFX7fCx.d.cts} +38 -41
- package/dist/{store-DR9J7JVB.d.cts → store-D-ZjXQpW.d.ts} +38 -41
- package/dist/{temporal-CBOrERz5.d.ts → temporal-CpyEiRY8.d.cts} +1 -1
- package/dist/{temporal-B4Ky4wzh.d.cts → temporal-y0Aep9Su.d.ts} +1 -1
- package/dist/{types-CWg4dTjj.d.ts → types-6yf0Vv-_.d.cts} +1672 -1
- package/dist/{types-CWg4dTjj.d.cts → types-6yf0Vv-_.d.ts} +1672 -1
- package/dist/{types-BScHXVM7.d.ts → types-DzJ4dlzk.d.cts} +1 -1
- package/dist/{types-BE921wRl.d.cts → types-_vVSB9k-.d.ts} +1 -1
- package/dist/{where-BWXUPV3C.d.ts → where-DuG2LCLe.d.ts} +1 -1
- package/dist/{where-CNtx1aLc.d.cts → where-Mhf_yyKX.d.cts} +1 -1
- package/package.json +5 -1
- package/dist/chunk-2CYI5HRH.js.map +0 -1
- package/dist/chunk-2GIV5X4P.js.map +0 -1
- package/dist/chunk-2Q45FAIE.js.map +0 -1
- package/dist/chunk-46UGOVRW.js.map +0 -1
- package/dist/chunk-5LKOVCPP.js.map +0 -1
- package/dist/chunk-5OWHU7Z7.cjs.map +0 -1
- package/dist/chunk-6LEOAIIB.js +0 -1160
- package/dist/chunk-6LEOAIIB.js.map +0 -1
- package/dist/chunk-7CCMCMJO.cjs.map +0 -1
- package/dist/chunk-7PRMDZIA.cjs.map +0 -1
- package/dist/chunk-C76WFIVZ.cjs.map +0 -1
- package/dist/chunk-CS6JTQQ2.cjs.map +0 -1
- package/dist/chunk-EDLKIQRI.js.map +0 -1
- package/dist/chunk-EH3JZJUM.cjs +0 -567
- package/dist/chunk-EH3JZJUM.cjs.map +0 -1
- package/dist/chunk-FX5ZW6PN.js.map +0 -1
- package/dist/chunk-GHZPZNFC.cjs +0 -132
- package/dist/chunk-GHZPZNFC.cjs.map +0 -1
- package/dist/chunk-GVYVGGPJ.js.map +0 -1
- package/dist/chunk-IHK5KA2Q.cjs +0 -262
- package/dist/chunk-IHK5KA2Q.cjs.map +0 -1
- package/dist/chunk-IRPYOHRC.js.map +0 -1
- package/dist/chunk-ISKCIQF2.cjs.map +0 -1
- package/dist/chunk-JG5XIJDY.js.map +0 -1
- package/dist/chunk-K2XYLVVB.cjs.map +0 -1
- package/dist/chunk-KWNWG4RC.cjs +0 -12
- package/dist/chunk-LLVOQOWE.cjs.map +0 -1
- package/dist/chunk-MJPZNEJZ.js.map +0 -1
- package/dist/chunk-MX7EKQPM.js.map +0 -1
- package/dist/chunk-MZ34E2GN.js.map +0 -1
- package/dist/chunk-OJHD3LXJ.cjs.map +0 -1
- package/dist/chunk-PALYTHGM.js +0 -114
- package/dist/chunk-PALYTHGM.js.map +0 -1
- package/dist/chunk-RDP6ZRSM.cjs.map +0 -1
- package/dist/chunk-S3SDEQMC.js +0 -532
- package/dist/chunk-S3SDEQMC.js.map +0 -1
- package/dist/chunk-TEC24ZDA.cjs +0 -1254
- package/dist/chunk-TEC24ZDA.cjs.map +0 -1
- package/dist/chunk-TP4NJTI3.cjs +0 -1192
- package/dist/chunk-TP4NJTI3.cjs.map +0 -1
- package/dist/chunk-TTCOPKUL.cjs.map +0 -1
- package/dist/chunk-TUVD4DFR.cjs.map +0 -1
- package/dist/chunk-TYGGUWMS.cjs.map +0 -1
- package/dist/chunk-U3Z7XKAG.js.map +0 -1
- package/dist/chunk-U5EL6JUV.js.map +0 -1
- package/dist/chunk-VTJVMP4I.js.map +0 -1
- package/dist/chunk-WCLMKNQE.cjs.map +0 -1
- package/dist/chunk-XMY2SXOH.cjs.map +0 -1
- package/dist/chunk-Y55DLLEG.js +0 -247
- package/dist/chunk-Y55DLLEG.js.map +0 -1
- package/dist/chunk-YA36ABIL.js.map +0 -1
- package/dist/chunk-ZBFZGLZE.cjs.map +0 -1
- package/dist/index-B0PrmE3K.d.cts +0 -1146
- package/dist/index-CwcXsL5R.d.ts +0 -1146
- package/dist/materialize-indexes-C9GG3O3C.d.ts +0 -266
- package/dist/materialize-indexes-CrSiW_lT.d.cts +0 -266
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var chunkFMMW3KX7_cjs = require('./chunk-FMMW3KX7.cjs');
|
|
4
|
+
var chunkJQKMEKKW_cjs = require('./chunk-JQKMEKKW.cjs');
|
|
5
|
+
var chunkNLX5OWK7_cjs = require('./chunk-NLX5OWK7.cjs');
|
|
6
|
+
var chunkZGVTNKTX_cjs = require('./chunk-ZGVTNKTX.cjs');
|
|
7
|
+
var chunkNUQ2YFFH_cjs = require('./chunk-NUQ2YFFH.cjs');
|
|
8
|
+
var chunkCRZ56SZU_cjs = require('./chunk-CRZ56SZU.cjs');
|
|
8
9
|
var chunkM5MSP3BI_cjs = require('./chunk-M5MSP3BI.cjs');
|
|
9
|
-
var
|
|
10
|
+
var chunkH5IJSROF_cjs = require('./chunk-H5IJSROF.cjs');
|
|
10
11
|
var chunkHAHNRASW_cjs = require('./chunk-HAHNRASW.cjs');
|
|
11
12
|
var chunkX4GDXBOP_cjs = require('./chunk-X4GDXBOP.cjs');
|
|
12
13
|
var chunkN66HCGCY_cjs = require('./chunk-N66HCGCY.cjs');
|
|
13
14
|
|
|
14
15
|
// src/store/types.ts
|
|
15
16
|
var AUTO_REFRESH_STATISTICS_ROW_THRESHOLD = 1e3;
|
|
16
|
-
var TRANSACTION_RUNTIME =
|
|
17
|
+
var TRANSACTION_RUNTIME = chunkH5IJSROF_cjs.typeGraphGlobalSymbol(
|
|
17
18
|
"transaction-runtime-v1"
|
|
18
19
|
);
|
|
19
20
|
|
|
20
21
|
// src/store/runtime-port.ts
|
|
21
|
-
var STORE_RUNTIME =
|
|
22
|
+
var STORE_RUNTIME = chunkH5IJSROF_cjs.typeGraphGlobalSymbol("store-runtime-v1");
|
|
22
23
|
function storeRuntime(store) {
|
|
23
24
|
const runtime = store[STORE_RUNTIME];
|
|
24
25
|
if (runtime === void 0) {
|
|
@@ -53,8 +54,8 @@ function transactionNodeOperationHookRunner(transaction) {
|
|
|
53
54
|
// src/store/claims/sites.ts
|
|
54
55
|
function disjointnessSites(registry, kind) {
|
|
55
56
|
return registry.getDisjointKinds(kind).map((otherKind) => ({
|
|
56
|
-
axis:
|
|
57
|
-
constraintName:
|
|
57
|
+
axis: chunkCRZ56SZU_cjs.disjointnessClaimAxis(kind, otherKind, registry),
|
|
58
|
+
constraintName: chunkCRZ56SZU_cjs.DISJOINT_CONSTRAINT_NAME,
|
|
58
59
|
needsLockFence: true,
|
|
59
60
|
placement: "pre-insert",
|
|
60
61
|
refusalReason: "nodeDisjointness",
|
|
@@ -63,7 +64,7 @@ function disjointnessSites(registry, kind) {
|
|
|
63
64
|
}
|
|
64
65
|
function nodeClaimSites(registry, kind, uniqueConstraints, operation) {
|
|
65
66
|
const uniqueness = uniqueConstraints.map((constraint) => {
|
|
66
|
-
const target =
|
|
67
|
+
const target = chunkCRZ56SZU_cjs.uniquenessClaimTarget(kind, constraint.scope, registry);
|
|
67
68
|
return {
|
|
68
69
|
axis: target.axis,
|
|
69
70
|
constraintName: constraint.name,
|
|
@@ -77,12 +78,12 @@ function nodeClaimSites(registry, kind, uniqueConstraints, operation) {
|
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
// src/store/claims/node-claims.ts
|
|
80
|
-
function createUniquenessContext(graphId, registry, backend) {
|
|
81
|
-
return { graphId, registry, backend };
|
|
81
|
+
function createUniquenessContext(graphId, registry, backend, uniqueSidecarBatch) {
|
|
82
|
+
return { graphId, registry, backend, uniqueSidecarBatch };
|
|
82
83
|
}
|
|
83
84
|
function claimKeyFor(refusal, id, props) {
|
|
84
85
|
if (refusal.kind === "disjointness") return id;
|
|
85
|
-
return
|
|
86
|
+
return chunkCRZ56SZU_cjs.checkWherePredicate(refusal.constraint, props) ? chunkCRZ56SZU_cjs.computeUniqueKey(
|
|
86
87
|
props,
|
|
87
88
|
refusal.constraint.fields,
|
|
88
89
|
refusal.constraint.collation
|
|
@@ -130,7 +131,7 @@ async function issuingClaims(entries, issue) {
|
|
|
130
131
|
function claimFenceRefusal(ctx, backend, entries) {
|
|
131
132
|
const gating = entries.find((entry) => entry.placement === "pre-insert");
|
|
132
133
|
if (gating === void 0) return void 0;
|
|
133
|
-
return
|
|
134
|
+
return chunkJQKMEKKW_cjs.constraintFenceRefusal(ctx, backend, gating.refusalReason);
|
|
134
135
|
}
|
|
135
136
|
function isUniquenessClaimEntry(entry) {
|
|
136
137
|
return entry.refusal.kind === "uniqueness";
|
|
@@ -138,7 +139,7 @@ function isUniquenessClaimEntry(entry) {
|
|
|
138
139
|
async function probeUniqueKey(ctx, kind, id, entry) {
|
|
139
140
|
const mine = { concreteKind: kind, nodeId: id };
|
|
140
141
|
let heldByThisNode = false;
|
|
141
|
-
for (const kindToCheck of
|
|
142
|
+
for (const kindToCheck of chunkCRZ56SZU_cjs.uniquenessProbeKinds(
|
|
142
143
|
kind,
|
|
143
144
|
entry.refusal.constraint.scope,
|
|
144
145
|
ctx.registry
|
|
@@ -150,7 +151,7 @@ async function probeUniqueKey(ctx, kind, id, entry) {
|
|
|
150
151
|
key: entry.key
|
|
151
152
|
});
|
|
152
153
|
if (existing === void 0) continue;
|
|
153
|
-
if (!
|
|
154
|
+
if (!chunkCRZ56SZU_cjs.isSameClaimOwner(
|
|
154
155
|
{ concreteKind: existing.concrete_kind, nodeId: existing.node_id },
|
|
155
156
|
mine
|
|
156
157
|
)) {
|
|
@@ -209,15 +210,21 @@ async function issueClaimsIndividually(ctx, claims, onIssued) {
|
|
|
209
210
|
}
|
|
210
211
|
async function issueClaimsBatched(ctx, claims, onIssued) {
|
|
211
212
|
if (claims.length === 0) return;
|
|
212
|
-
const
|
|
213
|
-
|
|
213
|
+
const bound = chunkNUQ2YFFH_cjs.bindExtraIfReachable(
|
|
214
|
+
ctx.backend,
|
|
215
|
+
ctx.uniqueSidecarBatch.extras.insertUniqueBatch,
|
|
216
|
+
chunkNUQ2YFFH_cjs.UNIQUE_SIDECAR_BATCH.id
|
|
217
|
+
);
|
|
218
|
+
if (bound === void 0) {
|
|
214
219
|
await issueClaimsIndividually(ctx, claims, onIssued);
|
|
215
220
|
return;
|
|
216
221
|
}
|
|
217
222
|
await issuingClaims(
|
|
218
223
|
claims.map((claim) => claim.entry),
|
|
219
224
|
async () => {
|
|
220
|
-
await
|
|
225
|
+
await bound.insertUniqueBatch(
|
|
226
|
+
claims.map((claim) => claimInsertParams(ctx.graphId, claim))
|
|
227
|
+
);
|
|
221
228
|
}
|
|
222
229
|
);
|
|
223
230
|
onIssued?.(claims);
|
|
@@ -246,7 +253,8 @@ async function withNodeCreateClaimsIssuedBy(ctx, items, backend, issue, gatedIns
|
|
|
246
253
|
const claimContext = createUniquenessContext(
|
|
247
254
|
ctx.graphId,
|
|
248
255
|
ctx.registry,
|
|
249
|
-
backend
|
|
256
|
+
backend,
|
|
257
|
+
ctx.uniqueSidecarBatch
|
|
250
258
|
);
|
|
251
259
|
const claims = items.flatMap(
|
|
252
260
|
(item) => nodeClaimEntries(
|
|
@@ -269,7 +277,7 @@ async function withNodeCreateClaimsIssuedBy(ctx, items, backend, issue, gatedIns
|
|
|
269
277
|
);
|
|
270
278
|
if (refusal !== void 0) throw refusal;
|
|
271
279
|
const inPlacement = (placement) => claims.filter((claim) => claim.entry.placement === placement).toSorted(
|
|
272
|
-
(left, right) =>
|
|
280
|
+
(left, right) => chunkCRZ56SZU_cjs.compareClaimTargets(left.target, right.target)
|
|
273
281
|
);
|
|
274
282
|
const result = await claimGroupThenWrite(
|
|
275
283
|
claimContext,
|
|
@@ -310,7 +318,13 @@ async function deleteUniquenessEntries(ctx, kind, id, props, constraints) {
|
|
|
310
318
|
);
|
|
311
319
|
}
|
|
312
320
|
async function hardDeleteClaimsByNodeIds(ctx, concreteKind, nodeIds) {
|
|
313
|
-
await chunkN66HCGCY_cjs.requireDefined(
|
|
321
|
+
await chunkN66HCGCY_cjs.requireDefined(
|
|
322
|
+
chunkNUQ2YFFH_cjs.bindExtraIfReachable(
|
|
323
|
+
ctx.backend,
|
|
324
|
+
ctx.uniqueSidecarBatch.extras.hardDeleteUniquesByNodeIds,
|
|
325
|
+
chunkNUQ2YFFH_cjs.UNIQUE_SIDECAR_BATCH.id
|
|
326
|
+
)?.hardDeleteUniquesByNodeIds
|
|
327
|
+
)({
|
|
314
328
|
graphId: ctx.graphId,
|
|
315
329
|
concreteKind,
|
|
316
330
|
nodeIds
|
|
@@ -441,7 +455,7 @@ async function withNodeClaimTransition(ctx, kind, id, plan, gatedWrite) {
|
|
|
441
455
|
|
|
442
456
|
// src/store/claims/resolved-node-claims.ts
|
|
443
457
|
function claimRowKey(entry) {
|
|
444
|
-
return
|
|
458
|
+
return chunkCRZ56SZU_cjs.encodeTupleKey([entry.constraintName, entry.key]);
|
|
445
459
|
}
|
|
446
460
|
function claimsCompete(left, right) {
|
|
447
461
|
return claimRowKey(left.entry) === claimRowKey(right.entry) && (right.probeKinds.includes(left.entry.axis) || left.probeKinds.includes(right.entry.axis));
|
|
@@ -475,14 +489,14 @@ function proposedClaims(ctx, upserts) {
|
|
|
475
489
|
const proposal = {
|
|
476
490
|
owner,
|
|
477
491
|
entry,
|
|
478
|
-
probeKinds:
|
|
492
|
+
probeKinds: chunkCRZ56SZU_cjs.uniquenessProbeKinds(
|
|
479
493
|
upsert.kind,
|
|
480
494
|
entry.refusal.constraint.scope,
|
|
481
495
|
ctx.registry
|
|
482
496
|
)
|
|
483
497
|
};
|
|
484
498
|
const incumbent = accepted.find(
|
|
485
|
-
(candidate) => !
|
|
499
|
+
(candidate) => !chunkCRZ56SZU_cjs.isSameClaimOwner(candidate.owner, proposal.owner) && claimsCompete(candidate, proposal)
|
|
486
500
|
);
|
|
487
501
|
if (incumbent !== void 0) {
|
|
488
502
|
throw proposedClaimRefusal(incumbent, proposal);
|
|
@@ -496,7 +510,7 @@ function groupClaimsForProbe(claims) {
|
|
|
496
510
|
const groups = /* @__PURE__ */ new Map();
|
|
497
511
|
for (const claim of claims) {
|
|
498
512
|
for (const probeKind of claim.probeKinds) {
|
|
499
|
-
const groupKey =
|
|
513
|
+
const groupKey = chunkCRZ56SZU_cjs.encodeTupleKey([probeKind, claim.entry.constraintName]);
|
|
500
514
|
const existing = groups.get(groupKey);
|
|
501
515
|
if (existing === void 0) {
|
|
502
516
|
groups.set(groupKey, {
|
|
@@ -512,14 +526,18 @@ function groupClaimsForProbe(claims) {
|
|
|
512
526
|
return [...groups.values()];
|
|
513
527
|
}
|
|
514
528
|
function requireBatchProbe(ctx) {
|
|
515
|
-
const
|
|
516
|
-
|
|
529
|
+
const bound = chunkNUQ2YFFH_cjs.bindExtraIfReachable(
|
|
530
|
+
ctx.backend,
|
|
531
|
+
ctx.uniqueSidecarBatch.extras.checkUniqueBatch,
|
|
532
|
+
chunkNUQ2YFFH_cjs.UNIQUE_SIDECAR_BATCH.id
|
|
533
|
+
);
|
|
534
|
+
if (bound === void 0) {
|
|
517
535
|
throw new chunkX4GDXBOP_cjs.ConfigurationError(
|
|
518
536
|
"Resolved node writes require batched uniqueness probes",
|
|
519
537
|
{ code: "RESOLVED_NODE_UNIQUENESS_UNSUPPORTED" }
|
|
520
538
|
);
|
|
521
539
|
}
|
|
522
|
-
return checkUniqueBatch;
|
|
540
|
+
return bound.checkUniqueBatch;
|
|
523
541
|
}
|
|
524
542
|
async function validateResolvedNodeClaims(ctx, upserts, releases = []) {
|
|
525
543
|
const checkUniqueBatch = requireBatchProbe(ctx);
|
|
@@ -527,7 +545,7 @@ async function validateResolvedNodeClaims(ctx, upserts, releases = []) {
|
|
|
527
545
|
if (claims.length === 0) return;
|
|
528
546
|
const affectedOwners = new Set(
|
|
529
547
|
[...upserts, ...releases].map(
|
|
530
|
-
(reference) =>
|
|
548
|
+
(reference) => chunkCRZ56SZU_cjs.claimOwnerKey({ concreteKind: reference.kind, nodeId: reference.id })
|
|
531
549
|
)
|
|
532
550
|
);
|
|
533
551
|
for (const group of groupClaimsForProbe(claims)) {
|
|
@@ -539,7 +557,7 @@ async function validateResolvedNodeClaims(ctx, upserts, releases = []) {
|
|
|
539
557
|
});
|
|
540
558
|
for (const existing of existingRows) {
|
|
541
559
|
if (affectedOwners.has(
|
|
542
|
-
|
|
560
|
+
chunkCRZ56SZU_cjs.claimOwnerKey({
|
|
543
561
|
concreteKind: existing.concrete_kind,
|
|
544
562
|
nodeId: existing.node_id
|
|
545
563
|
})
|
|
@@ -561,13 +579,36 @@ async function validateResolvedNodeClaims(ctx, upserts, releases = []) {
|
|
|
561
579
|
}
|
|
562
580
|
}
|
|
563
581
|
}
|
|
582
|
+
function resolvedNodeUniquenessOperationsRefusal() {
|
|
583
|
+
return new chunkX4GDXBOP_cjs.ConfigurationError(
|
|
584
|
+
"Resolved node writes require batched uniqueness operations",
|
|
585
|
+
{ code: "RESOLVED_NODE_UNIQUENESS_UNSUPPORTED" }
|
|
586
|
+
);
|
|
587
|
+
}
|
|
564
588
|
async function prepareResolvedNodeClaims(ctx, upserts, releases) {
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
589
|
+
chunkZGVTNKTX_cjs.requireExtras(
|
|
590
|
+
chunkNUQ2YFFH_cjs.UNIQUE_SIDECAR_BATCH,
|
|
591
|
+
ctx.uniqueSidecarBatch,
|
|
592
|
+
"resolved node write",
|
|
593
|
+
() => {
|
|
594
|
+
throw resolvedNodeUniquenessOperationsRefusal();
|
|
595
|
+
}
|
|
596
|
+
);
|
|
597
|
+
const boundHardDelete = chunkNUQ2YFFH_cjs.bindExtraIfReachable(
|
|
598
|
+
ctx.backend,
|
|
599
|
+
ctx.uniqueSidecarBatch.extras.hardDeleteUniquesByNodeIds,
|
|
600
|
+
chunkNUQ2YFFH_cjs.UNIQUE_SIDECAR_BATCH.id
|
|
601
|
+
);
|
|
602
|
+
if (boundHardDelete === void 0) {
|
|
603
|
+
throw resolvedNodeUniquenessOperationsRefusal();
|
|
604
|
+
}
|
|
605
|
+
const { hardDeleteUniquesByNodeIds } = boundHardDelete;
|
|
606
|
+
if (chunkNUQ2YFFH_cjs.bindExtraIfReachable(
|
|
607
|
+
ctx.backend,
|
|
608
|
+
ctx.uniqueSidecarBatch.extras.insertUniqueBatch,
|
|
609
|
+
chunkNUQ2YFFH_cjs.UNIQUE_SIDECAR_BATCH.id
|
|
610
|
+
) === void 0) {
|
|
611
|
+
throw resolvedNodeUniquenessOperationsRefusal();
|
|
571
612
|
}
|
|
572
613
|
await validateResolvedNodeClaims(ctx, upserts, releases);
|
|
573
614
|
const idsByKind = /* @__PURE__ */ new Map();
|
|
@@ -588,7 +629,8 @@ async function applyResolvedNodeClaims(ctx, backend, upserts, releases, apply) {
|
|
|
588
629
|
const claimContext = {
|
|
589
630
|
graphId: ctx.graphId,
|
|
590
631
|
registry: ctx.registry,
|
|
591
|
-
backend
|
|
632
|
+
backend,
|
|
633
|
+
uniqueSidecarBatch: ctx.uniqueSidecarBatch
|
|
592
634
|
};
|
|
593
635
|
await prepareResolvedNodeClaims(claimContext, upserts, releases);
|
|
594
636
|
const result = await apply();
|
|
@@ -858,11 +900,16 @@ async function deleteNodeFulltext(ctx, schema) {
|
|
|
858
900
|
}
|
|
859
901
|
|
|
860
902
|
// src/store/operations/node-write-pipeline.ts
|
|
861
|
-
function createNodeWriteContext(graphId, registry, lock) {
|
|
862
|
-
return { graphId, registry, lock };
|
|
903
|
+
function createNodeWriteContext(graphId, registry, lock, claimsVerdict, uniqueSidecarBatch) {
|
|
904
|
+
return { graphId, registry, lock, claimsVerdict, uniqueSidecarBatch };
|
|
863
905
|
}
|
|
864
906
|
function uniquenessContext(ctx, backend) {
|
|
865
|
-
return createUniquenessContext(
|
|
907
|
+
return createUniquenessContext(
|
|
908
|
+
ctx.graphId,
|
|
909
|
+
ctx.registry,
|
|
910
|
+
backend,
|
|
911
|
+
ctx.uniqueSidecarBatch
|
|
912
|
+
);
|
|
866
913
|
}
|
|
867
914
|
function nodeSyncContext(ctx, kind, id, backend) {
|
|
868
915
|
return { graphId: ctx.graphId, nodeKind: kind, nodeId: id, backend };
|
|
@@ -900,7 +947,12 @@ async function enforceNodeDeleteBehavior(ctx, args, backend, policy) {
|
|
|
900
947
|
});
|
|
901
948
|
}
|
|
902
949
|
if (args.mode === "hard") {
|
|
903
|
-
await
|
|
950
|
+
await chunkFMMW3KX7_cjs.purgeEdgeClaims(
|
|
951
|
+
backend,
|
|
952
|
+
ctx.claimsVerdict(),
|
|
953
|
+
ctx.graphId,
|
|
954
|
+
connectedEdgeIds
|
|
955
|
+
);
|
|
904
956
|
}
|
|
905
957
|
break;
|
|
906
958
|
}
|
|
@@ -939,7 +991,7 @@ async function applyNodeInsertSyncFansBatch(ctx, items, backend) {
|
|
|
939
991
|
);
|
|
940
992
|
}
|
|
941
993
|
function parseRowProps(row) {
|
|
942
|
-
return
|
|
994
|
+
return chunkNUQ2YFFH_cjs.rowPropsToObject(row.props);
|
|
943
995
|
}
|
|
944
996
|
async function planNodeUpdateUniqueness(ctx, args, backend) {
|
|
945
997
|
const { kind, id } = args.existing;
|
|
@@ -1092,7 +1144,11 @@ async function applyNodeSetUpdate(ctx, args, backend) {
|
|
|
1092
1144
|
{ code: "SET_UPDATE_UNSUPPORTED", kind }
|
|
1093
1145
|
);
|
|
1094
1146
|
}
|
|
1095
|
-
if (uniqueConstraints.length > 0 && (
|
|
1147
|
+
if (uniqueConstraints.length > 0 && chunkZGVTNKTX_cjs.missingRequiredExtras(
|
|
1148
|
+
chunkNUQ2YFFH_cjs.UNIQUE_SIDECAR_BATCH,
|
|
1149
|
+
ctx.uniqueSidecarBatch,
|
|
1150
|
+
"set-based node update"
|
|
1151
|
+
).length > 0) {
|
|
1096
1152
|
throw new chunkX4GDXBOP_cjs.ConfigurationError(
|
|
1097
1153
|
"The transaction backend lacks batched uniqueness operations",
|
|
1098
1154
|
{ code: "SET_UPDATE_UNIQUENESS_UNSUPPORTED", kind }
|
|
@@ -1120,13 +1176,13 @@ async function applyNodeSetUpdate(ctx, args, backend) {
|
|
|
1120
1176
|
});
|
|
1121
1177
|
if (result.affectedCount === 0) return { affectedCount: 0 };
|
|
1122
1178
|
const sidecarItems = result.rows.map((row) => {
|
|
1123
|
-
const props =
|
|
1124
|
-
const validatedProps =
|
|
1179
|
+
const props = chunkNUQ2YFFH_cjs.rowPropsToObject(row.props);
|
|
1180
|
+
const validatedProps = chunkJQKMEKKW_cjs.validateNodeProps(schema, props, {
|
|
1125
1181
|
kind,
|
|
1126
1182
|
operation: "update",
|
|
1127
1183
|
id: row.id
|
|
1128
1184
|
});
|
|
1129
|
-
if (!
|
|
1185
|
+
if (!chunkNLX5OWK7_cjs.canonicalEqual(validatedProps, props)) {
|
|
1130
1186
|
throw new chunkX4GDXBOP_cjs.ValidationError(
|
|
1131
1187
|
`Set update would persist a non-canonical ${kind} row`,
|
|
1132
1188
|
{
|
|
@@ -1158,8 +1214,23 @@ async function applyNodeSetUpdate(ctx, args, backend) {
|
|
|
1158
1214
|
constraints: item.uniqueConstraints
|
|
1159
1215
|
}));
|
|
1160
1216
|
if (uniqueConstraints.length > 0) {
|
|
1217
|
+
if (chunkNUQ2YFFH_cjs.bindExtraIfReachable(
|
|
1218
|
+
backend,
|
|
1219
|
+
ctx.uniqueSidecarBatch.extras.insertUniqueBatch,
|
|
1220
|
+
chunkNUQ2YFFH_cjs.UNIQUE_SIDECAR_BATCH.id
|
|
1221
|
+
) === void 0) {
|
|
1222
|
+
throw new chunkX4GDXBOP_cjs.ConfigurationError(
|
|
1223
|
+
"The transaction backend lacks batched uniqueness operations",
|
|
1224
|
+
{ code: "SET_UPDATE_UNIQUENESS_UNSUPPORTED", kind }
|
|
1225
|
+
);
|
|
1226
|
+
}
|
|
1161
1227
|
await validateResolvedNodeClaims(
|
|
1162
|
-
createUniquenessContext(
|
|
1228
|
+
createUniquenessContext(
|
|
1229
|
+
ctx.graphId,
|
|
1230
|
+
ctx.registry,
|
|
1231
|
+
backend,
|
|
1232
|
+
ctx.uniqueSidecarBatch
|
|
1233
|
+
),
|
|
1163
1234
|
claimItems,
|
|
1164
1235
|
[]
|
|
1165
1236
|
);
|
|
@@ -1203,5 +1274,5 @@ exports.transactionBackend = transactionBackend;
|
|
|
1203
1274
|
exports.transactionNodeOperationHookRunner = transactionNodeOperationHookRunner;
|
|
1204
1275
|
exports.withNodeCreateClaims = withNodeCreateClaims;
|
|
1205
1276
|
exports.withNodeCreateClaimsBatch = withNodeCreateClaimsBatch;
|
|
1206
|
-
//# sourceMappingURL=chunk-
|
|
1207
|
-
//# sourceMappingURL=chunk-
|
|
1277
|
+
//# sourceMappingURL=chunk-2CVDZCXH.cjs.map
|
|
1278
|
+
//# sourceMappingURL=chunk-2CVDZCXH.cjs.map
|