@microsoft/teamsfx-core 1.3.0 → 1.3.1-alpha.c8083c82.0

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.
Files changed (665) hide show
  1. package/build/common/constants.d.ts +9 -0
  2. package/build/common/constants.d.ts.map +1 -1
  3. package/build/common/constants.js +11 -1
  4. package/build/common/constants.js.map +1 -1
  5. package/build/common/deps-checker/depsLogger.d.ts +10 -0
  6. package/build/common/deps-checker/depsLogger.d.ts.map +1 -1
  7. package/build/common/deps-checker/depsLogger.js +26 -0
  8. package/build/common/deps-checker/depsLogger.js.map +1 -1
  9. package/build/common/deps-checker/depsManager.d.ts +7 -4
  10. package/build/common/deps-checker/depsManager.d.ts.map +1 -1
  11. package/build/common/deps-checker/depsManager.js +17 -10
  12. package/build/common/deps-checker/depsManager.js.map +1 -1
  13. package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
  14. package/build/common/deps-checker/internal/nodeChecker.js +2 -0
  15. package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
  16. package/build/common/local/constants.d.ts +0 -42
  17. package/build/common/local/constants.d.ts.map +1 -1
  18. package/build/common/local/constants.js +1 -43
  19. package/build/common/local/constants.js.map +1 -1
  20. package/build/common/local/localCertificateManager.d.ts +2 -1
  21. package/build/common/local/localCertificateManager.d.ts.map +1 -1
  22. package/build/common/local/localCertificateManager.js +24 -15
  23. package/build/common/local/localCertificateManager.js.map +1 -1
  24. package/build/common/local/localEnvManager.d.ts +2 -1
  25. package/build/common/local/localEnvManager.d.ts.map +1 -1
  26. package/build/common/local/localEnvManager.js +5 -4
  27. package/build/common/local/localEnvManager.js.map +1 -1
  28. package/build/common/local/localEnvProvider.js +1 -1
  29. package/build/common/local/localSettingsHelper.d.ts.map +1 -1
  30. package/build/common/local/localSettingsHelper.js +17 -16
  31. package/build/common/local/localSettingsHelper.js.map +1 -1
  32. package/build/common/local/portChecker.d.ts +2 -2
  33. package/build/common/local/portChecker.d.ts.map +1 -1
  34. package/build/common/local/portChecker.js +18 -5
  35. package/build/common/local/portChecker.js.map +1 -1
  36. package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
  37. package/build/common/local/projectSettingsHelper.js +3 -3
  38. package/build/common/local/projectSettingsHelper.js.map +1 -1
  39. package/build/common/local/taskDefinition.d.ts +0 -7
  40. package/build/common/local/taskDefinition.d.ts.map +1 -1
  41. package/build/common/local/taskDefinition.js +1 -51
  42. package/build/common/local/taskDefinition.js.map +1 -1
  43. package/build/common/localSettingsConstants.d.ts +2 -6
  44. package/build/common/localSettingsConstants.d.ts.map +1 -1
  45. package/build/common/localSettingsConstants.js +3 -7
  46. package/build/common/localSettingsConstants.js.map +1 -1
  47. package/build/common/localSettingsProvider.d.ts +3 -3
  48. package/build/common/localSettingsProvider.d.ts.map +1 -1
  49. package/build/common/localSettingsProvider.js +15 -14
  50. package/build/common/localSettingsProvider.js.map +1 -1
  51. package/build/common/permissionInterface.d.ts +1 -3
  52. package/build/common/permissionInterface.d.ts.map +1 -1
  53. package/build/common/permissionInterface.js +0 -2
  54. package/build/common/permissionInterface.js.map +1 -1
  55. package/build/common/projectSettingsValidator.d.ts +0 -1
  56. package/build/common/projectSettingsValidator.d.ts.map +1 -1
  57. package/build/common/projectSettingsValidator.js +2 -16
  58. package/build/common/projectSettingsValidator.js.map +1 -1
  59. package/build/common/telemetry.d.ts +3 -1
  60. package/build/common/telemetry.d.ts.map +1 -1
  61. package/build/common/telemetry.js +2 -0
  62. package/build/common/telemetry.js.map +1 -1
  63. package/build/common/template-utils/templatesActions.js +2 -2
  64. package/build/common/template-utils/templatesUtils.d.ts +2 -1
  65. package/build/common/template-utils/templatesUtils.d.ts.map +1 -1
  66. package/build/common/template-utils/templatesUtils.js +25 -7
  67. package/build/common/template-utils/templatesUtils.js.map +1 -1
  68. package/build/common/templates-config.json +2 -2
  69. package/build/common/tools.d.ts +0 -4
  70. package/build/common/tools.d.ts.map +1 -1
  71. package/build/common/tools.js +1 -8
  72. package/build/common/tools.js.map +1 -1
  73. package/build/core/downloadSample.js +1 -1
  74. package/build/core/downloadSample.js.map +1 -1
  75. package/build/core/environment.d.ts +4 -4
  76. package/build/core/environment.d.ts.map +1 -1
  77. package/build/core/environment.js +23 -2
  78. package/build/core/environment.js.map +1 -1
  79. package/build/core/error.d.ts +5 -0
  80. package/build/core/error.d.ts.map +1 -1
  81. package/build/core/error.js +15 -1
  82. package/build/core/error.js.map +1 -1
  83. package/build/core/index.d.ts +9 -18
  84. package/build/core/index.d.ts.map +1 -1
  85. package/build/core/index.js +151 -262
  86. package/build/core/index.js.map +1 -1
  87. package/build/core/middleware/CommonErrorHandlerMW.d.ts.map +1 -1
  88. package/build/core/middleware/CommonErrorHandlerMW.js +3 -0
  89. package/build/core/middleware/CommonErrorHandlerMW.js.map +1 -1
  90. package/build/core/middleware/envInfoLoader.d.ts.map +1 -1
  91. package/build/core/middleware/envInfoLoader.js +2 -1
  92. package/build/core/middleware/envInfoLoader.js.map +1 -1
  93. package/build/core/middleware/envInfoWriter.js +5 -6
  94. package/build/core/middleware/envInfoWriter.js.map +1 -1
  95. package/build/core/middleware/localSettingsLoader.d.ts.map +1 -1
  96. package/build/core/middleware/localSettingsLoader.js +27 -22
  97. package/build/core/middleware/localSettingsLoader.js.map +1 -1
  98. package/build/core/middleware/projectMigrator.d.ts.map +1 -1
  99. package/build/core/middleware/projectMigrator.js +2 -6
  100. package/build/core/middleware/projectMigrator.js.map +1 -1
  101. package/build/core/middleware/projectSettingsLoader.d.ts +1 -0
  102. package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
  103. package/build/core/middleware/projectSettingsLoader.js +8 -4
  104. package/build/core/middleware/projectSettingsLoader.js.map +1 -1
  105. package/build/core/middleware/projectSettingsWriter.d.ts.map +1 -1
  106. package/build/core/middleware/projectSettingsWriter.js +6 -4
  107. package/build/core/middleware/projectSettingsWriter.js.map +1 -1
  108. package/build/core/middleware/questionModel.d.ts +6 -8
  109. package/build/core/middleware/questionModel.d.ts.map +1 -1
  110. package/build/core/middleware/questionModel.js +20 -44
  111. package/build/core/middleware/questionModel.js.map +1 -1
  112. package/build/core/middleware/solutionLoader.d.ts.map +1 -1
  113. package/build/core/middleware/solutionLoader.js +5 -3
  114. package/build/core/middleware/solutionLoader.js.map +1 -1
  115. package/build/core/middleware/solutionLoaderV3.js +3 -2
  116. package/build/core/middleware/solutionLoaderV3.js.map +1 -1
  117. package/build/core/pvm/broker.d.ts +24 -0
  118. package/build/core/pvm/broker.d.ts.map +1 -0
  119. package/build/core/pvm/broker.js +93 -0
  120. package/build/core/pvm/broker.js.map +1 -0
  121. package/build/core/pvm/constant.d.ts +11 -0
  122. package/build/core/pvm/constant.d.ts.map +1 -0
  123. package/build/core/pvm/constant.js +14 -0
  124. package/build/core/pvm/constant.js.map +1 -0
  125. package/build/core/pvm/depot.d.ts +43 -0
  126. package/build/core/pvm/depot.d.ts.map +1 -0
  127. package/build/core/pvm/depot.js +243 -0
  128. package/build/core/pvm/depot.js.map +1 -0
  129. package/build/core/pvm/pvm.d.ts +49 -0
  130. package/build/core/pvm/pvm.d.ts.map +1 -0
  131. package/build/core/pvm/pvm.js +82 -0
  132. package/build/core/pvm/pvm.js.map +1 -0
  133. package/build/core/pvm/type.d.ts +11 -0
  134. package/build/core/pvm/type.d.ts.map +1 -0
  135. package/build/{plugins/resource/apim/interfaces/IApimResource.js → core/pvm/type.js} +1 -1
  136. package/build/core/pvm/type.js.map +1 -0
  137. package/build/core/pvm/utility.d.ts +2 -0
  138. package/build/core/pvm/utility.d.ts.map +1 -0
  139. package/build/core/pvm/utility.js +10 -0
  140. package/build/core/pvm/utility.js.map +1 -0
  141. package/build/core/tools.d.ts +1 -2
  142. package/build/core/tools.d.ts.map +1 -1
  143. package/build/core/tools.js +1 -25
  144. package/build/core/tools.js.map +1 -1
  145. package/build/core/utils.d.ts +4 -0
  146. package/build/core/utils.d.ts.map +1 -0
  147. package/build/core/utils.js +14 -0
  148. package/build/core/utils.js.map +1 -0
  149. package/build/plugins/resource/aad/aadAppClient.d.ts +8 -8
  150. package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
  151. package/build/plugins/resource/aad/aadAppClient.js +29 -29
  152. package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
  153. package/build/plugins/resource/aad/index.d.ts +1 -0
  154. package/build/plugins/resource/aad/index.d.ts.map +1 -1
  155. package/build/plugins/resource/aad/index.js +6 -1
  156. package/build/plugins/resource/aad/index.js.map +1 -1
  157. package/build/plugins/resource/aad/plugin.d.ts +4 -3
  158. package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
  159. package/build/plugins/resource/aad/plugin.js +13 -13
  160. package/build/plugins/resource/aad/plugin.js.map +1 -1
  161. package/build/plugins/resource/aad/utils/common.d.ts +6 -4
  162. package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
  163. package/build/plugins/resource/aad/utils/common.js +60 -21
  164. package/build/plugins/resource/aad/utils/common.js.map +1 -1
  165. package/build/plugins/resource/aad/utils/configs.d.ts +9 -1
  166. package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
  167. package/build/plugins/resource/aad/utils/configs.js +204 -0
  168. package/build/plugins/resource/aad/utils/configs.js.map +1 -1
  169. package/build/plugins/resource/aad/utils/telemetry.d.ts +0 -1
  170. package/build/plugins/resource/aad/utils/telemetry.d.ts.map +1 -1
  171. package/build/plugins/resource/aad/utils/telemetry.js +10 -17
  172. package/build/plugins/resource/aad/utils/telemetry.js.map +1 -1
  173. package/build/plugins/resource/aad/utils/tokenProvider.d.ts +6 -2
  174. package/build/plugins/resource/aad/utils/tokenProvider.d.ts.map +1 -1
  175. package/build/plugins/resource/aad/utils/tokenProvider.js +11 -11
  176. package/build/plugins/resource/aad/utils/tokenProvider.js.map +1 -1
  177. package/build/plugins/resource/aad/v2/index.d.ts +10 -11
  178. package/build/plugins/resource/aad/v2/index.d.ts.map +1 -1
  179. package/build/plugins/resource/aad/v2/index.js.map +1 -1
  180. package/build/plugins/resource/aad/v3/index.d.ts +20 -0
  181. package/build/plugins/resource/aad/v3/index.d.ts.map +1 -0
  182. package/build/plugins/resource/aad/v3/index.js +213 -0
  183. package/build/plugins/resource/aad/v3/index.js.map +1 -0
  184. package/build/plugins/resource/apim/answer.d.ts +0 -6
  185. package/build/plugins/resource/apim/answer.d.ts.map +1 -1
  186. package/build/plugins/resource/apim/answer.js +6 -45
  187. package/build/plugins/resource/apim/answer.js.map +1 -1
  188. package/build/plugins/resource/apim/config.d.ts +5 -19
  189. package/build/plugins/resource/apim/config.d.ts.map +1 -1
  190. package/build/plugins/resource/apim/config.js +9 -35
  191. package/build/plugins/resource/apim/config.js.map +1 -1
  192. package/build/plugins/resource/apim/constants.d.ts +1 -30
  193. package/build/plugins/resource/apim/constants.d.ts.map +1 -1
  194. package/build/plugins/resource/apim/constants.js +37 -74
  195. package/build/plugins/resource/apim/constants.js.map +1 -1
  196. package/build/plugins/resource/apim/error.d.ts +0 -1
  197. package/build/plugins/resource/apim/error.d.ts.map +1 -1
  198. package/build/plugins/resource/apim/error.js +1 -6
  199. package/build/plugins/resource/apim/error.js.map +1 -1
  200. package/build/plugins/resource/apim/factory.d.ts +12 -12
  201. package/build/plugins/resource/apim/factory.d.ts.map +1 -1
  202. package/build/plugins/resource/apim/factory.js +38 -42
  203. package/build/plugins/resource/apim/factory.js.map +1 -1
  204. package/build/plugins/resource/apim/index.d.ts +1 -1
  205. package/build/plugins/resource/apim/index.d.ts.map +1 -1
  206. package/build/plugins/resource/apim/index.js +17 -39
  207. package/build/plugins/resource/apim/index.js.map +1 -1
  208. package/build/plugins/resource/apim/managers/apimManager.d.ts +2 -3
  209. package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
  210. package/build/plugins/resource/apim/managers/apimManager.js +2 -3
  211. package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
  212. package/build/plugins/resource/apim/managers/questionManager.d.ts +7 -13
  213. package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
  214. package/build/plugins/resource/apim/managers/questionManager.js +17 -32
  215. package/build/plugins/resource/apim/managers/questionManager.js.map +1 -1
  216. package/build/plugins/resource/apim/questions/cliQuestion.d.ts +0 -8
  217. package/build/plugins/resource/apim/questions/cliQuestion.d.ts.map +1 -1
  218. package/build/plugins/resource/apim/questions/cliQuestion.js +1 -33
  219. package/build/plugins/resource/apim/questions/cliQuestion.js.map +1 -1
  220. package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts +8 -14
  221. package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
  222. package/build/plugins/resource/apim/questions/vscodeQuestion.js +39 -79
  223. package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
  224. package/build/plugins/resource/apim/services/apimService.d.ts +1 -12
  225. package/build/plugins/resource/apim/services/apimService.d.ts.map +1 -1
  226. package/build/plugins/resource/apim/services/apimService.js +0 -112
  227. package/build/plugins/resource/apim/services/apimService.js.map +1 -1
  228. package/build/plugins/resource/apim/utils/commonUtils.d.ts +1 -1
  229. package/build/plugins/resource/apim/utils/commonUtils.js +3 -3
  230. package/build/plugins/resource/apim/utils/namingRules.d.ts +0 -4
  231. package/build/plugins/resource/apim/utils/namingRules.d.ts.map +1 -1
  232. package/build/plugins/resource/apim/utils/namingRules.js +0 -32
  233. package/build/plugins/resource/apim/utils/namingRules.js.map +1 -1
  234. package/build/plugins/resource/apim/utils/progressBar.d.ts +2 -2
  235. package/build/plugins/resource/apim/utils/progressBar.d.ts.map +1 -1
  236. package/build/plugins/resource/apim/utils/progressBar.js +3 -3
  237. package/build/plugins/resource/apim/utils/progressBar.js.map +1 -1
  238. package/build/plugins/resource/apim/utils/telemetry.d.ts +2 -2
  239. package/build/plugins/resource/apim/utils/telemetry.d.ts.map +1 -1
  240. package/build/plugins/resource/apim/utils/telemetry.js +4 -5
  241. package/build/plugins/resource/apim/utils/telemetry.js.map +1 -1
  242. package/build/plugins/resource/apim/v2/index.d.ts +3 -5
  243. package/build/plugins/resource/apim/v2/index.d.ts.map +1 -1
  244. package/build/plugins/resource/apim/v2/index.js +0 -6
  245. package/build/plugins/resource/apim/v2/index.js.map +1 -1
  246. package/build/plugins/resource/apim/v3/index.d.ts +15 -0
  247. package/build/plugins/resource/apim/v3/index.d.ts.map +1 -0
  248. package/build/plugins/resource/apim/v3/index.js +192 -0
  249. package/build/plugins/resource/apim/v3/index.js.map +1 -0
  250. package/build/plugins/resource/appstudio/appStudio.d.ts +3 -0
  251. package/build/plugins/resource/appstudio/appStudio.d.ts.map +1 -1
  252. package/build/plugins/resource/appstudio/appStudio.js +3 -0
  253. package/build/plugins/resource/appstudio/appStudio.js.map +1 -1
  254. package/build/plugins/resource/appstudio/constants.d.ts +4 -0
  255. package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
  256. package/build/plugins/resource/appstudio/constants.js +45 -1
  257. package/build/plugins/resource/appstudio/constants.js.map +1 -1
  258. package/build/plugins/resource/appstudio/errors.d.ts +4 -0
  259. package/build/plugins/resource/appstudio/errors.d.ts.map +1 -1
  260. package/build/plugins/resource/appstudio/errors.js +4 -0
  261. package/build/plugins/resource/appstudio/errors.js.map +1 -1
  262. package/build/plugins/resource/appstudio/manifestTemplate.d.ts +3 -27
  263. package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
  264. package/build/plugins/resource/appstudio/manifestTemplate.js +46 -13
  265. package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
  266. package/build/plugins/resource/appstudio/plugin.d.ts +3 -0
  267. package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
  268. package/build/plugins/resource/appstudio/plugin.js +52 -14
  269. package/build/plugins/resource/appstudio/plugin.js.map +1 -1
  270. package/build/plugins/resource/appstudio/utils/telemetry.d.ts +8 -4
  271. package/build/plugins/resource/appstudio/utils/telemetry.d.ts.map +1 -1
  272. package/build/plugins/resource/appstudio/utils/telemetry.js +13 -12
  273. package/build/plugins/resource/appstudio/utils/telemetry.js.map +1 -1
  274. package/build/plugins/resource/appstudio/v2/index.d.ts +3 -3
  275. package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
  276. package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
  277. package/build/plugins/resource/appstudio/v3/index.d.ts +6 -26
  278. package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
  279. package/build/plugins/resource/appstudio/v3/index.js +37 -3
  280. package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
  281. package/build/plugins/resource/appstudio/v3/plugin.d.ts +8 -0
  282. package/build/plugins/resource/appstudio/v3/plugin.d.ts.map +1 -0
  283. package/build/plugins/resource/appstudio/v3/plugin.js +70 -0
  284. package/build/plugins/resource/appstudio/v3/plugin.js.map +1 -0
  285. package/build/plugins/resource/bot/dotnet/plugin.d.ts.map +1 -1
  286. package/build/plugins/resource/bot/dotnet/plugin.js +1 -1
  287. package/build/plugins/resource/bot/dotnet/plugin.js.map +1 -1
  288. package/build/plugins/resource/bot/enums/programmingLanguage.d.ts +2 -1
  289. package/build/plugins/resource/bot/enums/programmingLanguage.d.ts.map +1 -1
  290. package/build/plugins/resource/bot/enums/programmingLanguage.js +1 -0
  291. package/build/plugins/resource/bot/enums/programmingLanguage.js.map +1 -1
  292. package/build/plugins/resource/bot/index.js +3 -2
  293. package/build/plugins/resource/bot/index.js.map +1 -1
  294. package/build/plugins/resource/bot/v2/index.d.ts +3 -3
  295. package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
  296. package/build/plugins/resource/bot/v2/index.js.map +1 -1
  297. package/build/plugins/resource/frontend/dotnet/constants.d.ts +5 -0
  298. package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -1
  299. package/build/plugins/resource/frontend/dotnet/constants.js +7 -1
  300. package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -1
  301. package/build/plugins/resource/frontend/dotnet/enum.d.ts.map +1 -1
  302. package/build/plugins/resource/frontend/dotnet/enum.js +2 -0
  303. package/build/plugins/resource/frontend/dotnet/enum.js.map +1 -1
  304. package/build/plugins/resource/frontend/dotnet/ops/deploy.d.ts.map +1 -1
  305. package/build/plugins/resource/frontend/dotnet/ops/deploy.js +18 -3
  306. package/build/plugins/resource/frontend/dotnet/ops/deploy.js.map +1 -1
  307. package/build/plugins/resource/frontend/dotnet/ops/scaffold.d.ts +6 -0
  308. package/build/plugins/resource/frontend/dotnet/ops/scaffold.d.ts.map +1 -0
  309. package/build/plugins/resource/frontend/dotnet/ops/scaffold.js +55 -0
  310. package/build/plugins/resource/frontend/dotnet/ops/scaffold.js.map +1 -0
  311. package/build/plugins/resource/frontend/dotnet/plugin.d.ts +1 -3
  312. package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -1
  313. package/build/plugins/resource/frontend/dotnet/plugin.js +38 -19
  314. package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -1
  315. package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts +23 -6
  316. package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -1
  317. package/build/plugins/resource/frontend/dotnet/resources/messages.js +26 -7
  318. package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -1
  319. package/build/plugins/resource/frontend/dotnet/resources/steps.d.ts +3 -0
  320. package/build/plugins/resource/frontend/dotnet/resources/steps.d.ts.map +1 -0
  321. package/build/plugins/resource/frontend/dotnet/resources/steps.js +16 -0
  322. package/build/plugins/resource/frontend/dotnet/resources/steps.js.map +1 -0
  323. package/build/plugins/resource/frontend/dotnet/resources/templateInfo.d.ts +19 -0
  324. package/build/plugins/resource/frontend/dotnet/resources/templateInfo.d.ts.map +1 -0
  325. package/build/plugins/resource/frontend/dotnet/resources/templateInfo.js +42 -0
  326. package/build/plugins/resource/frontend/dotnet/resources/templateInfo.js.map +1 -0
  327. package/build/plugins/resource/frontend/index.d.ts +0 -1
  328. package/build/plugins/resource/frontend/index.d.ts.map +1 -1
  329. package/build/plugins/resource/frontend/index.js +4 -6
  330. package/build/plugins/resource/frontend/index.js.map +1 -1
  331. package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
  332. package/build/plugins/resource/frontend/ops/deploy.js +25 -24
  333. package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
  334. package/build/plugins/resource/frontend/ops/scaffold.d.ts +0 -10
  335. package/build/plugins/resource/frontend/ops/scaffold.d.ts.map +1 -1
  336. package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
  337. package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
  338. package/build/plugins/resource/frontend/plugin.js +15 -14
  339. package/build/plugins/resource/frontend/plugin.js.map +1 -1
  340. package/build/plugins/resource/frontend/resources/steps.d.ts +7 -0
  341. package/build/plugins/resource/frontend/resources/steps.d.ts.map +1 -0
  342. package/build/plugins/resource/frontend/resources/steps.js +41 -0
  343. package/build/plugins/resource/frontend/resources/steps.js.map +1 -0
  344. package/build/plugins/resource/frontend/resources/templateInfo.d.ts +4 -3
  345. package/build/plugins/resource/frontend/resources/templateInfo.d.ts.map +1 -1
  346. package/build/plugins/resource/frontend/resources/templateInfo.js +8 -7
  347. package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
  348. package/build/plugins/resource/frontend/utils/progress-helper.d.ts +9 -35
  349. package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
  350. package/build/plugins/resource/frontend/utils/progress-helper.js +9 -82
  351. package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
  352. package/build/plugins/resource/frontend/v2/index.d.ts +2 -3
  353. package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
  354. package/build/plugins/resource/frontend/v2/index.js +3 -4
  355. package/build/plugins/resource/frontend/v2/index.js.map +1 -1
  356. package/build/plugins/resource/frontend/v3/index.d.ts +15 -2
  357. package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -1
  358. package/build/plugins/resource/frontend/v3/index.js +268 -2
  359. package/build/plugins/resource/frontend/v3/index.js.map +1 -1
  360. package/build/plugins/resource/function/index.d.ts +1 -0
  361. package/build/plugins/resource/function/index.d.ts.map +1 -1
  362. package/build/plugins/resource/function/index.js +1 -0
  363. package/build/plugins/resource/function/index.js.map +1 -1
  364. package/build/plugins/resource/function/ops/deploy.d.ts +1 -2
  365. package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
  366. package/build/plugins/resource/function/ops/deploy.js +1 -1
  367. package/build/plugins/resource/function/ops/deploy.js.map +1 -1
  368. package/build/plugins/resource/function/plugin.js +2 -2
  369. package/build/plugins/resource/function/plugin.js.map +1 -1
  370. package/build/plugins/resource/function/resources/errors.d.ts +22 -1
  371. package/build/plugins/resource/function/resources/errors.d.ts.map +1 -1
  372. package/build/plugins/resource/function/resources/errors.js +32 -32
  373. package/build/plugins/resource/function/resources/errors.js.map +1 -1
  374. package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +2 -2
  375. package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -1
  376. package/build/plugins/resource/function/utils/depsChecker/funcHelper.js +3 -3
  377. package/build/plugins/resource/function/utils/depsChecker/funcHelper.js.map +1 -1
  378. package/build/plugins/resource/function/v2/index.d.ts +3 -3
  379. package/build/plugins/resource/function/v2/index.d.ts.map +1 -1
  380. package/build/plugins/resource/function/v2/index.js.map +1 -1
  381. package/build/plugins/resource/function/v3/error.d.ts +26 -0
  382. package/build/plugins/resource/function/v3/error.d.ts.map +1 -0
  383. package/build/plugins/resource/function/v3/error.js +69 -0
  384. package/build/plugins/resource/function/v3/error.js.map +1 -0
  385. package/build/plugins/resource/function/v3/index.d.ts +30 -0
  386. package/build/plugins/resource/function/v3/index.d.ts.map +1 -0
  387. package/build/plugins/resource/function/v3/index.js +388 -0
  388. package/build/plugins/resource/function/v3/index.js.map +1 -0
  389. package/build/plugins/resource/identity/index.d.ts +1 -0
  390. package/build/plugins/resource/identity/index.d.ts.map +1 -1
  391. package/build/plugins/resource/identity/index.js +1 -0
  392. package/build/plugins/resource/identity/index.js.map +1 -1
  393. package/build/plugins/resource/identity/v2/index.d.ts +3 -3
  394. package/build/plugins/resource/identity/v2/index.d.ts.map +1 -1
  395. package/build/plugins/resource/identity/v2/index.js.map +1 -1
  396. package/build/plugins/resource/identity/v3/index.d.ts +12 -0
  397. package/build/plugins/resource/identity/v3/index.d.ts.map +1 -0
  398. package/build/plugins/resource/identity/v3/index.js +89 -0
  399. package/build/plugins/resource/identity/v3/index.js.map +1 -0
  400. package/build/plugins/resource/keyvault/index.d.ts +1 -0
  401. package/build/plugins/resource/keyvault/index.d.ts.map +1 -1
  402. package/build/plugins/resource/keyvault/index.js +1 -0
  403. package/build/plugins/resource/keyvault/index.js.map +1 -1
  404. package/build/plugins/resource/keyvault/v3/index.d.ts +10 -0
  405. package/build/plugins/resource/keyvault/v3/index.d.ts.map +1 -0
  406. package/build/plugins/resource/keyvault/v3/index.js +90 -0
  407. package/build/plugins/resource/keyvault/v3/index.js.map +1 -0
  408. package/build/plugins/resource/localdebug/constants.d.ts +0 -1
  409. package/build/plugins/resource/localdebug/constants.d.ts.map +1 -1
  410. package/build/plugins/resource/localdebug/constants.js +0 -1
  411. package/build/plugins/resource/localdebug/constants.js.map +1 -1
  412. package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
  413. package/build/plugins/resource/localdebug/v2/index.js +1 -4
  414. package/build/plugins/resource/localdebug/v2/index.js.map +1 -1
  415. package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
  416. package/build/plugins/resource/simpleauth/plugin.js +2 -2
  417. package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
  418. package/build/plugins/resource/simpleauth/v2/index.d.ts +2 -2
  419. package/build/plugins/resource/simpleauth/v2/index.d.ts.map +1 -1
  420. package/build/plugins/resource/simpleauth/v2/index.js.map +1 -1
  421. package/build/plugins/resource/sql/constants.d.ts +0 -3
  422. package/build/plugins/resource/sql/constants.d.ts.map +1 -1
  423. package/build/plugins/resource/sql/constants.js +0 -3
  424. package/build/plugins/resource/sql/constants.js.map +1 -1
  425. package/build/plugins/resource/sql/errors.d.ts +0 -16
  426. package/build/plugins/resource/sql/errors.d.ts.map +1 -1
  427. package/build/plugins/resource/sql/errors.js +0 -16
  428. package/build/plugins/resource/sql/errors.js.map +1 -1
  429. package/build/plugins/resource/sql/index.d.ts +1 -0
  430. package/build/plugins/resource/sql/index.d.ts.map +1 -1
  431. package/build/plugins/resource/sql/index.js +2 -1
  432. package/build/plugins/resource/sql/index.js.map +1 -1
  433. package/build/plugins/resource/sql/managementClient.d.ts +5 -10
  434. package/build/plugins/resource/sql/managementClient.d.ts.map +1 -1
  435. package/build/plugins/resource/sql/managementClient.js +17 -65
  436. package/build/plugins/resource/sql/managementClient.js.map +1 -1
  437. package/build/plugins/resource/sql/plugin.d.ts +2 -3
  438. package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
  439. package/build/plugins/resource/sql/plugin.js +15 -69
  440. package/build/plugins/resource/sql/plugin.js.map +1 -1
  441. package/build/plugins/resource/sql/sqlClient.d.ts +3 -4
  442. package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
  443. package/build/plugins/resource/sql/sqlClient.js +6 -7
  444. package/build/plugins/resource/sql/sqlClient.js.map +1 -1
  445. package/build/plugins/resource/sql/utils/dialogUtils.d.ts +2 -8
  446. package/build/plugins/resource/sql/utils/dialogUtils.d.ts.map +1 -1
  447. package/build/plugins/resource/sql/utils/dialogUtils.js +3 -11
  448. package/build/plugins/resource/sql/utils/dialogUtils.js.map +1 -1
  449. package/build/plugins/resource/sql/utils/message.d.ts +0 -10
  450. package/build/plugins/resource/sql/utils/message.d.ts.map +1 -1
  451. package/build/plugins/resource/sql/utils/message.js +0 -10
  452. package/build/plugins/resource/sql/utils/message.js.map +1 -1
  453. package/build/plugins/resource/sql/utils/telemetryUtils.d.ts +3 -3
  454. package/build/plugins/resource/sql/utils/telemetryUtils.d.ts.map +1 -1
  455. package/build/plugins/resource/sql/utils/telemetryUtils.js +6 -7
  456. package/build/plugins/resource/sql/utils/telemetryUtils.js.map +1 -1
  457. package/build/plugins/resource/sql/v2/index.d.ts +4 -4
  458. package/build/plugins/resource/sql/v2/index.d.ts.map +1 -1
  459. package/build/plugins/resource/sql/v2/index.js.map +1 -1
  460. package/build/plugins/resource/sql/v3/index.d.ts +25 -0
  461. package/build/plugins/resource/sql/v3/index.d.ts.map +1 -0
  462. package/build/plugins/resource/sql/v3/index.js +297 -0
  463. package/build/plugins/resource/sql/v3/index.js.map +1 -0
  464. package/build/plugins/resource/utils4v2.d.ts +16 -20
  465. package/build/plugins/resource/utils4v2.d.ts.map +1 -1
  466. package/build/plugins/resource/utils4v2.js +9 -33
  467. package/build/plugins/resource/utils4v2.js.map +1 -1
  468. package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
  469. package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +5 -4
  470. package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +1 -1
  471. package/build/plugins/solution/fx-solution/arm.d.ts +3 -4
  472. package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
  473. package/build/plugins/solution/fx-solution/arm.js +117 -73
  474. package/build/plugins/solution/fx-solution/arm.js.map +1 -1
  475. package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
  476. package/build/plugins/solution/fx-solution/commonQuestions.js +0 -7
  477. package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
  478. package/build/plugins/solution/fx-solution/constants.d.ts +2 -4
  479. package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
  480. package/build/plugins/solution/fx-solution/constants.js +3 -5
  481. package/build/plugins/solution/fx-solution/constants.js.map +1 -1
  482. package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -1
  483. package/build/plugins/solution/fx-solution/debug/provisionLocal.js +2 -7
  484. package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
  485. package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
  486. package/build/plugins/solution/fx-solution/debug/scaffolding.js +18 -1
  487. package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
  488. package/build/plugins/solution/fx-solution/debug/util/tasks.d.ts.map +1 -1
  489. package/build/plugins/solution/fx-solution/debug/util/tasks.js +2 -4
  490. package/build/plugins/solution/fx-solution/debug/util/tasks.js.map +1 -1
  491. package/build/plugins/solution/fx-solution/debug/util/tasksNext.d.ts +2 -0
  492. package/build/plugins/solution/fx-solution/debug/util/tasksNext.d.ts.map +1 -0
  493. package/build/plugins/solution/fx-solution/debug/util/tasksNext.js +145 -0
  494. package/build/plugins/solution/fx-solution/debug/util/tasksNext.js.map +1 -0
  495. package/build/plugins/solution/fx-solution/solution.d.ts +2 -1
  496. package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
  497. package/build/plugins/solution/fx-solution/solution.js +33 -14
  498. package/build/plugins/solution/fx-solution/solution.js.map +1 -1
  499. package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts.map +1 -1
  500. package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.d.ts +3 -0
  501. package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.d.ts.map +1 -0
  502. package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.js +19 -0
  503. package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.js.map +1 -0
  504. package/build/plugins/solution/fx-solution/v2/checkPermission.d.ts.map +1 -1
  505. package/build/plugins/solution/fx-solution/v2/checkPermission.js +32 -14
  506. package/build/plugins/solution/fx-solution/v2/checkPermission.js.map +1 -1
  507. package/build/plugins/solution/fx-solution/v2/deploy.d.ts.map +1 -1
  508. package/build/plugins/solution/fx-solution/v2/deploy.js +11 -6
  509. package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
  510. package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +1 -1
  511. package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
  512. package/build/plugins/solution/fx-solution/v2/executeUserTask.js +31 -10
  513. package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
  514. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +2 -2
  515. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
  516. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +4 -5
  517. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
  518. package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
  519. package/build/plugins/solution/fx-solution/v2/getQuestions.js +32 -25
  520. package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
  521. package/build/plugins/solution/fx-solution/v2/grantPermission.d.ts.map +1 -1
  522. package/build/plugins/solution/fx-solution/v2/grantPermission.js +33 -15
  523. package/build/plugins/solution/fx-solution/v2/grantPermission.js.map +1 -1
  524. package/build/plugins/solution/fx-solution/v2/listCollaborator.d.ts.map +1 -1
  525. package/build/plugins/solution/fx-solution/v2/listCollaborator.js +20 -10
  526. package/build/plugins/solution/fx-solution/v2/listCollaborator.js.map +1 -1
  527. package/build/plugins/solution/fx-solution/v2/provision.d.ts +2 -3
  528. package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
  529. package/build/plugins/solution/fx-solution/v2/provision.js +98 -130
  530. package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
  531. package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts.map +1 -1
  532. package/build/plugins/solution/fx-solution/v2/provisionLocal.js +0 -5
  533. package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -1
  534. package/build/plugins/solution/fx-solution/v2/publish.js +1 -1
  535. package/build/plugins/solution/fx-solution/v2/publish.js.map +1 -1
  536. package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
  537. package/build/plugins/solution/fx-solution/v2/scaffolding.js +8 -8
  538. package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
  539. package/build/plugins/solution/fx-solution/v2/solution.d.ts +2 -2
  540. package/build/plugins/solution/fx-solution/v2/solution.d.ts.map +1 -1
  541. package/build/plugins/solution/fx-solution/v2/solution.js +0 -2
  542. package/build/plugins/solution/fx-solution/v2/solution.js.map +1 -1
  543. package/build/plugins/solution/fx-solution/v2/utils.d.ts +4 -4
  544. package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
  545. package/build/plugins/solution/fx-solution/v2/utils.js +14 -16
  546. package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
  547. package/build/plugins/solution/fx-solution/v3/addFeature.d.ts +25 -0
  548. package/build/plugins/solution/fx-solution/v3/addFeature.d.ts.map +1 -0
  549. package/build/plugins/solution/fx-solution/v3/addFeature.js +115 -0
  550. package/build/plugins/solution/fx-solution/v3/addFeature.js.map +1 -0
  551. package/build/plugins/solution/fx-solution/v3/constants.d.ts +7 -9
  552. package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
  553. package/build/plugins/solution/fx-solution/v3/constants.js +9 -11
  554. package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
  555. package/build/plugins/solution/fx-solution/v3/deploy.d.ts +2 -2
  556. package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
  557. package/build/plugins/solution/fx-solution/v3/deploy.js +15 -18
  558. package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
  559. package/build/plugins/solution/fx-solution/v3/error.d.ts +1 -7
  560. package/build/plugins/solution/fx-solution/v3/error.d.ts.map +1 -1
  561. package/build/plugins/solution/fx-solution/v3/error.js +0 -14
  562. package/build/plugins/solution/fx-solution/v3/error.js.map +1 -1
  563. package/build/plugins/solution/fx-solution/v3/provision.d.ts +8 -3
  564. package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
  565. package/build/plugins/solution/fx-solution/v3/provision.js +150 -110
  566. package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
  567. package/build/plugins/solution/fx-solution/v3/publish.d.ts +2 -2
  568. package/build/plugins/solution/fx-solution/v3/publish.d.ts.map +1 -1
  569. package/build/plugins/solution/fx-solution/v3/publish.js +1 -1
  570. package/build/plugins/solution/fx-solution/v3/publish.js.map +1 -1
  571. package/build/plugins/solution/fx-solution/v3/solution.d.ts +14 -24
  572. package/build/plugins/solution/fx-solution/v3/solution.d.ts.map +1 -1
  573. package/build/plugins/solution/fx-solution/v3/solution.js +75 -19
  574. package/build/plugins/solution/fx-solution/v3/solution.js.map +1 -1
  575. package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.d.ts +5 -0
  576. package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.d.ts.map +1 -0
  577. package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.js +10 -0
  578. package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.js.map +1 -0
  579. package/build/plugins/solution/fx-solution/v3/userTask.d.ts +4 -3
  580. package/build/plugins/solution/fx-solution/v3/userTask.d.ts.map +1 -1
  581. package/build/plugins/solution/fx-solution/v3/userTask.js +111 -5
  582. package/build/plugins/solution/fx-solution/v3/userTask.js.map +1 -1
  583. package/build/plugins/solution/fx-solution/v3/utils.d.ts +1 -2
  584. package/build/plugins/solution/fx-solution/v3/utils.d.ts.map +1 -1
  585. package/build/plugins/solution/fx-solution/v3/utils.js +0 -13
  586. package/build/plugins/solution/fx-solution/v3/utils.js.map +1 -1
  587. package/build/plugins/solution/spfx-solution/addFeature.d.ts +5 -0
  588. package/build/plugins/solution/spfx-solution/addFeature.d.ts.map +1 -0
  589. package/build/plugins/solution/spfx-solution/addFeature.js +38 -0
  590. package/build/plugins/solution/spfx-solution/addFeature.js.map +1 -0
  591. package/build/plugins/solution/spfx-solution/solution.d.ts +3 -10
  592. package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -1
  593. package/build/plugins/solution/spfx-solution/solution.js +4 -11
  594. package/build/plugins/solution/spfx-solution/solution.js.map +1 -1
  595. package/build/plugins/solution/utils/questions.d.ts +5 -11
  596. package/build/plugins/solution/utils/questions.d.ts.map +1 -1
  597. package/build/plugins/solution/utils/questions.js +9 -62
  598. package/build/plugins/solution/utils/questions.js.map +1 -1
  599. package/package.json +11 -5
  600. package/resource/strings.json +28 -1
  601. package/templates/plugins/resource/bot/bot-msgext.js.default.zip +0 -0
  602. package/templates/plugins/resource/bot/bot-msgext.ts.default.zip +0 -0
  603. package/templates/plugins/resource/bot/bot.js.default.zip +0 -0
  604. package/templates/plugins/resource/bot/bot.ts.default.zip +0 -0
  605. package/templates/plugins/resource/bot/msgext.js.default.zip +0 -0
  606. package/templates/plugins/resource/bot/msgext.ts.default.zip +0 -0
  607. package/templates/plugins/resource/frontend/tab.js.default.zip +0 -0
  608. package/templates/plugins/resource/frontend/tab.ts.default.zip +0 -0
  609. package/templates/plugins/resource/function/function-base.js.default.zip +0 -0
  610. package/templates/plugins/resource/function/function-base.ts.default.zip +0 -0
  611. package/templates/plugins/resource/function/function-triggers.js.HTTPTrigger.zip +0 -0
  612. package/templates/plugins/resource/function/function-triggers.ts.HTTPTrigger.zip +0 -0
  613. package/templates/plugins/solution/{main.bicep → mainConfig.bicep} +0 -12
  614. package/templates/plugins/solution/mainProvision.bicep +10 -0
  615. package/build/core/middleware/projectSettingsLoaderV3.d.ts +0 -4
  616. package/build/core/middleware/projectSettingsLoaderV3.d.ts.map +0 -1
  617. package/build/core/middleware/projectSettingsLoaderV3.js +0 -49
  618. package/build/core/middleware/projectSettingsLoaderV3.js.map +0 -1
  619. package/build/plugins/resource/apim/interfaces/IApimResource.d.ts +0 -5
  620. package/build/plugins/resource/apim/interfaces/IApimResource.d.ts.map +0 -1
  621. package/build/plugins/resource/apim/interfaces/IApimResource.js.map +0 -1
  622. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts +0 -15
  623. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts.map +0 -1
  624. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js +0 -149
  625. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js.map +0 -1
  626. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts +0 -8
  627. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts.map +0 -1
  628. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js +0 -95
  629. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js.map +0 -1
  630. package/build/plugins/solution/fx-solution/v2/listAllCollaborators.d.ts +0 -5
  631. package/build/plugins/solution/fx-solution/v2/listAllCollaborators.d.ts.map +0 -1
  632. package/build/plugins/solution/fx-solution/v2/listAllCollaborators.js +0 -118
  633. package/build/plugins/solution/fx-solution/v2/listAllCollaborators.js.map +0 -1
  634. package/build/plugins/solution/fx-solution/v3/addModule.d.ts +0 -4
  635. package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +0 -1
  636. package/build/plugins/solution/fx-solution/v3/addModule.js +0 -58
  637. package/build/plugins/solution/fx-solution/v3/addModule.js.map +0 -1
  638. package/build/plugins/solution/fx-solution/v3/addResource.d.ts +0 -29
  639. package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +0 -1
  640. package/build/plugins/solution/fx-solution/v3/addResource.js +0 -233
  641. package/build/plugins/solution/fx-solution/v3/addResource.js.map +0 -1
  642. package/build/plugins/solution/fx-solution/v3/init.d.ts +0 -4
  643. package/build/plugins/solution/fx-solution/v3/init.d.ts.map +0 -1
  644. package/build/plugins/solution/fx-solution/v3/init.js +0 -44
  645. package/build/plugins/solution/fx-solution/v3/init.js.map +0 -1
  646. package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts +0 -4
  647. package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +0 -1
  648. package/build/plugins/solution/fx-solution/v3/provisionLocal.js +0 -108
  649. package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +0 -1
  650. package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +0 -22
  651. package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +0 -1
  652. package/build/plugins/solution/fx-solution/v3/scaffold.js +0 -219
  653. package/build/plugins/solution/fx-solution/v3/scaffold.js.map +0 -1
  654. package/build/plugins/solution/spfx-solution/addModule.d.ts +0 -3
  655. package/build/plugins/solution/spfx-solution/addModule.d.ts.map +0 -1
  656. package/build/plugins/solution/spfx-solution/addModule.js +0 -29
  657. package/build/plugins/solution/spfx-solution/addModule.js.map +0 -1
  658. package/build/plugins/solution/spfx-solution/init.d.ts +0 -4
  659. package/build/plugins/solution/spfx-solution/init.d.ts.map +0 -1
  660. package/build/plugins/solution/spfx-solution/init.js +0 -52
  661. package/build/plugins/solution/spfx-solution/init.js.map +0 -1
  662. package/build/plugins/solution/spfx-solution/scaffold.d.ts +0 -5
  663. package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +0 -1
  664. package/build/plugins/solution/spfx-solution/scaffold.js +0 -69
  665. package/build/plugins/solution/spfx-solution/scaffold.js.map +0 -1
@@ -8,7 +8,6 @@ const hooks_1 = require("@feathersjs/hooks");
8
8
  const teamsfx_api_1 = require("@microsoft/teamsfx-api");
9
9
  const fs = tslib_1.__importStar(require("fs-extra"));
10
10
  const jsonschema = tslib_1.__importStar(require("jsonschema"));
11
- const lodash_1 = require("lodash");
12
11
  const path = tslib_1.__importStar(require("path"));
13
12
  const typedi_1 = require("typedi");
14
13
  const uuid = tslib_1.__importStar(require("uuid"));
@@ -36,7 +35,6 @@ const localSettingsWriter_1 = require("./middleware/localSettingsWriter");
36
35
  const migrateConditionHandler_1 = require("./middleware/migrateConditionHandler");
37
36
  const projectMigrator_1 = require("./middleware/projectMigrator");
38
37
  const projectSettingsLoader_1 = require("./middleware/projectSettingsLoader");
39
- const projectSettingsLoaderV3_1 = require("./middleware/projectSettingsLoaderV3");
40
38
  const projectSettingsWriter_1 = require("./middleware/projectSettingsWriter");
41
39
  const questionModel_1 = require("./middleware/questionModel");
42
40
  const solutionLoader_1 = require("./middleware/solutionLoader");
@@ -45,6 +43,7 @@ const supportV1ConditionHandler_1 = require("./middleware/supportV1ConditionHand
45
43
  const question_2 = require("./question");
46
44
  const SolutionPluginContainer_1 = require("./SolutionPluginContainer");
47
45
  const tools_2 = require("./tools");
46
+ const utils_1 = require("./utils");
48
47
  // TODO: For package.json,
49
48
  // use require instead of import because of core building/packaging method.
50
49
  // Using import will cause the build folder structure to change.
@@ -84,14 +83,12 @@ class FxCore {
84
83
  this._getQuestions = questionModel_1.getQuestionsV2;
85
84
  this._getQuestionsForMigrateV1Project = questionModel_1.getQuestionsForMigrateV1Project;
86
85
  //v3 questions
87
- this._getQuestionsForScaffold = questionModel_1.getQuestionsForScaffold;
88
- this._getQuestionsForAddModule = questionModel_1.getQuestionsForAddModule;
89
- this._getQuestionsForAddResource = questionModel_1.getQuestionsForAddResource;
86
+ this._getQuestionsForAddFeature = questionModel_1.getQuestionsForAddFeature;
90
87
  this._getQuestionsForProvision = questionModel_1.getQuestionsForProvision;
91
88
  this._getQuestionsForDeploy = questionModel_1.getQuestionsForDeploy;
92
- this._getQuestionsForLocalProvision = questionModel_1.getQuestionsForLocalProvision;
93
89
  this._getQuestionsForPublish = questionModel_1.getQuestionsForPublish;
94
90
  this._getQuestionsForInit = questionModel_1.getQuestionsForInit;
91
+ this._getQuestionsForUserTaskV3 = questionModel_1.getQuestionsForUserTaskV3;
95
92
  this.tools = tools;
96
93
  exports.TOOLS = tools;
97
94
  exports.Logger = tools.logProvider;
@@ -131,6 +128,7 @@ class FxCore {
131
128
  const scratch = inputs[question_2.CoreQuestionNames.CreateFromScratch];
132
129
  let projectPath;
133
130
  let globalStateDescription = "openReadme";
131
+ const automaticNpmInstall = "automaticNpmInstall";
134
132
  if (scratch === question_2.ScratchOptionNo.id) {
135
133
  // create from sample
136
134
  const downloadRes = await downloadSample_1.downloadSample(inputs, ctx);
@@ -167,45 +165,54 @@ class FxCore {
167
165
  const projectSettings = {
168
166
  appName: appName,
169
167
  projectId: inputs.projectId ? inputs.projectId : uuid.v4(),
170
- solutionSettings: {
171
- name: "",
172
- version: "1.0.0",
173
- },
174
168
  version: getProjectSettingsVersion(),
175
169
  isFromSample: false,
176
170
  };
177
- ctx.projectSettings = projectSettings;
178
- const createEnvResult = await this.createEnvWithName(__1.environmentManager.getDefaultEnvName(), projectSettings, inputs);
179
- if (createEnvResult.isErr()) {
180
- return teamsfx_api_1.err(createEnvResult.error);
181
- }
182
- const solution = await SolutionPluginContainer_1.getSolutionPluginV2ByName(inputs[question_2.CoreQuestionNames.Solution]);
183
- if (!solution) {
184
- return teamsfx_api_1.err(new error_1.LoadSolutionError());
185
- }
186
- ctx.solutionV2 = solution;
187
- projectSettings.solutionSettings.name = solution.name;
188
- const contextV2 = createV2Context(projectSettings);
189
- ctx.contextV2 = contextV2;
190
- const scaffoldSourceCodeRes = await solution.scaffoldSourceCode(contextV2, inputs);
191
- if (scaffoldSourceCodeRes.isErr()) {
192
- return teamsfx_api_1.err(scaffoldSourceCodeRes.error);
171
+ if (utils_1.isCreatedFromExistingApp(inputs)) {
172
+ // there is no solution settings if created from existing app
173
+ //TODO create from existing Tab or Bot/ME
174
+ // 1. call App Studio V3 API to create manifest with placeholder
175
+ // 2. create config.local.json to store existing App information
193
176
  }
194
- const generateResourceTemplateRes = await solution.generateResourceTemplate(contextV2, inputs);
195
- if (generateResourceTemplateRes.isErr()) {
196
- return teamsfx_api_1.err(generateResourceTemplateRes.error);
197
- }
198
- // ctx.provisionInputConfig = generateResourceTemplateRes.value;
199
- if (solution.createEnv) {
200
- inputs.copy = false;
201
- const createEnvRes = await solution.createEnv(contextV2, inputs);
202
- if (createEnvRes.isErr()) {
203
- return teamsfx_api_1.err(createEnvRes.error);
177
+ else {
178
+ projectSettings.solutionSettings = {
179
+ name: "",
180
+ version: "1.0.0",
181
+ };
182
+ ctx.projectSettings = projectSettings;
183
+ const createEnvResult = await this.createEnvWithName(__1.environmentManager.getDefaultEnvName(), projectSettings, inputs);
184
+ if (createEnvResult.isErr()) {
185
+ return teamsfx_api_1.err(createEnvResult.error);
186
+ }
187
+ const solution = await SolutionPluginContainer_1.getSolutionPluginV2ByName(inputs[question_2.CoreQuestionNames.Solution]);
188
+ if (!solution) {
189
+ return teamsfx_api_1.err(new error_1.LoadSolutionError());
190
+ }
191
+ ctx.solutionV2 = solution;
192
+ projectSettings.solutionSettings.name = solution.name;
193
+ const contextV2 = createV2Context(projectSettings);
194
+ ctx.contextV2 = contextV2;
195
+ const scaffoldSourceCodeRes = await solution.scaffoldSourceCode(contextV2, inputs);
196
+ if (scaffoldSourceCodeRes.isErr()) {
197
+ return teamsfx_api_1.err(scaffoldSourceCodeRes.error);
198
+ }
199
+ const generateResourceTemplateRes = await solution.generateResourceTemplate(contextV2, inputs);
200
+ if (generateResourceTemplateRes.isErr()) {
201
+ return teamsfx_api_1.err(generateResourceTemplateRes.error);
202
+ }
203
+ // ctx.provisionInputConfig = generateResourceTemplateRes.value;
204
+ if (solution.createEnv) {
205
+ inputs.copy = false;
206
+ const createEnvRes = await solution.createEnv(contextV2, inputs);
207
+ if (createEnvRes.isErr()) {
208
+ return teamsfx_api_1.err(createEnvRes.error);
209
+ }
204
210
  }
205
211
  }
206
212
  }
207
213
  if (inputs.platform === teamsfx_api_1.Platform.VSCode) {
208
214
  await globalState_1.globalStateUpdate(globalStateDescription, true);
215
+ await globalState_1.globalStateUpdate(automaticNpmInstall, true);
209
216
  }
210
217
  return teamsfx_api_1.ok(projectPath);
211
218
  }
@@ -228,6 +235,7 @@ class FxCore {
228
235
  const scratch = inputs[question_2.CoreQuestionNames.CreateFromScratch];
229
236
  let projectPath;
230
237
  let globalStateDescription = "openReadme";
238
+ const automaticNpmInstall = "automaticNpmInstall";
231
239
  if (scratch === question_2.ScratchOptionNo.id) {
232
240
  // create from sample
233
241
  const downloadRes = await downloadSample_1.downloadSample(inputs, ctx);
@@ -256,136 +264,51 @@ class FxCore {
256
264
  }
257
265
  await fs.ensureDir(projectPath);
258
266
  await fs.ensureDir(path.join(projectPath, `.${teamsfx_api_1.ConfigFolderName}`));
259
- let capabilities = inputs[question_2.CoreQuestionNames.Capabilities];
260
- let projectType = "";
261
- if (capabilities.includes(question_2.TabSPFxItem.id))
262
- projectType = "spfx";
263
- else if (capabilities.includes(question_2.TabOptionItem.id) && capabilities.length === 1)
264
- projectType = "tab";
265
- else if ((capabilities.includes(question_2.BotOptionItem.id) ||
266
- capabilities.includes(question_1.MessageExtensionItem.id)) &&
267
- !capabilities.includes(question_2.TabOptionItem.id))
268
- projectType = "bot";
269
- else if ((capabilities.includes(question_2.BotOptionItem.id) ||
270
- capabilities.includes(question_1.MessageExtensionItem.id)) &&
271
- capabilities.includes(question_2.TabOptionItem.id))
272
- projectType = "tab+bot";
273
- const programmingLanguage = inputs[question_2.CoreQuestionNames.ProgrammingLanguage];
274
- // const solution = capabilities.includes(TabSPFxItem.id)
275
- // ? BuiltInSolutionNames.spfx
276
- // : BuiltInSolutionNames.azure;
267
+ const capabilities = inputs[question_2.CoreQuestionNames.Capabilities];
277
268
  // init
278
269
  const initInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath });
279
270
  const initRes = await this._init(initInputs, ctx);
280
271
  if (initRes.isErr()) {
281
272
  return teamsfx_api_1.err(initRes.error);
282
273
  }
283
- // addModule, scaffold and addResource
274
+ // set solution in context
275
+ ctx.solutionV3 = typedi_1.Container.get(constants_2.BuiltInSolutionNames.azure);
276
+ // addFeature
284
277
  if (inputs.platform === teamsfx_api_1.Platform.VS) {
285
- // addModule
286
- const addModuleInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, capabilities: capabilities });
287
- const addModuleRes = await this._addModule(addModuleInputs, ctx);
288
- if (addModuleRes.isErr()) {
289
- return teamsfx_api_1.err(addModuleRes.error);
290
- }
291
- // addResource
292
- const addResourceInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, module: "0", resource: constants_2.BuiltInResourcePluginNames.webApp });
293
- const addResourceRes = await this._addResource(addResourceInputs, ctx);
294
- if (addResourceRes.isErr()) {
295
- return teamsfx_api_1.err(addResourceRes.error);
296
- }
297
- // scaffold
298
- let templateName = "";
299
- if (projectType === "tab")
300
- templateName = "BlazorTab";
301
- else if (projectType === "bot")
302
- templateName = "BlazorBot";
303
- else if (projectType === "tabbot")
304
- templateName = "BlazorTabBot";
305
- const scaffoldInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, module: "0", template: {
306
- id: `${constants_2.BuiltInScaffoldPluginNames.blazor}/${templateName}`,
307
- label: `${constants_2.BuiltInScaffoldPluginNames.blazor}/${templateName}`,
308
- data: {
309
- pluginName: constants_2.BuiltInScaffoldPluginNames.blazor,
310
- templateName: templateName,
311
- },
312
- } });
313
- const scaffoldRes = await this._scaffold(scaffoldInputs, ctx);
314
- if (scaffoldRes.isErr()) {
315
- return teamsfx_api_1.err(scaffoldRes.error);
278
+ const addFeatureInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, feature: constants_2.BuiltInFeaturePluginNames.dotnet });
279
+ const addFeatureRes = await this._addFeature(addFeatureInputs, ctx);
280
+ if (addFeatureRes.isErr()) {
281
+ return teamsfx_api_1.err(addFeatureRes.error);
316
282
  }
317
283
  }
318
284
  else {
319
- if (capabilities.includes(question_2.TabOptionItem.id) || capabilities.includes(question_2.TabSPFxItem.id)) {
320
- const addModuleInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, capabilities: capabilities.includes(question_2.TabOptionItem.id)
321
- ? [question_2.TabOptionItem.id]
322
- : [question_2.TabSPFxItem.id] });
323
- const addModuleRes = await this._addModule(addModuleInputs, ctx);
324
- if (addModuleRes.isErr()) {
325
- return teamsfx_api_1.err(addModuleRes.error);
326
- }
327
- // addResource
328
- const addResourceInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, module: "0", resource: capabilities.includes(question_2.TabOptionItem.id)
329
- ? constants_2.BuiltInResourcePluginNames.storage
330
- : constants_2.BuiltInResourcePluginNames.spfx });
331
- const addResourceRes = await this._addResource(addResourceInputs, ctx);
332
- if (addResourceRes.isErr()) {
333
- return teamsfx_api_1.err(addResourceRes.error);
334
- }
335
- // scaffold
336
- const pluginName = capabilities.includes(question_2.TabOptionItem.id)
337
- ? constants_2.BuiltInScaffoldPluginNames.tab
338
- : constants_2.BuiltInScaffoldPluginNames.spfx;
339
- const templateName = capabilities.includes(question_2.TabOptionItem.id)
340
- ? programmingLanguage === "javascript"
341
- ? "ReactTab_JS"
342
- : "ReactTab_TS"
343
- : "SPFxTab";
344
- const scaffoldInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, module: "0", template: {
345
- id: `${pluginName}/${templateName}`,
346
- label: `${pluginName}/${templateName}`,
347
- data: {
348
- pluginName: pluginName,
349
- templateName: templateName, //TODO
350
- },
351
- } });
352
- const scaffoldRes = await this._scaffold(scaffoldInputs, ctx);
353
- if (scaffoldRes.isErr()) {
354
- return teamsfx_api_1.err(scaffoldRes.error);
285
+ if (capabilities.includes(question_2.TabOptionItem.id)) {
286
+ const addFeatureInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, feature: constants_2.BuiltInFeaturePluginNames.frontend });
287
+ const addFeatureRes = await this._addFeature(addFeatureInputs, ctx);
288
+ if (addFeatureRes.isErr()) {
289
+ return teamsfx_api_1.err(addFeatureRes.error);
355
290
  }
356
291
  }
357
- capabilities = capabilities.filter((c) => c !== question_2.TabOptionItem.id && c !== question_2.TabSPFxItem.id);
358
- if (capabilities.length > 0) {
359
- const addModuleInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, capabilities: capabilities });
360
- const addModuleRes = await this._addModule(addModuleInputs, ctx);
361
- if (addModuleRes.isErr()) {
362
- return teamsfx_api_1.err(addModuleRes.error);
363
- }
364
- // addResource
365
- const addResourceInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, module: "1", resource: constants_2.BuiltInResourcePluginNames.bot });
366
- const addResourceRes = await this._addResource(addResourceInputs, ctx);
367
- if (addResourceRes.isErr()) {
368
- return teamsfx_api_1.err(addResourceRes.error);
292
+ else if (capabilities.includes(question_2.TabSPFxItem.id)) {
293
+ const addFeatureInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, feature: constants_2.BuiltInFeaturePluginNames.spfx });
294
+ const addFeatureRes = await this._addFeature(addFeatureInputs, ctx);
295
+ if (addFeatureRes.isErr()) {
296
+ return teamsfx_api_1.err(addFeatureRes.error);
369
297
  }
370
- // scaffold
371
- const templateName = programmingLanguage === "javascript" ? "NodejsBot_JS" : "NodejsBot_TS";
372
- const scaffoldInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, module: "1", resource: constants_2.BuiltInScaffoldPluginNames.bot, template: {
373
- id: `${constants_2.BuiltInScaffoldPluginNames.bot}/${templateName}`,
374
- label: `${constants_2.BuiltInScaffoldPluginNames.bot}/${templateName}`,
375
- data: {
376
- pluginName: constants_2.BuiltInScaffoldPluginNames.bot,
377
- templateName: templateName, //TODO
378
- },
379
- } });
380
- const scaffoldRes = await this._scaffold(scaffoldInputs, ctx);
381
- if (scaffoldRes.isErr()) {
382
- return teamsfx_api_1.err(scaffoldRes.error);
298
+ }
299
+ if (capabilities.includes(question_2.BotOptionItem.id) ||
300
+ capabilities.includes(question_1.MessageExtensionItem.id)) {
301
+ const addFeatureInputs = Object.assign(Object.assign({}, inputs), { projectPath: projectPath, feature: constants_2.BuiltInFeaturePluginNames.bot, capabilities: capabilities });
302
+ const addFeatureRes = await this._addFeature(addFeatureInputs, ctx);
303
+ if (addFeatureRes.isErr()) {
304
+ return teamsfx_api_1.err(addFeatureRes.error);
383
305
  }
384
306
  }
385
307
  }
386
308
  }
387
309
  if (inputs.platform === teamsfx_api_1.Platform.VSCode) {
388
310
  await globalState_1.globalStateUpdate(globalStateDescription, true);
311
+ await globalState_1.globalStateUpdate(automaticNpmInstall, true);
389
312
  }
390
313
  return teamsfx_api_1.ok(projectPath);
391
314
  }
@@ -493,17 +416,7 @@ class FxCore {
493
416
  }
494
417
  const envInfo = ctx.envInfoV2;
495
418
  const result = await ctx.solutionV2.provisionResources(ctx.contextV2, inputs, envInfo, this.tools.tokenProvider);
496
- if (result.kind === "success") {
497
- ctx.envInfoV2.state = lodash_1.assign(ctx.envInfoV2.state, result.output);
498
- return teamsfx_api_1.ok(teamsfx_api_1.Void);
499
- }
500
- else if (result.kind === "partialSuccess") {
501
- ctx.envInfoV2.state = lodash_1.assign(ctx.envInfoV2.state, result.output);
502
- return teamsfx_api_1.err(result.error);
503
- }
504
- else {
505
- return teamsfx_api_1.err(result.error);
506
- }
419
+ return result;
507
420
  }
508
421
  async provisionResourcesV3(inputs, ctx) {
509
422
  exports.currentStage = teamsfx_api_1.Stage.provision;
@@ -514,9 +427,6 @@ class FxCore {
514
427
  ctx.envInfoV3 &&
515
428
  ctx.solutionV3.provisionResources) {
516
429
  const res = await ctx.solutionV3.provisionResources(ctx.contextV2, inputs, ctx.envInfoV3, exports.TOOLS.tokenProvider);
517
- if (res.isOk()) {
518
- ctx.envInfoV3 = res.value;
519
- }
520
430
  return res;
521
431
  }
522
432
  return teamsfx_api_1.ok(teamsfx_api_1.Void);
@@ -530,7 +440,14 @@ class FxCore {
530
440
  async deployArtifactsV2(inputs, ctx) {
531
441
  exports.currentStage = teamsfx_api_1.Stage.deploy;
532
442
  inputs.stage = teamsfx_api_1.Stage.deploy;
533
- if (!ctx || !ctx.solutionV2 || !ctx.contextV2 || !ctx.envInfoV2) {
443
+ if (!(ctx === null || ctx === void 0 ? void 0 : ctx.projectSettings)) {
444
+ return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError("deploy input stuff"));
445
+ }
446
+ if (utils_1.isPureExistingApp(ctx.projectSettings)) {
447
+ // existing app scenario, deploy has no effect
448
+ return teamsfx_api_1.err(new error_1.OperationNotSupportedForExistingAppError("deploy"));
449
+ }
450
+ if (!ctx.solutionV2 || !ctx.contextV2 || !ctx.envInfoV2) {
534
451
  const name = undefinedName([ctx, ctx === null || ctx === void 0 ? void 0 : ctx.solutionV2, ctx === null || ctx === void 0 ? void 0 : ctx.contextV2, ctx === null || ctx === void 0 ? void 0 : ctx.envInfoV2], ["ctx", "ctx.solutionV2", "ctx.contextV2", "ctx.envInfoV2"]);
535
452
  return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError(`Deploy input stuff: ${name}`));
536
453
  }
@@ -557,7 +474,14 @@ class FxCore {
557
474
  async localDebugV2(inputs, ctx) {
558
475
  exports.currentStage = teamsfx_api_1.Stage.debug;
559
476
  inputs.stage = teamsfx_api_1.Stage.debug;
560
- if (!ctx || !ctx.solutionV2 || !ctx.contextV2) {
477
+ if (!(ctx === null || ctx === void 0 ? void 0 : ctx.projectSettings)) {
478
+ return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError("local debug input stuff"));
479
+ }
480
+ if (utils_1.isPureExistingApp(ctx.projectSettings)) {
481
+ // existing app scenario, local debug has no effect
482
+ return teamsfx_api_1.err(new error_1.OperationNotSupportedForExistingAppError("localDebug"));
483
+ }
484
+ if (!ctx.solutionV2 || !ctx.contextV2) {
561
485
  const name = undefinedName([ctx, ctx === null || ctx === void 0 ? void 0 : ctx.solutionV2, ctx === null || ctx === void 0 ? void 0 : ctx.contextV2], ["ctx", "ctx.solutionV2", "ctx.contextV2"]);
562
486
  return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError(`localDebug input stuff (${name})`));
563
487
  }
@@ -587,9 +511,9 @@ class FxCore {
587
511
  if (ctx &&
588
512
  ctx.solutionV3 &&
589
513
  ctx.contextV2 &&
590
- ctx.localSettings &&
591
- ctx.solutionV3.provisionLocalResources) {
592
- const res = await ctx.solutionV3.provisionLocalResources(ctx.contextV2, inputs, ctx.localSettings, exports.TOOLS.tokenProvider);
514
+ ctx.envInfoV3 &&
515
+ ctx.solutionV3.provisionResources) {
516
+ const res = await ctx.solutionV3.provisionResources(ctx.contextV2, inputs, ctx.envInfoV3, exports.TOOLS.tokenProvider);
593
517
  if (res.isOk()) {
594
518
  ctx.localSettings = res.value;
595
519
  }
@@ -637,6 +561,12 @@ class FxCore {
637
561
  return teamsfx_api_1.ok(teamsfx_api_1.Void);
638
562
  }
639
563
  async executeUserTask(func, inputs, ctx) {
564
+ if (isV3())
565
+ return this.executeUserTaskV3(func, inputs);
566
+ else
567
+ return this.executeUserTaskV2(func, inputs);
568
+ }
569
+ async executeUserTaskV2(func, inputs, ctx) {
640
570
  exports.currentStage = teamsfx_api_1.Stage.userTask;
641
571
  inputs.stage = teamsfx_api_1.Stage.userTask;
642
572
  const namespace = func.namespace;
@@ -659,6 +589,27 @@ class FxCore {
659
589
  }
660
590
  return teamsfx_api_1.err(error_1.FunctionRouterError(func));
661
591
  }
592
+ async executeUserTaskV3(func, inputs, ctx) {
593
+ exports.currentStage = teamsfx_api_1.Stage.userTask;
594
+ inputs.stage = teamsfx_api_1.Stage.userTask;
595
+ const namespace = func.namespace;
596
+ const array = namespace ? namespace.split("/") : [];
597
+ if ("" !== namespace && array.length > 0) {
598
+ if (!ctx || !ctx.solutionV3 || !ctx.envInfoV3) {
599
+ const name = undefinedName([ctx, ctx === null || ctx === void 0 ? void 0 : ctx.solutionV3, ctx === null || ctx === void 0 ? void 0 : ctx.envInfoV3], ["ctx", "ctx.solutionV3", "ctx.envInfoV3"]);
600
+ return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError(`executeUserTask input stuff: ${name}`));
601
+ }
602
+ if (!ctx.contextV2)
603
+ ctx.contextV2 = createV2Context(newProjectSettings());
604
+ if (ctx.solutionV3.executeUserTask) {
605
+ const res = await ctx.solutionV3.executeUserTask(ctx.contextV2, inputs, func, ctx.envInfoV3, this.tools.tokenProvider);
606
+ return res;
607
+ }
608
+ else
609
+ return teamsfx_api_1.err(error_1.FunctionRouterError(func));
610
+ }
611
+ return teamsfx_api_1.err(error_1.FunctionRouterError(func));
612
+ }
662
613
  async getQuestions(stage, inputs, ctx) {
663
614
  if (!ctx)
664
615
  return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError("getQuestions input stuff"));
@@ -729,15 +680,6 @@ class FxCore {
729
680
  }
730
681
  return ctx.solutionV2.listCollaborator(ctx.contextV2, Object.assign(Object.assign({}, inputs), { projectPath: projectPath }), ctx.envInfoV2, this.tools.tokenProvider);
731
682
  }
732
- async listAllCollaborators(inputs, ctx) {
733
- exports.currentStage = teamsfx_api_1.Stage.listAllCollaborators;
734
- inputs.stage = teamsfx_api_1.Stage.listAllCollaborators;
735
- const projectPath = inputs.projectPath;
736
- if (!projectPath) {
737
- return teamsfx_api_1.err(new error_1.ObjectIsUndefinedError("projectPath"));
738
- }
739
- return ctx.solutionV2.listAllCollaborators(ctx.contextV2, Object.assign(Object.assign({}, inputs), { projectPath: projectPath }), ctx.envInfoV2, this.tools.tokenProvider);
740
- }
741
683
  async getSelectedEnv(inputs, ctx) {
742
684
  var _a;
743
685
  return teamsfx_api_1.ok((_a = ctx === null || ctx === void 0 ? void 0 : ctx.envInfoV2) === null || _a === void 0 ? void 0 : _a.envName);
@@ -850,10 +792,7 @@ class FxCore {
850
792
  const projectSettings = newProjectSettings();
851
793
  projectSettings.appName = appName;
852
794
  ctx.projectSettings = projectSettings;
853
- if (!inputs.solution) {
854
- return teamsfx_api_1.err(error_1.InvalidInputError("solution is undefined", inputs));
855
- }
856
- const createEnvResult = await this.createEnvWithName(__1.environmentManager.getDefaultEnvName(), projectSettings, inputs);
795
+ const createEnvResult = await this.createEnvWithName("local", projectSettings, inputs);
857
796
  if (createEnvResult.isErr()) {
858
797
  return teamsfx_api_1.err(createEnvResult.error);
859
798
  }
@@ -863,44 +802,21 @@ class FxCore {
863
802
  if (basicFolderRes.isErr()) {
864
803
  return teamsfx_api_1.err(basicFolderRes.error);
865
804
  }
866
- const solution = typedi_1.Container.get(inputs.solution);
867
- projectSettings.solutionSettings.name = inputs.solution;
868
805
  const context = createV2Context(projectSettings);
869
806
  ctx.contextV2 = context;
870
- ctx.solutionV3 = solution;
871
- return await solution.init(context, inputs);
807
+ const appStudioV3 = typedi_1.Container.get(constants_2.BuiltInFeaturePluginNames.appStudio);
808
+ await appStudioV3.init(context, inputs);
809
+ return teamsfx_api_1.ok(teamsfx_api_1.Void);
872
810
  }
873
811
  async init(inputs, ctx) {
874
812
  return this._init(inputs, ctx);
875
813
  }
876
- async _addModule(inputs, ctx) {
877
- if (ctx && ctx.solutionV3 && ctx.contextV2) {
878
- const addModuleRes = await ctx.solutionV3.addModule(ctx.contextV2, inputs, ctx.localSettings);
879
- if (addModuleRes.isErr()) {
880
- return teamsfx_api_1.err(addModuleRes.error);
881
- }
882
- ctx.localSettings = addModuleRes.value; // return back local settings
883
- }
884
- return teamsfx_api_1.ok(teamsfx_api_1.Void);
885
- }
886
- async addModule(inputs, ctx) {
887
- return this._addModule(inputs, ctx);
814
+ async addFeature(inputs, ctx) {
815
+ return this._addFeature(inputs, ctx);
888
816
  }
889
- async scaffold(inputs, ctx) {
890
- return this._scaffold(inputs, ctx);
891
- }
892
- async _scaffold(inputs, ctx) {
893
- if (ctx && ctx.solutionV3 && ctx.contextV2) {
894
- return await ctx.solutionV3.scaffold(ctx.contextV2, inputs);
895
- }
896
- return teamsfx_api_1.ok(teamsfx_api_1.Void);
897
- }
898
- async addResource(inputs, ctx) {
899
- return this._addResource(inputs, ctx);
900
- }
901
- async _addResource(inputs, ctx) {
902
- if (ctx && ctx.solutionV3 && ctx.contextV2) {
903
- return await ctx.solutionV3.addResource(ctx.contextV2, inputs);
817
+ async _addFeature(inputs, ctx) {
818
+ if (ctx && ctx.solutionV3 && ctx.contextV2 && ctx.solutionV3.addFeature) {
819
+ return await ctx.solutionV3.addFeature(ctx.contextV2, inputs);
904
820
  }
905
821
  return teamsfx_api_1.ok(teamsfx_api_1.Void);
906
822
  }
@@ -969,7 +885,7 @@ tslib_1.__decorate([
969
885
  concurrentLocker_1.ConcurrentLockerMW,
970
886
  supportV1ConditionHandler_1.SupportV1ConditionMW(false),
971
887
  projectMigrator_1.ProjectMigratorMW,
972
- projectSettingsLoaderV3_1.ProjectSettingsLoaderMW_V3,
888
+ projectSettingsLoader_1.ProjectSettingsLoaderMW,
973
889
  envInfoLoaderV3_1.EnvInfoLoaderMW_V3(false),
974
890
  solutionLoaderV3_1.SolutionLoaderMW_V3,
975
891
  questionModel_1.QuestionModelMW,
@@ -1005,7 +921,7 @@ tslib_1.__decorate([
1005
921
  concurrentLocker_1.ConcurrentLockerMW,
1006
922
  supportV1ConditionHandler_1.SupportV1ConditionMW(false),
1007
923
  projectMigrator_1.ProjectMigratorMW,
1008
- projectSettingsLoaderV3_1.ProjectSettingsLoaderMW_V3,
924
+ projectSettingsLoader_1.ProjectSettingsLoaderMW,
1009
925
  envInfoLoaderV3_1.EnvInfoLoaderMW_V3(false),
1010
926
  solutionLoaderV3_1.SolutionLoaderMW_V3,
1011
927
  questionModel_1.QuestionModelMW,
@@ -1043,7 +959,7 @@ tslib_1.__decorate([
1043
959
  concurrentLocker_1.ConcurrentLockerMW,
1044
960
  supportV1ConditionHandler_1.SupportV1ConditionMW(true),
1045
961
  projectMigrator_1.ProjectMigratorMW,
1046
- projectSettingsLoaderV3_1.ProjectSettingsLoaderMW_V3,
962
+ projectSettingsLoader_1.ProjectSettingsLoaderMW,
1047
963
  localSettingsLoader_1.LocalSettingsLoaderMW,
1048
964
  solutionLoaderV3_1.SolutionLoaderMW_V3,
1049
965
  questionModel_1.QuestionModelMW,
@@ -1109,7 +1025,26 @@ tslib_1.__decorate([
1109
1025
  tslib_1.__metadata("design:type", Function),
1110
1026
  tslib_1.__metadata("design:paramtypes", [Object, Object, Object]),
1111
1027
  tslib_1.__metadata("design:returntype", Promise)
1112
- ], FxCore.prototype, "executeUserTask", null);
1028
+ ], FxCore.prototype, "executeUserTaskV2", null);
1029
+ tslib_1.__decorate([
1030
+ hooks_1.hooks([
1031
+ errorHandler_1.ErrorHandlerMW,
1032
+ concurrentLocker_1.ConcurrentLockerMW,
1033
+ supportV1ConditionHandler_1.SupportV1ConditionMW(false),
1034
+ projectMigrator_1.ProjectMigratorMW,
1035
+ projectSettingsLoader_1.ProjectSettingsLoaderMW,
1036
+ envInfoLoader_1.EnvInfoLoaderMW(false),
1037
+ localSettingsLoader_1.LocalSettingsLoaderMW,
1038
+ solutionLoader_1.SolutionLoaderMW,
1039
+ questionModel_1.QuestionModelMW,
1040
+ contextInjector_1.ContextInjectorMW,
1041
+ projectSettingsWriter_1.ProjectSettingsWriterMW,
1042
+ envInfoWriter_1.EnvInfoWriterMW(),
1043
+ ]),
1044
+ tslib_1.__metadata("design:type", Function),
1045
+ tslib_1.__metadata("design:paramtypes", [Object, Object, Object]),
1046
+ tslib_1.__metadata("design:returntype", Promise)
1047
+ ], FxCore.prototype, "executeUserTaskV3", null);
1113
1048
  tslib_1.__decorate([
1114
1049
  hooks_1.hooks([
1115
1050
  errorHandler_1.ErrorHandlerMW,
@@ -1203,21 +1138,6 @@ tslib_1.__decorate([
1203
1138
  tslib_1.__metadata("design:paramtypes", [Object, Object]),
1204
1139
  tslib_1.__metadata("design:returntype", Promise)
1205
1140
  ], FxCore.prototype, "listCollaborator", null);
1206
- tslib_1.__decorate([
1207
- hooks_1.hooks([
1208
- errorHandler_1.ErrorHandlerMW,
1209
- concurrentLocker_1.ConcurrentLockerMW,
1210
- supportV1ConditionHandler_1.SupportV1ConditionMW(true),
1211
- projectSettingsLoader_1.ProjectSettingsLoaderMW,
1212
- envInfoLoader_1.EnvInfoLoaderMW(true),
1213
- solutionLoader_1.SolutionLoaderMW,
1214
- questionModel_1.QuestionModelMW,
1215
- contextInjector_1.ContextInjectorMW,
1216
- ]),
1217
- tslib_1.__metadata("design:type", Function),
1218
- tslib_1.__metadata("design:paramtypes", [Object, Object]),
1219
- tslib_1.__metadata("design:returntype", Promise)
1220
- ], FxCore.prototype, "listAllCollaborators", null);
1221
1141
  tslib_1.__decorate([
1222
1142
  hooks_1.hooks([
1223
1143
  errorHandler_1.ErrorHandlerMW,
@@ -1294,35 +1214,7 @@ tslib_1.__decorate([
1294
1214
  tslib_1.__decorate([
1295
1215
  hooks_1.hooks([
1296
1216
  errorHandler_1.ErrorHandlerMW,
1297
- projectSettingsLoaderV3_1.ProjectSettingsLoaderMW_V3,
1298
- localSettingsLoader_1.LocalSettingsLoaderMW,
1299
- solutionLoaderV3_1.SolutionLoaderMW_V3,
1300
- questionModel_1.QuestionModelMW,
1301
- contextInjector_1.ContextInjectorMW,
1302
- projectSettingsWriter_1.ProjectSettingsWriterMW,
1303
- localSettingsWriter_1.LocalSettingsWriterMW,
1304
- ]),
1305
- tslib_1.__metadata("design:type", Function),
1306
- tslib_1.__metadata("design:paramtypes", [Object, Object]),
1307
- tslib_1.__metadata("design:returntype", Promise)
1308
- ], FxCore.prototype, "addModule", null);
1309
- tslib_1.__decorate([
1310
- hooks_1.hooks([
1311
- errorHandler_1.ErrorHandlerMW,
1312
- projectSettingsLoaderV3_1.ProjectSettingsLoaderMW_V3,
1313
- solutionLoaderV3_1.SolutionLoaderMW_V3,
1314
- questionModel_1.QuestionModelMW,
1315
- contextInjector_1.ContextInjectorMW,
1316
- projectSettingsWriter_1.ProjectSettingsWriterMW,
1317
- ]),
1318
- tslib_1.__metadata("design:type", Function),
1319
- tslib_1.__metadata("design:paramtypes", [Object, Object]),
1320
- tslib_1.__metadata("design:returntype", Promise)
1321
- ], FxCore.prototype, "scaffold", null);
1322
- tslib_1.__decorate([
1323
- hooks_1.hooks([
1324
- errorHandler_1.ErrorHandlerMW,
1325
- projectSettingsLoaderV3_1.ProjectSettingsLoaderMW_V3,
1217
+ projectSettingsLoader_1.ProjectSettingsLoaderMW,
1326
1218
  solutionLoaderV3_1.SolutionLoaderMW_V3,
1327
1219
  questionModel_1.QuestionModelMW,
1328
1220
  contextInjector_1.ContextInjectorMW,
@@ -1331,7 +1223,7 @@ tslib_1.__decorate([
1331
1223
  tslib_1.__metadata("design:type", Function),
1332
1224
  tslib_1.__metadata("design:paramtypes", [Object, Object]),
1333
1225
  tslib_1.__metadata("design:returntype", Promise)
1334
- ], FxCore.prototype, "addResource", null);
1226
+ ], FxCore.prototype, "addFeature", null);
1335
1227
  exports.FxCore = FxCore;
1336
1228
  async function createBasicFolderStructure(inputs) {
1337
1229
  if (!inputs.projectPath) {
@@ -1377,9 +1269,6 @@ function newProjectSettings() {
1377
1269
  appName: "",
1378
1270
  projectId: uuid.v4(),
1379
1271
  version: getProjectSettingsVersion(),
1380
- solutionSettings: {
1381
- name: "",
1382
- },
1383
1272
  };
1384
1273
  return projectSettings;
1385
1274
  }