@nicia-ai/typegraph 0.46.0 → 0.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/index.cjs +5 -5
- package/dist/backend/index.js +2 -2
- package/dist/backend/postgres/pglite-store.cjs +8 -8
- package/dist/backend/postgres/pglite-store.d.cts +2 -2
- package/dist/backend/postgres/pglite-store.d.ts +2 -2
- package/dist/backend/postgres/pglite-store.js +7 -7
- package/dist/backend/sqlite/local-store.cjs +8 -8
- package/dist/backend/sqlite/local-store.d.cts +2 -2
- package/dist/backend/sqlite/local-store.d.ts +2 -2
- package/dist/backend/sqlite/local-store.js +7 -7
- package/dist/{chunk-CNV4TXJG.js → chunk-2Z2Z3ZD6.js} +3 -3
- package/dist/{chunk-CNV4TXJG.js.map → chunk-2Z2Z3ZD6.js.map} +1 -1
- package/dist/{chunk-N3257XE6.cjs → chunk-65E3XWGF.cjs} +21 -21
- package/dist/{chunk-N3257XE6.cjs.map → chunk-65E3XWGF.cjs.map} +1 -1
- package/dist/{chunk-ONU3HIED.cjs → chunk-CMWHLBVN.cjs} +29 -29
- package/dist/{chunk-ONU3HIED.cjs.map → chunk-CMWHLBVN.cjs.map} +1 -1
- package/dist/{chunk-XNLIZYRZ.cjs → chunk-DTVWX77L.cjs} +56 -56
- package/dist/{chunk-XNLIZYRZ.cjs.map → chunk-DTVWX77L.cjs.map} +1 -1
- package/dist/{chunk-JIVMTW7W.js → chunk-GF3KXUTW.js} +4 -4
- package/dist/{chunk-JIVMTW7W.js.map → chunk-GF3KXUTW.js.map} +1 -1
- package/dist/{chunk-QWX5YA3K.js → chunk-L65OU2U3.js} +11 -9
- package/dist/chunk-L65OU2U3.js.map +1 -0
- package/dist/{chunk-QLRESYPU.js → chunk-LGHCOKTT.js} +5 -5
- package/dist/{chunk-QLRESYPU.js.map → chunk-LGHCOKTT.js.map} +1 -1
- package/dist/{chunk-WEVQJ5LH.js → chunk-M3WP7RQZ.js} +2 -2
- package/dist/chunk-M3WP7RQZ.js.map +1 -0
- package/dist/{chunk-Q7Q4WSLJ.cjs → chunk-MCLYU6BN.cjs} +6 -2
- package/dist/chunk-MCLYU6BN.cjs.map +1 -0
- package/dist/{chunk-RJS7DECT.js → chunk-MZLPX2R7.js} +3 -3
- package/dist/{chunk-RJS7DECT.js.map → chunk-MZLPX2R7.js.map} +1 -1
- package/dist/{chunk-NQ6BRJBE.js → chunk-NLI2AVEF.js} +3 -3
- package/dist/{chunk-NQ6BRJBE.js.map → chunk-NLI2AVEF.js.map} +1 -1
- package/dist/{chunk-XMQSEJCF.cjs → chunk-PF6F5NLJ.cjs} +20 -20
- package/dist/{chunk-XMQSEJCF.cjs.map → chunk-PF6F5NLJ.cjs.map} +1 -1
- package/dist/{chunk-XDF2UPEQ.cjs → chunk-PNTCATDE.cjs} +431 -421
- package/dist/chunk-PNTCATDE.cjs.map +1 -0
- package/dist/{chunk-7GT72YHH.cjs → chunk-PT7RIRIZ.cjs} +66 -64
- package/dist/chunk-PT7RIRIZ.cjs.map +1 -0
- package/dist/{chunk-TTAITEPJ.cjs → chunk-Q3G6A4I3.cjs} +2 -2
- package/dist/chunk-Q3G6A4I3.cjs.map +1 -0
- package/dist/{chunk-7Z5OR7KO.js → chunk-S6PW7VV5.js} +19 -9
- package/dist/chunk-S6PW7VV5.js.map +1 -0
- package/dist/{chunk-XQSCL77R.cjs → chunk-VLT6PEWR.cjs} +4 -4
- package/dist/{chunk-XQSCL77R.cjs.map → chunk-VLT6PEWR.cjs.map} +1 -1
- package/dist/{chunk-OH5E5KIO.js → chunk-WQZLUGVR.js} +6 -6
- package/dist/{chunk-OH5E5KIO.js.map → chunk-WQZLUGVR.js.map} +1 -1
- package/dist/{chunk-DLNROMQ7.js → chunk-XL7SLCXS.js} +6 -3
- package/dist/chunk-XL7SLCXS.js.map +1 -0
- package/dist/{chunk-XNSI2FJO.cjs → chunk-YBQOHKHN.cjs} +8 -8
- package/dist/{chunk-XNSI2FJO.cjs.map → chunk-YBQOHKHN.cjs.map} +1 -1
- package/dist/core/index.cjs +5 -5
- package/dist/core/index.js +1 -1
- package/dist/graph-merge/index.cjs +149 -149
- package/dist/graph-merge/index.d.cts +1 -1
- package/dist/graph-merge/index.d.ts +1 -1
- package/dist/graph-merge/index.js +8 -8
- package/dist/index.cjs +79 -79
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -9
- package/dist/interchange/index.cjs +34 -34
- package/dist/interchange/index.d.cts +1 -1
- package/dist/interchange/index.d.ts +1 -1
- package/dist/interchange/index.js +7 -7
- package/dist/profiler/index.d.cts +1 -1
- package/dist/profiler/index.d.ts +1 -1
- package/dist/provenance/index.cjs +16 -16
- package/dist/provenance/index.d.cts +1 -1
- package/dist/provenance/index.d.ts +1 -1
- package/dist/provenance/index.js +3 -3
- package/dist/schema/index.cjs +32 -32
- package/dist/schema/index.js +5 -5
- package/dist/{store-RwTJx8LX.d.cts → store-B0h6x7wo.d.cts} +12 -3
- package/dist/{store-DawaWWjJ.d.ts → store-ClQ-MZQS.d.ts} +12 -3
- package/package.json +3 -3
- package/dist/chunk-7GT72YHH.cjs.map +0 -1
- package/dist/chunk-7Z5OR7KO.js.map +0 -1
- package/dist/chunk-DLNROMQ7.js.map +0 -1
- package/dist/chunk-Q7Q4WSLJ.cjs.map +0 -1
- package/dist/chunk-QWX5YA3K.js.map +0 -1
- package/dist/chunk-TTAITEPJ.cjs.map +0 -1
- package/dist/chunk-WEVQJ5LH.js.map +0 -1
- package/dist/chunk-XDF2UPEQ.cjs.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
3
|
+
var chunkCMWHLBVN_cjs = require('../chunk-CMWHLBVN.cjs');
|
|
4
|
+
require('../chunk-PT7RIRIZ.cjs');
|
|
5
|
+
var chunkQ3G6A4I3_cjs = require('../chunk-Q3G6A4I3.cjs');
|
|
6
|
+
require('../chunk-DTVWX77L.cjs');
|
|
7
|
+
require('../chunk-PF6F5NLJ.cjs');
|
|
8
8
|
require('../chunk-PWLJ77UV.cjs');
|
|
9
9
|
require('../chunk-BSFJMMV3.cjs');
|
|
10
10
|
require('../chunk-NFCVHQ5P.cjs');
|
|
11
11
|
var chunkXBYVV3MP_cjs = require('../chunk-XBYVV3MP.cjs');
|
|
12
12
|
require('../chunk-CXBHOOIQ.cjs');
|
|
13
13
|
require('../chunk-E4WNQBEF.cjs');
|
|
14
|
-
var
|
|
14
|
+
var chunkMCLYU6BN_cjs = require('../chunk-MCLYU6BN.cjs');
|
|
15
15
|
require('../chunk-NAUA4PW5.cjs');
|
|
16
16
|
require('../chunk-4UGOKMI5.cjs');
|
|
17
17
|
require('../chunk-VCRRKBLN.cjs');
|
|
@@ -80,10 +80,10 @@ function invalidStream(message) {
|
|
|
80
80
|
}
|
|
81
81
|
function nonCanonicalWindowOf(entity) {
|
|
82
82
|
const { validFrom, validTo } = entity;
|
|
83
|
-
if (typeof validFrom === "string" && !
|
|
83
|
+
if (typeof validFrom === "string" && !chunkMCLYU6BN_cjs.isCanonicalIsoDate(validFrom)) {
|
|
84
84
|
return { field: "validFrom", value: validFrom };
|
|
85
85
|
}
|
|
86
|
-
if (typeof validTo === "string" && !
|
|
86
|
+
if (typeof validTo === "string" && !chunkMCLYU6BN_cjs.isCanonicalIsoDate(validTo)) {
|
|
87
87
|
return { field: "validTo", value: validTo };
|
|
88
88
|
}
|
|
89
89
|
return void 0;
|
|
@@ -99,7 +99,7 @@ function nonCanonicalWindowMessage(subject, field, value) {
|
|
|
99
99
|
return `Non-canonical ${field} in trusted import: ${subject} states "${value}". Expected canonical fixed-width UTC ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ), which is what makes a stored timestamp sort chronologically against an asOf coordinate. Convert with new Date(value).toISOString().`;
|
|
100
100
|
}
|
|
101
101
|
function hasInvertedWindow(entity) {
|
|
102
|
-
return
|
|
102
|
+
return chunkMCLYU6BN_cjs.isInvertedValidityWindow(
|
|
103
103
|
entity.validFrom ?? void 0,
|
|
104
104
|
entity.validTo
|
|
105
105
|
);
|
|
@@ -259,7 +259,7 @@ async function consumeTrustedChunks(store, session, chunks) {
|
|
|
259
259
|
}
|
|
260
260
|
async function trustedImportGraphStream(store, chunks) {
|
|
261
261
|
rejectUnsupportedStoreFeatures(store);
|
|
262
|
-
const backend =
|
|
262
|
+
const backend = chunkQ3G6A4I3_cjs.storeBackend(store);
|
|
263
263
|
const trustedImport = backend.trustedImport;
|
|
264
264
|
if (trustedImport === void 0) {
|
|
265
265
|
throw new chunkNI72YOJB_cjs.TrustedImportError(
|
|
@@ -268,10 +268,10 @@ async function trustedImportGraphStream(store, chunks) {
|
|
|
268
268
|
{ dialect: backend.dialect }
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
|
-
const sourceBackend = Symbol.asyncIterator in chunks ?
|
|
271
|
+
const sourceBackend = Symbol.asyncIterator in chunks ? chunkCMWHLBVN_cjs.exportStreamBackend(chunks) : void 0;
|
|
272
272
|
const contention = sourceBackend === void 0 ? void 0 : chunkXBYVV3MP_cjs.snapshotExportContention(sourceBackend, backend);
|
|
273
273
|
if (contention !== void 0) {
|
|
274
|
-
throw
|
|
274
|
+
throw chunkCMWHLBVN_cjs.serializedStreamRefusal({
|
|
275
275
|
graphId: store.graphId,
|
|
276
276
|
requested: "import-stream",
|
|
277
277
|
heldBy: "export-snapshot",
|
|
@@ -285,7 +285,7 @@ async function trustedImportGraphStream(store, chunks) {
|
|
|
285
285
|
expectedVersion: schemaVersion
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
|
-
return
|
|
288
|
+
return chunkCMWHLBVN_cjs.withImportStreamLease(
|
|
289
289
|
store,
|
|
290
290
|
() => trustedImport(
|
|
291
291
|
(session) => consumeTrustedChunks(store, session, chunks),
|
|
@@ -314,87 +314,87 @@ function trustedImportGraph(store, data) {
|
|
|
314
314
|
|
|
315
315
|
Object.defineProperty(exports, "ConflictStrategySchema", {
|
|
316
316
|
enumerable: true,
|
|
317
|
-
get: function () { return
|
|
317
|
+
get: function () { return chunkCMWHLBVN_cjs.ConflictStrategySchema; }
|
|
318
318
|
});
|
|
319
319
|
Object.defineProperty(exports, "ExportOptionsSchema", {
|
|
320
320
|
enumerable: true,
|
|
321
|
-
get: function () { return
|
|
321
|
+
get: function () { return chunkCMWHLBVN_cjs.ExportOptionsSchema; }
|
|
322
322
|
});
|
|
323
323
|
Object.defineProperty(exports, "ExportStreamOptionsSchema", {
|
|
324
324
|
enumerable: true,
|
|
325
|
-
get: function () { return
|
|
325
|
+
get: function () { return chunkCMWHLBVN_cjs.ExportStreamOptionsSchema; }
|
|
326
326
|
});
|
|
327
327
|
Object.defineProperty(exports, "FORMAT_VERSION", {
|
|
328
328
|
enumerable: true,
|
|
329
|
-
get: function () { return
|
|
329
|
+
get: function () { return chunkCMWHLBVN_cjs.FORMAT_VERSION; }
|
|
330
330
|
});
|
|
331
331
|
Object.defineProperty(exports, "GraphDataHeaderSchema", {
|
|
332
332
|
enumerable: true,
|
|
333
|
-
get: function () { return
|
|
333
|
+
get: function () { return chunkCMWHLBVN_cjs.GraphDataHeaderSchema; }
|
|
334
334
|
});
|
|
335
335
|
Object.defineProperty(exports, "GraphDataSchema", {
|
|
336
336
|
enumerable: true,
|
|
337
|
-
get: function () { return
|
|
337
|
+
get: function () { return chunkCMWHLBVN_cjs.GraphDataSchema; }
|
|
338
338
|
});
|
|
339
339
|
Object.defineProperty(exports, "GraphDataSourceSchema", {
|
|
340
340
|
enumerable: true,
|
|
341
|
-
get: function () { return
|
|
341
|
+
get: function () { return chunkCMWHLBVN_cjs.GraphDataSourceSchema; }
|
|
342
342
|
});
|
|
343
343
|
Object.defineProperty(exports, "GraphInterchangeChunkSchema", {
|
|
344
344
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
345
|
+
get: function () { return chunkCMWHLBVN_cjs.GraphInterchangeChunkSchema; }
|
|
346
346
|
});
|
|
347
347
|
Object.defineProperty(exports, "IdentityInterchangeModeSchema", {
|
|
348
348
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
349
|
+
get: function () { return chunkCMWHLBVN_cjs.IdentityInterchangeModeSchema; }
|
|
350
350
|
});
|
|
351
351
|
Object.defineProperty(exports, "ImportErrorSchema", {
|
|
352
352
|
enumerable: true,
|
|
353
|
-
get: function () { return
|
|
353
|
+
get: function () { return chunkCMWHLBVN_cjs.ImportErrorSchema; }
|
|
354
354
|
});
|
|
355
355
|
Object.defineProperty(exports, "ImportOptionsSchema", {
|
|
356
356
|
enumerable: true,
|
|
357
|
-
get: function () { return
|
|
357
|
+
get: function () { return chunkCMWHLBVN_cjs.ImportOptionsSchema; }
|
|
358
358
|
});
|
|
359
359
|
Object.defineProperty(exports, "ImportResultSchema", {
|
|
360
360
|
enumerable: true,
|
|
361
|
-
get: function () { return
|
|
361
|
+
get: function () { return chunkCMWHLBVN_cjs.ImportResultSchema; }
|
|
362
362
|
});
|
|
363
363
|
Object.defineProperty(exports, "InterchangeEdgeSchema", {
|
|
364
364
|
enumerable: true,
|
|
365
|
-
get: function () { return
|
|
365
|
+
get: function () { return chunkCMWHLBVN_cjs.InterchangeEdgeSchema; }
|
|
366
366
|
});
|
|
367
367
|
Object.defineProperty(exports, "InterchangeIdentityAssertionSchema", {
|
|
368
368
|
enumerable: true,
|
|
369
|
-
get: function () { return
|
|
369
|
+
get: function () { return chunkCMWHLBVN_cjs.InterchangeIdentityAssertionSchema; }
|
|
370
370
|
});
|
|
371
371
|
Object.defineProperty(exports, "InterchangeIdentitySchema", {
|
|
372
372
|
enumerable: true,
|
|
373
|
-
get: function () { return
|
|
373
|
+
get: function () { return chunkCMWHLBVN_cjs.InterchangeIdentitySchema; }
|
|
374
374
|
});
|
|
375
375
|
Object.defineProperty(exports, "InterchangeNodeSchema", {
|
|
376
376
|
enumerable: true,
|
|
377
|
-
get: function () { return
|
|
377
|
+
get: function () { return chunkCMWHLBVN_cjs.InterchangeNodeSchema; }
|
|
378
378
|
});
|
|
379
379
|
Object.defineProperty(exports, "UnknownPropertyStrategySchema", {
|
|
380
380
|
enumerable: true,
|
|
381
|
-
get: function () { return
|
|
381
|
+
get: function () { return chunkCMWHLBVN_cjs.UnknownPropertyStrategySchema; }
|
|
382
382
|
});
|
|
383
383
|
Object.defineProperty(exports, "exportGraph", {
|
|
384
384
|
enumerable: true,
|
|
385
|
-
get: function () { return
|
|
385
|
+
get: function () { return chunkCMWHLBVN_cjs.exportGraph; }
|
|
386
386
|
});
|
|
387
387
|
Object.defineProperty(exports, "exportGraphStream", {
|
|
388
388
|
enumerable: true,
|
|
389
|
-
get: function () { return
|
|
389
|
+
get: function () { return chunkCMWHLBVN_cjs.exportGraphStream; }
|
|
390
390
|
});
|
|
391
391
|
Object.defineProperty(exports, "importGraph", {
|
|
392
392
|
enumerable: true,
|
|
393
|
-
get: function () { return
|
|
393
|
+
get: function () { return chunkCMWHLBVN_cjs.importGraph; }
|
|
394
394
|
});
|
|
395
395
|
Object.defineProperty(exports, "importGraphStream", {
|
|
396
396
|
enumerable: true,
|
|
397
|
-
get: function () { return
|
|
397
|
+
get: function () { return chunkCMWHLBVN_cjs.importGraphStream; }
|
|
398
398
|
});
|
|
399
399
|
exports.trustedImportGraph = trustedImportGraph;
|
|
400
400
|
exports.trustedImportGraphStream = trustedImportGraphStream;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as GraphDef } from '../types-HkveCCx0.cjs';
|
|
2
2
|
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-HkveCCx0.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { a as Store } from '../store-
|
|
4
|
+
import { a as Store } from '../store-B0h6x7wo.cjs';
|
|
5
5
|
import '../temporal-Bn-Fi8FJ.cjs';
|
|
6
6
|
import '../searchable-CIje5XYD.cjs';
|
|
7
7
|
import '../manager-HGk6E_HW.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as GraphDef } from '../types-HkveCCx0.js';
|
|
2
2
|
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-HkveCCx0.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { a as Store } from '../store-
|
|
4
|
+
import { a as Store } from '../store-ClQ-MZQS.js';
|
|
5
5
|
import '../temporal-BtM4UALv.js';
|
|
6
6
|
import '../searchable-9OQoPuRs.js';
|
|
7
7
|
import '../manager-CfZAimti.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { exportStreamBackend, serializedStreamRefusal, withImportStreamLease } from '../chunk-
|
|
2
|
-
export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, IdentityInterchangeModeSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import { storeBackend } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
1
|
+
import { exportStreamBackend, serializedStreamRefusal, withImportStreamLease } from '../chunk-WQZLUGVR.js';
|
|
2
|
+
export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, IdentityInterchangeModeSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-WQZLUGVR.js';
|
|
3
|
+
import '../chunk-L65OU2U3.js';
|
|
4
|
+
import { storeBackend } from '../chunk-M3WP7RQZ.js';
|
|
5
|
+
import '../chunk-GF3KXUTW.js';
|
|
6
|
+
import '../chunk-NLI2AVEF.js';
|
|
7
7
|
import '../chunk-JBQQ7THH.js';
|
|
8
8
|
import '../chunk-JZUR7ZWE.js';
|
|
9
9
|
import '../chunk-MSY7FSX4.js';
|
|
10
10
|
import { snapshotExportContention } from '../chunk-AKLS3BYZ.js';
|
|
11
11
|
import '../chunk-775A4ZMN.js';
|
|
12
12
|
import '../chunk-WDGA7IYB.js';
|
|
13
|
-
import { isInvertedValidityWindow, isCanonicalIsoDate } from '../chunk-
|
|
13
|
+
import { isInvertedValidityWindow, isCanonicalIsoDate } from '../chunk-XL7SLCXS.js';
|
|
14
14
|
import '../chunk-2EBMPJBO.js';
|
|
15
15
|
import '../chunk-YDFDBE6D.js';
|
|
16
16
|
import '../chunk-PQBQG7IM.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as GraphDef, Q as QueryAst } from '../types-HkveCCx0.cjs';
|
|
2
2
|
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-HkveCCx0.cjs';
|
|
3
|
-
import { a as Store } from '../store-
|
|
3
|
+
import { a as Store } from '../store-B0h6x7wo.cjs';
|
|
4
4
|
import { P as ProfilerOptions, a as ProfileReport } from '../types-CoIx8HX5.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-CoIx8HX5.cjs';
|
|
6
6
|
import 'zod';
|
package/dist/profiler/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as GraphDef, Q as QueryAst } from '../types-HkveCCx0.js';
|
|
2
2
|
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-HkveCCx0.js';
|
|
3
|
-
import { a as Store } from '../store-
|
|
3
|
+
import { a as Store } from '../store-ClQ-MZQS.js';
|
|
4
4
|
import { P as ProfilerOptions, a as ProfileReport } from '../types-KFfk-8Ah.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-KFfk-8Ah.js';
|
|
6
6
|
import 'zod';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkQ3G6A4I3_cjs = require('../chunk-Q3G6A4I3.cjs');
|
|
4
|
+
var chunkPF6F5NLJ_cjs = require('../chunk-PF6F5NLJ.cjs');
|
|
5
5
|
require('../chunk-BSFJMMV3.cjs');
|
|
6
6
|
require('../chunk-NFCVHQ5P.cjs');
|
|
7
7
|
var chunkXBYVV3MP_cjs = require('../chunk-XBYVV3MP.cjs');
|
|
8
8
|
require('../chunk-E4WNQBEF.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunkMCLYU6BN_cjs = require('../chunk-MCLYU6BN.cjs');
|
|
10
10
|
require('../chunk-NAUA4PW5.cjs');
|
|
11
11
|
require('../chunk-VCRRKBLN.cjs');
|
|
12
12
|
require('../chunk-RT5ZY4XA.cjs');
|
|
@@ -46,7 +46,7 @@ function keyToRef(key) {
|
|
|
46
46
|
return { kind, id };
|
|
47
47
|
}
|
|
48
48
|
function sortedReferences(keys) {
|
|
49
|
-
return [...keys].toSorted((left, right) =>
|
|
49
|
+
return [...keys].toSorted((left, right) => chunkPF6F5NLJ_cjs.compareStrings(left, right)).map((key) => keyToRef(key));
|
|
50
50
|
}
|
|
51
51
|
function parseNodeProps(row) {
|
|
52
52
|
const parsed = chunkXBYVV3MP_cjs.rowPropsToObject(row.props);
|
|
@@ -156,7 +156,7 @@ function duplicateValues(values) {
|
|
|
156
156
|
}
|
|
157
157
|
seen.add(value);
|
|
158
158
|
}
|
|
159
|
-
return [...duplicates].toSorted((left, right) =>
|
|
159
|
+
return [...duplicates].toSorted((left, right) => chunkPF6F5NLJ_cjs.compareStrings(left, right));
|
|
160
160
|
}
|
|
161
161
|
function assertKind(records, kind, role, noun, graphId) {
|
|
162
162
|
if (Object.hasOwn(records, kind)) return;
|
|
@@ -297,7 +297,7 @@ function buildSupportEdges(config, rows) {
|
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
299
|
async function loadSupportGraph(backend, graphId, config) {
|
|
300
|
-
const asOf =
|
|
300
|
+
const asOf = chunkMCLYU6BN_cjs.nowIso();
|
|
301
301
|
const roles = await readRoles(backend, graphId, config, asOf);
|
|
302
302
|
const supportEdges = buildSupportEdges(config, roles);
|
|
303
303
|
const sourceRowsByKind = await Promise.all(
|
|
@@ -405,7 +405,7 @@ function buildReport(before, after, affected) {
|
|
|
405
405
|
const unaffected = sortedReferences(
|
|
406
406
|
believedBefore.filter((key) => !affected.has(key))
|
|
407
407
|
);
|
|
408
|
-
const survivedVia = [...affected].filter((key) => after.supportedFactKeys.has(key)).toSorted((left, right) =>
|
|
408
|
+
const survivedVia = [...affected].filter((key) => after.supportedFactKeys.has(key)).toSorted((left, right) => chunkPF6F5NLJ_cjs.compareStrings(left, right)).map((key) => ({
|
|
409
409
|
fact: keyToRef(key),
|
|
410
410
|
via: sortedReferences(
|
|
411
411
|
after.firingJustificationKeysByFact.get(key) ?? []
|
|
@@ -450,8 +450,8 @@ function getFactRegistration(store, row) {
|
|
|
450
450
|
async function closeFactCurrency(backend, store, runHooks, row, lock) {
|
|
451
451
|
await runHooks("delete", row.kind, row.id, async () => {
|
|
452
452
|
const registration = getFactRegistration(store, row);
|
|
453
|
-
await
|
|
454
|
-
|
|
453
|
+
await chunkQ3G6A4I3_cjs.applyNodeSoftDelete(
|
|
454
|
+
chunkQ3G6A4I3_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
|
|
455
455
|
{
|
|
456
456
|
existing: row,
|
|
457
457
|
schema: registration.type.schema,
|
|
@@ -466,8 +466,8 @@ async function closeFactCurrency(backend, store, runHooks, row, lock) {
|
|
|
466
466
|
async function reopenFactCurrency(backend, store, runHooks, row, lock) {
|
|
467
467
|
await runHooks("update", row.kind, row.id, async () => {
|
|
468
468
|
const registration = getFactRegistration(store, row);
|
|
469
|
-
await
|
|
470
|
-
|
|
469
|
+
await chunkQ3G6A4I3_cjs.applyNodeResurrect(
|
|
470
|
+
chunkQ3G6A4I3_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
|
|
471
471
|
{
|
|
472
472
|
existing: row,
|
|
473
473
|
schema: registration.type.schema,
|
|
@@ -499,8 +499,8 @@ async function runTransition(store, config, sources, retracted) {
|
|
|
499
499
|
);
|
|
500
500
|
}
|
|
501
501
|
return store.transaction(async (tx) => {
|
|
502
|
-
const backend =
|
|
503
|
-
const lock = await
|
|
502
|
+
const backend = chunkQ3G6A4I3_cjs.transactionBackend(tx);
|
|
503
|
+
const lock = await chunkPF6F5NLJ_cjs.lockRecordedGraphWrite(backend, store.graphId);
|
|
504
504
|
const rows = await Promise.all(
|
|
505
505
|
uniqueSources.map(
|
|
506
506
|
(source) => backend.getNode(store.graphId, source.kind, source.id)
|
|
@@ -536,7 +536,7 @@ async function runTransition(store, config, sources, retracted) {
|
|
|
536
536
|
await synchronizeFactCurrency(
|
|
537
537
|
backend,
|
|
538
538
|
store,
|
|
539
|
-
|
|
539
|
+
chunkQ3G6A4I3_cjs.transactionNodeOperationHookRunner(tx),
|
|
540
540
|
after,
|
|
541
541
|
affected,
|
|
542
542
|
lock
|
|
@@ -562,8 +562,8 @@ function createRetractionCapability(store, config) {
|
|
|
562
562
|
unRetractMany: (sources) => transition(sources, false),
|
|
563
563
|
async holding() {
|
|
564
564
|
return store.transaction(async (tx) => {
|
|
565
|
-
const backend =
|
|
566
|
-
await
|
|
565
|
+
const backend = chunkQ3G6A4I3_cjs.transactionBackend(tx);
|
|
566
|
+
await chunkPF6F5NLJ_cjs.lockRecordedGraphWrite(backend, store.graphId);
|
|
567
567
|
const snapshot = await computeSupport(
|
|
568
568
|
backend,
|
|
569
569
|
store.graphId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as GraphDef } from '../types-HkveCCx0.cjs';
|
|
2
2
|
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-HkveCCx0.cjs';
|
|
3
|
-
import { b as HistoryStore } from '../store-
|
|
3
|
+
import { b as HistoryStore } from '../store-B0h6x7wo.cjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../temporal-Bn-Fi8FJ.cjs';
|
|
6
6
|
import '../searchable-CIje5XYD.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as GraphDef } from '../types-HkveCCx0.js';
|
|
2
2
|
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-HkveCCx0.js';
|
|
3
|
-
import { b as HistoryStore } from '../store-
|
|
3
|
+
import { b as HistoryStore } from '../store-ClQ-MZQS.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../temporal-BtM4UALv.js';
|
|
6
6
|
import '../searchable-9OQoPuRs.js';
|
package/dist/provenance/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { transactionBackend, transactionNodeOperationHookRunner, applyNodeSoftDelete, createNodeWriteContext, applyNodeResurrect } from '../chunk-
|
|
2
|
-
import { lockRecordedGraphWrite, compareStrings } from '../chunk-
|
|
1
|
+
import { transactionBackend, transactionNodeOperationHookRunner, applyNodeSoftDelete, createNodeWriteContext, applyNodeResurrect } from '../chunk-M3WP7RQZ.js';
|
|
2
|
+
import { lockRecordedGraphWrite, compareStrings } from '../chunk-NLI2AVEF.js';
|
|
3
3
|
import '../chunk-JZUR7ZWE.js';
|
|
4
4
|
import '../chunk-MSY7FSX4.js';
|
|
5
5
|
import { rowPropsToObject, isLiveNodeRow, isTombstonedNodeRow } from '../chunk-AKLS3BYZ.js';
|
|
6
6
|
import '../chunk-WDGA7IYB.js';
|
|
7
|
-
import { nowIso } from '../chunk-
|
|
7
|
+
import { nowIso } from '../chunk-XL7SLCXS.js';
|
|
8
8
|
import '../chunk-2EBMPJBO.js';
|
|
9
9
|
import '../chunk-PQBQG7IM.js';
|
|
10
10
|
import '../chunk-W6OG3HDG.js';
|
package/dist/schema/index.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkVLT6PEWR_cjs = require('../chunk-VLT6PEWR.cjs');
|
|
4
|
+
var chunk65E3XWGF_cjs = require('../chunk-65E3XWGF.cjs');
|
|
5
5
|
require('../chunk-NK5Q7UNE.cjs');
|
|
6
|
-
var
|
|
7
|
-
require('../chunk-
|
|
6
|
+
var chunkDTVWX77L_cjs = require('../chunk-DTVWX77L.cjs');
|
|
7
|
+
require('../chunk-PF6F5NLJ.cjs');
|
|
8
8
|
require('../chunk-PWLJ77UV.cjs');
|
|
9
9
|
require('../chunk-BSFJMMV3.cjs');
|
|
10
10
|
require('../chunk-NFCVHQ5P.cjs');
|
|
11
11
|
require('../chunk-XBYVV3MP.cjs');
|
|
12
12
|
require('../chunk-CXBHOOIQ.cjs');
|
|
13
13
|
require('../chunk-E4WNQBEF.cjs');
|
|
14
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-MCLYU6BN.cjs');
|
|
15
15
|
require('../chunk-U63GDNRC.cjs');
|
|
16
16
|
require('../chunk-ZY4GXIVN.cjs');
|
|
17
17
|
require('../chunk-NAUA4PW5.cjs');
|
|
@@ -31,111 +31,111 @@ require('../chunk-N66HCGCY.cjs');
|
|
|
31
31
|
|
|
32
32
|
Object.defineProperty(exports, "deserializeSchema", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkVLT6PEWR_cjs.deserializeSchema; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "applyDeprecatedKinds", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk65E3XWGF_cjs.applyDeprecatedKinds; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "assertSchemaCurrent", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk65E3XWGF_cjs.assertSchemaCurrent; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "classifySchemaChanges", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk65E3XWGF_cjs.classifySchemaChanges; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "computeSchemaDiff", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunk65E3XWGF_cjs.computeSchemaDiff; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "computeSchemaHash", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunk65E3XWGF_cjs.computeSchemaHash; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "deserializeWherePredicate", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk65E3XWGF_cjs.deserializeWherePredicate; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "ensureSchema", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk65E3XWGF_cjs.ensureSchema; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "getActiveSchema", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk65E3XWGF_cjs.getActiveSchema; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "getCommittedSchemaVersion", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk65E3XWGF_cjs.getCommittedSchemaVersion; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "getMigrationActions", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk65E3XWGF_cjs.getMigrationActions; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "getSchemaChanges", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk65E3XWGF_cjs.getSchemaChanges; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "initializeSchema", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk65E3XWGF_cjs.initializeSchema; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "isBackwardsCompatible", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk65E3XWGF_cjs.isBackwardsCompatible; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "isSchemaInitialized", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk65E3XWGF_cjs.isSchemaInitialized; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "loadActiveSchemaWithBootstrap", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk65E3XWGF_cjs.loadActiveSchemaWithBootstrap; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "loadAndMergeGraphExtensionDocument", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunk65E3XWGF_cjs.loadAndMergeGraphExtensionDocument; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "migrateSchema", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk65E3XWGF_cjs.migrateSchema; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "parseSerializedSchema", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunk65E3XWGF_cjs.parseSerializedSchema; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "requiresMigration", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunk65E3XWGF_cjs.requiresMigration; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "rollbackSchema", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunk65E3XWGF_cjs.rollbackSchema; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "serializeSchema", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunk65E3XWGF_cjs.serializeSchema; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "createValidationError", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkDTVWX77L_cjs.createValidationError; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "validateEdgeProps", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkDTVWX77L_cjs.validateEdgeProps; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "validateNodeProps", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkDTVWX77L_cjs.validateNodeProps; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "validateProps", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkDTVWX77L_cjs.validateProps; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "wrapZodError", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkDTVWX77L_cjs.wrapZodError; }
|
|
139
139
|
});
|
|
140
140
|
//# sourceMappingURL=index.cjs.map
|
|
141
141
|
//# sourceMappingURL=index.cjs.map
|
package/dist/schema/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { deserializeSchema } from '../chunk-
|
|
2
|
-
export { applyDeprecatedKinds, assertSchemaCurrent, classifySchemaChanges, computeSchemaDiff, computeSchemaHash, deserializeWherePredicate, ensureSchema, getActiveSchema, getCommittedSchemaVersion, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, migrateSchema, parseSerializedSchema, requiresMigration, rollbackSchema, serializeSchema } from '../chunk-
|
|
1
|
+
export { deserializeSchema } from '../chunk-2Z2Z3ZD6.js';
|
|
2
|
+
export { applyDeprecatedKinds, assertSchemaCurrent, classifySchemaChanges, computeSchemaDiff, computeSchemaHash, deserializeWherePredicate, ensureSchema, getActiveSchema, getCommittedSchemaVersion, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, migrateSchema, parseSerializedSchema, requiresMigration, rollbackSchema, serializeSchema } from '../chunk-LGHCOKTT.js';
|
|
3
3
|
import '../chunk-JXA2ZP2Q.js';
|
|
4
|
-
export { createValidationError, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
export { createValidationError, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-GF3KXUTW.js';
|
|
5
|
+
import '../chunk-NLI2AVEF.js';
|
|
6
6
|
import '../chunk-JBQQ7THH.js';
|
|
7
7
|
import '../chunk-JZUR7ZWE.js';
|
|
8
8
|
import '../chunk-MSY7FSX4.js';
|
|
9
9
|
import '../chunk-AKLS3BYZ.js';
|
|
10
10
|
import '../chunk-775A4ZMN.js';
|
|
11
11
|
import '../chunk-WDGA7IYB.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-XL7SLCXS.js';
|
|
13
13
|
import '../chunk-I5MOXA4H.js';
|
|
14
14
|
import '../chunk-K34OPSJK.js';
|
|
15
15
|
import '../chunk-2EBMPJBO.js';
|
|
@@ -2334,11 +2334,15 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2334
2334
|
* bound, because that row's is already history, so one naming a different
|
|
2335
2335
|
* instant is REFUSED (`ValidationError` carrying
|
|
2336
2336
|
* `IMMUTABLE_VALIDITY_LOWER_BOUND_CODE`) rather than ignored. Restating the
|
|
2337
|
-
* bound the row already holds is accepted and changes nothing.
|
|
2337
|
+
* bound the row already holds is accepted and changes nothing. Set
|
|
2338
|
+
* `onImmutableLowerBound: "preserve"` for event materializers whose
|
|
2339
|
+
* `validFrom` is create/resurrection input: a live update then preserves the
|
|
2340
|
+
* stored lower bound while still applying props and `validTo`.
|
|
2338
2341
|
*/
|
|
2339
2342
|
upsertById: (id: string, props: z.input<N["schema"]>, options?: Readonly<{
|
|
2340
2343
|
validFrom?: string;
|
|
2341
2344
|
validTo?: string;
|
|
2345
|
+
onImmutableLowerBound?: "preserve" | "refuse";
|
|
2342
2346
|
}>) => Promise<Node<N>>;
|
|
2343
2347
|
/**
|
|
2344
2348
|
* Upsert a node from untyped data, relying on runtime Zod validation.
|
|
@@ -2353,11 +2357,13 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2353
2357
|
* bound, because that row's is already history, so one naming a different
|
|
2354
2358
|
* instant is REFUSED (`ValidationError` carrying
|
|
2355
2359
|
* `IMMUTABLE_VALIDITY_LOWER_BOUND_CODE`) rather than ignored. Restating the
|
|
2356
|
-
* bound the row already holds is accepted and changes nothing.
|
|
2360
|
+
* bound the row already holds is accepted and changes nothing. Set
|
|
2361
|
+
* `onImmutableLowerBound: "preserve"` for create/resurrection-only input.
|
|
2357
2362
|
*/
|
|
2358
2363
|
upsertByIdFromRecord: (id: string, data: Record<string, unknown>, options?: Readonly<{
|
|
2359
2364
|
validFrom?: string;
|
|
2360
2365
|
validTo?: string;
|
|
2366
|
+
onImmutableLowerBound?: "preserve" | "refuse";
|
|
2361
2367
|
}>) => Promise<Node<N>>;
|
|
2362
2368
|
/**
|
|
2363
2369
|
* Create multiple nodes in a batch.
|
|
@@ -2391,7 +2397,9 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2391
2397
|
* bound, because that row's is already history, so one naming a different
|
|
2392
2398
|
* instant is REFUSED (`ValidationError` carrying
|
|
2393
2399
|
* `IMMUTABLE_VALIDITY_LOWER_BOUND_CODE`) rather than ignored. Restating the
|
|
2394
|
-
* bound the row already holds is accepted and changes nothing.
|
|
2400
|
+
* bound the row already holds is accepted and changes nothing. Per-item
|
|
2401
|
+
* `onImmutableLowerBound: "preserve"` makes the bound create/resurrection
|
|
2402
|
+
* input while a live update preserves the stored lower bound.
|
|
2395
2403
|
*
|
|
2396
2404
|
* **Limitation — a batch cannot hand a unique value from one row to
|
|
2397
2405
|
* another.** Item order settles which value each id ends up with, but the
|
|
@@ -2411,6 +2419,7 @@ type NodeCollection<N extends NodeType, CN extends string = string> = Readonly<{
|
|
|
2411
2419
|
props: z.input<N["schema"]>;
|
|
2412
2420
|
validFrom?: string;
|
|
2413
2421
|
validTo?: string;
|
|
2422
|
+
onImmutableLowerBound?: "preserve" | "refuse";
|
|
2414
2423
|
}>[]) => Promise<Node<N>[]>;
|
|
2415
2424
|
/**
|
|
2416
2425
|
* Insert multiple nodes without returning results.
|