@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.
Files changed (99) hide show
  1. package/dist/{ast-Bh2NDeaK.d.cts → ast-CSLbPIOC.d.ts} +56 -3
  2. package/dist/{ast-COMyNeMn.d.ts → ast-DogwbBqA.d.cts} +56 -3
  3. package/dist/backend/postgres/index.cjs +123 -45
  4. package/dist/backend/postgres/index.cjs.map +1 -1
  5. package/dist/backend/postgres/index.d.cts +15 -7
  6. package/dist/backend/postgres/index.d.ts +15 -7
  7. package/dist/backend/postgres/index.js +101 -23
  8. package/dist/backend/postgres/index.js.map +1 -1
  9. package/dist/backend/sqlite/index.cjs +15 -15
  10. package/dist/backend/sqlite/index.d.cts +11 -7
  11. package/dist/backend/sqlite/index.d.ts +11 -7
  12. package/dist/backend/sqlite/index.js +5 -5
  13. package/dist/backend/sqlite/libsql.cjs +8 -8
  14. package/dist/backend/sqlite/libsql.d.cts +4 -5
  15. package/dist/backend/sqlite/libsql.d.ts +4 -5
  16. package/dist/backend/sqlite/libsql.js +5 -5
  17. package/dist/backend/sqlite/local.cjs +9 -9
  18. package/dist/backend/sqlite/local.d.cts +4 -5
  19. package/dist/backend/sqlite/local.d.ts +4 -5
  20. package/dist/backend/sqlite/local.js +5 -5
  21. package/dist/{chunk-LELLOHJK.cjs → chunk-2X7P7AD5.cjs} +35 -35
  22. package/dist/{chunk-LELLOHJK.cjs.map → chunk-2X7P7AD5.cjs.map} +1 -1
  23. package/dist/{chunk-GNIYZKBI.js → chunk-4XNE2JG3.js} +376 -8
  24. package/dist/chunk-4XNE2JG3.js.map +1 -0
  25. package/dist/{chunk-HXJXTOXR.cjs → chunk-CQL6FOTT.cjs} +82 -21
  26. package/dist/chunk-CQL6FOTT.cjs.map +1 -0
  27. package/dist/{chunk-K7SQ3SWP.js → chunk-EYELZHKY.js} +120 -12
  28. package/dist/chunk-EYELZHKY.js.map +1 -0
  29. package/dist/{chunk-MME3H4ZF.cjs → chunk-FQCQM3KG.cjs} +385 -9
  30. package/dist/chunk-FQCQM3KG.cjs.map +1 -0
  31. package/dist/{chunk-X33WV2UF.cjs → chunk-HRNQ3DVJ.cjs} +24 -21
  32. package/dist/chunk-HRNQ3DVJ.cjs.map +1 -0
  33. package/dist/{chunk-W6M7XWKX.js → chunk-JYUQA77I.js} +21 -18
  34. package/dist/chunk-JYUQA77I.js.map +1 -0
  35. package/dist/{chunk-LLHFS53Q.js → chunk-NRNJ52AA.js} +72 -11
  36. package/dist/chunk-NRNJ52AA.js.map +1 -0
  37. package/dist/{chunk-IYWWXOVK.cjs → chunk-Q73OWTJY.cjs} +204 -89
  38. package/dist/chunk-Q73OWTJY.cjs.map +1 -0
  39. package/dist/{chunk-G5CYWKRF.js → chunk-RS5OLGEW.js} +2 -2
  40. package/dist/{chunk-G5CYWKRF.js.map → chunk-RS5OLGEW.js.map} +1 -1
  41. package/dist/{chunk-6GWJH6AR.js → chunk-SMMOAVJ5.js} +4 -4
  42. package/dist/{chunk-6GWJH6AR.js.map → chunk-SMMOAVJ5.js.map} +1 -1
  43. package/dist/{chunk-QFZQGEQ3.js → chunk-UQVBVBVG.js} +151 -36
  44. package/dist/chunk-UQVBVBVG.js.map +1 -0
  45. package/dist/{chunk-P5CNM325.cjs → chunk-UVZHTBZ5.cjs} +123 -11
  46. package/dist/chunk-UVZHTBZ5.cjs.map +1 -0
  47. package/dist/{chunk-5GZMPJOP.cjs → chunk-WRWVWKQL.cjs} +2 -2
  48. package/dist/{chunk-5GZMPJOP.cjs.map → chunk-WRWVWKQL.cjs.map} +1 -1
  49. package/dist/{ddl-BBo2EcFc.d.cts → ddl-BqkTShcR.d.ts} +28 -6
  50. package/dist/{ddl-D4jlcOH_.d.ts → ddl-Dk1NDN3M.d.cts} +28 -6
  51. package/dist/index.cjs +1705 -490
  52. package/dist/index.cjs.map +1 -1
  53. package/dist/index.d.cts +8 -10
  54. package/dist/index.d.ts +8 -10
  55. package/dist/index.js +1552 -361
  56. package/dist/index.js.map +1 -1
  57. package/dist/indexes/index.cjs +17 -17
  58. package/dist/indexes/index.d.cts +5 -5
  59. package/dist/indexes/index.d.ts +5 -5
  60. package/dist/indexes/index.js +3 -3
  61. package/dist/interchange/index.cjs +6 -6
  62. package/dist/interchange/index.d.cts +4 -5
  63. package/dist/interchange/index.d.ts +4 -5
  64. package/dist/interchange/index.js +1 -1
  65. package/dist/{manager-Chhrq1vl.d.ts → manager-0jVZtiE8.d.ts} +1 -2
  66. package/dist/{manager-Bj1UEnhE.d.cts → manager-BPK-2PUI.d.cts} +1 -2
  67. package/dist/profiler/index.cjs +15 -8
  68. package/dist/profiler/index.cjs.map +1 -1
  69. package/dist/profiler/index.d.cts +7 -8
  70. package/dist/profiler/index.d.ts +7 -8
  71. package/dist/profiler/index.js +8 -1
  72. package/dist/profiler/index.js.map +1 -1
  73. package/dist/schema/index.cjs +21 -21
  74. package/dist/schema/index.d.cts +4 -5
  75. package/dist/schema/index.d.ts +4 -5
  76. package/dist/schema/index.js +3 -3
  77. package/dist/{sqlite-DE-6NWtC.d.cts → sqlite-D1rrwcir.d.cts} +14 -1
  78. package/dist/{sqlite-Blq-AhmK.d.ts → sqlite-W3rmJMlc.d.ts} +14 -1
  79. package/dist/{store-BMrRi_mY.d.ts → store-2QW2SIRk.d.cts} +404 -5
  80. package/dist/{store-DRRvALu8.d.cts → store-C0q13mtJ.d.ts} +404 -5
  81. package/dist/{types-B3mmOMJV.d.cts → types-CQF88McG.d.cts} +475 -2
  82. package/dist/{types-ThB4cFLp.d.ts → types-CQF88McG.d.ts} +475 -2
  83. package/dist/{types-COPePE8_.d.ts → types-CglvhPKz.d.ts} +1 -1
  84. package/dist/{types-CVtGFpB9.d.cts → types-D23slCOA.d.cts} +1 -1
  85. package/dist/{types-Ceb01czq.d.ts → types-IMQCuser.d.ts} +2 -2
  86. package/dist/{types-CZd2PEOc.d.cts → types-vgjar7Ch.d.cts} +2 -2
  87. package/package.json +9 -9
  88. package/dist/chunk-GNIYZKBI.js.map +0 -1
  89. package/dist/chunk-HXJXTOXR.cjs.map +0 -1
  90. package/dist/chunk-IYWWXOVK.cjs.map +0 -1
  91. package/dist/chunk-K7SQ3SWP.js.map +0 -1
  92. package/dist/chunk-LLHFS53Q.js.map +0 -1
  93. package/dist/chunk-MME3H4ZF.cjs.map +0 -1
  94. package/dist/chunk-P5CNM325.cjs.map +0 -1
  95. package/dist/chunk-QFZQGEQ3.js.map +0 -1
  96. package/dist/chunk-W6M7XWKX.js.map +0 -1
  97. package/dist/chunk-X33WV2UF.cjs.map +0 -1
  98. package/dist/types-DMzKq0d5.d.cts +0 -181
  99. package/dist/types-DMzKq0d5.d.ts +0 -181
@@ -1,66 +1,66 @@
1
1
  'use strict';
2
2
 
3
- var chunkLELLOHJK_cjs = require('../chunk-LELLOHJK.cjs');
4
- require('../chunk-MME3H4ZF.cjs');
5
- require('../chunk-P5CNM325.cjs');
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 chunkLELLOHJK_cjs.andWhere; }
11
+ get: function () { return chunk2X7P7AD5_cjs.andWhere; }
12
12
  });
13
13
  Object.defineProperty(exports, "buildPostgresEdgeIndexBuilders", {
14
14
  enumerable: true,
15
- get: function () { return chunkLELLOHJK_cjs.buildPostgresEdgeIndexBuilders; }
15
+ get: function () { return chunk2X7P7AD5_cjs.buildPostgresEdgeIndexBuilders; }
16
16
  });
17
17
  Object.defineProperty(exports, "buildPostgresNodeIndexBuilders", {
18
18
  enumerable: true,
19
- get: function () { return chunkLELLOHJK_cjs.buildPostgresNodeIndexBuilders; }
19
+ get: function () { return chunk2X7P7AD5_cjs.buildPostgresNodeIndexBuilders; }
20
20
  });
21
21
  Object.defineProperty(exports, "buildSqliteEdgeIndexBuilders", {
22
22
  enumerable: true,
23
- get: function () { return chunkLELLOHJK_cjs.buildSqliteEdgeIndexBuilders; }
23
+ get: function () { return chunk2X7P7AD5_cjs.buildSqliteEdgeIndexBuilders; }
24
24
  });
25
25
  Object.defineProperty(exports, "buildSqliteNodeIndexBuilders", {
26
26
  enumerable: true,
27
- get: function () { return chunkLELLOHJK_cjs.buildSqliteNodeIndexBuilders; }
27
+ get: function () { return chunk2X7P7AD5_cjs.buildSqliteNodeIndexBuilders; }
28
28
  });
29
29
  Object.defineProperty(exports, "defineEdgeIndex", {
30
30
  enumerable: true,
31
- get: function () { return chunkLELLOHJK_cjs.defineEdgeIndex; }
31
+ get: function () { return chunk2X7P7AD5_cjs.defineEdgeIndex; }
32
32
  });
33
33
  Object.defineProperty(exports, "defineNodeIndex", {
34
34
  enumerable: true,
35
- get: function () { return chunkLELLOHJK_cjs.defineNodeIndex; }
35
+ get: function () { return chunk2X7P7AD5_cjs.defineNodeIndex; }
36
36
  });
37
37
  Object.defineProperty(exports, "generateEdgeIndexDDL", {
38
38
  enumerable: true,
39
- get: function () { return chunkLELLOHJK_cjs.generateEdgeIndexDDL; }
39
+ get: function () { return chunk2X7P7AD5_cjs.generateEdgeIndexDDL; }
40
40
  });
41
41
  Object.defineProperty(exports, "generateIndexDDL", {
42
42
  enumerable: true,
43
- get: function () { return chunkLELLOHJK_cjs.generateIndexDDL; }
43
+ get: function () { return chunk2X7P7AD5_cjs.generateIndexDDL; }
44
44
  });
45
45
  Object.defineProperty(exports, "generateNodeIndexDDL", {
46
46
  enumerable: true,
47
- get: function () { return chunkLELLOHJK_cjs.generateNodeIndexDDL; }
47
+ get: function () { return chunk2X7P7AD5_cjs.generateNodeIndexDDL; }
48
48
  });
49
49
  Object.defineProperty(exports, "notWhere", {
50
50
  enumerable: true,
51
- get: function () { return chunkLELLOHJK_cjs.notWhere; }
51
+ get: function () { return chunk2X7P7AD5_cjs.notWhere; }
52
52
  });
53
53
  Object.defineProperty(exports, "orWhere", {
54
54
  enumerable: true,
55
- get: function () { return chunkLELLOHJK_cjs.orWhere; }
55
+ get: function () { return chunk2X7P7AD5_cjs.orWhere; }
56
56
  });
57
57
  Object.defineProperty(exports, "toDeclaredIndex", {
58
58
  enumerable: true,
59
- get: function () { return chunkLELLOHJK_cjs.toDeclaredIndex; }
59
+ get: function () { return chunk2X7P7AD5_cjs.toDeclaredIndex; }
60
60
  });
61
61
  Object.defineProperty(exports, "toDeclaredIndexes", {
62
62
  enumerable: true,
63
- get: function () { return chunkLELLOHJK_cjs.toDeclaredIndexes; }
63
+ get: function () { return chunk2X7P7AD5_cjs.toDeclaredIndexes; }
64
64
  });
65
65
  //# sourceMappingURL=index.cjs.map
66
66
  //# sourceMappingURL=index.cjs.map
@@ -1,12 +1,12 @@
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-CZd2PEOc.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-CZd2PEOc.cjs';
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-CVtGFpB9.cjs';
7
+ import { D as DeclaredIndex } from '../types-D23slCOA.cjs';
8
8
  import 'zod';
9
- import '../ast-Bh2NDeaK.cjs';
9
+ import '../ast-DogwbBqA.cjs';
10
10
 
11
11
  type GenerateIndexDdlOptions = Readonly<{
12
12
  nodesTableName?: string | undefined;
@@ -1,12 +1,12 @@
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-Ceb01czq.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-Ceb01czq.js';
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-COPePE8_.js';
7
+ import { D as DeclaredIndex } from '../types-CglvhPKz.js';
8
8
  import 'zod';
9
- import '../ast-COMyNeMn.js';
9
+ import '../ast-CSLbPIOC.js';
10
10
 
11
11
  type GenerateIndexDdlOptions = Readonly<{
12
12
  nodesTableName?: string | undefined;
@@ -1,5 +1,5 @@
1
- export { andWhere, buildPostgresEdgeIndexBuilders, buildPostgresNodeIndexBuilders, buildSqliteEdgeIndexBuilders, buildSqliteNodeIndexBuilders, defineEdgeIndex, defineNodeIndex, generateEdgeIndexDDL, generateIndexDDL, generateNodeIndexDDL, notWhere, orWhere, toDeclaredIndex, toDeclaredIndexes } from '../chunk-6GWJH6AR.js';
2
- import '../chunk-GNIYZKBI.js';
3
- import '../chunk-K7SQ3SWP.js';
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 chunk5GZMPJOP_cjs = require('../chunk-5GZMPJOP.cjs');
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 ?? chunk5GZMPJOP_cjs.getNodeKinds(graph);
125
- const edgeKindsToExport = options_.edgeKinds ?? chunk5GZMPJOP_cjs.getEdgeKinds(graph);
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: chunk5GZMPJOP_cjs.nowIso(),
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 chunk5GZMPJOP_cjs.getNodeKinds(graph)) {
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 chunk5GZMPJOP_cjs.getEdgeKinds(graph)) {
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-Bj1UEnhE.cjs';
3
- import { a7 as Store } from '../store-DRRvALu8.cjs';
4
- import '../types-DMzKq0d5.cjs';
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-Bh2NDeaK.cjs';
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-Chhrq1vl.js';
3
- import { a7 as Store } from '../store-BMrRi_mY.js';
4
- import '../types-DMzKq0d5.js';
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-COMyNeMn.js';
6
+ import '../ast-CSLbPIOC.js';
8
7
 
9
8
  /**
10
9
  * Graph interchange format types.
@@ -1,4 +1,4 @@
1
- import { getNodeKinds, getEdgeKinds, nowIso } from '../chunk-G5CYWKRF.js';
1
+ import { getNodeKinds, getEdgeKinds, nowIso } from '../chunk-RS5OLGEW.js';
2
2
  import '../chunk-WFMTAEEN.js';
3
3
  import { z } from 'zod';
4
4
 
@@ -1,5 +1,4 @@
1
- import { i as NodeRegistration, d as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, N as NodeType, A as AnyEdgeType, G as GraphDefaults } 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-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 { i as NodeRegistration, d as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, N as NodeType, A as AnyEdgeType, G as GraphDefaults } 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-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";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkP5CNM325_cjs = require('../chunk-P5CNM325.cjs');
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: chunkP5CNM325_cjs.jsonPointer(field.field.split("."))
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: chunkP5CNM325_cjs.jsonPointer(ref.path.slice(1)) };
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 = chunkP5CNM325_cjs.normalizeJsonPointer(
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 = chunkP5CNM325_cjs.createSchemaIntrospector(
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 = chunkP5CNM325_cjs.parseJsonPointer(pointer);
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 = chunkP5CNM325_cjs.resolveFieldTypeInfoAtJsonPointer(
693
+ const resolved = chunkUVZHTBZ5_cjs.resolveFieldTypeInfoAtJsonPointer(
687
694
  rootInfo,
688
- chunkP5CNM325_cjs.jsonPointer(rest)
695
+ chunkUVZHTBZ5_cjs.jsonPointer(rest)
689
696
  );
690
697
  return resolved !== void 0;
691
698
  } catch (error) {