@nexiq/shared 1.0.3 → 1.1.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 (68) hide show
  1. package/dist/component.d.ts +88 -5
  2. package/dist/component.d.ts.map +1 -1
  3. package/dist/db/sqlite.d.ts +2 -1
  4. package/dist/db/sqlite.d.ts.map +1 -1
  5. package/dist/db/sqlite.js +10 -3
  6. package/dist/db/sqlite.js.map +1 -1
  7. package/dist/index.d.ts +32 -15
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/nexiq/graph-view/graph-combo.d.ts +4 -1
  11. package/dist/nexiq/graph-view/graph-combo.d.ts.map +1 -1
  12. package/dist/nexiq/graph-view/graph-combo.js +10 -2
  13. package/dist/nexiq/graph-view/graph-combo.js.map +1 -1
  14. package/dist/nexiq/graph-view/graph-node.d.ts +4 -1
  15. package/dist/nexiq/graph-view/graph-node.d.ts.map +1 -1
  16. package/dist/nexiq/graph-view/graph-node.js +10 -2
  17. package/dist/nexiq/graph-view/graph-node.js.map +1 -1
  18. package/dist/nexiq/graph-view/item-type.d.ts +6 -1
  19. package/dist/nexiq/graph-view/item-type.d.ts.map +1 -1
  20. package/dist/nexiq/graph-view/item-type.js +90 -0
  21. package/dist/nexiq/graph-view/item-type.js.map +1 -1
  22. package/dist/nexiq/graph-view.d.ts +1 -1
  23. package/dist/nexiq/graph-view.d.ts.map +1 -1
  24. package/dist/nexiq/graph-view.js +1 -1
  25. package/dist/nexiq/graph-view.js.map +1 -1
  26. package/dist/types/backend.d.ts +21 -2
  27. package/dist/types/backend.d.ts.map +1 -1
  28. package/dist/types/config.d.ts +0 -1
  29. package/dist/types/config.d.ts.map +1 -1
  30. package/dist/types/index.d.ts +1 -32
  31. package/dist/types/index.d.ts.map +1 -1
  32. package/dist/types/index.js +1 -0
  33. package/dist/types/index.js.map +1 -1
  34. package/dist/types/primitive.d.ts +58 -4
  35. package/dist/types/primitive.d.ts.map +1 -1
  36. package/dist/types/routes.d.ts +60 -0
  37. package/dist/types/routes.d.ts.map +1 -0
  38. package/dist/types/routes.js +2 -0
  39. package/dist/types/routes.js.map +1 -0
  40. package/dist/utils.d.ts.map +1 -1
  41. package/package.json +14 -4
  42. package/dist/types/function.d.ts +0 -20
  43. package/dist/types/function.d.ts.map +0 -1
  44. package/dist/types/function.js +0 -2
  45. package/dist/types/function.js.map +0 -1
  46. package/eslint.config.js +0 -32
  47. package/src/component.ts +0 -503
  48. package/src/db/index.ts +0 -1
  49. package/src/db/sqlite.ts +0 -103
  50. package/src/index.ts +0 -288
  51. package/src/nexiq/graph-view/graph-combo.ts +0 -141
  52. package/src/nexiq/graph-view/graph-edge.ts +0 -108
  53. package/src/nexiq/graph-view/graph-node-detail.ts +0 -88
  54. package/src/nexiq/graph-view/graph-node.ts +0 -131
  55. package/src/nexiq/graph-view/graph-view.ts +0 -162
  56. package/src/nexiq/graph-view/item-type.ts +0 -19
  57. package/src/nexiq/graph-view/loc.ts +0 -56
  58. package/src/nexiq/graph-view.ts +0 -9
  59. package/src/schema/graph_view.fbs +0 -74
  60. package/src/types/backend.ts +0 -76
  61. package/src/types/config.ts +0 -17
  62. package/src/types/function.ts +0 -24
  63. package/src/types/git.ts +0 -48
  64. package/src/types/index.ts +0 -93
  65. package/src/types/object.ts +0 -37
  66. package/src/types/primitive.ts +0 -274
  67. package/src/utils.ts +0 -93
  68. package/tsconfig.json +0 -35
package/src/index.ts DELETED
@@ -1,288 +0,0 @@
1
- import type {
2
- ComponentFile,
3
- ComponentFileVar,
4
- PropData,
5
- EffectInfo,
6
- ComponentDBResolve,
7
- RelationKind,
8
- } from "./component.js";
9
-
10
- export type DataEdge = {
11
- from: string;
12
- to: string;
13
- label: string;
14
- };
15
-
16
- export interface PackageRow {
17
- id: string; // usually name@version or path
18
- name: string;
19
- version: string;
20
- path: string;
21
- }
22
-
23
- export interface PackageDependencyRow {
24
- id: number;
25
- package_id: string;
26
- dependency_name: string;
27
- dependency_version: string;
28
- is_dev: boolean;
29
- }
30
-
31
- export interface EntityRow {
32
- id: string;
33
- scope_id: string;
34
- kind: string; // 'component', 'hook', 'function', 'class', 'variable', 'import', 'jsx', etc.
35
- name: string | null;
36
- type: string | null;
37
- line: number | null;
38
- column: number | null;
39
- end_line: number | null;
40
- end_column: number | null;
41
- declaration_kind: string | null;
42
- data_json: string | null;
43
- }
44
-
45
- export interface ScopeRow {
46
- id: string;
47
- file_id: number;
48
- parent_id: string | null;
49
- kind: string; // 'module', 'block'
50
- entity_id: string | null;
51
- data_json: string | null;
52
- }
53
-
54
- export interface SymbolRow {
55
- id: string;
56
- entity_id: string;
57
- scope_id: string;
58
- name: string;
59
- path: string | null;
60
- is_alias: number;
61
- has_default: number;
62
- data_json: string | null;
63
- }
64
-
65
- export interface RenderRow {
66
- id: string;
67
- file_id: number;
68
- parent_entity_id: string;
69
- parent_render_id: string | null;
70
- render_index: number;
71
- tag: string;
72
- symbol_id: string | null;
73
- line: number | null;
74
- column: number | null;
75
- kind: string;
76
- data_json: string | null;
77
- }
78
-
79
- export interface RelationRow {
80
- from_id: string;
81
- to_id: string;
82
- kind: RelationKind;
83
- line: number | null;
84
- column: number | null;
85
- data_json: string | null;
86
- }
87
-
88
- export type {
89
- RelationKind,
90
- UsageOccurrence,
91
- ComponentRelation,
92
- } from "./component.js";
93
-
94
- export interface FileRow {
95
- id: number;
96
- path: string;
97
- package_id: string | null;
98
- hash: string;
99
- fingerprint: string;
100
- default_export: string | null;
101
- star_exports_json: string | null;
102
- }
103
-
104
- export interface AnalysisRunRow {
105
- id: string;
106
- package_id: string | null;
107
- src_dir: string;
108
- status: string;
109
- started_at: string;
110
- finished_at: string | null;
111
- }
112
-
113
- export interface FileRunStatusRow {
114
- id: string;
115
- run_id: string;
116
- package_id: string | null;
117
- file_path: string;
118
- status: string;
119
- started_at: string;
120
- finished_at: string | null;
121
- attempt: number;
122
- file_hash: string | null;
123
- fingerprint: string | null;
124
- }
125
-
126
- export interface FileAnalysisErrorRow {
127
- id: string;
128
- run_id: string;
129
- package_id: string | null;
130
- file_path: string;
131
- stage: string;
132
- error_code: string | null;
133
- message: string;
134
- line: number | null;
135
- column: number | null;
136
- stack: string | null;
137
- parser: string | null;
138
- file_hash: string | null;
139
- fingerprint: string | null;
140
- created_at: string;
141
- }
142
-
143
- export interface ResolveErrorRow {
144
- id: string;
145
- run_id: string;
146
- package_id: string | null;
147
- file_path: string;
148
- scope_id: string | null;
149
- entity_id: string | null;
150
- relation_kind: string;
151
- source_name: string | null;
152
- source_module: string | null;
153
- target_hint: string | null;
154
- resolver_stage: string;
155
- message: string;
156
- loc_line: number | null;
157
- loc_column: number | null;
158
- retry_count: number;
159
- created_at: string;
160
- }
161
-
162
- export interface WorkspacePackageRow {
163
- package_id: string;
164
- name: string;
165
- version: string | null;
166
- path: string;
167
- db_path: string;
168
- }
169
-
170
- export interface WorkspaceRunRow {
171
- id: string;
172
- root_dir: string;
173
- status: string;
174
- started_at: string;
175
- finished_at: string | null;
176
- }
177
-
178
- export interface PackageRunSummaryRow {
179
- id: string;
180
- workspace_run_id: string;
181
- package_id: string;
182
- analysis_run_id: string;
183
- status: string;
184
- files_total: number;
185
- files_succeeded: number;
186
- files_failed: number;
187
- resolve_errors: number;
188
- }
189
-
190
- export interface PackageRelationRow {
191
- from_package_id: string;
192
- to_package_id: string;
193
- relation_kind: string;
194
- source_file_path: string | null;
195
- target_file_path: string | null;
196
- source_symbol: string | null;
197
- target_symbol: string | null;
198
- run_id: string;
199
- }
200
-
201
- export interface CrossPackageResolveErrorRow {
202
- id: string;
203
- run_id: string;
204
- from_package_id: string;
205
- file_path: string;
206
- source_name: string | null;
207
- source_module: string | null;
208
- relation_kind: string;
209
- message: string;
210
- loc_line: number | null;
211
- loc_column: number | null;
212
- created_at: string;
213
- }
214
-
215
- export interface ExportRow {
216
- id: string;
217
- scope_id: string;
218
- symbol_id: string | null;
219
- entity_id: string | null;
220
- name: string | null;
221
- is_default: number;
222
- }
223
-
224
- export type DatabaseData = {
225
- packages?: PackageRow[] | undefined;
226
- package_dependencies?: PackageDependencyRow[] | undefined;
227
- files: FileRow[];
228
- entities: EntityRow[];
229
- scopes: ScopeRow[];
230
- symbols: SymbolRow[];
231
- renders: RenderRow[];
232
- exports: ExportRow[];
233
- relations: RelationRow[];
234
- analysis_runs?: AnalysisRunRow[] | undefined;
235
- file_run_status?: FileRunStatusRow[] | undefined;
236
- file_analysis_errors?: FileAnalysisErrorRow[] | undefined;
237
- resolve_errors?: ResolveErrorRow[] | undefined;
238
- diff?: AnalyzedDiff | undefined;
239
- };
240
-
241
- export type AnalyzedDiff = {
242
- added: string[];
243
- modified: string[];
244
- deleted: string[];
245
- deletedObjects?: Record<string, ComponentFileVar | PropData | EffectInfo>;
246
- };
247
-
248
- export type JsonData = {
249
- src: string;
250
- edges: DataEdge[];
251
- files: Record<string, ComponentFile>;
252
- labels?: Record<string, string[]>;
253
- diff?: AnalyzedDiff;
254
- resolve: ComponentDBResolve[];
255
- };
256
-
257
- export interface BenchmarkToolCall {
258
- id: string;
259
- name: string;
260
- arguments: Record<string, unknown>;
261
- }
262
-
263
- export interface BenchmarkStep {
264
- role: "user" | "assistant" | "tool" | "system";
265
- content?: string;
266
- toolCalls?: BenchmarkToolCall[];
267
- toolCallId?: string;
268
- toolName?: string;
269
- tokens: number;
270
- }
271
-
272
- export interface BenchmarkResult {
273
- scenarioId: string;
274
- projectName: string;
275
- approach: "baseline" | "nexiq-cold" | "nexiq-warm";
276
- testType: "single-prompt" | "planning";
277
- model: string;
278
- success: boolean;
279
- totalTokens: number;
280
- toolCallsCount: number;
281
- latencyMs: number;
282
- steps: BenchmarkStep[];
283
- }
284
-
285
- export * from "./types/index.js";
286
- export * from "./component.js";
287
- export * from "./utils.js";
288
- export * as FlatBuffers from "./nexiq/graph-view.js";
@@ -1,141 +0,0 @@
1
- // automatically generated by the FlatBuffers compiler, do not modify
2
-
3
- import * as flatbuffers from 'flatbuffers';
4
-
5
- import { ItemType } from '../../nexiq/graph-view/item-type.js';
6
-
7
-
8
- export class GraphCombo {
9
- bb: flatbuffers.ByteBuffer|null = null;
10
- bb_pos = 0;
11
- __init(i:number, bb:flatbuffers.ByteBuffer):GraphCombo {
12
- this.bb_pos = i;
13
- this.bb = bb;
14
- return this;
15
- }
16
-
17
- static getRootAsGraphCombo(bb:flatbuffers.ByteBuffer, obj?:GraphCombo):GraphCombo {
18
- return (obj || new GraphCombo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19
- }
20
-
21
- static getSizePrefixedRootAsGraphCombo(bb:flatbuffers.ByteBuffer, obj?:GraphCombo):GraphCombo {
22
- bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
23
- return (obj || new GraphCombo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
24
- }
25
-
26
- id():string|null
27
- id(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
28
- id(optionalEncoding?:any):string|Uint8Array|null {
29
- const offset = this.bb!.__offset(this.bb_pos, 4);
30
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
31
- }
32
-
33
- type():ItemType {
34
- const offset = this.bb!.__offset(this.bb_pos, 6);
35
- return offset ? this.bb!.readInt8(this.bb_pos + offset) : ItemType.Package;
36
- }
37
-
38
- name():string|null
39
- name(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
40
- name(optionalEncoding?:any):string|Uint8Array|null {
41
- const offset = this.bb!.__offset(this.bb_pos, 8);
42
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
43
- }
44
-
45
- displayName():string|null
46
- displayName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
47
- displayName(optionalEncoding?:any):string|Uint8Array|null {
48
- const offset = this.bb!.__offset(this.bb_pos, 10);
49
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
50
- }
51
-
52
- parentId():string|null
53
- parentId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
54
- parentId(optionalEncoding?:any):string|Uint8Array|null {
55
- const offset = this.bb!.__offset(this.bb_pos, 12);
56
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
57
- }
58
-
59
- color():string|null
60
- color(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
61
- color(optionalEncoding?:any):string|Uint8Array|null {
62
- const offset = this.bb!.__offset(this.bb_pos, 14);
63
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
64
- }
65
-
66
- radius():number {
67
- const offset = this.bb!.__offset(this.bb_pos, 16);
68
- return offset ? this.bb!.readFloat32(this.bb_pos + offset) : 0.0;
69
- }
70
-
71
- collapsed():boolean {
72
- const offset = this.bb!.__offset(this.bb_pos, 18);
73
- return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
74
- }
75
-
76
- gitStatus():string|null
77
- gitStatus(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
78
- gitStatus(optionalEncoding?:any):string|Uint8Array|null {
79
- const offset = this.bb!.__offset(this.bb_pos, 20);
80
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
81
- }
82
-
83
- static startGraphCombo(builder:flatbuffers.Builder) {
84
- builder.startObject(9);
85
- }
86
-
87
- static addId(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset) {
88
- builder.addFieldOffset(0, idOffset, 0);
89
- }
90
-
91
- static addType(builder:flatbuffers.Builder, type:ItemType) {
92
- builder.addFieldInt8(1, type, ItemType.Package);
93
- }
94
-
95
- static addName(builder:flatbuffers.Builder, nameOffset:flatbuffers.Offset) {
96
- builder.addFieldOffset(2, nameOffset, 0);
97
- }
98
-
99
- static addDisplayName(builder:flatbuffers.Builder, displayNameOffset:flatbuffers.Offset) {
100
- builder.addFieldOffset(3, displayNameOffset, 0);
101
- }
102
-
103
- static addParentId(builder:flatbuffers.Builder, parentIdOffset:flatbuffers.Offset) {
104
- builder.addFieldOffset(4, parentIdOffset, 0);
105
- }
106
-
107
- static addColor(builder:flatbuffers.Builder, colorOffset:flatbuffers.Offset) {
108
- builder.addFieldOffset(5, colorOffset, 0);
109
- }
110
-
111
- static addRadius(builder:flatbuffers.Builder, radius:number) {
112
- builder.addFieldFloat32(6, radius, 0.0);
113
- }
114
-
115
- static addCollapsed(builder:flatbuffers.Builder, collapsed:boolean) {
116
- builder.addFieldInt8(7, +collapsed, +false);
117
- }
118
-
119
- static addGitStatus(builder:flatbuffers.Builder, gitStatusOffset:flatbuffers.Offset) {
120
- builder.addFieldOffset(8, gitStatusOffset, 0);
121
- }
122
-
123
- static endGraphCombo(builder:flatbuffers.Builder):flatbuffers.Offset {
124
- const offset = builder.endObject();
125
- return offset;
126
- }
127
-
128
- static createGraphCombo(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset, type:ItemType, nameOffset:flatbuffers.Offset, displayNameOffset:flatbuffers.Offset, parentIdOffset:flatbuffers.Offset, colorOffset:flatbuffers.Offset, radius:number, collapsed:boolean, gitStatusOffset:flatbuffers.Offset):flatbuffers.Offset {
129
- GraphCombo.startGraphCombo(builder);
130
- GraphCombo.addId(builder, idOffset);
131
- GraphCombo.addType(builder, type);
132
- GraphCombo.addName(builder, nameOffset);
133
- GraphCombo.addDisplayName(builder, displayNameOffset);
134
- GraphCombo.addParentId(builder, parentIdOffset);
135
- GraphCombo.addColor(builder, colorOffset);
136
- GraphCombo.addRadius(builder, radius);
137
- GraphCombo.addCollapsed(builder, collapsed);
138
- GraphCombo.addGitStatus(builder, gitStatusOffset);
139
- return GraphCombo.endGraphCombo(builder);
140
- }
141
- }
@@ -1,108 +0,0 @@
1
- // automatically generated by the FlatBuffers compiler, do not modify
2
-
3
- import * as flatbuffers from 'flatbuffers';
4
-
5
- export class GraphEdge {
6
- bb: flatbuffers.ByteBuffer|null = null;
7
- bb_pos = 0;
8
- __init(i:number, bb:flatbuffers.ByteBuffer):GraphEdge {
9
- this.bb_pos = i;
10
- this.bb = bb;
11
- return this;
12
- }
13
-
14
- static getRootAsGraphEdge(bb:flatbuffers.ByteBuffer, obj?:GraphEdge):GraphEdge {
15
- return (obj || new GraphEdge()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
16
- }
17
-
18
- static getSizePrefixedRootAsGraphEdge(bb:flatbuffers.ByteBuffer, obj?:GraphEdge):GraphEdge {
19
- bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
20
- return (obj || new GraphEdge()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
21
- }
22
-
23
- id():string|null
24
- id(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
25
- id(optionalEncoding?:any):string|Uint8Array|null {
26
- const offset = this.bb!.__offset(this.bb_pos, 4);
27
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
28
- }
29
-
30
- source():string|null
31
- source(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
32
- source(optionalEncoding?:any):string|Uint8Array|null {
33
- const offset = this.bb!.__offset(this.bb_pos, 6);
34
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
35
- }
36
-
37
- target():string|null
38
- target(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
39
- target(optionalEncoding?:any):string|Uint8Array|null {
40
- const offset = this.bb!.__offset(this.bb_pos, 8);
41
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
42
- }
43
-
44
- name():string|null
45
- name(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
46
- name(optionalEncoding?:any):string|Uint8Array|null {
47
- const offset = this.bb!.__offset(this.bb_pos, 10);
48
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
49
- }
50
-
51
- kind():string|null
52
- kind(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
53
- kind(optionalEncoding?:any):string|Uint8Array|null {
54
- const offset = this.bb!.__offset(this.bb_pos, 12);
55
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
56
- }
57
-
58
- category():string|null
59
- category(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
60
- category(optionalEncoding?:any):string|Uint8Array|null {
61
- const offset = this.bb!.__offset(this.bb_pos, 14);
62
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
63
- }
64
-
65
- static startGraphEdge(builder:flatbuffers.Builder) {
66
- builder.startObject(6);
67
- }
68
-
69
- static addId(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset) {
70
- builder.addFieldOffset(0, idOffset, 0);
71
- }
72
-
73
- static addSource(builder:flatbuffers.Builder, sourceOffset:flatbuffers.Offset) {
74
- builder.addFieldOffset(1, sourceOffset, 0);
75
- }
76
-
77
- static addTarget(builder:flatbuffers.Builder, targetOffset:flatbuffers.Offset) {
78
- builder.addFieldOffset(2, targetOffset, 0);
79
- }
80
-
81
- static addName(builder:flatbuffers.Builder, nameOffset:flatbuffers.Offset) {
82
- builder.addFieldOffset(3, nameOffset, 0);
83
- }
84
-
85
- static addKind(builder:flatbuffers.Builder, kindOffset:flatbuffers.Offset) {
86
- builder.addFieldOffset(4, kindOffset, 0);
87
- }
88
-
89
- static addCategory(builder:flatbuffers.Builder, categoryOffset:flatbuffers.Offset) {
90
- builder.addFieldOffset(5, categoryOffset, 0);
91
- }
92
-
93
- static endGraphEdge(builder:flatbuffers.Builder):flatbuffers.Offset {
94
- const offset = builder.endObject();
95
- return offset;
96
- }
97
-
98
- static createGraphEdge(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset, sourceOffset:flatbuffers.Offset, targetOffset:flatbuffers.Offset, nameOffset:flatbuffers.Offset, kindOffset:flatbuffers.Offset, categoryOffset:flatbuffers.Offset):flatbuffers.Offset {
99
- GraphEdge.startGraphEdge(builder);
100
- GraphEdge.addId(builder, idOffset);
101
- GraphEdge.addSource(builder, sourceOffset);
102
- GraphEdge.addTarget(builder, targetOffset);
103
- GraphEdge.addName(builder, nameOffset);
104
- GraphEdge.addKind(builder, kindOffset);
105
- GraphEdge.addCategory(builder, categoryOffset);
106
- return GraphEdge.endGraphEdge(builder);
107
- }
108
- }
@@ -1,88 +0,0 @@
1
- // automatically generated by the FlatBuffers compiler, do not modify
2
-
3
- import * as flatbuffers from 'flatbuffers';
4
-
5
- import { Loc } from '../../nexiq/graph-view/loc.js';
6
-
7
-
8
- export class GraphNodeDetail {
9
- bb: flatbuffers.ByteBuffer|null = null;
10
- bb_pos = 0;
11
- __init(i:number, bb:flatbuffers.ByteBuffer):GraphNodeDetail {
12
- this.bb_pos = i;
13
- this.bb = bb;
14
- return this;
15
- }
16
-
17
- static getRootAsGraphNodeDetail(bb:flatbuffers.ByteBuffer, obj?:GraphNodeDetail):GraphNodeDetail {
18
- return (obj || new GraphNodeDetail()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19
- }
20
-
21
- static getSizePrefixedRootAsGraphNodeDetail(bb:flatbuffers.ByteBuffer, obj?:GraphNodeDetail):GraphNodeDetail {
22
- bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
23
- return (obj || new GraphNodeDetail()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
24
- }
25
-
26
- id():string|null
27
- id(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
28
- id(optionalEncoding?:any):string|Uint8Array|null {
29
- const offset = this.bb!.__offset(this.bb_pos, 4);
30
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
31
- }
32
-
33
- fileName():string|null
34
- fileName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
35
- fileName(optionalEncoding?:any):string|Uint8Array|null {
36
- const offset = this.bb!.__offset(this.bb_pos, 6);
37
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
38
- }
39
-
40
- projectPath():string|null
41
- projectPath(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
42
- projectPath(optionalEncoding?:any):string|Uint8Array|null {
43
- const offset = this.bb!.__offset(this.bb_pos, 8);
44
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
45
- }
46
-
47
- loc(obj?:Loc):Loc|null {
48
- const offset = this.bb!.__offset(this.bb_pos, 10);
49
- return offset ? (obj || new Loc()).__init(this.bb!.__indirect(this.bb_pos + offset), this.bb!) : null;
50
- }
51
-
52
- dataJson():string|null
53
- dataJson(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
54
- dataJson(optionalEncoding?:any):string|Uint8Array|null {
55
- const offset = this.bb!.__offset(this.bb_pos, 12);
56
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
57
- }
58
-
59
- static startGraphNodeDetail(builder:flatbuffers.Builder) {
60
- builder.startObject(5);
61
- }
62
-
63
- static addId(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset) {
64
- builder.addFieldOffset(0, idOffset, 0);
65
- }
66
-
67
- static addFileName(builder:flatbuffers.Builder, fileNameOffset:flatbuffers.Offset) {
68
- builder.addFieldOffset(1, fileNameOffset, 0);
69
- }
70
-
71
- static addProjectPath(builder:flatbuffers.Builder, projectPathOffset:flatbuffers.Offset) {
72
- builder.addFieldOffset(2, projectPathOffset, 0);
73
- }
74
-
75
- static addLoc(builder:flatbuffers.Builder, locOffset:flatbuffers.Offset) {
76
- builder.addFieldOffset(3, locOffset, 0);
77
- }
78
-
79
- static addDataJson(builder:flatbuffers.Builder, dataJsonOffset:flatbuffers.Offset) {
80
- builder.addFieldOffset(4, dataJsonOffset, 0);
81
- }
82
-
83
- static endGraphNodeDetail(builder:flatbuffers.Builder):flatbuffers.Offset {
84
- const offset = builder.endObject();
85
- return offset;
86
- }
87
-
88
- }