@teambit/api-server 1.0.512 → 1.0.513

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,1388 @@
1
+ {
2
+ "__schema": "APISchema",
3
+ "location": {
4
+ "filePath": "index.ts",
5
+ "line": 1,
6
+ "character": 1
7
+ },
8
+ "module": {
9
+ "__schema": "ModuleSchema",
10
+ "location": {
11
+ "filePath": "index.ts",
12
+ "line": 1,
13
+ "character": 1
14
+ },
15
+ "exports": [
16
+ {
17
+ "__schema": "ExportSchema",
18
+ "location": {
19
+ "filePath": "index.ts",
20
+ "line": 3,
21
+ "character": 15
22
+ },
23
+ "signature": "class ApiServerMain",
24
+ "name": "ApiServerMain",
25
+ "exportNode": {
26
+ "__schema": "ClassSchema",
27
+ "location": {
28
+ "filePath": "api-server.main.runtime.ts",
29
+ "line": 37,
30
+ "character": 1
31
+ },
32
+ "signature": "class ApiServerMain",
33
+ "name": "ApiServerMain",
34
+ "members": [
35
+ {
36
+ "__schema": "ConstructorSchema",
37
+ "location": {
38
+ "filePath": "api-server.main.runtime.ts",
39
+ "line": 38,
40
+ "character": 3
41
+ },
42
+ "signature": "constructor ApiServerMain(workspace: Workspace, logger: Logger, express: ExpressMain, watcher: WatcherMain, installer: InstallMain, importer: ImporterMain): ApiServerMain",
43
+ "name": "constructor",
44
+ "params": [
45
+ {
46
+ "__schema": "ParameterSchema",
47
+ "location": {
48
+ "filePath": "api-server.main.runtime.ts",
49
+ "line": 39,
50
+ "character": 5
51
+ },
52
+ "name": "workspace",
53
+ "type": {
54
+ "__schema": "TypeRefSchema",
55
+ "location": {
56
+ "filePath": "api-server.main.runtime.ts",
57
+ "line": 39,
58
+ "character": 24
59
+ },
60
+ "name": "Workspace"
61
+ },
62
+ "isOptional": false,
63
+ "isSpread": false
64
+ },
65
+ {
66
+ "__schema": "ParameterSchema",
67
+ "location": {
68
+ "filePath": "api-server.main.runtime.ts",
69
+ "line": 40,
70
+ "character": 5
71
+ },
72
+ "name": "logger",
73
+ "type": {
74
+ "__schema": "TypeRefSchema",
75
+ "location": {
76
+ "filePath": "api-server.main.runtime.ts",
77
+ "line": 40,
78
+ "character": 21
79
+ },
80
+ "name": "Logger"
81
+ },
82
+ "isOptional": false,
83
+ "isSpread": false
84
+ },
85
+ {
86
+ "__schema": "ParameterSchema",
87
+ "location": {
88
+ "filePath": "api-server.main.runtime.ts",
89
+ "line": 41,
90
+ "character": 5
91
+ },
92
+ "name": "express",
93
+ "type": {
94
+ "__schema": "TypeRefSchema",
95
+ "location": {
96
+ "filePath": "api-server.main.runtime.ts",
97
+ "line": 41,
98
+ "character": 22
99
+ },
100
+ "name": "ExpressMain"
101
+ },
102
+ "isOptional": false,
103
+ "isSpread": false
104
+ },
105
+ {
106
+ "__schema": "ParameterSchema",
107
+ "location": {
108
+ "filePath": "api-server.main.runtime.ts",
109
+ "line": 42,
110
+ "character": 5
111
+ },
112
+ "name": "watcher",
113
+ "type": {
114
+ "__schema": "TypeRefSchema",
115
+ "location": {
116
+ "filePath": "api-server.main.runtime.ts",
117
+ "line": 42,
118
+ "character": 22
119
+ },
120
+ "name": "WatcherMain"
121
+ },
122
+ "isOptional": false,
123
+ "isSpread": false
124
+ },
125
+ {
126
+ "__schema": "ParameterSchema",
127
+ "location": {
128
+ "filePath": "api-server.main.runtime.ts",
129
+ "line": 43,
130
+ "character": 5
131
+ },
132
+ "name": "installer",
133
+ "type": {
134
+ "__schema": "TypeRefSchema",
135
+ "location": {
136
+ "filePath": "api-server.main.runtime.ts",
137
+ "line": 43,
138
+ "character": 24
139
+ },
140
+ "name": "InstallMain"
141
+ },
142
+ "isOptional": false,
143
+ "isSpread": false
144
+ },
145
+ {
146
+ "__schema": "ParameterSchema",
147
+ "location": {
148
+ "filePath": "api-server.main.runtime.ts",
149
+ "line": 44,
150
+ "character": 5
151
+ },
152
+ "name": "importer",
153
+ "type": {
154
+ "__schema": "TypeRefSchema",
155
+ "location": {
156
+ "filePath": "api-server.main.runtime.ts",
157
+ "line": 44,
158
+ "character": 23
159
+ },
160
+ "name": "ImporterMain"
161
+ },
162
+ "isOptional": false,
163
+ "isSpread": false
164
+ }
165
+ ],
166
+ "returnType": {
167
+ "__schema": "ThisTypeSchema",
168
+ "location": {
169
+ "filePath": "api-server.main.runtime.ts",
170
+ "line": 37,
171
+ "character": 1
172
+ },
173
+ "name": "ApiServerMain"
174
+ },
175
+ "modifiers": []
176
+ },
177
+ {
178
+ "__schema": "FunctionLikeSchema",
179
+ "location": {
180
+ "filePath": "api-server.main.runtime.ts",
181
+ "line": 47,
182
+ "character": 3
183
+ },
184
+ "signature": "(method) ApiServerMain.runApiServer(options: {\n port: number;\n compile: boolean;\n}): Promise<unknown>",
185
+ "name": "runApiServer",
186
+ "params": [
187
+ {
188
+ "__schema": "ParameterSchema",
189
+ "location": {
190
+ "filePath": "api-server.main.runtime.ts",
191
+ "line": 47,
192
+ "character": 22
193
+ },
194
+ "name": "options",
195
+ "type": {
196
+ "__schema": "TypeLiteralSchema",
197
+ "location": {
198
+ "filePath": "api-server.main.runtime.ts",
199
+ "line": 47,
200
+ "character": 31
201
+ },
202
+ "members": [
203
+ {
204
+ "__schema": "VariableLikeSchema",
205
+ "location": {
206
+ "filePath": "api-server.main.runtime.ts",
207
+ "line": 47,
208
+ "character": 33
209
+ },
210
+ "signature": "(property) port: number",
211
+ "name": "port",
212
+ "type": {
213
+ "__schema": "KeywordTypeSchema",
214
+ "location": {
215
+ "filePath": "api-server.main.runtime.ts",
216
+ "line": 47,
217
+ "character": 39
218
+ },
219
+ "name": "number"
220
+ },
221
+ "isOptional": false
222
+ },
223
+ {
224
+ "__schema": "VariableLikeSchema",
225
+ "location": {
226
+ "filePath": "api-server.main.runtime.ts",
227
+ "line": 47,
228
+ "character": 47
229
+ },
230
+ "signature": "(property) compile: boolean",
231
+ "name": "compile",
232
+ "type": {
233
+ "__schema": "KeywordTypeSchema",
234
+ "location": {
235
+ "filePath": "api-server.main.runtime.ts",
236
+ "line": 47,
237
+ "character": 56
238
+ },
239
+ "name": "boolean"
240
+ },
241
+ "isOptional": false
242
+ }
243
+ ]
244
+ },
245
+ "isOptional": false,
246
+ "isSpread": false
247
+ }
248
+ ],
249
+ "returnType": {
250
+ "__schema": "InferenceTypeSchema",
251
+ "location": {
252
+ "filePath": "api-server.main.runtime.ts",
253
+ "line": 47,
254
+ "character": 3
255
+ },
256
+ "type": "Promise<unknown>"
257
+ },
258
+ "modifiers": [
259
+ "async"
260
+ ]
261
+ },
262
+ {
263
+ "__schema": "FunctionLikeSchema",
264
+ "location": {
265
+ "filePath": "api-server.main.runtime.ts",
266
+ "line": 179,
267
+ "character": 3
268
+ },
269
+ "signature": "(method) ApiServerMain.writeUsedPort(port: number): void",
270
+ "name": "writeUsedPort",
271
+ "params": [
272
+ {
273
+ "__schema": "ParameterSchema",
274
+ "location": {
275
+ "filePath": "api-server.main.runtime.ts",
276
+ "line": 179,
277
+ "character": 17
278
+ },
279
+ "name": "port",
280
+ "type": {
281
+ "__schema": "KeywordTypeSchema",
282
+ "location": {
283
+ "filePath": "api-server.main.runtime.ts",
284
+ "line": 179,
285
+ "character": 23
286
+ },
287
+ "name": "number"
288
+ },
289
+ "isOptional": false,
290
+ "isSpread": false
291
+ }
292
+ ],
293
+ "returnType": {
294
+ "__schema": "InferenceTypeSchema",
295
+ "location": {
296
+ "filePath": "api-server.main.runtime.ts",
297
+ "line": 179,
298
+ "character": 3
299
+ },
300
+ "type": "void"
301
+ },
302
+ "modifiers": []
303
+ },
304
+ {
305
+ "__schema": "FunctionLikeSchema",
306
+ "location": {
307
+ "filePath": "api-server.main.runtime.ts",
308
+ "line": 184,
309
+ "character": 3
310
+ },
311
+ "signature": "(method) ApiServerMain.getRandomPort(): Promise<number>",
312
+ "name": "getRandomPort",
313
+ "params": [],
314
+ "returnType": {
315
+ "__schema": "InferenceTypeSchema",
316
+ "location": {
317
+ "filePath": "api-server.main.runtime.ts",
318
+ "line": 184,
319
+ "character": 3
320
+ },
321
+ "type": "Promise<number>"
322
+ },
323
+ "modifiers": [
324
+ "async"
325
+ ]
326
+ },
327
+ {
328
+ "__schema": "FunctionLikeSchema",
329
+ "location": {
330
+ "filePath": "api-server.main.runtime.ts",
331
+ "line": 192,
332
+ "character": 3
333
+ },
334
+ "signature": "(method) ApiServerMain.getExistingUsedPort(): Promise<number | undefined>",
335
+ "name": "getExistingUsedPort",
336
+ "params": [],
337
+ "returnType": {
338
+ "__schema": "TypeRefSchema",
339
+ "location": {
340
+ "filePath": "api-server.main.runtime.ts",
341
+ "line": 192,
342
+ "character": 32
343
+ },
344
+ "name": "Promise",
345
+ "typeArgs": [
346
+ {
347
+ "__schema": "TypeUnionSchema",
348
+ "location": {
349
+ "filePath": "api-server.main.runtime.ts",
350
+ "line": 192,
351
+ "character": 40
352
+ },
353
+ "types": [
354
+ {
355
+ "__schema": "KeywordTypeSchema",
356
+ "location": {
357
+ "filePath": "api-server.main.runtime.ts",
358
+ "line": 192,
359
+ "character": 40
360
+ },
361
+ "name": "number"
362
+ },
363
+ {
364
+ "__schema": "KeywordTypeSchema",
365
+ "location": {
366
+ "filePath": "api-server.main.runtime.ts",
367
+ "line": 192,
368
+ "character": 49
369
+ },
370
+ "name": "undefined"
371
+ }
372
+ ]
373
+ }
374
+ ]
375
+ },
376
+ "modifiers": [
377
+ "async"
378
+ ]
379
+ },
380
+ {
381
+ "__schema": "VariableLikeSchema",
382
+ "location": {
383
+ "filePath": "api-server.main.runtime.ts",
384
+ "line": 209,
385
+ "character": 3
386
+ },
387
+ "signature": "(property) ApiServerMain.dependencies: Aspect[]",
388
+ "name": "dependencies",
389
+ "type": {
390
+ "__schema": "InferenceTypeSchema",
391
+ "location": {
392
+ "filePath": "api-server.main.runtime.ts",
393
+ "line": 209,
394
+ "character": 3
395
+ },
396
+ "type": "Aspect[]"
397
+ },
398
+ "isOptional": true,
399
+ "defaultValue": "[\n CLIAspect,\n WorkspaceAspect,\n LoggerAspect,\n ExpressAspect,\n WatcherAspect,\n SnappingAspect,\n LanesAspect,\n InstallAspect,\n ExportAspect,\n CheckoutAspect,\n ComponentLogAspect,\n ImporterAspect,\n ComponentCompareAspect,\n GeneratorAspect,\n RemoveAspect,\n ConfigAspect,\n ApplicationAspect,\n DeprecationAspect,\n EnvsAspect,\n ]"
400
+ },
401
+ {
402
+ "__schema": "VariableLikeSchema",
403
+ "location": {
404
+ "filePath": "api-server.main.runtime.ts",
405
+ "line": 230,
406
+ "character": 3
407
+ },
408
+ "signature": "(property) ApiServerMain.runtime: RuntimeDefinition",
409
+ "name": "runtime",
410
+ "type": {
411
+ "__schema": "InferenceTypeSchema",
412
+ "location": {
413
+ "filePath": "api-server.main.runtime.ts",
414
+ "line": 230,
415
+ "character": 3
416
+ },
417
+ "type": "RuntimeDefinition"
418
+ },
419
+ "isOptional": true,
420
+ "defaultValue": "MainRuntime"
421
+ },
422
+ {
423
+ "__schema": "FunctionLikeSchema",
424
+ "location": {
425
+ "filePath": "api-server.main.runtime.ts",
426
+ "line": 231,
427
+ "character": 3
428
+ },
429
+ "signature": "(method) ApiServerMain.provider([cli, workspace, loggerMain, express, watcher, snapping, lanes, installer, exporter, checkout, componentLog, importer, componentCompare, generator, remove, config, application, deprecation, envs,]: [CLIMain, Workspace, LoggerMain, ExpressMain, WatcherMain, SnappingMain, LanesMain, InstallMain, ExportMain, CheckoutMain, ComponentLogMain, ImporterMain, ComponentCompareMain, GeneratorMain, RemoveMain, ConfigMain, ApplicationMain, DeprecationMain, EnvsMain]): Promise<...>",
430
+ "name": "provider",
431
+ "params": [
432
+ {
433
+ "__schema": "ParameterSchema",
434
+ "location": {
435
+ "filePath": "api-server.main.runtime.ts",
436
+ "line": 231,
437
+ "character": 25
438
+ },
439
+ "name": "[ cli, workspace, loggerMain, express, watcher, snapping, lanes, installer, exporter, checkout, componentLog, importer, componentCompare, generator, remove, config, application, deprecation, envs ]",
440
+ "type": {
441
+ "__schema": "TupleTypeSchema",
442
+ "location": {
443
+ "filePath": "api-server.main.runtime.ts",
444
+ "line": 251,
445
+ "character": 6
446
+ },
447
+ "elements": [
448
+ {
449
+ "__schema": "TypeRefSchema",
450
+ "location": {
451
+ "filePath": "api-server.main.runtime.ts",
452
+ "line": 252,
453
+ "character": 5
454
+ },
455
+ "name": "CLIMain"
456
+ },
457
+ {
458
+ "__schema": "TypeRefSchema",
459
+ "location": {
460
+ "filePath": "api-server.main.runtime.ts",
461
+ "line": 253,
462
+ "character": 5
463
+ },
464
+ "name": "Workspace"
465
+ },
466
+ {
467
+ "__schema": "TypeRefSchema",
468
+ "location": {
469
+ "filePath": "api-server.main.runtime.ts",
470
+ "line": 254,
471
+ "character": 5
472
+ },
473
+ "name": "LoggerMain"
474
+ },
475
+ {
476
+ "__schema": "TypeRefSchema",
477
+ "location": {
478
+ "filePath": "api-server.main.runtime.ts",
479
+ "line": 255,
480
+ "character": 5
481
+ },
482
+ "name": "ExpressMain"
483
+ },
484
+ {
485
+ "__schema": "TypeRefSchema",
486
+ "location": {
487
+ "filePath": "api-server.main.runtime.ts",
488
+ "line": 256,
489
+ "character": 5
490
+ },
491
+ "name": "WatcherMain"
492
+ },
493
+ {
494
+ "__schema": "TypeRefSchema",
495
+ "location": {
496
+ "filePath": "api-server.main.runtime.ts",
497
+ "line": 257,
498
+ "character": 5
499
+ },
500
+ "name": "SnappingMain"
501
+ },
502
+ {
503
+ "__schema": "TypeRefSchema",
504
+ "location": {
505
+ "filePath": "api-server.main.runtime.ts",
506
+ "line": 258,
507
+ "character": 5
508
+ },
509
+ "name": "LanesMain"
510
+ },
511
+ {
512
+ "__schema": "TypeRefSchema",
513
+ "location": {
514
+ "filePath": "api-server.main.runtime.ts",
515
+ "line": 259,
516
+ "character": 5
517
+ },
518
+ "name": "InstallMain"
519
+ },
520
+ {
521
+ "__schema": "TypeRefSchema",
522
+ "location": {
523
+ "filePath": "api-server.main.runtime.ts",
524
+ "line": 260,
525
+ "character": 5
526
+ },
527
+ "name": "ExportMain"
528
+ },
529
+ {
530
+ "__schema": "TypeRefSchema",
531
+ "location": {
532
+ "filePath": "api-server.main.runtime.ts",
533
+ "line": 261,
534
+ "character": 5
535
+ },
536
+ "name": "CheckoutMain"
537
+ },
538
+ {
539
+ "__schema": "TypeRefSchema",
540
+ "location": {
541
+ "filePath": "api-server.main.runtime.ts",
542
+ "line": 262,
543
+ "character": 5
544
+ },
545
+ "name": "ComponentLogMain"
546
+ },
547
+ {
548
+ "__schema": "TypeRefSchema",
549
+ "location": {
550
+ "filePath": "api-server.main.runtime.ts",
551
+ "line": 263,
552
+ "character": 5
553
+ },
554
+ "name": "ImporterMain"
555
+ },
556
+ {
557
+ "__schema": "TypeRefSchema",
558
+ "location": {
559
+ "filePath": "api-server.main.runtime.ts",
560
+ "line": 264,
561
+ "character": 5
562
+ },
563
+ "name": "ComponentCompareMain"
564
+ },
565
+ {
566
+ "__schema": "TypeRefSchema",
567
+ "location": {
568
+ "filePath": "api-server.main.runtime.ts",
569
+ "line": 265,
570
+ "character": 5
571
+ },
572
+ "name": "GeneratorMain"
573
+ },
574
+ {
575
+ "__schema": "TypeRefSchema",
576
+ "location": {
577
+ "filePath": "api-server.main.runtime.ts",
578
+ "line": 266,
579
+ "character": 5
580
+ },
581
+ "name": "RemoveMain"
582
+ },
583
+ {
584
+ "__schema": "TypeRefSchema",
585
+ "location": {
586
+ "filePath": "api-server.main.runtime.ts",
587
+ "line": 267,
588
+ "character": 5
589
+ },
590
+ "name": "ConfigMain"
591
+ },
592
+ {
593
+ "__schema": "TypeRefSchema",
594
+ "location": {
595
+ "filePath": "api-server.main.runtime.ts",
596
+ "line": 268,
597
+ "character": 5
598
+ },
599
+ "name": "ApplicationMain"
600
+ },
601
+ {
602
+ "__schema": "TypeRefSchema",
603
+ "location": {
604
+ "filePath": "api-server.main.runtime.ts",
605
+ "line": 269,
606
+ "character": 5
607
+ },
608
+ "name": "DeprecationMain"
609
+ },
610
+ {
611
+ "__schema": "TypeRefSchema",
612
+ "location": {
613
+ "filePath": "api-server.main.runtime.ts",
614
+ "line": 270,
615
+ "character": 5
616
+ },
617
+ "name": "EnvsMain"
618
+ }
619
+ ]
620
+ },
621
+ "isOptional": false,
622
+ "isSpread": false
623
+ }
624
+ ],
625
+ "returnType": {
626
+ "__schema": "InferenceTypeSchema",
627
+ "location": {
628
+ "filePath": "api-server.main.runtime.ts",
629
+ "line": 231,
630
+ "character": 3
631
+ },
632
+ "type": "Promise<...>"
633
+ },
634
+ "modifiers": [
635
+ "static",
636
+ "async"
637
+ ]
638
+ }
639
+ ],
640
+ "extendsNodes": [],
641
+ "implementNodes": []
642
+ }
643
+ },
644
+ {
645
+ "__schema": "UnImplementedSchema",
646
+ "location": {
647
+ "filePath": "index.ts",
648
+ "line": 4,
649
+ "character": 16
650
+ },
651
+ "name": "ApiServerAspect",
652
+ "type": "Identifier"
653
+ },
654
+ {
655
+ "__schema": "ExportSchema",
656
+ "location": {
657
+ "filePath": "index.ts",
658
+ "line": 5,
659
+ "character": 10
660
+ },
661
+ "signature": "const ApiServerAspect: Aspect",
662
+ "name": "ApiServerAspect",
663
+ "exportNode": {
664
+ "__schema": "VariableLikeSchema",
665
+ "location": {
666
+ "filePath": "api-server.aspect.ts",
667
+ "line": 3,
668
+ "character": 14
669
+ },
670
+ "signature": "const ApiServerAspect: Aspect",
671
+ "name": "ApiServerAspect",
672
+ "type": {
673
+ "__schema": "TypeRefSchema",
674
+ "location": {
675
+ "filePath": "api-server.aspect.ts",
676
+ "line": 3,
677
+ "character": 14
678
+ },
679
+ "name": "Aspect",
680
+ "componentId": {
681
+ "scope": "teambit.harmony",
682
+ "name": "harmony",
683
+ "version": "0.4.6"
684
+ }
685
+ },
686
+ "isOptional": false,
687
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/api-server',\n})"
688
+ }
689
+ }
690
+ ],
691
+ "internals": []
692
+ },
693
+ "internals": [
694
+ {
695
+ "__schema": "ModuleSchema",
696
+ "location": {
697
+ "filePath": "api-server.main.runtime.ts",
698
+ "line": 1,
699
+ "character": 1
700
+ },
701
+ "exports": [
702
+ {
703
+ "__schema": "ClassSchema",
704
+ "location": {
705
+ "filePath": "api-server.main.runtime.ts",
706
+ "line": 37,
707
+ "character": 1
708
+ },
709
+ "signature": "class ApiServerMain",
710
+ "name": "ApiServerMain",
711
+ "members": [
712
+ {
713
+ "__schema": "ConstructorSchema",
714
+ "location": {
715
+ "filePath": "api-server.main.runtime.ts",
716
+ "line": 38,
717
+ "character": 3
718
+ },
719
+ "signature": "constructor ApiServerMain(workspace: Workspace, logger: Logger, express: ExpressMain, watcher: WatcherMain, installer: InstallMain, importer: ImporterMain): ApiServerMain",
720
+ "name": "constructor",
721
+ "params": [
722
+ {
723
+ "__schema": "ParameterSchema",
724
+ "location": {
725
+ "filePath": "api-server.main.runtime.ts",
726
+ "line": 39,
727
+ "character": 5
728
+ },
729
+ "name": "workspace",
730
+ "type": {
731
+ "__schema": "TypeRefSchema",
732
+ "location": {
733
+ "filePath": "api-server.main.runtime.ts",
734
+ "line": 39,
735
+ "character": 24
736
+ },
737
+ "name": "Workspace"
738
+ },
739
+ "isOptional": false,
740
+ "isSpread": false
741
+ },
742
+ {
743
+ "__schema": "ParameterSchema",
744
+ "location": {
745
+ "filePath": "api-server.main.runtime.ts",
746
+ "line": 40,
747
+ "character": 5
748
+ },
749
+ "name": "logger",
750
+ "type": {
751
+ "__schema": "TypeRefSchema",
752
+ "location": {
753
+ "filePath": "api-server.main.runtime.ts",
754
+ "line": 40,
755
+ "character": 21
756
+ },
757
+ "name": "Logger"
758
+ },
759
+ "isOptional": false,
760
+ "isSpread": false
761
+ },
762
+ {
763
+ "__schema": "ParameterSchema",
764
+ "location": {
765
+ "filePath": "api-server.main.runtime.ts",
766
+ "line": 41,
767
+ "character": 5
768
+ },
769
+ "name": "express",
770
+ "type": {
771
+ "__schema": "TypeRefSchema",
772
+ "location": {
773
+ "filePath": "api-server.main.runtime.ts",
774
+ "line": 41,
775
+ "character": 22
776
+ },
777
+ "name": "ExpressMain"
778
+ },
779
+ "isOptional": false,
780
+ "isSpread": false
781
+ },
782
+ {
783
+ "__schema": "ParameterSchema",
784
+ "location": {
785
+ "filePath": "api-server.main.runtime.ts",
786
+ "line": 42,
787
+ "character": 5
788
+ },
789
+ "name": "watcher",
790
+ "type": {
791
+ "__schema": "TypeRefSchema",
792
+ "location": {
793
+ "filePath": "api-server.main.runtime.ts",
794
+ "line": 42,
795
+ "character": 22
796
+ },
797
+ "name": "WatcherMain"
798
+ },
799
+ "isOptional": false,
800
+ "isSpread": false
801
+ },
802
+ {
803
+ "__schema": "ParameterSchema",
804
+ "location": {
805
+ "filePath": "api-server.main.runtime.ts",
806
+ "line": 43,
807
+ "character": 5
808
+ },
809
+ "name": "installer",
810
+ "type": {
811
+ "__schema": "TypeRefSchema",
812
+ "location": {
813
+ "filePath": "api-server.main.runtime.ts",
814
+ "line": 43,
815
+ "character": 24
816
+ },
817
+ "name": "InstallMain"
818
+ },
819
+ "isOptional": false,
820
+ "isSpread": false
821
+ },
822
+ {
823
+ "__schema": "ParameterSchema",
824
+ "location": {
825
+ "filePath": "api-server.main.runtime.ts",
826
+ "line": 44,
827
+ "character": 5
828
+ },
829
+ "name": "importer",
830
+ "type": {
831
+ "__schema": "TypeRefSchema",
832
+ "location": {
833
+ "filePath": "api-server.main.runtime.ts",
834
+ "line": 44,
835
+ "character": 23
836
+ },
837
+ "name": "ImporterMain"
838
+ },
839
+ "isOptional": false,
840
+ "isSpread": false
841
+ }
842
+ ],
843
+ "returnType": {
844
+ "__schema": "ThisTypeSchema",
845
+ "location": {
846
+ "filePath": "api-server.main.runtime.ts",
847
+ "line": 37,
848
+ "character": 1
849
+ },
850
+ "name": "ApiServerMain"
851
+ },
852
+ "modifiers": []
853
+ },
854
+ {
855
+ "__schema": "FunctionLikeSchema",
856
+ "location": {
857
+ "filePath": "api-server.main.runtime.ts",
858
+ "line": 47,
859
+ "character": 3
860
+ },
861
+ "signature": "(method) ApiServerMain.runApiServer(options: {\n port: number;\n compile: boolean;\n}): Promise<unknown>",
862
+ "name": "runApiServer",
863
+ "params": [
864
+ {
865
+ "__schema": "ParameterSchema",
866
+ "location": {
867
+ "filePath": "api-server.main.runtime.ts",
868
+ "line": 47,
869
+ "character": 22
870
+ },
871
+ "name": "options",
872
+ "type": {
873
+ "__schema": "TypeLiteralSchema",
874
+ "location": {
875
+ "filePath": "api-server.main.runtime.ts",
876
+ "line": 47,
877
+ "character": 31
878
+ },
879
+ "members": [
880
+ {
881
+ "__schema": "VariableLikeSchema",
882
+ "location": {
883
+ "filePath": "api-server.main.runtime.ts",
884
+ "line": 47,
885
+ "character": 33
886
+ },
887
+ "signature": "(property) port: number",
888
+ "name": "port",
889
+ "type": {
890
+ "__schema": "KeywordTypeSchema",
891
+ "location": {
892
+ "filePath": "api-server.main.runtime.ts",
893
+ "line": 47,
894
+ "character": 39
895
+ },
896
+ "name": "number"
897
+ },
898
+ "isOptional": false
899
+ },
900
+ {
901
+ "__schema": "VariableLikeSchema",
902
+ "location": {
903
+ "filePath": "api-server.main.runtime.ts",
904
+ "line": 47,
905
+ "character": 47
906
+ },
907
+ "signature": "(property) compile: boolean",
908
+ "name": "compile",
909
+ "type": {
910
+ "__schema": "KeywordTypeSchema",
911
+ "location": {
912
+ "filePath": "api-server.main.runtime.ts",
913
+ "line": 47,
914
+ "character": 56
915
+ },
916
+ "name": "boolean"
917
+ },
918
+ "isOptional": false
919
+ }
920
+ ]
921
+ },
922
+ "isOptional": false,
923
+ "isSpread": false
924
+ }
925
+ ],
926
+ "returnType": {
927
+ "__schema": "InferenceTypeSchema",
928
+ "location": {
929
+ "filePath": "api-server.main.runtime.ts",
930
+ "line": 47,
931
+ "character": 3
932
+ },
933
+ "type": "Promise<unknown>"
934
+ },
935
+ "modifiers": [
936
+ "async"
937
+ ]
938
+ },
939
+ {
940
+ "__schema": "FunctionLikeSchema",
941
+ "location": {
942
+ "filePath": "api-server.main.runtime.ts",
943
+ "line": 179,
944
+ "character": 3
945
+ },
946
+ "signature": "(method) ApiServerMain.writeUsedPort(port: number): void",
947
+ "name": "writeUsedPort",
948
+ "params": [
949
+ {
950
+ "__schema": "ParameterSchema",
951
+ "location": {
952
+ "filePath": "api-server.main.runtime.ts",
953
+ "line": 179,
954
+ "character": 17
955
+ },
956
+ "name": "port",
957
+ "type": {
958
+ "__schema": "KeywordTypeSchema",
959
+ "location": {
960
+ "filePath": "api-server.main.runtime.ts",
961
+ "line": 179,
962
+ "character": 23
963
+ },
964
+ "name": "number"
965
+ },
966
+ "isOptional": false,
967
+ "isSpread": false
968
+ }
969
+ ],
970
+ "returnType": {
971
+ "__schema": "InferenceTypeSchema",
972
+ "location": {
973
+ "filePath": "api-server.main.runtime.ts",
974
+ "line": 179,
975
+ "character": 3
976
+ },
977
+ "type": "void"
978
+ },
979
+ "modifiers": []
980
+ },
981
+ {
982
+ "__schema": "FunctionLikeSchema",
983
+ "location": {
984
+ "filePath": "api-server.main.runtime.ts",
985
+ "line": 184,
986
+ "character": 3
987
+ },
988
+ "signature": "(method) ApiServerMain.getRandomPort(): Promise<number>",
989
+ "name": "getRandomPort",
990
+ "params": [],
991
+ "returnType": {
992
+ "__schema": "InferenceTypeSchema",
993
+ "location": {
994
+ "filePath": "api-server.main.runtime.ts",
995
+ "line": 184,
996
+ "character": 3
997
+ },
998
+ "type": "Promise<number>"
999
+ },
1000
+ "modifiers": [
1001
+ "async"
1002
+ ]
1003
+ },
1004
+ {
1005
+ "__schema": "FunctionLikeSchema",
1006
+ "location": {
1007
+ "filePath": "api-server.main.runtime.ts",
1008
+ "line": 192,
1009
+ "character": 3
1010
+ },
1011
+ "signature": "(method) ApiServerMain.getExistingUsedPort(): Promise<number | undefined>",
1012
+ "name": "getExistingUsedPort",
1013
+ "params": [],
1014
+ "returnType": {
1015
+ "__schema": "TypeRefSchema",
1016
+ "location": {
1017
+ "filePath": "api-server.main.runtime.ts",
1018
+ "line": 192,
1019
+ "character": 32
1020
+ },
1021
+ "name": "Promise",
1022
+ "typeArgs": [
1023
+ {
1024
+ "__schema": "TypeUnionSchema",
1025
+ "location": {
1026
+ "filePath": "api-server.main.runtime.ts",
1027
+ "line": 192,
1028
+ "character": 40
1029
+ },
1030
+ "types": [
1031
+ {
1032
+ "__schema": "KeywordTypeSchema",
1033
+ "location": {
1034
+ "filePath": "api-server.main.runtime.ts",
1035
+ "line": 192,
1036
+ "character": 40
1037
+ },
1038
+ "name": "number"
1039
+ },
1040
+ {
1041
+ "__schema": "KeywordTypeSchema",
1042
+ "location": {
1043
+ "filePath": "api-server.main.runtime.ts",
1044
+ "line": 192,
1045
+ "character": 49
1046
+ },
1047
+ "name": "undefined"
1048
+ }
1049
+ ]
1050
+ }
1051
+ ]
1052
+ },
1053
+ "modifiers": [
1054
+ "async"
1055
+ ]
1056
+ },
1057
+ {
1058
+ "__schema": "VariableLikeSchema",
1059
+ "location": {
1060
+ "filePath": "api-server.main.runtime.ts",
1061
+ "line": 209,
1062
+ "character": 3
1063
+ },
1064
+ "signature": "(property) ApiServerMain.dependencies: Aspect[]",
1065
+ "name": "dependencies",
1066
+ "type": {
1067
+ "__schema": "InferenceTypeSchema",
1068
+ "location": {
1069
+ "filePath": "api-server.main.runtime.ts",
1070
+ "line": 209,
1071
+ "character": 3
1072
+ },
1073
+ "type": "Aspect[]"
1074
+ },
1075
+ "isOptional": true,
1076
+ "defaultValue": "[\n CLIAspect,\n WorkspaceAspect,\n LoggerAspect,\n ExpressAspect,\n WatcherAspect,\n SnappingAspect,\n LanesAspect,\n InstallAspect,\n ExportAspect,\n CheckoutAspect,\n ComponentLogAspect,\n ImporterAspect,\n ComponentCompareAspect,\n GeneratorAspect,\n RemoveAspect,\n ConfigAspect,\n ApplicationAspect,\n DeprecationAspect,\n EnvsAspect,\n ]"
1077
+ },
1078
+ {
1079
+ "__schema": "VariableLikeSchema",
1080
+ "location": {
1081
+ "filePath": "api-server.main.runtime.ts",
1082
+ "line": 230,
1083
+ "character": 3
1084
+ },
1085
+ "signature": "(property) ApiServerMain.runtime: RuntimeDefinition",
1086
+ "name": "runtime",
1087
+ "type": {
1088
+ "__schema": "InferenceTypeSchema",
1089
+ "location": {
1090
+ "filePath": "api-server.main.runtime.ts",
1091
+ "line": 230,
1092
+ "character": 3
1093
+ },
1094
+ "type": "RuntimeDefinition"
1095
+ },
1096
+ "isOptional": true,
1097
+ "defaultValue": "MainRuntime"
1098
+ },
1099
+ {
1100
+ "__schema": "FunctionLikeSchema",
1101
+ "location": {
1102
+ "filePath": "api-server.main.runtime.ts",
1103
+ "line": 231,
1104
+ "character": 3
1105
+ },
1106
+ "signature": "(method) ApiServerMain.provider([cli, workspace, loggerMain, express, watcher, snapping, lanes, installer, exporter, checkout, componentLog, importer, componentCompare, generator, remove, config, application, deprecation, envs,]: [CLIMain, Workspace, LoggerMain, ExpressMain, WatcherMain, SnappingMain, LanesMain, InstallMain, ExportMain, CheckoutMain, ComponentLogMain, ImporterMain, ComponentCompareMain, GeneratorMain, RemoveMain, ConfigMain, ApplicationMain, DeprecationMain, EnvsMain]): Promise<...>",
1107
+ "name": "provider",
1108
+ "params": [
1109
+ {
1110
+ "__schema": "ParameterSchema",
1111
+ "location": {
1112
+ "filePath": "api-server.main.runtime.ts",
1113
+ "line": 231,
1114
+ "character": 25
1115
+ },
1116
+ "name": "[ cli, workspace, loggerMain, express, watcher, snapping, lanes, installer, exporter, checkout, componentLog, importer, componentCompare, generator, remove, config, application, deprecation, envs ]",
1117
+ "type": {
1118
+ "__schema": "TupleTypeSchema",
1119
+ "location": {
1120
+ "filePath": "api-server.main.runtime.ts",
1121
+ "line": 251,
1122
+ "character": 6
1123
+ },
1124
+ "elements": [
1125
+ {
1126
+ "__schema": "TypeRefSchema",
1127
+ "location": {
1128
+ "filePath": "api-server.main.runtime.ts",
1129
+ "line": 252,
1130
+ "character": 5
1131
+ },
1132
+ "name": "CLIMain"
1133
+ },
1134
+ {
1135
+ "__schema": "TypeRefSchema",
1136
+ "location": {
1137
+ "filePath": "api-server.main.runtime.ts",
1138
+ "line": 253,
1139
+ "character": 5
1140
+ },
1141
+ "name": "Workspace"
1142
+ },
1143
+ {
1144
+ "__schema": "TypeRefSchema",
1145
+ "location": {
1146
+ "filePath": "api-server.main.runtime.ts",
1147
+ "line": 254,
1148
+ "character": 5
1149
+ },
1150
+ "name": "LoggerMain"
1151
+ },
1152
+ {
1153
+ "__schema": "TypeRefSchema",
1154
+ "location": {
1155
+ "filePath": "api-server.main.runtime.ts",
1156
+ "line": 255,
1157
+ "character": 5
1158
+ },
1159
+ "name": "ExpressMain"
1160
+ },
1161
+ {
1162
+ "__schema": "TypeRefSchema",
1163
+ "location": {
1164
+ "filePath": "api-server.main.runtime.ts",
1165
+ "line": 256,
1166
+ "character": 5
1167
+ },
1168
+ "name": "WatcherMain"
1169
+ },
1170
+ {
1171
+ "__schema": "TypeRefSchema",
1172
+ "location": {
1173
+ "filePath": "api-server.main.runtime.ts",
1174
+ "line": 257,
1175
+ "character": 5
1176
+ },
1177
+ "name": "SnappingMain"
1178
+ },
1179
+ {
1180
+ "__schema": "TypeRefSchema",
1181
+ "location": {
1182
+ "filePath": "api-server.main.runtime.ts",
1183
+ "line": 258,
1184
+ "character": 5
1185
+ },
1186
+ "name": "LanesMain"
1187
+ },
1188
+ {
1189
+ "__schema": "TypeRefSchema",
1190
+ "location": {
1191
+ "filePath": "api-server.main.runtime.ts",
1192
+ "line": 259,
1193
+ "character": 5
1194
+ },
1195
+ "name": "InstallMain"
1196
+ },
1197
+ {
1198
+ "__schema": "TypeRefSchema",
1199
+ "location": {
1200
+ "filePath": "api-server.main.runtime.ts",
1201
+ "line": 260,
1202
+ "character": 5
1203
+ },
1204
+ "name": "ExportMain"
1205
+ },
1206
+ {
1207
+ "__schema": "TypeRefSchema",
1208
+ "location": {
1209
+ "filePath": "api-server.main.runtime.ts",
1210
+ "line": 261,
1211
+ "character": 5
1212
+ },
1213
+ "name": "CheckoutMain"
1214
+ },
1215
+ {
1216
+ "__schema": "TypeRefSchema",
1217
+ "location": {
1218
+ "filePath": "api-server.main.runtime.ts",
1219
+ "line": 262,
1220
+ "character": 5
1221
+ },
1222
+ "name": "ComponentLogMain"
1223
+ },
1224
+ {
1225
+ "__schema": "TypeRefSchema",
1226
+ "location": {
1227
+ "filePath": "api-server.main.runtime.ts",
1228
+ "line": 263,
1229
+ "character": 5
1230
+ },
1231
+ "name": "ImporterMain"
1232
+ },
1233
+ {
1234
+ "__schema": "TypeRefSchema",
1235
+ "location": {
1236
+ "filePath": "api-server.main.runtime.ts",
1237
+ "line": 264,
1238
+ "character": 5
1239
+ },
1240
+ "name": "ComponentCompareMain"
1241
+ },
1242
+ {
1243
+ "__schema": "TypeRefSchema",
1244
+ "location": {
1245
+ "filePath": "api-server.main.runtime.ts",
1246
+ "line": 265,
1247
+ "character": 5
1248
+ },
1249
+ "name": "GeneratorMain"
1250
+ },
1251
+ {
1252
+ "__schema": "TypeRefSchema",
1253
+ "location": {
1254
+ "filePath": "api-server.main.runtime.ts",
1255
+ "line": 266,
1256
+ "character": 5
1257
+ },
1258
+ "name": "RemoveMain"
1259
+ },
1260
+ {
1261
+ "__schema": "TypeRefSchema",
1262
+ "location": {
1263
+ "filePath": "api-server.main.runtime.ts",
1264
+ "line": 267,
1265
+ "character": 5
1266
+ },
1267
+ "name": "ConfigMain"
1268
+ },
1269
+ {
1270
+ "__schema": "TypeRefSchema",
1271
+ "location": {
1272
+ "filePath": "api-server.main.runtime.ts",
1273
+ "line": 268,
1274
+ "character": 5
1275
+ },
1276
+ "name": "ApplicationMain"
1277
+ },
1278
+ {
1279
+ "__schema": "TypeRefSchema",
1280
+ "location": {
1281
+ "filePath": "api-server.main.runtime.ts",
1282
+ "line": 269,
1283
+ "character": 5
1284
+ },
1285
+ "name": "DeprecationMain"
1286
+ },
1287
+ {
1288
+ "__schema": "TypeRefSchema",
1289
+ "location": {
1290
+ "filePath": "api-server.main.runtime.ts",
1291
+ "line": 270,
1292
+ "character": 5
1293
+ },
1294
+ "name": "EnvsMain"
1295
+ }
1296
+ ]
1297
+ },
1298
+ "isOptional": false,
1299
+ "isSpread": false
1300
+ }
1301
+ ],
1302
+ "returnType": {
1303
+ "__schema": "InferenceTypeSchema",
1304
+ "location": {
1305
+ "filePath": "api-server.main.runtime.ts",
1306
+ "line": 231,
1307
+ "character": 3
1308
+ },
1309
+ "type": "Promise<...>"
1310
+ },
1311
+ "modifiers": [
1312
+ "static",
1313
+ "async"
1314
+ ]
1315
+ }
1316
+ ],
1317
+ "extendsNodes": [],
1318
+ "implementNodes": []
1319
+ },
1320
+ {
1321
+ "__schema": "UnImplementedSchema",
1322
+ "location": {
1323
+ "filePath": "api-server.main.runtime.ts",
1324
+ "line": 307,
1325
+ "character": 16
1326
+ },
1327
+ "name": "ApiServerMain",
1328
+ "type": "Identifier"
1329
+ }
1330
+ ],
1331
+ "internals": [
1332
+ {
1333
+ "__schema": "UnImplementedSchema",
1334
+ "location": {
1335
+ "filePath": "api-server.main.runtime.ts",
1336
+ "line": 305,
1337
+ "character": 1
1338
+ },
1339
+ "name": "ApiServerAspect.addRuntime(ApiServerMain);",
1340
+ "type": "ExpressionStatement"
1341
+ }
1342
+ ]
1343
+ },
1344
+ {
1345
+ "__schema": "ModuleSchema",
1346
+ "location": {
1347
+ "filePath": "api-server.aspect.ts",
1348
+ "line": 1,
1349
+ "character": 1
1350
+ },
1351
+ "exports": [
1352
+ {
1353
+ "__schema": "VariableLikeSchema",
1354
+ "location": {
1355
+ "filePath": "api-server.aspect.ts",
1356
+ "line": 3,
1357
+ "character": 14
1358
+ },
1359
+ "signature": "const ApiServerAspect: Aspect",
1360
+ "name": "ApiServerAspect",
1361
+ "type": {
1362
+ "__schema": "TypeRefSchema",
1363
+ "location": {
1364
+ "filePath": "api-server.aspect.ts",
1365
+ "line": 3,
1366
+ "character": 14
1367
+ },
1368
+ "name": "Aspect",
1369
+ "componentId": {
1370
+ "scope": "teambit.harmony",
1371
+ "name": "harmony",
1372
+ "version": "0.4.6"
1373
+ }
1374
+ },
1375
+ "isOptional": false,
1376
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/api-server',\n})"
1377
+ }
1378
+ ],
1379
+ "internals": []
1380
+ }
1381
+ ],
1382
+ "componentId": {
1383
+ "scope": "teambit.harmony",
1384
+ "name": "api-server",
1385
+ "version": "1.0.513"
1386
+ },
1387
+ "taggedModuleExports": []
1388
+ }