@teambit/cloud 0.0.504 → 0.0.506
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/schema.json +304 -70
- package/dist/cloud.aspect.d.ts +3 -0
- package/dist/cloud.graphql.d.ts +3 -0
- package/dist/cloud.main.runtime.d.ts +157 -0
- package/dist/cloud.ui.runtime.d.ts +30 -0
- package/dist/index.d.ts +5 -0
- package/dist/login.cmd.d.ts +40 -0
- package/dist/logout.cmd.d.ts +17 -0
- package/dist/npmrc.cmd.d.ts +36 -0
- package/dist/whoami.cmd.d.ts +17 -0
- package/package.json +13 -13
- package/tsconfig.json +1 -34
- /package/dist/{preview-1712805335812.js → preview-1712891953391.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.cloud/cloud@0.0.
|
|
3
|
+
<testsuite name="teambit.cloud/cloud@0.0.506" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
|
@@ -132,7 +132,8 @@
|
|
|
132
132
|
"line": 99,
|
|
133
133
|
"character": 21
|
|
134
134
|
},
|
|
135
|
-
"name": "CloudWorkspaceConfig"
|
|
135
|
+
"name": "CloudWorkspaceConfig",
|
|
136
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
136
137
|
},
|
|
137
138
|
"isOptional": false,
|
|
138
139
|
"isSpread": false
|
|
@@ -152,7 +153,11 @@
|
|
|
152
153
|
"line": 100,
|
|
153
154
|
"character": 20
|
|
154
155
|
},
|
|
155
|
-
"name": "Logger"
|
|
156
|
+
"name": "Logger",
|
|
157
|
+
"componentId": {
|
|
158
|
+
"scope": "teambit.harmony",
|
|
159
|
+
"name": "logger"
|
|
160
|
+
}
|
|
156
161
|
},
|
|
157
162
|
"isOptional": false,
|
|
158
163
|
"isSpread": false
|
|
@@ -172,7 +177,11 @@
|
|
|
172
177
|
"line": 101,
|
|
173
178
|
"character": 21
|
|
174
179
|
},
|
|
175
|
-
"name": "ExpressMain"
|
|
180
|
+
"name": "ExpressMain",
|
|
181
|
+
"componentId": {
|
|
182
|
+
"scope": "teambit.harmony",
|
|
183
|
+
"name": "express"
|
|
184
|
+
}
|
|
176
185
|
},
|
|
177
186
|
"isOptional": false,
|
|
178
187
|
"isSpread": false
|
|
@@ -192,7 +201,11 @@
|
|
|
192
201
|
"line": 102,
|
|
193
202
|
"character": 23
|
|
194
203
|
},
|
|
195
|
-
"name": "Workspace"
|
|
204
|
+
"name": "Workspace",
|
|
205
|
+
"componentId": {
|
|
206
|
+
"scope": "teambit.workspace",
|
|
207
|
+
"name": "workspace"
|
|
208
|
+
}
|
|
196
209
|
},
|
|
197
210
|
"isOptional": false,
|
|
198
211
|
"isSpread": false
|
|
@@ -212,7 +225,11 @@
|
|
|
212
225
|
"line": 103,
|
|
213
226
|
"character": 19
|
|
214
227
|
},
|
|
215
|
-
"name": "ScopeMain"
|
|
228
|
+
"name": "ScopeMain",
|
|
229
|
+
"componentId": {
|
|
230
|
+
"scope": "teambit.scope",
|
|
231
|
+
"name": "scope"
|
|
232
|
+
}
|
|
216
233
|
},
|
|
217
234
|
"isOptional": false,
|
|
218
235
|
"isSpread": false
|
|
@@ -232,7 +249,11 @@
|
|
|
232
249
|
"line": 104,
|
|
233
250
|
"character": 26
|
|
234
251
|
},
|
|
235
|
-
"name": "GlobalConfigMain"
|
|
252
|
+
"name": "GlobalConfigMain",
|
|
253
|
+
"componentId": {
|
|
254
|
+
"scope": "teambit.harmony",
|
|
255
|
+
"name": "global-config"
|
|
256
|
+
}
|
|
236
257
|
},
|
|
237
258
|
"isOptional": false,
|
|
238
259
|
"isSpread": false
|
|
@@ -252,7 +273,8 @@
|
|
|
252
273
|
"line": 105,
|
|
253
274
|
"character": 32
|
|
254
275
|
},
|
|
255
|
-
"name": "OnSuccessLoginSlot"
|
|
276
|
+
"name": "OnSuccessLoginSlot",
|
|
277
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
256
278
|
},
|
|
257
279
|
"isOptional": false,
|
|
258
280
|
"isSpread": false
|
|
@@ -1191,7 +1213,8 @@
|
|
|
1191
1213
|
"line": 216,
|
|
1192
1214
|
"character": 20
|
|
1193
1215
|
},
|
|
1194
|
-
"name": "CloudAuthListener"
|
|
1216
|
+
"name": "CloudAuthListener",
|
|
1217
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
1195
1218
|
},
|
|
1196
1219
|
{
|
|
1197
1220
|
"__schema": "LiteralTypeSchema",
|
|
@@ -1233,7 +1256,8 @@
|
|
|
1233
1256
|
"line": 330,
|
|
1234
1257
|
"character": 44
|
|
1235
1258
|
},
|
|
1236
|
-
"name": "OnSuccessLogin"
|
|
1259
|
+
"name": "OnSuccessLogin",
|
|
1260
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
1237
1261
|
},
|
|
1238
1262
|
"isOptional": false,
|
|
1239
1263
|
"isSpread": false
|
|
@@ -2098,7 +2122,8 @@
|
|
|
2098
2122
|
"line": 449,
|
|
2099
2123
|
"character": 25
|
|
2100
2124
|
},
|
|
2101
|
-
"name": "NpmConfigUpdateResult"
|
|
2125
|
+
"name": "NpmConfigUpdateResult",
|
|
2126
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
2102
2127
|
},
|
|
2103
2128
|
"isOptional": true
|
|
2104
2129
|
}
|
|
@@ -2267,7 +2292,12 @@
|
|
|
2267
2292
|
"line": 536,
|
|
2268
2293
|
"character": 51
|
|
2269
2294
|
},
|
|
2270
|
-
"name": "ScopeDescriptor"
|
|
2295
|
+
"name": "ScopeDescriptor",
|
|
2296
|
+
"componentId": {
|
|
2297
|
+
"scope": "teambit.scopes",
|
|
2298
|
+
"name": "scope-descriptor",
|
|
2299
|
+
"version": "0.0.24"
|
|
2300
|
+
}
|
|
2271
2301
|
}
|
|
2272
2302
|
}
|
|
2273
2303
|
]
|
|
@@ -2310,7 +2340,12 @@
|
|
|
2310
2340
|
"line": 555,
|
|
2311
2341
|
"character": 35
|
|
2312
2342
|
},
|
|
2313
|
-
"name": "CloudUser"
|
|
2343
|
+
"name": "CloudUser",
|
|
2344
|
+
"componentId": {
|
|
2345
|
+
"scope": "teambit.cloud",
|
|
2346
|
+
"name": "models/cloud-user",
|
|
2347
|
+
"version": "0.0.5"
|
|
2348
|
+
}
|
|
2314
2349
|
},
|
|
2315
2350
|
{
|
|
2316
2351
|
"__schema": "LiteralTypeSchema",
|
|
@@ -2370,7 +2405,8 @@
|
|
|
2370
2405
|
"line": 567,
|
|
2371
2406
|
"character": 41
|
|
2372
2407
|
},
|
|
2373
|
-
"name": "CloudOrganization"
|
|
2408
|
+
"name": "CloudOrganization",
|
|
2409
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
2374
2410
|
}
|
|
2375
2411
|
},
|
|
2376
2412
|
{
|
|
@@ -2625,7 +2661,11 @@
|
|
|
2625
2661
|
"line": 629,
|
|
2626
2662
|
"character": 7
|
|
2627
2663
|
},
|
|
2628
|
-
"name": "LoggerMain"
|
|
2664
|
+
"name": "LoggerMain",
|
|
2665
|
+
"componentId": {
|
|
2666
|
+
"scope": "teambit.harmony",
|
|
2667
|
+
"name": "logger"
|
|
2668
|
+
}
|
|
2629
2669
|
},
|
|
2630
2670
|
{
|
|
2631
2671
|
"__schema": "TypeRefSchema",
|
|
@@ -2634,7 +2674,11 @@
|
|
|
2634
2674
|
"line": 630,
|
|
2635
2675
|
"character": 7
|
|
2636
2676
|
},
|
|
2637
|
-
"name": "GraphqlMain"
|
|
2677
|
+
"name": "GraphqlMain",
|
|
2678
|
+
"componentId": {
|
|
2679
|
+
"scope": "teambit.harmony",
|
|
2680
|
+
"name": "graphql"
|
|
2681
|
+
}
|
|
2638
2682
|
},
|
|
2639
2683
|
{
|
|
2640
2684
|
"__schema": "TypeRefSchema",
|
|
@@ -2643,7 +2687,11 @@
|
|
|
2643
2687
|
"line": 631,
|
|
2644
2688
|
"character": 7
|
|
2645
2689
|
},
|
|
2646
|
-
"name": "ExpressMain"
|
|
2690
|
+
"name": "ExpressMain",
|
|
2691
|
+
"componentId": {
|
|
2692
|
+
"scope": "teambit.harmony",
|
|
2693
|
+
"name": "express"
|
|
2694
|
+
}
|
|
2647
2695
|
},
|
|
2648
2696
|
{
|
|
2649
2697
|
"__schema": "TypeRefSchema",
|
|
@@ -2652,7 +2700,11 @@
|
|
|
2652
2700
|
"line": 632,
|
|
2653
2701
|
"character": 7
|
|
2654
2702
|
},
|
|
2655
|
-
"name": "Workspace"
|
|
2703
|
+
"name": "Workspace",
|
|
2704
|
+
"componentId": {
|
|
2705
|
+
"scope": "teambit.workspace",
|
|
2706
|
+
"name": "workspace"
|
|
2707
|
+
}
|
|
2656
2708
|
},
|
|
2657
2709
|
{
|
|
2658
2710
|
"__schema": "TypeRefSchema",
|
|
@@ -2661,7 +2713,11 @@
|
|
|
2661
2713
|
"line": 633,
|
|
2662
2714
|
"character": 7
|
|
2663
2715
|
},
|
|
2664
|
-
"name": "ScopeMain"
|
|
2716
|
+
"name": "ScopeMain",
|
|
2717
|
+
"componentId": {
|
|
2718
|
+
"scope": "teambit.scope",
|
|
2719
|
+
"name": "scope"
|
|
2720
|
+
}
|
|
2665
2721
|
},
|
|
2666
2722
|
{
|
|
2667
2723
|
"__schema": "TypeRefSchema",
|
|
@@ -2670,7 +2726,11 @@
|
|
|
2670
2726
|
"line": 634,
|
|
2671
2727
|
"character": 7
|
|
2672
2728
|
},
|
|
2673
|
-
"name": "GlobalConfigMain"
|
|
2729
|
+
"name": "GlobalConfigMain",
|
|
2730
|
+
"componentId": {
|
|
2731
|
+
"scope": "teambit.harmony",
|
|
2732
|
+
"name": "global-config"
|
|
2733
|
+
}
|
|
2674
2734
|
},
|
|
2675
2735
|
{
|
|
2676
2736
|
"__schema": "TypeRefSchema",
|
|
@@ -2679,7 +2739,11 @@
|
|
|
2679
2739
|
"line": 635,
|
|
2680
2740
|
"character": 7
|
|
2681
2741
|
},
|
|
2682
|
-
"name": "CLIMain"
|
|
2742
|
+
"name": "CLIMain",
|
|
2743
|
+
"componentId": {
|
|
2744
|
+
"scope": "teambit.harmony",
|
|
2745
|
+
"name": "cli"
|
|
2746
|
+
}
|
|
2683
2747
|
},
|
|
2684
2748
|
{
|
|
2685
2749
|
"__schema": "TypeRefSchema",
|
|
@@ -2688,7 +2752,11 @@
|
|
|
2688
2752
|
"line": 636,
|
|
2689
2753
|
"character": 7
|
|
2690
2754
|
},
|
|
2691
|
-
"name": "UiMain"
|
|
2755
|
+
"name": "UiMain",
|
|
2756
|
+
"componentId": {
|
|
2757
|
+
"scope": "teambit.ui-foundation",
|
|
2758
|
+
"name": "ui"
|
|
2759
|
+
}
|
|
2692
2760
|
}
|
|
2693
2761
|
]
|
|
2694
2762
|
},
|
|
@@ -2710,7 +2778,8 @@
|
|
|
2710
2778
|
"line": 638,
|
|
2711
2779
|
"character": 13
|
|
2712
2780
|
},
|
|
2713
|
-
"name": "CloudWorkspaceConfig"
|
|
2781
|
+
"name": "CloudWorkspaceConfig",
|
|
2782
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
2714
2783
|
},
|
|
2715
2784
|
"isOptional": false,
|
|
2716
2785
|
"isSpread": false
|
|
@@ -2738,7 +2807,8 @@
|
|
|
2738
2807
|
"line": 639,
|
|
2739
2808
|
"character": 28
|
|
2740
2809
|
},
|
|
2741
|
-
"name": "OnSuccessLoginSlot"
|
|
2810
|
+
"name": "OnSuccessLoginSlot",
|
|
2811
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
2742
2812
|
}
|
|
2743
2813
|
]
|
|
2744
2814
|
},
|
|
@@ -2799,7 +2869,12 @@
|
|
|
2799
2869
|
"line": 14,
|
|
2800
2870
|
"character": 43
|
|
2801
2871
|
},
|
|
2802
|
-
"name": "UserBarSectionSlot"
|
|
2872
|
+
"name": "UserBarSectionSlot",
|
|
2873
|
+
"componentId": {
|
|
2874
|
+
"scope": "teambit.cloud",
|
|
2875
|
+
"name": "ui/user-bar",
|
|
2876
|
+
"version": "0.0.7"
|
|
2877
|
+
}
|
|
2803
2878
|
},
|
|
2804
2879
|
"isOptional": false,
|
|
2805
2880
|
"isSpread": false
|
|
@@ -2819,7 +2894,12 @@
|
|
|
2819
2894
|
"line": 14,
|
|
2820
2895
|
"character": 88
|
|
2821
2896
|
},
|
|
2822
|
-
"name": "UserBarItemSlot"
|
|
2897
|
+
"name": "UserBarItemSlot",
|
|
2898
|
+
"componentId": {
|
|
2899
|
+
"scope": "teambit.cloud",
|
|
2900
|
+
"name": "ui/user-bar",
|
|
2901
|
+
"version": "0.0.7"
|
|
2902
|
+
}
|
|
2823
2903
|
},
|
|
2824
2904
|
"isOptional": false,
|
|
2825
2905
|
"isSpread": false
|
|
@@ -2878,7 +2958,12 @@
|
|
|
2878
2958
|
"line": 18,
|
|
2879
2959
|
"character": 36
|
|
2880
2960
|
},
|
|
2881
|
-
"name": "UserBarItem"
|
|
2961
|
+
"name": "UserBarItem",
|
|
2962
|
+
"componentId": {
|
|
2963
|
+
"scope": "teambit.cloud",
|
|
2964
|
+
"name": "ui/user-bar",
|
|
2965
|
+
"version": "0.0.7"
|
|
2966
|
+
}
|
|
2882
2967
|
}
|
|
2883
2968
|
},
|
|
2884
2969
|
"isOptional": false,
|
|
@@ -2938,7 +3023,12 @@
|
|
|
2938
3023
|
"line": 26,
|
|
2939
3024
|
"character": 36
|
|
2940
3025
|
},
|
|
2941
|
-
"name": "UserBarSection"
|
|
3026
|
+
"name": "UserBarSection",
|
|
3027
|
+
"componentId": {
|
|
3028
|
+
"scope": "teambit.cloud",
|
|
3029
|
+
"name": "ui/user-bar",
|
|
3030
|
+
"version": "0.0.7"
|
|
3031
|
+
}
|
|
2942
3032
|
}
|
|
2943
3033
|
},
|
|
2944
3034
|
"isOptional": false,
|
|
@@ -3114,7 +3204,11 @@
|
|
|
3114
3204
|
"line": 52,
|
|
3115
3205
|
"character": 37
|
|
3116
3206
|
},
|
|
3117
|
-
"name": "WorkspaceUI"
|
|
3207
|
+
"name": "WorkspaceUI",
|
|
3208
|
+
"componentId": {
|
|
3209
|
+
"scope": "teambit.workspace",
|
|
3210
|
+
"name": "workspace"
|
|
3211
|
+
}
|
|
3118
3212
|
},
|
|
3119
3213
|
{
|
|
3120
3214
|
"__schema": "TypeRefSchema",
|
|
@@ -3123,7 +3217,11 @@
|
|
|
3123
3217
|
"line": 52,
|
|
3124
3218
|
"character": 50
|
|
3125
3219
|
},
|
|
3126
|
-
"name": "LanesUI"
|
|
3220
|
+
"name": "LanesUI",
|
|
3221
|
+
"componentId": {
|
|
3222
|
+
"scope": "teambit.lanes",
|
|
3223
|
+
"name": "lanes"
|
|
3224
|
+
}
|
|
3127
3225
|
},
|
|
3128
3226
|
{
|
|
3129
3227
|
"__schema": "TypeRefSchema",
|
|
@@ -3132,7 +3230,11 @@
|
|
|
3132
3230
|
"line": 52,
|
|
3133
3231
|
"character": 59
|
|
3134
3232
|
},
|
|
3135
|
-
"name": "ComponentUI"
|
|
3233
|
+
"name": "ComponentUI",
|
|
3234
|
+
"componentId": {
|
|
3235
|
+
"scope": "teambit.component",
|
|
3236
|
+
"name": "component"
|
|
3237
|
+
}
|
|
3136
3238
|
}
|
|
3137
3239
|
]
|
|
3138
3240
|
},
|
|
@@ -3182,7 +3284,12 @@
|
|
|
3182
3284
|
"line": 54,
|
|
3183
3285
|
"character": 45
|
|
3184
3286
|
},
|
|
3185
|
-
"name": "UserBarItemSlot"
|
|
3287
|
+
"name": "UserBarItemSlot",
|
|
3288
|
+
"componentId": {
|
|
3289
|
+
"scope": "teambit.cloud",
|
|
3290
|
+
"name": "ui/user-bar",
|
|
3291
|
+
"version": "0.0.7"
|
|
3292
|
+
}
|
|
3186
3293
|
},
|
|
3187
3294
|
{
|
|
3188
3295
|
"__schema": "TypeRefSchema",
|
|
@@ -3191,7 +3298,12 @@
|
|
|
3191
3298
|
"line": 54,
|
|
3192
3299
|
"character": 62
|
|
3193
3300
|
},
|
|
3194
|
-
"name": "UserBarSectionSlot"
|
|
3301
|
+
"name": "UserBarSectionSlot",
|
|
3302
|
+
"componentId": {
|
|
3303
|
+
"scope": "teambit.cloud",
|
|
3304
|
+
"name": "ui/user-bar",
|
|
3305
|
+
"version": "0.0.7"
|
|
3306
|
+
}
|
|
3195
3307
|
}
|
|
3196
3308
|
]
|
|
3197
3309
|
},
|
|
@@ -3569,7 +3681,8 @@
|
|
|
3569
3681
|
"line": 81,
|
|
3570
3682
|
"character": 23
|
|
3571
3683
|
},
|
|
3572
|
-
"name": "NpmConfigUpdateResult"
|
|
3684
|
+
"name": "NpmConfigUpdateResult",
|
|
3685
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
3573
3686
|
},
|
|
3574
3687
|
"isOptional": true
|
|
3575
3688
|
}
|
|
@@ -3633,7 +3746,8 @@
|
|
|
3633
3746
|
"line": 81,
|
|
3634
3747
|
"character": 23
|
|
3635
3748
|
},
|
|
3636
|
-
"name": "NpmConfigUpdateResult"
|
|
3749
|
+
"name": "NpmConfigUpdateResult",
|
|
3750
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
3637
3751
|
},
|
|
3638
3752
|
"isOptional": true
|
|
3639
3753
|
}
|
|
@@ -3670,6 +3784,11 @@
|
|
|
3670
3784
|
"character": 34
|
|
3671
3785
|
},
|
|
3672
3786
|
"name": "SlotRegistry",
|
|
3787
|
+
"componentId": {
|
|
3788
|
+
"scope": "teambit.harmony",
|
|
3789
|
+
"name": "harmony",
|
|
3790
|
+
"version": "0.4.6"
|
|
3791
|
+
},
|
|
3673
3792
|
"typeArgs": [
|
|
3674
3793
|
{
|
|
3675
3794
|
"__schema": "TypeRefSchema",
|
|
@@ -3678,7 +3797,8 @@
|
|
|
3678
3797
|
"line": 83,
|
|
3679
3798
|
"character": 47
|
|
3680
3799
|
},
|
|
3681
|
-
"name": "OnSuccessLogin"
|
|
3800
|
+
"name": "OnSuccessLogin",
|
|
3801
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
3682
3802
|
}
|
|
3683
3803
|
]
|
|
3684
3804
|
}
|
|
@@ -3931,7 +4051,8 @@
|
|
|
3931
4051
|
"line": 99,
|
|
3932
4052
|
"character": 21
|
|
3933
4053
|
},
|
|
3934
|
-
"name": "CloudWorkspaceConfig"
|
|
4054
|
+
"name": "CloudWorkspaceConfig",
|
|
4055
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
3935
4056
|
},
|
|
3936
4057
|
"isOptional": false,
|
|
3937
4058
|
"isSpread": false
|
|
@@ -3951,7 +4072,11 @@
|
|
|
3951
4072
|
"line": 100,
|
|
3952
4073
|
"character": 20
|
|
3953
4074
|
},
|
|
3954
|
-
"name": "Logger"
|
|
4075
|
+
"name": "Logger",
|
|
4076
|
+
"componentId": {
|
|
4077
|
+
"scope": "teambit.harmony",
|
|
4078
|
+
"name": "logger"
|
|
4079
|
+
}
|
|
3955
4080
|
},
|
|
3956
4081
|
"isOptional": false,
|
|
3957
4082
|
"isSpread": false
|
|
@@ -3971,7 +4096,11 @@
|
|
|
3971
4096
|
"line": 101,
|
|
3972
4097
|
"character": 21
|
|
3973
4098
|
},
|
|
3974
|
-
"name": "ExpressMain"
|
|
4099
|
+
"name": "ExpressMain",
|
|
4100
|
+
"componentId": {
|
|
4101
|
+
"scope": "teambit.harmony",
|
|
4102
|
+
"name": "express"
|
|
4103
|
+
}
|
|
3975
4104
|
},
|
|
3976
4105
|
"isOptional": false,
|
|
3977
4106
|
"isSpread": false
|
|
@@ -3991,7 +4120,11 @@
|
|
|
3991
4120
|
"line": 102,
|
|
3992
4121
|
"character": 23
|
|
3993
4122
|
},
|
|
3994
|
-
"name": "Workspace"
|
|
4123
|
+
"name": "Workspace",
|
|
4124
|
+
"componentId": {
|
|
4125
|
+
"scope": "teambit.workspace",
|
|
4126
|
+
"name": "workspace"
|
|
4127
|
+
}
|
|
3995
4128
|
},
|
|
3996
4129
|
"isOptional": false,
|
|
3997
4130
|
"isSpread": false
|
|
@@ -4011,7 +4144,11 @@
|
|
|
4011
4144
|
"line": 103,
|
|
4012
4145
|
"character": 19
|
|
4013
4146
|
},
|
|
4014
|
-
"name": "ScopeMain"
|
|
4147
|
+
"name": "ScopeMain",
|
|
4148
|
+
"componentId": {
|
|
4149
|
+
"scope": "teambit.scope",
|
|
4150
|
+
"name": "scope"
|
|
4151
|
+
}
|
|
4015
4152
|
},
|
|
4016
4153
|
"isOptional": false,
|
|
4017
4154
|
"isSpread": false
|
|
@@ -4031,7 +4168,11 @@
|
|
|
4031
4168
|
"line": 104,
|
|
4032
4169
|
"character": 26
|
|
4033
4170
|
},
|
|
4034
|
-
"name": "GlobalConfigMain"
|
|
4171
|
+
"name": "GlobalConfigMain",
|
|
4172
|
+
"componentId": {
|
|
4173
|
+
"scope": "teambit.harmony",
|
|
4174
|
+
"name": "global-config"
|
|
4175
|
+
}
|
|
4035
4176
|
},
|
|
4036
4177
|
"isOptional": false,
|
|
4037
4178
|
"isSpread": false
|
|
@@ -4051,7 +4192,8 @@
|
|
|
4051
4192
|
"line": 105,
|
|
4052
4193
|
"character": 32
|
|
4053
4194
|
},
|
|
4054
|
-
"name": "OnSuccessLoginSlot"
|
|
4195
|
+
"name": "OnSuccessLoginSlot",
|
|
4196
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
4055
4197
|
},
|
|
4056
4198
|
"isOptional": false,
|
|
4057
4199
|
"isSpread": false
|
|
@@ -4990,7 +5132,8 @@
|
|
|
4990
5132
|
"line": 216,
|
|
4991
5133
|
"character": 20
|
|
4992
5134
|
},
|
|
4993
|
-
"name": "CloudAuthListener"
|
|
5135
|
+
"name": "CloudAuthListener",
|
|
5136
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
4994
5137
|
},
|
|
4995
5138
|
{
|
|
4996
5139
|
"__schema": "LiteralTypeSchema",
|
|
@@ -5032,7 +5175,8 @@
|
|
|
5032
5175
|
"line": 330,
|
|
5033
5176
|
"character": 44
|
|
5034
5177
|
},
|
|
5035
|
-
"name": "OnSuccessLogin"
|
|
5178
|
+
"name": "OnSuccessLogin",
|
|
5179
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
5036
5180
|
},
|
|
5037
5181
|
"isOptional": false,
|
|
5038
5182
|
"isSpread": false
|
|
@@ -5897,7 +6041,8 @@
|
|
|
5897
6041
|
"line": 449,
|
|
5898
6042
|
"character": 25
|
|
5899
6043
|
},
|
|
5900
|
-
"name": "NpmConfigUpdateResult"
|
|
6044
|
+
"name": "NpmConfigUpdateResult",
|
|
6045
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
5901
6046
|
},
|
|
5902
6047
|
"isOptional": true
|
|
5903
6048
|
}
|
|
@@ -6066,7 +6211,12 @@
|
|
|
6066
6211
|
"line": 536,
|
|
6067
6212
|
"character": 51
|
|
6068
6213
|
},
|
|
6069
|
-
"name": "ScopeDescriptor"
|
|
6214
|
+
"name": "ScopeDescriptor",
|
|
6215
|
+
"componentId": {
|
|
6216
|
+
"scope": "teambit.scopes",
|
|
6217
|
+
"name": "scope-descriptor",
|
|
6218
|
+
"version": "0.0.24"
|
|
6219
|
+
}
|
|
6070
6220
|
}
|
|
6071
6221
|
}
|
|
6072
6222
|
]
|
|
@@ -6109,7 +6259,12 @@
|
|
|
6109
6259
|
"line": 555,
|
|
6110
6260
|
"character": 35
|
|
6111
6261
|
},
|
|
6112
|
-
"name": "CloudUser"
|
|
6262
|
+
"name": "CloudUser",
|
|
6263
|
+
"componentId": {
|
|
6264
|
+
"scope": "teambit.cloud",
|
|
6265
|
+
"name": "models/cloud-user",
|
|
6266
|
+
"version": "0.0.5"
|
|
6267
|
+
}
|
|
6113
6268
|
},
|
|
6114
6269
|
{
|
|
6115
6270
|
"__schema": "LiteralTypeSchema",
|
|
@@ -6169,7 +6324,8 @@
|
|
|
6169
6324
|
"line": 567,
|
|
6170
6325
|
"character": 41
|
|
6171
6326
|
},
|
|
6172
|
-
"name": "CloudOrganization"
|
|
6327
|
+
"name": "CloudOrganization",
|
|
6328
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
6173
6329
|
}
|
|
6174
6330
|
},
|
|
6175
6331
|
{
|
|
@@ -6424,7 +6580,11 @@
|
|
|
6424
6580
|
"line": 629,
|
|
6425
6581
|
"character": 7
|
|
6426
6582
|
},
|
|
6427
|
-
"name": "LoggerMain"
|
|
6583
|
+
"name": "LoggerMain",
|
|
6584
|
+
"componentId": {
|
|
6585
|
+
"scope": "teambit.harmony",
|
|
6586
|
+
"name": "logger"
|
|
6587
|
+
}
|
|
6428
6588
|
},
|
|
6429
6589
|
{
|
|
6430
6590
|
"__schema": "TypeRefSchema",
|
|
@@ -6433,7 +6593,11 @@
|
|
|
6433
6593
|
"line": 630,
|
|
6434
6594
|
"character": 7
|
|
6435
6595
|
},
|
|
6436
|
-
"name": "GraphqlMain"
|
|
6596
|
+
"name": "GraphqlMain",
|
|
6597
|
+
"componentId": {
|
|
6598
|
+
"scope": "teambit.harmony",
|
|
6599
|
+
"name": "graphql"
|
|
6600
|
+
}
|
|
6437
6601
|
},
|
|
6438
6602
|
{
|
|
6439
6603
|
"__schema": "TypeRefSchema",
|
|
@@ -6442,7 +6606,11 @@
|
|
|
6442
6606
|
"line": 631,
|
|
6443
6607
|
"character": 7
|
|
6444
6608
|
},
|
|
6445
|
-
"name": "ExpressMain"
|
|
6609
|
+
"name": "ExpressMain",
|
|
6610
|
+
"componentId": {
|
|
6611
|
+
"scope": "teambit.harmony",
|
|
6612
|
+
"name": "express"
|
|
6613
|
+
}
|
|
6446
6614
|
},
|
|
6447
6615
|
{
|
|
6448
6616
|
"__schema": "TypeRefSchema",
|
|
@@ -6451,7 +6619,11 @@
|
|
|
6451
6619
|
"line": 632,
|
|
6452
6620
|
"character": 7
|
|
6453
6621
|
},
|
|
6454
|
-
"name": "Workspace"
|
|
6622
|
+
"name": "Workspace",
|
|
6623
|
+
"componentId": {
|
|
6624
|
+
"scope": "teambit.workspace",
|
|
6625
|
+
"name": "workspace"
|
|
6626
|
+
}
|
|
6455
6627
|
},
|
|
6456
6628
|
{
|
|
6457
6629
|
"__schema": "TypeRefSchema",
|
|
@@ -6460,7 +6632,11 @@
|
|
|
6460
6632
|
"line": 633,
|
|
6461
6633
|
"character": 7
|
|
6462
6634
|
},
|
|
6463
|
-
"name": "ScopeMain"
|
|
6635
|
+
"name": "ScopeMain",
|
|
6636
|
+
"componentId": {
|
|
6637
|
+
"scope": "teambit.scope",
|
|
6638
|
+
"name": "scope"
|
|
6639
|
+
}
|
|
6464
6640
|
},
|
|
6465
6641
|
{
|
|
6466
6642
|
"__schema": "TypeRefSchema",
|
|
@@ -6469,7 +6645,11 @@
|
|
|
6469
6645
|
"line": 634,
|
|
6470
6646
|
"character": 7
|
|
6471
6647
|
},
|
|
6472
|
-
"name": "GlobalConfigMain"
|
|
6648
|
+
"name": "GlobalConfigMain",
|
|
6649
|
+
"componentId": {
|
|
6650
|
+
"scope": "teambit.harmony",
|
|
6651
|
+
"name": "global-config"
|
|
6652
|
+
}
|
|
6473
6653
|
},
|
|
6474
6654
|
{
|
|
6475
6655
|
"__schema": "TypeRefSchema",
|
|
@@ -6478,7 +6658,11 @@
|
|
|
6478
6658
|
"line": 635,
|
|
6479
6659
|
"character": 7
|
|
6480
6660
|
},
|
|
6481
|
-
"name": "CLIMain"
|
|
6661
|
+
"name": "CLIMain",
|
|
6662
|
+
"componentId": {
|
|
6663
|
+
"scope": "teambit.harmony",
|
|
6664
|
+
"name": "cli"
|
|
6665
|
+
}
|
|
6482
6666
|
},
|
|
6483
6667
|
{
|
|
6484
6668
|
"__schema": "TypeRefSchema",
|
|
@@ -6487,7 +6671,11 @@
|
|
|
6487
6671
|
"line": 636,
|
|
6488
6672
|
"character": 7
|
|
6489
6673
|
},
|
|
6490
|
-
"name": "UiMain"
|
|
6674
|
+
"name": "UiMain",
|
|
6675
|
+
"componentId": {
|
|
6676
|
+
"scope": "teambit.ui-foundation",
|
|
6677
|
+
"name": "ui"
|
|
6678
|
+
}
|
|
6491
6679
|
}
|
|
6492
6680
|
]
|
|
6493
6681
|
},
|
|
@@ -6509,7 +6697,8 @@
|
|
|
6509
6697
|
"line": 638,
|
|
6510
6698
|
"character": 13
|
|
6511
6699
|
},
|
|
6512
|
-
"name": "CloudWorkspaceConfig"
|
|
6700
|
+
"name": "CloudWorkspaceConfig",
|
|
6701
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
6513
6702
|
},
|
|
6514
6703
|
"isOptional": false,
|
|
6515
6704
|
"isSpread": false
|
|
@@ -6537,7 +6726,8 @@
|
|
|
6537
6726
|
"line": 639,
|
|
6538
6727
|
"character": 28
|
|
6539
6728
|
},
|
|
6540
|
-
"name": "OnSuccessLoginSlot"
|
|
6729
|
+
"name": "OnSuccessLoginSlot",
|
|
6730
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
6541
6731
|
}
|
|
6542
6732
|
]
|
|
6543
6733
|
},
|
|
@@ -6705,7 +6895,8 @@
|
|
|
6705
6895
|
"line": 60,
|
|
6706
6896
|
"character": 16
|
|
6707
6897
|
},
|
|
6708
|
-
"name": "Express"
|
|
6898
|
+
"name": "Express",
|
|
6899
|
+
"packageName": "express"
|
|
6709
6900
|
},
|
|
6710
6901
|
{
|
|
6711
6902
|
"__schema": "LiteralTypeSchema",
|
|
@@ -6840,7 +7031,8 @@
|
|
|
6840
7031
|
"line": 70,
|
|
6841
7032
|
"character": 27
|
|
6842
7033
|
},
|
|
6843
|
-
"name": "CloudOrganization"
|
|
7034
|
+
"name": "CloudOrganization",
|
|
7035
|
+
"internalFilePath": "cloud.main.runtime.ts"
|
|
6844
7036
|
}
|
|
6845
7037
|
},
|
|
6846
7038
|
"isOptional": false
|
|
@@ -6907,7 +7099,12 @@
|
|
|
6907
7099
|
"line": 14,
|
|
6908
7100
|
"character": 43
|
|
6909
7101
|
},
|
|
6910
|
-
"name": "UserBarSectionSlot"
|
|
7102
|
+
"name": "UserBarSectionSlot",
|
|
7103
|
+
"componentId": {
|
|
7104
|
+
"scope": "teambit.cloud",
|
|
7105
|
+
"name": "ui/user-bar",
|
|
7106
|
+
"version": "0.0.7"
|
|
7107
|
+
}
|
|
6911
7108
|
},
|
|
6912
7109
|
"isOptional": false,
|
|
6913
7110
|
"isSpread": false
|
|
@@ -6927,7 +7124,12 @@
|
|
|
6927
7124
|
"line": 14,
|
|
6928
7125
|
"character": 88
|
|
6929
7126
|
},
|
|
6930
|
-
"name": "UserBarItemSlot"
|
|
7127
|
+
"name": "UserBarItemSlot",
|
|
7128
|
+
"componentId": {
|
|
7129
|
+
"scope": "teambit.cloud",
|
|
7130
|
+
"name": "ui/user-bar",
|
|
7131
|
+
"version": "0.0.7"
|
|
7132
|
+
}
|
|
6931
7133
|
},
|
|
6932
7134
|
"isOptional": false,
|
|
6933
7135
|
"isSpread": false
|
|
@@ -6986,7 +7188,12 @@
|
|
|
6986
7188
|
"line": 18,
|
|
6987
7189
|
"character": 36
|
|
6988
7190
|
},
|
|
6989
|
-
"name": "UserBarItem"
|
|
7191
|
+
"name": "UserBarItem",
|
|
7192
|
+
"componentId": {
|
|
7193
|
+
"scope": "teambit.cloud",
|
|
7194
|
+
"name": "ui/user-bar",
|
|
7195
|
+
"version": "0.0.7"
|
|
7196
|
+
}
|
|
6990
7197
|
}
|
|
6991
7198
|
},
|
|
6992
7199
|
"isOptional": false,
|
|
@@ -7046,7 +7253,12 @@
|
|
|
7046
7253
|
"line": 26,
|
|
7047
7254
|
"character": 36
|
|
7048
7255
|
},
|
|
7049
|
-
"name": "UserBarSection"
|
|
7256
|
+
"name": "UserBarSection",
|
|
7257
|
+
"componentId": {
|
|
7258
|
+
"scope": "teambit.cloud",
|
|
7259
|
+
"name": "ui/user-bar",
|
|
7260
|
+
"version": "0.0.7"
|
|
7261
|
+
}
|
|
7050
7262
|
}
|
|
7051
7263
|
},
|
|
7052
7264
|
"isOptional": false,
|
|
@@ -7222,7 +7434,11 @@
|
|
|
7222
7434
|
"line": 52,
|
|
7223
7435
|
"character": 37
|
|
7224
7436
|
},
|
|
7225
|
-
"name": "WorkspaceUI"
|
|
7437
|
+
"name": "WorkspaceUI",
|
|
7438
|
+
"componentId": {
|
|
7439
|
+
"scope": "teambit.workspace",
|
|
7440
|
+
"name": "workspace"
|
|
7441
|
+
}
|
|
7226
7442
|
},
|
|
7227
7443
|
{
|
|
7228
7444
|
"__schema": "TypeRefSchema",
|
|
@@ -7231,7 +7447,11 @@
|
|
|
7231
7447
|
"line": 52,
|
|
7232
7448
|
"character": 50
|
|
7233
7449
|
},
|
|
7234
|
-
"name": "LanesUI"
|
|
7450
|
+
"name": "LanesUI",
|
|
7451
|
+
"componentId": {
|
|
7452
|
+
"scope": "teambit.lanes",
|
|
7453
|
+
"name": "lanes"
|
|
7454
|
+
}
|
|
7235
7455
|
},
|
|
7236
7456
|
{
|
|
7237
7457
|
"__schema": "TypeRefSchema",
|
|
@@ -7240,7 +7460,11 @@
|
|
|
7240
7460
|
"line": 52,
|
|
7241
7461
|
"character": 59
|
|
7242
7462
|
},
|
|
7243
|
-
"name": "ComponentUI"
|
|
7463
|
+
"name": "ComponentUI",
|
|
7464
|
+
"componentId": {
|
|
7465
|
+
"scope": "teambit.component",
|
|
7466
|
+
"name": "component"
|
|
7467
|
+
}
|
|
7244
7468
|
}
|
|
7245
7469
|
]
|
|
7246
7470
|
},
|
|
@@ -7290,7 +7514,12 @@
|
|
|
7290
7514
|
"line": 54,
|
|
7291
7515
|
"character": 45
|
|
7292
7516
|
},
|
|
7293
|
-
"name": "UserBarItemSlot"
|
|
7517
|
+
"name": "UserBarItemSlot",
|
|
7518
|
+
"componentId": {
|
|
7519
|
+
"scope": "teambit.cloud",
|
|
7520
|
+
"name": "ui/user-bar",
|
|
7521
|
+
"version": "0.0.7"
|
|
7522
|
+
}
|
|
7294
7523
|
},
|
|
7295
7524
|
{
|
|
7296
7525
|
"__schema": "TypeRefSchema",
|
|
@@ -7299,7 +7528,12 @@
|
|
|
7299
7528
|
"line": 54,
|
|
7300
7529
|
"character": 62
|
|
7301
7530
|
},
|
|
7302
|
-
"name": "UserBarSectionSlot"
|
|
7531
|
+
"name": "UserBarSectionSlot",
|
|
7532
|
+
"componentId": {
|
|
7533
|
+
"scope": "teambit.cloud",
|
|
7534
|
+
"name": "ui/user-bar",
|
|
7535
|
+
"version": "0.0.7"
|
|
7536
|
+
}
|
|
7303
7537
|
}
|
|
7304
7538
|
]
|
|
7305
7539
|
},
|
|
@@ -7400,7 +7634,7 @@
|
|
|
7400
7634
|
"componentId": {
|
|
7401
7635
|
"scope": "teambit.cloud",
|
|
7402
7636
|
"name": "cloud",
|
|
7403
|
-
"version": "0.0.
|
|
7637
|
+
"version": "0.0.506"
|
|
7404
7638
|
},
|
|
7405
7639
|
"taggedModuleExports": []
|
|
7406
7640
|
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="got/dist/source/core/utils/timed-out" />
|
|
3
|
+
import { SlotRegistry } from '@teambit/harmony';
|
|
4
|
+
import { CLIMain } from '@teambit/cli';
|
|
5
|
+
import * as http from 'http';
|
|
6
|
+
import { Express } from 'express';
|
|
7
|
+
import { CloudUser } from '@teambit/cloud.models.cloud-user';
|
|
8
|
+
import { ScopeDescriptor } from '@teambit/scopes.scope-descriptor';
|
|
9
|
+
import { Logger, LoggerMain } from '@teambit/logger';
|
|
10
|
+
import { ScopeMain } from '@teambit/scope';
|
|
11
|
+
import { GraphqlMain } from '@teambit/graphql';
|
|
12
|
+
import { Workspace } from '@teambit/workspace';
|
|
13
|
+
import { ExpressMain } from '@teambit/express';
|
|
14
|
+
import { GlobalConfigMain } from '@teambit/global-config';
|
|
15
|
+
import { UiMain } from '@teambit/ui';
|
|
16
|
+
export interface CloudWorkspaceConfig {
|
|
17
|
+
cloudDomain: string;
|
|
18
|
+
cloudHubDomain: string;
|
|
19
|
+
cloudApi: string;
|
|
20
|
+
cloudGraphQL: string;
|
|
21
|
+
loginDomain: string;
|
|
22
|
+
analyticsDomain: string;
|
|
23
|
+
registryUrl: string;
|
|
24
|
+
cloudExporterUrl: string;
|
|
25
|
+
cloudHubName: string;
|
|
26
|
+
loginPort?: number;
|
|
27
|
+
}
|
|
28
|
+
type CloudAuthListener = {
|
|
29
|
+
port: number;
|
|
30
|
+
server?: http.Server;
|
|
31
|
+
username?: string | null;
|
|
32
|
+
clientId?: string;
|
|
33
|
+
expressApp?: Express | null;
|
|
34
|
+
};
|
|
35
|
+
type CloudOrganization = {
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
};
|
|
39
|
+
export type OnSuccessLogin = ({ username, token, npmrcUpdateResult, }: {
|
|
40
|
+
username?: string;
|
|
41
|
+
token?: string;
|
|
42
|
+
npmrcUpdateResult?: NpmConfigUpdateResult;
|
|
43
|
+
}) => void;
|
|
44
|
+
export type OnSuccessLoginSlot = SlotRegistry<OnSuccessLogin>;
|
|
45
|
+
export type NpmConfigUpdateResult = {
|
|
46
|
+
conflicts?: {
|
|
47
|
+
original: string;
|
|
48
|
+
modifications: string;
|
|
49
|
+
}[];
|
|
50
|
+
configUpdates?: string;
|
|
51
|
+
error?: Error;
|
|
52
|
+
};
|
|
53
|
+
export declare class CloudMain {
|
|
54
|
+
private config;
|
|
55
|
+
logger: Logger;
|
|
56
|
+
express: ExpressMain;
|
|
57
|
+
workspace: Workspace;
|
|
58
|
+
scope: ScopeMain;
|
|
59
|
+
globalConfig: GlobalConfigMain;
|
|
60
|
+
onSuccessLoginSlot: OnSuccessLoginSlot;
|
|
61
|
+
static ERROR_RESPONSE: number;
|
|
62
|
+
static DEFAULT_PORT: number;
|
|
63
|
+
static REDIRECT: number;
|
|
64
|
+
static GRAPHQL_ENDPOINT: string;
|
|
65
|
+
private authListenerByPort;
|
|
66
|
+
private REDIRECT_URL?;
|
|
67
|
+
constructor(config: CloudWorkspaceConfig, logger: Logger, express: ExpressMain, workspace: Workspace, scope: ScopeMain, globalConfig: GlobalConfigMain, onSuccessLoginSlot: OnSuccessLoginSlot);
|
|
68
|
+
getNpmConfig(): Record<string, string>;
|
|
69
|
+
generateNpmrc({ dryRun, force }?: {
|
|
70
|
+
dryRun?: boolean;
|
|
71
|
+
force?: boolean;
|
|
72
|
+
}): Promise<{
|
|
73
|
+
conflicts?: {
|
|
74
|
+
original: string;
|
|
75
|
+
modifications: string;
|
|
76
|
+
}[];
|
|
77
|
+
configUpdates?: string;
|
|
78
|
+
}>;
|
|
79
|
+
detectConfigConflicts({ newConfigs, registryDomain, }: {
|
|
80
|
+
newConfigs: string;
|
|
81
|
+
registryDomain: string;
|
|
82
|
+
}): {
|
|
83
|
+
original: string;
|
|
84
|
+
modifications: string;
|
|
85
|
+
}[];
|
|
86
|
+
updateNpmConfig({ authToken, username, dryRun, force, }: {
|
|
87
|
+
authToken: string;
|
|
88
|
+
username: string;
|
|
89
|
+
dryRun?: boolean;
|
|
90
|
+
force?: boolean;
|
|
91
|
+
}): Promise<{
|
|
92
|
+
conflicts?: {
|
|
93
|
+
original: string;
|
|
94
|
+
modifications: string;
|
|
95
|
+
}[];
|
|
96
|
+
configUpdates?: string;
|
|
97
|
+
}>;
|
|
98
|
+
setupAuthListener({ port: portFromParams, clientId, skipConfigUpdate, }?: {
|
|
99
|
+
port?: number;
|
|
100
|
+
clientId?: string;
|
|
101
|
+
skipConfigUpdate?: boolean;
|
|
102
|
+
}): Promise<CloudAuthListener | null>;
|
|
103
|
+
registerOnSuccessLogin(onSuccessLoginFn: OnSuccessLogin): this;
|
|
104
|
+
getCloudDomain(): string;
|
|
105
|
+
getCloudHubDomain(): string;
|
|
106
|
+
getCloudApi(): string;
|
|
107
|
+
getCloudGraphQL(): string;
|
|
108
|
+
getLoginDomain(): string;
|
|
109
|
+
getAnalyticsDomain(): string;
|
|
110
|
+
getRegistryUrl(): string;
|
|
111
|
+
getCloudExporterUrl(): string;
|
|
112
|
+
getHubName(): string;
|
|
113
|
+
getLoginPort(): number;
|
|
114
|
+
isLoggedIn(): boolean;
|
|
115
|
+
getAuthToken(): string | null;
|
|
116
|
+
getAuthHeader(): {
|
|
117
|
+
Authorization: string;
|
|
118
|
+
};
|
|
119
|
+
getUsername(): string | undefined;
|
|
120
|
+
getLoginUrl({ redirectUrl, machineName, cloudDomain, port: portFromParams, }?: {
|
|
121
|
+
redirectUrl?: string;
|
|
122
|
+
machineName?: string;
|
|
123
|
+
cloudDomain?: string;
|
|
124
|
+
port?: string;
|
|
125
|
+
}): Promise<string | null>;
|
|
126
|
+
logout(): void;
|
|
127
|
+
whoami(): Promise<string | undefined>;
|
|
128
|
+
login(port?: string, suppressBrowserLaunch?: boolean, machineName?: string, cloudDomain?: string, redirectUrl?: string, skipConfigUpdate?: boolean): Promise<{
|
|
129
|
+
isAlreadyLoggedIn?: boolean;
|
|
130
|
+
username?: string;
|
|
131
|
+
token?: string;
|
|
132
|
+
npmrcUpdateResult?: NpmConfigUpdateResult;
|
|
133
|
+
} | null>;
|
|
134
|
+
static GET_SCOPES: string;
|
|
135
|
+
static GET_CURRENT_USER: string;
|
|
136
|
+
static GET_USER_ORGANIZATIONS: string;
|
|
137
|
+
static PRESET_ORGS: string[];
|
|
138
|
+
getCloudScopes(scopes: string[]): Promise<ScopeDescriptor[]>;
|
|
139
|
+
getCurrentUser(): Promise<CloudUser | null>;
|
|
140
|
+
getUserOrganizations(): Promise<CloudOrganization[] | null>;
|
|
141
|
+
fetchFromSymphonyViaGQL<T>(query: string, variables?: Record<string, any>): Promise<T | null>;
|
|
142
|
+
static slots: ((registerFn: () => string) => SlotRegistry<OnSuccessLogin>)[];
|
|
143
|
+
static dependencies: import("@teambit/harmony").Aspect[];
|
|
144
|
+
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
145
|
+
static defaultConfig: CloudWorkspaceConfig;
|
|
146
|
+
static provider([loggerMain, graphql, express, workspace, scope, globalConfig, cli, ui]: [
|
|
147
|
+
LoggerMain,
|
|
148
|
+
GraphqlMain,
|
|
149
|
+
ExpressMain,
|
|
150
|
+
Workspace,
|
|
151
|
+
ScopeMain,
|
|
152
|
+
GlobalConfigMain,
|
|
153
|
+
CLIMain,
|
|
154
|
+
UiMain
|
|
155
|
+
], config: CloudWorkspaceConfig, [onSuccessLoginSlot]: [OnSuccessLoginSlot]): Promise<CloudMain>;
|
|
156
|
+
}
|
|
157
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UserBarItem, UserBarItemSlot, UserBarSection, UserBarSectionSlot } from '@teambit/cloud.ui.user-bar';
|
|
2
|
+
import { LanesUI } from '@teambit/lanes';
|
|
3
|
+
import { WorkspaceUI } from '@teambit/workspace';
|
|
4
|
+
import { ComponentUI } from '@teambit/component';
|
|
5
|
+
export declare class CloudUI {
|
|
6
|
+
private userBarSectionSlot;
|
|
7
|
+
private userBarItemSlot;
|
|
8
|
+
constructor(userBarSectionSlot: UserBarSectionSlot, userBarItemSlot: UserBarItemSlot);
|
|
9
|
+
/**
|
|
10
|
+
* register a new user bar item.
|
|
11
|
+
*/
|
|
12
|
+
registerUserBarItem(userBarItem: UserBarItem[]): this;
|
|
13
|
+
/**
|
|
14
|
+
* register a new user bar section
|
|
15
|
+
*/
|
|
16
|
+
registerUserBarSection(sections: UserBarSection[]): this;
|
|
17
|
+
/**
|
|
18
|
+
* list user bar items.
|
|
19
|
+
*/
|
|
20
|
+
listUserBarItems(): UserBarItem[];
|
|
21
|
+
/**
|
|
22
|
+
* list all user bar sections.
|
|
23
|
+
*/
|
|
24
|
+
listUserBarSections(): UserBarSection[];
|
|
25
|
+
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
26
|
+
static dependencies: import("@teambit/harmony").Aspect[];
|
|
27
|
+
static slots: (((registerFn: () => string) => import("@teambit/harmony").SlotRegistry<UserBarItem[]>) | ((registerFn: () => string) => import("@teambit/harmony").SlotRegistry<UserBarSection[]>))[];
|
|
28
|
+
static provider([workspace, lanes, component]: [WorkspaceUI, LanesUI, ComponentUI], _: any, [userBarItemSlot, userBarSectionSlot]: [UserBarItemSlot, UserBarSectionSlot]): Promise<CloudUI>;
|
|
29
|
+
}
|
|
30
|
+
export default CloudUI;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Command, CommandOptions } from '@teambit/cli';
|
|
2
|
+
import { CloudMain } from './cloud.main.runtime';
|
|
3
|
+
export declare class LoginCmd implements Command {
|
|
4
|
+
private cloud;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
group: string;
|
|
8
|
+
alias: string;
|
|
9
|
+
options: CommandOptions;
|
|
10
|
+
loader: boolean;
|
|
11
|
+
remoteOp: boolean;
|
|
12
|
+
skipWorkspace: boolean;
|
|
13
|
+
private port?;
|
|
14
|
+
constructor(cloud: CloudMain, _port?: number);
|
|
15
|
+
report([]: Iterable<any>, // eslint-disable-line no-empty-pattern
|
|
16
|
+
{ cloudDomain, port, suppressBrowserLaunch, noBrowser, machineName, skipConfigUpdate, refreshToken, }: {
|
|
17
|
+
cloudDomain?: string;
|
|
18
|
+
port: string;
|
|
19
|
+
suppressBrowserLaunch?: boolean;
|
|
20
|
+
noBrowser?: boolean;
|
|
21
|
+
machineName?: string;
|
|
22
|
+
skipConfigUpdate?: boolean;
|
|
23
|
+
refreshToken?: boolean;
|
|
24
|
+
}): Promise<string>;
|
|
25
|
+
json([]: Iterable<any>, // eslint-disable-line no-empty-pattern,
|
|
26
|
+
{ cloudDomain, port, suppressBrowserLaunch, noBrowser, machineName, skipConfigUpdate, }: {
|
|
27
|
+
cloudDomain?: string;
|
|
28
|
+
port: string;
|
|
29
|
+
suppressBrowserLaunch?: boolean;
|
|
30
|
+
noBrowser?: boolean;
|
|
31
|
+
machineName?: string;
|
|
32
|
+
skipConfigUpdate?: boolean;
|
|
33
|
+
}): Promise<{
|
|
34
|
+
username?: string;
|
|
35
|
+
token?: string;
|
|
36
|
+
successfullyUpdatedNpmrc?: boolean;
|
|
37
|
+
}>;
|
|
38
|
+
handleNpmrcConflicts(conflicts: any): Promise<string>;
|
|
39
|
+
getNpmrcUpdateMessage(error: any): string;
|
|
40
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command } from '@teambit/cli';
|
|
2
|
+
import { CloudMain } from './cloud.main.runtime';
|
|
3
|
+
export declare class LogoutCmd implements Command {
|
|
4
|
+
private cloud;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
group: string;
|
|
8
|
+
alias: string;
|
|
9
|
+
options: never[];
|
|
10
|
+
loader: boolean;
|
|
11
|
+
skipWorkspace: boolean;
|
|
12
|
+
constructor(cloud: CloudMain);
|
|
13
|
+
report(): Promise<string>;
|
|
14
|
+
json(): Promise<{
|
|
15
|
+
logout: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Command, CommandOptions, Flags } from '@teambit/cli';
|
|
2
|
+
import { CloudMain } from './cloud.main.runtime';
|
|
3
|
+
export declare class NpmrcGenerateCmd implements Command {
|
|
4
|
+
private cloud;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
group: string;
|
|
8
|
+
alias: string;
|
|
9
|
+
options: CommandOptions;
|
|
10
|
+
skipWorkspace: boolean;
|
|
11
|
+
private port?;
|
|
12
|
+
constructor(cloud: CloudMain, _port?: number);
|
|
13
|
+
report(_: any, flags: Flags): Promise<string>;
|
|
14
|
+
json(): Promise<{
|
|
15
|
+
config: {
|
|
16
|
+
conflicts?: {
|
|
17
|
+
original: string;
|
|
18
|
+
modifications: string;
|
|
19
|
+
}[] | undefined;
|
|
20
|
+
configUpdates?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
}>;
|
|
23
|
+
extractConflictDetails(conflicts: any): any;
|
|
24
|
+
handleNpmrcConflicts(conflicts: any): Promise<string>;
|
|
25
|
+
}
|
|
26
|
+
export declare class NpmrcCmd implements Command {
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
group: string;
|
|
30
|
+
alias: string;
|
|
31
|
+
options: never[];
|
|
32
|
+
loader: boolean;
|
|
33
|
+
skipWorkspace: boolean;
|
|
34
|
+
commands: Command[];
|
|
35
|
+
report([unrecognizedSubcommand]: [string]): Promise<string>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command } from '@teambit/cli';
|
|
2
|
+
import { CloudMain } from './cloud.main.runtime';
|
|
3
|
+
export declare class WhoamiCmd implements Command {
|
|
4
|
+
private cloud;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
group: string;
|
|
8
|
+
alias: string;
|
|
9
|
+
options: never[];
|
|
10
|
+
loader: boolean;
|
|
11
|
+
skipWorkspace: boolean;
|
|
12
|
+
constructor(cloud: CloudMain);
|
|
13
|
+
report(): Promise<string>;
|
|
14
|
+
json(): Promise<{
|
|
15
|
+
whoami: string | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/cloud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.506",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/cloud/cloud",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.cloud",
|
|
8
8
|
"name": "cloud",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.506"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"@teambit/scopes.scope-descriptor": "0.0.24",
|
|
21
21
|
"@teambit/scopes.scope-id": "0.0.7",
|
|
22
22
|
"@teambit/design.controls.menu": "0.0.1",
|
|
23
|
-
"@teambit/graphql": "1.0.
|
|
24
|
-
"@teambit/cli": "0.0.
|
|
23
|
+
"@teambit/graphql": "1.0.230",
|
|
24
|
+
"@teambit/cli": "0.0.862",
|
|
25
25
|
"@teambit/cloud.models.cloud-scope": "0.0.3",
|
|
26
26
|
"@teambit/cloud.models.cloud-user": "0.0.5",
|
|
27
|
-
"@teambit/express": "0.0.
|
|
28
|
-
"@teambit/global-config": "0.0.
|
|
29
|
-
"@teambit/logger": "0.0.
|
|
30
|
-
"@teambit/scope": "1.0.
|
|
31
|
-
"@teambit/ui": "1.0.
|
|
32
|
-
"@teambit/workspace": "1.0.
|
|
27
|
+
"@teambit/express": "0.0.961",
|
|
28
|
+
"@teambit/global-config": "0.0.865",
|
|
29
|
+
"@teambit/logger": "0.0.955",
|
|
30
|
+
"@teambit/scope": "1.0.230",
|
|
31
|
+
"@teambit/ui": "1.0.230",
|
|
32
|
+
"@teambit/workspace": "1.0.230",
|
|
33
33
|
"@teambit/cloud.ui.user-bar": "0.0.7",
|
|
34
|
-
"@teambit/component": "1.0.
|
|
35
|
-
"@teambit/lanes": "1.0.
|
|
34
|
+
"@teambit/component": "1.0.230",
|
|
35
|
+
"@teambit/lanes": "1.0.230"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/express": "4.17.13",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@types/lodash": "4.14.165",
|
|
41
41
|
"@types/mocha": "9.1.0",
|
|
42
42
|
"chai": "4.3.0",
|
|
43
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
43
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.33"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "^17.0.0 || ^18.0.0",
|
package/tsconfig.json
CHANGED
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"emitDeclarationOnly": true,
|
|
21
21
|
"strict": true,
|
|
22
22
|
"strictPropertyInitialization": false,
|
|
23
|
-
"noImplicitAny": false
|
|
24
|
-
"composite": true
|
|
23
|
+
"noImplicitAny": false
|
|
25
24
|
},
|
|
26
25
|
"exclude": [
|
|
27
26
|
"artifacts",
|
|
@@ -36,37 +35,5 @@
|
|
|
36
35
|
"include": [
|
|
37
36
|
"**/*",
|
|
38
37
|
"**/*.json"
|
|
39
|
-
],
|
|
40
|
-
"references": [
|
|
41
|
-
{
|
|
42
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.228"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.861"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_express@0.0.960"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_global-config@0.0.864"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_logger@0.0.954"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_scope@1.0.228"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@1.0.228"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.228"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.228"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@1.0.228"
|
|
70
|
-
}
|
|
71
38
|
]
|
|
72
39
|
}
|
|
File without changes
|