@noy-db/hub 0.2.0-pre.6 → 0.2.0-pre.8
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.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 +5 -5
- package/dist/bundle/index.cjs +420 -29
- 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 +12 -12
- package/dist/{chunk-JICBEFBT.js → chunk-22DWZL57.js} +63 -27
- package/dist/chunk-22DWZL57.js.map +1 -0
- package/dist/{chunk-XDW37COG.js → chunk-2GLDA55J.js} +212 -7
- package/dist/chunk-2GLDA55J.js.map +1 -0
- package/dist/{chunk-RIHZBSWJ.js → chunk-2WUSG3IT.js} +3 -3
- package/dist/{chunk-JSYTGEX4.js → chunk-3BFJOWSU.js} +3 -3
- package/dist/{chunk-Y3P5DEMZ.js → chunk-3YPCK6JX.js} +6 -6
- package/dist/{chunk-A4JNVBPF.js → chunk-53XBRIRT.js} +5 -5
- package/dist/{chunk-CKH247ZR.js → chunk-5T22KDPN.js} +4 -4
- package/dist/{chunk-PX3MJ6RB.js → chunk-5XHKQ56N.js} +3 -3
- package/dist/{chunk-W277AG6N.js → chunk-6774ZOQ7.js} +170 -57
- package/dist/chunk-6774ZOQ7.js.map +1 -0
- package/dist/chunk-6STK5TQP.js +139 -0
- package/dist/chunk-6STK5TQP.js.map +1 -0
- package/dist/{chunk-6HJ2ZALB.js → chunk-B6PB7JLN.js} +66 -2
- package/dist/chunk-B6PB7JLN.js.map +1 -0
- package/dist/{chunk-5QPF2MJ5.js → chunk-BVRYKATC.js} +3 -3
- package/dist/{chunk-UGVDIOY7.js → chunk-DE6GKS6G.js} +2 -2
- package/dist/{chunk-R4LTCI6O.js → chunk-DFMLEQZB.js} +2 -2
- package/dist/{chunk-34XGYMQT.js → chunk-DJHHA6XH.js} +2 -2
- package/dist/{chunk-OPD3PZOG.js → chunk-DL3HWOQ5.js} +4 -4
- package/dist/{chunk-DFCINPB5.js → chunk-DO7C2TOG.js} +2 -2
- package/dist/{chunk-T6MTNGBM.js → chunk-DONMZAD2.js} +4 -4
- package/dist/{chunk-ARZAHCCF.js → chunk-F3GDRNUT.js} +3 -3
- package/dist/{chunk-XVJFFGTG.js → chunk-H2X3ISXG.js} +3 -3
- package/dist/{chunk-R7JTYCRX.js → chunk-HNRHLRDC.js} +2 -2
- package/dist/{chunk-E225X5CQ.js → chunk-I5FOWO4J.js} +3 -3
- package/dist/{chunk-ZQMYB56Z.js → chunk-JWRVQKRZ.js} +3 -3
- package/dist/{chunk-LWFQYT4N.js → chunk-K3DK3NU5.js} +2 -2
- package/dist/{chunk-WEA4TDTJ.js → chunk-ML236QKC.js} +3 -3
- package/dist/{chunk-G26QAQNI.js → chunk-NONAAENK.js} +2 -2
- package/dist/{chunk-YEHUEUNP.js → chunk-O3VZPBZG.js} +4 -4
- package/dist/{chunk-HIELMTUK.js → chunk-OIF6LZUR.js} +2 -2
- package/dist/{chunk-ED3E3OLO.js → chunk-OQ6PIGHA.js} +2 -2
- package/dist/{chunk-6A4AMQ2H.js → chunk-PE2FR4J3.js} +4 -4
- package/dist/{chunk-EKTOYEZ3.js → chunk-PP6W64Y3.js} +2 -2
- package/dist/{chunk-SGSHQ4PH.js → chunk-PX35GA7L.js} +5 -5
- package/dist/{chunk-YJ46RFCD.js → chunk-QEILDE6R.js} +2 -2
- package/dist/{chunk-KGFV72WK.js → chunk-QODLLGQ7.js} +5 -5
- package/dist/{chunk-2GMRNNI3.js → chunk-RAZ4OVLL.js} +2 -2
- package/dist/{chunk-25WFLKOH.js → chunk-SYMWGEET.js} +2 -2
- package/dist/{chunk-7TX7HN42.js → chunk-T7JEBOGN.js} +20 -3
- package/dist/chunk-T7JEBOGN.js.map +1 -0
- package/dist/{chunk-LJO6Q3X6.js → chunk-TFBP23BX.js} +3 -3
- package/dist/{chunk-ICH4AIGL.js → chunk-TV3YZ35S.js} +5 -1
- package/dist/chunk-TV3YZ35S.js.map +1 -0
- package/dist/{chunk-TNBIWSQ7.js → chunk-U26HQ6KJ.js} +2 -2
- package/dist/{chunk-CGJFCT3X.js → chunk-VTKGMEPP.js} +2 -2
- package/dist/{chunk-5VMTAX4Y.js → chunk-W6EQLGMB.js} +2 -2
- package/dist/{chunk-5OVIFUQE.js → chunk-WIRRPTFH.js} +1 -1
- package/dist/chunk-WIRRPTFH.js.map +1 -0
- package/dist/{chunk-PS5G6A3Y.js → chunk-WPLVTJ5D.js} +4 -4
- package/dist/{chunk-MDIC4FAU.js → chunk-XJFLDA7A.js} +2 -2
- package/dist/{chunk-CCC25PA7.js → chunk-ZYWZWG6G.js} +5 -5
- 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-5UDZZL26.js → crypto-HTZ4FJOP.js} +3 -3
- package/dist/{delegation-42LO4WFO.js → delegation-RI54P6I5.js} +5 -5
- 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 +4 -4
- package/dist/{dev-unlock-Dy1qVpkL.d.cts → dev-unlock-M4VAWNq_.d.cts} +1 -1
- package/dist/{dev-unlock-Cvo-xCQC.d.ts → dev-unlock-p3ysikWP.d.ts} +1 -1
- package/dist/executor-5PNY7LGW.js +8 -0
- package/dist/executor-B4QIYGZX.js +8 -0
- package/dist/executor-BWXXDQ7K.js +11 -0
- package/dist/{fanout-sidecar-EVICRM46.js → fanout-sidecar-OKPMMPLG.js} +2 -2
- 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 +3 -3
- package/dist/{hash-BgEQklQc.d.cts → hash-BPsYPcv_.d.cts} +1 -1
- package/dist/{hash-BAlWR4WD.d.ts → hash-C1GtiOhR.d.ts} +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 +217 -22
- 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 +16 -5
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-5I0MZ0jQ.d.cts → index-4fBVt8j9.d.cts} +104 -7
- package/dist/{index-fIPPh5dg.d.ts → index-D8I_pyJD.d.ts} +104 -7
- package/dist/index.cjs +625 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +70 -52
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.cjs +4 -0
- package/dist/indexing/index.cjs.map +1 -1
- package/dist/indexing/index.d.cts +3 -3
- package/dist/indexing/index.d.ts +3 -3
- package/dist/indexing/index.js +4 -4
- package/dist/issue-VGDPP4B5.js +12 -0
- package/dist/{lazy-builder-D1MyR1qH.d.ts → lazy-builder-7tIpFyWN.d.ts} +1 -1
- package/dist/{lazy-builder-DXlSCNCJ.d.cts → lazy-builder-wY4pMCEe.d.cts} +1 -1
- package/dist/{ledger-UX4QIHWI.js → ledger-TMRZYNVJ.js} +5 -5
- package/dist/materialized-views/index.cjs +18 -1
- package/dist/materialized-views/index.cjs.map +1 -1
- package/dist/materialized-views/index.d.cts +10 -8
- package/dist/materialized-views/index.d.ts +10 -8
- package/dist/materialized-views/index.js +12 -12
- package/dist/noydb-LZBH3XDK.js +34 -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 +6 -6
- 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/{predicate-B0IKeBXx.d.cts → predicate-BSAGEyu5.d.cts} +26 -2
- package/dist/{predicate-B0IKeBXx.d.ts → predicate-BSAGEyu5.d.ts} +26 -2
- package/dist/{public-envelope-YKHKP74C.js → public-envelope-BW6OXORV.js} +4 -4
- package/dist/query/index.cjs +244 -4
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +2 -2
- package/dist/query/index.d.ts +2 -2
- package/dist/query/index.js +12 -6
- package/dist/registry-3QP3YKQS.js +8 -0
- package/dist/{registry-4NEW7LQY.js → registry-OJIOSBV6.js} +3 -3
- package/dist/registry-USRVT6YF.js +8 -0
- package/dist/{revoke-R5NIQ74J.js → revoke-JCC7N56X.js} +6 -6
- 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-WGDJNWSU.js → signer-72QAUSVW.js} +5 -5
- package/dist/snapshots/index.cjs +903 -0
- package/dist/snapshots/index.cjs.map +1 -0
- package/dist/snapshots/index.d.cts +21 -0
- package/dist/snapshots/index.d.ts +21 -0
- package/dist/snapshots/index.js +118 -0
- package/dist/snapshots/index.js.map +1 -0
- package/dist/{stale-74WGLVZ2.js → stale-6ZDBTQT7.js} +2 -2
- 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/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/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-DlnZh1_i.d.ts → types-DGU60JDt.d.ts} +235 -7
- package/dist/{types-DVlvNn2c.d.cts → types-DjunxzJa.d.cts} +235 -7
- package/dist/{ulid-CzPONlhG.d.ts → ulid-BFJkYRRW.d.ts} +1 -1
- package/dist/{ulid-r98nkjVd.d.cts → ulid-DPeuPgi3.d.cts} +1 -1
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/{with-derivation-BMQ9pIHe.d.cts → with-derivation-Df0kMlED.d.cts} +1 -1
- package/dist/{with-derivation-B98shCV8.d.ts → with-derivation-DfOpKjFw.d.ts} +1 -1
- package/dist/{with-guard-DmT50nVG.d.ts → with-guard-0KksDtSR.d.ts} +1 -1
- package/dist/{with-guard-DUnC3JDN.d.cts → with-guard-C6W5RVrH.d.cts} +1 -1
- package/dist/{with-materialized-view-Bp_M3sNG.d.ts → with-materialized-view-BiasFcYx.d.ts} +1 -1
- package/dist/{with-materialized-view-eMTZ65_J.d.cts → with-materialized-view-BmDKyHrm.d.cts} +1 -1
- package/dist/{with-overlayed-view-BoY6PB3n.d.cts → with-overlayed-view-CA66vhHz.d.cts} +1 -1
- package/dist/{with-overlayed-view-zzSnRQmS.d.ts → with-overlayed-view-CQViuko_.d.ts} +1 -1
- package/package.json +15 -4
- package/dist/chunk-5OVIFUQE.js.map +0 -1
- package/dist/chunk-6HJ2ZALB.js.map +0 -1
- package/dist/chunk-7TX7HN42.js.map +0 -1
- package/dist/chunk-ICH4AIGL.js.map +0 -1
- package/dist/chunk-JICBEFBT.js.map +0 -1
- package/dist/chunk-W277AG6N.js.map +0 -1
- package/dist/chunk-XDW37COG.js.map +0 -1
- package/dist/executor-AWCHQ2KN.js +0 -8
- package/dist/executor-RWICJI7J.js +0 -11
- package/dist/executor-SOLEQVUB.js +0 -8
- package/dist/issue-IODMTPME.js +0 -12
- package/dist/noydb-FY2666NY.js +0 -34
- package/dist/registry-446I2NMN.js +0 -8
- package/dist/registry-524KJZG4.js +0 -8
- /package/dist/{chunk-RIHZBSWJ.js.map → chunk-2WUSG3IT.js.map} +0 -0
- /package/dist/{chunk-JSYTGEX4.js.map → chunk-3BFJOWSU.js.map} +0 -0
- /package/dist/{chunk-Y3P5DEMZ.js.map → chunk-3YPCK6JX.js.map} +0 -0
- /package/dist/{chunk-A4JNVBPF.js.map → chunk-53XBRIRT.js.map} +0 -0
- /package/dist/{chunk-CKH247ZR.js.map → chunk-5T22KDPN.js.map} +0 -0
- /package/dist/{chunk-PX3MJ6RB.js.map → chunk-5XHKQ56N.js.map} +0 -0
- /package/dist/{chunk-5QPF2MJ5.js.map → chunk-BVRYKATC.js.map} +0 -0
- /package/dist/{chunk-UGVDIOY7.js.map → chunk-DE6GKS6G.js.map} +0 -0
- /package/dist/{chunk-R4LTCI6O.js.map → chunk-DFMLEQZB.js.map} +0 -0
- /package/dist/{chunk-34XGYMQT.js.map → chunk-DJHHA6XH.js.map} +0 -0
- /package/dist/{chunk-OPD3PZOG.js.map → chunk-DL3HWOQ5.js.map} +0 -0
- /package/dist/{chunk-DFCINPB5.js.map → chunk-DO7C2TOG.js.map} +0 -0
- /package/dist/{chunk-T6MTNGBM.js.map → chunk-DONMZAD2.js.map} +0 -0
- /package/dist/{chunk-ARZAHCCF.js.map → chunk-F3GDRNUT.js.map} +0 -0
- /package/dist/{chunk-XVJFFGTG.js.map → chunk-H2X3ISXG.js.map} +0 -0
- /package/dist/{chunk-R7JTYCRX.js.map → chunk-HNRHLRDC.js.map} +0 -0
- /package/dist/{chunk-E225X5CQ.js.map → chunk-I5FOWO4J.js.map} +0 -0
- /package/dist/{chunk-ZQMYB56Z.js.map → chunk-JWRVQKRZ.js.map} +0 -0
- /package/dist/{chunk-LWFQYT4N.js.map → chunk-K3DK3NU5.js.map} +0 -0
- /package/dist/{chunk-WEA4TDTJ.js.map → chunk-ML236QKC.js.map} +0 -0
- /package/dist/{chunk-G26QAQNI.js.map → chunk-NONAAENK.js.map} +0 -0
- /package/dist/{chunk-YEHUEUNP.js.map → chunk-O3VZPBZG.js.map} +0 -0
- /package/dist/{chunk-HIELMTUK.js.map → chunk-OIF6LZUR.js.map} +0 -0
- /package/dist/{chunk-ED3E3OLO.js.map → chunk-OQ6PIGHA.js.map} +0 -0
- /package/dist/{chunk-6A4AMQ2H.js.map → chunk-PE2FR4J3.js.map} +0 -0
- /package/dist/{chunk-EKTOYEZ3.js.map → chunk-PP6W64Y3.js.map} +0 -0
- /package/dist/{chunk-SGSHQ4PH.js.map → chunk-PX35GA7L.js.map} +0 -0
- /package/dist/{chunk-YJ46RFCD.js.map → chunk-QEILDE6R.js.map} +0 -0
- /package/dist/{chunk-KGFV72WK.js.map → chunk-QODLLGQ7.js.map} +0 -0
- /package/dist/{chunk-2GMRNNI3.js.map → chunk-RAZ4OVLL.js.map} +0 -0
- /package/dist/{chunk-25WFLKOH.js.map → chunk-SYMWGEET.js.map} +0 -0
- /package/dist/{chunk-LJO6Q3X6.js.map → chunk-TFBP23BX.js.map} +0 -0
- /package/dist/{chunk-TNBIWSQ7.js.map → chunk-U26HQ6KJ.js.map} +0 -0
- /package/dist/{chunk-CGJFCT3X.js.map → chunk-VTKGMEPP.js.map} +0 -0
- /package/dist/{chunk-5VMTAX4Y.js.map → chunk-W6EQLGMB.js.map} +0 -0
- /package/dist/{chunk-PS5G6A3Y.js.map → chunk-WPLVTJ5D.js.map} +0 -0
- /package/dist/{chunk-MDIC4FAU.js.map → chunk-XJFLDA7A.js.map} +0 -0
- /package/dist/{chunk-CCC25PA7.js.map → chunk-ZYWZWG6G.js.map} +0 -0
- /package/dist/{crypto-5UDZZL26.js.map → crypto-HTZ4FJOP.js.map} +0 -0
- /package/dist/{delegation-42LO4WFO.js.map → delegation-RI54P6I5.js.map} +0 -0
- /package/dist/{executor-AWCHQ2KN.js.map → executor-5PNY7LGW.js.map} +0 -0
- /package/dist/{executor-RWICJI7J.js.map → executor-B4QIYGZX.js.map} +0 -0
- /package/dist/{executor-SOLEQVUB.js.map → executor-BWXXDQ7K.js.map} +0 -0
- /package/dist/{fanout-sidecar-EVICRM46.js.map → fanout-sidecar-OKPMMPLG.js.map} +0 -0
- /package/dist/{issue-IODMTPME.js.map → issue-VGDPP4B5.js.map} +0 -0
- /package/dist/{ledger-UX4QIHWI.js.map → ledger-TMRZYNVJ.js.map} +0 -0
- /package/dist/{noydb-FY2666NY.js.map → noydb-LZBH3XDK.js.map} +0 -0
- /package/dist/{public-envelope-YKHKP74C.js.map → public-envelope-BW6OXORV.js.map} +0 -0
- /package/dist/{registry-446I2NMN.js.map → registry-3QP3YKQS.js.map} +0 -0
- /package/dist/{registry-4NEW7LQY.js.map → registry-OJIOSBV6.js.map} +0 -0
- /package/dist/{registry-524KJZG4.js.map → registry-USRVT6YF.js.map} +0 -0
- /package/dist/{revoke-R5NIQ74J.js.map → revoke-JCC7N56X.js.map} +0 -0
- /package/dist/{signer-WGDJNWSU.js.map → signer-72QAUSVW.js.map} +0 -0
- /package/dist/{stale-74WGLVZ2.js.map → stale-6ZDBTQT7.js.map} +0 -0
package/dist/i18n/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { I as I18nStrategy } from '../types-
|
|
2
|
-
export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, e as
|
|
3
|
-
export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, T as TranslatorNotConfiguredError } from '../index-
|
|
4
|
-
import '../lazy-builder-
|
|
5
|
-
import '../predicate-
|
|
1
|
+
import { I as I18nStrategy } from '../types-DjunxzJa.cjs';
|
|
2
|
+
export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, e as I18nMap, f as I18nTextDescriptor, g as I18nTextOptions, L as Layer, O as OnMissing, h as OnMissingPolicy, R as ResolveI18nOptions, S as ScriptWarning, i as applyI18nLocale, j as dictCollectionName, k as dictKey, l as enforceScript, m as getAtPath, n as i18nText, o as inferScripts, p as isDictCollectionName, q as isDictKeyDescriptor, r as isI18nTextDescriptor, s as resolveI18nText, t as resolvePolicy, u as setAtPathInPlace, v as validateI18nTextValue } from '../types-DjunxzJa.cjs';
|
|
3
|
+
export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, S as ScriptViolationError, T as TranslatorNotConfiguredError } from '../index-4fBVt8j9.cjs';
|
|
4
|
+
import '../lazy-builder-wY4pMCEe.cjs';
|
|
5
|
+
import '../predicate-BSAGEyu5.cjs';
|
|
6
6
|
import '../strategy-DSTrsZ8t.cjs';
|
|
7
7
|
import '../strategy-BSxFXGzb.cjs';
|
|
8
8
|
import '@noy-db/attestation';
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { I as I18nStrategy } from '../types-
|
|
2
|
-
export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, e as
|
|
3
|
-
export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, T as TranslatorNotConfiguredError } from '../index-
|
|
4
|
-
import '../lazy-builder-
|
|
5
|
-
import '../predicate-
|
|
1
|
+
import { I as I18nStrategy } from '../types-DGU60JDt.js';
|
|
2
|
+
export { D as DICT_COLLECTION_PREFIX, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, e as I18nMap, f as I18nTextDescriptor, g as I18nTextOptions, L as Layer, O as OnMissing, h as OnMissingPolicy, R as ResolveI18nOptions, S as ScriptWarning, i as applyI18nLocale, j as dictCollectionName, k as dictKey, l as enforceScript, m as getAtPath, n as i18nText, o as inferScripts, p as isDictCollectionName, q as isDictKeyDescriptor, r as isI18nTextDescriptor, s as resolveI18nText, t as resolvePolicy, u as setAtPathInPlace, v as validateI18nTextValue } from '../types-DGU60JDt.js';
|
|
3
|
+
export { D as DictKeyInUseError, a as DictKeyMissingError, L as LocaleNotSpecifiedError, M as MissingTranslationError, R as ReservedCollectionNameError, S as ScriptViolationError, T as TranslatorNotConfiguredError } from '../index-D8I_pyJD.js';
|
|
4
|
+
import '../lazy-builder-7tIpFyWN.js';
|
|
5
|
+
import '../predicate-BSAGEyu5.js';
|
|
6
6
|
import '../strategy-DSTrsZ8t.js';
|
|
7
7
|
import '../strategy-BSxFXGzb.js';
|
|
8
8
|
import '@noy-db/attestation';
|
package/dist/i18n/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
enforceScript,
|
|
3
|
+
inferScripts
|
|
4
|
+
} from "../chunk-6STK5TQP.js";
|
|
1
5
|
import {
|
|
2
6
|
DICT_COLLECTION_PREFIX,
|
|
3
7
|
DictionaryHandle,
|
|
@@ -10,27 +14,30 @@ import {
|
|
|
10
14
|
isDictKeyDescriptor,
|
|
11
15
|
isI18nTextDescriptor,
|
|
12
16
|
resolveI18nText,
|
|
17
|
+
resolvePolicy,
|
|
13
18
|
setAtPathInPlace,
|
|
14
19
|
validateI18nTextValue
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-22DWZL57.js";
|
|
21
|
+
import "../chunk-DONMZAD2.js";
|
|
17
22
|
import "../chunk-Z6FNBOTC.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-WIRRPTFH.js";
|
|
24
|
+
import "../chunk-PP6W64Y3.js";
|
|
20
25
|
import {
|
|
21
26
|
DictKeyInUseError,
|
|
22
27
|
DictKeyMissingError,
|
|
23
28
|
LocaleNotSpecifiedError,
|
|
24
29
|
MissingTranslationError,
|
|
25
30
|
ReservedCollectionNameError,
|
|
31
|
+
ScriptViolationError,
|
|
26
32
|
TranslatorNotConfiguredError
|
|
27
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-B6PB7JLN.js";
|
|
28
34
|
|
|
29
35
|
// src/i18n/active.ts
|
|
30
36
|
function withI18n() {
|
|
31
37
|
return {
|
|
32
38
|
applyI18nLocale,
|
|
33
39
|
validateI18nTextValue,
|
|
40
|
+
enforceScript,
|
|
34
41
|
buildDictionaryHandle(opts) {
|
|
35
42
|
return new DictionaryHandle(
|
|
36
43
|
opts.adapter,
|
|
@@ -55,16 +62,20 @@ export {
|
|
|
55
62
|
LocaleNotSpecifiedError,
|
|
56
63
|
MissingTranslationError,
|
|
57
64
|
ReservedCollectionNameError,
|
|
65
|
+
ScriptViolationError,
|
|
58
66
|
TranslatorNotConfiguredError,
|
|
59
67
|
applyI18nLocale,
|
|
60
68
|
dictCollectionName,
|
|
61
69
|
dictKey,
|
|
70
|
+
enforceScript,
|
|
62
71
|
getAtPath,
|
|
63
72
|
i18nText,
|
|
73
|
+
inferScripts,
|
|
64
74
|
isDictCollectionName,
|
|
65
75
|
isDictKeyDescriptor,
|
|
66
76
|
isI18nTextDescriptor,
|
|
67
77
|
resolveI18nText,
|
|
78
|
+
resolvePolicy,
|
|
68
79
|
setAtPathInPlace,
|
|
69
80
|
validateI18nTextValue,
|
|
70
81
|
withI18n
|
package/dist/i18n/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/i18n/active.ts"],"sourcesContent":["/**\n * Active i18n strategy — `withI18n()` returns the real implementation\n * that wires multi-locale resolution, i18nText validation, and the\n * `DictionaryHandle` for `dictKey` fields into the core read/write\n * paths.\n *\n * Consumers opt in by:\n *\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withI18n } from '@noy-db/hub/i18n'\n *\n * const db = await createNoydb({\n * store: ...,\n * user: ...,\n * i18nStrategy: withI18n(),\n * })\n * ```\n *\n * The factory delegates to the existing `core.ts` and `dictionary.ts`\n * modules. Splitting the import chain through this file is what lets\n * tsup tree-shake the `~854 LOC` of dictionary + locale resolution\n * out of the default bundle when no `withI18n()` import is present.\n *\n * @public\n */\n\nimport type { I18nStrategy, BuildDictionaryHandleOptions } from './strategy.js'\nimport { applyI18nLocale, validateI18nTextValue } from './core.js'\nimport { DictionaryHandle } from './dictionary.js'\n\nexport function withI18n(): I18nStrategy {\n return {\n applyI18nLocale,\n validateI18nTextValue,\n buildDictionaryHandle<Keys extends string = string>(\n opts: BuildDictionaryHandleOptions<Keys>,\n ): DictionaryHandle<Keys> {\n return new DictionaryHandle<Keys>(\n opts.adapter,\n opts.compartmentName,\n opts.dictionaryName,\n opts.keyring,\n opts.getDEK,\n opts.encrypted,\n opts.ledger,\n opts.options,\n opts.findAndUpdateReferences,\n opts.emitter,\n )\n },\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/i18n/active.ts"],"sourcesContent":["/**\n * Active i18n strategy — `withI18n()` returns the real implementation\n * that wires multi-locale resolution, i18nText validation, and the\n * `DictionaryHandle` for `dictKey` fields into the core read/write\n * paths.\n *\n * Consumers opt in by:\n *\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withI18n } from '@noy-db/hub/i18n'\n *\n * const db = await createNoydb({\n * store: ...,\n * user: ...,\n * i18nStrategy: withI18n(),\n * })\n * ```\n *\n * The factory delegates to the existing `core.ts` and `dictionary.ts`\n * modules. Splitting the import chain through this file is what lets\n * tsup tree-shake the `~854 LOC` of dictionary + locale resolution\n * out of the default bundle when no `withI18n()` import is present.\n *\n * @public\n */\n\nimport type { I18nStrategy, BuildDictionaryHandleOptions } from './strategy.js'\nimport { applyI18nLocale, validateI18nTextValue } from './core.js'\nimport { enforceScript } from './script.js'\nimport { DictionaryHandle } from './dictionary.js'\n\nexport function withI18n(): I18nStrategy {\n return {\n applyI18nLocale,\n validateI18nTextValue,\n enforceScript,\n buildDictionaryHandle<Keys extends string = string>(\n opts: BuildDictionaryHandleOptions<Keys>,\n ): DictionaryHandle<Keys> {\n return new DictionaryHandle<Keys>(\n opts.adapter,\n opts.compartmentName,\n opts.dictionaryName,\n opts.keyring,\n opts.getDEK,\n opts.encrypted,\n opts.ledger,\n opts.options,\n opts.findAndUpdateReferences,\n opts.emitter,\n )\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCO,SAAS,WAAyB;AACvC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA,sBACE,MACwB;AACxB,aAAO,IAAI;AAAA,QACT,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,MACP;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CollectionIndexes, a as Clause, O as Operator } from './predicate-
|
|
1
|
+
import { C as CollectionIndexes, a as Clause, O as Operator } from './predicate-BSAGEyu5.cjs';
|
|
2
2
|
import { A as AggregateStrategy, b as AggregateSpec, c as Aggregation, a as AggregateResult, g as GroupedQuery, h as GroupedQueryN } from './strategy-DSTrsZ8t.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -29,7 +29,9 @@ import { A as AggregateStrategy, b as AggregateSpec, c as Aggregation, a as Aggr
|
|
|
29
29
|
* │ ├─ ValidationError — application-level guard failed
|
|
30
30
|
* │ └─ SchemaValidationError — Standard Schema v1 rejection
|
|
31
31
|
* ├─ Query errors
|
|
32
|
-
* │ ├─ JoinTooLargeError
|
|
32
|
+
* │ ├─ JoinTooLargeError — join row ceiling exceeded
|
|
33
|
+
* │ ├─ CrossJoinTooLargeError — cross-join row ceiling exceeded
|
|
34
|
+
* │ ├─ CrossJoinSourceUnknownError — target collection not in vault
|
|
33
35
|
* │ ├─ DanglingReferenceError — strict ref() points at nothing
|
|
34
36
|
* │ ├─ GroupCardinalityError — groupBy bucket cap exceeded
|
|
35
37
|
* │ ├─ IndexRequiredError — lazy-mode query touches unindexed field
|
|
@@ -46,10 +48,12 @@ import { A as AggregateStrategy, b as AggregateSpec, c as Aggregation, a as Aggr
|
|
|
46
48
|
* │ └─ BackupCorruptedError — envelope hash mismatch in dump
|
|
47
49
|
* ├─ Bundle errors
|
|
48
50
|
* │ └─ BundleIntegrityError — .noydb body sha256 mismatch
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
51
|
+
* ├─ Session errors
|
|
52
|
+
* │ ├─ SessionExpiredError
|
|
53
|
+
* │ ├─ SessionNotFoundError
|
|
54
|
+
* │ └─ SessionPolicyError
|
|
55
|
+
* └─ Snapshot errors
|
|
56
|
+
* └─ SnapshotNotFoundError — snapshot key absent from snapshot store
|
|
53
57
|
* ```
|
|
54
58
|
*
|
|
55
59
|
* ## Catching all NOYDB errors
|
|
@@ -792,6 +796,26 @@ declare class LocaleNotSpecifiedError extends NoydbError {
|
|
|
792
796
|
readonly field: string;
|
|
793
797
|
constructor(field: string, message?: string);
|
|
794
798
|
}
|
|
799
|
+
/**
|
|
800
|
+
* Thrown at write time when an `i18nText` slot's value contains
|
|
801
|
+
* characters outside the script set allowed for that locale, and the
|
|
802
|
+
* field's `onScriptViolation` policy is `'reject'` (the default).
|
|
803
|
+
*
|
|
804
|
+
* Distinct from {@link MissingTranslationError} (write-shape) and
|
|
805
|
+
* {@link LocaleNotSpecifiedError} (read-hole) so callers can tell a
|
|
806
|
+
* wrong-script value from a missing one.
|
|
807
|
+
*/
|
|
808
|
+
declare class ScriptViolationError extends NoydbError {
|
|
809
|
+
/** The field whose value violated its script constraint. */
|
|
810
|
+
readonly field: string;
|
|
811
|
+
/** The locale slot (e.g. `'en'`) that was checked. */
|
|
812
|
+
readonly locale: string;
|
|
813
|
+
/** The Unicode scripts allowed for this slot. */
|
|
814
|
+
readonly expected: readonly string[];
|
|
815
|
+
/** A short sample of the offending characters, for diagnostics. */
|
|
816
|
+
readonly sample: string;
|
|
817
|
+
constructor(field: string, locale: string, expected: readonly string[], sample: string, message?: string);
|
|
818
|
+
}
|
|
795
819
|
/**
|
|
796
820
|
* Thrown when a collection has an `i18nText` field with
|
|
797
821
|
* `autoTranslate: true` but no `plaintextTranslator` was configured
|
|
@@ -939,6 +963,34 @@ declare class JoinTooLargeError extends NoydbError {
|
|
|
939
963
|
message: string;
|
|
940
964
|
});
|
|
941
965
|
}
|
|
966
|
+
/**
|
|
967
|
+
* Thrown by `.crossJoin()` when the cumulative cartesian product (or lateral
|
|
968
|
+
* filtered count) exceeds the configured ceiling. Check before allocating.
|
|
969
|
+
* Mirrors the pattern of `JoinTooLargeError` and the `.join()` row ceiling.
|
|
970
|
+
*
|
|
971
|
+
* @see CrossJoinClause.maxRows — per-clause override
|
|
972
|
+
* @see DEFAULT_CROSS_JOIN_MAX_ROWS — package default (50_000)
|
|
973
|
+
*/
|
|
974
|
+
declare class CrossJoinTooLargeError extends NoydbError {
|
|
975
|
+
readonly target: string;
|
|
976
|
+
readonly expected: number;
|
|
977
|
+
readonly limit: number;
|
|
978
|
+
constructor(opts: {
|
|
979
|
+
target: string;
|
|
980
|
+
expected: number;
|
|
981
|
+
limit: number;
|
|
982
|
+
});
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
* Thrown at cross-join execution time when the target collection is not
|
|
986
|
+
* reachable from the current vault. The left collection is included in the
|
|
987
|
+
* message for context.
|
|
988
|
+
*/
|
|
989
|
+
declare class CrossJoinSourceUnknownError extends NoydbError {
|
|
990
|
+
readonly target: string;
|
|
991
|
+
readonly leftCollection: string;
|
|
992
|
+
constructor(target: string, leftCollection: string);
|
|
993
|
+
}
|
|
942
994
|
/**
|
|
943
995
|
* Thrown by `.join()` in strict `ref()` mode when a left-side record
|
|
944
996
|
* points at a right-side id that does not exist in the target
|
|
@@ -1137,6 +1189,19 @@ declare class OverlayIdMismatchError extends NoydbError {
|
|
|
1137
1189
|
readonly expected: string;
|
|
1138
1190
|
constructor(actual: string, expected: string);
|
|
1139
1191
|
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Thrown when a requested snapshot version does not exist in the
|
|
1194
|
+
* snapshot store — either it was never created, was pruned by the
|
|
1195
|
+
* retention policy, or was deleted manually.
|
|
1196
|
+
*
|
|
1197
|
+
* The `version` field carries the key that was looked up so callers
|
|
1198
|
+
* can surface an actionable "snapshot X not found" message without
|
|
1199
|
+
* parsing the error string.
|
|
1200
|
+
*/
|
|
1201
|
+
declare class SnapshotNotFoundError extends NoydbError {
|
|
1202
|
+
readonly version: string;
|
|
1203
|
+
constructor(version: string);
|
|
1204
|
+
}
|
|
1140
1205
|
|
|
1141
1206
|
/**
|
|
1142
1207
|
* Foreign-key references — the soft-FK mechanism.
|
|
@@ -1632,6 +1697,8 @@ interface QueryPlan {
|
|
|
1632
1697
|
*/
|
|
1633
1698
|
readonly joins: readonly JoinLeg[];
|
|
1634
1699
|
}
|
|
1700
|
+
/** Default row ceiling for cross-join expansion. Matches JoinTooLargeError's ceiling. */
|
|
1701
|
+
declare const DEFAULT_CROSS_JOIN_MAX_ROWS = 50000;
|
|
1635
1702
|
/**
|
|
1636
1703
|
* Source of records that a query executes against.
|
|
1637
1704
|
*
|
|
@@ -1800,6 +1867,36 @@ declare class Query<T> {
|
|
|
1800
1867
|
strategy?: JoinStrategy;
|
|
1801
1868
|
maxRows?: number;
|
|
1802
1869
|
}): Query<T & Record<As, R | null>>;
|
|
1870
|
+
/**
|
|
1871
|
+
* Cartesian-product cross-join against `target` collection. Each result row
|
|
1872
|
+
* carries the original `T` fields plus `result[as]` populated from every
|
|
1873
|
+
* right-side row (or the filtered subset when `on:` is supplied).
|
|
1874
|
+
*
|
|
1875
|
+
* **Order matters:** `.where().crossJoin()` filters BEFORE expanding (cheaper);
|
|
1876
|
+
* `.crossJoin().where('alias.field', ...)` filters AFTER (required when the
|
|
1877
|
+
* where clause references the aliased fields).
|
|
1878
|
+
*
|
|
1879
|
+
* **Cost ceiling:** `CrossJoinTooLargeError` fires before allocation when
|
|
1880
|
+
* `leftRows × rightRows` (or the cumulative lateral count) exceeds the limit.
|
|
1881
|
+
* Default: 50,000 rows. Override per-clause with `{ maxRows: N }`.
|
|
1882
|
+
*
|
|
1883
|
+
* **`on:` shapes:**
|
|
1884
|
+
* - `on: (left) => TTarget[]` — subset form (most efficient)
|
|
1885
|
+
* - `on: (left) => (right) => boolean` — predicate form
|
|
1886
|
+
* - `on: { predicate: 'name' }` — MV-safe, hash-tracked form
|
|
1887
|
+
* (requires the Query to have been augmented via `_withPredicates`)
|
|
1888
|
+
*
|
|
1889
|
+
* Requires a JoinContext (constructed via `collection.query()`).
|
|
1890
|
+
*/
|
|
1891
|
+
crossJoin<TTarget = unknown, As extends string = string>(target: string, opts: {
|
|
1892
|
+
as: As;
|
|
1893
|
+
on?: ((left: T) => unknown[] | ((right: TTarget) => boolean)) | {
|
|
1894
|
+
readonly predicate: string;
|
|
1895
|
+
};
|
|
1896
|
+
maxRows?: number;
|
|
1897
|
+
}): Query<T & {
|
|
1898
|
+
[K in As]: TTarget;
|
|
1899
|
+
}>;
|
|
1803
1900
|
/**
|
|
1804
1901
|
* Execute the plan and return the matching records. When the plan
|
|
1805
1902
|
* carries any join legs, they are applied after `where` / `orderBy`
|
|
@@ -2287,4 +2384,4 @@ declare class ScanBuilder<T> implements AsyncIterable<T> {
|
|
|
2287
2384
|
private recordMatches;
|
|
2288
2385
|
}
|
|
2289
2386
|
|
|
2290
|
-
export {
|
|
2387
|
+
export { ImportCapabilityError as $, AmendmentForbiddenError as A, BackupCorruptedError as B, ConflictError as C, DictKeyInUseError as D, CrossJoinSourceUnknownError as E, FieldFrozenError as F, CrossJoinTooLargeError as G, DEFAULT_CROSS_JOIN_MAX_ROWS as H, InvariantError as I, DEFAULT_JOIN_MAX_ROWS as J, DanglingReferenceError as K, LocaleNotSpecifiedError as L, MissingTranslationError as M, NoydbError as N, OverlayBaseIsVirtualError as O, PartitionExtractionError as P, Query as Q, ReservedCollectionNameError as R, ScriptViolationError as S, TranslatorNotConfiguredError as T, DecryptionError as U, DelegationTargetMissingError as V, DirectoryDisabledError as W, ElevationExpiredError as X, ExportCapabilityError as Y, FilenameSanitizationError as Z, GroupCardinalityError as _, DictKeyMissingError as a, IndexRequiredError as a0, IndexWriteFailureError as a1, InvalidKeyError as a2, type JoinContext as a3, type JoinLeg as a4, type JoinStrategy as a5, JoinTooLargeError as a6, type JoinableSource as a7, KeyringCorruptError as a8, KeyringExpiredError as a9, type ScanPageProvider as aA, SchemaFenceError as aB, SchemaLockedError as aC, SchemaUpdateError as aD, SchemaValidationError as aE, StoreCapabilityError as aF, TamperedError as aG, TierDemoteDeniedError as aH, TierNotGrantedError as aI, ValidationError as aJ, applyJoins as aK, buildLiveQuery as aL, executePlan as aM, ref as aN, resetJoinWarnings as aO, LedgerContentionError as aa, type LiveQuery as ab, type LiveUpstream as ac, MigrationRequiredError as ad, NetworkError as ae, NoAccessError as af, NonAdditiveSchemaChangeError as ag, NotFoundError as ah, type OrderBy as ai, PathEscapeError as aj, PeriodClosedError as ak, PermissionDeniedError as al, PrivilegeEscalationError as am, type QueryPlan as an, type QuerySource as ao, QuiesceTimeoutError as ap, ReadOnlyAtInstantError as aq, ReadOnlyError as ar, ReadOnlyFrameError as as, type RefDescriptor as at, RefIntegrityError as au, type RefMode as av, RefRegistry as aw, RefScopeError as ax, type RefViolation as ay, ScanBuilder as az, SessionExpiredError as b, SessionNotFoundError as c, SessionPolicyError as d, RecordLockedError as e, SnapshotNotFoundError as f, DerivationCapExceededError as g, DerivationCycleError as h, DerivationDepthError as i, DerivationOutputShapeError as j, DerivationOutputUnknownError as k, OverlayCollectionUnavailableError as l, OverlayIdMismatchError as m, OverlayNameCollisionError as n, AttestationError as o, AdoptionStateError as p, BackupLedgerError as q, BundleIntegrityError as r, BundleSealMismatchError as s, BundleVersionConflictError as t, TransferSealError as u, MaterializedViewConfigError as v, MaterializedViewCycleError as w, MaterializedViewSourceUnknownError as x, MaterializedViewTooLargeError as y, AlreadyElevatedError as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CollectionIndexes, a as Clause, O as Operator } from './predicate-
|
|
1
|
+
import { C as CollectionIndexes, a as Clause, O as Operator } from './predicate-BSAGEyu5.js';
|
|
2
2
|
import { A as AggregateStrategy, b as AggregateSpec, c as Aggregation, a as AggregateResult, g as GroupedQuery, h as GroupedQueryN } from './strategy-DSTrsZ8t.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -29,7 +29,9 @@ import { A as AggregateStrategy, b as AggregateSpec, c as Aggregation, a as Aggr
|
|
|
29
29
|
* │ ├─ ValidationError — application-level guard failed
|
|
30
30
|
* │ └─ SchemaValidationError — Standard Schema v1 rejection
|
|
31
31
|
* ├─ Query errors
|
|
32
|
-
* │ ├─ JoinTooLargeError
|
|
32
|
+
* │ ├─ JoinTooLargeError — join row ceiling exceeded
|
|
33
|
+
* │ ├─ CrossJoinTooLargeError — cross-join row ceiling exceeded
|
|
34
|
+
* │ ├─ CrossJoinSourceUnknownError — target collection not in vault
|
|
33
35
|
* │ ├─ DanglingReferenceError — strict ref() points at nothing
|
|
34
36
|
* │ ├─ GroupCardinalityError — groupBy bucket cap exceeded
|
|
35
37
|
* │ ├─ IndexRequiredError — lazy-mode query touches unindexed field
|
|
@@ -46,10 +48,12 @@ import { A as AggregateStrategy, b as AggregateSpec, c as Aggregation, a as Aggr
|
|
|
46
48
|
* │ └─ BackupCorruptedError — envelope hash mismatch in dump
|
|
47
49
|
* ├─ Bundle errors
|
|
48
50
|
* │ └─ BundleIntegrityError — .noydb body sha256 mismatch
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
51
|
+
* ├─ Session errors
|
|
52
|
+
* │ ├─ SessionExpiredError
|
|
53
|
+
* │ ├─ SessionNotFoundError
|
|
54
|
+
* │ └─ SessionPolicyError
|
|
55
|
+
* └─ Snapshot errors
|
|
56
|
+
* └─ SnapshotNotFoundError — snapshot key absent from snapshot store
|
|
53
57
|
* ```
|
|
54
58
|
*
|
|
55
59
|
* ## Catching all NOYDB errors
|
|
@@ -792,6 +796,26 @@ declare class LocaleNotSpecifiedError extends NoydbError {
|
|
|
792
796
|
readonly field: string;
|
|
793
797
|
constructor(field: string, message?: string);
|
|
794
798
|
}
|
|
799
|
+
/**
|
|
800
|
+
* Thrown at write time when an `i18nText` slot's value contains
|
|
801
|
+
* characters outside the script set allowed for that locale, and the
|
|
802
|
+
* field's `onScriptViolation` policy is `'reject'` (the default).
|
|
803
|
+
*
|
|
804
|
+
* Distinct from {@link MissingTranslationError} (write-shape) and
|
|
805
|
+
* {@link LocaleNotSpecifiedError} (read-hole) so callers can tell a
|
|
806
|
+
* wrong-script value from a missing one.
|
|
807
|
+
*/
|
|
808
|
+
declare class ScriptViolationError extends NoydbError {
|
|
809
|
+
/** The field whose value violated its script constraint. */
|
|
810
|
+
readonly field: string;
|
|
811
|
+
/** The locale slot (e.g. `'en'`) that was checked. */
|
|
812
|
+
readonly locale: string;
|
|
813
|
+
/** The Unicode scripts allowed for this slot. */
|
|
814
|
+
readonly expected: readonly string[];
|
|
815
|
+
/** A short sample of the offending characters, for diagnostics. */
|
|
816
|
+
readonly sample: string;
|
|
817
|
+
constructor(field: string, locale: string, expected: readonly string[], sample: string, message?: string);
|
|
818
|
+
}
|
|
795
819
|
/**
|
|
796
820
|
* Thrown when a collection has an `i18nText` field with
|
|
797
821
|
* `autoTranslate: true` but no `plaintextTranslator` was configured
|
|
@@ -939,6 +963,34 @@ declare class JoinTooLargeError extends NoydbError {
|
|
|
939
963
|
message: string;
|
|
940
964
|
});
|
|
941
965
|
}
|
|
966
|
+
/**
|
|
967
|
+
* Thrown by `.crossJoin()` when the cumulative cartesian product (or lateral
|
|
968
|
+
* filtered count) exceeds the configured ceiling. Check before allocating.
|
|
969
|
+
* Mirrors the pattern of `JoinTooLargeError` and the `.join()` row ceiling.
|
|
970
|
+
*
|
|
971
|
+
* @see CrossJoinClause.maxRows — per-clause override
|
|
972
|
+
* @see DEFAULT_CROSS_JOIN_MAX_ROWS — package default (50_000)
|
|
973
|
+
*/
|
|
974
|
+
declare class CrossJoinTooLargeError extends NoydbError {
|
|
975
|
+
readonly target: string;
|
|
976
|
+
readonly expected: number;
|
|
977
|
+
readonly limit: number;
|
|
978
|
+
constructor(opts: {
|
|
979
|
+
target: string;
|
|
980
|
+
expected: number;
|
|
981
|
+
limit: number;
|
|
982
|
+
});
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
* Thrown at cross-join execution time when the target collection is not
|
|
986
|
+
* reachable from the current vault. The left collection is included in the
|
|
987
|
+
* message for context.
|
|
988
|
+
*/
|
|
989
|
+
declare class CrossJoinSourceUnknownError extends NoydbError {
|
|
990
|
+
readonly target: string;
|
|
991
|
+
readonly leftCollection: string;
|
|
992
|
+
constructor(target: string, leftCollection: string);
|
|
993
|
+
}
|
|
942
994
|
/**
|
|
943
995
|
* Thrown by `.join()` in strict `ref()` mode when a left-side record
|
|
944
996
|
* points at a right-side id that does not exist in the target
|
|
@@ -1137,6 +1189,19 @@ declare class OverlayIdMismatchError extends NoydbError {
|
|
|
1137
1189
|
readonly expected: string;
|
|
1138
1190
|
constructor(actual: string, expected: string);
|
|
1139
1191
|
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Thrown when a requested snapshot version does not exist in the
|
|
1194
|
+
* snapshot store — either it was never created, was pruned by the
|
|
1195
|
+
* retention policy, or was deleted manually.
|
|
1196
|
+
*
|
|
1197
|
+
* The `version` field carries the key that was looked up so callers
|
|
1198
|
+
* can surface an actionable "snapshot X not found" message without
|
|
1199
|
+
* parsing the error string.
|
|
1200
|
+
*/
|
|
1201
|
+
declare class SnapshotNotFoundError extends NoydbError {
|
|
1202
|
+
readonly version: string;
|
|
1203
|
+
constructor(version: string);
|
|
1204
|
+
}
|
|
1140
1205
|
|
|
1141
1206
|
/**
|
|
1142
1207
|
* Foreign-key references — the soft-FK mechanism.
|
|
@@ -1632,6 +1697,8 @@ interface QueryPlan {
|
|
|
1632
1697
|
*/
|
|
1633
1698
|
readonly joins: readonly JoinLeg[];
|
|
1634
1699
|
}
|
|
1700
|
+
/** Default row ceiling for cross-join expansion. Matches JoinTooLargeError's ceiling. */
|
|
1701
|
+
declare const DEFAULT_CROSS_JOIN_MAX_ROWS = 50000;
|
|
1635
1702
|
/**
|
|
1636
1703
|
* Source of records that a query executes against.
|
|
1637
1704
|
*
|
|
@@ -1800,6 +1867,36 @@ declare class Query<T> {
|
|
|
1800
1867
|
strategy?: JoinStrategy;
|
|
1801
1868
|
maxRows?: number;
|
|
1802
1869
|
}): Query<T & Record<As, R | null>>;
|
|
1870
|
+
/**
|
|
1871
|
+
* Cartesian-product cross-join against `target` collection. Each result row
|
|
1872
|
+
* carries the original `T` fields plus `result[as]` populated from every
|
|
1873
|
+
* right-side row (or the filtered subset when `on:` is supplied).
|
|
1874
|
+
*
|
|
1875
|
+
* **Order matters:** `.where().crossJoin()` filters BEFORE expanding (cheaper);
|
|
1876
|
+
* `.crossJoin().where('alias.field', ...)` filters AFTER (required when the
|
|
1877
|
+
* where clause references the aliased fields).
|
|
1878
|
+
*
|
|
1879
|
+
* **Cost ceiling:** `CrossJoinTooLargeError` fires before allocation when
|
|
1880
|
+
* `leftRows × rightRows` (or the cumulative lateral count) exceeds the limit.
|
|
1881
|
+
* Default: 50,000 rows. Override per-clause with `{ maxRows: N }`.
|
|
1882
|
+
*
|
|
1883
|
+
* **`on:` shapes:**
|
|
1884
|
+
* - `on: (left) => TTarget[]` — subset form (most efficient)
|
|
1885
|
+
* - `on: (left) => (right) => boolean` — predicate form
|
|
1886
|
+
* - `on: { predicate: 'name' }` — MV-safe, hash-tracked form
|
|
1887
|
+
* (requires the Query to have been augmented via `_withPredicates`)
|
|
1888
|
+
*
|
|
1889
|
+
* Requires a JoinContext (constructed via `collection.query()`).
|
|
1890
|
+
*/
|
|
1891
|
+
crossJoin<TTarget = unknown, As extends string = string>(target: string, opts: {
|
|
1892
|
+
as: As;
|
|
1893
|
+
on?: ((left: T) => unknown[] | ((right: TTarget) => boolean)) | {
|
|
1894
|
+
readonly predicate: string;
|
|
1895
|
+
};
|
|
1896
|
+
maxRows?: number;
|
|
1897
|
+
}): Query<T & {
|
|
1898
|
+
[K in As]: TTarget;
|
|
1899
|
+
}>;
|
|
1803
1900
|
/**
|
|
1804
1901
|
* Execute the plan and return the matching records. When the plan
|
|
1805
1902
|
* carries any join legs, they are applied after `where` / `orderBy`
|
|
@@ -2287,4 +2384,4 @@ declare class ScanBuilder<T> implements AsyncIterable<T> {
|
|
|
2287
2384
|
private recordMatches;
|
|
2288
2385
|
}
|
|
2289
2386
|
|
|
2290
|
-
export {
|
|
2387
|
+
export { ImportCapabilityError as $, AmendmentForbiddenError as A, BackupCorruptedError as B, ConflictError as C, DictKeyInUseError as D, CrossJoinSourceUnknownError as E, FieldFrozenError as F, CrossJoinTooLargeError as G, DEFAULT_CROSS_JOIN_MAX_ROWS as H, InvariantError as I, DEFAULT_JOIN_MAX_ROWS as J, DanglingReferenceError as K, LocaleNotSpecifiedError as L, MissingTranslationError as M, NoydbError as N, OverlayBaseIsVirtualError as O, PartitionExtractionError as P, Query as Q, ReservedCollectionNameError as R, ScriptViolationError as S, TranslatorNotConfiguredError as T, DecryptionError as U, DelegationTargetMissingError as V, DirectoryDisabledError as W, ElevationExpiredError as X, ExportCapabilityError as Y, FilenameSanitizationError as Z, GroupCardinalityError as _, DictKeyMissingError as a, IndexRequiredError as a0, IndexWriteFailureError as a1, InvalidKeyError as a2, type JoinContext as a3, type JoinLeg as a4, type JoinStrategy as a5, JoinTooLargeError as a6, type JoinableSource as a7, KeyringCorruptError as a8, KeyringExpiredError as a9, type ScanPageProvider as aA, SchemaFenceError as aB, SchemaLockedError as aC, SchemaUpdateError as aD, SchemaValidationError as aE, StoreCapabilityError as aF, TamperedError as aG, TierDemoteDeniedError as aH, TierNotGrantedError as aI, ValidationError as aJ, applyJoins as aK, buildLiveQuery as aL, executePlan as aM, ref as aN, resetJoinWarnings as aO, LedgerContentionError as aa, type LiveQuery as ab, type LiveUpstream as ac, MigrationRequiredError as ad, NetworkError as ae, NoAccessError as af, NonAdditiveSchemaChangeError as ag, NotFoundError as ah, type OrderBy as ai, PathEscapeError as aj, PeriodClosedError as ak, PermissionDeniedError as al, PrivilegeEscalationError as am, type QueryPlan as an, type QuerySource as ao, QuiesceTimeoutError as ap, ReadOnlyAtInstantError as aq, ReadOnlyError as ar, ReadOnlyFrameError as as, type RefDescriptor as at, RefIntegrityError as au, type RefMode as av, RefRegistry as aw, RefScopeError as ax, type RefViolation as ay, ScanBuilder as az, SessionExpiredError as b, SessionNotFoundError as c, SessionPolicyError as d, RecordLockedError as e, SnapshotNotFoundError as f, DerivationCapExceededError as g, DerivationCycleError as h, DerivationDepthError as i, DerivationOutputShapeError as j, DerivationOutputUnknownError as k, OverlayCollectionUnavailableError as l, OverlayIdMismatchError as m, OverlayNameCollisionError as n, AttestationError as o, AdoptionStateError as p, BackupLedgerError as q, BundleIntegrityError as r, BundleSealMismatchError as s, BundleVersionConflictError as t, TransferSealError as u, MaterializedViewConfigError as v, MaterializedViewCycleError as w, MaterializedViewSourceUnknownError as x, MaterializedViewTooLargeError as y, AlreadyElevatedError as z };
|