@nicia-ai/typegraph 0.42.1 → 0.43.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/pglite-store.cjs +4 -4
- 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 +3 -3
- package/dist/backend/sqlite/local-store.cjs +4 -4
- 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 +3 -3
- package/dist/{chunk-5P6IPIT6.cjs → chunk-64LERBFM.cjs} +17 -17
- package/dist/{chunk-5P6IPIT6.cjs.map → chunk-64LERBFM.cjs.map} +1 -1
- package/dist/{chunk-K2HHCWZO.cjs → chunk-BLBG2VZ5.cjs} +51 -51
- package/dist/{chunk-K2HHCWZO.cjs.map → chunk-BLBG2VZ5.cjs.map} +1 -1
- package/dist/{chunk-EVFL2ZY5.js → chunk-CTWZPYJW.js} +2 -2
- package/dist/chunk-CTWZPYJW.js.map +1 -0
- package/dist/{chunk-DP7KC6CL.js → chunk-JNXZQBN3.js} +72 -25
- package/dist/chunk-JNXZQBN3.js.map +1 -0
- package/dist/{chunk-2SO5I5AI.cjs → chunk-KDRF3NR2.cjs} +2 -2
- package/dist/chunk-KDRF3NR2.cjs.map +1 -0
- package/dist/{chunk-WYQILW5V.js → chunk-L2BYRYHC.js} +4 -4
- package/dist/{chunk-WYQILW5V.js.map → chunk-L2BYRYHC.js.map} +1 -1
- package/dist/{chunk-6NB73BXV.js → chunk-L5AUCL5P.js} +3 -3
- package/dist/{chunk-6NB73BXV.js.map → chunk-L5AUCL5P.js.map} +1 -1
- package/dist/{chunk-277UZV7X.cjs → chunk-NDQLPKBX.cjs} +315 -268
- package/dist/chunk-NDQLPKBX.cjs.map +1 -0
- package/dist/graph-merge/index.cjs +25 -25
- package/dist/graph-merge/index.d.cts +1 -1
- package/dist/graph-merge/index.d.ts +1 -1
- package/dist/graph-merge/index.js +4 -4
- package/dist/index.cjs +49 -49
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/interchange/index.cjs +22 -22
- package/dist/interchange/index.d.cts +1 -1
- package/dist/interchange/index.d.ts +1 -1
- package/dist/interchange/index.js +3 -3
- package/dist/profiler/index.d.cts +1 -1
- package/dist/profiler/index.d.ts +1 -1
- package/dist/provenance/index.cjs +10 -10
- package/dist/provenance/index.d.cts +1 -1
- package/dist/provenance/index.d.ts +1 -1
- package/dist/provenance/index.js +1 -1
- package/dist/{store-view-CNcOG8bQ.d.cts → store-view-D1F6KqsE.d.cts} +18 -1
- package/dist/{store-view-6C2vTWqf.d.ts → store-view-DdwBNjZQ.d.ts} +18 -1
- package/package.json +1 -1
- package/dist/chunk-277UZV7X.cjs.map +0 -1
- package/dist/chunk-2SO5I5AI.cjs.map +0 -1
- package/dist/chunk-DP7KC6CL.js.map +0 -1
- package/dist/chunk-EVFL2ZY5.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
var
|
|
3
|
+
var chunk64LERBFM_cjs = require('../chunk-64LERBFM.cjs');
|
|
4
|
+
require('../chunk-BLBG2VZ5.cjs');
|
|
5
|
+
var chunkKDRF3NR2_cjs = require('../chunk-KDRF3NR2.cjs');
|
|
6
6
|
require('../chunk-ZDH3DX3C.cjs');
|
|
7
7
|
require('../chunk-CVK4T34X.cjs');
|
|
8
8
|
require('../chunk-ECU53PMN.cjs');
|
|
@@ -178,7 +178,7 @@ async function consumeTrustedChunks(store, session, chunks) {
|
|
|
178
178
|
}
|
|
179
179
|
async function trustedImportGraphStream(store, chunks) {
|
|
180
180
|
rejectUnsupportedStoreFeatures(store);
|
|
181
|
-
const backend =
|
|
181
|
+
const backend = chunkKDRF3NR2_cjs.storeBackend(store);
|
|
182
182
|
const trustedImport = backend.trustedImport;
|
|
183
183
|
if (trustedImport === void 0) {
|
|
184
184
|
throw new chunkKTBTSHU6_cjs.TrustedImportError(
|
|
@@ -203,75 +203,75 @@ function trustedImportGraph(store, data) {
|
|
|
203
203
|
|
|
204
204
|
Object.defineProperty(exports, "ConflictStrategySchema", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunk64LERBFM_cjs.ConflictStrategySchema; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "ExportOptionsSchema", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunk64LERBFM_cjs.ExportOptionsSchema; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "ExportStreamOptionsSchema", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunk64LERBFM_cjs.ExportStreamOptionsSchema; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "FORMAT_VERSION", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunk64LERBFM_cjs.FORMAT_VERSION; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "GraphDataHeaderSchema", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunk64LERBFM_cjs.GraphDataHeaderSchema; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "GraphDataSchema", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunk64LERBFM_cjs.GraphDataSchema; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "GraphDataSourceSchema", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunk64LERBFM_cjs.GraphDataSourceSchema; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "GraphInterchangeChunkSchema", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunk64LERBFM_cjs.GraphInterchangeChunkSchema; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "ImportErrorSchema", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunk64LERBFM_cjs.ImportErrorSchema; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "ImportOptionsSchema", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunk64LERBFM_cjs.ImportOptionsSchema; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "ImportResultSchema", {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunk64LERBFM_cjs.ImportResultSchema; }
|
|
247
247
|
});
|
|
248
248
|
Object.defineProperty(exports, "InterchangeEdgeSchema", {
|
|
249
249
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunk64LERBFM_cjs.InterchangeEdgeSchema; }
|
|
251
251
|
});
|
|
252
252
|
Object.defineProperty(exports, "InterchangeNodeSchema", {
|
|
253
253
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunk64LERBFM_cjs.InterchangeNodeSchema; }
|
|
255
255
|
});
|
|
256
256
|
Object.defineProperty(exports, "UnknownPropertyStrategySchema", {
|
|
257
257
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunk64LERBFM_cjs.UnknownPropertyStrategySchema; }
|
|
259
259
|
});
|
|
260
260
|
Object.defineProperty(exports, "exportGraph", {
|
|
261
261
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunk64LERBFM_cjs.exportGraph; }
|
|
263
263
|
});
|
|
264
264
|
Object.defineProperty(exports, "exportGraphStream", {
|
|
265
265
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunk64LERBFM_cjs.exportGraphStream; }
|
|
267
267
|
});
|
|
268
268
|
Object.defineProperty(exports, "importGraph", {
|
|
269
269
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunk64LERBFM_cjs.importGraph; }
|
|
271
271
|
});
|
|
272
272
|
Object.defineProperty(exports, "importGraphStream", {
|
|
273
273
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunk64LERBFM_cjs.importGraphStream; }
|
|
275
275
|
});
|
|
276
276
|
exports.trustedImportGraph = trustedImportGraph;
|
|
277
277
|
exports.trustedImportGraphStream = trustedImportGraphStream;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { G as GraphDef } from '../define-graph-Byslw2OO.cjs';
|
|
3
|
-
import { a as Store } from '../store-view-
|
|
3
|
+
import { a as Store } from '../store-view-D1F6KqsE.cjs';
|
|
4
4
|
import '../types-Dh-EgT-w.cjs';
|
|
5
5
|
import '../temporal-CMpigMCW.cjs';
|
|
6
6
|
import '../manager-U9_zopqr.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { G as GraphDef } from '../define-graph-DBFnc7u_.js';
|
|
3
|
-
import { a as Store } from '../store-view-
|
|
3
|
+
import { a as Store } from '../store-view-DdwBNjZQ.js';
|
|
4
4
|
import '../types-Dh-EgT-w.js';
|
|
5
5
|
import '../temporal-BtrTYTiB.js';
|
|
6
6
|
import '../manager-Dl0-er1G.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
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-L2BYRYHC.js';
|
|
2
|
+
import '../chunk-L5AUCL5P.js';
|
|
3
|
+
import { storeBackend } from '../chunk-CTWZPYJW.js';
|
|
4
4
|
import '../chunk-35S6P5ZU.js';
|
|
5
5
|
import '../chunk-CDYRPI5U.js';
|
|
6
6
|
import '../chunk-UZLEQFTV.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { G as GraphDef } from '../define-graph-Byslw2OO.cjs';
|
|
2
2
|
import { Q as QueryAst } from '../types-Dh-EgT-w.cjs';
|
|
3
|
-
import { a as Store } from '../store-view-
|
|
3
|
+
import { a as Store } from '../store-view-D1F6KqsE.cjs';
|
|
4
4
|
import { P as ProfilerOptions, a as ProfileReport } from '../types-G4sVM-76.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-G4sVM-76.cjs';
|
|
6
6
|
import 'zod';
|
package/dist/profiler/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { G as GraphDef } from '../define-graph-DBFnc7u_.js';
|
|
2
2
|
import { Q as QueryAst } from '../types-Dh-EgT-w.js';
|
|
3
|
-
import { a as Store } from '../store-view-
|
|
3
|
+
import { a as Store } from '../store-view-DdwBNjZQ.js';
|
|
4
4
|
import { P as ProfilerOptions, a as ProfileReport } from '../types-D2rU5Taq.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-D2rU5Taq.js';
|
|
6
6
|
import 'zod';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKDRF3NR2_cjs = require('../chunk-KDRF3NR2.cjs');
|
|
4
4
|
require('../chunk-ZDH3DX3C.cjs');
|
|
5
5
|
require('../chunk-CVK4T34X.cjs');
|
|
6
6
|
var chunkECU53PMN_cjs = require('../chunk-ECU53PMN.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 chunkKDRF3NR2_cjs.applyNodeSoftDelete(
|
|
456
|
+
chunkKDRF3NR2_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 chunkKDRF3NR2_cjs.applyNodeResurrect(
|
|
472
|
+
chunkKDRF3NR2_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 = chunkKDRF3NR2_cjs.transactionBackend(tx);
|
|
505
|
+
const lock = await chunkKDRF3NR2_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
|
+
chunkKDRF3NR2_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 = chunkKDRF3NR2_cjs.transactionBackend(tx);
|
|
568
|
+
await chunkKDRF3NR2_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-Byslw2OO.cjs';
|
|
2
|
-
import { b as HistoryStore } from '../store-view-
|
|
2
|
+
import { b as HistoryStore } from '../store-view-D1F6KqsE.cjs';
|
|
3
3
|
import '../types-Dh-EgT-w.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../temporal-CMpigMCW.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { G as GraphDef } from '../define-graph-DBFnc7u_.js';
|
|
2
|
-
import { b as HistoryStore } from '../store-view-
|
|
2
|
+
import { b as HistoryStore } from '../store-view-DdwBNjZQ.js';
|
|
3
3
|
import '../types-Dh-EgT-w.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../temporal-BtrTYTiB.js';
|
package/dist/provenance/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { transactionBackend, lockRecordedGraphWrite, transactionNodeOperationHookRunner, applyNodeSoftDelete, createNodeWriteContext, applyNodeResurrect } from '../chunk-
|
|
1
|
+
import { transactionBackend, lockRecordedGraphWrite, transactionNodeOperationHookRunner, applyNodeSoftDelete, createNodeWriteContext, applyNodeResurrect } from '../chunk-CTWZPYJW.js';
|
|
2
2
|
import '../chunk-35S6P5ZU.js';
|
|
3
3
|
import '../chunk-CDYRPI5U.js';
|
|
4
4
|
import { rowPropsToObject, isLiveNodeRow, isTombstonedNodeRow } from '../chunk-UZLEQFTV.js';
|
|
@@ -1264,6 +1264,16 @@ type EdgeGetOrCreateByEndpointsOptions<E extends AnyEdgeType> = Readonly<{
|
|
|
1264
1264
|
matchOn?: readonly (keyof z.input<E["schema"]>)[];
|
|
1265
1265
|
/** Existing record behavior. Default: "return" */
|
|
1266
1266
|
ifExists?: IfExistsMode;
|
|
1267
|
+
/**
|
|
1268
|
+
* Valid-time start for a newly created edge. Ignored when an edge is found,
|
|
1269
|
+
* updated, or resurrected.
|
|
1270
|
+
*/
|
|
1271
|
+
validFrom?: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* Valid-time end for a created, updated, or resurrected edge. Ignored when
|
|
1274
|
+
* the operation returns an existing edge without writing.
|
|
1275
|
+
*/
|
|
1276
|
+
validTo?: string;
|
|
1267
1277
|
}>;
|
|
1268
1278
|
/**
|
|
1269
1279
|
* A collection of nodes of a specific type.
|
|
@@ -1685,6 +1695,11 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
1685
1695
|
* property fields, only edges whose properties match on those fields are considered.
|
|
1686
1696
|
* Soft-deleted matches are resurrected when cardinality allows.
|
|
1687
1697
|
*
|
|
1698
|
+
* `validFrom` only applies on the create branch, defaulting to the
|
|
1699
|
+
* operation's creation timestamp when omitted. `validTo` applies on create,
|
|
1700
|
+
* update, and resurrection, but not when an existing edge is returned
|
|
1701
|
+
* without a write.
|
|
1702
|
+
*
|
|
1688
1703
|
* @param from - Source node
|
|
1689
1704
|
* @param to - Target node
|
|
1690
1705
|
* @param props - Full properties for create, or merge source for update
|
|
@@ -1701,7 +1716,9 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
1701
1716
|
from: NodeRef<From>;
|
|
1702
1717
|
to: NodeRef<To>;
|
|
1703
1718
|
props: z.input<E["schema"]>;
|
|
1704
|
-
|
|
1719
|
+
validFrom?: string;
|
|
1720
|
+
validTo?: string;
|
|
1721
|
+
}>[], options?: Pick<EdgeGetOrCreateByEndpointsOptions<E>, "matchOn" | "ifExists">) => Promise<EdgeGetOrCreateByEndpointsResult<E, From, To>[]>;
|
|
1705
1722
|
}>;
|
|
1706
1723
|
/**
|
|
1707
1724
|
* Extract uniqueness constraint names from a NodeRegistration.
|
|
@@ -1264,6 +1264,16 @@ type EdgeGetOrCreateByEndpointsOptions<E extends AnyEdgeType> = Readonly<{
|
|
|
1264
1264
|
matchOn?: readonly (keyof z.input<E["schema"]>)[];
|
|
1265
1265
|
/** Existing record behavior. Default: "return" */
|
|
1266
1266
|
ifExists?: IfExistsMode;
|
|
1267
|
+
/**
|
|
1268
|
+
* Valid-time start for a newly created edge. Ignored when an edge is found,
|
|
1269
|
+
* updated, or resurrected.
|
|
1270
|
+
*/
|
|
1271
|
+
validFrom?: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* Valid-time end for a created, updated, or resurrected edge. Ignored when
|
|
1274
|
+
* the operation returns an existing edge without writing.
|
|
1275
|
+
*/
|
|
1276
|
+
validTo?: string;
|
|
1267
1277
|
}>;
|
|
1268
1278
|
/**
|
|
1269
1279
|
* A collection of nodes of a specific type.
|
|
@@ -1685,6 +1695,11 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
1685
1695
|
* property fields, only edges whose properties match on those fields are considered.
|
|
1686
1696
|
* Soft-deleted matches are resurrected when cardinality allows.
|
|
1687
1697
|
*
|
|
1698
|
+
* `validFrom` only applies on the create branch, defaulting to the
|
|
1699
|
+
* operation's creation timestamp when omitted. `validTo` applies on create,
|
|
1700
|
+
* update, and resurrection, but not when an existing edge is returned
|
|
1701
|
+
* without a write.
|
|
1702
|
+
*
|
|
1688
1703
|
* @param from - Source node
|
|
1689
1704
|
* @param to - Target node
|
|
1690
1705
|
* @param props - Full properties for create, or merge source for update
|
|
@@ -1701,7 +1716,9 @@ type EdgeCollection<E extends AnyEdgeType, From extends NodeType = NodeType, To
|
|
|
1701
1716
|
from: NodeRef<From>;
|
|
1702
1717
|
to: NodeRef<To>;
|
|
1703
1718
|
props: z.input<E["schema"]>;
|
|
1704
|
-
|
|
1719
|
+
validFrom?: string;
|
|
1720
|
+
validTo?: string;
|
|
1721
|
+
}>[], options?: Pick<EdgeGetOrCreateByEndpointsOptions<E>, "matchOn" | "ifExists">) => Promise<EdgeGetOrCreateByEndpointsResult<E, From, To>[]>;
|
|
1705
1722
|
}>;
|
|
1706
1723
|
/**
|
|
1707
1724
|
* Extract uniqueness constraint names from a NodeRegistration.
|