@noy-db/hub 0.2.0-pre.12 → 0.2.0-pre.13
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 +2 -2
- package/dist/aggregate/index.d.ts +2 -2
- package/dist/aggregate/index.js +2 -2
- package/dist/attestation/index.cjs.map +1 -1
- package/dist/attestation/index.d.cts +3 -3
- package/dist/attestation/index.d.ts +3 -3
- package/dist/attestation/index.js +6 -6
- package/dist/blobs/index.cjs.map +1 -1
- package/dist/blobs/index.d.cts +4 -4
- package/dist/blobs/index.d.ts +4 -4
- package/dist/blobs/index.js +5 -5
- package/dist/bundle/index.cjs +551 -32
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +5 -5
- package/dist/bundle/index.d.ts +5 -5
- package/dist/bundle/index.js +9 -9
- package/dist/{chunk-P3Z5Y2TS.js → chunk-3OUCWHV6.js} +2 -2
- package/dist/{chunk-4BHFNKTP.js → chunk-3XZRRBFW.js} +2 -2
- package/dist/{chunk-XSIFXX54.js → chunk-4VCQH32J.js} +2 -2
- package/dist/{chunk-CHBXWJZQ.js → chunk-4YDZ7JPZ.js} +2 -2
- package/dist/{chunk-B7GGYNKQ.js → chunk-5NISHSBO.js} +2 -2
- package/dist/{chunk-O53RIZCC.js → chunk-7TEI2K2A.js} +5 -5
- package/dist/{chunk-ZCFS7U4J.js → chunk-AYNF7PVX.js} +2 -2
- package/dist/{chunk-GFPR7VJS.js → chunk-C3WRKABE.js} +4 -4
- package/dist/{chunk-EKNUBIIQ.js → chunk-CWFQTAD4.js} +4 -4
- package/dist/{chunk-P4EDT5ZP.js → chunk-D5Y3HIC6.js} +2 -2
- package/dist/{chunk-IUBHXEPJ.js → chunk-E3DIBDKA.js} +2 -2
- package/dist/{chunk-WNRGOVLG.js → chunk-FNVFT4HZ.js} +2 -2
- package/dist/{chunk-LYNNZEQD.js → chunk-GC4V7RU7.js} +1 -1
- package/dist/chunk-GC4V7RU7.js.map +1 -0
- package/dist/{chunk-5ARRXIVR.js → chunk-GL3Z7LH7.js} +2 -2
- package/dist/{chunk-WUG3E423.js → chunk-GZJ5JBED.js} +4 -4
- package/dist/{chunk-XHM2SARW.js → chunk-HHZ77DHM.js} +3 -3
- package/dist/{chunk-SJJQKNMP.js → chunk-HQXOEWLZ.js} +4 -4
- package/dist/{chunk-CILT6V3V.js → chunk-ILWQGTNH.js} +2 -2
- package/dist/{chunk-RRDWXNBQ.js → chunk-J67BP5EP.js} +3 -3
- package/dist/{chunk-HLGDYFWR.js → chunk-JPOQMXGT.js} +2 -2
- package/dist/{chunk-IEPT7HVP.js → chunk-JWFNOD2T.js} +2 -2
- package/dist/{chunk-BXOUVUES.js → chunk-KHQ3N5AB.js} +4 -4
- package/dist/{chunk-UA6G45ME.js → chunk-KJF7EPUE.js} +3 -3
- package/dist/{chunk-C2CIIQRG.js → chunk-KKB42D3Q.js} +2 -2
- package/dist/{chunk-M45IRXDM.js → chunk-M6KXHRIA.js} +3 -3
- package/dist/{chunk-VOXMU6LB.js → chunk-NIUXQDWD.js} +2 -2
- package/dist/{chunk-UOC7JMZO.js → chunk-NJMKHRQI.js} +135 -10
- package/dist/chunk-NJMKHRQI.js.map +1 -0
- package/dist/{chunk-AGRC7NQQ.js → chunk-NKGY3C53.js} +26 -1
- package/dist/chunk-NKGY3C53.js.map +1 -0
- package/dist/{chunk-LWSD4QPT.js → chunk-O2JW656W.js} +3 -3
- package/dist/{chunk-TMHJEYW7.js → chunk-P5MW7BG2.js} +302 -137
- package/dist/chunk-P5MW7BG2.js.map +1 -0
- package/dist/{chunk-LSEW3ZZ2.js → chunk-PW26DAXS.js} +3 -3
- package/dist/{chunk-HBAJDI2N.js → chunk-QAWCVWCX.js} +5 -5
- package/dist/{chunk-L6BYRCYB.js → chunk-QFYVGJLI.js} +2 -2
- package/dist/{chunk-6BYBVRZU.js → chunk-QIVFGU2M.js} +3 -3
- package/dist/{chunk-ZC7MNVYN.js → chunk-SJ24GHID.js} +2 -2
- package/dist/{chunk-SZ4N3IL5.js → chunk-SOU42FGB.js} +5 -5
- package/dist/{chunk-DLTU4M2I.js → chunk-SYSKC237.js} +6 -6
- package/dist/{chunk-6AD5TBF2.js → chunk-TDECYU4Y.js} +3 -3
- package/dist/{chunk-7JJE3OMJ.js → chunk-TEQGXA7L.js} +5 -5
- package/dist/{chunk-RHQYVHFH.js → chunk-UNQEWORI.js} +2 -2
- package/dist/{chunk-LOA2VCMS.js → chunk-VAK6NQAK.js} +5 -5
- package/dist/{chunk-7LVRIW4G.js → chunk-WQKZIQIL.js} +4 -4
- package/dist/{chunk-OPDTLHFA.js → chunk-YWBHS25M.js} +2 -2
- package/dist/chunk-ZC7J6ZYV.js +7 -0
- package/dist/chunk-ZC7J6ZYV.js.map +1 -0
- package/dist/consent/index.cjs.map +1 -1
- package/dist/consent/index.d.cts +4 -4
- package/dist/consent/index.d.ts +4 -4
- package/dist/consent/index.js +3 -3
- package/dist/{crypto-AJB72OKN.js → crypto-YXH6SAOW.js} +3 -3
- package/dist/{delegation-6FCWDRUS.js → delegation-K5ERUH6A.js} +5 -5
- package/dist/derivations/index.cjs.map +1 -1
- package/dist/derivations/index.d.cts +5 -5
- package/dist/derivations/index.d.ts +5 -5
- package/dist/derivations/index.js +4 -4
- package/dist/{dev-unlock-D3mpVFRc.d.ts → dev-unlock-BW0GNBEV.d.ts} +1 -1
- package/dist/{dev-unlock-ckqa_Nso.d.cts → dev-unlock-a7SOtaV0.d.cts} +1 -1
- package/dist/executor-AVJ7UEWA.js +8 -0
- package/dist/executor-IQO3KGXQ.js +11 -0
- package/dist/executor-VT7TKGE4.js +8 -0
- package/dist/{fanout-sidecar-ZSKEQ6NI.js → fanout-sidecar-N6OJX6QR.js} +2 -2
- package/dist/guards/index.cjs.map +1 -1
- package/dist/guards/index.d.cts +5 -5
- package/dist/guards/index.d.ts +5 -5
- package/dist/guards/index.js +3 -3
- package/dist/{hash-rDSSd_oW.d.cts → hash-B0cLQcq_.d.cts} +1 -1
- package/dist/{hash-CTZVkXLx.d.ts → hash-uMNIAAW8.d.ts} +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +5 -5
- package/dist/history/index.d.ts +5 -5
- package/dist/history/index.js +5 -5
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +4 -4
- package/dist/i18n/index.d.ts +4 -4
- package/dist/i18n/index.js +6 -6
- package/dist/{immutable-guard-DyD0qg2k.d.ts → immutable-guard-B0h-ipLz.d.ts} +1 -1
- package/dist/{immutable-guard-C51vAHuh.d.cts → immutable-guard-BZIcYhYX.d.cts} +1 -1
- package/dist/{index-Cmop06zJ.d.cts → index-CUVOMtgg.d.cts} +28 -2
- package/dist/{index-CkFHr4OP.d.ts → index-Cqzp4tt9.d.ts} +28 -2
- package/dist/index.cjs +567 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -13
- package/dist/index.d.ts +22 -13
- package/dist/index.js +59 -40
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.cjs.map +1 -1
- package/dist/indexing/index.js +2 -2
- package/dist/issue-ZH27C23Y.js +12 -0
- package/dist/{ledger-5JMVF7PY.js → ledger-64TTQMRS.js} +5 -5
- package/dist/materialized-views/index.cjs.map +1 -1
- package/dist/materialized-views/index.d.cts +5 -5
- package/dist/materialized-views/index.d.ts +5 -5
- package/dist/materialized-views/index.js +6 -6
- package/dist/noydb-O76SKBST.js +35 -0
- package/dist/overlay-views/index.cjs.map +1 -1
- package/dist/overlay-views/index.d.cts +5 -5
- package/dist/overlay-views/index.d.ts +5 -5
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +4 -4
- package/dist/periods/index.d.ts +4 -4
- package/dist/periods/index.js +5 -5
- package/dist/{public-envelope-PFLZI5MO.js → public-envelope-MHG6YVXW.js} +4 -4
- package/dist/query/index.cjs +89 -7
- 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 +3 -3
- package/dist/registry-2PKBQDCH.js +8 -0
- package/dist/registry-4VXFKCBJ.js +8 -0
- package/dist/{registry-NCY445U5.js → registry-PV4G3OPA.js} +3 -3
- package/dist/{revoke-7RLGQWZ7.js → revoke-5BOLVJ3N.js} +6 -6
- package/dist/session/index.cjs.map +1 -1
- package/dist/session/index.d.cts +5 -5
- package/dist/session/index.d.ts +5 -5
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.cjs.map +1 -1
- package/dist/shadow/index.d.cts +4 -4
- package/dist/shadow/index.d.ts +4 -4
- package/dist/shadow/index.js +2 -2
- package/dist/{signer-6JF44I4A.js → signer-GRIYBA22.js} +5 -5
- package/dist/snapshots/index.cjs.map +1 -1
- package/dist/snapshots/index.d.cts +4 -4
- package/dist/snapshots/index.d.ts +4 -4
- package/dist/snapshots/index.js +4 -4
- package/dist/{stale-UBLP3RJ3.js → stale-LZYMMDDS.js} +2 -2
- package/dist/state-vault-QFJWU23A.js +147 -0
- package/dist/state-vault-QFJWU23A.js.map +1 -0
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +4 -4
- package/dist/store/index.d.ts +4 -4
- package/dist/store/index.js +2 -2
- package/dist/{strategy-rtpKDfTC.d.ts → strategy-CrS7PnbE.d.cts} +20 -1
- package/dist/{strategy-rtpKDfTC.d.cts → strategy-CrS7PnbE.d.ts} +20 -1
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +3 -3
- package/dist/sync/index.d.ts +3 -3
- package/dist/sync/index.js +4 -4
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +4 -4
- package/dist/team/index.d.ts +4 -4
- package/dist/team/index.js +8 -8
- package/dist/tx/index.cjs.map +1 -1
- package/dist/tx/index.d.cts +4 -4
- package/dist/tx/index.d.ts +4 -4
- package/dist/tx/index.js +3 -3
- package/dist/{types-BGwjsDef.d.cts → types-CDwSSXiI.d.cts} +290 -92
- package/dist/{types-DRdfwgTG.d.ts → types-pax34sec.d.ts} +290 -92
- package/dist/{ulid-D4d0Xto3.d.cts → ulid-7bCSgIgb.d.cts} +1 -1
- package/dist/{ulid-DOTPZ5_h.d.ts → ulid-C_t4hL3d.d.ts} +1 -1
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/{vault-group-Z4KB75ZH.js → vault-group-UO4YUZOG.js} +53 -10
- package/dist/vault-group-UO4YUZOG.js.map +1 -0
- package/dist/{with-derivation-B082Y_WQ.d.ts → with-derivation-BjdOxUBn.d.ts} +1 -1
- package/dist/{with-derivation-CB1EdcFF.d.cts → with-derivation-D8wFlb6V.d.cts} +1 -1
- package/dist/{with-materialized-view-CzRg1Dpr.d.cts → with-materialized-view-5QMF1rS_.d.cts} +1 -1
- package/dist/{with-materialized-view-Dw4SwjKl.d.ts → with-materialized-view-DJb-HO65.d.ts} +1 -1
- package/dist/{with-overlayed-view-CaCXeW26.d.ts → with-overlayed-view-CkqTefbz.d.ts} +1 -1
- package/dist/{with-overlayed-view-C9YFKXzn.d.cts → with-overlayed-view-DDNflPvC.d.cts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-AGRC7NQQ.js.map +0 -1
- package/dist/chunk-LYNNZEQD.js.map +0 -1
- package/dist/chunk-TMHJEYW7.js.map +0 -1
- package/dist/chunk-UOC7JMZO.js.map +0 -1
- package/dist/executor-7KSCEIFA.js +0 -8
- package/dist/executor-D2QMNGRJ.js +0 -8
- package/dist/executor-O5AZK7UW.js +0 -11
- package/dist/issue-YIYG4OW5.js +0 -12
- package/dist/noydb-D5SLAJ6V.js +0 -34
- package/dist/registry-BVQ5ITMF.js +0 -8
- package/dist/registry-JLP3QOLD.js +0 -8
- package/dist/vault-group-Z4KB75ZH.js.map +0 -1
- /package/dist/{chunk-P3Z5Y2TS.js.map → chunk-3OUCWHV6.js.map} +0 -0
- /package/dist/{chunk-4BHFNKTP.js.map → chunk-3XZRRBFW.js.map} +0 -0
- /package/dist/{chunk-XSIFXX54.js.map → chunk-4VCQH32J.js.map} +0 -0
- /package/dist/{chunk-CHBXWJZQ.js.map → chunk-4YDZ7JPZ.js.map} +0 -0
- /package/dist/{chunk-B7GGYNKQ.js.map → chunk-5NISHSBO.js.map} +0 -0
- /package/dist/{chunk-O53RIZCC.js.map → chunk-7TEI2K2A.js.map} +0 -0
- /package/dist/{chunk-ZCFS7U4J.js.map → chunk-AYNF7PVX.js.map} +0 -0
- /package/dist/{chunk-GFPR7VJS.js.map → chunk-C3WRKABE.js.map} +0 -0
- /package/dist/{chunk-EKNUBIIQ.js.map → chunk-CWFQTAD4.js.map} +0 -0
- /package/dist/{chunk-P4EDT5ZP.js.map → chunk-D5Y3HIC6.js.map} +0 -0
- /package/dist/{chunk-IUBHXEPJ.js.map → chunk-E3DIBDKA.js.map} +0 -0
- /package/dist/{chunk-WNRGOVLG.js.map → chunk-FNVFT4HZ.js.map} +0 -0
- /package/dist/{chunk-5ARRXIVR.js.map → chunk-GL3Z7LH7.js.map} +0 -0
- /package/dist/{chunk-WUG3E423.js.map → chunk-GZJ5JBED.js.map} +0 -0
- /package/dist/{chunk-XHM2SARW.js.map → chunk-HHZ77DHM.js.map} +0 -0
- /package/dist/{chunk-SJJQKNMP.js.map → chunk-HQXOEWLZ.js.map} +0 -0
- /package/dist/{chunk-CILT6V3V.js.map → chunk-ILWQGTNH.js.map} +0 -0
- /package/dist/{chunk-RRDWXNBQ.js.map → chunk-J67BP5EP.js.map} +0 -0
- /package/dist/{chunk-HLGDYFWR.js.map → chunk-JPOQMXGT.js.map} +0 -0
- /package/dist/{chunk-IEPT7HVP.js.map → chunk-JWFNOD2T.js.map} +0 -0
- /package/dist/{chunk-BXOUVUES.js.map → chunk-KHQ3N5AB.js.map} +0 -0
- /package/dist/{chunk-UA6G45ME.js.map → chunk-KJF7EPUE.js.map} +0 -0
- /package/dist/{chunk-C2CIIQRG.js.map → chunk-KKB42D3Q.js.map} +0 -0
- /package/dist/{chunk-M45IRXDM.js.map → chunk-M6KXHRIA.js.map} +0 -0
- /package/dist/{chunk-VOXMU6LB.js.map → chunk-NIUXQDWD.js.map} +0 -0
- /package/dist/{chunk-LWSD4QPT.js.map → chunk-O2JW656W.js.map} +0 -0
- /package/dist/{chunk-LSEW3ZZ2.js.map → chunk-PW26DAXS.js.map} +0 -0
- /package/dist/{chunk-HBAJDI2N.js.map → chunk-QAWCVWCX.js.map} +0 -0
- /package/dist/{chunk-L6BYRCYB.js.map → chunk-QFYVGJLI.js.map} +0 -0
- /package/dist/{chunk-6BYBVRZU.js.map → chunk-QIVFGU2M.js.map} +0 -0
- /package/dist/{chunk-ZC7MNVYN.js.map → chunk-SJ24GHID.js.map} +0 -0
- /package/dist/{chunk-SZ4N3IL5.js.map → chunk-SOU42FGB.js.map} +0 -0
- /package/dist/{chunk-DLTU4M2I.js.map → chunk-SYSKC237.js.map} +0 -0
- /package/dist/{chunk-6AD5TBF2.js.map → chunk-TDECYU4Y.js.map} +0 -0
- /package/dist/{chunk-7JJE3OMJ.js.map → chunk-TEQGXA7L.js.map} +0 -0
- /package/dist/{chunk-RHQYVHFH.js.map → chunk-UNQEWORI.js.map} +0 -0
- /package/dist/{chunk-LOA2VCMS.js.map → chunk-VAK6NQAK.js.map} +0 -0
- /package/dist/{chunk-7LVRIW4G.js.map → chunk-WQKZIQIL.js.map} +0 -0
- /package/dist/{chunk-OPDTLHFA.js.map → chunk-YWBHS25M.js.map} +0 -0
- /package/dist/{crypto-AJB72OKN.js.map → crypto-YXH6SAOW.js.map} +0 -0
- /package/dist/{delegation-6FCWDRUS.js.map → delegation-K5ERUH6A.js.map} +0 -0
- /package/dist/{executor-7KSCEIFA.js.map → executor-AVJ7UEWA.js.map} +0 -0
- /package/dist/{executor-D2QMNGRJ.js.map → executor-IQO3KGXQ.js.map} +0 -0
- /package/dist/{executor-O5AZK7UW.js.map → executor-VT7TKGE4.js.map} +0 -0
- /package/dist/{fanout-sidecar-ZSKEQ6NI.js.map → fanout-sidecar-N6OJX6QR.js.map} +0 -0
- /package/dist/{issue-YIYG4OW5.js.map → issue-ZH27C23Y.js.map} +0 -0
- /package/dist/{ledger-5JMVF7PY.js.map → ledger-64TTQMRS.js.map} +0 -0
- /package/dist/{noydb-D5SLAJ6V.js.map → noydb-O76SKBST.js.map} +0 -0
- /package/dist/{public-envelope-PFLZI5MO.js.map → public-envelope-MHG6YVXW.js.map} +0 -0
- /package/dist/{registry-BVQ5ITMF.js.map → registry-2PKBQDCH.js.map} +0 -0
- /package/dist/{registry-JLP3QOLD.js.map → registry-4VXFKCBJ.js.map} +0 -0
- /package/dist/{registry-NCY445U5.js.map → registry-PV4G3OPA.js.map} +0 -0
- /package/dist/{revoke-7RLGQWZ7.js.map → revoke-5BOLVJ3N.js.map} +0 -0
- /package/dist/{signer-6JF44I4A.js.map → signer-GRIYBA22.js.map} +0 -0
- /package/dist/{stale-UBLP3RJ3.js.map → stale-LZYMMDDS.js.map} +0 -0
package/dist/periods/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ag as PeriodsStrategy } from '../types-
|
|
2
|
-
export { ah as CarryForwardContext, ai as ClosePeriodOptions, aj as OpenPeriodOptions, ak as PERIODS_COLLECTION, al as PeriodRecord, am as ReadOnlyCollection, an as appendPeriodLedgerEntry, ao as assertTsWritable, ap as chainAnchor, aq as loadPeriods, ar as validatePeriodName } from '../types-
|
|
1
|
+
import { ag as PeriodsStrategy } from '../types-CDwSSXiI.cjs';
|
|
2
|
+
export { ah as CarryForwardContext, ai as ClosePeriodOptions, aj as OpenPeriodOptions, ak as PERIODS_COLLECTION, al as PeriodRecord, am as ReadOnlyCollection, an as appendPeriodLedgerEntry, ao as assertTsWritable, ap as chainAnchor, aq as loadPeriods, ar as validatePeriodName } from '../types-CDwSSXiI.cjs';
|
|
3
3
|
import '../lazy-builder-Ci5_YG73.cjs';
|
|
4
4
|
import '../predicate-Bt5ft-9c.cjs';
|
|
5
|
-
import '../strategy-
|
|
5
|
+
import '../strategy-CrS7PnbE.cjs';
|
|
6
6
|
import '../strategy-BSxFXGzb.cjs';
|
|
7
|
-
import '../index-
|
|
7
|
+
import '../index-CUVOMtgg.cjs';
|
|
8
8
|
import '@noy-db/attestation';
|
|
9
9
|
|
|
10
10
|
/**
|
package/dist/periods/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ag as PeriodsStrategy } from '../types-
|
|
2
|
-
export { ah as CarryForwardContext, ai as ClosePeriodOptions, aj as OpenPeriodOptions, ak as PERIODS_COLLECTION, al as PeriodRecord, am as ReadOnlyCollection, an as appendPeriodLedgerEntry, ao as assertTsWritable, ap as chainAnchor, aq as loadPeriods, ar as validatePeriodName } from '../types-
|
|
1
|
+
import { ag as PeriodsStrategy } from '../types-pax34sec.js';
|
|
2
|
+
export { ah as CarryForwardContext, ai as ClosePeriodOptions, aj as OpenPeriodOptions, ak as PERIODS_COLLECTION, al as PeriodRecord, am as ReadOnlyCollection, an as appendPeriodLedgerEntry, ao as assertTsWritable, ap as chainAnchor, aq as loadPeriods, ar as validatePeriodName } from '../types-pax34sec.js';
|
|
3
3
|
import '../lazy-builder-D5GU14TS.js';
|
|
4
4
|
import '../predicate-Bt5ft-9c.js';
|
|
5
|
-
import '../strategy-
|
|
5
|
+
import '../strategy-CrS7PnbE.js';
|
|
6
6
|
import '../strategy-BSxFXGzb.js';
|
|
7
|
-
import '../index-
|
|
7
|
+
import '../index-Cqzp4tt9.js';
|
|
8
8
|
import '@noy-db/attestation';
|
|
9
9
|
|
|
10
10
|
/**
|
package/dist/periods/index.js
CHANGED
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
loadPeriods,
|
|
7
7
|
validatePeriodName,
|
|
8
8
|
withPeriods
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-J67BP5EP.js";
|
|
10
10
|
import "../chunk-UF3BUNQZ.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-HQXOEWLZ.js";
|
|
12
12
|
import "../chunk-Z6FNBOTC.js";
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-GC4V7RU7.js";
|
|
14
|
+
import "../chunk-E3DIBDKA.js";
|
|
15
|
+
import "../chunk-NKGY3C53.js";
|
|
16
16
|
export {
|
|
17
17
|
PERIODS_COLLECTION,
|
|
18
18
|
appendPeriodLedgerEntry,
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
resolveLocale,
|
|
13
13
|
savePublicEnvelope,
|
|
14
14
|
validatePublicEnvelopeInput
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-KJF7EPUE.js";
|
|
16
|
+
import "./chunk-GC4V7RU7.js";
|
|
17
|
+
import "./chunk-NKGY3C53.js";
|
|
18
18
|
export {
|
|
19
19
|
DEFAULT_PUBLIC_ENVELOPE_SCHEMA,
|
|
20
20
|
PUBLIC_ENVELOPE_FIELDS,
|
|
@@ -28,4 +28,4 @@ export {
|
|
|
28
28
|
savePublicEnvelope,
|
|
29
29
|
validatePublicEnvelopeInput
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=public-envelope-
|
|
31
|
+
//# sourceMappingURL=public-envelope-MHG6YVXW.js.map
|
package/dist/query/index.cjs
CHANGED
|
@@ -758,6 +758,50 @@ function wrapMoneyReducers(spec, moneyFields) {
|
|
|
758
758
|
return changed ? out : spec;
|
|
759
759
|
}
|
|
760
760
|
|
|
761
|
+
// src/money/normalize.ts
|
|
762
|
+
function isMoneyValueObject(v) {
|
|
763
|
+
return typeof v === "object" && v !== null && "currency" in v;
|
|
764
|
+
}
|
|
765
|
+
function formatCurrency(decimal, currency, scale, locale) {
|
|
766
|
+
const fmt = new Intl.NumberFormat(locale, {
|
|
767
|
+
style: "currency",
|
|
768
|
+
currency,
|
|
769
|
+
minimumFractionDigits: scale,
|
|
770
|
+
maximumFractionDigits: scale
|
|
771
|
+
});
|
|
772
|
+
return fmt.format(decimal);
|
|
773
|
+
}
|
|
774
|
+
function decodeMoneyFields(record, moneyFields, locale) {
|
|
775
|
+
const out = { ...record };
|
|
776
|
+
const format = locale !== "raw";
|
|
777
|
+
const fmtLocale = typeof locale === "string" && locale !== "raw" ? locale : "en-US";
|
|
778
|
+
for (const [field, desc] of Object.entries(moneyFields)) {
|
|
779
|
+
const stored = out[field];
|
|
780
|
+
if (stored === null || stored === void 0) continue;
|
|
781
|
+
let currency;
|
|
782
|
+
let scaledIntString;
|
|
783
|
+
if (desc.mode === "fixed") {
|
|
784
|
+
if (typeof stored !== "string" && typeof stored !== "number") continue;
|
|
785
|
+
currency = desc.fixedCurrency;
|
|
786
|
+
scaledIntString = String(stored);
|
|
787
|
+
} else {
|
|
788
|
+
if (!isMoneyValueObject(stored)) continue;
|
|
789
|
+
const amount = stored.amount;
|
|
790
|
+
if (typeof stored.currency !== "string" || typeof amount !== "string" && typeof amount !== "number") continue;
|
|
791
|
+
currency = stored.currency;
|
|
792
|
+
scaledIntString = String(amount);
|
|
793
|
+
}
|
|
794
|
+
const scale = desc.scaleFor(currency);
|
|
795
|
+
const decimal = formatScaledInt(BigInt(scaledIntString), scale);
|
|
796
|
+
out[field] = desc.mode === "fixed" ? decimal : { amount: decimal, currency };
|
|
797
|
+
if (format) {
|
|
798
|
+
out[`${field}Formatted`] = formatCurrency(decimal, currency, scale, fmtLocale);
|
|
799
|
+
out[`${field}Number`] = Number(decimal);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
return out;
|
|
803
|
+
}
|
|
804
|
+
|
|
761
805
|
// src/query/builder.ts
|
|
762
806
|
var EMPTY_PLAN = {
|
|
763
807
|
clauses: [],
|
|
@@ -1127,7 +1171,7 @@ var Query = class _Query {
|
|
|
1127
1171
|
* for the ordering rationale.
|
|
1128
1172
|
*/
|
|
1129
1173
|
toArray() {
|
|
1130
|
-
const base = executePlanWithSource(this.source, this.plan, this.joinContext);
|
|
1174
|
+
const base = this.decodeMoney(executePlanWithSource(this.source, this.plan, this.joinContext));
|
|
1131
1175
|
if (this.plan.joins.length === 0) return base;
|
|
1132
1176
|
if (!this.joinContext) {
|
|
1133
1177
|
throw new Error(
|
|
@@ -1136,6 +1180,23 @@ var Query = class _Query {
|
|
|
1136
1180
|
}
|
|
1137
1181
|
return applyJoins(base, this.plan.joins, this.joinContext);
|
|
1138
1182
|
}
|
|
1183
|
+
/**
|
|
1184
|
+
* Decode this source's money fields on read (stored scaled-int → canonical
|
|
1185
|
+
* decimal), so `query().toArray()` agrees with `get()`/`sum()` on the value.
|
|
1186
|
+
* No-op when the source declares no money fields.
|
|
1187
|
+
*
|
|
1188
|
+
* The query layer carries no locale context, so we decode with `'raw'` —
|
|
1189
|
+
* canonical decimal, WITHOUT fabricating locale-formatted `<field>Formatted`
|
|
1190
|
+
* / `<field>Number` virtuals. Producing a guessed-locale string here would
|
|
1191
|
+
* just reintroduce #322's "two read paths disagree" failure on the virtual
|
|
1192
|
+
* field (e.g. it-IT via `get()` vs en-US here). Consumers who need formatted
|
|
1193
|
+
* money read through `get()`/`list()` with a locale.
|
|
1194
|
+
*/
|
|
1195
|
+
decodeMoney(records) {
|
|
1196
|
+
const moneyFields = this.source.moneyFields;
|
|
1197
|
+
if (!moneyFields || Object.keys(moneyFields).length === 0) return records;
|
|
1198
|
+
return records.map((r) => decodeMoneyFields(r, moneyFields, "raw"));
|
|
1199
|
+
}
|
|
1139
1200
|
/** Return the first matching record, or null. Joins are applied. */
|
|
1140
1201
|
first() {
|
|
1141
1202
|
const arr = this.limit(1).toArray();
|
|
@@ -2252,12 +2313,29 @@ var ScanBuilder = class _ScanBuilder {
|
|
|
2252
2313
|
* context throws with an actionable error.
|
|
2253
2314
|
*/
|
|
2254
2315
|
joinContext;
|
|
2255
|
-
|
|
2316
|
+
/**
|
|
2317
|
+
* Money field descriptors for the backing collection. When present, yielded
|
|
2318
|
+
* records are decoded (stored scaled-int → canonical decimal) so `scan()`
|
|
2319
|
+
* agrees with `get()`/`list()`/`query().toArray()` — #322. Decoded with
|
|
2320
|
+
* `'raw'` (canonical decimal, no locale-formatted virtuals) since the scan
|
|
2321
|
+
* stream carries no locale context, mirroring `Query.toArray()`.
|
|
2322
|
+
*/
|
|
2323
|
+
moneyFields;
|
|
2324
|
+
constructor(pageProvider, pageSize = DEFAULT_SCAN_PAGE_SIZE, clauses = [], joins = [], joinContext, moneyFields) {
|
|
2256
2325
|
this.pageProvider = pageProvider;
|
|
2257
2326
|
this.pageSize = pageSize;
|
|
2258
2327
|
this.clauses = clauses;
|
|
2259
2328
|
this.joins = joins;
|
|
2260
2329
|
this.joinContext = joinContext;
|
|
2330
|
+
this.moneyFields = moneyFields;
|
|
2331
|
+
}
|
|
2332
|
+
/**
|
|
2333
|
+
* Decode this scan's money fields on a record (stored scaled-int → canonical
|
|
2334
|
+
* decimal). No-op when no money fields are declared. See {@link moneyFields}.
|
|
2335
|
+
*/
|
|
2336
|
+
decodeMoney(record) {
|
|
2337
|
+
if (!this.moneyFields || Object.keys(this.moneyFields).length === 0) return record;
|
|
2338
|
+
return decodeMoneyFields(record, this.moneyFields, "raw");
|
|
2261
2339
|
}
|
|
2262
2340
|
/**
|
|
2263
2341
|
* Add a field comparison. Runs per record as the scan stream
|
|
@@ -2279,7 +2357,8 @@ var ScanBuilder = class _ScanBuilder {
|
|
|
2279
2357
|
this.pageSize,
|
|
2280
2358
|
[...this.clauses, clause],
|
|
2281
2359
|
this.joins,
|
|
2282
|
-
this.joinContext
|
|
2360
|
+
this.joinContext,
|
|
2361
|
+
this.moneyFields
|
|
2283
2362
|
);
|
|
2284
2363
|
}
|
|
2285
2364
|
/**
|
|
@@ -2298,7 +2377,8 @@ var ScanBuilder = class _ScanBuilder {
|
|
|
2298
2377
|
this.pageSize,
|
|
2299
2378
|
[...this.clauses, clause],
|
|
2300
2379
|
this.joins,
|
|
2301
|
-
this.joinContext
|
|
2380
|
+
this.joinContext,
|
|
2381
|
+
this.moneyFields
|
|
2302
2382
|
);
|
|
2303
2383
|
}
|
|
2304
2384
|
/**
|
|
@@ -2409,7 +2489,8 @@ var ScanBuilder = class _ScanBuilder {
|
|
|
2409
2489
|
this.pageSize,
|
|
2410
2490
|
this.clauses,
|
|
2411
2491
|
[...this.joins, leg],
|
|
2412
|
-
this.joinContext
|
|
2492
|
+
this.joinContext,
|
|
2493
|
+
this.moneyFields
|
|
2413
2494
|
);
|
|
2414
2495
|
}
|
|
2415
2496
|
/**
|
|
@@ -2426,10 +2507,11 @@ var ScanBuilder = class _ScanBuilder {
|
|
|
2426
2507
|
while (true) {
|
|
2427
2508
|
for (const record of page.items) {
|
|
2428
2509
|
if (!this.recordMatches(record)) continue;
|
|
2510
|
+
const decoded = this.decodeMoney(record);
|
|
2429
2511
|
if (joinResolvers === null) {
|
|
2430
|
-
yield
|
|
2512
|
+
yield decoded;
|
|
2431
2513
|
} else {
|
|
2432
|
-
let attached =
|
|
2514
|
+
let attached = decoded;
|
|
2433
2515
|
for (const resolver of joinResolvers) {
|
|
2434
2516
|
attached = this.applyOneJoinStreaming(attached, resolver);
|
|
2435
2517
|
}
|