@nicia-ai/typegraph 0.32.0 → 0.33.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/README.md +31 -0
- package/dist/backend/postgres/index.cjs +28 -15
- package/dist/backend/postgres/index.d.cts +6 -6
- package/dist/backend/postgres/index.d.ts +6 -6
- package/dist/backend/postgres/index.js +6 -5
- package/dist/backend/postgres/pglite.cjs +10 -9
- package/dist/backend/postgres/pglite.cjs.map +1 -1
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +6 -5
- package/dist/backend/postgres/pglite.js.map +1 -1
- package/dist/backend/sqlite/index.cjs +27 -14
- package/dist/backend/sqlite/index.d.cts +7 -7
- package/dist/backend/sqlite/index.d.ts +7 -7
- package/dist/backend/sqlite/index.js +6 -5
- package/dist/backend/sqlite/libsql.cjs +9 -8
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +6 -5
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +10 -9
- package/dist/backend/sqlite/local.cjs.map +1 -1
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +6 -5
- package/dist/backend/sqlite/local.js.map +1 -1
- package/dist/{chunk-CAMMC3E4.cjs → chunk-3642VBVC.cjs} +65 -63
- package/dist/chunk-3642VBVC.cjs.map +1 -0
- package/dist/chunk-3E7SNSIA.cjs +55 -0
- package/dist/chunk-3E7SNSIA.cjs.map +1 -0
- package/dist/{chunk-6RMLO5O4.cjs → chunk-3IR2GEMJ.cjs} +8 -7
- package/dist/chunk-3IR2GEMJ.cjs.map +1 -0
- package/dist/{chunk-JKRKIEVA.cjs → chunk-4RBAJVEC.cjs} +125 -3
- package/dist/chunk-4RBAJVEC.cjs.map +1 -0
- package/dist/{chunk-IJORSAC3.js → chunk-6NRFUHMS.js} +4 -3
- package/dist/chunk-6NRFUHMS.js.map +1 -0
- package/dist/{chunk-YL4F3CMD.cjs → chunk-BF3ZDEUE.cjs} +96 -64
- package/dist/chunk-BF3ZDEUE.cjs.map +1 -0
- package/dist/{chunk-2LAT5BIK.cjs → chunk-D3EWZ67S.cjs} +2820 -1947
- package/dist/chunk-D3EWZ67S.cjs.map +1 -0
- package/dist/{chunk-XQFAJVYW.js → chunk-DJYRRDHA.js} +123 -4
- package/dist/chunk-DJYRRDHA.js.map +1 -0
- package/dist/{chunk-YQGLVWB2.cjs → chunk-EF3Z645U.cjs} +2 -52
- package/dist/chunk-EF3Z645U.cjs.map +1 -0
- package/dist/chunk-GYVBEZAO.js +120 -0
- package/dist/chunk-GYVBEZAO.js.map +1 -0
- package/dist/chunk-I4W7MKVG.cjs +1526 -0
- package/dist/chunk-I4W7MKVG.cjs.map +1 -0
- package/dist/{chunk-MXE2U3EX.js → chunk-IZ4PCL47.js} +3 -52
- package/dist/chunk-IZ4PCL47.js.map +1 -0
- package/dist/{chunk-7WW3WL6E.js → chunk-JHOBXD7O.js} +9 -7
- package/dist/chunk-JHOBXD7O.js.map +1 -0
- package/dist/{chunk-3HQDMOBK.cjs → chunk-KY5SDVA7.cjs} +619 -578
- package/dist/chunk-KY5SDVA7.cjs.map +1 -0
- package/dist/{chunk-EEYV6UOE.cjs → chunk-MBLXCV2Y.cjs} +2 -2
- package/dist/{chunk-EEYV6UOE.cjs.map → chunk-MBLXCV2Y.cjs.map} +1 -1
- package/dist/{chunk-LAZGHOZW.cjs → chunk-NG5N7R45.cjs} +28 -28
- package/dist/{chunk-LAZGHOZW.cjs.map → chunk-NG5N7R45.cjs.map} +1 -1
- package/dist/chunk-OIE2UPVG.cjs +126 -0
- package/dist/chunk-OIE2UPVG.cjs.map +1 -0
- package/dist/{chunk-NDM5PXEH.js → chunk-OS6KS3HV.js} +41 -9
- package/dist/chunk-OS6KS3HV.js.map +1 -0
- package/dist/chunk-PYD3UCDU.js +1480 -0
- package/dist/chunk-PYD3UCDU.js.map +1 -0
- package/dist/{chunk-W4ZX2GCP.js → chunk-QBYTJSAY.js} +2 -2
- package/dist/{chunk-W4ZX2GCP.js.map → chunk-QBYTJSAY.js.map} +1 -1
- package/dist/{chunk-HFBRAOF7.js → chunk-SPT5JMME.js} +3 -3
- package/dist/{chunk-HFBRAOF7.js.map → chunk-SPT5JMME.js.map} +1 -1
- package/dist/{chunk-SB65GJNY.cjs → chunk-SST7XDY6.cjs} +11 -11
- package/dist/{chunk-SB65GJNY.cjs.map → chunk-SST7XDY6.cjs.map} +1 -1
- package/dist/{chunk-TUA3MEJJ.js → chunk-UPDMJEW6.js} +606 -561
- package/dist/chunk-UPDMJEW6.js.map +1 -0
- package/dist/{chunk-WNORITK6.js → chunk-WLP6TKFB.js} +2691 -1817
- package/dist/chunk-WLP6TKFB.js.map +1 -0
- package/dist/chunk-XLUNB2TZ.js +53 -0
- package/dist/chunk-XLUNB2TZ.js.map +1 -0
- package/dist/{chunk-2BVHPOIG.js → chunk-XVUJY72M.js} +6 -6
- package/dist/{chunk-2BVHPOIG.js.map → chunk-XVUJY72M.js.map} +1 -1
- package/dist/{ddl-C8e8zDAE.d.ts → ddl-CVnHJcar.d.ts} +3 -3
- package/dist/{ddl-CwyG4HoQ.d.cts → ddl-Dxt_fBHr.d.cts} +3 -3
- package/dist/{extension-types-D1k0inWU.d.cts → extension-types-YGFJPrzK.d.cts} +1 -1
- package/dist/{extension-types-D1k0inWU.d.ts → extension-types-YGFJPrzK.d.ts} +1 -1
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-merge/index.cjs +24 -23
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +6 -6
- package/dist/graph-merge/index.d.ts +6 -6
- package/dist/graph-merge/index.js +9 -8
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-BEK0VtNB.d.ts → index-DGX6D9j1.d.ts} +2 -2
- package/dist/{index-C8sSTErx.d.cts → index-SEvUHDA6.d.cts} +2 -2
- package/dist/index.cjs +129 -104
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -55
- package/dist/index.d.ts +25 -55
- package/dist/index.js +12 -10
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +5 -4
- package/dist/indexes/index.d.cts +5 -5
- package/dist/indexes/index.d.ts +5 -5
- package/dist/indexes/index.js +3 -2
- package/dist/interchange/index.cjs +15 -15
- package/dist/interchange/index.d.cts +5 -5
- package/dist/interchange/index.d.ts +5 -5
- package/dist/interchange/index.js +2 -2
- package/dist/{manager-aVgxbGt-.d.cts → manager-BYl_zyZR.d.cts} +2 -2
- package/dist/{manager-8htmuGr-.d.ts → manager-C0_r0ALf.d.ts} +2 -2
- package/dist/{materialize-indexes-CAGhqPHQ.d.ts → materialize-indexes-CAkIYFV-.d.ts} +1 -1
- package/dist/{materialize-indexes-DEYkU-wr.d.cts → materialize-indexes-D20xNluI.d.cts} +1 -1
- package/dist/{postgres-jgXmD45C.d.cts → postgres-MzBPkYzq.d.ts} +2651 -596
- package/dist/{postgres-Dhom7iiX.d.ts → postgres-_9psmVGm.d.cts} +2651 -596
- package/dist/profiler/index.cjs +4 -3
- package/dist/profiler/index.cjs.map +1 -1
- package/dist/profiler/index.d.cts +7 -7
- package/dist/profiler/index.d.ts +7 -7
- package/dist/profiler/index.js +2 -1
- package/dist/profiler/index.js.map +1 -1
- package/dist/schema/index.cjs +30 -29
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +7 -7
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +7 -6
- package/dist/schema/index.js.map +1 -1
- package/dist/{sqlite-BfLsCEqO.d.ts → sqlite-BfksSb45.d.cts} +2726 -455
- package/dist/{sqlite-DcQ_BCUW.d.cts → sqlite-gm44dShb.d.ts} +2726 -455
- package/dist/{store-view-pBOUrQte.d.ts → store-view-9jQ2rPum.d.cts} +437 -129
- package/dist/{store-view-lTcb_cnp.d.cts → store-view-FfE5_7eo.d.ts} +437 -129
- package/dist/{types-5RQwzWXx.d.cts → types-B6mhrcLv.d.cts} +2 -2
- package/dist/{types-Dk8r09KY.d.ts → types-C_UnQOQp.d.cts} +154 -23
- package/dist/{types-DGDiXAYc.d.ts → types-CdWxK-nD.d.ts} +2 -2
- package/dist/{types-Dvmn-eal.d.cts → types-DGylBhWo.d.ts} +154 -23
- package/dist/{where-Cx_glEEB.d.cts → where-Bpp2ul_z.d.cts} +2 -2
- package/dist/{where-CHZFELX0.d.ts → where-BsEXraKW.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/chunk-2LAT5BIK.cjs.map +0 -1
- package/dist/chunk-3HQDMOBK.cjs.map +0 -1
- package/dist/chunk-6G35I3VW.cjs +0 -40
- package/dist/chunk-6G35I3VW.cjs.map +0 -1
- package/dist/chunk-6RMLO5O4.cjs.map +0 -1
- package/dist/chunk-7WW3WL6E.js.map +0 -1
- package/dist/chunk-CAMMC3E4.cjs.map +0 -1
- package/dist/chunk-IJORSAC3.js.map +0 -1
- package/dist/chunk-JKRKIEVA.cjs.map +0 -1
- package/dist/chunk-M6OC455F.js +0 -65
- package/dist/chunk-M6OC455F.js.map +0 -1
- package/dist/chunk-MXE2U3EX.js.map +0 -1
- package/dist/chunk-NDM5PXEH.js.map +0 -1
- package/dist/chunk-RP7YITHX.cjs +0 -70
- package/dist/chunk-RP7YITHX.cjs.map +0 -1
- package/dist/chunk-SAJSMR2B.js +0 -35
- package/dist/chunk-SAJSMR2B.js.map +0 -1
- package/dist/chunk-TUA3MEJJ.js.map +0 -1
- package/dist/chunk-WNORITK6.js.map +0 -1
- package/dist/chunk-XQFAJVYW.js.map +0 -1
- package/dist/chunk-YL4F3CMD.cjs.map +0 -1
- package/dist/chunk-YQGLVWB2.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as FulltextStrategy } from './types-
|
|
2
|
-
import { P as PostgresTables } from './postgres-
|
|
3
|
-
import { S as SqliteTables } from './sqlite-
|
|
1
|
+
import { F as FulltextStrategy } from './types-DGylBhWo.js';
|
|
2
|
+
import { P as PostgresTables } from './postgres-MzBPkYzq.js';
|
|
3
|
+
import { S as SqliteTables } from './sqlite-gm44dShb.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Generates all DDL statements for the given SQLite tables.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as FulltextStrategy } from './types-
|
|
2
|
-
import { P as PostgresTables } from './postgres-
|
|
3
|
-
import { S as SqliteTables } from './sqlite-
|
|
1
|
+
import { F as FulltextStrategy } from './types-C_UnQOQp.cjs';
|
|
2
|
+
import { P as PostgresTables } from './postgres-_9psmVGm.cjs';
|
|
3
|
+
import { S as SqliteTables } from './sqlite-BfksSb45.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Generates all DDL statements for the given SQLite tables.
|
|
@@ -540,4 +540,4 @@ type GraphExtension = Readonly<{
|
|
|
540
540
|
declare const GRAPH_EXTENSION_TOP_LEVEL_KEYS: readonly ["version", "nodes", "edges", "ontology", "indexes"];
|
|
541
541
|
type GraphExtensionTopLevelKey = (typeof GRAPH_EXTENSION_TOP_LEVEL_KEYS)[number];
|
|
542
542
|
|
|
543
|
-
export { type AnyEdgeType as A, type ExtensionEmbeddingModifier as B,
|
|
543
|
+
export { type AnyEdgeType as A, type ExtensionEmbeddingModifier as B, CURRENT_GRAPH_EXTENSION_VERSION as C, type DeleteBehavior as D, type EdgeRegistration as E, type ExtensionEnumProperty as F, type GraphExtension as G, type ExtensionIndexWhere as H, type IndexEntity as I, type JsonValue as J, type KindEntity as K, LEGACY_GRAPH_EXTENSION_VERSION as L, type ExtensionNodeIndex as M, type NodeType as N, type ExtensionNumberProperty as O, type ExtensionObjectFieldProperty as P, type ExtensionObjectProperty as Q, type ExtensionPropertyType as R, type ExtensionSearchableModifier as S, type TemporalMode as T, type UniqueConstraint as U, type ExtensionStringProperty as V, type ExtensionUniqueConstraint as W, type ExtensionUniqueWhere as X, GRAPH_EXTENSION_TOP_LEVEL_KEYS as Y, type GraphExtensionTopLevelKey as Z, type NullCheckOp as a, type NodeRegistration as b, type GraphDefaults as c, type NodeId as d, type EdgeId as e, type KindAnnotations as f, type EdgeType as g, type GraphExtensionVersion as h, type ExtensionNodeDef as i, type ExtensionEdgeDef as j, type ExtensionOntologyRelation as k, type ExtensionIndex as l, type Cardinality as m, type Collation as n, type EdgeProps as o, type EdgeTypeWithEndpoints as p, type EndpointExistence as q, type NodeProps as r, type UniquenessScope as s, isEdgeType as t, isEdgeTypeWithEndpoints as u, isNodeType as v, type ExtensionArrayItemType as w, type ExtensionArrayProperty as x, type ExtensionBooleanProperty as y, type ExtensionEdgeIndex as z };
|
|
@@ -540,4 +540,4 @@ type GraphExtension = Readonly<{
|
|
|
540
540
|
declare const GRAPH_EXTENSION_TOP_LEVEL_KEYS: readonly ["version", "nodes", "edges", "ontology", "indexes"];
|
|
541
541
|
type GraphExtensionTopLevelKey = (typeof GRAPH_EXTENSION_TOP_LEVEL_KEYS)[number];
|
|
542
542
|
|
|
543
|
-
export { type AnyEdgeType as A, type ExtensionEmbeddingModifier as B,
|
|
543
|
+
export { type AnyEdgeType as A, type ExtensionEmbeddingModifier as B, CURRENT_GRAPH_EXTENSION_VERSION as C, type DeleteBehavior as D, type EdgeRegistration as E, type ExtensionEnumProperty as F, type GraphExtension as G, type ExtensionIndexWhere as H, type IndexEntity as I, type JsonValue as J, type KindEntity as K, LEGACY_GRAPH_EXTENSION_VERSION as L, type ExtensionNodeIndex as M, type NodeType as N, type ExtensionNumberProperty as O, type ExtensionObjectFieldProperty as P, type ExtensionObjectProperty as Q, type ExtensionPropertyType as R, type ExtensionSearchableModifier as S, type TemporalMode as T, type UniqueConstraint as U, type ExtensionStringProperty as V, type ExtensionUniqueConstraint as W, type ExtensionUniqueWhere as X, GRAPH_EXTENSION_TOP_LEVEL_KEYS as Y, type GraphExtensionTopLevelKey as Z, type NullCheckOp as a, type NodeRegistration as b, type GraphDefaults as c, type NodeId as d, type EdgeId as e, type KindAnnotations as f, type EdgeType as g, type GraphExtensionVersion as h, type ExtensionNodeDef as i, type ExtensionEdgeDef as j, type ExtensionOntologyRelation as k, type ExtensionIndex as l, type Cardinality as m, type Collation as n, type EdgeProps as o, type EdgeTypeWithEndpoints as p, type EndpointExistence as q, type NodeProps as r, type UniquenessScope as s, isEdgeType as t, isEdgeTypeWithEndpoints as u, isNodeType as v, type ExtensionArrayItemType as w, type ExtensionArrayProperty as x, type ExtensionBooleanProperty as y, type ExtensionEdgeIndex as z };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { G as GraphExtension, K as KindEntity } from '../extension-types-
|
|
2
|
-
export {
|
|
3
|
-
import { T as TypeGraphError, i as ErrorCategory } from '../index-
|
|
1
|
+
import { G as GraphExtension, K as KindEntity } from '../extension-types-YGFJPrzK.cjs';
|
|
2
|
+
export { C as CURRENT_GRAPH_EXTENSION_VERSION, w as ExtensionArrayItemType, x as ExtensionArrayProperty, y as ExtensionBooleanProperty, j as ExtensionEdgeDef, z as ExtensionEdgeIndex, B as ExtensionEmbeddingModifier, F as ExtensionEnumProperty, l as ExtensionIndex, H as ExtensionIndexWhere, i as ExtensionNodeDef, M as ExtensionNodeIndex, O as ExtensionNumberProperty, P as ExtensionObjectFieldProperty, Q as ExtensionObjectProperty, k as ExtensionOntologyRelation, R as ExtensionPropertyType, S as ExtensionSearchableModifier, V as ExtensionStringProperty, W as ExtensionUniqueConstraint, X as ExtensionUniqueWhere, Y as GRAPH_EXTENSION_TOP_LEVEL_KEYS, Z as GraphExtensionTopLevelKey, h as GraphExtensionVersion, L as LEGACY_GRAPH_EXTENSION_VERSION } from '../extension-types-YGFJPrzK.cjs';
|
|
3
|
+
import { T as TypeGraphError, i as ErrorCategory } from '../index-SEvUHDA6.cjs';
|
|
4
4
|
import { R as Result } from '../result-DWo6mUVz.cjs';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import '../materialize-indexes-
|
|
6
|
+
import '../materialize-indexes-D20xNluI.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Validates and freezes a graph-extension document.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { G as GraphExtension, K as KindEntity } from '../extension-types-
|
|
2
|
-
export {
|
|
3
|
-
import { T as TypeGraphError, i as ErrorCategory } from '../index-
|
|
1
|
+
import { G as GraphExtension, K as KindEntity } from '../extension-types-YGFJPrzK.js';
|
|
2
|
+
export { C as CURRENT_GRAPH_EXTENSION_VERSION, w as ExtensionArrayItemType, x as ExtensionArrayProperty, y as ExtensionBooleanProperty, j as ExtensionEdgeDef, z as ExtensionEdgeIndex, B as ExtensionEmbeddingModifier, F as ExtensionEnumProperty, l as ExtensionIndex, H as ExtensionIndexWhere, i as ExtensionNodeDef, M as ExtensionNodeIndex, O as ExtensionNumberProperty, P as ExtensionObjectFieldProperty, Q as ExtensionObjectProperty, k as ExtensionOntologyRelation, R as ExtensionPropertyType, S as ExtensionSearchableModifier, V as ExtensionStringProperty, W as ExtensionUniqueConstraint, X as ExtensionUniqueWhere, Y as GRAPH_EXTENSION_TOP_LEVEL_KEYS, Z as GraphExtensionTopLevelKey, h as GraphExtensionVersion, L as LEGACY_GRAPH_EXTENSION_VERSION } from '../extension-types-YGFJPrzK.js';
|
|
3
|
+
import { T as TypeGraphError, i as ErrorCategory } from '../index-DGX6D9j1.js';
|
|
4
4
|
import { R as Result } from '../result-DWo6mUVz.js';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import '../materialize-indexes-
|
|
6
|
+
import '../materialize-indexes-CAkIYFV-.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Validates and freezes a graph-extension document.
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkD3EWZ67S_cjs = require('../chunk-D3EWZ67S.cjs');
|
|
4
4
|
require('../chunk-HTGDWIDE.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var chunkSST7XDY6_cjs = require('../chunk-SST7XDY6.cjs');
|
|
6
|
+
var chunkNG5N7R45_cjs = require('../chunk-NG5N7R45.cjs');
|
|
7
|
+
var chunkMBLXCV2Y_cjs = require('../chunk-MBLXCV2Y.cjs');
|
|
8
8
|
require('../chunk-3QRBXYT5.cjs');
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-3IR2GEMJ.cjs');
|
|
10
|
+
require('../chunk-EF3Z645U.cjs');
|
|
11
11
|
require('../chunk-ZFWNO3GE.cjs');
|
|
12
12
|
var chunkKTIEB7VH_cjs = require('../chunk-KTIEB7VH.cjs');
|
|
13
|
-
require('../chunk-
|
|
14
|
-
var
|
|
13
|
+
require('../chunk-I4W7MKVG.cjs');
|
|
14
|
+
var chunkOIE2UPVG_cjs = require('../chunk-OIE2UPVG.cjs');
|
|
15
15
|
require('../chunk-CFNT3ITG.cjs');
|
|
16
16
|
var chunk73KASJGO_cjs = require('../chunk-73KASJGO.cjs');
|
|
17
|
+
require('../chunk-3E7SNSIA.cjs');
|
|
17
18
|
var chunkJIEJCTDS_cjs = require('../chunk-JIEJCTDS.cjs');
|
|
18
19
|
require('../chunk-FLRCVI2G.cjs');
|
|
19
20
|
var zod = require('zod');
|
|
20
21
|
|
|
21
22
|
// src/graph-merge/canonical-props.ts
|
|
22
23
|
function canonicalizeProps(props) {
|
|
23
|
-
return JSON.stringify(props,
|
|
24
|
+
return JSON.stringify(props, chunkOIE2UPVG_cjs.sortedReplacer);
|
|
24
25
|
}
|
|
25
26
|
function canonicalValueKey(value) {
|
|
26
|
-
return JSON.stringify(value,
|
|
27
|
+
return JSON.stringify(value, chunkOIE2UPVG_cjs.sortedReplacer);
|
|
27
28
|
}
|
|
28
29
|
function parseRowProps(props) {
|
|
29
30
|
let parsed;
|
|
@@ -228,8 +229,8 @@ function byId(left, right) {
|
|
|
228
229
|
}
|
|
229
230
|
async function diffAgainstBase(baseStore, forkStore) {
|
|
230
231
|
const graph = baseStore.graph;
|
|
231
|
-
const nodeKinds =
|
|
232
|
-
const edgeKinds =
|
|
232
|
+
const nodeKinds = chunkMBLXCV2Y_cjs.getNodeKinds(graph);
|
|
233
|
+
const edgeKinds = chunkMBLXCV2Y_cjs.getEdgeKinds(graph);
|
|
233
234
|
const newNodes = [];
|
|
234
235
|
const modifiedNodes = [];
|
|
235
236
|
const deletedNodes = [];
|
|
@@ -311,7 +312,7 @@ async function readActiveSchemaVersion(backend, graphId) {
|
|
|
311
312
|
}
|
|
312
313
|
async function computeSchemaComponent(store) {
|
|
313
314
|
const version = await readActiveSchemaVersion(store.backend, store.graphId);
|
|
314
|
-
return
|
|
315
|
+
return chunkNG5N7R45_cjs.computeSchemaHash(chunkNG5N7R45_cjs.serializeSchema(store.graph, version));
|
|
315
316
|
}
|
|
316
317
|
function byDigestEntry(left, right) {
|
|
317
318
|
const byKind = compareStrings(left.kind, right.kind);
|
|
@@ -319,8 +320,8 @@ function byDigestEntry(left, right) {
|
|
|
319
320
|
}
|
|
320
321
|
var CONTENT_FINGERPRINT_BYTES = 16;
|
|
321
322
|
async function computeContentComponent(backend, graphId, graph) {
|
|
322
|
-
const nodeKinds =
|
|
323
|
-
const edgeKinds =
|
|
323
|
+
const nodeKinds = chunkMBLXCV2Y_cjs.getNodeKinds(graph);
|
|
324
|
+
const edgeKinds = chunkMBLXCV2Y_cjs.getEdgeKinds(graph);
|
|
324
325
|
const nodeDigest = [];
|
|
325
326
|
for (const kind of nodeKinds) {
|
|
326
327
|
const rows = await enumerateAllNodes(backend, graphId, kind);
|
|
@@ -446,17 +447,17 @@ var CLONE_IMPORT_BATCH_SIZE = 1e3;
|
|
|
446
447
|
function cloneWorkingCopyStrategy(makeBackend) {
|
|
447
448
|
return {
|
|
448
449
|
create: async (baseStore) => {
|
|
449
|
-
const data = await
|
|
450
|
+
const data = await chunkSST7XDY6_cjs.exportGraph(baseStore, {
|
|
450
451
|
includeMeta: true,
|
|
451
452
|
includeDeleted: false
|
|
452
453
|
});
|
|
453
454
|
const backend = await makeBackend();
|
|
454
455
|
try {
|
|
455
|
-
const [freshStore] = await
|
|
456
|
+
const [freshStore] = await chunkD3EWZ67S_cjs.createStoreWithSchema(
|
|
456
457
|
baseStore.graph,
|
|
457
458
|
backend
|
|
458
459
|
);
|
|
459
|
-
const result = await
|
|
460
|
+
const result = await chunkSST7XDY6_cjs.importGraph(freshStore, data, {
|
|
460
461
|
onConflict: "error",
|
|
461
462
|
onUnknownProperty: "error",
|
|
462
463
|
validateReferences: true,
|
|
@@ -484,7 +485,7 @@ function cloneWorkingCopyStrategy(makeBackend) {
|
|
|
484
485
|
async function branch(baseStore, makeBackend, options, strategy) {
|
|
485
486
|
try {
|
|
486
487
|
const base = await computeBaseVersion(baseStore);
|
|
487
|
-
const id = options?.id ?? asBranchId(
|
|
488
|
+
const id = options?.id ?? asBranchId(chunkD3EWZ67S_cjs.generateId());
|
|
488
489
|
const workingCopyStrategy = strategy ?? cloneWorkingCopyStrategy(makeBackend);
|
|
489
490
|
const store = await workingCopyStrategy.create(baseStore);
|
|
490
491
|
return chunkKTIEB7VH_cjs.ok({ id, base, store });
|
|
@@ -513,7 +514,7 @@ function constraintSignature(node, constraint) {
|
|
|
513
514
|
return void 0;
|
|
514
515
|
}
|
|
515
516
|
}
|
|
516
|
-
return `${constraint.name}${KEY_PART_SEPARATOR}${
|
|
517
|
+
return `${constraint.name}${KEY_PART_SEPARATOR}${chunkD3EWZ67S_cjs.computeUniqueKey(
|
|
517
518
|
props,
|
|
518
519
|
constraint.fields,
|
|
519
520
|
constraint.collation
|
|
@@ -2056,7 +2057,7 @@ function normalizeMergeOptions(options = {}) {
|
|
|
2056
2057
|
...provenanceWeights === void 0 ? {} : { provenanceWeights }
|
|
2057
2058
|
};
|
|
2058
2059
|
}
|
|
2059
|
-
var Provenance =
|
|
2060
|
+
var Provenance = chunkNG5N7R45_cjs.defineNode("Provenance", {
|
|
2060
2061
|
schema: zod.z.object({
|
|
2061
2062
|
targetGraphId: zod.z.string(),
|
|
2062
2063
|
role: zod.z.enum(["node", "edge"]),
|
|
@@ -2070,14 +2071,14 @@ function provenanceGraphId(targetGraphId) {
|
|
|
2070
2071
|
return `${targetGraphId}::merge-provenance`;
|
|
2071
2072
|
}
|
|
2072
2073
|
function buildProvenanceGraph(targetGraphId) {
|
|
2073
|
-
return
|
|
2074
|
+
return chunkMBLXCV2Y_cjs.defineGraph({
|
|
2074
2075
|
id: provenanceGraphId(targetGraphId),
|
|
2075
2076
|
nodes: { Provenance: { type: Provenance } },
|
|
2076
2077
|
edges: {}
|
|
2077
2078
|
});
|
|
2078
2079
|
}
|
|
2079
2080
|
async function openProvenanceStore(backend, targetGraphId) {
|
|
2080
|
-
const [store] = await
|
|
2081
|
+
const [store] = await chunkD3EWZ67S_cjs.createStoreWithSchema(
|
|
2081
2082
|
buildProvenanceGraph(targetGraphId),
|
|
2082
2083
|
backend
|
|
2083
2084
|
);
|