@teambit/insights 1.0.512 → 1.0.514

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.
@@ -0,0 +1,2743 @@
1
+ {
2
+ "__schema": "APISchema",
3
+ "location": {
4
+ "filePath": "index.ts",
5
+ "line": 1,
6
+ "character": 1
7
+ },
8
+ "module": {
9
+ "__schema": "ModuleSchema",
10
+ "location": {
11
+ "filePath": "index.ts",
12
+ "line": 1,
13
+ "character": 1
14
+ },
15
+ "exports": [
16
+ {
17
+ "__schema": "ExportSchema",
18
+ "location": {
19
+ "filePath": "index.ts",
20
+ "line": 1,
21
+ "character": 10
22
+ },
23
+ "signature": "class InsightManager",
24
+ "name": "InsightManager",
25
+ "exportNode": {
26
+ "__schema": "ClassSchema",
27
+ "location": {
28
+ "filePath": "insight-manager.ts",
29
+ "line": 12,
30
+ "character": 1
31
+ },
32
+ "signature": "class InsightManager",
33
+ "name": "InsightManager",
34
+ "members": [
35
+ {
36
+ "__schema": "VariableLikeSchema",
37
+ "location": {
38
+ "filePath": "insight-manager.ts",
39
+ "line": 14,
40
+ "character": 3
41
+ },
42
+ "doc": {
43
+ "__schema": "DocSchema",
44
+ "location": {
45
+ "filePath": "insight-manager.ts",
46
+ "line": 13,
47
+ "character": 3
48
+ },
49
+ "raw": "/** insights is an insight registry */",
50
+ "comment": "insights is an insight registry",
51
+ "tags": []
52
+ },
53
+ "signature": "(property) InsightManager.insights: Map<string, Insight>",
54
+ "name": "insights",
55
+ "type": {
56
+ "__schema": "TypeRefSchema",
57
+ "location": {
58
+ "filePath": "insight-manager.ts",
59
+ "line": 14,
60
+ "character": 22
61
+ },
62
+ "name": "Map",
63
+ "typeArgs": [
64
+ {
65
+ "__schema": "KeywordTypeSchema",
66
+ "location": {
67
+ "filePath": "insight-manager.ts",
68
+ "line": 14,
69
+ "character": 26
70
+ },
71
+ "name": "string"
72
+ },
73
+ {
74
+ "__schema": "TypeRefSchema",
75
+ "location": {
76
+ "filePath": "insight-manager.ts",
77
+ "line": 14,
78
+ "character": 34
79
+ },
80
+ "name": "Insight"
81
+ }
82
+ ]
83
+ },
84
+ "isOptional": true,
85
+ "defaultValue": "new Map()"
86
+ },
87
+ {
88
+ "__schema": "ConstructorSchema",
89
+ "location": {
90
+ "filePath": "insight-manager.ts",
91
+ "line": 15,
92
+ "character": 3
93
+ },
94
+ "signature": "constructor InsightManager(insights: Insight[]): InsightManager",
95
+ "name": "constructor",
96
+ "params": [
97
+ {
98
+ "__schema": "ParameterSchema",
99
+ "location": {
100
+ "filePath": "insight-manager.ts",
101
+ "line": 19,
102
+ "character": 5
103
+ },
104
+ "name": "insights",
105
+ "type": {
106
+ "__schema": "TypeArraySchema",
107
+ "location": {
108
+ "filePath": "insight-manager.ts",
109
+ "line": 19,
110
+ "character": 15
111
+ },
112
+ "type": {
113
+ "__schema": "TypeRefSchema",
114
+ "location": {
115
+ "filePath": "insight-manager.ts",
116
+ "line": 19,
117
+ "character": 15
118
+ },
119
+ "name": "Insight"
120
+ }
121
+ },
122
+ "isOptional": false,
123
+ "isSpread": false
124
+ }
125
+ ],
126
+ "returnType": {
127
+ "__schema": "ThisTypeSchema",
128
+ "location": {
129
+ "filePath": "insight-manager.ts",
130
+ "line": 12,
131
+ "character": 1
132
+ },
133
+ "name": "InsightManager"
134
+ },
135
+ "modifiers": []
136
+ },
137
+ {
138
+ "__schema": "FunctionLikeSchema",
139
+ "location": {
140
+ "filePath": "insight-manager.ts",
141
+ "line": 29,
142
+ "character": 3
143
+ },
144
+ "doc": {
145
+ "__schema": "DocSchema",
146
+ "location": {
147
+ "filePath": "insight-manager.ts",
148
+ "line": 26,
149
+ "character": 3
150
+ },
151
+ "raw": "/**\n * registers a new insight and returns the updated insight registry map\n */",
152
+ "comment": "registers a new insight and returns the updated insight registry map",
153
+ "tags": []
154
+ },
155
+ "signature": "(method) InsightManager.register(insight: Insight): void",
156
+ "name": "register",
157
+ "params": [
158
+ {
159
+ "__schema": "ParameterSchema",
160
+ "location": {
161
+ "filePath": "insight-manager.ts",
162
+ "line": 29,
163
+ "character": 12
164
+ },
165
+ "name": "insight",
166
+ "type": {
167
+ "__schema": "TypeRefSchema",
168
+ "location": {
169
+ "filePath": "insight-manager.ts",
170
+ "line": 29,
171
+ "character": 21
172
+ },
173
+ "name": "Insight"
174
+ },
175
+ "isOptional": false,
176
+ "isSpread": false
177
+ }
178
+ ],
179
+ "returnType": {
180
+ "__schema": "InferenceTypeSchema",
181
+ "location": {
182
+ "filePath": "insight-manager.ts",
183
+ "line": 29,
184
+ "character": 3
185
+ },
186
+ "type": "void"
187
+ },
188
+ "modifiers": []
189
+ },
190
+ {
191
+ "__schema": "FunctionLikeSchema",
192
+ "location": {
193
+ "filePath": "insight-manager.ts",
194
+ "line": 39,
195
+ "character": 3
196
+ },
197
+ "doc": {
198
+ "__schema": "DocSchema",
199
+ "location": {
200
+ "filePath": "insight-manager.ts",
201
+ "line": 36,
202
+ "character": 3
203
+ },
204
+ "raw": "/**\n * list of all registered insights\n */",
205
+ "comment": "list of all registered insights",
206
+ "tags": []
207
+ },
208
+ "signature": "(method) InsightManager.listInsights(): string[]",
209
+ "name": "listInsights",
210
+ "params": [],
211
+ "returnType": {
212
+ "__schema": "TypeArraySchema",
213
+ "location": {
214
+ "filePath": "insight-manager.ts",
215
+ "line": 39,
216
+ "character": 19
217
+ },
218
+ "type": {
219
+ "__schema": "KeywordTypeSchema",
220
+ "location": {
221
+ "filePath": "insight-manager.ts",
222
+ "line": 39,
223
+ "character": 19
224
+ },
225
+ "name": "string"
226
+ }
227
+ },
228
+ "modifiers": []
229
+ },
230
+ {
231
+ "__schema": "FunctionLikeSchema",
232
+ "location": {
233
+ "filePath": "insight-manager.ts",
234
+ "line": 46,
235
+ "character": 3
236
+ },
237
+ "doc": {
238
+ "__schema": "DocSchema",
239
+ "location": {
240
+ "filePath": "insight-manager.ts",
241
+ "line": 43,
242
+ "character": 3
243
+ },
244
+ "raw": "/**\n * gets a specific insight by its name or undefined if doesn't exist\n */",
245
+ "comment": "gets a specific insight by its name or undefined if doesn't exist",
246
+ "tags": []
247
+ },
248
+ "signature": "(method) InsightManager.getByName(insightName: string): Insight | undefined",
249
+ "name": "getByName",
250
+ "params": [
251
+ {
252
+ "__schema": "ParameterSchema",
253
+ "location": {
254
+ "filePath": "insight-manager.ts",
255
+ "line": 46,
256
+ "character": 13
257
+ },
258
+ "name": "insightName",
259
+ "type": {
260
+ "__schema": "KeywordTypeSchema",
261
+ "location": {
262
+ "filePath": "insight-manager.ts",
263
+ "line": 46,
264
+ "character": 26
265
+ },
266
+ "name": "string"
267
+ },
268
+ "isOptional": false,
269
+ "isSpread": false
270
+ }
271
+ ],
272
+ "returnType": {
273
+ "__schema": "TypeUnionSchema",
274
+ "location": {
275
+ "filePath": "insight-manager.ts",
276
+ "line": 46,
277
+ "character": 35
278
+ },
279
+ "types": [
280
+ {
281
+ "__schema": "TypeRefSchema",
282
+ "location": {
283
+ "filePath": "insight-manager.ts",
284
+ "line": 46,
285
+ "character": 35
286
+ },
287
+ "name": "Insight"
288
+ },
289
+ {
290
+ "__schema": "KeywordTypeSchema",
291
+ "location": {
292
+ "filePath": "insight-manager.ts",
293
+ "line": 46,
294
+ "character": 45
295
+ },
296
+ "name": "undefined"
297
+ }
298
+ ]
299
+ },
300
+ "modifiers": []
301
+ },
302
+ {
303
+ "__schema": "FunctionLikeSchema",
304
+ "location": {
305
+ "filePath": "insight-manager.ts",
306
+ "line": 53,
307
+ "character": 3
308
+ },
309
+ "doc": {
310
+ "__schema": "DocSchema",
311
+ "location": {
312
+ "filePath": "insight-manager.ts",
313
+ "line": 50,
314
+ "character": 3
315
+ },
316
+ "raw": "/**\n * deletes a specific insight by its name if exists\n */",
317
+ "comment": "deletes a specific insight by its name if exists",
318
+ "tags": []
319
+ },
320
+ "signature": "(method) InsightManager.delete(insightName: string): void",
321
+ "name": "delete",
322
+ "params": [
323
+ {
324
+ "__schema": "ParameterSchema",
325
+ "location": {
326
+ "filePath": "insight-manager.ts",
327
+ "line": 53,
328
+ "character": 10
329
+ },
330
+ "name": "insightName",
331
+ "type": {
332
+ "__schema": "KeywordTypeSchema",
333
+ "location": {
334
+ "filePath": "insight-manager.ts",
335
+ "line": 53,
336
+ "character": 23
337
+ },
338
+ "name": "string"
339
+ },
340
+ "isOptional": false,
341
+ "isSpread": false
342
+ }
343
+ ],
344
+ "returnType": {
345
+ "__schema": "InferenceTypeSchema",
346
+ "location": {
347
+ "filePath": "insight-manager.ts",
348
+ "line": 53,
349
+ "character": 3
350
+ },
351
+ "type": "void"
352
+ },
353
+ "modifiers": []
354
+ },
355
+ {
356
+ "__schema": "FunctionLikeSchema",
357
+ "location": {
358
+ "filePath": "insight-manager.ts",
359
+ "line": 64,
360
+ "character": 3
361
+ },
362
+ "doc": {
363
+ "__schema": "DocSchema",
364
+ "location": {
365
+ "filePath": "insight-manager.ts",
366
+ "line": 60,
367
+ "character": 3
368
+ },
369
+ "raw": "/**\n * execute an array of insights\n *\n */",
370
+ "comment": "execute an array of insights",
371
+ "tags": []
372
+ },
373
+ "signature": "(method) InsightManager.run(insightNames: string[], opts: RunInsightOptions): Promise<InsightResult[]>",
374
+ "name": "run",
375
+ "params": [
376
+ {
377
+ "__schema": "ParameterSchema",
378
+ "location": {
379
+ "filePath": "insight-manager.ts",
380
+ "line": 64,
381
+ "character": 13
382
+ },
383
+ "name": "insightNames",
384
+ "type": {
385
+ "__schema": "TypeArraySchema",
386
+ "location": {
387
+ "filePath": "insight-manager.ts",
388
+ "line": 64,
389
+ "character": 27
390
+ },
391
+ "type": {
392
+ "__schema": "KeywordTypeSchema",
393
+ "location": {
394
+ "filePath": "insight-manager.ts",
395
+ "line": 64,
396
+ "character": 27
397
+ },
398
+ "name": "string"
399
+ }
400
+ },
401
+ "isOptional": false,
402
+ "isSpread": false
403
+ },
404
+ {
405
+ "__schema": "ParameterSchema",
406
+ "location": {
407
+ "filePath": "insight-manager.ts",
408
+ "line": 64,
409
+ "character": 37
410
+ },
411
+ "name": "opts",
412
+ "type": {
413
+ "__schema": "TypeRefSchema",
414
+ "location": {
415
+ "filePath": "insight-manager.ts",
416
+ "line": 64,
417
+ "character": 43
418
+ },
419
+ "name": "RunInsightOptions",
420
+ "internalFilePath": "insight-manager.ts"
421
+ },
422
+ "isOptional": false,
423
+ "isSpread": false
424
+ }
425
+ ],
426
+ "returnType": {
427
+ "__schema": "TypeRefSchema",
428
+ "location": {
429
+ "filePath": "insight-manager.ts",
430
+ "line": 64,
431
+ "character": 63
432
+ },
433
+ "name": "Promise",
434
+ "typeArgs": [
435
+ {
436
+ "__schema": "TypeArraySchema",
437
+ "location": {
438
+ "filePath": "insight-manager.ts",
439
+ "line": 64,
440
+ "character": 71
441
+ },
442
+ "type": {
443
+ "__schema": "TypeRefSchema",
444
+ "location": {
445
+ "filePath": "insight-manager.ts",
446
+ "line": 64,
447
+ "character": 71
448
+ },
449
+ "name": "InsightResult",
450
+ "internalFilePath": "insight.ts"
451
+ }
452
+ }
453
+ ]
454
+ },
455
+ "modifiers": [
456
+ "async"
457
+ ]
458
+ },
459
+ {
460
+ "__schema": "FunctionLikeSchema",
461
+ "location": {
462
+ "filePath": "insight-manager.ts",
463
+ "line": 86,
464
+ "character": 3
465
+ },
466
+ "doc": {
467
+ "__schema": "DocSchema",
468
+ "location": {
469
+ "filePath": "insight-manager.ts",
470
+ "line": 82,
471
+ "character": 3
472
+ },
473
+ "raw": "/**\n * execute all insights in the registry\n *\n */",
474
+ "comment": "execute all insights in the registry",
475
+ "tags": []
476
+ },
477
+ "signature": "(method) InsightManager.runAll(opts: RunInsightOptions): Promise<InsightResult[]>",
478
+ "name": "runAll",
479
+ "params": [
480
+ {
481
+ "__schema": "ParameterSchema",
482
+ "location": {
483
+ "filePath": "insight-manager.ts",
484
+ "line": 86,
485
+ "character": 16
486
+ },
487
+ "name": "opts",
488
+ "type": {
489
+ "__schema": "TypeRefSchema",
490
+ "location": {
491
+ "filePath": "insight-manager.ts",
492
+ "line": 86,
493
+ "character": 22
494
+ },
495
+ "name": "RunInsightOptions",
496
+ "internalFilePath": "insight-manager.ts"
497
+ },
498
+ "isOptional": false,
499
+ "isSpread": false
500
+ }
501
+ ],
502
+ "returnType": {
503
+ "__schema": "TypeRefSchema",
504
+ "location": {
505
+ "filePath": "insight-manager.ts",
506
+ "line": 86,
507
+ "character": 42
508
+ },
509
+ "name": "Promise",
510
+ "typeArgs": [
511
+ {
512
+ "__schema": "TypeArraySchema",
513
+ "location": {
514
+ "filePath": "insight-manager.ts",
515
+ "line": 86,
516
+ "character": 50
517
+ },
518
+ "type": {
519
+ "__schema": "TypeRefSchema",
520
+ "location": {
521
+ "filePath": "insight-manager.ts",
522
+ "line": 86,
523
+ "character": 50
524
+ },
525
+ "name": "InsightResult",
526
+ "internalFilePath": "insight.ts"
527
+ }
528
+ }
529
+ ]
530
+ },
531
+ "modifiers": [
532
+ "async"
533
+ ]
534
+ }
535
+ ],
536
+ "extendsNodes": [],
537
+ "implementNodes": []
538
+ }
539
+ },
540
+ {
541
+ "__schema": "ExportSchema",
542
+ "location": {
543
+ "filePath": "index.ts",
544
+ "line": 2,
545
+ "character": 15
546
+ },
547
+ "signature": "interface Insight",
548
+ "name": "Insight",
549
+ "exportNode": {
550
+ "__schema": "InterfaceSchema",
551
+ "location": {
552
+ "filePath": "insight.ts",
553
+ "line": 21,
554
+ "character": 1
555
+ },
556
+ "signature": "interface Insight",
557
+ "name": "Insight",
558
+ "members": [
559
+ {
560
+ "__schema": "VariableLikeSchema",
561
+ "location": {
562
+ "filePath": "insight.ts",
563
+ "line": 22,
564
+ "character": 3
565
+ },
566
+ "signature": "(property) Insight.name: string",
567
+ "name": "name",
568
+ "type": {
569
+ "__schema": "KeywordTypeSchema",
570
+ "location": {
571
+ "filePath": "insight.ts",
572
+ "line": 22,
573
+ "character": 9
574
+ },
575
+ "name": "string"
576
+ },
577
+ "isOptional": false
578
+ },
579
+ {
580
+ "__schema": "VariableLikeSchema",
581
+ "location": {
582
+ "filePath": "insight.ts",
583
+ "line": 23,
584
+ "character": 3
585
+ },
586
+ "signature": "(property) Insight.description: string",
587
+ "name": "description",
588
+ "type": {
589
+ "__schema": "KeywordTypeSchema",
590
+ "location": {
591
+ "filePath": "insight.ts",
592
+ "line": 23,
593
+ "character": 16
594
+ },
595
+ "name": "string"
596
+ },
597
+ "isOptional": false
598
+ },
599
+ {
600
+ "__schema": "FunctionLikeSchema",
601
+ "location": {
602
+ "filePath": "insight.ts",
603
+ "line": 28,
604
+ "character": 3
605
+ },
606
+ "doc": {
607
+ "__schema": "DocSchema",
608
+ "location": {
609
+ "filePath": "insight.ts",
610
+ "line": 25,
611
+ "character": 3
612
+ },
613
+ "raw": "/**\n * runs a specific insight using _runInsight, gets a RawResult, and uses _formatData to transform the output to InsightResult.\n */",
614
+ "comment": "runs a specific insight using _runInsight, gets a RawResult, and uses _formatData to transform the output to InsightResult.",
615
+ "tags": []
616
+ },
617
+ "signature": "(method) Insight.run(opts?: RunInsightOptions): Promise<InsightResult>",
618
+ "name": "run",
619
+ "params": [
620
+ {
621
+ "__schema": "ParameterSchema",
622
+ "location": {
623
+ "filePath": "insight.ts",
624
+ "line": 28,
625
+ "character": 7
626
+ },
627
+ "name": "opts",
628
+ "type": {
629
+ "__schema": "TypeRefSchema",
630
+ "location": {
631
+ "filePath": "insight.ts",
632
+ "line": 28,
633
+ "character": 14
634
+ },
635
+ "name": "RunInsightOptions",
636
+ "internalFilePath": "insight-manager.ts"
637
+ },
638
+ "isOptional": true,
639
+ "isSpread": false
640
+ }
641
+ ],
642
+ "returnType": {
643
+ "__schema": "TypeRefSchema",
644
+ "location": {
645
+ "filePath": "insight.ts",
646
+ "line": 28,
647
+ "character": 34
648
+ },
649
+ "name": "Promise",
650
+ "typeArgs": [
651
+ {
652
+ "__schema": "TypeRefSchema",
653
+ "location": {
654
+ "filePath": "insight.ts",
655
+ "line": 28,
656
+ "character": 42
657
+ },
658
+ "name": "InsightResult",
659
+ "internalFilePath": "insight.ts"
660
+ }
661
+ ]
662
+ },
663
+ "modifiers": []
664
+ },
665
+ {
666
+ "__schema": "FunctionLikeSchema",
667
+ "location": {
668
+ "filePath": "insight.ts",
669
+ "line": 34,
670
+ "character": 3
671
+ },
672
+ "doc": {
673
+ "__schema": "DocSchema",
674
+ "location": {
675
+ "filePath": "insight.ts",
676
+ "line": 30,
677
+ "character": 3
678
+ },
679
+ "raw": "/**\n * add the results from the insights as a component-issue so then bit-status could show them and bit-tag could block\n * them.\n */",
680
+ "comment": "add the results from the insights as a component-issue so then bit-status could show them and bit-tag could block\nthem.",
681
+ "tags": []
682
+ },
683
+ "signature": "(method) Insight.addAsComponentIssue?(components: Component[]): Promise<void>",
684
+ "name": "addAsComponentIssue",
685
+ "params": [
686
+ {
687
+ "__schema": "ParameterSchema",
688
+ "location": {
689
+ "filePath": "insight.ts",
690
+ "line": 34,
691
+ "character": 24
692
+ },
693
+ "name": "components",
694
+ "type": {
695
+ "__schema": "TypeArraySchema",
696
+ "location": {
697
+ "filePath": "insight.ts",
698
+ "line": 34,
699
+ "character": 36
700
+ },
701
+ "type": {
702
+ "__schema": "TypeRefSchema",
703
+ "location": {
704
+ "filePath": "insight.ts",
705
+ "line": 34,
706
+ "character": 36
707
+ },
708
+ "name": "Component",
709
+ "componentId": {
710
+ "scope": "teambit.component",
711
+ "name": "component"
712
+ }
713
+ }
714
+ },
715
+ "isOptional": false,
716
+ "isSpread": false
717
+ }
718
+ ],
719
+ "returnType": {
720
+ "__schema": "TypeRefSchema",
721
+ "location": {
722
+ "filePath": "insight.ts",
723
+ "line": 34,
724
+ "character": 50
725
+ },
726
+ "name": "Promise",
727
+ "typeArgs": [
728
+ {
729
+ "__schema": "KeywordTypeSchema",
730
+ "location": {
731
+ "filePath": "insight.ts",
732
+ "line": 34,
733
+ "character": 58
734
+ },
735
+ "name": "void"
736
+ }
737
+ ]
738
+ },
739
+ "modifiers": []
740
+ }
741
+ ],
742
+ "extendsNodes": []
743
+ }
744
+ },
745
+ {
746
+ "__schema": "ExportSchema",
747
+ "location": {
748
+ "filePath": "index.ts",
749
+ "line": 3,
750
+ "character": 15
751
+ },
752
+ "signature": "class InsightsMain",
753
+ "name": "InsightsMain",
754
+ "exportNode": {
755
+ "__schema": "ClassSchema",
756
+ "location": {
757
+ "filePath": "insights.main.runtime.ts",
758
+ "line": 13,
759
+ "character": 1
760
+ },
761
+ "signature": "class InsightsMain",
762
+ "name": "InsightsMain",
763
+ "members": [
764
+ {
765
+ "__schema": "ConstructorSchema",
766
+ "location": {
767
+ "filePath": "insights.main.runtime.ts",
768
+ "line": 14,
769
+ "character": 3
770
+ },
771
+ "signature": "constructor InsightsMain(insightManager: InsightManager): InsightsMain",
772
+ "name": "constructor",
773
+ "params": [
774
+ {
775
+ "__schema": "ParameterSchema",
776
+ "location": {
777
+ "filePath": "insights.main.runtime.ts",
778
+ "line": 14,
779
+ "character": 15
780
+ },
781
+ "name": "insightManager",
782
+ "type": {
783
+ "__schema": "TypeRefSchema",
784
+ "location": {
785
+ "filePath": "insights.main.runtime.ts",
786
+ "line": 14,
787
+ "character": 39
788
+ },
789
+ "name": "InsightManager"
790
+ },
791
+ "isOptional": false,
792
+ "isSpread": false
793
+ }
794
+ ],
795
+ "returnType": {
796
+ "__schema": "ThisTypeSchema",
797
+ "location": {
798
+ "filePath": "insights.main.runtime.ts",
799
+ "line": 13,
800
+ "character": 1
801
+ },
802
+ "name": "InsightsMain"
803
+ },
804
+ "modifiers": []
805
+ },
806
+ {
807
+ "__schema": "FunctionLikeSchema",
808
+ "location": {
809
+ "filePath": "insights.main.runtime.ts",
810
+ "line": 16,
811
+ "character": 3
812
+ },
813
+ "signature": "(method) InsightsMain.runInsights(names: string[], opts: RunInsightOptions): Promise<InsightResult[]>",
814
+ "name": "runInsights",
815
+ "params": [
816
+ {
817
+ "__schema": "ParameterSchema",
818
+ "location": {
819
+ "filePath": "insights.main.runtime.ts",
820
+ "line": 16,
821
+ "character": 21
822
+ },
823
+ "name": "names",
824
+ "type": {
825
+ "__schema": "TypeArraySchema",
826
+ "location": {
827
+ "filePath": "insights.main.runtime.ts",
828
+ "line": 16,
829
+ "character": 28
830
+ },
831
+ "type": {
832
+ "__schema": "KeywordTypeSchema",
833
+ "location": {
834
+ "filePath": "insights.main.runtime.ts",
835
+ "line": 16,
836
+ "character": 28
837
+ },
838
+ "name": "string"
839
+ }
840
+ },
841
+ "isOptional": false,
842
+ "isSpread": false
843
+ },
844
+ {
845
+ "__schema": "ParameterSchema",
846
+ "location": {
847
+ "filePath": "insights.main.runtime.ts",
848
+ "line": 16,
849
+ "character": 38
850
+ },
851
+ "name": "opts",
852
+ "type": {
853
+ "__schema": "TypeRefSchema",
854
+ "location": {
855
+ "filePath": "insights.main.runtime.ts",
856
+ "line": 16,
857
+ "character": 44
858
+ },
859
+ "name": "RunInsightOptions",
860
+ "internalFilePath": "insight-manager.ts"
861
+ },
862
+ "isOptional": false,
863
+ "isSpread": false
864
+ }
865
+ ],
866
+ "returnType": {
867
+ "__schema": "InferenceTypeSchema",
868
+ "location": {
869
+ "filePath": "insights.main.runtime.ts",
870
+ "line": 16,
871
+ "character": 3
872
+ },
873
+ "type": "Promise<InsightResult[]>"
874
+ },
875
+ "modifiers": [
876
+ "async"
877
+ ]
878
+ },
879
+ {
880
+ "__schema": "FunctionLikeSchema",
881
+ "location": {
882
+ "filePath": "insights.main.runtime.ts",
883
+ "line": 27,
884
+ "character": 3
885
+ },
886
+ "signature": "(method) InsightsMain.listInsights(): string[]",
887
+ "name": "listInsights",
888
+ "params": [],
889
+ "returnType": {
890
+ "__schema": "InferenceTypeSchema",
891
+ "location": {
892
+ "filePath": "insights.main.runtime.ts",
893
+ "line": 27,
894
+ "character": 3
895
+ },
896
+ "type": "string[]"
897
+ },
898
+ "modifiers": []
899
+ },
900
+ {
901
+ "__schema": "FunctionLikeSchema",
902
+ "location": {
903
+ "filePath": "insights.main.runtime.ts",
904
+ "line": 31,
905
+ "character": 3
906
+ },
907
+ "signature": "(method) InsightsMain.addInsightsAsComponentIssues(components: Component[], issuesToIgnore: string[]): Promise<void>",
908
+ "name": "addInsightsAsComponentIssues",
909
+ "params": [
910
+ {
911
+ "__schema": "ParameterSchema",
912
+ "location": {
913
+ "filePath": "insights.main.runtime.ts",
914
+ "line": 31,
915
+ "character": 38
916
+ },
917
+ "name": "components",
918
+ "type": {
919
+ "__schema": "TypeArraySchema",
920
+ "location": {
921
+ "filePath": "insights.main.runtime.ts",
922
+ "line": 31,
923
+ "character": 50
924
+ },
925
+ "type": {
926
+ "__schema": "TypeRefSchema",
927
+ "location": {
928
+ "filePath": "insights.main.runtime.ts",
929
+ "line": 31,
930
+ "character": 50
931
+ },
932
+ "name": "Component",
933
+ "componentId": {
934
+ "scope": "teambit.component",
935
+ "name": "component"
936
+ }
937
+ }
938
+ },
939
+ "isOptional": false,
940
+ "isSpread": false
941
+ },
942
+ {
943
+ "__schema": "ParameterSchema",
944
+ "location": {
945
+ "filePath": "insights.main.runtime.ts",
946
+ "line": 31,
947
+ "character": 63
948
+ },
949
+ "name": "issuesToIgnore",
950
+ "type": {
951
+ "__schema": "TypeArraySchema",
952
+ "location": {
953
+ "filePath": "insights.main.runtime.ts",
954
+ "line": 31,
955
+ "character": 79
956
+ },
957
+ "type": {
958
+ "__schema": "KeywordTypeSchema",
959
+ "location": {
960
+ "filePath": "insights.main.runtime.ts",
961
+ "line": 31,
962
+ "character": 79
963
+ },
964
+ "name": "string"
965
+ }
966
+ },
967
+ "isOptional": false,
968
+ "isSpread": false
969
+ }
970
+ ],
971
+ "returnType": {
972
+ "__schema": "InferenceTypeSchema",
973
+ "location": {
974
+ "filePath": "insights.main.runtime.ts",
975
+ "line": 31,
976
+ "character": 3
977
+ },
978
+ "type": "Promise<void>"
979
+ },
980
+ "modifiers": [
981
+ "async"
982
+ ]
983
+ },
984
+ {
985
+ "__schema": "VariableLikeSchema",
986
+ "location": {
987
+ "filePath": "insights.main.runtime.ts",
988
+ "line": 43,
989
+ "character": 3
990
+ },
991
+ "signature": "(property) InsightsMain.slots: never[]",
992
+ "name": "slots",
993
+ "type": {
994
+ "__schema": "InferenceTypeSchema",
995
+ "location": {
996
+ "filePath": "insights.main.runtime.ts",
997
+ "line": 43,
998
+ "character": 3
999
+ },
1000
+ "type": "never[]"
1001
+ },
1002
+ "isOptional": true,
1003
+ "defaultValue": "[]"
1004
+ },
1005
+ {
1006
+ "__schema": "VariableLikeSchema",
1007
+ "location": {
1008
+ "filePath": "insights.main.runtime.ts",
1009
+ "line": 44,
1010
+ "character": 3
1011
+ },
1012
+ "signature": "(property) InsightsMain.dependencies: Aspect[]",
1013
+ "name": "dependencies",
1014
+ "type": {
1015
+ "__schema": "InferenceTypeSchema",
1016
+ "location": {
1017
+ "filePath": "insights.main.runtime.ts",
1018
+ "line": 44,
1019
+ "character": 3
1020
+ },
1021
+ "type": "Aspect[]"
1022
+ },
1023
+ "isOptional": true,
1024
+ "defaultValue": "[GraphAspect, CLIAspect, IssuesAspect]"
1025
+ },
1026
+ {
1027
+ "__schema": "VariableLikeSchema",
1028
+ "location": {
1029
+ "filePath": "insights.main.runtime.ts",
1030
+ "line": 45,
1031
+ "character": 3
1032
+ },
1033
+ "signature": "(property) InsightsMain.runtime: RuntimeDefinition",
1034
+ "name": "runtime",
1035
+ "type": {
1036
+ "__schema": "InferenceTypeSchema",
1037
+ "location": {
1038
+ "filePath": "insights.main.runtime.ts",
1039
+ "line": 45,
1040
+ "character": 3
1041
+ },
1042
+ "type": "RuntimeDefinition"
1043
+ },
1044
+ "isOptional": true,
1045
+ "defaultValue": "MainRuntime"
1046
+ },
1047
+ {
1048
+ "__schema": "VariableLikeSchema",
1049
+ "location": {
1050
+ "filePath": "insights.main.runtime.ts",
1051
+ "line": 46,
1052
+ "character": 3
1053
+ },
1054
+ "signature": "(property) InsightsMain.config: {\n silence: boolean;\n}",
1055
+ "name": "config",
1056
+ "type": {
1057
+ "__schema": "InferenceTypeSchema",
1058
+ "location": {
1059
+ "filePath": "insights.main.runtime.ts",
1060
+ "line": 46,
1061
+ "character": 3
1062
+ },
1063
+ "type": "{\n silence: boolean;\n}"
1064
+ },
1065
+ "isOptional": true,
1066
+ "defaultValue": "{\n silence: false,\n }"
1067
+ },
1068
+ {
1069
+ "__schema": "FunctionLikeSchema",
1070
+ "location": {
1071
+ "filePath": "insights.main.runtime.ts",
1072
+ "line": 49,
1073
+ "character": 3
1074
+ },
1075
+ "signature": "(method) InsightsMain.provider([graphMain, cli, issues]: [GraphMain, CLIMain, IssuesMain]): Promise<InsightsMain>",
1076
+ "name": "provider",
1077
+ "params": [
1078
+ {
1079
+ "__schema": "ParameterSchema",
1080
+ "location": {
1081
+ "filePath": "insights.main.runtime.ts",
1082
+ "line": 49,
1083
+ "character": 25
1084
+ },
1085
+ "name": "[ graphMain, cli, issues ]",
1086
+ "type": {
1087
+ "__schema": "TupleTypeSchema",
1088
+ "location": {
1089
+ "filePath": "insights.main.runtime.ts",
1090
+ "line": 49,
1091
+ "character": 51
1092
+ },
1093
+ "elements": [
1094
+ {
1095
+ "__schema": "TypeRefSchema",
1096
+ "location": {
1097
+ "filePath": "insights.main.runtime.ts",
1098
+ "line": 49,
1099
+ "character": 52
1100
+ },
1101
+ "name": "GraphMain",
1102
+ "componentId": {
1103
+ "scope": "teambit.component",
1104
+ "name": "graph"
1105
+ }
1106
+ },
1107
+ {
1108
+ "__schema": "TypeRefSchema",
1109
+ "location": {
1110
+ "filePath": "insights.main.runtime.ts",
1111
+ "line": 49,
1112
+ "character": 63
1113
+ },
1114
+ "name": "CLIMain",
1115
+ "componentId": {
1116
+ "scope": "teambit.harmony",
1117
+ "name": "cli"
1118
+ }
1119
+ },
1120
+ {
1121
+ "__schema": "TypeRefSchema",
1122
+ "location": {
1123
+ "filePath": "insights.main.runtime.ts",
1124
+ "line": 49,
1125
+ "character": 72
1126
+ },
1127
+ "name": "IssuesMain",
1128
+ "componentId": {
1129
+ "scope": "teambit.component",
1130
+ "name": "issues"
1131
+ }
1132
+ }
1133
+ ]
1134
+ },
1135
+ "isOptional": false,
1136
+ "isSpread": false
1137
+ }
1138
+ ],
1139
+ "returnType": {
1140
+ "__schema": "InferenceTypeSchema",
1141
+ "location": {
1142
+ "filePath": "insights.main.runtime.ts",
1143
+ "line": 49,
1144
+ "character": 3
1145
+ },
1146
+ "type": "Promise<InsightsMain>"
1147
+ },
1148
+ "modifiers": [
1149
+ "static",
1150
+ "async"
1151
+ ]
1152
+ }
1153
+ ],
1154
+ "extendsNodes": [],
1155
+ "implementNodes": []
1156
+ }
1157
+ },
1158
+ {
1159
+ "__schema": "ExportSchema",
1160
+ "location": {
1161
+ "filePath": "index.ts",
1162
+ "line": 4,
1163
+ "character": 10
1164
+ },
1165
+ "signature": "const InsightsAspect: Aspect",
1166
+ "name": "InsightsAspect",
1167
+ "exportNode": {
1168
+ "__schema": "VariableLikeSchema",
1169
+ "location": {
1170
+ "filePath": "insights.aspect.ts",
1171
+ "line": 3,
1172
+ "character": 14
1173
+ },
1174
+ "signature": "const InsightsAspect: Aspect",
1175
+ "name": "InsightsAspect",
1176
+ "type": {
1177
+ "__schema": "TypeRefSchema",
1178
+ "location": {
1179
+ "filePath": "insights.aspect.ts",
1180
+ "line": 3,
1181
+ "character": 14
1182
+ },
1183
+ "name": "Aspect",
1184
+ "componentId": {
1185
+ "scope": "teambit.harmony",
1186
+ "name": "harmony",
1187
+ "version": "0.4.6"
1188
+ }
1189
+ },
1190
+ "isOptional": false,
1191
+ "defaultValue": "Aspect.create({\n id: 'teambit.explorer/insights',\n dependencies: [],\n defaultConfig: {},\n})"
1192
+ }
1193
+ },
1194
+ {
1195
+ "__schema": "ExportSchema",
1196
+ "location": {
1197
+ "filePath": "index.ts",
1198
+ "line": 5,
1199
+ "character": 10
1200
+ },
1201
+ "signature": "const INSIGHT_CIRCULAR_DEPS_NAME: \"circular\"",
1202
+ "name": "INSIGHT_CIRCULAR_DEPS_NAME",
1203
+ "exportNode": {
1204
+ "__schema": "VariableLikeSchema",
1205
+ "location": {
1206
+ "filePath": "all-insights/find-circulars.ts",
1207
+ "line": 8,
1208
+ "character": 14
1209
+ },
1210
+ "signature": "const INSIGHT_CIRCULAR_DEPS_NAME: \"circular\"",
1211
+ "name": "INSIGHT_CIRCULAR_DEPS_NAME",
1212
+ "type": {
1213
+ "__schema": "InferenceTypeSchema",
1214
+ "location": {
1215
+ "filePath": "all-insights/find-circulars.ts",
1216
+ "line": 8,
1217
+ "character": 14
1218
+ },
1219
+ "type": "\"circular\""
1220
+ },
1221
+ "isOptional": false,
1222
+ "defaultValue": "'circular'"
1223
+ }
1224
+ }
1225
+ ],
1226
+ "internals": []
1227
+ },
1228
+ "internals": [
1229
+ {
1230
+ "__schema": "ModuleSchema",
1231
+ "location": {
1232
+ "filePath": "insight-manager.ts",
1233
+ "line": 1,
1234
+ "character": 1
1235
+ },
1236
+ "exports": [
1237
+ {
1238
+ "__schema": "TypeSchema",
1239
+ "location": {
1240
+ "filePath": "insight-manager.ts",
1241
+ "line": 7,
1242
+ "character": 1
1243
+ },
1244
+ "signature": "type RunInsightOptions = {\n renderData?: boolean;\n includeDeps?: boolean;\n ids?: ComponentID[];\n}",
1245
+ "name": "RunInsightOptions",
1246
+ "type": {
1247
+ "__schema": "TypeLiteralSchema",
1248
+ "location": {
1249
+ "filePath": "insight-manager.ts",
1250
+ "line": 7,
1251
+ "character": 33
1252
+ },
1253
+ "members": [
1254
+ {
1255
+ "__schema": "VariableLikeSchema",
1256
+ "location": {
1257
+ "filePath": "insight-manager.ts",
1258
+ "line": 8,
1259
+ "character": 3
1260
+ },
1261
+ "signature": "(property) renderData?: boolean | undefined",
1262
+ "name": "renderData",
1263
+ "type": {
1264
+ "__schema": "KeywordTypeSchema",
1265
+ "location": {
1266
+ "filePath": "insight-manager.ts",
1267
+ "line": 8,
1268
+ "character": 16
1269
+ },
1270
+ "name": "boolean"
1271
+ },
1272
+ "isOptional": true
1273
+ },
1274
+ {
1275
+ "__schema": "VariableLikeSchema",
1276
+ "location": {
1277
+ "filePath": "insight-manager.ts",
1278
+ "line": 9,
1279
+ "character": 3
1280
+ },
1281
+ "signature": "(property) includeDeps?: boolean | undefined",
1282
+ "name": "includeDeps",
1283
+ "type": {
1284
+ "__schema": "KeywordTypeSchema",
1285
+ "location": {
1286
+ "filePath": "insight-manager.ts",
1287
+ "line": 9,
1288
+ "character": 17
1289
+ },
1290
+ "name": "boolean"
1291
+ },
1292
+ "isOptional": true
1293
+ },
1294
+ {
1295
+ "__schema": "VariableLikeSchema",
1296
+ "location": {
1297
+ "filePath": "insight-manager.ts",
1298
+ "line": 10,
1299
+ "character": 3
1300
+ },
1301
+ "signature": "(property) ids?: ComponentID[] | undefined",
1302
+ "name": "ids",
1303
+ "type": {
1304
+ "__schema": "TypeArraySchema",
1305
+ "location": {
1306
+ "filePath": "insight-manager.ts",
1307
+ "line": 10,
1308
+ "character": 9
1309
+ },
1310
+ "type": {
1311
+ "__schema": "TypeRefSchema",
1312
+ "location": {
1313
+ "filePath": "insight-manager.ts",
1314
+ "line": 10,
1315
+ "character": 9
1316
+ },
1317
+ "name": "ComponentID",
1318
+ "componentId": {
1319
+ "scope": "teambit.component",
1320
+ "name": "component-id",
1321
+ "version": "1.2.2"
1322
+ }
1323
+ }
1324
+ },
1325
+ "isOptional": true
1326
+ }
1327
+ ]
1328
+ }
1329
+ },
1330
+ {
1331
+ "__schema": "ClassSchema",
1332
+ "location": {
1333
+ "filePath": "insight-manager.ts",
1334
+ "line": 12,
1335
+ "character": 1
1336
+ },
1337
+ "signature": "class InsightManager",
1338
+ "name": "InsightManager",
1339
+ "members": [
1340
+ {
1341
+ "__schema": "VariableLikeSchema",
1342
+ "location": {
1343
+ "filePath": "insight-manager.ts",
1344
+ "line": 14,
1345
+ "character": 3
1346
+ },
1347
+ "doc": {
1348
+ "__schema": "DocSchema",
1349
+ "location": {
1350
+ "filePath": "insight-manager.ts",
1351
+ "line": 13,
1352
+ "character": 3
1353
+ },
1354
+ "raw": "/** insights is an insight registry */",
1355
+ "comment": "insights is an insight registry",
1356
+ "tags": []
1357
+ },
1358
+ "signature": "(property) InsightManager.insights: Map<string, Insight>",
1359
+ "name": "insights",
1360
+ "type": {
1361
+ "__schema": "TypeRefSchema",
1362
+ "location": {
1363
+ "filePath": "insight-manager.ts",
1364
+ "line": 14,
1365
+ "character": 22
1366
+ },
1367
+ "name": "Map",
1368
+ "typeArgs": [
1369
+ {
1370
+ "__schema": "KeywordTypeSchema",
1371
+ "location": {
1372
+ "filePath": "insight-manager.ts",
1373
+ "line": 14,
1374
+ "character": 26
1375
+ },
1376
+ "name": "string"
1377
+ },
1378
+ {
1379
+ "__schema": "TypeRefSchema",
1380
+ "location": {
1381
+ "filePath": "insight-manager.ts",
1382
+ "line": 14,
1383
+ "character": 34
1384
+ },
1385
+ "name": "Insight"
1386
+ }
1387
+ ]
1388
+ },
1389
+ "isOptional": true,
1390
+ "defaultValue": "new Map()"
1391
+ },
1392
+ {
1393
+ "__schema": "ConstructorSchema",
1394
+ "location": {
1395
+ "filePath": "insight-manager.ts",
1396
+ "line": 15,
1397
+ "character": 3
1398
+ },
1399
+ "signature": "constructor InsightManager(insights: Insight[]): InsightManager",
1400
+ "name": "constructor",
1401
+ "params": [
1402
+ {
1403
+ "__schema": "ParameterSchema",
1404
+ "location": {
1405
+ "filePath": "insight-manager.ts",
1406
+ "line": 19,
1407
+ "character": 5
1408
+ },
1409
+ "name": "insights",
1410
+ "type": {
1411
+ "__schema": "TypeArraySchema",
1412
+ "location": {
1413
+ "filePath": "insight-manager.ts",
1414
+ "line": 19,
1415
+ "character": 15
1416
+ },
1417
+ "type": {
1418
+ "__schema": "TypeRefSchema",
1419
+ "location": {
1420
+ "filePath": "insight-manager.ts",
1421
+ "line": 19,
1422
+ "character": 15
1423
+ },
1424
+ "name": "Insight"
1425
+ }
1426
+ },
1427
+ "isOptional": false,
1428
+ "isSpread": false
1429
+ }
1430
+ ],
1431
+ "returnType": {
1432
+ "__schema": "ThisTypeSchema",
1433
+ "location": {
1434
+ "filePath": "insight-manager.ts",
1435
+ "line": 12,
1436
+ "character": 1
1437
+ },
1438
+ "name": "InsightManager"
1439
+ },
1440
+ "modifiers": []
1441
+ },
1442
+ {
1443
+ "__schema": "FunctionLikeSchema",
1444
+ "location": {
1445
+ "filePath": "insight-manager.ts",
1446
+ "line": 29,
1447
+ "character": 3
1448
+ },
1449
+ "doc": {
1450
+ "__schema": "DocSchema",
1451
+ "location": {
1452
+ "filePath": "insight-manager.ts",
1453
+ "line": 26,
1454
+ "character": 3
1455
+ },
1456
+ "raw": "/**\n * registers a new insight and returns the updated insight registry map\n */",
1457
+ "comment": "registers a new insight and returns the updated insight registry map",
1458
+ "tags": []
1459
+ },
1460
+ "signature": "(method) InsightManager.register(insight: Insight): void",
1461
+ "name": "register",
1462
+ "params": [
1463
+ {
1464
+ "__schema": "ParameterSchema",
1465
+ "location": {
1466
+ "filePath": "insight-manager.ts",
1467
+ "line": 29,
1468
+ "character": 12
1469
+ },
1470
+ "name": "insight",
1471
+ "type": {
1472
+ "__schema": "TypeRefSchema",
1473
+ "location": {
1474
+ "filePath": "insight-manager.ts",
1475
+ "line": 29,
1476
+ "character": 21
1477
+ },
1478
+ "name": "Insight"
1479
+ },
1480
+ "isOptional": false,
1481
+ "isSpread": false
1482
+ }
1483
+ ],
1484
+ "returnType": {
1485
+ "__schema": "InferenceTypeSchema",
1486
+ "location": {
1487
+ "filePath": "insight-manager.ts",
1488
+ "line": 29,
1489
+ "character": 3
1490
+ },
1491
+ "type": "void"
1492
+ },
1493
+ "modifiers": []
1494
+ },
1495
+ {
1496
+ "__schema": "FunctionLikeSchema",
1497
+ "location": {
1498
+ "filePath": "insight-manager.ts",
1499
+ "line": 39,
1500
+ "character": 3
1501
+ },
1502
+ "doc": {
1503
+ "__schema": "DocSchema",
1504
+ "location": {
1505
+ "filePath": "insight-manager.ts",
1506
+ "line": 36,
1507
+ "character": 3
1508
+ },
1509
+ "raw": "/**\n * list of all registered insights\n */",
1510
+ "comment": "list of all registered insights",
1511
+ "tags": []
1512
+ },
1513
+ "signature": "(method) InsightManager.listInsights(): string[]",
1514
+ "name": "listInsights",
1515
+ "params": [],
1516
+ "returnType": {
1517
+ "__schema": "TypeArraySchema",
1518
+ "location": {
1519
+ "filePath": "insight-manager.ts",
1520
+ "line": 39,
1521
+ "character": 19
1522
+ },
1523
+ "type": {
1524
+ "__schema": "KeywordTypeSchema",
1525
+ "location": {
1526
+ "filePath": "insight-manager.ts",
1527
+ "line": 39,
1528
+ "character": 19
1529
+ },
1530
+ "name": "string"
1531
+ }
1532
+ },
1533
+ "modifiers": []
1534
+ },
1535
+ {
1536
+ "__schema": "FunctionLikeSchema",
1537
+ "location": {
1538
+ "filePath": "insight-manager.ts",
1539
+ "line": 46,
1540
+ "character": 3
1541
+ },
1542
+ "doc": {
1543
+ "__schema": "DocSchema",
1544
+ "location": {
1545
+ "filePath": "insight-manager.ts",
1546
+ "line": 43,
1547
+ "character": 3
1548
+ },
1549
+ "raw": "/**\n * gets a specific insight by its name or undefined if doesn't exist\n */",
1550
+ "comment": "gets a specific insight by its name or undefined if doesn't exist",
1551
+ "tags": []
1552
+ },
1553
+ "signature": "(method) InsightManager.getByName(insightName: string): Insight | undefined",
1554
+ "name": "getByName",
1555
+ "params": [
1556
+ {
1557
+ "__schema": "ParameterSchema",
1558
+ "location": {
1559
+ "filePath": "insight-manager.ts",
1560
+ "line": 46,
1561
+ "character": 13
1562
+ },
1563
+ "name": "insightName",
1564
+ "type": {
1565
+ "__schema": "KeywordTypeSchema",
1566
+ "location": {
1567
+ "filePath": "insight-manager.ts",
1568
+ "line": 46,
1569
+ "character": 26
1570
+ },
1571
+ "name": "string"
1572
+ },
1573
+ "isOptional": false,
1574
+ "isSpread": false
1575
+ }
1576
+ ],
1577
+ "returnType": {
1578
+ "__schema": "TypeUnionSchema",
1579
+ "location": {
1580
+ "filePath": "insight-manager.ts",
1581
+ "line": 46,
1582
+ "character": 35
1583
+ },
1584
+ "types": [
1585
+ {
1586
+ "__schema": "TypeRefSchema",
1587
+ "location": {
1588
+ "filePath": "insight-manager.ts",
1589
+ "line": 46,
1590
+ "character": 35
1591
+ },
1592
+ "name": "Insight"
1593
+ },
1594
+ {
1595
+ "__schema": "KeywordTypeSchema",
1596
+ "location": {
1597
+ "filePath": "insight-manager.ts",
1598
+ "line": 46,
1599
+ "character": 45
1600
+ },
1601
+ "name": "undefined"
1602
+ }
1603
+ ]
1604
+ },
1605
+ "modifiers": []
1606
+ },
1607
+ {
1608
+ "__schema": "FunctionLikeSchema",
1609
+ "location": {
1610
+ "filePath": "insight-manager.ts",
1611
+ "line": 53,
1612
+ "character": 3
1613
+ },
1614
+ "doc": {
1615
+ "__schema": "DocSchema",
1616
+ "location": {
1617
+ "filePath": "insight-manager.ts",
1618
+ "line": 50,
1619
+ "character": 3
1620
+ },
1621
+ "raw": "/**\n * deletes a specific insight by its name if exists\n */",
1622
+ "comment": "deletes a specific insight by its name if exists",
1623
+ "tags": []
1624
+ },
1625
+ "signature": "(method) InsightManager.delete(insightName: string): void",
1626
+ "name": "delete",
1627
+ "params": [
1628
+ {
1629
+ "__schema": "ParameterSchema",
1630
+ "location": {
1631
+ "filePath": "insight-manager.ts",
1632
+ "line": 53,
1633
+ "character": 10
1634
+ },
1635
+ "name": "insightName",
1636
+ "type": {
1637
+ "__schema": "KeywordTypeSchema",
1638
+ "location": {
1639
+ "filePath": "insight-manager.ts",
1640
+ "line": 53,
1641
+ "character": 23
1642
+ },
1643
+ "name": "string"
1644
+ },
1645
+ "isOptional": false,
1646
+ "isSpread": false
1647
+ }
1648
+ ],
1649
+ "returnType": {
1650
+ "__schema": "InferenceTypeSchema",
1651
+ "location": {
1652
+ "filePath": "insight-manager.ts",
1653
+ "line": 53,
1654
+ "character": 3
1655
+ },
1656
+ "type": "void"
1657
+ },
1658
+ "modifiers": []
1659
+ },
1660
+ {
1661
+ "__schema": "FunctionLikeSchema",
1662
+ "location": {
1663
+ "filePath": "insight-manager.ts",
1664
+ "line": 64,
1665
+ "character": 3
1666
+ },
1667
+ "doc": {
1668
+ "__schema": "DocSchema",
1669
+ "location": {
1670
+ "filePath": "insight-manager.ts",
1671
+ "line": 60,
1672
+ "character": 3
1673
+ },
1674
+ "raw": "/**\n * execute an array of insights\n *\n */",
1675
+ "comment": "execute an array of insights",
1676
+ "tags": []
1677
+ },
1678
+ "signature": "(method) InsightManager.run(insightNames: string[], opts: RunInsightOptions): Promise<InsightResult[]>",
1679
+ "name": "run",
1680
+ "params": [
1681
+ {
1682
+ "__schema": "ParameterSchema",
1683
+ "location": {
1684
+ "filePath": "insight-manager.ts",
1685
+ "line": 64,
1686
+ "character": 13
1687
+ },
1688
+ "name": "insightNames",
1689
+ "type": {
1690
+ "__schema": "TypeArraySchema",
1691
+ "location": {
1692
+ "filePath": "insight-manager.ts",
1693
+ "line": 64,
1694
+ "character": 27
1695
+ },
1696
+ "type": {
1697
+ "__schema": "KeywordTypeSchema",
1698
+ "location": {
1699
+ "filePath": "insight-manager.ts",
1700
+ "line": 64,
1701
+ "character": 27
1702
+ },
1703
+ "name": "string"
1704
+ }
1705
+ },
1706
+ "isOptional": false,
1707
+ "isSpread": false
1708
+ },
1709
+ {
1710
+ "__schema": "ParameterSchema",
1711
+ "location": {
1712
+ "filePath": "insight-manager.ts",
1713
+ "line": 64,
1714
+ "character": 37
1715
+ },
1716
+ "name": "opts",
1717
+ "type": {
1718
+ "__schema": "TypeRefSchema",
1719
+ "location": {
1720
+ "filePath": "insight-manager.ts",
1721
+ "line": 64,
1722
+ "character": 43
1723
+ },
1724
+ "name": "RunInsightOptions",
1725
+ "internalFilePath": "insight-manager.ts"
1726
+ },
1727
+ "isOptional": false,
1728
+ "isSpread": false
1729
+ }
1730
+ ],
1731
+ "returnType": {
1732
+ "__schema": "TypeRefSchema",
1733
+ "location": {
1734
+ "filePath": "insight-manager.ts",
1735
+ "line": 64,
1736
+ "character": 63
1737
+ },
1738
+ "name": "Promise",
1739
+ "typeArgs": [
1740
+ {
1741
+ "__schema": "TypeArraySchema",
1742
+ "location": {
1743
+ "filePath": "insight-manager.ts",
1744
+ "line": 64,
1745
+ "character": 71
1746
+ },
1747
+ "type": {
1748
+ "__schema": "TypeRefSchema",
1749
+ "location": {
1750
+ "filePath": "insight-manager.ts",
1751
+ "line": 64,
1752
+ "character": 71
1753
+ },
1754
+ "name": "InsightResult",
1755
+ "internalFilePath": "insight.ts"
1756
+ }
1757
+ }
1758
+ ]
1759
+ },
1760
+ "modifiers": [
1761
+ "async"
1762
+ ]
1763
+ },
1764
+ {
1765
+ "__schema": "FunctionLikeSchema",
1766
+ "location": {
1767
+ "filePath": "insight-manager.ts",
1768
+ "line": 86,
1769
+ "character": 3
1770
+ },
1771
+ "doc": {
1772
+ "__schema": "DocSchema",
1773
+ "location": {
1774
+ "filePath": "insight-manager.ts",
1775
+ "line": 82,
1776
+ "character": 3
1777
+ },
1778
+ "raw": "/**\n * execute all insights in the registry\n *\n */",
1779
+ "comment": "execute all insights in the registry",
1780
+ "tags": []
1781
+ },
1782
+ "signature": "(method) InsightManager.runAll(opts: RunInsightOptions): Promise<InsightResult[]>",
1783
+ "name": "runAll",
1784
+ "params": [
1785
+ {
1786
+ "__schema": "ParameterSchema",
1787
+ "location": {
1788
+ "filePath": "insight-manager.ts",
1789
+ "line": 86,
1790
+ "character": 16
1791
+ },
1792
+ "name": "opts",
1793
+ "type": {
1794
+ "__schema": "TypeRefSchema",
1795
+ "location": {
1796
+ "filePath": "insight-manager.ts",
1797
+ "line": 86,
1798
+ "character": 22
1799
+ },
1800
+ "name": "RunInsightOptions",
1801
+ "internalFilePath": "insight-manager.ts"
1802
+ },
1803
+ "isOptional": false,
1804
+ "isSpread": false
1805
+ }
1806
+ ],
1807
+ "returnType": {
1808
+ "__schema": "TypeRefSchema",
1809
+ "location": {
1810
+ "filePath": "insight-manager.ts",
1811
+ "line": 86,
1812
+ "character": 42
1813
+ },
1814
+ "name": "Promise",
1815
+ "typeArgs": [
1816
+ {
1817
+ "__schema": "TypeArraySchema",
1818
+ "location": {
1819
+ "filePath": "insight-manager.ts",
1820
+ "line": 86,
1821
+ "character": 50
1822
+ },
1823
+ "type": {
1824
+ "__schema": "TypeRefSchema",
1825
+ "location": {
1826
+ "filePath": "insight-manager.ts",
1827
+ "line": 86,
1828
+ "character": 50
1829
+ },
1830
+ "name": "InsightResult",
1831
+ "internalFilePath": "insight.ts"
1832
+ }
1833
+ }
1834
+ ]
1835
+ },
1836
+ "modifiers": [
1837
+ "async"
1838
+ ]
1839
+ }
1840
+ ],
1841
+ "extendsNodes": [],
1842
+ "implementNodes": []
1843
+ }
1844
+ ],
1845
+ "internals": []
1846
+ },
1847
+ {
1848
+ "__schema": "ModuleSchema",
1849
+ "location": {
1850
+ "filePath": "insight.ts",
1851
+ "line": 1,
1852
+ "character": 1
1853
+ },
1854
+ "exports": [
1855
+ {
1856
+ "__schema": "TypeSchema",
1857
+ "location": {
1858
+ "filePath": "insight.ts",
1859
+ "line": 4,
1860
+ "character": 1
1861
+ },
1862
+ "signature": "type InsightMetaData = {\n name: string;\n description: string;\n}",
1863
+ "name": "InsightMetaData",
1864
+ "type": {
1865
+ "__schema": "TypeLiteralSchema",
1866
+ "location": {
1867
+ "filePath": "insight.ts",
1868
+ "line": 4,
1869
+ "character": 31
1870
+ },
1871
+ "members": [
1872
+ {
1873
+ "__schema": "VariableLikeSchema",
1874
+ "location": {
1875
+ "filePath": "insight.ts",
1876
+ "line": 5,
1877
+ "character": 3
1878
+ },
1879
+ "signature": "(property) name: string",
1880
+ "name": "name",
1881
+ "type": {
1882
+ "__schema": "KeywordTypeSchema",
1883
+ "location": {
1884
+ "filePath": "insight.ts",
1885
+ "line": 5,
1886
+ "character": 9
1887
+ },
1888
+ "name": "string"
1889
+ },
1890
+ "isOptional": false
1891
+ },
1892
+ {
1893
+ "__schema": "VariableLikeSchema",
1894
+ "location": {
1895
+ "filePath": "insight.ts",
1896
+ "line": 6,
1897
+ "character": 3
1898
+ },
1899
+ "signature": "(property) description: string",
1900
+ "name": "description",
1901
+ "type": {
1902
+ "__schema": "KeywordTypeSchema",
1903
+ "location": {
1904
+ "filePath": "insight.ts",
1905
+ "line": 6,
1906
+ "character": 16
1907
+ },
1908
+ "name": "string"
1909
+ },
1910
+ "isOptional": false
1911
+ }
1912
+ ]
1913
+ }
1914
+ },
1915
+ {
1916
+ "__schema": "TypeSchema",
1917
+ "location": {
1918
+ "filePath": "insight.ts",
1919
+ "line": 9,
1920
+ "character": 1
1921
+ },
1922
+ "signature": "type InsightResult = {\n metaData: InsightMetaData;\n message: string;\n data: any;\n renderedData?: string;\n}",
1923
+ "name": "InsightResult",
1924
+ "type": {
1925
+ "__schema": "TypeLiteralSchema",
1926
+ "location": {
1927
+ "filePath": "insight.ts",
1928
+ "line": 9,
1929
+ "character": 29
1930
+ },
1931
+ "members": [
1932
+ {
1933
+ "__schema": "VariableLikeSchema",
1934
+ "location": {
1935
+ "filePath": "insight.ts",
1936
+ "line": 10,
1937
+ "character": 3
1938
+ },
1939
+ "signature": "(property) metaData: InsightMetaData",
1940
+ "name": "metaData",
1941
+ "type": {
1942
+ "__schema": "TypeRefSchema",
1943
+ "location": {
1944
+ "filePath": "insight.ts",
1945
+ "line": 10,
1946
+ "character": 3
1947
+ },
1948
+ "name": "InsightMetaData",
1949
+ "internalFilePath": "insight.ts"
1950
+ },
1951
+ "isOptional": false
1952
+ },
1953
+ {
1954
+ "__schema": "VariableLikeSchema",
1955
+ "location": {
1956
+ "filePath": "insight.ts",
1957
+ "line": 11,
1958
+ "character": 3
1959
+ },
1960
+ "signature": "(property) message: string",
1961
+ "name": "message",
1962
+ "type": {
1963
+ "__schema": "KeywordTypeSchema",
1964
+ "location": {
1965
+ "filePath": "insight.ts",
1966
+ "line": 11,
1967
+ "character": 12
1968
+ },
1969
+ "name": "string"
1970
+ },
1971
+ "isOptional": false
1972
+ },
1973
+ {
1974
+ "__schema": "VariableLikeSchema",
1975
+ "location": {
1976
+ "filePath": "insight.ts",
1977
+ "line": 12,
1978
+ "character": 3
1979
+ },
1980
+ "signature": "(property) data: any",
1981
+ "name": "data",
1982
+ "type": {
1983
+ "__schema": "KeywordTypeSchema",
1984
+ "location": {
1985
+ "filePath": "insight.ts",
1986
+ "line": 12,
1987
+ "character": 9
1988
+ },
1989
+ "name": "any"
1990
+ },
1991
+ "isOptional": false
1992
+ },
1993
+ {
1994
+ "__schema": "VariableLikeSchema",
1995
+ "location": {
1996
+ "filePath": "insight.ts",
1997
+ "line": 13,
1998
+ "character": 3
1999
+ },
2000
+ "signature": "(property) renderedData?: string | undefined",
2001
+ "name": "renderedData",
2002
+ "type": {
2003
+ "__schema": "KeywordTypeSchema",
2004
+ "location": {
2005
+ "filePath": "insight.ts",
2006
+ "line": 13,
2007
+ "character": 18
2008
+ },
2009
+ "name": "string"
2010
+ },
2011
+ "isOptional": true
2012
+ }
2013
+ ]
2014
+ }
2015
+ },
2016
+ {
2017
+ "__schema": "TypeSchema",
2018
+ "location": {
2019
+ "filePath": "insight.ts",
2020
+ "line": 16,
2021
+ "character": 1
2022
+ },
2023
+ "signature": "type RawResult = {\n message: string;\n data: any;\n}",
2024
+ "name": "RawResult",
2025
+ "type": {
2026
+ "__schema": "TypeLiteralSchema",
2027
+ "location": {
2028
+ "filePath": "insight.ts",
2029
+ "line": 16,
2030
+ "character": 25
2031
+ },
2032
+ "members": [
2033
+ {
2034
+ "__schema": "VariableLikeSchema",
2035
+ "location": {
2036
+ "filePath": "insight.ts",
2037
+ "line": 17,
2038
+ "character": 3
2039
+ },
2040
+ "signature": "(property) message: string",
2041
+ "name": "message",
2042
+ "type": {
2043
+ "__schema": "KeywordTypeSchema",
2044
+ "location": {
2045
+ "filePath": "insight.ts",
2046
+ "line": 17,
2047
+ "character": 12
2048
+ },
2049
+ "name": "string"
2050
+ },
2051
+ "isOptional": false
2052
+ },
2053
+ {
2054
+ "__schema": "VariableLikeSchema",
2055
+ "location": {
2056
+ "filePath": "insight.ts",
2057
+ "line": 18,
2058
+ "character": 3
2059
+ },
2060
+ "signature": "(property) data: any",
2061
+ "name": "data",
2062
+ "type": {
2063
+ "__schema": "KeywordTypeSchema",
2064
+ "location": {
2065
+ "filePath": "insight.ts",
2066
+ "line": 18,
2067
+ "character": 9
2068
+ },
2069
+ "name": "any"
2070
+ },
2071
+ "isOptional": false
2072
+ }
2073
+ ]
2074
+ }
2075
+ },
2076
+ {
2077
+ "__schema": "InterfaceSchema",
2078
+ "location": {
2079
+ "filePath": "insight.ts",
2080
+ "line": 21,
2081
+ "character": 1
2082
+ },
2083
+ "signature": "interface Insight",
2084
+ "name": "Insight",
2085
+ "members": [
2086
+ {
2087
+ "__schema": "VariableLikeSchema",
2088
+ "location": {
2089
+ "filePath": "insight.ts",
2090
+ "line": 22,
2091
+ "character": 3
2092
+ },
2093
+ "signature": "(property) Insight.name: string",
2094
+ "name": "name",
2095
+ "type": {
2096
+ "__schema": "KeywordTypeSchema",
2097
+ "location": {
2098
+ "filePath": "insight.ts",
2099
+ "line": 22,
2100
+ "character": 9
2101
+ },
2102
+ "name": "string"
2103
+ },
2104
+ "isOptional": false
2105
+ },
2106
+ {
2107
+ "__schema": "VariableLikeSchema",
2108
+ "location": {
2109
+ "filePath": "insight.ts",
2110
+ "line": 23,
2111
+ "character": 3
2112
+ },
2113
+ "signature": "(property) Insight.description: string",
2114
+ "name": "description",
2115
+ "type": {
2116
+ "__schema": "KeywordTypeSchema",
2117
+ "location": {
2118
+ "filePath": "insight.ts",
2119
+ "line": 23,
2120
+ "character": 16
2121
+ },
2122
+ "name": "string"
2123
+ },
2124
+ "isOptional": false
2125
+ },
2126
+ {
2127
+ "__schema": "FunctionLikeSchema",
2128
+ "location": {
2129
+ "filePath": "insight.ts",
2130
+ "line": 28,
2131
+ "character": 3
2132
+ },
2133
+ "doc": {
2134
+ "__schema": "DocSchema",
2135
+ "location": {
2136
+ "filePath": "insight.ts",
2137
+ "line": 25,
2138
+ "character": 3
2139
+ },
2140
+ "raw": "/**\n * runs a specific insight using _runInsight, gets a RawResult, and uses _formatData to transform the output to InsightResult.\n */",
2141
+ "comment": "runs a specific insight using _runInsight, gets a RawResult, and uses _formatData to transform the output to InsightResult.",
2142
+ "tags": []
2143
+ },
2144
+ "signature": "(method) Insight.run(opts?: RunInsightOptions): Promise<InsightResult>",
2145
+ "name": "run",
2146
+ "params": [
2147
+ {
2148
+ "__schema": "ParameterSchema",
2149
+ "location": {
2150
+ "filePath": "insight.ts",
2151
+ "line": 28,
2152
+ "character": 7
2153
+ },
2154
+ "name": "opts",
2155
+ "type": {
2156
+ "__schema": "TypeRefSchema",
2157
+ "location": {
2158
+ "filePath": "insight.ts",
2159
+ "line": 28,
2160
+ "character": 14
2161
+ },
2162
+ "name": "RunInsightOptions",
2163
+ "internalFilePath": "insight-manager.ts"
2164
+ },
2165
+ "isOptional": true,
2166
+ "isSpread": false
2167
+ }
2168
+ ],
2169
+ "returnType": {
2170
+ "__schema": "TypeRefSchema",
2171
+ "location": {
2172
+ "filePath": "insight.ts",
2173
+ "line": 28,
2174
+ "character": 34
2175
+ },
2176
+ "name": "Promise",
2177
+ "typeArgs": [
2178
+ {
2179
+ "__schema": "TypeRefSchema",
2180
+ "location": {
2181
+ "filePath": "insight.ts",
2182
+ "line": 28,
2183
+ "character": 42
2184
+ },
2185
+ "name": "InsightResult",
2186
+ "internalFilePath": "insight.ts"
2187
+ }
2188
+ ]
2189
+ },
2190
+ "modifiers": []
2191
+ },
2192
+ {
2193
+ "__schema": "FunctionLikeSchema",
2194
+ "location": {
2195
+ "filePath": "insight.ts",
2196
+ "line": 34,
2197
+ "character": 3
2198
+ },
2199
+ "doc": {
2200
+ "__schema": "DocSchema",
2201
+ "location": {
2202
+ "filePath": "insight.ts",
2203
+ "line": 30,
2204
+ "character": 3
2205
+ },
2206
+ "raw": "/**\n * add the results from the insights as a component-issue so then bit-status could show them and bit-tag could block\n * them.\n */",
2207
+ "comment": "add the results from the insights as a component-issue so then bit-status could show them and bit-tag could block\nthem.",
2208
+ "tags": []
2209
+ },
2210
+ "signature": "(method) Insight.addAsComponentIssue?(components: Component[]): Promise<void>",
2211
+ "name": "addAsComponentIssue",
2212
+ "params": [
2213
+ {
2214
+ "__schema": "ParameterSchema",
2215
+ "location": {
2216
+ "filePath": "insight.ts",
2217
+ "line": 34,
2218
+ "character": 24
2219
+ },
2220
+ "name": "components",
2221
+ "type": {
2222
+ "__schema": "TypeArraySchema",
2223
+ "location": {
2224
+ "filePath": "insight.ts",
2225
+ "line": 34,
2226
+ "character": 36
2227
+ },
2228
+ "type": {
2229
+ "__schema": "TypeRefSchema",
2230
+ "location": {
2231
+ "filePath": "insight.ts",
2232
+ "line": 34,
2233
+ "character": 36
2234
+ },
2235
+ "name": "Component",
2236
+ "componentId": {
2237
+ "scope": "teambit.component",
2238
+ "name": "component"
2239
+ }
2240
+ }
2241
+ },
2242
+ "isOptional": false,
2243
+ "isSpread": false
2244
+ }
2245
+ ],
2246
+ "returnType": {
2247
+ "__schema": "TypeRefSchema",
2248
+ "location": {
2249
+ "filePath": "insight.ts",
2250
+ "line": 34,
2251
+ "character": 50
2252
+ },
2253
+ "name": "Promise",
2254
+ "typeArgs": [
2255
+ {
2256
+ "__schema": "KeywordTypeSchema",
2257
+ "location": {
2258
+ "filePath": "insight.ts",
2259
+ "line": 34,
2260
+ "character": 58
2261
+ },
2262
+ "name": "void"
2263
+ }
2264
+ ]
2265
+ },
2266
+ "modifiers": []
2267
+ }
2268
+ ],
2269
+ "extendsNodes": []
2270
+ }
2271
+ ],
2272
+ "internals": []
2273
+ },
2274
+ {
2275
+ "__schema": "ModuleSchema",
2276
+ "location": {
2277
+ "filePath": "insights.main.runtime.ts",
2278
+ "line": 1,
2279
+ "character": 1
2280
+ },
2281
+ "exports": [
2282
+ {
2283
+ "__schema": "ClassSchema",
2284
+ "location": {
2285
+ "filePath": "insights.main.runtime.ts",
2286
+ "line": 13,
2287
+ "character": 1
2288
+ },
2289
+ "signature": "class InsightsMain",
2290
+ "name": "InsightsMain",
2291
+ "members": [
2292
+ {
2293
+ "__schema": "ConstructorSchema",
2294
+ "location": {
2295
+ "filePath": "insights.main.runtime.ts",
2296
+ "line": 14,
2297
+ "character": 3
2298
+ },
2299
+ "signature": "constructor InsightsMain(insightManager: InsightManager): InsightsMain",
2300
+ "name": "constructor",
2301
+ "params": [
2302
+ {
2303
+ "__schema": "ParameterSchema",
2304
+ "location": {
2305
+ "filePath": "insights.main.runtime.ts",
2306
+ "line": 14,
2307
+ "character": 15
2308
+ },
2309
+ "name": "insightManager",
2310
+ "type": {
2311
+ "__schema": "TypeRefSchema",
2312
+ "location": {
2313
+ "filePath": "insights.main.runtime.ts",
2314
+ "line": 14,
2315
+ "character": 39
2316
+ },
2317
+ "name": "InsightManager"
2318
+ },
2319
+ "isOptional": false,
2320
+ "isSpread": false
2321
+ }
2322
+ ],
2323
+ "returnType": {
2324
+ "__schema": "ThisTypeSchema",
2325
+ "location": {
2326
+ "filePath": "insights.main.runtime.ts",
2327
+ "line": 13,
2328
+ "character": 1
2329
+ },
2330
+ "name": "InsightsMain"
2331
+ },
2332
+ "modifiers": []
2333
+ },
2334
+ {
2335
+ "__schema": "FunctionLikeSchema",
2336
+ "location": {
2337
+ "filePath": "insights.main.runtime.ts",
2338
+ "line": 16,
2339
+ "character": 3
2340
+ },
2341
+ "signature": "(method) InsightsMain.runInsights(names: string[], opts: RunInsightOptions): Promise<InsightResult[]>",
2342
+ "name": "runInsights",
2343
+ "params": [
2344
+ {
2345
+ "__schema": "ParameterSchema",
2346
+ "location": {
2347
+ "filePath": "insights.main.runtime.ts",
2348
+ "line": 16,
2349
+ "character": 21
2350
+ },
2351
+ "name": "names",
2352
+ "type": {
2353
+ "__schema": "TypeArraySchema",
2354
+ "location": {
2355
+ "filePath": "insights.main.runtime.ts",
2356
+ "line": 16,
2357
+ "character": 28
2358
+ },
2359
+ "type": {
2360
+ "__schema": "KeywordTypeSchema",
2361
+ "location": {
2362
+ "filePath": "insights.main.runtime.ts",
2363
+ "line": 16,
2364
+ "character": 28
2365
+ },
2366
+ "name": "string"
2367
+ }
2368
+ },
2369
+ "isOptional": false,
2370
+ "isSpread": false
2371
+ },
2372
+ {
2373
+ "__schema": "ParameterSchema",
2374
+ "location": {
2375
+ "filePath": "insights.main.runtime.ts",
2376
+ "line": 16,
2377
+ "character": 38
2378
+ },
2379
+ "name": "opts",
2380
+ "type": {
2381
+ "__schema": "TypeRefSchema",
2382
+ "location": {
2383
+ "filePath": "insights.main.runtime.ts",
2384
+ "line": 16,
2385
+ "character": 44
2386
+ },
2387
+ "name": "RunInsightOptions",
2388
+ "internalFilePath": "insight-manager.ts"
2389
+ },
2390
+ "isOptional": false,
2391
+ "isSpread": false
2392
+ }
2393
+ ],
2394
+ "returnType": {
2395
+ "__schema": "InferenceTypeSchema",
2396
+ "location": {
2397
+ "filePath": "insights.main.runtime.ts",
2398
+ "line": 16,
2399
+ "character": 3
2400
+ },
2401
+ "type": "Promise<InsightResult[]>"
2402
+ },
2403
+ "modifiers": [
2404
+ "async"
2405
+ ]
2406
+ },
2407
+ {
2408
+ "__schema": "FunctionLikeSchema",
2409
+ "location": {
2410
+ "filePath": "insights.main.runtime.ts",
2411
+ "line": 27,
2412
+ "character": 3
2413
+ },
2414
+ "signature": "(method) InsightsMain.listInsights(): string[]",
2415
+ "name": "listInsights",
2416
+ "params": [],
2417
+ "returnType": {
2418
+ "__schema": "InferenceTypeSchema",
2419
+ "location": {
2420
+ "filePath": "insights.main.runtime.ts",
2421
+ "line": 27,
2422
+ "character": 3
2423
+ },
2424
+ "type": "string[]"
2425
+ },
2426
+ "modifiers": []
2427
+ },
2428
+ {
2429
+ "__schema": "FunctionLikeSchema",
2430
+ "location": {
2431
+ "filePath": "insights.main.runtime.ts",
2432
+ "line": 31,
2433
+ "character": 3
2434
+ },
2435
+ "signature": "(method) InsightsMain.addInsightsAsComponentIssues(components: Component[], issuesToIgnore: string[]): Promise<void>",
2436
+ "name": "addInsightsAsComponentIssues",
2437
+ "params": [
2438
+ {
2439
+ "__schema": "ParameterSchema",
2440
+ "location": {
2441
+ "filePath": "insights.main.runtime.ts",
2442
+ "line": 31,
2443
+ "character": 38
2444
+ },
2445
+ "name": "components",
2446
+ "type": {
2447
+ "__schema": "TypeArraySchema",
2448
+ "location": {
2449
+ "filePath": "insights.main.runtime.ts",
2450
+ "line": 31,
2451
+ "character": 50
2452
+ },
2453
+ "type": {
2454
+ "__schema": "TypeRefSchema",
2455
+ "location": {
2456
+ "filePath": "insights.main.runtime.ts",
2457
+ "line": 31,
2458
+ "character": 50
2459
+ },
2460
+ "name": "Component",
2461
+ "componentId": {
2462
+ "scope": "teambit.component",
2463
+ "name": "component"
2464
+ }
2465
+ }
2466
+ },
2467
+ "isOptional": false,
2468
+ "isSpread": false
2469
+ },
2470
+ {
2471
+ "__schema": "ParameterSchema",
2472
+ "location": {
2473
+ "filePath": "insights.main.runtime.ts",
2474
+ "line": 31,
2475
+ "character": 63
2476
+ },
2477
+ "name": "issuesToIgnore",
2478
+ "type": {
2479
+ "__schema": "TypeArraySchema",
2480
+ "location": {
2481
+ "filePath": "insights.main.runtime.ts",
2482
+ "line": 31,
2483
+ "character": 79
2484
+ },
2485
+ "type": {
2486
+ "__schema": "KeywordTypeSchema",
2487
+ "location": {
2488
+ "filePath": "insights.main.runtime.ts",
2489
+ "line": 31,
2490
+ "character": 79
2491
+ },
2492
+ "name": "string"
2493
+ }
2494
+ },
2495
+ "isOptional": false,
2496
+ "isSpread": false
2497
+ }
2498
+ ],
2499
+ "returnType": {
2500
+ "__schema": "InferenceTypeSchema",
2501
+ "location": {
2502
+ "filePath": "insights.main.runtime.ts",
2503
+ "line": 31,
2504
+ "character": 3
2505
+ },
2506
+ "type": "Promise<void>"
2507
+ },
2508
+ "modifiers": [
2509
+ "async"
2510
+ ]
2511
+ },
2512
+ {
2513
+ "__schema": "VariableLikeSchema",
2514
+ "location": {
2515
+ "filePath": "insights.main.runtime.ts",
2516
+ "line": 43,
2517
+ "character": 3
2518
+ },
2519
+ "signature": "(property) InsightsMain.slots: never[]",
2520
+ "name": "slots",
2521
+ "type": {
2522
+ "__schema": "InferenceTypeSchema",
2523
+ "location": {
2524
+ "filePath": "insights.main.runtime.ts",
2525
+ "line": 43,
2526
+ "character": 3
2527
+ },
2528
+ "type": "never[]"
2529
+ },
2530
+ "isOptional": true,
2531
+ "defaultValue": "[]"
2532
+ },
2533
+ {
2534
+ "__schema": "VariableLikeSchema",
2535
+ "location": {
2536
+ "filePath": "insights.main.runtime.ts",
2537
+ "line": 44,
2538
+ "character": 3
2539
+ },
2540
+ "signature": "(property) InsightsMain.dependencies: Aspect[]",
2541
+ "name": "dependencies",
2542
+ "type": {
2543
+ "__schema": "InferenceTypeSchema",
2544
+ "location": {
2545
+ "filePath": "insights.main.runtime.ts",
2546
+ "line": 44,
2547
+ "character": 3
2548
+ },
2549
+ "type": "Aspect[]"
2550
+ },
2551
+ "isOptional": true,
2552
+ "defaultValue": "[GraphAspect, CLIAspect, IssuesAspect]"
2553
+ },
2554
+ {
2555
+ "__schema": "VariableLikeSchema",
2556
+ "location": {
2557
+ "filePath": "insights.main.runtime.ts",
2558
+ "line": 45,
2559
+ "character": 3
2560
+ },
2561
+ "signature": "(property) InsightsMain.runtime: RuntimeDefinition",
2562
+ "name": "runtime",
2563
+ "type": {
2564
+ "__schema": "InferenceTypeSchema",
2565
+ "location": {
2566
+ "filePath": "insights.main.runtime.ts",
2567
+ "line": 45,
2568
+ "character": 3
2569
+ },
2570
+ "type": "RuntimeDefinition"
2571
+ },
2572
+ "isOptional": true,
2573
+ "defaultValue": "MainRuntime"
2574
+ },
2575
+ {
2576
+ "__schema": "VariableLikeSchema",
2577
+ "location": {
2578
+ "filePath": "insights.main.runtime.ts",
2579
+ "line": 46,
2580
+ "character": 3
2581
+ },
2582
+ "signature": "(property) InsightsMain.config: {\n silence: boolean;\n}",
2583
+ "name": "config",
2584
+ "type": {
2585
+ "__schema": "InferenceTypeSchema",
2586
+ "location": {
2587
+ "filePath": "insights.main.runtime.ts",
2588
+ "line": 46,
2589
+ "character": 3
2590
+ },
2591
+ "type": "{\n silence: boolean;\n}"
2592
+ },
2593
+ "isOptional": true,
2594
+ "defaultValue": "{\n silence: false,\n }"
2595
+ },
2596
+ {
2597
+ "__schema": "FunctionLikeSchema",
2598
+ "location": {
2599
+ "filePath": "insights.main.runtime.ts",
2600
+ "line": 49,
2601
+ "character": 3
2602
+ },
2603
+ "signature": "(method) InsightsMain.provider([graphMain, cli, issues]: [GraphMain, CLIMain, IssuesMain]): Promise<InsightsMain>",
2604
+ "name": "provider",
2605
+ "params": [
2606
+ {
2607
+ "__schema": "ParameterSchema",
2608
+ "location": {
2609
+ "filePath": "insights.main.runtime.ts",
2610
+ "line": 49,
2611
+ "character": 25
2612
+ },
2613
+ "name": "[ graphMain, cli, issues ]",
2614
+ "type": {
2615
+ "__schema": "TupleTypeSchema",
2616
+ "location": {
2617
+ "filePath": "insights.main.runtime.ts",
2618
+ "line": 49,
2619
+ "character": 51
2620
+ },
2621
+ "elements": [
2622
+ {
2623
+ "__schema": "TypeRefSchema",
2624
+ "location": {
2625
+ "filePath": "insights.main.runtime.ts",
2626
+ "line": 49,
2627
+ "character": 52
2628
+ },
2629
+ "name": "GraphMain",
2630
+ "componentId": {
2631
+ "scope": "teambit.component",
2632
+ "name": "graph"
2633
+ }
2634
+ },
2635
+ {
2636
+ "__schema": "TypeRefSchema",
2637
+ "location": {
2638
+ "filePath": "insights.main.runtime.ts",
2639
+ "line": 49,
2640
+ "character": 63
2641
+ },
2642
+ "name": "CLIMain",
2643
+ "componentId": {
2644
+ "scope": "teambit.harmony",
2645
+ "name": "cli"
2646
+ }
2647
+ },
2648
+ {
2649
+ "__schema": "TypeRefSchema",
2650
+ "location": {
2651
+ "filePath": "insights.main.runtime.ts",
2652
+ "line": 49,
2653
+ "character": 72
2654
+ },
2655
+ "name": "IssuesMain",
2656
+ "componentId": {
2657
+ "scope": "teambit.component",
2658
+ "name": "issues"
2659
+ }
2660
+ }
2661
+ ]
2662
+ },
2663
+ "isOptional": false,
2664
+ "isSpread": false
2665
+ }
2666
+ ],
2667
+ "returnType": {
2668
+ "__schema": "InferenceTypeSchema",
2669
+ "location": {
2670
+ "filePath": "insights.main.runtime.ts",
2671
+ "line": 49,
2672
+ "character": 3
2673
+ },
2674
+ "type": "Promise<InsightsMain>"
2675
+ },
2676
+ "modifiers": [
2677
+ "static",
2678
+ "async"
2679
+ ]
2680
+ }
2681
+ ],
2682
+ "extendsNodes": [],
2683
+ "implementNodes": []
2684
+ }
2685
+ ],
2686
+ "internals": [
2687
+ {
2688
+ "__schema": "UnImplementedSchema",
2689
+ "location": {
2690
+ "filePath": "insights.main.runtime.ts",
2691
+ "line": 63,
2692
+ "character": 1
2693
+ },
2694
+ "name": "InsightsAspect.addRuntime(InsightsMain);",
2695
+ "type": "ExpressionStatement"
2696
+ }
2697
+ ]
2698
+ },
2699
+ {
2700
+ "__schema": "ModuleSchema",
2701
+ "location": {
2702
+ "filePath": "insights.aspect.ts",
2703
+ "line": 1,
2704
+ "character": 1
2705
+ },
2706
+ "exports": [
2707
+ {
2708
+ "__schema": "VariableLikeSchema",
2709
+ "location": {
2710
+ "filePath": "insights.aspect.ts",
2711
+ "line": 3,
2712
+ "character": 14
2713
+ },
2714
+ "signature": "const InsightsAspect: Aspect",
2715
+ "name": "InsightsAspect",
2716
+ "type": {
2717
+ "__schema": "TypeRefSchema",
2718
+ "location": {
2719
+ "filePath": "insights.aspect.ts",
2720
+ "line": 3,
2721
+ "character": 14
2722
+ },
2723
+ "name": "Aspect",
2724
+ "componentId": {
2725
+ "scope": "teambit.harmony",
2726
+ "name": "harmony",
2727
+ "version": "0.4.6"
2728
+ }
2729
+ },
2730
+ "isOptional": false,
2731
+ "defaultValue": "Aspect.create({\n id: 'teambit.explorer/insights',\n dependencies: [],\n defaultConfig: {},\n})"
2732
+ }
2733
+ ],
2734
+ "internals": []
2735
+ }
2736
+ ],
2737
+ "componentId": {
2738
+ "scope": "teambit.explorer",
2739
+ "name": "insights",
2740
+ "version": "1.0.514"
2741
+ },
2742
+ "taggedModuleExports": []
2743
+ }