@neo4j-cypher/query-tools 2.0.0-next.37 → 2.0.0-next.39

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 (187) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/api-extractor/api-report.api.md +340 -0
  3. package/api-extractor.json +10 -0
  4. package/checkApiReport.ts +4 -0
  5. package/dist/cjs/index.cjs +1849 -0
  6. package/dist/cjs/index.cjs.map +7 -0
  7. package/dist/esm/package.json +12 -10
  8. package/dist/esm/src/connectionErrorHandler.d.ts +1 -0
  9. package/dist/esm/src/connectionErrorHandler.js.map +1 -1
  10. package/dist/esm/src/cypher-execution/extract-unique-nodes-and-relationships.d.ts +3 -4
  11. package/dist/esm/src/cypher-execution/extract-unique-nodes-and-relationships.js +2 -3
  12. package/dist/esm/src/cypher-execution/extract-unique-nodes-and-relationships.js.map +1 -1
  13. package/dist/esm/src/cypher-execution/extract-unique-nodes-and-relationships.test.js +0 -4
  14. package/dist/esm/src/cypher-execution/extract-unique-nodes-and-relationships.test.js.map +1 -1
  15. package/dist/esm/src/cypher-execution/query-result.js +2 -9
  16. package/dist/esm/src/cypher-execution/query-result.js.map +1 -1
  17. package/dist/esm/src/data-transforms/cypher-type-names.d.ts +1 -2
  18. package/dist/esm/src/data-transforms/record-to-string.js +1 -2
  19. package/dist/esm/src/data-transforms/record-to-string.js.map +1 -1
  20. package/dist/esm/src/index.d.ts +5 -4
  21. package/dist/esm/src/index.js +1 -1
  22. package/dist/esm/src/index.js.map +1 -1
  23. package/dist/esm/src/metadataPoller.d.ts +4 -4
  24. package/dist/esm/src/metadataPoller.js +1 -1
  25. package/dist/esm/src/metadataPoller.js.map +1 -1
  26. package/dist/esm/src/neo4jConnection.d.ts +6 -7
  27. package/dist/esm/src/neo4jConnection.js +3 -2
  28. package/dist/esm/src/neo4jConnection.js.map +1 -1
  29. package/dist/esm/src/queries/dataSummary.d.ts +1 -1
  30. package/dist/esm/src/queries/dataSummary.js.map +1 -1
  31. package/dist/esm/src/queries/databases.d.ts +2 -3
  32. package/dist/esm/src/queries/databases.js +0 -3
  33. package/dist/esm/src/queries/databases.js.map +1 -1
  34. package/dist/esm/src/queries/functions.d.ts +1 -1
  35. package/dist/esm/src/queries/functions.js +1 -2
  36. package/dist/esm/src/queries/functions.js.map +1 -1
  37. package/dist/esm/src/queries/graphSchema.d.ts +1 -1
  38. package/dist/esm/src/queries/graphSchema.js +1 -1
  39. package/dist/esm/src/queries/graphSchema.js.map +1 -1
  40. package/dist/esm/src/queries/procedures.d.ts +1 -1
  41. package/dist/esm/src/queries/procedures.js +1 -2
  42. package/dist/esm/src/queries/procedures.js.map +1 -1
  43. package/dist/esm/src/queries/version.d.ts +1 -1
  44. package/dist/esm/src/result-transformers/graph-result-transformer.d.ts +4 -5
  45. package/dist/esm/src/result-transformers/graph-result-transformer.js +2 -2
  46. package/dist/esm/src/result-transformers/graph-result-transformer.js.map +1 -1
  47. package/dist/esm/src/schemaPoller.d.ts +3 -3
  48. package/dist/esm/src/schemaPoller.js.map +1 -1
  49. package/dist/esm/src/{integration-tests → tests/integration}/pollingIntegrationTests.test.js +1 -1
  50. package/dist/esm/src/tests/integration/pollingIntegrationTests.test.js.map +1 -0
  51. package/dist/{types/src/integration-tests → esm/src/tests/integration}/setupTestContainer.d.ts +1 -1
  52. package/dist/esm/src/{integration-tests → tests/integration}/setupTestContainer.js +1 -1
  53. package/dist/esm/src/tests/integration/setupTestContainer.js.map +1 -0
  54. package/dist/esm/src/types/cypher-data-types.d.ts +1 -2
  55. package/dist/esm/src/types/sdkTypes.d.ts +2 -3
  56. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  57. package/dist/esm/vitest.config.d.mts +1 -1
  58. package/dist/esm/vitest.config.mjs +20 -4
  59. package/dist/esm/vitest.config.mjs.map +1 -1
  60. package/dist/types/src/connectionErrorHandler.d.ts +1 -0
  61. package/dist/types/src/cypher-execution/extract-unique-nodes-and-relationships.d.ts +3 -4
  62. package/dist/types/src/data-transforms/cypher-type-names.d.ts +1 -2
  63. package/dist/types/src/index.d.ts +5 -4
  64. package/dist/types/src/metadataPoller.d.ts +4 -4
  65. package/dist/types/src/neo4jConnection.d.ts +6 -7
  66. package/dist/types/src/queries/dataSummary.d.ts +1 -1
  67. package/dist/types/src/queries/databases.d.ts +2 -3
  68. package/dist/types/src/queries/functions.d.ts +1 -1
  69. package/dist/types/src/queries/graphSchema.d.ts +1 -1
  70. package/dist/types/src/queries/procedures.d.ts +1 -1
  71. package/dist/types/src/queries/version.d.ts +1 -1
  72. package/dist/types/src/result-transformers/graph-result-transformer.d.ts +4 -5
  73. package/dist/types/src/schemaPoller.d.ts +3 -3
  74. package/dist/{esm/src/integration-tests → types/src/tests/integration}/setupTestContainer.d.ts +1 -1
  75. package/dist/types/src/types/cypher-data-types.d.ts +1 -2
  76. package/dist/types/src/types/sdkTypes.d.ts +2 -3
  77. package/dist/types/tsconfig.tsbuildinfo +1 -1
  78. package/dist/types/vitest.config.d.mts +1 -1
  79. package/package.json +13 -11
  80. package/src/connectionErrorHandler.ts +5 -2
  81. package/src/cypher-execution/extract-unique-nodes-and-relationships.test.ts +5 -9
  82. package/src/cypher-execution/extract-unique-nodes-and-relationships.ts +3 -4
  83. package/src/cypher-execution/query-result.ts +2 -13
  84. package/src/data-transforms/cypher-type-names.ts +1 -1
  85. package/src/data-transforms/record-to-string.ts +2 -3
  86. package/src/index.ts +17 -3
  87. package/src/metadataPoller.ts +14 -10
  88. package/src/neo4jConnection.ts +9 -8
  89. package/src/queries/dataSummary.ts +4 -4
  90. package/src/queries/databases.ts +3 -5
  91. package/src/queries/functions.ts +6 -3
  92. package/src/queries/graphSchema.ts +7 -6
  93. package/src/queries/procedures.ts +6 -3
  94. package/src/queries/version.ts +1 -1
  95. package/src/result-transformers/graph-result-transformer.ts +7 -9
  96. package/src/schemaPoller.ts +4 -3
  97. package/src/{integration-tests → tests/integration}/pollingIntegrationTests.test.ts +7 -6
  98. package/src/{integration-tests → tests/integration}/setupTestContainer.ts +3 -2
  99. package/src/types/cypher-data-types.ts +1 -1
  100. package/src/types/sdkTypes.ts +2 -2
  101. package/tsconfig.json +4 -4
  102. package/tsconfig.node.json +1 -2
  103. package/vitest.config.mts +20 -4
  104. package/dist/cjs/package.json +0 -46
  105. package/dist/cjs/src/connectionErrorHandler.d.ts +0 -10
  106. package/dist/cjs/src/connectionErrorHandler.js +0 -40
  107. package/dist/cjs/src/connectionErrorHandler.js.map +0 -1
  108. package/dist/cjs/src/cypher-execution/extract-unique-nodes-and-relationships.d.ts +0 -33
  109. package/dist/cjs/src/cypher-execution/extract-unique-nodes-and-relationships.js +0 -93
  110. package/dist/cjs/src/cypher-execution/extract-unique-nodes-and-relationships.js.map +0 -1
  111. package/dist/cjs/src/cypher-execution/extract-unique-nodes-and-relationships.test.d.ts +0 -1
  112. package/dist/cjs/src/cypher-execution/extract-unique-nodes-and-relationships.test.js +0 -129
  113. package/dist/cjs/src/cypher-execution/extract-unique-nodes-and-relationships.test.js.map +0 -1
  114. package/dist/cjs/src/cypher-execution/query-result.d.ts +0 -11
  115. package/dist/cjs/src/cypher-execution/query-result.js +0 -239
  116. package/dist/cjs/src/cypher-execution/query-result.js.map +0 -1
  117. package/dist/cjs/src/data-transforms/clean-type.d.ts +0 -6
  118. package/dist/cjs/src/data-transforms/clean-type.js +0 -16
  119. package/dist/cjs/src/data-transforms/clean-type.js.map +0 -1
  120. package/dist/cjs/src/data-transforms/cypher-type-names.d.ts +0 -6
  121. package/dist/cjs/src/data-transforms/cypher-type-names.js +0 -91
  122. package/dist/cjs/src/data-transforms/cypher-type-names.js.map +0 -1
  123. package/dist/cjs/src/data-transforms/format-float.d.ts +0 -1
  124. package/dist/cjs/src/data-transforms/format-float.js +0 -14
  125. package/dist/cjs/src/data-transforms/format-float.js.map +0 -1
  126. package/dist/cjs/src/data-transforms/record-to-string.d.ts +0 -8
  127. package/dist/cjs/src/data-transforms/record-to-string.js +0 -185
  128. package/dist/cjs/src/data-transforms/record-to-string.js.map +0 -1
  129. package/dist/cjs/src/index.d.ts +0 -17
  130. package/dist/cjs/src/index.js +0 -33
  131. package/dist/cjs/src/index.js.map +0 -1
  132. package/dist/cjs/src/integration-tests/pollingIntegrationTests.test.js +0 -42
  133. package/dist/cjs/src/integration-tests/pollingIntegrationTests.test.js.map +0 -1
  134. package/dist/cjs/src/integration-tests/setupTestContainer.d.ts +0 -10
  135. package/dist/cjs/src/integration-tests/setupTestContainer.js +0 -23
  136. package/dist/cjs/src/integration-tests/setupTestContainer.js.map +0 -1
  137. package/dist/cjs/src/metadataPoller.d.ts +0 -34
  138. package/dist/cjs/src/metadataPoller.js +0 -214
  139. package/dist/cjs/src/metadataPoller.js.map +0 -1
  140. package/dist/cjs/src/neo4jConnection.d.ts +0 -36
  141. package/dist/cjs/src/neo4jConnection.js +0 -128
  142. package/dist/cjs/src/neo4jConnection.js.map +0 -1
  143. package/dist/cjs/src/queries/dataSummary.d.ts +0 -7
  144. package/dist/cjs/src/queries/dataSummary.js +0 -33
  145. package/dist/cjs/src/queries/dataSummary.js.map +0 -1
  146. package/dist/cjs/src/queries/databases.d.ts +0 -28
  147. package/dist/cjs/src/queries/databases.js +0 -112
  148. package/dist/cjs/src/queries/databases.js.map +0 -1
  149. package/dist/cjs/src/queries/functions.d.ts +0 -14
  150. package/dist/cjs/src/queries/functions.js +0 -87
  151. package/dist/cjs/src/queries/functions.js.map +0 -1
  152. package/dist/cjs/src/queries/graphSchema.d.ts +0 -28
  153. package/dist/cjs/src/queries/graphSchema.js +0 -88
  154. package/dist/cjs/src/queries/graphSchema.js.map +0 -1
  155. package/dist/cjs/src/queries/procedures.d.ts +0 -14
  156. package/dist/cjs/src/queries/procedures.js +0 -105
  157. package/dist/cjs/src/queries/procedures.js.map +0 -1
  158. package/dist/cjs/src/queries/roles.d.ts +0 -11
  159. package/dist/cjs/src/queries/roles.js +0 -24
  160. package/dist/cjs/src/queries/roles.js.map +0 -1
  161. package/dist/cjs/src/queries/users.d.ts +0 -15
  162. package/dist/cjs/src/queries/users.js +0 -24
  163. package/dist/cjs/src/queries/users.js.map +0 -1
  164. package/dist/cjs/src/queries/version.d.ts +0 -7
  165. package/dist/cjs/src/queries/version.js +0 -32
  166. package/dist/cjs/src/queries/version.js.map +0 -1
  167. package/dist/cjs/src/result-transformers/graph-result-transformer.d.ts +0 -37
  168. package/dist/cjs/src/result-transformers/graph-result-transformer.js +0 -37
  169. package/dist/cjs/src/result-transformers/graph-result-transformer.js.map +0 -1
  170. package/dist/cjs/src/schemaPoller.d.ts +0 -45
  171. package/dist/cjs/src/schemaPoller.js +0 -199
  172. package/dist/cjs/src/schemaPoller.js.map +0 -1
  173. package/dist/cjs/src/types/cypher-data-types.d.ts +0 -41
  174. package/dist/cjs/src/types/cypher-data-types.js +0 -47
  175. package/dist/cjs/src/types/cypher-data-types.js.map +0 -1
  176. package/dist/cjs/src/types/sdkTypes.d.ts +0 -18
  177. package/dist/cjs/src/types/sdkTypes.js +0 -11
  178. package/dist/cjs/src/types/sdkTypes.js.map +0 -1
  179. package/dist/cjs/tsconfig.tsbuildinfo +0 -1
  180. package/dist/cjs/vitest.config.d.mts +0 -2
  181. package/dist/cjs/vitest.config.mjs +0 -10
  182. package/dist/cjs/vitest.config.mjs.map +0 -1
  183. package/dist/esm/src/integration-tests/pollingIntegrationTests.test.js.map +0 -1
  184. package/dist/esm/src/integration-tests/setupTestContainer.js.map +0 -1
  185. package/dist/types/src/integration-tests/pollingIntegrationTests.test.d.ts +0 -1
  186. /package/dist/{cjs/src/integration-tests → esm/src/tests/integration}/pollingIntegrationTests.test.d.ts +0 -0
  187. /package/dist/{esm/src/integration-tests → types/src/tests/integration}/pollingIntegrationTests.test.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @neo4j-cypher/query-tools
2
2
 
3
+ ## 2.0.0-next.39
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [b510128]
8
+ - Updated dependencies [8b991d6]
9
+ - Updated dependencies [b510128]
10
+ - @neo4j-cypher/language-support@2.0.0-next.39
11
+
12
+ ## 2.0.0-next.38
13
+
14
+ ### Patch Changes
15
+
16
+ - b38430c: Update grammar and semantic analysis to 2026.09
17
+ - Updated dependencies [d3dbe10]
18
+ - Updated dependencies [1897def]
19
+ - Updated dependencies [321e370]
20
+ - Updated dependencies [2844ec4]
21
+ - Updated dependencies [b38430c]
22
+ - @neo4j-cypher/language-support@2.0.0-next.38
23
+
3
24
  ## 2.0.0-next.37
4
25
 
5
26
  ### Patch Changes
@@ -0,0 +1,340 @@
1
+ ## API Report File for "@neo4j-cypher/query-tools"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import type { Config } from 'neo4j-driver';
8
+ import type { CypherVersion } from '@neo4j-cypher/language-support';
9
+ import type { Date as Date_2 } from 'neo4j-driver';
10
+ import type { DateTime } from 'neo4j-driver';
11
+ import type { DbSchema } from '@neo4j-cypher/language-support';
12
+ import type { Driver } from 'neo4j-driver';
13
+ import type { Duration } from 'neo4j-driver';
14
+ import { EventEmitter } from 'events';
15
+ import { Integer } from 'neo4j-driver';
16
+ import type { LocalDateTime } from 'neo4j-driver';
17
+ import type { LocalTime } from 'neo4j-driver';
18
+ import type { ManagedTransaction } from 'neo4j-driver';
19
+ import type { Node as Node_2 } from 'neo4j-driver';
20
+ import type { Path } from 'neo4j-driver';
21
+ import type { Point } from 'neo4j-driver';
22
+ import type { QueryConfig } from 'neo4j-driver';
23
+ import type { QueryResult } from 'neo4j-driver';
24
+ import type { Record as Record_2 } from 'neo4j-driver';
25
+ import type { RecordShape } from 'neo4j-driver';
26
+ import type { Relationship } from 'neo4j-driver';
27
+ import { ResultSummary } from 'neo4j-driver';
28
+ import { ResultTransformer } from 'neo4j-driver';
29
+ import type { Session } from 'neo4j-driver';
30
+ import type { Time } from 'neo4j-driver';
31
+ import { types } from 'neo4j-driver';
32
+ import type { Vector } from 'neo4j-driver';
33
+
34
+ // @public (undocumented)
35
+ export function addAnnotationProp(obj: Record<string, unknown>, type: string | unknown, prop?: string): Record<string, unknown>;
36
+
37
+ // @public (undocumented)
38
+ export type ConnectionError = {
39
+ message: string;
40
+ friendlyMessage: string;
41
+ code: string;
42
+ };
43
+
44
+ // @public (undocumented)
45
+ export type ConnnectionResult = {
46
+ success: boolean;
47
+ retriable?: boolean;
48
+ error?: ConnectionError;
49
+ };
50
+
51
+ // @public
52
+ export type CypherBasicPropertyType = null | boolean | number | string | Integer | bigint | Int8Array | CypherTemporalType | Point | Vector<BigInt64Array | Float32Array | Float64Array | Int8Array | Int16Array | Int32Array>;
53
+
54
+ // @public (undocumented)
55
+ export const cypherDataToCypherCSVString: (map: CypherDataType | undefined, stringStyle: StringStyle) => string;
56
+
57
+ // @public (undocumented)
58
+ export const cypherDataToString: (map: CypherDataType | undefined, stringStyle?: StringStyle, quoteStrings?: boolean) => string;
59
+
60
+ // @public (undocumented)
61
+ export type CypherDataType = CypherBasicPropertyType | CypherStructuralType | CypherMap | CypherList;
62
+
63
+ // @public (undocumented)
64
+ export type CypherDataTypeName = CypherPropertyName | 'Node' | 'Relationship' | 'Path' | 'Map' | 'Vector';
65
+
66
+ // @public (undocumented)
67
+ export type CypherList = (CypherBasicPropertyType | CypherStructuralType | CypherMap | CypherList)[];
68
+
69
+ // @public (undocumented)
70
+ export interface CypherMap {
71
+ // (undocumented)
72
+ [key: string]: CypherBasicPropertyType | CypherStructuralType | CypherMap | CypherList;
73
+ }
74
+
75
+ // @public (undocumented)
76
+ export class CypherMetadataPoller extends MetadataPoller {
77
+ constructor(databases: Database[], parameters: Record<string, unknown>, serverCypherVersions: string[] | undefined, connection: Neo4jConnection, events: EventEmitter);
78
+ // (undocumented)
79
+ dbSchema: DbSchema;
80
+ // (undocumented)
81
+ fetchDbSchema(): Promise<void>;
82
+ // (undocumented)
83
+ startBackgroundPolling(intervalSeconds?: number): void;
84
+ // (undocumented)
85
+ stopBackgroundPolling(): void;
86
+ }
87
+
88
+ // @public (undocumented)
89
+ export type CypherProperty = CypherBasicPropertyType | CypherBasicPropertyType[];
90
+
91
+ // @public (undocumented)
92
+ export type CypherPropertyName = 'Float' | 'null' | 'String' | 'Bigint' | 'Boolean' | `List${string}` | 'LocalTime' | 'Time' | 'Date' | 'LocalDateTime' | 'DateTime' | 'Integer' | 'Duration' | 'Point' | 'ByteArray' | 'Vector' | 'Unknown';
93
+
94
+ // @public (undocumented)
95
+ export type CypherStringStyle = 'cypher' | 'cypher-with-ids';
96
+
97
+ // @public (undocumented)
98
+ export type CypherStructuralType = Node_2 | Relationship | Path;
99
+
100
+ // @public (undocumented)
101
+ export type CypherTemporalType = Date_2<NumberOrInteger> | Time<NumberOrInteger> | DateTime | LocalTime<NumberOrInteger> | LocalDateTime | Duration<NumberOrInteger>;
102
+
103
+ // @public (undocumented)
104
+ export type Database = {
105
+ name: string;
106
+ address: string;
107
+ role: string;
108
+ requestedStatus: DatabaseStatus;
109
+ currentStatus: DatabaseStatus;
110
+ statusMessage?: string;
111
+ error: string;
112
+ default: boolean;
113
+ home: boolean;
114
+ aliases?: string[];
115
+ type?: 'system' | 'composite' | 'standard' | 'graph shard' | 'property shard';
116
+ writer?: boolean;
117
+ access?: string;
118
+ constituents?: string[];
119
+ defaultLanguage?: CypherVersion;
120
+ };
121
+
122
+ // @public (undocumented)
123
+ export type DatabaseStatus = 'online' | 'offline' | 'starting' | 'stopping' | 'store copying' | 'initial' | 'dirty' | 'quarantined' | 'unknown' | 'dropped' | 'deallocating';
124
+
125
+ // @public
126
+ export type DeduplicatedNodesAndRels = {
127
+ nodes: Node_2<Integer, Properties, string>[];
128
+ relationships: Relationship<Integer, Properties, string>[];
129
+ limitHit: boolean;
130
+ };
131
+
132
+ // @public (undocumented)
133
+ export function deleteAnnotationProp(obj: Record<string, unknown>): void;
134
+
135
+ // @public (undocumented)
136
+ export function deserializeTypeAnnotations(rawItem: Record<string, unknown>): QueryResult | Record_2;
137
+
138
+ // @public (undocumented)
139
+ export function deserializeTypeAnnotations(rawItem: any): any;
140
+
141
+ // @public (undocumented)
142
+ export class EmptyMetadataPoller extends MetadataPoller {
143
+ constructor(parameters: Record<string, unknown>);
144
+ // (undocumented)
145
+ dbSchema: DbSchema;
146
+ // (undocumented)
147
+ fetchDbSchema(): void;
148
+ // (undocumented)
149
+ startBackgroundPolling(): void;
150
+ // (undocumented)
151
+ stopBackgroundPolling(): void;
152
+ }
153
+
154
+ // @public (undocumented)
155
+ export const ESCAPE_CHAR = "_";
156
+
157
+ // @public (undocumented)
158
+ export type ExecuteQueryArgs<T> = {
159
+ query: string;
160
+ queryConfig: ExtendedQueryConfig<Result<T>>;
161
+ };
162
+
163
+ // @public (undocumented)
164
+ export type ExtendedQueryConfig<T> = QueryConfig<T> & Required<Pick<QueryConfig<T>, 'routing' | 'resultTransformer'>>;
165
+
166
+ // @public
167
+ export const extractUniqueNodesAndRels: (records: Record_2[], input?: {
168
+ nodeLimit?: number;
169
+ keepDanglingRels?: boolean;
170
+ }) => DeduplicatedNodesAndRels;
171
+
172
+ // @public (undocumented)
173
+ export const FRIENDLY_ERROR_MESSAGES: {
174
+ Default: string;
175
+ [key: string]: string;
176
+ };
177
+
178
+ // @public (undocumented)
179
+ export function getCypherTypeName(val?: CypherDataType): CypherDataTypeName;
180
+
181
+ // @public (undocumented)
182
+ export const getPropertyTypeDisplayName: (val?: CypherProperty) => CypherPropertyName;
183
+
184
+ // @public
185
+ export function getVersion(): ExecuteQueryArgs<{
186
+ serverVersion: string | undefined;
187
+ }>;
188
+
189
+ // @public
190
+ export type GraphResult = DeduplicatedNodesAndRels & {
191
+ records: Record_2[];
192
+ summary: ResultSummary<Integer>;
193
+ };
194
+
195
+ // @public
196
+ export const graphResultTransformer: ResultTransformer<GraphResult>;
197
+
198
+ // @public (undocumented)
199
+ export const isCypherBasicPropertyType: (value: unknown) => value is CypherBasicPropertyType;
200
+
201
+ // @public (undocumented)
202
+ export const isCypherPropertyType: (value: unknown) => value is CypherProperty;
203
+
204
+ // @public (undocumented)
205
+ export const isCypherTemporalType: (anything: unknown) => anything is CypherTemporalType;
206
+
207
+ // @public (undocumented)
208
+ export function isInt8Array(val: unknown): val is Int8Array;
209
+
210
+ // @public (undocumented)
211
+ export abstract class MetadataPoller {
212
+ // (undocumented)
213
+ dbSchema: DbSchema;
214
+ // (undocumented)
215
+ abstract fetchDbSchema(): void;
216
+ // (undocumented)
217
+ abstract startBackgroundPolling(intervalSeconds?: number): void;
218
+ // (undocumented)
219
+ abstract stopBackgroundPolling(): void;
220
+ }
221
+
222
+ // @public (undocumented)
223
+ export class Neo4jConnection {
224
+ constructor(connectedUser: string, protocolVersion: string, databases: Database[], driver: Driver, database?: string);
225
+ // (undocumented)
226
+ connectedUser: string;
227
+ // (undocumented)
228
+ currentDb: string | undefined;
229
+ // (undocumented)
230
+ databases: Database[];
231
+ // (undocumented)
232
+ dispose(): void;
233
+ // (undocumented)
234
+ driver: Driver;
235
+ // (undocumented)
236
+ evalQuery(session: Session, query: string, parameters: Record<string, unknown>, metadata: object, tx?: ManagedTransaction): Promise<{
237
+ records: any[];
238
+ summary: ResultSummary<Integer>;
239
+ recordLimitHit: boolean;
240
+ }>;
241
+ // (undocumented)
242
+ healthcheck(): Promise<boolean>;
243
+ // (undocumented)
244
+ protocolVersion: string;
245
+ // (undocumented)
246
+ runCypherQuery(input: RunCypherQueryArgs): Promise<QueryResultWithLimit>;
247
+ // (undocumented)
248
+ runSdkQuery<T>(input: ExecuteQueryArgs<T>, input2: SdkQueryArgs): Promise<T>;
249
+ // (undocumented)
250
+ serverVersion: string | undefined;
251
+ }
252
+
253
+ // @public (undocumented)
254
+ export class Neo4jSchemaPoller {
255
+ // (undocumented)
256
+ connect(url: string, credentials: {
257
+ username: string;
258
+ password: string;
259
+ }, config: {
260
+ driverConfig?: Config;
261
+ appName: string;
262
+ }, database?: string): Promise<ConnnectionResult>;
263
+ // (undocumented)
264
+ connection?: Neo4jConnection;
265
+ // (undocumented)
266
+ disconnect(): void;
267
+ // (undocumented)
268
+ events: EventEmitter;
269
+ // (undocumented)
270
+ metadata?: MetadataPoller;
271
+ // (undocumented)
272
+ persistentConnect(url: string, credentials: {
273
+ username: string;
274
+ password: string;
275
+ }, config: {
276
+ driverConfig?: Config;
277
+ appName: string;
278
+ }, database?: string): Promise<ConnnectionResult>;
279
+ // (undocumented)
280
+ setParameters(parameters: Record<string, unknown>): void;
281
+ }
282
+
283
+ // @public (undocumented)
284
+ export type Neo4jType = typeof types.Record | typeof types.Result | typeof types.ResultSummary | typeof types.Node | typeof types.PathSegment | typeof types.Path | typeof types.Relationship | typeof types.Point | typeof types.Date | typeof types.DateTime | typeof types.Duration | typeof types.LocalDateTime | typeof types.LocalTime | typeof types.Time | typeof types.Integer | typeof types.Vector | Record<string, unknown> | Neo4jType[] | undefined | null;
285
+
286
+ // @public (undocumented)
287
+ export type NumberOrInteger = number | Integer | bigint;
288
+
289
+ // @public (undocumented)
290
+ export type Properties = RecordShape<string, CypherProperty>;
291
+
292
+ // @public (undocumented)
293
+ export function propertyToString(property: CypherProperty, quoteStrings?: boolean, localeFormattedDates?: boolean): string;
294
+
295
+ // @public (undocumented)
296
+ export type QueryResultWithLimit = QueryResult & {
297
+ recordLimitHit: boolean;
298
+ };
299
+
300
+ // @public (undocumented)
301
+ export type QueryType = 'system' | 'user-direct' | 'user-action' | 'user-transpiled';
302
+
303
+ // @public (undocumented)
304
+ export const RESERVED_TYPE_PROPERTY_NAME = "transport-class";
305
+
306
+ // @public (undocumented)
307
+ export type Result<T> = T & {
308
+ summary: ResultSummary;
309
+ };
310
+
311
+ // @public (undocumented)
312
+ export type RunCypherQueryArgs = {
313
+ query: string;
314
+ parameters: Record<string, unknown>;
315
+ database?: string;
316
+ abortSignal?: AbortSignal;
317
+ implicitTransaction?: boolean;
318
+ };
319
+
320
+ // @public (undocumented)
321
+ export type SdkQueryArgs = {
322
+ queryType: QueryType;
323
+ abortSignal?: AbortSignal;
324
+ };
325
+
326
+ // @public (undocumented)
327
+ export function serializeTypeAnnotations(item: QueryResult | Record_2): Record<string, unknown>;
328
+
329
+ // @public (undocumented)
330
+ export function serializeTypeAnnotations(item: Neo4jType): Record<string, unknown> | null | undefined | unknown[];
331
+
332
+ // @public (undocumented)
333
+ export const spacialFormat: (p: Point) => string;
334
+
335
+ // @public (undocumented)
336
+ export type StringStyle = 'json' | CypherStringStyle;
337
+
338
+ // (No @packageDocumentation comment for this package)
339
+
340
+ ```
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Config file for API Extractor. For more info, please visit: https://api-extractor.com
3
+ */
4
+ {
5
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
6
+
7
+ "extends": "../../api-extractor-base.json",
8
+
9
+ "mainEntryPointFilePath": "./dist/types/src/index.d.ts"
10
+ }
@@ -0,0 +1,4 @@
1
+ import { runApiExtractor } from '../../scripts/runApiExtractor.js';
2
+
3
+ // Deliberately outside src/ so it is not part of the package's tsc build.
4
+ runApiExtractor(import.meta.dirname);