@nicia-ai/typegraph 0.6.0 → 0.7.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/{ast-Cq9qrnNP.d.cts → ast-Bh2NDeaK.d.cts} +1 -1
- package/dist/{ast-CG87Zr6p.d.ts → ast-COMyNeMn.d.ts} +1 -1
- package/dist/backend/postgres/index.d.cts +7 -7
- package/dist/backend/postgres/index.d.ts +7 -7
- package/dist/backend/sqlite/index.d.cts +7 -7
- package/dist/backend/sqlite/index.d.ts +7 -7
- package/dist/backend/sqlite/local.d.cts +5 -5
- package/dist/backend/sqlite/local.d.ts +5 -5
- package/dist/{chunk-K2ROKOK3.cjs → chunk-BELXZTVK.cjs} +2 -2
- package/dist/chunk-BELXZTVK.cjs.map +1 -0
- package/dist/{chunk-TGDFBLGS.js → chunk-JUZWF5NX.js} +2 -2
- package/dist/chunk-JUZWF5NX.js.map +1 -0
- package/dist/{chunk-LDM2AFKZ.cjs → chunk-PDQBCQ34.cjs} +6 -6
- package/dist/{chunk-LDM2AFKZ.cjs.map → chunk-PDQBCQ34.cjs.map} +1 -1
- package/dist/{chunk-M5SOQ7UV.js → chunk-SH237DWD.js} +3 -3
- package/dist/{chunk-M5SOQ7UV.js.map → chunk-SH237DWD.js.map} +1 -1
- package/dist/{ddl-Bcyb4DW1.d.cts → ddl-BJg93HDN.d.cts} +2 -2
- package/dist/{ddl-D7DQx8w8.d.ts → ddl-CsfWcl_B.d.ts} +2 -2
- package/dist/index.cjs +61 -61
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.d.cts +5 -5
- package/dist/indexes/index.d.ts +5 -5
- package/dist/interchange/index.cjs +6 -6
- package/dist/interchange/index.d.cts +5 -5
- package/dist/interchange/index.d.ts +5 -5
- package/dist/interchange/index.js +1 -1
- package/dist/{manager-BImRiYwz.d.cts → manager-Ba2CXGMG.d.ts} +5 -5
- package/dist/{manager-DGQ9UF18.d.ts → manager-Cu3JQN0H.d.cts} +5 -5
- package/dist/profiler/index.d.cts +7 -7
- package/dist/profiler/index.d.ts +7 -7
- package/dist/schema/index.cjs +21 -21
- package/dist/schema/index.d.cts +5 -5
- package/dist/schema/index.d.ts +5 -5
- package/dist/schema/index.js +3 -3
- package/dist/{sqlite-FWGZLwDd.d.cts → sqlite-DVca_IIy.d.cts} +1 -1
- package/dist/{sqlite-CSJ-fgIm.d.ts → sqlite-H01wIXvB.d.ts} +1 -1
- package/dist/{store-DNv1yd3n.d.cts → store-CL-QMus7.d.cts} +62 -61
- package/dist/{store-CscQUG-S.d.ts → store-DJpuUOSL.d.ts} +62 -61
- package/dist/{types-D5ggX07j.d.ts → types-1YJKodRv.d.ts} +1 -1
- package/dist/{types-BbMn2Ycv.d.cts → types-C8Ra3ROE.d.cts} +2 -2
- package/dist/{types-C2rhqkg7.d.ts → types-CC8eB0PB.d.ts} +2 -2
- package/dist/{types-DJZoHy5R.d.ts → types-COPePE8_.d.ts} +1 -1
- package/dist/{types-DEMAqkA1.d.cts → types-CVtGFpB9.d.cts} +1 -1
- package/dist/{types-DolHw9pJ.d.cts → types-DMzKq0d5.d.cts} +11 -1
- package/dist/{types-DolHw9pJ.d.ts → types-DMzKq0d5.d.ts} +11 -1
- package/dist/{types-SVDEKnU6.d.cts → types-GLkwvQvS.d.cts} +1 -1
- package/package.json +6 -1
- package/dist/chunk-K2ROKOK3.cjs.map +0 -1
- package/dist/chunk-TGDFBLGS.js.map +0 -1
package/dist/indexes/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as SqlDialect, A as AnyEdgeType, N as NodeType } from '../types-
|
|
2
|
-
import { E as EdgeIndex, T as TypeGraphIndex, N as NodeIndex, a as EdgeIndexConfig, b as NodeIndexConfig, I as IndexWhereExpression } from '../types-
|
|
3
|
-
export { c as EdgeIndexDirection, d as EdgeIndexWhereBuilder, e as IndexScope, f as IndexWhereFieldBuilder, g as IndexWhereInput, h as NodeIndexWhereBuilder, S as SystemColumnName } from '../types-
|
|
1
|
+
import { S as SqlDialect, A as AnyEdgeType, N as NodeType } from '../types-DMzKq0d5.cjs';
|
|
2
|
+
import { E as EdgeIndex, T as TypeGraphIndex, N as NodeIndex, a as EdgeIndexConfig, b as NodeIndexConfig, I as IndexWhereExpression } from '../types-C8Ra3ROE.cjs';
|
|
3
|
+
export { c as EdgeIndexDirection, d as EdgeIndexWhereBuilder, e as IndexScope, f as IndexWhereFieldBuilder, g as IndexWhereInput, h as NodeIndexWhereBuilder, S as SystemColumnName } from '../types-C8Ra3ROE.cjs';
|
|
4
4
|
import { SQLWrapper } from 'drizzle-orm';
|
|
5
5
|
import { IndexBuilder } from 'drizzle-orm/pg-core';
|
|
6
6
|
import { IndexBuilder as IndexBuilder$1 } from 'drizzle-orm/sqlite-core';
|
|
7
|
-
import { D as DeclaredIndex } from '../types-
|
|
7
|
+
import { D as DeclaredIndex } from '../types-CVtGFpB9.cjs';
|
|
8
8
|
import 'zod';
|
|
9
|
-
import '../ast-
|
|
9
|
+
import '../ast-Bh2NDeaK.cjs';
|
|
10
10
|
|
|
11
11
|
type GenerateIndexDdlOptions = Readonly<{
|
|
12
12
|
nodesTableName?: string | undefined;
|
package/dist/indexes/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as SqlDialect, A as AnyEdgeType, N as NodeType } from '../types-
|
|
2
|
-
import { E as EdgeIndex, T as TypeGraphIndex, N as NodeIndex, a as EdgeIndexConfig, b as NodeIndexConfig, I as IndexWhereExpression } from '../types-
|
|
3
|
-
export { c as EdgeIndexDirection, d as EdgeIndexWhereBuilder, e as IndexScope, f as IndexWhereFieldBuilder, g as IndexWhereInput, h as NodeIndexWhereBuilder, S as SystemColumnName } from '../types-
|
|
1
|
+
import { S as SqlDialect, A as AnyEdgeType, N as NodeType } from '../types-DMzKq0d5.js';
|
|
2
|
+
import { E as EdgeIndex, T as TypeGraphIndex, N as NodeIndex, a as EdgeIndexConfig, b as NodeIndexConfig, I as IndexWhereExpression } from '../types-CC8eB0PB.js';
|
|
3
|
+
export { c as EdgeIndexDirection, d as EdgeIndexWhereBuilder, e as IndexScope, f as IndexWhereFieldBuilder, g as IndexWhereInput, h as NodeIndexWhereBuilder, S as SystemColumnName } from '../types-CC8eB0PB.js';
|
|
4
4
|
import { SQLWrapper } from 'drizzle-orm';
|
|
5
5
|
import { IndexBuilder } from 'drizzle-orm/pg-core';
|
|
6
6
|
import { IndexBuilder as IndexBuilder$1 } from 'drizzle-orm/sqlite-core';
|
|
7
|
-
import { D as DeclaredIndex } from '../types-
|
|
7
|
+
import { D as DeclaredIndex } from '../types-COPePE8_.js';
|
|
8
8
|
import 'zod';
|
|
9
|
-
import '../ast-
|
|
9
|
+
import '../ast-COMyNeMn.js';
|
|
10
10
|
|
|
11
11
|
type GenerateIndexDdlOptions = Readonly<{
|
|
12
12
|
nodesTableName?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBELXZTVK_cjs = require('../chunk-BELXZTVK.cjs');
|
|
4
4
|
require('../chunk-44SXEVF4.cjs');
|
|
5
5
|
var zod = require('zod');
|
|
6
6
|
|
|
@@ -121,8 +121,8 @@ async function exportGraph(store, options) {
|
|
|
121
121
|
const graph = store.graph;
|
|
122
122
|
const graphId = store.graphId;
|
|
123
123
|
const backend = store.backend;
|
|
124
|
-
const nodeKindsToExport = options_.nodeKinds ??
|
|
125
|
-
const edgeKindsToExport = options_.edgeKinds ??
|
|
124
|
+
const nodeKindsToExport = options_.nodeKinds ?? chunkBELXZTVK_cjs.getNodeKinds(graph);
|
|
125
|
+
const edgeKindsToExport = options_.edgeKinds ?? chunkBELXZTVK_cjs.getEdgeKinds(graph);
|
|
126
126
|
const nodes = [];
|
|
127
127
|
for (const kind of nodeKindsToExport) {
|
|
128
128
|
const kindNodes = await exportNodesOfKind(backend, graphId, kind, options_);
|
|
@@ -136,7 +136,7 @@ async function exportGraph(store, options) {
|
|
|
136
136
|
const schemaVersion = await backend.getActiveSchema(graphId);
|
|
137
137
|
return {
|
|
138
138
|
formatVersion: FORMAT_VERSION,
|
|
139
|
-
exportedAt:
|
|
139
|
+
exportedAt: chunkBELXZTVK_cjs.nowIso(),
|
|
140
140
|
source: {
|
|
141
141
|
type: "typegraph-export",
|
|
142
142
|
graphId,
|
|
@@ -284,7 +284,7 @@ async function importGraph(store, data, options) {
|
|
|
284
284
|
}
|
|
285
285
|
function buildNodeSchemaMap(graph) {
|
|
286
286
|
const map = /* @__PURE__ */ new Map();
|
|
287
|
-
for (const kindName of
|
|
287
|
+
for (const kindName of chunkBELXZTVK_cjs.getNodeKinds(graph)) {
|
|
288
288
|
const registration = graph.nodes[kindName];
|
|
289
289
|
map.set(kindName, {
|
|
290
290
|
registration,
|
|
@@ -295,7 +295,7 @@ function buildNodeSchemaMap(graph) {
|
|
|
295
295
|
}
|
|
296
296
|
function buildEdgeSchemaMap(graph) {
|
|
297
297
|
const map = /* @__PURE__ */ new Map();
|
|
298
|
-
for (const kindName of
|
|
298
|
+
for (const kindName of chunkBELXZTVK_cjs.getEdgeKinds(graph)) {
|
|
299
299
|
const registration = graph.edges[kindName];
|
|
300
300
|
map.set(kindName, {
|
|
301
301
|
registration,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { G as GraphDef } from '../manager-
|
|
3
|
-
import {
|
|
4
|
-
import '../types-
|
|
5
|
-
import '../types-
|
|
2
|
+
import { G as GraphDef } from '../manager-Cu3JQN0H.cjs';
|
|
3
|
+
import { J as Store } from '../store-CL-QMus7.cjs';
|
|
4
|
+
import '../types-DMzKq0d5.cjs';
|
|
5
|
+
import '../types-GLkwvQvS.cjs';
|
|
6
6
|
import 'drizzle-orm';
|
|
7
|
-
import '../ast-
|
|
7
|
+
import '../ast-Bh2NDeaK.cjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Graph interchange format types.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { G as GraphDef } from '../manager-
|
|
3
|
-
import {
|
|
4
|
-
import '../types-
|
|
5
|
-
import '../types-
|
|
2
|
+
import { G as GraphDef } from '../manager-Ba2CXGMG.js';
|
|
3
|
+
import { J as Store } from '../store-DJpuUOSL.js';
|
|
4
|
+
import '../types-DMzKq0d5.js';
|
|
5
|
+
import '../types-1YJKodRv.js';
|
|
6
6
|
import 'drizzle-orm';
|
|
7
|
-
import '../ast-
|
|
7
|
+
import '../ast-COMyNeMn.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Graph interchange format types.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O as OntologyRelation, d as SerializedNodeDef, e as SerializedEdgeDef, j as SerializedSchema, G as GraphBackend, n as SchemaVersionRow } from './types-
|
|
1
|
+
import { i as NodeRegistration, d as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, N as NodeType, e as EdgeTypeWithEndpoints, G as GraphDefaults, A as AnyEdgeType } from './types-DMzKq0d5.js';
|
|
2
|
+
import { O as OntologyRelation, d as SerializedNodeDef, e as SerializedEdgeDef, j as SerializedSchema, G as GraphBackend, n as SchemaVersionRow } from './types-1YJKodRv.js';
|
|
3
3
|
|
|
4
4
|
/** Brand key for GraphDef */
|
|
5
5
|
declare const GRAPH_DEF_BRAND: "__graphDef";
|
|
@@ -109,7 +109,7 @@ type AllEdgeTypes<G extends GraphDef> = {
|
|
|
109
109
|
* });
|
|
110
110
|
* ```
|
|
111
111
|
*/
|
|
112
|
-
declare function defineGraph<TNodes extends Record<string, NodeRegistration<NodeType>>, TEdges extends Record<string, EdgeEntry>, TOntology extends readonly OntologyRelation[]>(config: GraphDefConfig<TNodes, TEdges, TOntology>): GraphDef<TNodes, NormalizedEdges<TEdges>, TOntology>;
|
|
112
|
+
declare function defineGraph<const TNodes extends Record<string, NodeRegistration<NodeType>>, const TEdges extends Record<string, EdgeEntry>, const TOntology extends readonly OntologyRelation[]>(config: GraphDefConfig<TNodes, TEdges, TOntology>): GraphDef<TNodes, NormalizedEdges<TEdges>, TOntology>;
|
|
113
113
|
/**
|
|
114
114
|
* Checks if a value is a GraphDef.
|
|
115
115
|
*/
|
|
@@ -117,11 +117,11 @@ declare function isGraphDef(value: unknown): value is GraphDef;
|
|
|
117
117
|
/**
|
|
118
118
|
* Gets all node kind names from a GraphDef.
|
|
119
119
|
*/
|
|
120
|
-
declare function getNodeKinds<G extends GraphDef>(graph: G): readonly string[];
|
|
120
|
+
declare function getNodeKinds<G extends GraphDef>(graph: G): readonly (keyof G["nodes"] & string)[];
|
|
121
121
|
/**
|
|
122
122
|
* Gets all edge kind names from a GraphDef.
|
|
123
123
|
*/
|
|
124
|
-
declare function getEdgeKinds<G extends GraphDef>(graph: G): readonly string[];
|
|
124
|
+
declare function getEdgeKinds<G extends GraphDef>(graph: G): readonly (keyof G["edges"] & string)[];
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* KindRegistry holds precomputed closures for ontological reasoning.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O as OntologyRelation, d as SerializedNodeDef, e as SerializedEdgeDef, j as SerializedSchema, G as GraphBackend, n as SchemaVersionRow } from './types-
|
|
1
|
+
import { i as NodeRegistration, d as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, N as NodeType, e as EdgeTypeWithEndpoints, G as GraphDefaults, A as AnyEdgeType } from './types-DMzKq0d5.cjs';
|
|
2
|
+
import { O as OntologyRelation, d as SerializedNodeDef, e as SerializedEdgeDef, j as SerializedSchema, G as GraphBackend, n as SchemaVersionRow } from './types-GLkwvQvS.cjs';
|
|
3
3
|
|
|
4
4
|
/** Brand key for GraphDef */
|
|
5
5
|
declare const GRAPH_DEF_BRAND: "__graphDef";
|
|
@@ -109,7 +109,7 @@ type AllEdgeTypes<G extends GraphDef> = {
|
|
|
109
109
|
* });
|
|
110
110
|
* ```
|
|
111
111
|
*/
|
|
112
|
-
declare function defineGraph<TNodes extends Record<string, NodeRegistration<NodeType>>, TEdges extends Record<string, EdgeEntry>, TOntology extends readonly OntologyRelation[]>(config: GraphDefConfig<TNodes, TEdges, TOntology>): GraphDef<TNodes, NormalizedEdges<TEdges>, TOntology>;
|
|
112
|
+
declare function defineGraph<const TNodes extends Record<string, NodeRegistration<NodeType>>, const TEdges extends Record<string, EdgeEntry>, const TOntology extends readonly OntologyRelation[]>(config: GraphDefConfig<TNodes, TEdges, TOntology>): GraphDef<TNodes, NormalizedEdges<TEdges>, TOntology>;
|
|
113
113
|
/**
|
|
114
114
|
* Checks if a value is a GraphDef.
|
|
115
115
|
*/
|
|
@@ -117,11 +117,11 @@ declare function isGraphDef(value: unknown): value is GraphDef;
|
|
|
117
117
|
/**
|
|
118
118
|
* Gets all node kind names from a GraphDef.
|
|
119
119
|
*/
|
|
120
|
-
declare function getNodeKinds<G extends GraphDef>(graph: G): readonly string[];
|
|
120
|
+
declare function getNodeKinds<G extends GraphDef>(graph: G): readonly (keyof G["nodes"] & string)[];
|
|
121
121
|
/**
|
|
122
122
|
* Gets all edge kind names from a GraphDef.
|
|
123
123
|
*/
|
|
124
|
-
declare function getEdgeKinds<G extends GraphDef>(graph: G): readonly string[];
|
|
124
|
+
declare function getEdgeKinds<G extends GraphDef>(graph: G): readonly (keyof G["edges"] & string)[];
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* KindRegistry holds precomputed closures for ontological reasoning.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { G as GraphDef } from '../manager-
|
|
2
|
-
import { Q as QueryAst } from '../ast-
|
|
3
|
-
import {
|
|
4
|
-
import { P as ProfilerOptions, a as ProfileReport } from '../types-
|
|
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-
|
|
6
|
-
import '../types-
|
|
1
|
+
import { G as GraphDef } from '../manager-Cu3JQN0H.cjs';
|
|
2
|
+
import { Q as QueryAst } from '../ast-Bh2NDeaK.cjs';
|
|
3
|
+
import { J as Store } from '../store-CL-QMus7.cjs';
|
|
4
|
+
import { P as ProfilerOptions, a as ProfileReport } from '../types-CVtGFpB9.cjs';
|
|
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-CVtGFpB9.cjs';
|
|
6
|
+
import '../types-DMzKq0d5.cjs';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import '../types-
|
|
8
|
+
import '../types-GLkwvQvS.cjs';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/profiler/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { G as GraphDef } from '../manager-
|
|
2
|
-
import { Q as QueryAst } from '../ast-
|
|
3
|
-
import {
|
|
4
|
-
import { P as ProfilerOptions, a as ProfileReport } from '../types-
|
|
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-
|
|
6
|
-
import '../types-
|
|
1
|
+
import { G as GraphDef } from '../manager-Ba2CXGMG.js';
|
|
2
|
+
import { Q as QueryAst } from '../ast-COMyNeMn.js';
|
|
3
|
+
import { J as Store } from '../store-DJpuUOSL.js';
|
|
4
|
+
import { P as ProfilerOptions, a as ProfileReport } from '../types-COPePE8_.js';
|
|
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-COPePE8_.js';
|
|
6
|
+
import '../types-DMzKq0d5.js';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import '../types-
|
|
8
|
+
import '../types-1YJKodRv.js';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/schema/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkPDQBCQ34_cjs = require('../chunk-PDQBCQ34.cjs');
|
|
4
|
+
require('../chunk-BELXZTVK.cjs');
|
|
5
5
|
require('../chunk-44SXEVF4.cjs');
|
|
6
6
|
|
|
7
7
|
// src/schema/deserializer.ts
|
|
@@ -42,7 +42,7 @@ function buildRegistryFromClosures(schema) {
|
|
|
42
42
|
const edgeImplyingClosure = recordToMap(closures.edgeImplyingClosure);
|
|
43
43
|
const nodeKinds = /* @__PURE__ */ new Map();
|
|
44
44
|
const edgeKinds = /* @__PURE__ */ new Map();
|
|
45
|
-
return new
|
|
45
|
+
return new chunkPDQBCQ34_cjs.KindRegistry(nodeKinds, edgeKinds, {
|
|
46
46
|
subClassAncestors,
|
|
47
47
|
subClassDescendants,
|
|
48
48
|
broaderClosure,
|
|
@@ -70,75 +70,75 @@ function simpleRecordToMap(record) {
|
|
|
70
70
|
|
|
71
71
|
Object.defineProperty(exports, "computeSchemaDiff", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkPDQBCQ34_cjs.computeSchemaDiff; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "computeSchemaHash", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkPDQBCQ34_cjs.computeSchemaHash; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "createValidationError", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkPDQBCQ34_cjs.createValidationError; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "deserializeWherePredicate", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkPDQBCQ34_cjs.deserializeWherePredicate; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "ensureSchema", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkPDQBCQ34_cjs.ensureSchema; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "getActiveSchema", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkPDQBCQ34_cjs.getActiveSchema; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "getMigrationActions", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkPDQBCQ34_cjs.getMigrationActions; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "getSchemaChanges", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkPDQBCQ34_cjs.getSchemaChanges; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "initializeSchema", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkPDQBCQ34_cjs.initializeSchema; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "isBackwardsCompatible", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkPDQBCQ34_cjs.isBackwardsCompatible; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "isSchemaInitialized", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkPDQBCQ34_cjs.isSchemaInitialized; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "migrateSchema", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkPDQBCQ34_cjs.migrateSchema; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "rollbackSchema", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkPDQBCQ34_cjs.rollbackSchema; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "serializeSchema", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkPDQBCQ34_cjs.serializeSchema; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "validateEdgeProps", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkPDQBCQ34_cjs.validateEdgeProps; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "validateNodeProps", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkPDQBCQ34_cjs.validateNodeProps; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "validateProps", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkPDQBCQ34_cjs.validateProps; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "wrapZodError", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkPDQBCQ34_cjs.wrapZodError; }
|
|
142
142
|
});
|
|
143
143
|
exports.deserializeSchema = deserializeSchema;
|
|
144
144
|
//# sourceMappingURL=index.cjs.map
|
package/dist/schema/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { K as KindRegistry, G as GraphDef } from '../manager-
|
|
2
|
-
export { C as ChangeSeverity, h as ChangeType, j as EdgeChange, M as MigrationHookContext, k as NodeChange, O as OntologyChange, l as SchemaDiff, S as SchemaManagerOptions, f as SchemaValidationResult, m as computeSchemaDiff, n as ensureSchema, o as getActiveSchema, p as getMigrationActions, q as getSchemaChanges, r as initializeSchema, s as isBackwardsCompatible, t as isSchemaInitialized, u as migrateSchema, v as rollbackSchema } from '../manager-
|
|
3
|
-
import { d as SerializedNodeDef, e as SerializedEdgeDef, f as SerializedMetaEdge, g as SerializedOntologyRelation, h as SerializedClosures, j as SerializedSchema, k as SchemaHash } from '../types-
|
|
4
|
-
export { J as JsonSchema, l as SerializedOntology, m as SerializedUniqueConstraint } from '../types-
|
|
1
|
+
import { K as KindRegistry, G as GraphDef } from '../manager-Cu3JQN0H.cjs';
|
|
2
|
+
export { C as ChangeSeverity, h as ChangeType, j as EdgeChange, M as MigrationHookContext, k as NodeChange, O as OntologyChange, l as SchemaDiff, S as SchemaManagerOptions, f as SchemaValidationResult, m as computeSchemaDiff, n as ensureSchema, o as getActiveSchema, p as getMigrationActions, q as getSchemaChanges, r as initializeSchema, s as isBackwardsCompatible, t as isSchemaInitialized, u as migrateSchema, v as rollbackSchema } from '../manager-Cu3JQN0H.cjs';
|
|
3
|
+
import { d as SerializedNodeDef, e as SerializedEdgeDef, f as SerializedMetaEdge, g as SerializedOntologyRelation, h as SerializedClosures, j as SerializedSchema, k as SchemaHash } from '../types-GLkwvQvS.cjs';
|
|
4
|
+
export { J as JsonSchema, l as SerializedOntology, m as SerializedUniqueConstraint } from '../types-GLkwvQvS.cjs';
|
|
5
5
|
import { ZodType, ZodError } from 'zod';
|
|
6
6
|
import { k as ValidationIssue, V as ValidationError } from '../index-QTnQwakS.cjs';
|
|
7
|
-
import '../types-
|
|
7
|
+
import '../types-DMzKq0d5.cjs';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
|
|
10
10
|
/**
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { K as KindRegistry, G as GraphDef } from '../manager-
|
|
2
|
-
export { C as ChangeSeverity, h as ChangeType, j as EdgeChange, M as MigrationHookContext, k as NodeChange, O as OntologyChange, l as SchemaDiff, S as SchemaManagerOptions, f as SchemaValidationResult, m as computeSchemaDiff, n as ensureSchema, o as getActiveSchema, p as getMigrationActions, q as getSchemaChanges, r as initializeSchema, s as isBackwardsCompatible, t as isSchemaInitialized, u as migrateSchema, v as rollbackSchema } from '../manager-
|
|
3
|
-
import { d as SerializedNodeDef, e as SerializedEdgeDef, f as SerializedMetaEdge, g as SerializedOntologyRelation, h as SerializedClosures, j as SerializedSchema, k as SchemaHash } from '../types-
|
|
4
|
-
export { J as JsonSchema, l as SerializedOntology, m as SerializedUniqueConstraint } from '../types-
|
|
1
|
+
import { K as KindRegistry, G as GraphDef } from '../manager-Ba2CXGMG.js';
|
|
2
|
+
export { C as ChangeSeverity, h as ChangeType, j as EdgeChange, M as MigrationHookContext, k as NodeChange, O as OntologyChange, l as SchemaDiff, S as SchemaManagerOptions, f as SchemaValidationResult, m as computeSchemaDiff, n as ensureSchema, o as getActiveSchema, p as getMigrationActions, q as getSchemaChanges, r as initializeSchema, s as isBackwardsCompatible, t as isSchemaInitialized, u as migrateSchema, v as rollbackSchema } from '../manager-Ba2CXGMG.js';
|
|
3
|
+
import { d as SerializedNodeDef, e as SerializedEdgeDef, f as SerializedMetaEdge, g as SerializedOntologyRelation, h as SerializedClosures, j as SerializedSchema, k as SchemaHash } from '../types-1YJKodRv.js';
|
|
4
|
+
export { J as JsonSchema, l as SerializedOntology, m as SerializedUniqueConstraint } from '../types-1YJKodRv.js';
|
|
5
5
|
import { ZodType, ZodError } from 'zod';
|
|
6
6
|
import { k as ValidationIssue, V as ValidationError } from '../index-QTnQwakS.js';
|
|
7
|
-
import '../types-
|
|
7
|
+
import '../types-DMzKq0d5.js';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
|
|
10
10
|
/**
|
package/dist/schema/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { KindRegistry } from '../chunk-
|
|
2
|
-
export { computeSchemaDiff, computeSchemaHash, createValidationError, deserializeWherePredicate, ensureSchema, getActiveSchema, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, migrateSchema, rollbackSchema, serializeSchema, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { KindRegistry } from '../chunk-SH237DWD.js';
|
|
2
|
+
export { computeSchemaDiff, computeSchemaHash, createValidationError, deserializeWherePredicate, ensureSchema, getActiveSchema, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, migrateSchema, rollbackSchema, serializeSchema, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-SH237DWD.js';
|
|
3
|
+
import '../chunk-JUZWF5NX.js';
|
|
4
4
|
import '../chunk-SJ2QMDXY.js';
|
|
5
5
|
|
|
6
6
|
// src/schema/deserializer.ts
|