@nicia-ai/typegraph 0.20.0 → 0.21.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-Bh2NDeaK.d.cts → ast-CSLbPIOC.d.ts} +56 -3
- package/dist/{ast-COMyNeMn.d.ts → ast-DogwbBqA.d.cts} +56 -3
- package/dist/backend/postgres/index.cjs +123 -45
- package/dist/backend/postgres/index.cjs.map +1 -1
- package/dist/backend/postgres/index.d.cts +15 -7
- package/dist/backend/postgres/index.d.ts +15 -7
- package/dist/backend/postgres/index.js +101 -23
- package/dist/backend/postgres/index.js.map +1 -1
- package/dist/backend/sqlite/index.cjs +15 -15
- package/dist/backend/sqlite/index.d.cts +11 -7
- package/dist/backend/sqlite/index.d.ts +11 -7
- package/dist/backend/sqlite/index.js +5 -5
- package/dist/backend/sqlite/libsql.cjs +8 -8
- package/dist/backend/sqlite/libsql.d.cts +4 -5
- package/dist/backend/sqlite/libsql.d.ts +4 -5
- package/dist/backend/sqlite/libsql.js +5 -5
- package/dist/backend/sqlite/local.cjs +9 -9
- package/dist/backend/sqlite/local.d.cts +4 -5
- package/dist/backend/sqlite/local.d.ts +4 -5
- package/dist/backend/sqlite/local.js +5 -5
- package/dist/{chunk-LELLOHJK.cjs → chunk-2X7P7AD5.cjs} +35 -35
- package/dist/{chunk-LELLOHJK.cjs.map → chunk-2X7P7AD5.cjs.map} +1 -1
- package/dist/{chunk-GNIYZKBI.js → chunk-4XNE2JG3.js} +376 -8
- package/dist/chunk-4XNE2JG3.js.map +1 -0
- package/dist/{chunk-HXJXTOXR.cjs → chunk-CQL6FOTT.cjs} +82 -21
- package/dist/chunk-CQL6FOTT.cjs.map +1 -0
- package/dist/{chunk-K7SQ3SWP.js → chunk-EYELZHKY.js} +120 -12
- package/dist/chunk-EYELZHKY.js.map +1 -0
- package/dist/{chunk-MME3H4ZF.cjs → chunk-FQCQM3KG.cjs} +385 -9
- package/dist/chunk-FQCQM3KG.cjs.map +1 -0
- package/dist/{chunk-X33WV2UF.cjs → chunk-HRNQ3DVJ.cjs} +24 -21
- package/dist/chunk-HRNQ3DVJ.cjs.map +1 -0
- package/dist/{chunk-W6M7XWKX.js → chunk-JYUQA77I.js} +21 -18
- package/dist/chunk-JYUQA77I.js.map +1 -0
- package/dist/{chunk-LLHFS53Q.js → chunk-NRNJ52AA.js} +72 -11
- package/dist/chunk-NRNJ52AA.js.map +1 -0
- package/dist/{chunk-IYWWXOVK.cjs → chunk-Q73OWTJY.cjs} +204 -89
- package/dist/chunk-Q73OWTJY.cjs.map +1 -0
- package/dist/{chunk-G5CYWKRF.js → chunk-RS5OLGEW.js} +2 -2
- package/dist/{chunk-G5CYWKRF.js.map → chunk-RS5OLGEW.js.map} +1 -1
- package/dist/{chunk-6GWJH6AR.js → chunk-SMMOAVJ5.js} +4 -4
- package/dist/{chunk-6GWJH6AR.js.map → chunk-SMMOAVJ5.js.map} +1 -1
- package/dist/{chunk-QFZQGEQ3.js → chunk-UQVBVBVG.js} +151 -36
- package/dist/chunk-UQVBVBVG.js.map +1 -0
- package/dist/{chunk-P5CNM325.cjs → chunk-UVZHTBZ5.cjs} +123 -11
- package/dist/chunk-UVZHTBZ5.cjs.map +1 -0
- package/dist/{chunk-5GZMPJOP.cjs → chunk-WRWVWKQL.cjs} +2 -2
- package/dist/{chunk-5GZMPJOP.cjs.map → chunk-WRWVWKQL.cjs.map} +1 -1
- package/dist/{ddl-BBo2EcFc.d.cts → ddl-BqkTShcR.d.ts} +28 -6
- package/dist/{ddl-D4jlcOH_.d.ts → ddl-Dk1NDN3M.d.cts} +28 -6
- package/dist/index.cjs +1705 -490
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -10
- package/dist/index.d.ts +8 -10
- package/dist/index.js +1552 -361
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +17 -17
- package/dist/indexes/index.d.cts +5 -5
- package/dist/indexes/index.d.ts +5 -5
- package/dist/indexes/index.js +3 -3
- package/dist/interchange/index.cjs +6 -6
- package/dist/interchange/index.d.cts +4 -5
- package/dist/interchange/index.d.ts +4 -5
- package/dist/interchange/index.js +1 -1
- package/dist/{manager-Chhrq1vl.d.ts → manager-0jVZtiE8.d.ts} +1 -2
- package/dist/{manager-Bj1UEnhE.d.cts → manager-BPK-2PUI.d.cts} +1 -2
- package/dist/profiler/index.cjs +15 -8
- package/dist/profiler/index.cjs.map +1 -1
- package/dist/profiler/index.d.cts +7 -8
- package/dist/profiler/index.d.ts +7 -8
- package/dist/profiler/index.js +8 -1
- package/dist/profiler/index.js.map +1 -1
- package/dist/schema/index.cjs +21 -21
- package/dist/schema/index.d.cts +4 -5
- package/dist/schema/index.d.ts +4 -5
- package/dist/schema/index.js +3 -3
- package/dist/{sqlite-DE-6NWtC.d.cts → sqlite-D1rrwcir.d.cts} +14 -1
- package/dist/{sqlite-Blq-AhmK.d.ts → sqlite-W3rmJMlc.d.ts} +14 -1
- package/dist/{store-BMrRi_mY.d.ts → store-2QW2SIRk.d.cts} +404 -5
- package/dist/{store-DRRvALu8.d.cts → store-C0q13mtJ.d.ts} +404 -5
- package/dist/{types-B3mmOMJV.d.cts → types-CQF88McG.d.cts} +475 -2
- package/dist/{types-ThB4cFLp.d.ts → types-CQF88McG.d.ts} +475 -2
- package/dist/{types-COPePE8_.d.ts → types-CglvhPKz.d.ts} +1 -1
- package/dist/{types-CVtGFpB9.d.cts → types-D23slCOA.d.cts} +1 -1
- package/dist/{types-Ceb01czq.d.ts → types-IMQCuser.d.ts} +2 -2
- package/dist/{types-CZd2PEOc.d.cts → types-vgjar7Ch.d.cts} +2 -2
- package/package.json +9 -9
- package/dist/chunk-GNIYZKBI.js.map +0 -1
- package/dist/chunk-HXJXTOXR.cjs.map +0 -1
- package/dist/chunk-IYWWXOVK.cjs.map +0 -1
- package/dist/chunk-K7SQ3SWP.js.map +0 -1
- package/dist/chunk-LLHFS53Q.js.map +0 -1
- package/dist/chunk-MME3H4ZF.cjs.map +0 -1
- package/dist/chunk-P5CNM325.cjs.map +0 -1
- package/dist/chunk-QFZQGEQ3.js.map +0 -1
- package/dist/chunk-W6M7XWKX.js.map +0 -1
- package/dist/chunk-X33WV2UF.cjs.map +0 -1
- package/dist/types-DMzKq0d5.d.cts +0 -181
- package/dist/types-DMzKq0d5.d.ts +0 -181
package/dist/indexes/index.cjs
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunk2X7P7AD5_cjs = require('../chunk-2X7P7AD5.cjs');
|
|
4
|
+
require('../chunk-FQCQM3KG.cjs');
|
|
5
|
+
require('../chunk-UVZHTBZ5.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "andWhere", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk2X7P7AD5_cjs.andWhere; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "buildPostgresEdgeIndexBuilders", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk2X7P7AD5_cjs.buildPostgresEdgeIndexBuilders; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "buildPostgresNodeIndexBuilders", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk2X7P7AD5_cjs.buildPostgresNodeIndexBuilders; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "buildSqliteEdgeIndexBuilders", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk2X7P7AD5_cjs.buildSqliteEdgeIndexBuilders; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "buildSqliteNodeIndexBuilders", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk2X7P7AD5_cjs.buildSqliteNodeIndexBuilders; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "defineEdgeIndex", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk2X7P7AD5_cjs.defineEdgeIndex; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "defineNodeIndex", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunk2X7P7AD5_cjs.defineNodeIndex; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "generateEdgeIndexDDL", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk2X7P7AD5_cjs.generateEdgeIndexDDL; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "generateIndexDDL", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunk2X7P7AD5_cjs.generateIndexDDL; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "generateNodeIndexDDL", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunk2X7P7AD5_cjs.generateNodeIndexDDL; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "notWhere", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunk2X7P7AD5_cjs.notWhere; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "orWhere", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunk2X7P7AD5_cjs.orWhere; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "toDeclaredIndex", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunk2X7P7AD5_cjs.toDeclaredIndex; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "toDeclaredIndexes", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunk2X7P7AD5_cjs.toDeclaredIndexes; }
|
|
64
64
|
});
|
|
65
65
|
//# sourceMappingURL=index.cjs.map
|
|
66
66
|
//# sourceMappingURL=index.cjs.map
|
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-CQF88McG.cjs';
|
|
2
|
+
import { E as EdgeIndex, T as TypeGraphIndex, N as NodeIndex, a as EdgeIndexConfig, b as NodeIndexConfig, I as IndexWhereExpression } from '../types-vgjar7Ch.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-vgjar7Ch.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-D23slCOA.cjs';
|
|
8
8
|
import 'zod';
|
|
9
|
-
import '../ast-
|
|
9
|
+
import '../ast-DogwbBqA.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-CQF88McG.js';
|
|
2
|
+
import { E as EdgeIndex, T as TypeGraphIndex, N as NodeIndex, a as EdgeIndexConfig, b as NodeIndexConfig, I as IndexWhereExpression } from '../types-IMQCuser.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-IMQCuser.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-CglvhPKz.js';
|
|
8
8
|
import 'zod';
|
|
9
|
-
import '../ast-
|
|
9
|
+
import '../ast-CSLbPIOC.js';
|
|
10
10
|
|
|
11
11
|
type GenerateIndexDdlOptions = Readonly<{
|
|
12
12
|
nodesTableName?: string | undefined;
|
package/dist/indexes/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { andWhere, buildPostgresEdgeIndexBuilders, buildPostgresNodeIndexBuilders, buildSqliteEdgeIndexBuilders, buildSqliteNodeIndexBuilders, defineEdgeIndex, defineNodeIndex, generateEdgeIndexDDL, generateIndexDDL, generateNodeIndexDDL, notWhere, orWhere, toDeclaredIndex, toDeclaredIndexes } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { andWhere, buildPostgresEdgeIndexBuilders, buildPostgresNodeIndexBuilders, buildSqliteEdgeIndexBuilders, buildSqliteNodeIndexBuilders, defineEdgeIndex, defineNodeIndex, generateEdgeIndexDDL, generateIndexDDL, generateNodeIndexDDL, notWhere, orWhere, toDeclaredIndex, toDeclaredIndexes } from '../chunk-SMMOAVJ5.js';
|
|
2
|
+
import '../chunk-4XNE2JG3.js';
|
|
3
|
+
import '../chunk-EYELZHKY.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWRWVWKQL_cjs = require('../chunk-WRWVWKQL.cjs');
|
|
4
4
|
require('../chunk-O5PST6TB.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 ?? chunkWRWVWKQL_cjs.getNodeKinds(graph);
|
|
125
|
+
const edgeKindsToExport = options_.edgeKinds ?? chunkWRWVWKQL_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: chunkWRWVWKQL_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 chunkWRWVWKQL_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 chunkWRWVWKQL_cjs.getEdgeKinds(graph)) {
|
|
299
299
|
const registration = graph.edges[kindName];
|
|
300
300
|
map.set(kindName, {
|
|
301
301
|
registration,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { G as GraphDef } from '../manager-
|
|
3
|
-
import {
|
|
4
|
-
import '../types-
|
|
5
|
-
import '../types-B3mmOMJV.cjs';
|
|
2
|
+
import { G as GraphDef } from '../manager-BPK-2PUI.cjs';
|
|
3
|
+
import { aj as Store } from '../store-2QW2SIRk.cjs';
|
|
4
|
+
import '../types-CQF88McG.cjs';
|
|
6
5
|
import 'drizzle-orm';
|
|
7
|
-
import '../ast-
|
|
6
|
+
import '../ast-DogwbBqA.cjs';
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* Graph interchange format types.
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { G as GraphDef } from '../manager-
|
|
3
|
-
import {
|
|
4
|
-
import '../types-
|
|
5
|
-
import '../types-ThB4cFLp.js';
|
|
2
|
+
import { G as GraphDef } from '../manager-0jVZtiE8.js';
|
|
3
|
+
import { aj as Store } from '../store-C0q13mtJ.js';
|
|
4
|
+
import '../types-CQF88McG.js';
|
|
6
5
|
import 'drizzle-orm';
|
|
7
|
-
import '../ast-
|
|
6
|
+
import '../ast-CSLbPIOC.js';
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* Graph interchange format types.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O as OntologyRelation, d as SerializedNodeDef, e as SerializedEdgeDef, j as SerializedSchema, G as GraphBackend, n as SchemaVersionRow } from './types-ThB4cFLp.js';
|
|
1
|
+
import { r as NodeRegistration, f as EdgeRegistration, O as OntologyRelation, b as DeleteBehavior, T as TemporalMode, N as NodeType, A as AnyEdgeType, n as GraphDefaults, W as SerializedNodeDef, X as SerializedEdgeDef, $ as SerializedSchema, G as GraphBackend, a4 as SchemaVersionRow } from './types-CQF88McG.js';
|
|
3
2
|
|
|
4
3
|
/** Brand key for GraphDef */
|
|
5
4
|
declare const GRAPH_DEF_BRAND: "__graphDef";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O as OntologyRelation, d as SerializedNodeDef, e as SerializedEdgeDef, j as SerializedSchema, G as GraphBackend, n as SchemaVersionRow } from './types-B3mmOMJV.cjs';
|
|
1
|
+
import { r as NodeRegistration, f as EdgeRegistration, O as OntologyRelation, b as DeleteBehavior, T as TemporalMode, N as NodeType, A as AnyEdgeType, n as GraphDefaults, W as SerializedNodeDef, X as SerializedEdgeDef, $ as SerializedSchema, G as GraphBackend, a4 as SchemaVersionRow } from './types-CQF88McG.cjs';
|
|
3
2
|
|
|
4
3
|
/** Brand key for GraphDef */
|
|
5
4
|
declare const GRAPH_DEF_BRAND: "__graphDef";
|
package/dist/profiler/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUVZHTBZ5_cjs = require('../chunk-UVZHTBZ5.cjs');
|
|
4
4
|
|
|
5
5
|
// src/profiler/ast-extractor.ts
|
|
6
6
|
function extractPropertyAccesses(ast) {
|
|
@@ -143,6 +143,13 @@ function extractFromExpression(expr, alias, ast) {
|
|
|
143
143
|
}
|
|
144
144
|
break;
|
|
145
145
|
}
|
|
146
|
+
case "fulltext_match": {
|
|
147
|
+
const extracted = extractFromFieldRef(expr.field, "filter", ast);
|
|
148
|
+
if (extracted) {
|
|
149
|
+
accesses.push({ ...extracted, predicateType: "fulltext_match" });
|
|
150
|
+
}
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
146
153
|
}
|
|
147
154
|
return accesses;
|
|
148
155
|
}
|
|
@@ -168,7 +175,7 @@ function extractFromSelectiveField(field, ast) {
|
|
|
168
175
|
kindNames: resolved.kindNames,
|
|
169
176
|
target: {
|
|
170
177
|
__type: "prop",
|
|
171
|
-
pointer:
|
|
178
|
+
pointer: chunkUVZHTBZ5_cjs.jsonPointer(field.field.split("."))
|
|
172
179
|
},
|
|
173
180
|
context: "select"
|
|
174
181
|
};
|
|
@@ -208,7 +215,7 @@ function extractTargetFromFieldRef(ref) {
|
|
|
208
215
|
return { __type: "prop", pointer: ref.jsonPointer };
|
|
209
216
|
}
|
|
210
217
|
if (ref.path.length > 1 && ref.path[0] === "props") {
|
|
211
|
-
return { __type: "prop", pointer:
|
|
218
|
+
return { __type: "prop", pointer: chunkUVZHTBZ5_cjs.jsonPointer(ref.path.slice(1)) };
|
|
212
219
|
}
|
|
213
220
|
if (ref.path.length === 1) {
|
|
214
221
|
return { __type: "system", field: ref.path[0] };
|
|
@@ -249,7 +256,7 @@ function keyToPath(key) {
|
|
|
249
256
|
target: { __type: "system", field: systemField }
|
|
250
257
|
};
|
|
251
258
|
}
|
|
252
|
-
const pointer =
|
|
259
|
+
const pointer = chunkUVZHTBZ5_cjs.normalizeJsonPointer(
|
|
253
260
|
targetPart
|
|
254
261
|
);
|
|
255
262
|
return {
|
|
@@ -509,7 +516,7 @@ var QueryProfiler = class {
|
|
|
509
516
|
);
|
|
510
517
|
}
|
|
511
518
|
this.#attached = true;
|
|
512
|
-
this.#schemaIntrospector =
|
|
519
|
+
this.#schemaIntrospector = chunkUVZHTBZ5_cjs.createSchemaIntrospector(
|
|
513
520
|
buildNodeSchemaMap(store.graph),
|
|
514
521
|
buildEdgeSchemaMap(store.graph)
|
|
515
522
|
);
|
|
@@ -670,7 +677,7 @@ function getNodeEnv() {
|
|
|
670
677
|
return process.env.NODE_ENV;
|
|
671
678
|
}
|
|
672
679
|
function hasPointerInSchema(schemaIntrospector, entityType, kindName, pointer) {
|
|
673
|
-
const segments =
|
|
680
|
+
const segments = chunkUVZHTBZ5_cjs.parseJsonPointer(pointer);
|
|
674
681
|
const [first, ...rest] = segments;
|
|
675
682
|
if (!first) {
|
|
676
683
|
return false;
|
|
@@ -683,9 +690,9 @@ function hasPointerInSchema(schemaIntrospector, entityType, kindName, pointer) {
|
|
|
683
690
|
return true;
|
|
684
691
|
}
|
|
685
692
|
try {
|
|
686
|
-
const resolved =
|
|
693
|
+
const resolved = chunkUVZHTBZ5_cjs.resolveFieldTypeInfoAtJsonPointer(
|
|
687
694
|
rootInfo,
|
|
688
|
-
|
|
695
|
+
chunkUVZHTBZ5_cjs.jsonPointer(rest)
|
|
689
696
|
);
|
|
690
697
|
return resolved !== void 0;
|
|
691
698
|
} catch (error) {
|