@teambit/insights 1.0.258 → 1.0.260

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