@teambit/importer 1.0.257 → 1.0.259

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