@teambit/insights 1.0.188 → 1.0.190

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