@nicia-ai/typegraph 0.38.0 → 0.39.0
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/backend/postgres/index.cjs +16 -16
- package/dist/backend/postgres/index.js +3 -3
- package/dist/backend/postgres/pglite-store.cjs +11 -11
- package/dist/backend/postgres/pglite-store.d.cts +1 -1
- package/dist/backend/postgres/pglite-store.d.ts +1 -1
- package/dist/backend/postgres/pglite-store.js +8 -8
- package/dist/backend/postgres/pglite.cjs +5 -5
- package/dist/backend/postgres/pglite.js +4 -4
- package/dist/backend/sqlite/index.cjs +6 -6
- package/dist/backend/sqlite/index.js +3 -3
- package/dist/backend/sqlite/libsql.cjs +5 -5
- package/dist/backend/sqlite/libsql.js +3 -3
- package/dist/backend/sqlite/local-store.cjs +11 -11
- package/dist/backend/sqlite/local-store.d.cts +1 -1
- package/dist/backend/sqlite/local-store.d.ts +1 -1
- package/dist/backend/sqlite/local-store.js +9 -9
- package/dist/backend/sqlite/local.cjs +6 -6
- package/dist/backend/sqlite/local.js +4 -4
- package/dist/{chunk-UPXDVI3T.js → chunk-3SK4SVTW.js} +3 -3
- package/dist/{chunk-UPXDVI3T.js.map → chunk-3SK4SVTW.js.map} +1 -1
- package/dist/{chunk-NU23DUSJ.cjs → chunk-3YFDFOYB.cjs} +7 -7
- package/dist/{chunk-NU23DUSJ.cjs.map → chunk-3YFDFOYB.cjs.map} +1 -1
- package/dist/{chunk-NWYCOFEZ.cjs → chunk-5ELKD2FQ.cjs} +4 -4
- package/dist/chunk-5ELKD2FQ.cjs.map +1 -0
- package/dist/{chunk-2SL7OGPR.cjs → chunk-6SRLCSAV.cjs} +478 -338
- package/dist/chunk-6SRLCSAV.cjs.map +1 -0
- package/dist/{chunk-A2FGSWMQ.js → chunk-CBK2IVI2.js} +167 -27
- package/dist/chunk-CBK2IVI2.js.map +1 -0
- package/dist/{chunk-TE5ZA4VX.js → chunk-DOKUXLFH.js} +14 -10
- package/dist/chunk-DOKUXLFH.js.map +1 -0
- package/dist/{chunk-KCLZHYPU.cjs → chunk-E2Q7SP2K.cjs} +52 -52
- package/dist/{chunk-KCLZHYPU.cjs.map → chunk-E2Q7SP2K.cjs.map} +1 -1
- package/dist/{chunk-YLINFV7Z.cjs → chunk-GKQU44SQ.cjs} +67 -63
- package/dist/chunk-GKQU44SQ.cjs.map +1 -0
- package/dist/{chunk-O5H62ZWJ.cjs → chunk-HP6LWBLB.cjs} +14 -2
- package/dist/chunk-HP6LWBLB.cjs.map +1 -0
- package/dist/{chunk-7VLCN3JB.cjs → chunk-HTQOBY75.cjs} +59 -59
- package/dist/{chunk-7VLCN3JB.cjs.map → chunk-HTQOBY75.cjs.map} +1 -1
- package/dist/{chunk-RQPRCEIO.js → chunk-IFDXG2YJ.js} +3 -3
- package/dist/chunk-IFDXG2YJ.js.map +1 -0
- package/dist/{chunk-YJDSPA5E.js → chunk-IFRPHG7O.js} +4 -4
- package/dist/{chunk-YJDSPA5E.js.map → chunk-IFRPHG7O.js.map} +1 -1
- package/dist/{chunk-LZ3TVJY4.cjs → chunk-JD2YC62H.cjs} +17 -17
- package/dist/{chunk-LZ3TVJY4.cjs.map → chunk-JD2YC62H.cjs.map} +1 -1
- package/dist/{chunk-XD6X7O5R.js → chunk-KAFXPB2L.js} +4 -4
- package/dist/{chunk-XD6X7O5R.js.map → chunk-KAFXPB2L.js.map} +1 -1
- package/dist/{chunk-ZHX4KEM7.cjs → chunk-KIZSHRUI.cjs} +7 -7
- package/dist/{chunk-ZHX4KEM7.cjs.map → chunk-KIZSHRUI.cjs.map} +1 -1
- package/dist/{chunk-G32AO634.js → chunk-KXFUQNF2.js} +3 -3
- package/dist/{chunk-G32AO634.js.map → chunk-KXFUQNF2.js.map} +1 -1
- package/dist/{chunk-E6YZRKMM.js → chunk-NQBYTLPW.js} +4 -4
- package/dist/{chunk-E6YZRKMM.js.map → chunk-NQBYTLPW.js.map} +1 -1
- package/dist/{chunk-VBH7ZXSZ.js → chunk-SU7VQOJ3.js} +3 -3
- package/dist/{chunk-VBH7ZXSZ.js.map → chunk-SU7VQOJ3.js.map} +1 -1
- package/dist/{chunk-KFLXWVUJ.js → chunk-UUIBACKJ.js} +14 -3
- package/dist/chunk-UUIBACKJ.js.map +1 -0
- package/dist/{chunk-CQC6VBAF.cjs → chunk-VXAFOF6Z.cjs} +5 -5
- package/dist/{chunk-CQC6VBAF.cjs.map → chunk-VXAFOF6Z.cjs.map} +1 -1
- package/dist/{chunk-XFY73JWD.cjs → chunk-Y6UA55YS.cjs} +5 -5
- package/dist/{chunk-XFY73JWD.cjs.map → chunk-Y6UA55YS.cjs.map} +1 -1
- package/dist/{chunk-6G5CQ6JX.js → chunk-YPUNPG2T.js} +4 -4
- package/dist/{chunk-6G5CQ6JX.js.map → chunk-YPUNPG2T.js.map} +1 -1
- package/dist/graph-merge/index.cjs +30 -32
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +10 -5
- package/dist/graph-merge/index.d.ts +10 -5
- package/dist/graph-merge/index.js +9 -11
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/index.cjs +68 -68
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/interchange/index.cjs +23 -23
- package/dist/interchange/index.d.cts +1 -1
- package/dist/interchange/index.d.ts +1 -1
- package/dist/interchange/index.js +4 -4
- package/dist/profiler/index.d.cts +1 -1
- package/dist/profiler/index.d.ts +1 -1
- package/dist/provenance/index.cjs +11 -11
- package/dist/provenance/index.d.cts +1 -1
- package/dist/provenance/index.d.ts +1 -1
- package/dist/provenance/index.js +2 -2
- package/dist/schema/index.cjs +22 -22
- package/dist/schema/index.js +3 -3
- package/dist/{store-view-BoHqdHjB.d.cts → store-view-BJd6Vwpt.d.cts} +39 -17
- package/dist/{store-view-Ctq-3OHy.d.ts → store-view-CLIhwMMX.d.ts} +39 -17
- package/package.json +1 -1
- package/dist/chunk-2SL7OGPR.cjs.map +0 -1
- package/dist/chunk-A2FGSWMQ.js.map +0 -1
- package/dist/chunk-KFLXWVUJ.js.map +0 -1
- package/dist/chunk-NWYCOFEZ.cjs.map +0 -1
- package/dist/chunk-O5H62ZWJ.cjs.map +0 -1
- package/dist/chunk-RQPRCEIO.js.map +0 -1
- package/dist/chunk-TE5ZA4VX.js.map +0 -1
- package/dist/chunk-YLINFV7Z.cjs.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import { storeBackend } from '../chunk-
|
|
1
|
+
export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-NQBYTLPW.js';
|
|
2
|
+
import '../chunk-3SK4SVTW.js';
|
|
3
|
+
import { storeBackend } from '../chunk-IFDXG2YJ.js';
|
|
4
4
|
import '../chunk-35S6P5ZU.js';
|
|
5
5
|
import '../chunk-PZHC5GCD.js';
|
|
6
6
|
import '../chunk-J6IJARLG.js';
|
|
7
7
|
import '../chunk-ZE6NVENI.js';
|
|
8
8
|
import '../chunk-UR7W5YQK.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-UUIBACKJ.js';
|
|
10
10
|
import '../chunk-PH4IJ3V5.js';
|
|
11
11
|
import '../chunk-I6FX7AAG.js';
|
|
12
12
|
import '../chunk-2EBMPJBO.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { G as GraphDef } from '../define-graph-CzEvA_8F.cjs';
|
|
2
2
|
import { Q as QueryAst } from '../index-CrFL_ENI.cjs';
|
|
3
|
-
import { a as Store } from '../store-view-
|
|
3
|
+
import { a as Store } from '../store-view-BJd6Vwpt.cjs';
|
|
4
4
|
import { P as ProfilerOptions, a as ProfileReport } from '../types-COq3-vMC.cjs';
|
|
5
5
|
export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-COq3-vMC.cjs';
|
|
6
6
|
import '../extension-types-BLEVH4SG.cjs';
|
package/dist/profiler/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { G as GraphDef } from '../define-graph-DRo9xpYN.js';
|
|
2
2
|
import { Q as QueryAst } from '../index-Bq7vSPHy.js';
|
|
3
|
-
import { a as Store } from '../store-view-
|
|
3
|
+
import { a as Store } from '../store-view-CLIhwMMX.js';
|
|
4
4
|
import { P as ProfilerOptions, a as ProfileReport } from '../types-CUevi_D1.js';
|
|
5
5
|
export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-CUevi_D1.js';
|
|
6
6
|
import '../extension-types-BLEVH4SG.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkTRF4EBJT_cjs = require('../chunk-TRF4EBJT.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk5ELKD2FQ_cjs = require('../chunk-5ELKD2FQ.cjs');
|
|
5
5
|
require('../chunk-ZDH3DX3C.cjs');
|
|
6
6
|
var chunkGNPGGLAE_cjs = require('../chunk-GNPGGLAE.cjs');
|
|
7
7
|
require('../chunk-SVUKGWSN.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-HP6LWBLB.cjs');
|
|
9
9
|
var chunkDDCYVIVV_cjs = require('../chunk-DDCYVIVV.cjs');
|
|
10
10
|
require('../chunk-NAUA4PW5.cjs');
|
|
11
11
|
require('../chunk-Z5QHVL5U.cjs');
|
|
@@ -452,8 +452,8 @@ function getFactRegistration(store, row) {
|
|
|
452
452
|
async function closeFactCurrency(backend, store, runHooks, row, lock) {
|
|
453
453
|
await runHooks("delete", row.kind, row.id, async () => {
|
|
454
454
|
const registration = getFactRegistration(store, row);
|
|
455
|
-
await
|
|
456
|
-
|
|
455
|
+
await chunk5ELKD2FQ_cjs.applyNodeSoftDelete(
|
|
456
|
+
chunk5ELKD2FQ_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
|
|
457
457
|
{
|
|
458
458
|
existing: row,
|
|
459
459
|
schema: registration.type.schema,
|
|
@@ -468,8 +468,8 @@ async function closeFactCurrency(backend, store, runHooks, row, lock) {
|
|
|
468
468
|
async function reopenFactCurrency(backend, store, runHooks, row, lock) {
|
|
469
469
|
await runHooks("update", row.kind, row.id, async () => {
|
|
470
470
|
const registration = getFactRegistration(store, row);
|
|
471
|
-
await
|
|
472
|
-
|
|
471
|
+
await chunk5ELKD2FQ_cjs.applyNodeResurrect(
|
|
472
|
+
chunk5ELKD2FQ_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
|
|
473
473
|
{
|
|
474
474
|
existing: row,
|
|
475
475
|
schema: registration.type.schema,
|
|
@@ -501,8 +501,8 @@ async function runTransition(store, config, sources, retracted) {
|
|
|
501
501
|
);
|
|
502
502
|
}
|
|
503
503
|
return store.transaction(async (tx) => {
|
|
504
|
-
const backend =
|
|
505
|
-
const lock = await
|
|
504
|
+
const backend = chunk5ELKD2FQ_cjs.transactionBackend(tx);
|
|
505
|
+
const lock = await chunk5ELKD2FQ_cjs.lockRecordedGraphWrite(backend, store.graphId);
|
|
506
506
|
const rows = await Promise.all(
|
|
507
507
|
uniqueSources.map(
|
|
508
508
|
(source) => backend.getNode(store.graphId, source.kind, source.id)
|
|
@@ -538,7 +538,7 @@ async function runTransition(store, config, sources, retracted) {
|
|
|
538
538
|
await synchronizeFactCurrency(
|
|
539
539
|
backend,
|
|
540
540
|
store,
|
|
541
|
-
|
|
541
|
+
chunk5ELKD2FQ_cjs.transactionNodeOperationHookRunner(tx),
|
|
542
542
|
after,
|
|
543
543
|
affected,
|
|
544
544
|
lock
|
|
@@ -564,8 +564,8 @@ function createRetractionCapability(store, config) {
|
|
|
564
564
|
unRetractMany: (sources) => transition(sources, false),
|
|
565
565
|
async holding() {
|
|
566
566
|
return store.transaction(async (tx) => {
|
|
567
|
-
const backend =
|
|
568
|
-
await
|
|
567
|
+
const backend = chunk5ELKD2FQ_cjs.transactionBackend(tx);
|
|
568
|
+
await chunk5ELKD2FQ_cjs.lockRecordedGraphWrite(backend, store.graphId);
|
|
569
569
|
const snapshot = await computeSupport(
|
|
570
570
|
backend,
|
|
571
571
|
store.graphId,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { G as GraphDef } from '../define-graph-CzEvA_8F.cjs';
|
|
2
|
-
import { b as HistoryStore } from '../store-view-
|
|
2
|
+
import { b as HistoryStore } from '../store-view-BJd6Vwpt.cjs';
|
|
3
3
|
import '../extension-types-BLEVH4SG.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../index-CrFL_ENI.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { G as GraphDef } from '../define-graph-DRo9xpYN.js';
|
|
2
|
-
import { b as HistoryStore } from '../store-view-
|
|
2
|
+
import { b as HistoryStore } from '../store-view-CLIhwMMX.js';
|
|
3
3
|
import '../extension-types-BLEVH4SG.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../index-Bq7vSPHy.js';
|
package/dist/provenance/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { compareStrings } from '../chunk-DRACN6XG.js';
|
|
2
|
-
import { transactionBackend, lockRecordedGraphWrite, transactionNodeOperationHookRunner, applyNodeSoftDelete, createNodeWriteContext, applyNodeResurrect } from '../chunk-
|
|
2
|
+
import { transactionBackend, lockRecordedGraphWrite, transactionNodeOperationHookRunner, applyNodeSoftDelete, createNodeWriteContext, applyNodeResurrect } from '../chunk-IFDXG2YJ.js';
|
|
3
3
|
import '../chunk-35S6P5ZU.js';
|
|
4
4
|
import { rowPropsToObject, isLiveNodeRow, isTombstonedNodeRow } from '../chunk-PZHC5GCD.js';
|
|
5
5
|
import '../chunk-J6IJARLG.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-UUIBACKJ.js';
|
|
7
7
|
import { nowIso } from '../chunk-I6FX7AAG.js';
|
|
8
8
|
import '../chunk-2EBMPJBO.js';
|
|
9
9
|
import '../chunk-DDCIXXOO.js';
|
package/dist/schema/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVXAFOF6Z_cjs = require('../chunk-VXAFOF6Z.cjs');
|
|
4
4
|
require('../chunk-RW24SAHI.cjs');
|
|
5
5
|
var chunkX4PVHAZ6_cjs = require('../chunk-X4PVHAZ6.cjs');
|
|
6
6
|
require('../chunk-ACSVZPK7.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-HP6LWBLB.cjs');
|
|
8
8
|
require('../chunk-NT6ILURI.cjs');
|
|
9
9
|
require('../chunk-DDCYVIVV.cjs');
|
|
10
10
|
require('../chunk-7M3NACL3.cjs');
|
|
@@ -64,7 +64,7 @@ function buildRegistryFromClosures(schema) {
|
|
|
64
64
|
const edgeImplyingClosure = recordToMap(closures.edgeImplyingClosure);
|
|
65
65
|
const nodeKinds = /* @__PURE__ */ new Map();
|
|
66
66
|
const edgeKinds = /* @__PURE__ */ new Map();
|
|
67
|
-
const registry = new
|
|
67
|
+
const registry = new chunkVXAFOF6Z_cjs.KindRegistry(nodeKinds, edgeKinds, {
|
|
68
68
|
subClassAncestors,
|
|
69
69
|
subClassDescendants,
|
|
70
70
|
broaderClosure,
|
|
@@ -78,7 +78,7 @@ function buildRegistryFromClosures(schema) {
|
|
|
78
78
|
edgeImplicationsClosure,
|
|
79
79
|
edgeImplyingClosure
|
|
80
80
|
});
|
|
81
|
-
|
|
81
|
+
chunkVXAFOF6Z_cjs.validateImpliesEndpointCompatibility(
|
|
82
82
|
buildEdgeEndpointKinds(schema.edges),
|
|
83
83
|
registry
|
|
84
84
|
);
|
|
@@ -104,75 +104,75 @@ function simpleRecordToMap(record) {
|
|
|
104
104
|
|
|
105
105
|
Object.defineProperty(exports, "applyDeprecatedKinds", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkVXAFOF6Z_cjs.applyDeprecatedKinds; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "assertSchemaCurrent", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkVXAFOF6Z_cjs.assertSchemaCurrent; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "computeSchemaDiff", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkVXAFOF6Z_cjs.computeSchemaDiff; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "computeSchemaHash", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkVXAFOF6Z_cjs.computeSchemaHash; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "deserializeWherePredicate", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkVXAFOF6Z_cjs.deserializeWherePredicate; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "ensureSchema", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkVXAFOF6Z_cjs.ensureSchema; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "getActiveSchema", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkVXAFOF6Z_cjs.getActiveSchema; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "getMigrationActions", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkVXAFOF6Z_cjs.getMigrationActions; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "getSchemaChanges", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkVXAFOF6Z_cjs.getSchemaChanges; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "initializeSchema", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkVXAFOF6Z_cjs.initializeSchema; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "isBackwardsCompatible", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkVXAFOF6Z_cjs.isBackwardsCompatible; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "isSchemaInitialized", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkVXAFOF6Z_cjs.isSchemaInitialized; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "loadActiveSchemaWithBootstrap", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkVXAFOF6Z_cjs.loadActiveSchemaWithBootstrap; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "loadAndMergeGraphExtensionDocument", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkVXAFOF6Z_cjs.loadAndMergeGraphExtensionDocument; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "migrateSchema", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkVXAFOF6Z_cjs.migrateSchema; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "parseSerializedSchema", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkVXAFOF6Z_cjs.parseSerializedSchema; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "rollbackSchema", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkVXAFOF6Z_cjs.rollbackSchema; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "serializeSchema", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkVXAFOF6Z_cjs.serializeSchema; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "createValidationError", {
|
|
178
178
|
enumerable: true,
|
package/dist/schema/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { KindRegistry, validateImpliesEndpointCompatibility } from '../chunk-
|
|
2
|
-
export { applyDeprecatedKinds, assertSchemaCurrent, computeSchemaDiff, computeSchemaHash, deserializeWherePredicate, ensureSchema, getActiveSchema, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, migrateSchema, parseSerializedSchema, rollbackSchema, serializeSchema } from '../chunk-
|
|
1
|
+
import { KindRegistry, validateImpliesEndpointCompatibility } from '../chunk-SU7VQOJ3.js';
|
|
2
|
+
export { applyDeprecatedKinds, assertSchemaCurrent, computeSchemaDiff, computeSchemaHash, deserializeWherePredicate, ensureSchema, getActiveSchema, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, migrateSchema, parseSerializedSchema, rollbackSchema, serializeSchema } from '../chunk-SU7VQOJ3.js';
|
|
3
3
|
import '../chunk-76HE7DJP.js';
|
|
4
4
|
export { createValidationError, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-ZE6NVENI.js';
|
|
5
5
|
import '../chunk-UR7W5YQK.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-UUIBACKJ.js';
|
|
7
7
|
import '../chunk-PH4IJ3V5.js';
|
|
8
8
|
import '../chunk-I6FX7AAG.js';
|
|
9
9
|
import '../chunk-VDYA2HMS.js';
|
|
@@ -1819,17 +1819,39 @@ type StoreViewNodeCollections<G extends GraphDef> = {
|
|
|
1819
1819
|
type StoreViewEdgeCollections<G extends GraphDef> = {
|
|
1820
1820
|
[K in keyof G["edges"] & string]-?: TypedStoreViewEdgeCollection<G["edges"][K]>;
|
|
1821
1821
|
};
|
|
1822
|
-
/**
|
|
1823
|
-
type
|
|
1824
|
-
/**
|
|
1825
|
-
|
|
1822
|
+
/** Options for one bounded, forward-only recorded-time collection scan. */
|
|
1823
|
+
type RecordedScanOptions = Readonly<{
|
|
1824
|
+
/** Maximum entities to return. Defaults to 1,000 and cannot exceed 1,000. */
|
|
1825
|
+
limit?: number;
|
|
1826
|
+
/** Opaque cursor returned by the preceding page. */
|
|
1827
|
+
after?: string;
|
|
1828
|
+
}>;
|
|
1829
|
+
/** One page from a deterministic recorded-time collection scan. */
|
|
1830
|
+
type RecordedScanPage<T> = Readonly<{
|
|
1831
|
+
/** Entities ordered by canonical id ascending. */
|
|
1832
|
+
data: readonly T[];
|
|
1833
|
+
/** Cursor for the next page, or `undefined` when the scan is complete. */
|
|
1834
|
+
nextCursor: string | undefined;
|
|
1835
|
+
/** Whether another page exists after this one. */
|
|
1836
|
+
hasNextPage: boolean;
|
|
1837
|
+
}>;
|
|
1838
|
+
/** Recorded-time reconstructing reads for one node kind. */
|
|
1839
|
+
type RecordedStoreViewNodeCollection<N extends NodeType> = Pick<StoreViewNodeCollection<N>, (typeof RECORDED_POINT_READ_NAMES)[number]> & Readonly<{
|
|
1840
|
+
/** Scan one bounded page at the view's pinned coordinate. */
|
|
1841
|
+
scan: (options?: RecordedScanOptions) => Promise<RecordedScanPage<Node<N>>>;
|
|
1842
|
+
}>;
|
|
1843
|
+
/** Recorded-time reconstructing reads for one edge kind. */
|
|
1844
|
+
type RecordedStoreViewEdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To extends NodeType = NodeType> = Pick<StoreViewEdgeCollection<E, From, To>, (typeof RECORDED_POINT_READ_NAMES)[number]> & Readonly<{
|
|
1845
|
+
/** Scan one bounded page at the view's pinned coordinate. */
|
|
1846
|
+
scan: (options?: RecordedScanOptions) => Promise<RecordedScanPage<Edge<E, From, To>>>;
|
|
1847
|
+
}>;
|
|
1826
1848
|
/** Recorded-time edge collection derived from an `EdgeRegistration`. */
|
|
1827
1849
|
type TypedRecordedStoreViewEdgeCollection<R extends EdgeRegistration> = RecordedStoreViewEdgeCollection<R["type"], EdgeFromTypes<R> extends NodeType ? EdgeFromTypes<R> : NodeType, EdgeToTypes<R> extends NodeType ? EdgeToTypes<R> : NodeType>;
|
|
1828
|
-
/** Mapped type of all recorded-time node
|
|
1850
|
+
/** Mapped type of all recorded-time node reconstructing-read collections. */
|
|
1829
1851
|
type RecordedStoreViewNodeCollections<G extends GraphDef> = {
|
|
1830
1852
|
[K in keyof G["nodes"] & string]-?: RecordedStoreViewNodeCollection<G["nodes"][K]["type"]>;
|
|
1831
1853
|
};
|
|
1832
|
-
/** Mapped type of all recorded-time edge
|
|
1854
|
+
/** Mapped type of all recorded-time edge reconstructing-read collections. */
|
|
1833
1855
|
type RecordedStoreViewEdgeCollections<G extends GraphDef> = {
|
|
1834
1856
|
[K in keyof G["edges"] & string]-?: TypedRecordedStoreViewEdgeCollection<G["edges"][K]>;
|
|
1835
1857
|
};
|
|
@@ -1837,9 +1859,10 @@ type RecordedStoreViewEdgeCollections<G extends GraphDef> = {
|
|
|
1837
1859
|
* Whether — and why — `tx.sql` can be used on a transaction context. A single
|
|
1838
1860
|
* required discriminant covering exactly the four states raw-SQL access can be
|
|
1839
1861
|
* in, so an adapter caller branches on capability instead of truthiness-testing
|
|
1840
|
-
* `tx.sql`.
|
|
1841
|
-
*
|
|
1842
|
-
*
|
|
1862
|
+
* `tx.sql`. The non-available variants omit `sql` entirely, so even reading the
|
|
1863
|
+
* handle requires first narrowing `sqlAvailability` to `"available"`. The
|
|
1864
|
+
* runtime object keeps a fail-loud getter under history / revision tracking for
|
|
1865
|
+
* JavaScript and type-suppressed callers. See
|
|
1843
1866
|
* {@link AdapterTransactionContext} for the per-value semantics.
|
|
1844
1867
|
*/
|
|
1845
1868
|
type SqlAvailability = "available" | "history" | "revisionTracking" | "unavailable";
|
|
@@ -1847,10 +1870,8 @@ type AdapterTransactionSqlAccess<TNativeTransaction> = Readonly<{
|
|
|
1847
1870
|
sql: TNativeTransaction;
|
|
1848
1871
|
sqlAvailability: "available";
|
|
1849
1872
|
}> | Readonly<{
|
|
1850
|
-
sql?: never;
|
|
1851
1873
|
sqlAvailability: "history" | "revisionTracking";
|
|
1852
1874
|
}> | Readonly<{
|
|
1853
|
-
sql?: undefined;
|
|
1854
1875
|
sqlAvailability: "unavailable";
|
|
1855
1876
|
}>;
|
|
1856
1877
|
declare const TRANSACTION_RUNTIME: unique symbol;
|
|
@@ -3855,8 +3876,10 @@ type StoreRuntime<G extends GraphDef> = Readonly<{
|
|
|
3855
3876
|
sealedQuery: (coordinate: ReadCoordinate) => InitialQueryBuilder<G, "sealed">;
|
|
3856
3877
|
recordedNodeGetById: <N extends NodeType>(kind: string, id: NodeId<N>, coordinate: ReadCoordinate) => Promise<Node<N> | undefined>;
|
|
3857
3878
|
recordedNodeGetByIds: <N extends NodeType>(kind: string, ids: readonly NodeId<N>[], coordinate: ReadCoordinate) => Promise<readonly (Node<N> | undefined)[]>;
|
|
3879
|
+
recordedNodeScan: <N extends NodeType>(kind: string, coordinate: ReadCoordinate, options?: RecordedScanOptions) => Promise<RecordedScanPage<Node<N>>>;
|
|
3858
3880
|
recordedEdgeGetById: <E extends AnyEdgeType>(kind: string, id: EdgeId<E>, coordinate: ReadCoordinate) => Promise<Edge<E> | undefined>;
|
|
3859
3881
|
recordedEdgeGetByIds: <E extends AnyEdgeType>(kind: string, ids: readonly EdgeId<E>[], coordinate: ReadCoordinate) => Promise<readonly (Edge<E> | undefined)[]>;
|
|
3882
|
+
recordedEdgeScan: <E extends AnyEdgeType>(kind: string, coordinate: ReadCoordinate, options?: RecordedScanOptions) => Promise<RecordedScanPage<Edge<E>>>;
|
|
3860
3883
|
subgraphAtCoordinate: <const EK extends EdgeKinds<G>, const NK extends NodeKinds<G> = NodeKinds<G>, const P extends SubgraphProject<G, NK, EK> | undefined = undefined>(rootId: NodeId<AllNodeTypes<G>>, options: InternalSubgraphOptions<G, EK, NK, P>) => Promise<SubgraphResult<G, NK, EK, P>>;
|
|
3861
3884
|
algorithmsAtCoordinate: (coordinate: ReadCoordinate) => InternalGraphAlgorithms<G>;
|
|
3862
3885
|
}>;
|
|
@@ -4017,14 +4040,13 @@ type AdapterStoreTransactions<G extends GraphDef, TNativeTransaction> = Readonly
|
|
|
4017
4040
|
withRecordedTransaction: <T>(externalTransaction: TNativeTransaction, fn: (tx: MeasurableAdapterTransactionContext<G, TNativeTransaction>) => Promise<T>) => Promise<TransactionOutcome<T>>;
|
|
4018
4041
|
}>;
|
|
4019
4042
|
type AdapterHistoryTransactionContext<G extends GraphDef, TNativeTransaction> = Omit<AdapterTransactionContext<G, TNativeTransaction>, "sql" | "sqlAvailability"> & Readonly<{
|
|
4020
|
-
sql?: never;
|
|
4021
4043
|
sqlAvailability: "history";
|
|
4022
4044
|
}>;
|
|
4023
4045
|
/**
|
|
4024
4046
|
* The {@link AdapterHistoryTransactionContext} handed to a `withRecordedTransaction`
|
|
4025
4047
|
* callback, extended with {@link ScopedMeasure}. Its `measure` scopes to a child
|
|
4026
4048
|
* {@link MeasurableAdapterHistoryTransactionContext} (so nested scopes keep the
|
|
4027
|
-
* history-safe
|
|
4049
|
+
* history-safe absent-`sql` / backend typing). Assignable to
|
|
4028
4050
|
* {@link MeasurableTransactionContext} (and hence to {@link TransactionContext}),
|
|
4029
4051
|
* so a projector helper typed against either still accepts it.
|
|
4030
4052
|
*/
|
|
@@ -4373,7 +4395,7 @@ declare class StoreView<G extends GraphDef> extends CoordinatePinnedView<G> {
|
|
|
4373
4395
|
/**
|
|
4374
4396
|
* A narrow recorded-time read lens. It preserves the valid-time coordinate
|
|
4375
4397
|
* carried by the source view and adds a recorded/system-time pin. Collection
|
|
4376
|
-
* reads
|
|
4398
|
+
* reads expose point reconstruction and bounded scans; broad collection
|
|
4377
4399
|
* predicates, endpoint reads, search, and further coordinate changes are absent
|
|
4378
4400
|
* from the typed surface and refused by the runtime proxies for JS callers.
|
|
4379
4401
|
*/
|
|
@@ -4382,10 +4404,10 @@ declare class RecordedStoreView<G extends GraphDef> extends CoordinatePinnedView
|
|
|
4382
4404
|
constructor(store: Store<G>, coordinate: ReadCoordinate);
|
|
4383
4405
|
/** The recorded/system-time timestamp this view reconstructs. */
|
|
4384
4406
|
get asOfRecorded(): string;
|
|
4385
|
-
/** Recorded-time node
|
|
4407
|
+
/** Recorded-time node reconstructing-read collections. */
|
|
4386
4408
|
get nodes(): RecordedStoreViewNodeCollections<G>;
|
|
4387
|
-
/** Recorded-time edge
|
|
4409
|
+
/** Recorded-time edge reconstructing-read collections. */
|
|
4388
4410
|
get edges(): RecordedStoreViewEdgeCollections<G>;
|
|
4389
4411
|
}
|
|
4390
4412
|
|
|
4391
|
-
export { ExecutableAggregateQuery as $, type AliasMap as A, type BaseStoreOptions as B, type ConstraintNames as C, type DegreeOptions as D, type EdgeAliasMap as E, type DynamicNodeType as F, type DynamicSelectableEdge as G, type HistoryStoreOptions as H, type DynamicSelectableNode as I, type Edge as J, type EdgeAccessor as K, type LiveStoreOptions as L, type EdgeBatchReads as M, type EdgeCollection as N, type EdgeFindByEndpointsOptions as O, type EdgeGetOrCreateByEndpointsOptions as P, type QueryCoordinateState as Q, type RecordedReadStoreOptions as R, type StoreOptions as S, TraversalBuilder as T, type UnboundLiveStoreOptions as U, type EdgeGetOrCreateByEndpointsResult as V, type EdgeIntrospection as W, type EdgeTemporalReads as X, type EdgeWrites as Y, type EmptyAliasMap as Z, type EmptyEdgeAliasMap as _, type Store as a, type
|
|
4413
|
+
export { ExecutableAggregateQuery as $, type AliasMap as A, type BaseStoreOptions as B, type ConstraintNames as C, type DegreeOptions as D, type EdgeAliasMap as E, type DynamicNodeType as F, type DynamicSelectableEdge as G, type HistoryStoreOptions as H, type DynamicSelectableNode as I, type Edge as J, type EdgeAccessor as K, type LiveStoreOptions as L, type EdgeBatchReads as M, type EdgeCollection as N, type EdgeFindByEndpointsOptions as O, type EdgeGetOrCreateByEndpointsOptions as P, type QueryCoordinateState as Q, type RecordedReadStoreOptions as R, type StoreOptions as S, TraversalBuilder as T, type UnboundLiveStoreOptions as U, type EdgeGetOrCreateByEndpointsResult as V, type EdgeIntrospection as W, type EdgeTemporalReads as X, type EdgeWrites as Y, type EmptyAliasMap as Z, type EmptyEdgeAliasMap as _, type Store as a, type RecordedStoreViewNodeCollection as a$, ExecutableQuery as a0, type FieldAccessor as a1, type FulltextSearchHit as a2, type FulltextSearchOptions as a3, type GetOrCreateAction as a4, type GraphAlgorithms as a5, type GraphEdgeCollections as a6, type GraphNodeCollections as a7, type HistoryStoreBackend as a8, type HookContext as a9, type NodeRef as aA, type NodeTemporalReads as aB, type NodeWrites as aC, type OntologyIntrospection as aD, type OperationHookContext as aE, type PageRankOptions as aF, type PageRankScore as aG, type PaginateOptions as aH, type PaginatedResult as aI, type PathNode as aJ, type PersonalizedPageRankOptions as aK, type PersonalizedPageRankSeed as aL, type Predicate as aM, PreparedQuery as aN, type PropsAccessor as aO, type QueryHookContext as aP, type QueryOptions as aQ, type ReachableNode as aR, type ReachableOptions as aS, type RebuildFulltextOptions as aT, type RebuildFulltextResult as aU, type ReclaimedVectorFieldEntry as aV, type RecordedScanOptions as aW, type RecordedScanPage as aX, RecordedStoreView as aY, type RecordedStoreViewEdgeCollection as aZ, type RecordedStoreViewEdgeCollections as a_, type HybridFulltextOptions as aa, type HybridSearchHit as ab, type HybridSearchOptions as ac, type HybridVectorOptions as ad, type IfExistsMode as ae, type InitialQueryBuilder as af, type KindIntrospection as ag, type LabelPropagationMembership as ah, type LabelPropagationOptions as ai, type MaterializeRemovalsEntry as aj, type MaterializeRemovalsOptions as ak, type MaterializeRemovalsResult as al, type MeasurableAdapterHistoryTransactionContext as am, type MeasurableAdapterTransactionContext as an, type MeasurableTransactionContext as ao, type NeighborsOptions as ap, type NoRecordedCoordinate as aq, type Node as ar, type NodeAccessor as as, type NodeAlias as at, type NodeBulkFindByIndexOptions as au, type NodeCollection as av, type NodeCurrentReads as aw, type NodeGetOrCreateByConstraintOptions as ax, type NodeGetOrCreateByConstraintResult as ay, type NodeIdentifier as az, type HistoryStore as b, createQueryBuilder as b$, type RecordedStoreViewNodeCollections as b0, type RecursiveTraversalOptions as b1, type ReembedFunction as b2, type ReembedVectorFieldOptions as b3, type ReembedVectorFieldResult as b4, type SchemaIntrospection as b5, type ScopedMeasure as b6, type SearchScopeOptions as b7, type SelectContext as b8, type SelectableEdge as b9, type StreamOptions as bA, type SubgraphEdgeResult as bB, type SubgraphNodeResult as bC, type SubgraphOptions as bD, type SubgraphResult as bE, type SubsetEdge as bF, type SubsetNode as bG, type TemporalAlgorithmOptions as bH, type TransactionContext as bI, type TransactionOutcome as bJ, type TransactionReceipt as bK, type TraversalDirection as bL, type TypedEdgeCollection as bM, type TypedRecordedStoreViewEdgeCollection as bN, type TypedStoreViewEdgeCollection as bO, UnionableQuery as bP, type UniqueIntrospection as bQ, type UpdateEdgeInput as bR, type UpdateNodeInput as bS, type VectorSearchHit as bT, type VectorSearchOptions as bU, type WeaklyConnectedComponentMembership as bV, type WeaklyConnectedComponentsOptions as bW, type WeightedShortestPathOptions as bX, type WeightedShortestPathResult as bY, createAdapterStore as bZ, createAdapterStoreWithSchema as b_, type SelectableNode as ba, type ShortestPathOptions as bb, type ShortestPathResult as bc, type SqlAvailability as bd, type StoreHooks as be, type StoreProjection as bf, type StoreRef as bg, StoreSearch as bh, StoreView as bi, type StoreViewCanReachOptions as bj, type StoreViewCoordinate as bk, type StoreViewDegreeOptions as bl, type StoreViewEdgeCollection as bm, type StoreViewEdgeCollections as bn, type StoreViewGraphAlgorithms as bo, type StoreViewLabelPropagationOptions as bp, type StoreViewNeighborsOptions as bq, type StoreViewNodeCollection as br, type StoreViewNodeCollections as bs, type StoreViewPageRankOptions as bt, type StoreViewPersonalizedPageRankOptions as bu, type StoreViewReachableOptions as bv, type StoreViewShortestPathOptions as bw, type StoreViewSubgraphOptions as bx, type StoreViewWeaklyConnectedComponentsOptions as by, type StoreViewWeightedShortestPathOptions as bz, type RecordedReadStore as c, createStore as c0, createStoreWithSchema as c1, createVerifiedAdapterStore as c2, createVerifiedStore as c3, defineSubgraphProject as c4, exists as c5, fieldRef as c6, inSubquery as c7, isParameterRef as c8, notExists as c9, notInSubquery as ca, param as cb, type RecursiveAliasMap as d, QueryBuilder as e, type EmptyRecursiveAliasMap as f, type AdapterHistoryStore as g, type AdapterHistoryTransactionContext as h, type AdapterRecordedReadStore as i, type AdapterStore as j, type AdapterTransactionContext as k, type AggregateResult as l, type AlgorithmCyclePolicy as m, type AnyEdge as n, type AnyNode as o, type BaseTraversalOptions as p, type BatchResults as q, type BatchableQuery as r, type CreateEdgeInput as s, type CreateNodeInput as t, type DynamicEdgeAccessor as u, type DynamicEdgeCollection as v, type DynamicEdgeType as w, type DynamicFieldBuilder as x, type DynamicNodeAccessor as y, type DynamicNodeCollection as z };
|
|
@@ -1819,17 +1819,39 @@ type StoreViewNodeCollections<G extends GraphDef> = {
|
|
|
1819
1819
|
type StoreViewEdgeCollections<G extends GraphDef> = {
|
|
1820
1820
|
[K in keyof G["edges"] & string]-?: TypedStoreViewEdgeCollection<G["edges"][K]>;
|
|
1821
1821
|
};
|
|
1822
|
-
/**
|
|
1823
|
-
type
|
|
1824
|
-
/**
|
|
1825
|
-
|
|
1822
|
+
/** Options for one bounded, forward-only recorded-time collection scan. */
|
|
1823
|
+
type RecordedScanOptions = Readonly<{
|
|
1824
|
+
/** Maximum entities to return. Defaults to 1,000 and cannot exceed 1,000. */
|
|
1825
|
+
limit?: number;
|
|
1826
|
+
/** Opaque cursor returned by the preceding page. */
|
|
1827
|
+
after?: string;
|
|
1828
|
+
}>;
|
|
1829
|
+
/** One page from a deterministic recorded-time collection scan. */
|
|
1830
|
+
type RecordedScanPage<T> = Readonly<{
|
|
1831
|
+
/** Entities ordered by canonical id ascending. */
|
|
1832
|
+
data: readonly T[];
|
|
1833
|
+
/** Cursor for the next page, or `undefined` when the scan is complete. */
|
|
1834
|
+
nextCursor: string | undefined;
|
|
1835
|
+
/** Whether another page exists after this one. */
|
|
1836
|
+
hasNextPage: boolean;
|
|
1837
|
+
}>;
|
|
1838
|
+
/** Recorded-time reconstructing reads for one node kind. */
|
|
1839
|
+
type RecordedStoreViewNodeCollection<N extends NodeType> = Pick<StoreViewNodeCollection<N>, (typeof RECORDED_POINT_READ_NAMES)[number]> & Readonly<{
|
|
1840
|
+
/** Scan one bounded page at the view's pinned coordinate. */
|
|
1841
|
+
scan: (options?: RecordedScanOptions) => Promise<RecordedScanPage<Node<N>>>;
|
|
1842
|
+
}>;
|
|
1843
|
+
/** Recorded-time reconstructing reads for one edge kind. */
|
|
1844
|
+
type RecordedStoreViewEdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To extends NodeType = NodeType> = Pick<StoreViewEdgeCollection<E, From, To>, (typeof RECORDED_POINT_READ_NAMES)[number]> & Readonly<{
|
|
1845
|
+
/** Scan one bounded page at the view's pinned coordinate. */
|
|
1846
|
+
scan: (options?: RecordedScanOptions) => Promise<RecordedScanPage<Edge<E, From, To>>>;
|
|
1847
|
+
}>;
|
|
1826
1848
|
/** Recorded-time edge collection derived from an `EdgeRegistration`. */
|
|
1827
1849
|
type TypedRecordedStoreViewEdgeCollection<R extends EdgeRegistration> = RecordedStoreViewEdgeCollection<R["type"], EdgeFromTypes<R> extends NodeType ? EdgeFromTypes<R> : NodeType, EdgeToTypes<R> extends NodeType ? EdgeToTypes<R> : NodeType>;
|
|
1828
|
-
/** Mapped type of all recorded-time node
|
|
1850
|
+
/** Mapped type of all recorded-time node reconstructing-read collections. */
|
|
1829
1851
|
type RecordedStoreViewNodeCollections<G extends GraphDef> = {
|
|
1830
1852
|
[K in keyof G["nodes"] & string]-?: RecordedStoreViewNodeCollection<G["nodes"][K]["type"]>;
|
|
1831
1853
|
};
|
|
1832
|
-
/** Mapped type of all recorded-time edge
|
|
1854
|
+
/** Mapped type of all recorded-time edge reconstructing-read collections. */
|
|
1833
1855
|
type RecordedStoreViewEdgeCollections<G extends GraphDef> = {
|
|
1834
1856
|
[K in keyof G["edges"] & string]-?: TypedRecordedStoreViewEdgeCollection<G["edges"][K]>;
|
|
1835
1857
|
};
|
|
@@ -1837,9 +1859,10 @@ type RecordedStoreViewEdgeCollections<G extends GraphDef> = {
|
|
|
1837
1859
|
* Whether — and why — `tx.sql` can be used on a transaction context. A single
|
|
1838
1860
|
* required discriminant covering exactly the four states raw-SQL access can be
|
|
1839
1861
|
* in, so an adapter caller branches on capability instead of truthiness-testing
|
|
1840
|
-
* `tx.sql`.
|
|
1841
|
-
*
|
|
1842
|
-
*
|
|
1862
|
+
* `tx.sql`. The non-available variants omit `sql` entirely, so even reading the
|
|
1863
|
+
* handle requires first narrowing `sqlAvailability` to `"available"`. The
|
|
1864
|
+
* runtime object keeps a fail-loud getter under history / revision tracking for
|
|
1865
|
+
* JavaScript and type-suppressed callers. See
|
|
1843
1866
|
* {@link AdapterTransactionContext} for the per-value semantics.
|
|
1844
1867
|
*/
|
|
1845
1868
|
type SqlAvailability = "available" | "history" | "revisionTracking" | "unavailable";
|
|
@@ -1847,10 +1870,8 @@ type AdapterTransactionSqlAccess<TNativeTransaction> = Readonly<{
|
|
|
1847
1870
|
sql: TNativeTransaction;
|
|
1848
1871
|
sqlAvailability: "available";
|
|
1849
1872
|
}> | Readonly<{
|
|
1850
|
-
sql?: never;
|
|
1851
1873
|
sqlAvailability: "history" | "revisionTracking";
|
|
1852
1874
|
}> | Readonly<{
|
|
1853
|
-
sql?: undefined;
|
|
1854
1875
|
sqlAvailability: "unavailable";
|
|
1855
1876
|
}>;
|
|
1856
1877
|
declare const TRANSACTION_RUNTIME: unique symbol;
|
|
@@ -3855,8 +3876,10 @@ type StoreRuntime<G extends GraphDef> = Readonly<{
|
|
|
3855
3876
|
sealedQuery: (coordinate: ReadCoordinate) => InitialQueryBuilder<G, "sealed">;
|
|
3856
3877
|
recordedNodeGetById: <N extends NodeType>(kind: string, id: NodeId<N>, coordinate: ReadCoordinate) => Promise<Node<N> | undefined>;
|
|
3857
3878
|
recordedNodeGetByIds: <N extends NodeType>(kind: string, ids: readonly NodeId<N>[], coordinate: ReadCoordinate) => Promise<readonly (Node<N> | undefined)[]>;
|
|
3879
|
+
recordedNodeScan: <N extends NodeType>(kind: string, coordinate: ReadCoordinate, options?: RecordedScanOptions) => Promise<RecordedScanPage<Node<N>>>;
|
|
3858
3880
|
recordedEdgeGetById: <E extends AnyEdgeType>(kind: string, id: EdgeId<E>, coordinate: ReadCoordinate) => Promise<Edge<E> | undefined>;
|
|
3859
3881
|
recordedEdgeGetByIds: <E extends AnyEdgeType>(kind: string, ids: readonly EdgeId<E>[], coordinate: ReadCoordinate) => Promise<readonly (Edge<E> | undefined)[]>;
|
|
3882
|
+
recordedEdgeScan: <E extends AnyEdgeType>(kind: string, coordinate: ReadCoordinate, options?: RecordedScanOptions) => Promise<RecordedScanPage<Edge<E>>>;
|
|
3860
3883
|
subgraphAtCoordinate: <const EK extends EdgeKinds<G>, const NK extends NodeKinds<G> = NodeKinds<G>, const P extends SubgraphProject<G, NK, EK> | undefined = undefined>(rootId: NodeId<AllNodeTypes<G>>, options: InternalSubgraphOptions<G, EK, NK, P>) => Promise<SubgraphResult<G, NK, EK, P>>;
|
|
3861
3884
|
algorithmsAtCoordinate: (coordinate: ReadCoordinate) => InternalGraphAlgorithms<G>;
|
|
3862
3885
|
}>;
|
|
@@ -4017,14 +4040,13 @@ type AdapterStoreTransactions<G extends GraphDef, TNativeTransaction> = Readonly
|
|
|
4017
4040
|
withRecordedTransaction: <T>(externalTransaction: TNativeTransaction, fn: (tx: MeasurableAdapterTransactionContext<G, TNativeTransaction>) => Promise<T>) => Promise<TransactionOutcome<T>>;
|
|
4018
4041
|
}>;
|
|
4019
4042
|
type AdapterHistoryTransactionContext<G extends GraphDef, TNativeTransaction> = Omit<AdapterTransactionContext<G, TNativeTransaction>, "sql" | "sqlAvailability"> & Readonly<{
|
|
4020
|
-
sql?: never;
|
|
4021
4043
|
sqlAvailability: "history";
|
|
4022
4044
|
}>;
|
|
4023
4045
|
/**
|
|
4024
4046
|
* The {@link AdapterHistoryTransactionContext} handed to a `withRecordedTransaction`
|
|
4025
4047
|
* callback, extended with {@link ScopedMeasure}. Its `measure` scopes to a child
|
|
4026
4048
|
* {@link MeasurableAdapterHistoryTransactionContext} (so nested scopes keep the
|
|
4027
|
-
* history-safe
|
|
4049
|
+
* history-safe absent-`sql` / backend typing). Assignable to
|
|
4028
4050
|
* {@link MeasurableTransactionContext} (and hence to {@link TransactionContext}),
|
|
4029
4051
|
* so a projector helper typed against either still accepts it.
|
|
4030
4052
|
*/
|
|
@@ -4373,7 +4395,7 @@ declare class StoreView<G extends GraphDef> extends CoordinatePinnedView<G> {
|
|
|
4373
4395
|
/**
|
|
4374
4396
|
* A narrow recorded-time read lens. It preserves the valid-time coordinate
|
|
4375
4397
|
* carried by the source view and adds a recorded/system-time pin. Collection
|
|
4376
|
-
* reads
|
|
4398
|
+
* reads expose point reconstruction and bounded scans; broad collection
|
|
4377
4399
|
* predicates, endpoint reads, search, and further coordinate changes are absent
|
|
4378
4400
|
* from the typed surface and refused by the runtime proxies for JS callers.
|
|
4379
4401
|
*/
|
|
@@ -4382,10 +4404,10 @@ declare class RecordedStoreView<G extends GraphDef> extends CoordinatePinnedView
|
|
|
4382
4404
|
constructor(store: Store<G>, coordinate: ReadCoordinate);
|
|
4383
4405
|
/** The recorded/system-time timestamp this view reconstructs. */
|
|
4384
4406
|
get asOfRecorded(): string;
|
|
4385
|
-
/** Recorded-time node
|
|
4407
|
+
/** Recorded-time node reconstructing-read collections. */
|
|
4386
4408
|
get nodes(): RecordedStoreViewNodeCollections<G>;
|
|
4387
|
-
/** Recorded-time edge
|
|
4409
|
+
/** Recorded-time edge reconstructing-read collections. */
|
|
4388
4410
|
get edges(): RecordedStoreViewEdgeCollections<G>;
|
|
4389
4411
|
}
|
|
4390
4412
|
|
|
4391
|
-
export { ExecutableAggregateQuery as $, type AliasMap as A, type BaseStoreOptions as B, type ConstraintNames as C, type DegreeOptions as D, type EdgeAliasMap as E, type DynamicNodeType as F, type DynamicSelectableEdge as G, type HistoryStoreOptions as H, type DynamicSelectableNode as I, type Edge as J, type EdgeAccessor as K, type LiveStoreOptions as L, type EdgeBatchReads as M, type EdgeCollection as N, type EdgeFindByEndpointsOptions as O, type EdgeGetOrCreateByEndpointsOptions as P, type QueryCoordinateState as Q, type RecordedReadStoreOptions as R, type StoreOptions as S, TraversalBuilder as T, type UnboundLiveStoreOptions as U, type EdgeGetOrCreateByEndpointsResult as V, type EdgeIntrospection as W, type EdgeTemporalReads as X, type EdgeWrites as Y, type EmptyAliasMap as Z, type EmptyEdgeAliasMap as _, type Store as a, type
|
|
4413
|
+
export { ExecutableAggregateQuery as $, type AliasMap as A, type BaseStoreOptions as B, type ConstraintNames as C, type DegreeOptions as D, type EdgeAliasMap as E, type DynamicNodeType as F, type DynamicSelectableEdge as G, type HistoryStoreOptions as H, type DynamicSelectableNode as I, type Edge as J, type EdgeAccessor as K, type LiveStoreOptions as L, type EdgeBatchReads as M, type EdgeCollection as N, type EdgeFindByEndpointsOptions as O, type EdgeGetOrCreateByEndpointsOptions as P, type QueryCoordinateState as Q, type RecordedReadStoreOptions as R, type StoreOptions as S, TraversalBuilder as T, type UnboundLiveStoreOptions as U, type EdgeGetOrCreateByEndpointsResult as V, type EdgeIntrospection as W, type EdgeTemporalReads as X, type EdgeWrites as Y, type EmptyAliasMap as Z, type EmptyEdgeAliasMap as _, type Store as a, type RecordedStoreViewNodeCollection as a$, ExecutableQuery as a0, type FieldAccessor as a1, type FulltextSearchHit as a2, type FulltextSearchOptions as a3, type GetOrCreateAction as a4, type GraphAlgorithms as a5, type GraphEdgeCollections as a6, type GraphNodeCollections as a7, type HistoryStoreBackend as a8, type HookContext as a9, type NodeRef as aA, type NodeTemporalReads as aB, type NodeWrites as aC, type OntologyIntrospection as aD, type OperationHookContext as aE, type PageRankOptions as aF, type PageRankScore as aG, type PaginateOptions as aH, type PaginatedResult as aI, type PathNode as aJ, type PersonalizedPageRankOptions as aK, type PersonalizedPageRankSeed as aL, type Predicate as aM, PreparedQuery as aN, type PropsAccessor as aO, type QueryHookContext as aP, type QueryOptions as aQ, type ReachableNode as aR, type ReachableOptions as aS, type RebuildFulltextOptions as aT, type RebuildFulltextResult as aU, type ReclaimedVectorFieldEntry as aV, type RecordedScanOptions as aW, type RecordedScanPage as aX, RecordedStoreView as aY, type RecordedStoreViewEdgeCollection as aZ, type RecordedStoreViewEdgeCollections as a_, type HybridFulltextOptions as aa, type HybridSearchHit as ab, type HybridSearchOptions as ac, type HybridVectorOptions as ad, type IfExistsMode as ae, type InitialQueryBuilder as af, type KindIntrospection as ag, type LabelPropagationMembership as ah, type LabelPropagationOptions as ai, type MaterializeRemovalsEntry as aj, type MaterializeRemovalsOptions as ak, type MaterializeRemovalsResult as al, type MeasurableAdapterHistoryTransactionContext as am, type MeasurableAdapterTransactionContext as an, type MeasurableTransactionContext as ao, type NeighborsOptions as ap, type NoRecordedCoordinate as aq, type Node as ar, type NodeAccessor as as, type NodeAlias as at, type NodeBulkFindByIndexOptions as au, type NodeCollection as av, type NodeCurrentReads as aw, type NodeGetOrCreateByConstraintOptions as ax, type NodeGetOrCreateByConstraintResult as ay, type NodeIdentifier as az, type HistoryStore as b, createQueryBuilder as b$, type RecordedStoreViewNodeCollections as b0, type RecursiveTraversalOptions as b1, type ReembedFunction as b2, type ReembedVectorFieldOptions as b3, type ReembedVectorFieldResult as b4, type SchemaIntrospection as b5, type ScopedMeasure as b6, type SearchScopeOptions as b7, type SelectContext as b8, type SelectableEdge as b9, type StreamOptions as bA, type SubgraphEdgeResult as bB, type SubgraphNodeResult as bC, type SubgraphOptions as bD, type SubgraphResult as bE, type SubsetEdge as bF, type SubsetNode as bG, type TemporalAlgorithmOptions as bH, type TransactionContext as bI, type TransactionOutcome as bJ, type TransactionReceipt as bK, type TraversalDirection as bL, type TypedEdgeCollection as bM, type TypedRecordedStoreViewEdgeCollection as bN, type TypedStoreViewEdgeCollection as bO, UnionableQuery as bP, type UniqueIntrospection as bQ, type UpdateEdgeInput as bR, type UpdateNodeInput as bS, type VectorSearchHit as bT, type VectorSearchOptions as bU, type WeaklyConnectedComponentMembership as bV, type WeaklyConnectedComponentsOptions as bW, type WeightedShortestPathOptions as bX, type WeightedShortestPathResult as bY, createAdapterStore as bZ, createAdapterStoreWithSchema as b_, type SelectableNode as ba, type ShortestPathOptions as bb, type ShortestPathResult as bc, type SqlAvailability as bd, type StoreHooks as be, type StoreProjection as bf, type StoreRef as bg, StoreSearch as bh, StoreView as bi, type StoreViewCanReachOptions as bj, type StoreViewCoordinate as bk, type StoreViewDegreeOptions as bl, type StoreViewEdgeCollection as bm, type StoreViewEdgeCollections as bn, type StoreViewGraphAlgorithms as bo, type StoreViewLabelPropagationOptions as bp, type StoreViewNeighborsOptions as bq, type StoreViewNodeCollection as br, type StoreViewNodeCollections as bs, type StoreViewPageRankOptions as bt, type StoreViewPersonalizedPageRankOptions as bu, type StoreViewReachableOptions as bv, type StoreViewShortestPathOptions as bw, type StoreViewSubgraphOptions as bx, type StoreViewWeaklyConnectedComponentsOptions as by, type StoreViewWeightedShortestPathOptions as bz, type RecordedReadStore as c, createStore as c0, createStoreWithSchema as c1, createVerifiedAdapterStore as c2, createVerifiedStore as c3, defineSubgraphProject as c4, exists as c5, fieldRef as c6, inSubquery as c7, isParameterRef as c8, notExists as c9, notInSubquery as ca, param as cb, type RecursiveAliasMap as d, QueryBuilder as e, type EmptyRecursiveAliasMap as f, type AdapterHistoryStore as g, type AdapterHistoryTransactionContext as h, type AdapterRecordedReadStore as i, type AdapterStore as j, type AdapterTransactionContext as k, type AggregateResult as l, type AlgorithmCyclePolicy as m, type AnyEdge as n, type AnyNode as o, type BaseTraversalOptions as p, type BatchResults as q, type BatchableQuery as r, type CreateEdgeInput as s, type CreateNodeInput as t, type DynamicEdgeAccessor as u, type DynamicEdgeCollection as v, type DynamicEdgeType as w, type DynamicFieldBuilder as x, type DynamicNodeAccessor as y, type DynamicNodeCollection as z };
|