@microsoft/teamsfx-core 1.5.0 → 1.5.1-alpha.3fc0dea41.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 (696) hide show
  1. package/build/common/constants.d.ts +7 -0
  2. package/build/common/constants.d.ts.map +1 -1
  3. package/build/common/constants.js +8 -0
  4. package/build/common/constants.js.map +1 -1
  5. package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
  6. package/build/common/deps-checker/internal/dotnetChecker.js +1 -1
  7. package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
  8. package/build/common/index.d.ts +1 -0
  9. package/build/common/index.d.ts.map +1 -1
  10. package/build/common/index.js +1 -0
  11. package/build/common/index.js.map +1 -1
  12. package/build/common/local/constants.d.ts +5 -0
  13. package/build/common/local/constants.d.ts.map +1 -1
  14. package/build/common/local/constants.js +6 -1
  15. package/build/common/local/constants.js.map +1 -1
  16. package/build/common/local/localEnvManager.d.ts.map +1 -1
  17. package/build/common/local/localEnvManager.js +3 -2
  18. package/build/common/local/localEnvManager.js.map +1 -1
  19. package/build/common/local/projectSettingsHelper.d.ts +1 -0
  20. package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
  21. package/build/common/local/projectSettingsHelper.js +9 -5
  22. package/build/common/local/projectSettingsHelper.js.map +1 -1
  23. package/build/common/localSettingsProvider.d.ts +1 -1
  24. package/build/common/localSettingsProvider.d.ts.map +1 -1
  25. package/build/common/localSettingsProvider.js +4 -1
  26. package/build/common/localSettingsProvider.js.map +1 -1
  27. package/build/common/localizeUtils.d.ts +3 -0
  28. package/build/common/localizeUtils.d.ts.map +1 -0
  29. package/build/common/localizeUtils.js +38 -0
  30. package/build/common/localizeUtils.js.map +1 -0
  31. package/build/common/projectSettingsHelper.d.ts +11 -0
  32. package/build/common/projectSettingsHelper.d.ts.map +1 -0
  33. package/build/common/projectSettingsHelper.js +134 -0
  34. package/build/common/projectSettingsHelper.js.map +1 -0
  35. package/build/common/template-utils/templatesActions.d.ts.map +1 -1
  36. package/build/common/template-utils/templatesActions.js +3 -2
  37. package/build/common/template-utils/templatesActions.js.map +1 -1
  38. package/build/common/templates-config.json +2 -2
  39. package/build/common/tools.d.ts +8 -2
  40. package/build/common/tools.d.ts.map +1 -1
  41. package/build/common/tools.js +62 -10
  42. package/build/common/tools.js.map +1 -1
  43. package/build/core/FxCore.d.ts +78 -0
  44. package/build/core/FxCore.d.ts.map +1 -0
  45. package/build/core/FxCore.js +1305 -0
  46. package/build/core/FxCore.js.map +1 -0
  47. package/build/core/SolutionPluginContainer.d.ts.map +1 -1
  48. package/build/core/SolutionPluginContainer.js.map +1 -1
  49. package/build/core/collaborator.d.ts +1 -4
  50. package/build/core/collaborator.d.ts.map +1 -1
  51. package/build/core/collaborator.js +56 -77
  52. package/build/core/collaborator.js.map +1 -1
  53. package/build/core/downloadSample.d.ts +2 -2
  54. package/build/core/downloadSample.d.ts.map +1 -1
  55. package/build/core/downloadSample.js +6 -5
  56. package/build/core/downloadSample.js.map +1 -1
  57. package/build/core/environment.d.ts +4 -2
  58. package/build/core/environment.d.ts.map +1 -1
  59. package/build/core/environment.js +50 -43
  60. package/build/core/environment.js.map +1 -1
  61. package/build/core/error.d.ts +27 -12
  62. package/build/core/error.d.ts.map +1 -1
  63. package/build/core/error.js +45 -33
  64. package/build/core/error.js.map +1 -1
  65. package/build/core/globalVars.d.ts +12 -0
  66. package/build/core/globalVars.d.ts.map +1 -0
  67. package/build/core/globalVars.js +41 -0
  68. package/build/core/globalVars.js.map +1 -0
  69. package/build/core/index.d.ts +4 -101
  70. package/build/core/index.d.ts.map +1 -1
  71. package/build/core/index.js +5 -1377
  72. package/build/core/index.js.map +1 -1
  73. package/build/core/middleware/concurrentLocker.d.ts +1 -0
  74. package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
  75. package/build/core/middleware/concurrentLocker.js +17 -12
  76. package/build/core/middleware/concurrentLocker.js.map +1 -1
  77. package/build/core/middleware/envInfoLoader.d.ts +1 -1
  78. package/build/core/middleware/envInfoLoader.d.ts.map +1 -1
  79. package/build/core/middleware/envInfoLoader.js +28 -21
  80. package/build/core/middleware/envInfoLoader.js.map +1 -1
  81. package/build/core/middleware/envInfoLoaderV3.d.ts.map +1 -1
  82. package/build/core/middleware/envInfoLoaderV3.js +2 -3
  83. package/build/core/middleware/envInfoLoaderV3.js.map +1 -1
  84. package/build/core/middleware/envInfoWriter.js +3 -4
  85. package/build/core/middleware/envInfoWriter.js.map +1 -1
  86. package/build/core/middleware/envInfoWriterV3.js +3 -4
  87. package/build/core/middleware/envInfoWriterV3.js.map +1 -1
  88. package/build/core/middleware/errorHandler.d.ts.map +1 -1
  89. package/build/core/middleware/errorHandler.js +7 -5
  90. package/build/core/middleware/errorHandler.js.map +1 -1
  91. package/build/core/middleware/localSettingsLoader.js +3 -4
  92. package/build/core/middleware/localSettingsLoader.js.map +1 -1
  93. package/build/core/middleware/localSettingsWriter.d.ts.map +1 -1
  94. package/build/core/middleware/localSettingsWriter.js +4 -4
  95. package/build/core/middleware/localSettingsWriter.js.map +1 -1
  96. package/build/core/middleware/projectMigrator.d.ts +1 -1
  97. package/build/core/middleware/projectMigrator.d.ts.map +1 -1
  98. package/build/core/middleware/projectMigrator.js +52 -57
  99. package/build/core/middleware/projectMigrator.js.map +1 -1
  100. package/build/core/middleware/projectSettingsLoader.d.ts +1 -1
  101. package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
  102. package/build/core/middleware/projectSettingsLoader.js +12 -10
  103. package/build/core/middleware/projectSettingsLoader.js.map +1 -1
  104. package/build/core/middleware/projectSettingsWriter.js +2 -2
  105. package/build/core/middleware/projectSettingsWriter.js.map +1 -1
  106. package/build/core/middleware/questionModel.d.ts.map +1 -1
  107. package/build/core/middleware/questionModel.js +78 -48
  108. package/build/core/middleware/questionModel.js.map +1 -1
  109. package/build/core/middleware/solutionLoader.d.ts +1 -1
  110. package/build/core/middleware/solutionLoader.d.ts.map +1 -1
  111. package/build/core/middleware/solutionLoader.js.map +1 -1
  112. package/build/core/middleware/solutionLoaderV3.d.ts +1 -1
  113. package/build/core/middleware/solutionLoaderV3.d.ts.map +1 -1
  114. package/build/core/middleware/solutionLoaderV3.js.map +1 -1
  115. package/build/core/pvm/broker.js +1 -1
  116. package/build/core/pvm/broker.js.map +1 -1
  117. package/build/core/question.d.ts +10 -7
  118. package/build/core/question.d.ts.map +1 -1
  119. package/build/core/question.js +156 -109
  120. package/build/core/question.js.map +1 -1
  121. package/build/core/types.d.ts +14 -0
  122. package/build/core/types.d.ts.map +1 -0
  123. package/build/core/types.js +5 -0
  124. package/build/core/types.js.map +1 -0
  125. package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
  126. package/build/plugins/resource/aad/aadAppClient.js +8 -9
  127. package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
  128. package/build/plugins/resource/aad/aadAppManifestManager.d.ts +9 -0
  129. package/build/plugins/resource/aad/aadAppManifestManager.d.ts.map +1 -0
  130. package/build/plugins/resource/aad/aadAppManifestManager.js +78 -0
  131. package/build/plugins/resource/aad/aadAppManifestManager.js.map +1 -0
  132. package/build/plugins/resource/aad/appStudio.js +2 -2
  133. package/build/plugins/resource/aad/appStudio.js.map +1 -1
  134. package/build/plugins/resource/aad/constants.d.ts +5 -5
  135. package/build/plugins/resource/aad/constants.d.ts.map +1 -1
  136. package/build/plugins/resource/aad/constants.js +10 -9
  137. package/build/plugins/resource/aad/constants.js.map +1 -1
  138. package/build/plugins/resource/aad/errors.d.ts +19 -19
  139. package/build/plugins/resource/aad/errors.d.ts.map +1 -1
  140. package/build/plugins/resource/aad/errors.js +44 -48
  141. package/build/plugins/resource/aad/errors.js.map +1 -1
  142. package/build/plugins/resource/aad/index.d.ts.map +1 -1
  143. package/build/plugins/resource/aad/index.js +2 -6
  144. package/build/plugins/resource/aad/index.js.map +1 -1
  145. package/build/plugins/resource/aad/interfaces/AADApplication.d.ts +122 -0
  146. package/build/plugins/resource/aad/interfaces/AADApplication.d.ts.map +1 -0
  147. package/build/plugins/resource/aad/interfaces/AADApplication.js +3 -0
  148. package/build/plugins/resource/aad/interfaces/AADApplication.js.map +1 -0
  149. package/build/plugins/resource/aad/interfaces/AADManifest.d.ts +111 -0
  150. package/build/plugins/resource/aad/interfaces/AADManifest.d.ts.map +1 -0
  151. package/build/plugins/resource/aad/interfaces/AADManifest.js +3 -0
  152. package/build/plugins/resource/aad/interfaces/AADManifest.js.map +1 -0
  153. package/build/plugins/resource/aad/permissions/index.d.ts +5 -0
  154. package/build/plugins/resource/aad/permissions/index.d.ts.map +1 -0
  155. package/build/plugins/resource/aad/permissions/index.js +38 -0
  156. package/build/plugins/resource/aad/permissions/index.js.map +1 -0
  157. package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
  158. package/build/plugins/resource/aad/plugin.js +21 -22
  159. package/build/plugins/resource/aad/plugin.js.map +1 -1
  160. package/build/plugins/resource/aad/utils/aadManifestHelper.d.ts +7 -0
  161. package/build/plugins/resource/aad/utils/aadManifestHelper.d.ts.map +1 -0
  162. package/build/plugins/resource/aad/utils/aadManifestHelper.js +150 -0
  163. package/build/plugins/resource/aad/utils/aadManifestHelper.js.map +1 -0
  164. package/build/plugins/resource/aad/utils/configs.d.ts +18 -1
  165. package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
  166. package/build/plugins/resource/aad/utils/configs.js +128 -7
  167. package/build/plugins/resource/aad/utils/configs.js.map +1 -1
  168. package/build/plugins/resource/aad/utils/telemetry.js +3 -3
  169. package/build/plugins/resource/aad/utils/telemetry.js.map +1 -1
  170. package/build/plugins/resource/aad/v3/index.d.ts +1 -5
  171. package/build/plugins/resource/aad/v3/index.d.ts.map +1 -1
  172. package/build/plugins/resource/aad/v3/index.js +8 -42
  173. package/build/plugins/resource/aad/v3/index.js.map +1 -1
  174. package/build/plugins/resource/apim/constants.d.ts +8 -7
  175. package/build/plugins/resource/apim/constants.d.ts.map +1 -1
  176. package/build/plugins/resource/apim/constants.js +55 -55
  177. package/build/plugins/resource/apim/constants.js.map +1 -1
  178. package/build/plugins/resource/apim/error.d.ts +0 -1
  179. package/build/plugins/resource/apim/error.d.ts.map +1 -1
  180. package/build/plugins/resource/apim/error.js +20 -24
  181. package/build/plugins/resource/apim/error.js.map +1 -1
  182. package/build/plugins/resource/appstudio/appStudio.js +2 -2
  183. package/build/plugins/resource/appstudio/appStudio.js.map +1 -1
  184. package/build/plugins/resource/appstudio/constants.d.ts +11 -0
  185. package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
  186. package/build/plugins/resource/appstudio/constants.js +12 -1
  187. package/build/plugins/resource/appstudio/constants.js.map +1 -1
  188. package/build/plugins/resource/appstudio/errors.d.ts +9 -33
  189. package/build/plugins/resource/appstudio/errors.d.ts.map +1 -1
  190. package/build/plugins/resource/appstudio/errors.js +37 -64
  191. package/build/plugins/resource/appstudio/errors.js.map +1 -1
  192. package/build/plugins/resource/appstudio/index.d.ts +1 -1
  193. package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
  194. package/build/plugins/resource/appstudio/index.js +12 -9
  195. package/build/plugins/resource/appstudio/index.js.map +1 -1
  196. package/build/plugins/resource/appstudio/manifestTemplate.d.ts +10 -4
  197. package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
  198. package/build/plugins/resource/appstudio/manifestTemplate.js +147 -63
  199. package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
  200. package/build/plugins/resource/appstudio/plugin.d.ts +2 -2
  201. package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
  202. package/build/plugins/resource/appstudio/plugin.js +110 -58
  203. package/build/plugins/resource/appstudio/plugin.js.map +1 -1
  204. package/build/plugins/resource/appstudio/questions.d.ts.map +1 -1
  205. package/build/plugins/resource/appstudio/questions.js +5 -4
  206. package/build/plugins/resource/appstudio/questions.js.map +1 -1
  207. package/build/plugins/resource/appstudio/utils/utils.d.ts.map +1 -1
  208. package/build/plugins/resource/appstudio/utils/utils.js +2 -1
  209. package/build/plugins/resource/appstudio/utils/utils.js.map +1 -1
  210. package/build/plugins/resource/appstudio/v2/index.d.ts +2 -3
  211. package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
  212. package/build/plugins/resource/appstudio/v2/index.js +1 -2
  213. package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
  214. package/build/plugins/resource/appstudio/v3/index.d.ts +2 -2
  215. package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
  216. package/build/plugins/resource/appstudio/v3/index.js +2 -2
  217. package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
  218. package/build/plugins/resource/appstudio/v3/plugin.d.ts +2 -2
  219. package/build/plugins/resource/appstudio/v3/plugin.d.ts.map +1 -1
  220. package/build/plugins/resource/appstudio/v3/plugin.js +3 -3
  221. package/build/plugins/resource/appstudio/v3/plugin.js.map +1 -1
  222. package/build/plugins/resource/bot/aadRegistration.d.ts.map +1 -1
  223. package/build/plugins/resource/bot/aadRegistration.js +4 -8
  224. package/build/plugins/resource/bot/aadRegistration.js.map +1 -1
  225. package/build/plugins/resource/bot/appStudio/appStudio.d.ts.map +1 -1
  226. package/build/plugins/resource/bot/appStudio/appStudio.js +5 -8
  227. package/build/plugins/resource/bot/appStudio/appStudio.js.map +1 -1
  228. package/build/plugins/resource/bot/azureOps.d.ts +0 -1
  229. package/build/plugins/resource/bot/azureOps.d.ts.map +1 -1
  230. package/build/plugins/resource/bot/azureOps.js +2 -21
  231. package/build/plugins/resource/bot/azureOps.js.map +1 -1
  232. package/build/plugins/resource/bot/configs/localDebugConfig.d.ts.map +1 -1
  233. package/build/plugins/resource/bot/configs/localDebugConfig.js +13 -38
  234. package/build/plugins/resource/bot/configs/localDebugConfig.js.map +1 -1
  235. package/build/plugins/resource/bot/configs/scaffoldConfig.d.ts +11 -0
  236. package/build/plugins/resource/bot/configs/scaffoldConfig.d.ts.map +1 -1
  237. package/build/plugins/resource/bot/configs/scaffoldConfig.js +55 -6
  238. package/build/plugins/resource/bot/configs/scaffoldConfig.js.map +1 -1
  239. package/build/plugins/resource/bot/configs/teamsBotConfig.d.ts.map +1 -1
  240. package/build/plugins/resource/bot/configs/teamsBotConfig.js +8 -1
  241. package/build/plugins/resource/bot/configs/teamsBotConfig.js.map +1 -1
  242. package/build/plugins/resource/bot/constants.d.ts +25 -2
  243. package/build/plugins/resource/bot/constants.d.ts.map +1 -1
  244. package/build/plugins/resource/bot/constants.js +27 -3
  245. package/build/plugins/resource/bot/constants.js.map +1 -1
  246. package/build/plugins/resource/bot/enums/pluginActRoles.d.ts +2 -1
  247. package/build/plugins/resource/bot/enums/pluginActRoles.d.ts.map +1 -1
  248. package/build/plugins/resource/bot/enums/pluginActRoles.js +1 -0
  249. package/build/plugins/resource/bot/enums/pluginActRoles.js.map +1 -1
  250. package/build/plugins/resource/bot/errors.d.ts +44 -23
  251. package/build/plugins/resource/bot/errors.d.ts.map +1 -1
  252. package/build/plugins/resource/bot/errors.js +57 -44
  253. package/build/plugins/resource/bot/errors.js.map +1 -1
  254. package/build/plugins/resource/bot/functionsHostedBot/plugin.d.ts +7 -0
  255. package/build/plugins/resource/bot/functionsHostedBot/plugin.d.ts.map +1 -0
  256. package/build/plugins/resource/bot/functionsHostedBot/plugin.js +39 -0
  257. package/build/plugins/resource/bot/functionsHostedBot/plugin.js.map +1 -0
  258. package/build/plugins/resource/bot/index.d.ts +8 -3
  259. package/build/plugins/resource/bot/index.d.ts.map +1 -1
  260. package/build/plugins/resource/bot/index.js +84 -31
  261. package/build/plugins/resource/bot/index.js.map +1 -1
  262. package/build/plugins/resource/bot/languageStrategy.d.ts +4 -1
  263. package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
  264. package/build/plugins/resource/bot/languageStrategy.js +30 -3
  265. package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
  266. package/build/plugins/resource/bot/plugin.d.ts +3 -6
  267. package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
  268. package/build/plugins/resource/bot/plugin.js +42 -110
  269. package/build/plugins/resource/bot/plugin.js.map +1 -1
  270. package/build/plugins/resource/bot/question.d.ts +12 -0
  271. package/build/plugins/resource/bot/question.d.ts.map +1 -0
  272. package/build/plugins/resource/bot/question.js +69 -0
  273. package/build/plugins/resource/bot/question.js.map +1 -0
  274. package/build/plugins/resource/bot/resources/messages.d.ts +34 -56
  275. package/build/plugins/resource/bot/resources/messages.d.ts.map +1 -1
  276. package/build/plugins/resource/bot/resources/messages.js +58 -73
  277. package/build/plugins/resource/bot/resources/messages.js.map +1 -1
  278. package/build/plugins/resource/bot/resources/strings.d.ts +17 -28
  279. package/build/plugins/resource/bot/resources/strings.d.ts.map +1 -1
  280. package/build/plugins/resource/bot/resources/strings.js +19 -30
  281. package/build/plugins/resource/bot/resources/strings.js.map +1 -1
  282. package/build/plugins/resource/bot/utils/common.d.ts +5 -1
  283. package/build/plugins/resource/bot/utils/common.d.ts.map +1 -1
  284. package/build/plugins/resource/bot/utils/common.js +19 -1
  285. package/build/plugins/resource/bot/utils/common.js.map +1 -1
  286. package/build/plugins/resource/bot/utils/retryHandler.d.ts +1 -1
  287. package/build/plugins/resource/bot/utils/retryHandler.d.ts.map +1 -1
  288. package/build/plugins/resource/bot/utils/retryHandler.js.map +1 -1
  289. package/build/plugins/resource/bot/utils/telemetry-helper.d.ts.map +1 -1
  290. package/build/plugins/resource/bot/utils/telemetry-helper.js +3 -1
  291. package/build/plugins/resource/bot/utils/telemetry-helper.js.map +1 -1
  292. package/build/plugins/resource/bot/v2/index.d.ts +3 -1
  293. package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
  294. package/build/plugins/resource/bot/v2/index.js +6 -0
  295. package/build/plugins/resource/bot/v2/index.js.map +1 -1
  296. package/build/plugins/resource/bot/v3/index.d.ts +2 -1
  297. package/build/plugins/resource/bot/v3/index.d.ts.map +1 -1
  298. package/build/plugins/resource/bot/v3/index.js +15 -1
  299. package/build/plugins/resource/bot/v3/index.js.map +1 -1
  300. package/build/plugins/resource/cicd/constants.d.ts +39 -0
  301. package/build/plugins/resource/cicd/constants.d.ts.map +1 -0
  302. package/build/plugins/resource/cicd/constants.js +52 -0
  303. package/build/plugins/resource/cicd/constants.js.map +1 -0
  304. package/build/plugins/resource/cicd/errors.d.ts +24 -0
  305. package/build/plugins/resource/cicd/errors.d.ts.map +1 -0
  306. package/build/plugins/resource/cicd/errors.js +48 -0
  307. package/build/plugins/resource/cicd/errors.js.map +1 -0
  308. package/build/plugins/resource/cicd/index.d.ts +17 -0
  309. package/build/plugins/resource/cicd/index.d.ts.map +1 -0
  310. package/build/plugins/resource/cicd/index.js +117 -0
  311. package/build/plugins/resource/cicd/index.js.map +1 -0
  312. package/build/plugins/resource/cicd/logger.d.ts +10 -0
  313. package/build/plugins/resource/cicd/logger.d.ts.map +1 -0
  314. package/build/plugins/resource/cicd/logger.js +27 -0
  315. package/build/plugins/resource/cicd/logger.js.map +1 -0
  316. package/build/plugins/resource/cicd/plugin.d.ts +10 -0
  317. package/build/plugins/resource/cicd/plugin.d.ts.map +1 -0
  318. package/build/plugins/resource/cicd/plugin.js +78 -0
  319. package/build/plugins/resource/cicd/plugin.js.map +1 -0
  320. package/build/plugins/resource/cicd/providers/azdoProvider.d.ts +6 -0
  321. package/build/plugins/resource/cicd/providers/azdoProvider.d.ts.map +1 -0
  322. package/build/plugins/resource/cicd/providers/azdoProvider.js +25 -0
  323. package/build/plugins/resource/cicd/providers/azdoProvider.js.map +1 -0
  324. package/build/plugins/resource/cicd/providers/enums.d.ts +12 -0
  325. package/build/plugins/resource/cicd/providers/enums.d.ts.map +1 -0
  326. package/build/plugins/resource/cicd/providers/enums.js +19 -0
  327. package/build/plugins/resource/cicd/providers/enums.js.map +1 -0
  328. package/build/plugins/resource/cicd/providers/factory.d.ts +6 -0
  329. package/build/plugins/resource/cicd/providers/factory.d.ts.map +1 -0
  330. package/build/plugins/resource/cicd/providers/factory.js +28 -0
  331. package/build/plugins/resource/cicd/providers/factory.js.map +1 -0
  332. package/build/plugins/resource/cicd/providers/githubProvider.d.ts +6 -0
  333. package/build/plugins/resource/cicd/providers/githubProvider.d.ts.map +1 -0
  334. package/build/plugins/resource/cicd/providers/githubProvider.js +25 -0
  335. package/build/plugins/resource/cicd/providers/githubProvider.js.map +1 -0
  336. package/build/plugins/resource/cicd/providers/jenkinsProvider.d.ts +6 -0
  337. package/build/plugins/resource/cicd/providers/jenkinsProvider.d.ts.map +1 -0
  338. package/build/plugins/resource/cicd/providers/jenkinsProvider.js +25 -0
  339. package/build/plugins/resource/cicd/providers/jenkinsProvider.js.map +1 -0
  340. package/build/plugins/resource/cicd/providers/provider.d.ts +11 -0
  341. package/build/plugins/resource/cicd/providers/provider.d.ts.map +1 -0
  342. package/build/plugins/resource/cicd/providers/provider.js +92 -0
  343. package/build/plugins/resource/cicd/providers/provider.js.map +1 -0
  344. package/build/plugins/resource/cicd/questions.d.ts +14 -0
  345. package/build/plugins/resource/cicd/questions.d.ts.map +1 -0
  346. package/build/plugins/resource/cicd/questions.js +45 -0
  347. package/build/plugins/resource/cicd/questions.js.map +1 -0
  348. package/build/plugins/resource/cicd/result.d.ts +11 -0
  349. package/build/plugins/resource/cicd/result.d.ts.map +1 -0
  350. package/build/plugins/resource/cicd/result.js +23 -0
  351. package/build/plugins/resource/cicd/result.js.map +1 -0
  352. package/build/plugins/resource/cicd/utils/buildScripts.d.ts +3 -0
  353. package/build/plugins/resource/cicd/utils/buildScripts.d.ts.map +1 -0
  354. package/build/plugins/resource/cicd/utils/buildScripts.js +34 -0
  355. package/build/plugins/resource/cicd/utils/buildScripts.js.map +1 -0
  356. package/build/plugins/resource/cicd/utils/telemetry-helper.d.ts +29 -0
  357. package/build/plugins/resource/cicd/utils/telemetry-helper.d.ts.map +1 -0
  358. package/build/plugins/resource/cicd/utils/telemetry-helper.js +46 -0
  359. package/build/plugins/resource/cicd/utils/telemetry-helper.js.map +1 -0
  360. package/build/plugins/resource/frontend/configs.js +4 -4
  361. package/build/plugins/resource/frontend/configs.js.map +1 -1
  362. package/build/plugins/resource/frontend/dotnet/ops/scaffold.d.ts.map +1 -1
  363. package/build/plugins/resource/frontend/dotnet/ops/scaffold.js +1 -2
  364. package/build/plugins/resource/frontend/dotnet/ops/scaffold.js.map +1 -1
  365. package/build/plugins/resource/frontend/dotnet/plugin.d.ts +2 -2
  366. package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -1
  367. package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -1
  368. package/build/plugins/resource/frontend/env.d.ts.map +1 -1
  369. package/build/plugins/resource/frontend/env.js +2 -3
  370. package/build/plugins/resource/frontend/env.js.map +1 -1
  371. package/build/plugins/resource/frontend/index.d.ts.map +1 -1
  372. package/build/plugins/resource/frontend/index.js +3 -3
  373. package/build/plugins/resource/frontend/index.js.map +1 -1
  374. package/build/plugins/resource/frontend/ops/scaffold.d.ts.map +1 -1
  375. package/build/plugins/resource/frontend/ops/scaffold.js +1 -1
  376. package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
  377. package/build/plugins/resource/frontend/resources/errors.d.ts +5 -4
  378. package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
  379. package/build/plugins/resource/frontend/resources/errors.js +50 -65
  380. package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
  381. package/build/plugins/resource/frontend/resources/messages.d.ts +0 -2
  382. package/build/plugins/resource/frontend/resources/messages.d.ts.map +1 -1
  383. package/build/plugins/resource/frontend/resources/messages.js +0 -2
  384. package/build/plugins/resource/frontend/resources/messages.js.map +1 -1
  385. package/build/plugins/resource/frontend/resources/templateInfo.d.ts +1 -0
  386. package/build/plugins/resource/frontend/resources/templateInfo.d.ts.map +1 -1
  387. package/build/plugins/resource/frontend/resources/templateInfo.js +3 -1
  388. package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
  389. package/build/plugins/resource/frontend/utils/telemetry-helper.d.ts +1 -1
  390. package/build/plugins/resource/frontend/utils/telemetry-helper.d.ts.map +1 -1
  391. package/build/plugins/resource/frontend/utils/telemetry-helper.js +2 -3
  392. package/build/plugins/resource/frontend/utils/telemetry-helper.js.map +1 -1
  393. package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
  394. package/build/plugins/resource/frontend/v2/index.js.map +1 -1
  395. package/build/plugins/resource/frontend/v3/error.d.ts.map +1 -1
  396. package/build/plugins/resource/frontend/v3/error.js +8 -20
  397. package/build/plugins/resource/frontend/v3/error.js.map +1 -1
  398. package/build/plugins/resource/function/index.d.ts.map +1 -1
  399. package/build/plugins/resource/function/index.js +1 -2
  400. package/build/plugins/resource/function/index.js.map +1 -1
  401. package/build/plugins/resource/function/ops/scaffold.d.ts.map +1 -1
  402. package/build/plugins/resource/function/ops/scaffold.js +1 -1
  403. package/build/plugins/resource/function/ops/scaffold.js.map +1 -1
  404. package/build/plugins/resource/function/plugin.d.ts +0 -2
  405. package/build/plugins/resource/function/plugin.d.ts.map +1 -1
  406. package/build/plugins/resource/function/plugin.js +2 -50
  407. package/build/plugins/resource/function/plugin.js.map +1 -1
  408. package/build/plugins/resource/function/resources/errors.d.ts +2 -15
  409. package/build/plugins/resource/function/resources/errors.d.ts.map +1 -1
  410. package/build/plugins/resource/function/resources/errors.js +40 -74
  411. package/build/plugins/resource/function/resources/errors.js.map +1 -1
  412. package/build/plugins/resource/function/utils/telemetry-helper.d.ts +1 -2
  413. package/build/plugins/resource/function/utils/telemetry-helper.d.ts.map +1 -1
  414. package/build/plugins/resource/function/utils/telemetry-helper.js +2 -3
  415. package/build/plugins/resource/function/utils/telemetry-helper.js.map +1 -1
  416. package/build/plugins/resource/function/v3/error.d.ts +1 -1
  417. package/build/plugins/resource/function/v3/error.d.ts.map +1 -1
  418. package/build/plugins/resource/function/v3/error.js +12 -23
  419. package/build/plugins/resource/function/v3/error.js.map +1 -1
  420. package/build/plugins/resource/function/v3/index.d.ts.map +1 -1
  421. package/build/plugins/resource/function/v3/index.js +1 -1
  422. package/build/plugins/resource/function/v3/index.js.map +1 -1
  423. package/build/plugins/resource/identity/constants.d.ts +2 -1
  424. package/build/plugins/resource/identity/constants.d.ts.map +1 -1
  425. package/build/plugins/resource/identity/constants.js +2 -1
  426. package/build/plugins/resource/identity/constants.js.map +1 -1
  427. package/build/plugins/resource/identity/index.d.ts +4 -16
  428. package/build/plugins/resource/identity/index.d.ts.map +1 -1
  429. package/build/plugins/resource/identity/index.js +46 -119
  430. package/build/plugins/resource/identity/index.js.map +1 -1
  431. package/build/plugins/resource/identity/utils/telemetryUtil.d.ts +3 -3
  432. package/build/plugins/resource/identity/utils/telemetryUtil.d.ts.map +1 -1
  433. package/build/plugins/resource/identity/utils/telemetryUtil.js +6 -6
  434. package/build/plugins/resource/identity/utils/telemetryUtil.js.map +1 -1
  435. package/build/plugins/resource/identity/v2/index.d.ts.map +1 -1
  436. package/build/plugins/resource/identity/v2/index.js.map +1 -1
  437. package/build/plugins/resource/identity/v3/index.d.ts +0 -2
  438. package/build/plugins/resource/identity/v3/index.d.ts.map +1 -1
  439. package/build/plugins/resource/identity/v3/index.js +0 -2
  440. package/build/plugins/resource/identity/v3/index.js.map +1 -1
  441. package/build/plugins/resource/index.d.ts +1 -0
  442. package/build/plugins/resource/index.d.ts.map +1 -1
  443. package/build/plugins/resource/index.js +1 -0
  444. package/build/plugins/resource/index.js.map +1 -1
  445. package/build/plugins/resource/simpleauth/constants.d.ts +1 -1
  446. package/build/plugins/resource/simpleauth/constants.d.ts.map +1 -1
  447. package/build/plugins/resource/simpleauth/constants.js +4 -3
  448. package/build/plugins/resource/simpleauth/constants.js.map +1 -1
  449. package/build/plugins/resource/simpleauth/errors.d.ts.map +1 -1
  450. package/build/plugins/resource/simpleauth/errors.js +13 -12
  451. package/build/plugins/resource/simpleauth/errors.js.map +1 -1
  452. package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
  453. package/build/plugins/resource/simpleauth/plugin.js +2 -13
  454. package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
  455. package/build/plugins/resource/simpleauth/utils/common.d.ts.map +1 -1
  456. package/build/plugins/resource/simpleauth/utils/common.js +17 -50
  457. package/build/plugins/resource/simpleauth/utils/common.js.map +1 -1
  458. package/build/plugins/resource/spfx/error.d.ts.map +1 -1
  459. package/build/plugins/resource/spfx/error.js +8 -9
  460. package/build/plugins/resource/spfx/error.js.map +1 -1
  461. package/build/plugins/resource/spfx/index.d.ts.map +1 -1
  462. package/build/plugins/resource/spfx/index.js +3 -29
  463. package/build/plugins/resource/spfx/index.js.map +1 -1
  464. package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
  465. package/build/plugins/resource/spfx/plugin.js +149 -78
  466. package/build/plugins/resource/spfx/plugin.js.map +1 -1
  467. package/build/plugins/resource/spfx/utils/constants.d.ts +11 -6
  468. package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
  469. package/build/plugins/resource/spfx/utils/constants.js +15 -8
  470. package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
  471. package/build/plugins/resource/spfx/utils/progress-helper.d.ts +3 -0
  472. package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
  473. package/build/plugins/resource/spfx/utils/progress-helper.js +11 -0
  474. package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
  475. package/build/plugins/resource/spfx/utils/questions.d.ts.map +1 -1
  476. package/build/plugins/resource/spfx/utils/questions.js +11 -4
  477. package/build/plugins/resource/spfx/utils/questions.js.map +1 -1
  478. package/build/plugins/resource/spfx/utils/utils.js +2 -2
  479. package/build/plugins/resource/spfx/utils/utils.js.map +1 -1
  480. package/build/plugins/resource/spfx/v3/index.d.ts.map +1 -1
  481. package/build/plugins/resource/spfx/v3/index.js +2 -14
  482. package/build/plugins/resource/spfx/v3/index.js.map +1 -1
  483. package/build/plugins/resource/spfx/v3/plugin.d.ts.map +1 -1
  484. package/build/plugins/resource/spfx/v3/plugin.js +9 -8
  485. package/build/plugins/resource/spfx/v3/plugin.js.map +1 -1
  486. package/build/plugins/resource/sql/constants.d.ts +0 -6
  487. package/build/plugins/resource/sql/constants.d.ts.map +1 -1
  488. package/build/plugins/resource/sql/constants.js +0 -6
  489. package/build/plugins/resource/sql/constants.js.map +1 -1
  490. package/build/plugins/resource/sql/errors.d.ts +0 -10
  491. package/build/plugins/resource/sql/errors.d.ts.map +1 -1
  492. package/build/plugins/resource/sql/errors.js +18 -27
  493. package/build/plugins/resource/sql/errors.js.map +1 -1
  494. package/build/plugins/resource/sql/questions.d.ts.map +1 -1
  495. package/build/plugins/resource/sql/questions.js +4 -3
  496. package/build/plugins/resource/sql/questions.js.map +1 -1
  497. package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
  498. package/build/plugins/resource/sql/sqlClient.js +8 -2
  499. package/build/plugins/resource/sql/sqlClient.js.map +1 -1
  500. package/build/plugins/resource/sql/utils/checkInput.d.ts.map +1 -1
  501. package/build/plugins/resource/sql/utils/checkInput.js +11 -11
  502. package/build/plugins/resource/sql/utils/checkInput.js.map +1 -1
  503. package/build/plugins/resource/sql/utils/message.d.ts +0 -17
  504. package/build/plugins/resource/sql/utils/message.d.ts.map +1 -1
  505. package/build/plugins/resource/sql/utils/message.js +0 -17
  506. package/build/plugins/resource/sql/utils/message.js.map +1 -1
  507. package/build/plugins/resource/utils4v2.d.ts +4 -0
  508. package/build/plugins/resource/utils4v2.d.ts.map +1 -1
  509. package/build/plugins/resource/utils4v2.js +30 -6
  510. package/build/plugins/resource/utils4v2.js.map +1 -1
  511. package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts +1 -0
  512. package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
  513. package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +1 -0
  514. package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +1 -1
  515. package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
  516. package/build/plugins/solution/fx-solution/arm.js +19 -14
  517. package/build/plugins/solution/fx-solution/arm.js.map +1 -1
  518. package/build/plugins/solution/fx-solution/debug/constants.d.ts +5 -0
  519. package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -1
  520. package/build/plugins/solution/fx-solution/debug/constants.js +7 -1
  521. package/build/plugins/solution/fx-solution/debug/constants.js.map +1 -1
  522. package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -1
  523. package/build/plugins/solution/fx-solution/debug/provisionLocal.js +18 -12
  524. package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
  525. package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
  526. package/build/plugins/solution/fx-solution/debug/scaffolding.js +24 -41
  527. package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
  528. package/build/plugins/solution/fx-solution/debug/util/launch.d.ts.map +1 -1
  529. package/build/plugins/solution/fx-solution/debug/util/launch.js +5 -1
  530. package/build/plugins/solution/fx-solution/debug/util/launch.js.map +1 -1
  531. package/build/plugins/solution/fx-solution/debug/util/launchNext.d.ts +2 -0
  532. package/build/plugins/solution/fx-solution/debug/util/launchNext.d.ts.map +1 -1
  533. package/build/plugins/solution/fx-solution/debug/util/launchNext.js +116 -1
  534. package/build/plugins/solution/fx-solution/debug/util/launchNext.js.map +1 -1
  535. package/build/plugins/solution/fx-solution/debug/util/tasksNext.d.ts +2 -1
  536. package/build/plugins/solution/fx-solution/debug/util/tasksNext.d.ts.map +1 -1
  537. package/build/plugins/solution/fx-solution/debug/util/tasksNext.js +151 -3
  538. package/build/plugins/solution/fx-solution/debug/util/tasksNext.js.map +1 -1
  539. package/build/plugins/solution/fx-solution/question.d.ts +16 -4
  540. package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
  541. package/build/plugins/solution/fx-solution/question.js +59 -78
  542. package/build/plugins/solution/fx-solution/question.js.map +1 -1
  543. package/build/plugins/solution/fx-solution/solution.d.ts +5 -11
  544. package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
  545. package/build/plugins/solution/fx-solution/solution.js +50 -59
  546. package/build/plugins/solution/fx-solution/solution.js.map +1 -1
  547. package/build/plugins/solution/fx-solution/types.d.ts +10 -0
  548. package/build/plugins/solution/fx-solution/types.d.ts.map +1 -0
  549. package/build/plugins/solution/fx-solution/types.js +12 -0
  550. package/build/plugins/solution/fx-solution/types.js.map +1 -0
  551. package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts +0 -3
  552. package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts.map +1 -1
  553. package/build/plugins/solution/fx-solution/utils/progressHelper.js +4 -8
  554. package/build/plugins/solution/fx-solution/utils/progressHelper.js.map +1 -1
  555. package/build/plugins/solution/fx-solution/v2/adaptor.js +6 -6
  556. package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
  557. package/build/plugins/solution/fx-solution/v2/checkPermission.d.ts.map +1 -1
  558. package/build/plugins/solution/fx-solution/v2/checkPermission.js +20 -13
  559. package/build/plugins/solution/fx-solution/v2/checkPermission.js.map +1 -1
  560. package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -1
  561. package/build/plugins/solution/fx-solution/v2/createEnv.js +2 -1
  562. package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -1
  563. package/build/plugins/solution/fx-solution/v2/deploy.d.ts.map +1 -1
  564. package/build/plugins/solution/fx-solution/v2/deploy.js +8 -10
  565. package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
  566. package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
  567. package/build/plugins/solution/fx-solution/v2/executeUserTask.js +52 -24
  568. package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
  569. package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
  570. package/build/plugins/solution/fx-solution/v2/getQuestions.js +27 -11
  571. package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
  572. package/build/plugins/solution/fx-solution/v2/grantPermission.d.ts.map +1 -1
  573. package/build/plugins/solution/fx-solution/v2/grantPermission.js +16 -16
  574. package/build/plugins/solution/fx-solution/v2/grantPermission.js.map +1 -1
  575. package/build/plugins/solution/fx-solution/v2/listCollaborator.d.ts.map +1 -1
  576. package/build/plugins/solution/fx-solution/v2/listCollaborator.js +24 -17
  577. package/build/plugins/solution/fx-solution/v2/listCollaborator.js.map +1 -1
  578. package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
  579. package/build/plugins/solution/fx-solution/v2/provision.js +20 -15
  580. package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
  581. package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts.map +1 -1
  582. package/build/plugins/solution/fx-solution/v2/provisionLocal.js +10 -3
  583. package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -1
  584. package/build/plugins/solution/fx-solution/v2/publish.d.ts.map +1 -1
  585. package/build/plugins/solution/fx-solution/v2/publish.js +12 -6
  586. package/build/plugins/solution/fx-solution/v2/publish.js.map +1 -1
  587. package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
  588. package/build/plugins/solution/fx-solution/v2/scaffolding.js +21 -21
  589. package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
  590. package/build/plugins/solution/fx-solution/v2/utils.d.ts +1 -1
  591. package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
  592. package/build/plugins/solution/fx-solution/v2/utils.js +21 -11
  593. package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
  594. package/build/plugins/solution/fx-solution/v3/addFeature.d.ts.map +1 -1
  595. package/build/plugins/solution/fx-solution/v3/addFeature.js +8 -15
  596. package/build/plugins/solution/fx-solution/v3/addFeature.js.map +1 -1
  597. package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
  598. package/build/plugins/solution/fx-solution/v3/deploy.js +5 -7
  599. package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
  600. package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
  601. package/build/plugins/solution/fx-solution/v3/provision.js +34 -21
  602. package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
  603. package/build/plugins/solution/fx-solution/v3/publish.d.ts.map +1 -1
  604. package/build/plugins/solution/fx-solution/v3/publish.js +4 -1
  605. package/build/plugins/solution/fx-solution/v3/publish.js.map +1 -1
  606. package/build/plugins/solution/fx-solution/v3/userTask.d.ts.map +1 -1
  607. package/build/plugins/solution/fx-solution/v3/userTask.js +12 -11
  608. package/build/plugins/solution/fx-solution/v3/userTask.js.map +1 -1
  609. package/build/plugins/solution/spfx-solution/addFeature.d.ts.map +1 -1
  610. package/build/plugins/solution/spfx-solution/addFeature.js +2 -2
  611. package/build/plugins/solution/spfx-solution/addFeature.js.map +1 -1
  612. package/package.json +9 -9
  613. package/resource/package.nls.json +515 -0
  614. package/templates/core/README-auto-generated.md +0 -0
  615. package/templates/plugins/resource/aad/manifest/aad.template.json +116 -0
  616. package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +14 -8
  617. package/templates/plugins/resource/bot/bot.csharp.default.zip +0 -0
  618. package/templates/plugins/resource/bot/bot.js.default.zip +0 -0
  619. package/templates/plugins/resource/bot/bot.ts.default.zip +0 -0
  620. package/templates/plugins/resource/cicd/azdo/README.md +48 -0
  621. package/templates/plugins/resource/cicd/azdo/cd.yml +55 -0
  622. package/templates/plugins/resource/cicd/azdo/ci.yml +37 -0
  623. package/templates/plugins/resource/cicd/azdo/provision.yml +54 -0
  624. package/templates/plugins/resource/cicd/azdo/publish.yml +46 -0
  625. package/templates/plugins/resource/cicd/github/README.md +48 -0
  626. package/templates/plugins/resource/cicd/github/cd.yml +71 -0
  627. package/templates/plugins/resource/cicd/github/ci.yml +34 -0
  628. package/templates/plugins/resource/cicd/github/provision.yml +65 -0
  629. package/templates/plugins/resource/cicd/github/publish.yml +47 -0
  630. package/templates/plugins/resource/cicd/jenkins/Jenkinsfile.cd +78 -0
  631. package/templates/plugins/resource/cicd/jenkins/Jenkinsfile.ci +34 -0
  632. package/templates/plugins/resource/cicd/jenkins/Jenkinsfile.provision +79 -0
  633. package/templates/plugins/resource/cicd/jenkins/Jenkinsfile.publish +57 -0
  634. package/templates/plugins/resource/cicd/jenkins/README.md +45 -0
  635. package/templates/plugins/resource/dotnet/blazor-base.csharp.default.zip +0 -0
  636. package/templates/plugins/resource/frontend/tab.csharp.default.zip +0 -0
  637. package/templates/plugins/resource/frontend/tab.js.default.zip +0 -0
  638. package/templates/plugins/resource/frontend/tab.ts.default.zip +0 -0
  639. package/templates/plugins/resource/function/function-base.js.default.zip +0 -0
  640. package/templates/plugins/resource/function/function-base.ts.default.zip +0 -0
  641. package/templates/plugins/resource/function/function-triggers.js.HTTPTrigger.zip +0 -0
  642. package/templates/plugins/resource/function/function-triggers.ts.HTTPTrigger.zip +0 -0
  643. package/build/common/fileUtils.d.ts +0 -2
  644. package/build/common/fileUtils.d.ts.map +0 -1
  645. package/build/common/fileUtils.js +0 -46
  646. package/build/common/fileUtils.js.map +0 -1
  647. package/build/common/projectSettingsValidator.d.ts +0 -3
  648. package/build/common/projectSettingsValidator.d.ts.map +0 -1
  649. package/build/common/projectSettingsValidator.js +0 -54
  650. package/build/common/projectSettingsValidator.js.map +0 -1
  651. package/build/core/tools.d.ts +0 -8
  652. package/build/core/tools.d.ts.map +0 -1
  653. package/build/core/tools.js +0 -72
  654. package/build/core/tools.js.map +0 -1
  655. package/build/core/utils.d.ts +0 -3
  656. package/build/core/utils.d.ts.map +0 -1
  657. package/build/core/utils.js +0 -10
  658. package/build/core/utils.js.map +0 -1
  659. package/build/plugins/resource/aad/utils/common.d.ts +0 -19
  660. package/build/plugins/resource/aad/utils/common.d.ts.map +0 -1
  661. package/build/plugins/resource/aad/utils/common.js +0 -132
  662. package/build/plugins/resource/aad/utils/common.js.map +0 -1
  663. package/build/plugins/resource/frontend/dotnet/error-factory.d.ts +0 -10
  664. package/build/plugins/resource/frontend/dotnet/error-factory.d.ts.map +0 -1
  665. package/build/plugins/resource/frontend/dotnet/error-factory.js +0 -20
  666. package/build/plugins/resource/frontend/dotnet/error-factory.js.map +0 -1
  667. package/build/plugins/resource/identity/config.d.ts +0 -11
  668. package/build/plugins/resource/identity/config.d.ts.map +0 -1
  669. package/build/plugins/resource/identity/config.js +0 -17
  670. package/build/plugins/resource/identity/config.js.map +0 -1
  671. package/build/plugins/resource/identity/errors.d.ts +0 -11
  672. package/build/plugins/resource/identity/errors.d.ts.map +0 -1
  673. package/build/plugins/resource/identity/errors.js +0 -15
  674. package/build/plugins/resource/identity/errors.js.map +0 -1
  675. package/build/plugins/resource/identity/results.d.ts +0 -10
  676. package/build/plugins/resource/identity/results.d.ts.map +0 -1
  677. package/build/plugins/resource/identity/results.js +0 -18
  678. package/build/plugins/resource/identity/results.js.map +0 -1
  679. package/build/plugins/resource/identity/utils/commonUtils.d.ts +0 -2
  680. package/build/plugins/resource/identity/utils/commonUtils.d.ts.map +0 -1
  681. package/build/plugins/resource/identity/utils/commonUtils.js +0 -10
  682. package/build/plugins/resource/identity/utils/commonUtils.js.map +0 -1
  683. package/build/plugins/resource/identity/utils/contextUtils.d.ts +0 -5
  684. package/build/plugins/resource/identity/utils/contextUtils.d.ts.map +0 -1
  685. package/build/plugins/resource/identity/utils/contextUtils.js +0 -11
  686. package/build/plugins/resource/identity/utils/contextUtils.js.map +0 -1
  687. package/build/plugins/resource/identity/utils/messages.d.ts +0 -10
  688. package/build/plugins/resource/identity/utils/messages.d.ts.map +0 -1
  689. package/build/plugins/resource/identity/utils/messages.js +0 -15
  690. package/build/plugins/resource/identity/utils/messages.js.map +0 -1
  691. package/resource/strings.json +0 -103
  692. package/templates/plugins/resource/bot/bot-msgext.csharp.default.zip +0 -0
  693. package/templates/plugins/resource/bot/bot-msgext.js.default.zip +0 -0
  694. package/templates/plugins/resource/bot/bot-msgext.ts.default.zip +0 -0
  695. package/templates/plugins/resource/bot/msgext.js.default.zip +0 -0
  696. package/templates/plugins/resource/bot/msgext.ts.default.zip +0 -0
@@ -6,7 +6,6 @@ exports.LocalSettingsLoaderMW = void 0;
6
6
  const tslib_1 = require("tslib");
7
7
  const teamsfx_api_1 = require("@microsoft/teamsfx-api");
8
8
  const fs = tslib_1.__importStar(require("fs-extra"));
9
- const __1 = require("..");
10
9
  const localSettingsProvider_1 = require("../../common/localSettingsProvider");
11
10
  const constants_1 = require("../../plugins/solution/fx-solution/constants");
12
11
  const ResourcePluginContainer_1 = require("../../plugins/solution/fx-solution/ResourcePluginContainer");
@@ -18,12 +17,12 @@ const LocalSettingsLoaderMW = async (ctx, next) => {
18
17
  if (!projectSettingsLoader_1.shouldIgnored(ctx) && !tools_1.isConfigUnifyEnabled()) {
19
18
  const inputs = ctx.arguments[ctx.arguments.length - 1];
20
19
  if (!inputs.projectPath) {
21
- ctx.result = teamsfx_api_1.err(__1.NoProjectOpenedError());
20
+ ctx.result = teamsfx_api_1.err(new error_1.NoProjectOpenedError());
22
21
  return;
23
22
  }
24
23
  const projectPathExist = await fs.pathExists(inputs.projectPath);
25
24
  if (!projectPathExist) {
26
- ctx.result = teamsfx_api_1.err(__1.PathNotExistError(inputs.projectPath));
25
+ ctx.result = teamsfx_api_1.err(new error_1.PathNotExistError(inputs.projectPath));
27
26
  return;
28
27
  }
29
28
  if (!ctx.projectSettings) {
@@ -37,7 +36,7 @@ const LocalSettingsLoaderMW = async (ctx, next) => {
37
36
  const hasBackend = selectedPlugins === null || selectedPlugins === void 0 ? void 0 : selectedPlugins.some((plugin) => plugin.name === constants_1.PluginNames.FUNC);
38
37
  const hasBot = selectedPlugins === null || selectedPlugins === void 0 ? void 0 : selectedPlugins.some((plugin) => plugin.name === constants_1.PluginNames.BOT);
39
38
  const hasSimpleAuth = tools_1.IsSimpleAuthEnabled(ctx.projectSettings);
40
- const hasAAD = selectedPlugins === null || selectedPlugins === void 0 ? void 0 : selectedPlugins.some((plugin) => plugin.name === constants_1.PluginNames.AAD);
39
+ const hasAAD = tools_1.isAADEnabled(solutionSettings);
41
40
  const localSettingsProvider = new localSettingsProvider_1.LocalSettingsProvider(inputs.projectPath);
42
41
  let exists = await fs.pathExists(localSettingsProvider.localSettingsFilePath);
43
42
  if (exists) {
@@ -1 +1 @@
1
- {"version":3,"file":"localSettingsLoader.js","sourceRoot":"","sources":["../../../src/core/middleware/localSettingsLoader.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"localSettingsLoader.js","sourceRoot":"","sources":["../../../src/core/middleware/localSettingsLoader.ts"],"names":[],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"localSettingsWriter.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/localSettingsWriter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAO7D;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAyBnC,CAAC"}
1
+ {"version":3,"file":"localSettingsWriter.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/localSettingsWriter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAQ7D;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAyBnC,CAAC"}
@@ -4,9 +4,9 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.LocalSettingsWriterMW = void 0;
6
6
  const teamsfx_api_1 = require("@microsoft/teamsfx-api");
7
- const __1 = require("..");
8
- const __2 = require("../..");
9
7
  const localSettingsProvider_1 = require("../../common/localSettingsProvider");
8
+ const tools_1 = require("../../common/tools");
9
+ const globalVars_1 = require("../globalVars");
10
10
  const projectSettingsLoader_1 = require("./projectSettingsLoader");
11
11
  /**
12
12
  * This middleware will help to persist local settings if necessary.
@@ -14,7 +14,7 @@ const projectSettingsLoader_1 = require("./projectSettingsLoader");
14
14
  const LocalSettingsWriterMW = async (ctx, next) => {
15
15
  var _a;
16
16
  await next();
17
- if (!projectSettingsLoader_1.shouldIgnored(ctx) && !__2.isConfigUnifyEnabled()) {
17
+ if (!projectSettingsLoader_1.shouldIgnored(ctx) && !tools_1.isConfigUnifyEnabled()) {
18
18
  const lastArg = ctx.arguments[ctx.arguments.length - 1];
19
19
  const inputs = lastArg === ctx ? ctx.arguments[ctx.arguments.length - 2] : lastArg;
20
20
  if (!inputs.projectPath ||
@@ -26,7 +26,7 @@ const LocalSettingsWriterMW = async (ctx, next) => {
26
26
  return;
27
27
  // persistent localSettings.json.
28
28
  await localSettingsProvider.saveJson(ctx.localSettings, (_a = ctx.contextV2) === null || _a === void 0 ? void 0 : _a.cryptoProvider);
29
- __1.TOOLS.logProvider.debug(`[core] persist local settings config file: ${localSettingsProvider.localSettingsFilePath}`);
29
+ globalVars_1.TOOLS.logProvider.debug(`[core] persist local settings config file: ${localSettingsProvider.localSettingsFilePath}`);
30
30
  }
31
31
  };
32
32
  exports.LocalSettingsWriterMW = LocalSettingsWriterMW;
@@ -1 +1 @@
1
- {"version":3,"file":"localSettingsWriter.js","sourceRoot":"","sources":["../../../src/core/middleware/localSettingsWriter.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAGb,wDAAiE;AACjE,0BAA4C;AAC5C,6BAA6C;AAC7C,8EAA2E;AAC3E,mEAAwD;AAExD;;GAEG;AACI,MAAM,qBAAqB,GAAe,KAAK,EACpD,GAAoB,EACpB,IAAkB,EAClB,EAAE;;IACF,MAAM,IAAI,EAAE,CAAC;IACb,IAAI,CAAC,qCAAa,CAAC,GAAG,CAAC,IAAI,CAAC,wBAAoB,EAAE,EAAE;QAClD,MAAM,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACxD,MAAM,MAAM,GAAW,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;QAC3F,IACE,CAAC,MAAM,CAAC,WAAW;YACnB,MAAM,CAAC,mBAAmB,KAAK,IAAI;YACnC,6BAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC;YAEzC,OAAO;QAET,MAAM,qBAAqB,GAAG,IAAI,6CAAqB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAE5E,IAAI,GAAG,CAAC,aAAa,KAAK,SAAS;YAAE,OAAO;QAC5C,iCAAiC;QACjC,MAAM,qBAAqB,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAa,EAAE,MAAA,GAAG,CAAC,SAAS,0CAAE,cAAc,CAAC,CAAC;QAEvF,SAAK,CAAC,WAAW,CAAC,KAAK,CACrB,8CAA8C,qBAAqB,CAAC,qBAAqB,EAAE,CAC5F,CAAC;KACH;AACH,CAAC,CAAC;AAzBW,QAAA,qBAAqB,yBAyBhC"}
1
+ {"version":3,"file":"localSettingsWriter.js","sourceRoot":"","sources":["../../../src/core/middleware/localSettingsWriter.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAGb,wDAAiE;AACjE,8EAA2E;AAC3E,8CAA0D;AAC1D,8CAAsC;AAEtC,mEAAwD;AAExD;;GAEG;AACI,MAAM,qBAAqB,GAAe,KAAK,EACpD,GAAoB,EACpB,IAAkB,EAClB,EAAE;;IACF,MAAM,IAAI,EAAE,CAAC;IACb,IAAI,CAAC,qCAAa,CAAC,GAAG,CAAC,IAAI,CAAC,4BAAoB,EAAE,EAAE;QAClD,MAAM,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACxD,MAAM,MAAM,GAAW,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;QAC3F,IACE,CAAC,MAAM,CAAC,WAAW;YACnB,MAAM,CAAC,mBAAmB,KAAK,IAAI;YACnC,6BAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC;YAEzC,OAAO;QAET,MAAM,qBAAqB,GAAG,IAAI,6CAAqB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAE5E,IAAI,GAAG,CAAC,aAAa,KAAK,SAAS;YAAE,OAAO;QAC5C,iCAAiC;QACjC,MAAM,qBAAqB,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAa,EAAE,MAAA,GAAG,CAAC,SAAS,0CAAE,cAAc,CAAC,CAAC;QAEvF,kBAAK,CAAC,WAAW,CAAC,KAAK,CACrB,8CAA8C,qBAAqB,CAAC,qBAAqB,EAAE,CAC5F,CAAC;KACH;AACH,CAAC,CAAC;AAzBW,QAAA,qBAAqB,yBAyBhC"}
@@ -1,5 +1,5 @@
1
- import { CoreHookContext } from "../..";
2
1
  import { Middleware } from "@feathersjs/hooks/lib";
2
+ import { CoreHookContext } from "../types";
3
3
  export declare class ArmParameters {
4
4
  static readonly FEStorageName = "frontendHostingStorageName";
5
5
  static readonly IdentityName = "userAssignedIdentityName";
@@ -1 +1 @@
1
- {"version":3,"file":"projectMigrator.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/projectMigrator.ts"],"names":[],"mappings":"AAsBA,OAAO,EACL,eAAe,EAQhB,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,UAAU,EAAgB,MAAM,uBAAuB,CAAC;AA8FjE,qBAAa,aAAa;IACxB,MAAM,CAAC,QAAQ,CAAC,aAAa,gCAAgC;IAC7D,MAAM,CAAC,QAAQ,CAAC,YAAY,8BAA8B;IAC1D,MAAM,CAAC,QAAQ,CAAC,SAAS,mBAAmB;IAC5C,MAAM,CAAC,QAAQ,CAAC,WAAW,qBAAqB;IAChD,MAAM,CAAC,QAAQ,CAAC,aAAa,mBAAmB;IAChD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,6BAA6B;IAC/D,MAAM,CAAC,QAAQ,CAAC,mBAAmB,yBAAyB;IAC5D,MAAM,CAAC,QAAQ,CAAC,eAAe,wBAAwB;IACvD,MAAM,CAAC,QAAQ,CAAC,YAAY,kBAAkB;IAC9C,MAAM,CAAC,QAAQ,CAAC,oBAAoB,0BAA0B;IAC9D,MAAM,CAAC,QAAQ,CAAC,oBAAoB,+BAA+B;IACnE,MAAM,CAAC,QAAQ,CAAC,eAAe,qBAAqB;IACpD,MAAM,CAAC,QAAQ,CAAC,eAAe,qBAAqB;IACpD,MAAM,CAAC,QAAQ,CAAC,mBAAmB,yBAAyB;CAC7D;AAED,eAAO,MAAM,iBAAiB,EAAE,UAiD/B,CAAC;AA4sBF,wBAAsB,UAAU,CAAC,GAAG,EAAE,eAAe,iBAGpD"}
1
+ {"version":3,"file":"projectMigrator.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/projectMigrator.ts"],"names":[],"mappings":"AAmCA,OAAO,EAAE,UAAU,EAAgB,MAAM,uBAAuB,CAAC;AA0CjE,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAqD3C,qBAAa,aAAa;IACxB,MAAM,CAAC,QAAQ,CAAC,aAAa,gCAAgC;IAC7D,MAAM,CAAC,QAAQ,CAAC,YAAY,8BAA8B;IAC1D,MAAM,CAAC,QAAQ,CAAC,SAAS,mBAAmB;IAC5C,MAAM,CAAC,QAAQ,CAAC,WAAW,qBAAqB;IAChD,MAAM,CAAC,QAAQ,CAAC,aAAa,mBAAmB;IAChD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,6BAA6B;IAC/D,MAAM,CAAC,QAAQ,CAAC,mBAAmB,yBAAyB;IAC5D,MAAM,CAAC,QAAQ,CAAC,eAAe,wBAAwB;IACvD,MAAM,CAAC,QAAQ,CAAC,YAAY,kBAAkB;IAC9C,MAAM,CAAC,QAAQ,CAAC,oBAAoB,0BAA0B;IAC9D,MAAM,CAAC,QAAQ,CAAC,oBAAoB,+BAA+B;IACnE,MAAM,CAAC,QAAQ,CAAC,eAAe,qBAAqB;IACpD,MAAM,CAAC,QAAQ,CAAC,eAAe,qBAAqB;IACpD,MAAM,CAAC,QAAQ,CAAC,mBAAmB,yBAAyB;CAC7D;AAED,eAAO,MAAM,iBAAiB,EAAE,UA+C/B,CAAC;AAusBF,wBAAsB,UAAU,CAAC,GAAG,EAAE,eAAe,iBAGpD"}
@@ -5,17 +5,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.migrateArm = exports.ProjectMigratorMW = exports.ArmParameters = void 0;
6
6
  const tslib_1 = require("tslib");
7
7
  const teamsfx_api_1 = require("@microsoft/teamsfx-api");
8
- const __1 = require("../..");
8
+ const tools_1 = require("../../common/tools");
9
+ const environment_1 = require("../environment");
10
+ const folder_1 = require("../../folder");
9
11
  const globalState_1 = require("../../common/globalState");
10
12
  const error_1 = require("../error");
11
13
  const localSettingsProvider_1 = require("../../common/localSettingsProvider");
12
14
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
13
15
  const path_1 = tslib_1.__importDefault(require("path"));
14
16
  const os_1 = tslib_1.__importDefault(require("os"));
15
- const fileUtils_1 = require("../../common/fileUtils");
16
17
  const constants_1 = require("../../plugins/solution/fx-solution/constants");
17
- const __2 = require("..");
18
- const tools_1 = require("../../common/tools");
19
18
  const projectSettingsLoader_1 = require("./projectSettingsLoader");
20
19
  const arm_1 = require("../../plugins/solution/fx-solution/arm");
21
20
  const question_1 = require("../../plugins/solution/fx-solution/question");
@@ -29,9 +28,11 @@ const telemetry_1 = require("../../common/telemetry");
29
28
  const dotenv = tslib_1.__importStar(require("dotenv"));
30
29
  const constants_5 = require("../../plugins/resource/spfx/utils/constants");
31
30
  const utils_2 = require("../../plugins/resource/spfx/utils/utils");
32
- const util_1 = tslib_1.__importDefault(require("util"));
33
31
  const adaptor_1 = require("../../plugins/solution/fx-solution/v2/adaptor");
32
+ const utils_3 = require("../../plugins/solution/fx-solution/v2/utils");
34
33
  const localEnvProvider_1 = require("../../common/local/localEnvProvider");
34
+ const globalVars_1 = require("../globalVars");
35
+ const localizeUtils_1 = require("../../common/localizeUtils");
35
36
  const programmingLanguage = "programmingLanguage";
36
37
  const defaultFunctionName = "defaultFunctionName";
37
38
  const learnMoreText = "Learn More";
@@ -101,9 +102,8 @@ const ProjectMigratorMW = async (ctx, next) => {
101
102
  ctx.result = teamsfx_api_1.ok(undefined);
102
103
  return;
103
104
  }
104
- const core = ctx.self;
105
105
  telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorNotificationStart);
106
- const res = await (__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.ui.showMessage("warn", tools_1.getStrings().solution.MigrationToArmAndMultiEnvMessage, true, upgradeButton));
106
+ const res = await (globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.ui.showMessage("warn", localizeUtils_1.getLocalizedString("core.migrationToArmAndMultiEnv.Message"), true, upgradeButton));
107
107
  const answer = (res === null || res === void 0 ? void 0 : res.isOk()) ? res.value : undefined;
108
108
  if (!answer || answer != upgradeButton) {
109
109
  telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorNotification, {
@@ -124,7 +124,7 @@ const ProjectMigratorMW = async (ctx, next) => {
124
124
  catch (error) {
125
125
  // Strictly speaking, this telemetry event is not required because errorHandlerMW will send error telemetry anyway.
126
126
  // But it makes it easier to separate projectMigratorMW errors from other provision errors.
127
- telemetry_1.sendTelemetryErrorEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorError, teamsfx_api_1.assembleError(error, __2.CoreSource));
127
+ telemetry_1.sendTelemetryErrorEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorError, teamsfx_api_1.assembleError(error, error_1.CoreSource));
128
128
  throw error;
129
129
  }
130
130
  }
@@ -137,16 +137,15 @@ const ProjectMigratorMW = async (ctx, next) => {
137
137
  };
138
138
  exports.ProjectMigratorMW = ProjectMigratorMW;
139
139
  function outputCancelMessage(ctx) {
140
- const core = ctx.self;
141
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`[core] Upgrade cancelled.`);
140
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.logProvider.warning(`[core] Upgrade cancelled.`);
142
141
  const inputs = ctx.arguments[ctx.arguments.length - 1];
143
142
  if (inputs.platform === teamsfx_api_1.Platform.VSCode) {
144
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`[core] Notice upgrade to new configuration files is a must-have to continue to use current version Teams Toolkit. If you want to upgrade, please run command (Teams: Upgrade project) or click the “Upgrade project” button on tree view to trigger the upgrade.`);
145
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`[core]If you are not ready to upgrade and want to continue to use the old version Teams Toolkit, please find Teams Toolkit in Extension and install the version <= 2.10.0`);
143
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.logProvider.warning(`[core] Notice upgrade to new configuration files is a must-have to continue to use current version Teams Toolkit. If you want to upgrade, please run command (Teams: Upgrade project) or click the “Upgrade project” button on tree view to trigger the upgrade.`);
144
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.logProvider.warning(`[core]If you are not ready to upgrade and want to continue to use the old version Teams Toolkit, please find Teams Toolkit in Extension and install the version <= 2.10.0`);
146
145
  }
147
146
  else {
148
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`[core] Notice upgrade to new configuration files is a must-have to continue to use current version Teams Toolkit CLI. If you want to upgrade, please trigger this command again.`);
149
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`[core]If you are not ready to upgrade and want to continue to use the old version Teams Toolkit CLI, please install the version <= 2.10.0`);
147
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.logProvider.warning(`[core] Notice upgrade to new configuration files is a must-have to continue to use current version Teams Toolkit CLI. If you want to upgrade, please trigger this command again.`);
148
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.logProvider.warning(`[core]If you are not ready to upgrade and want to continue to use the old version Teams Toolkit CLI, please install the version <= 2.10.0`);
150
149
  }
151
150
  }
152
151
  function checkMethod(ctx) {
@@ -204,21 +203,20 @@ async function migrateToArmAndMultiEnv(ctx) {
204
203
  await preCheckKeyFiles(projectPath, ctx);
205
204
  }
206
205
  catch (err) {
207
- telemetry_1.sendTelemetryErrorEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorPrecheckFailed, teamsfx_api_1.assembleError(err, __2.CoreSource));
206
+ telemetry_1.sendTelemetryErrorEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorPrecheckFailed, teamsfx_api_1.assembleError(err, error_1.CoreSource));
208
207
  return;
209
208
  }
210
209
  let backupFolder;
211
- const core = ctx.self;
212
210
  try {
213
211
  backupFolder = await getBackupFolder(projectPath);
214
212
  await backup(projectPath, backupFolder);
215
213
  await updateConfig(ctx);
216
214
  telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorMigrateMultiEnvStart);
217
- await migrateMultiEnv(projectPath, __2.TOOLS.logProvider);
215
+ await migrateMultiEnv(projectPath, globalVars_1.TOOLS.logProvider);
218
216
  telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorMigrateMultiEnv);
219
217
  const loadRes = await projectSettingsLoader_1.loadProjectSettings(inputs);
220
218
  if (loadRes.isErr()) {
221
- throw __1.ProjectSettingError();
219
+ throw error_1.ProjectSettingError();
222
220
  }
223
221
  const projectSettings = loadRes.value;
224
222
  if (!tools_1.isSPFxProject(projectSettings)) {
@@ -228,7 +226,7 @@ async function migrateToArmAndMultiEnv(ctx) {
228
226
  }
229
227
  }
230
228
  catch (err) {
231
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.error(`[core] Failed to upgrade project, error: '${err}'`);
229
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.logProvider.error(`[core] Failed to upgrade project, error: '${err}'`);
232
230
  await handleError(projectPath, ctx, backupFolder);
233
231
  throw err;
234
232
  }
@@ -246,27 +244,26 @@ async function getManifestPath(fx, projectPath) {
246
244
  return path_1.default.join(fx, constants_4.REMOTE_MANIFEST);
247
245
  }
248
246
  async function preCheckKeyFiles(projectPath, ctx) {
249
- const core = ctx.self;
250
247
  const fx = path_1.default.join(projectPath, `.${teamsfx_api_1.ConfigFolderName}`);
251
248
  const manifestPath = await getManifestPath(fx, projectPath);
252
- await preReadJsonFile(path_1.default.join(fx, "env.default.json"), core);
253
- await preReadJsonFile(path_1.default.join(fx, "settings.json"), core);
254
- await preReadJsonFile(manifestPath, core);
249
+ await preReadJsonFile(path_1.default.join(fx, "env.default.json"));
250
+ await preReadJsonFile(path_1.default.join(fx, "settings.json"));
251
+ await preReadJsonFile(manifestPath);
255
252
  }
256
- async function preReadJsonFile(path, core) {
253
+ async function preReadJsonFile(path) {
257
254
  try {
258
255
  await fs_extra_1.default.readJson(path);
259
256
  }
260
257
  catch (err) {
261
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.error(`'${path}' doesn't exist or is not in json format. Please fix it and try again by running command (Teams: Upgrade project).`);
262
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`Read this wiki(${learnMoreLink}) for the FAQ.`);
263
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.ui.showMessage("info", util_1.default.format(tools_1.getStrings().solution.MigrationToArmAndMultiEnvPreCheckErrorMessage, path), false, learnMoreText).then((result) => {
258
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.logProvider.error(`'${path}' doesn't exist or is not in json format. Please fix it and try again by running command (Teams: Upgrade project).`);
259
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.logProvider.warning(`Read this wiki(${learnMoreLink}) for the FAQ.`);
260
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.ui.showMessage("info", localizeUtils_1.getLocalizedString("core.migrationToArmAndMultiEnv.PreCheckErrorMessage", path), false, learnMoreText).then((result) => {
264
261
  const userSelected = result.isOk() ? result.value : undefined;
265
262
  if (userSelected === learnMoreText) {
266
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.ui.openUrl(manualUpgradeLink);
263
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.ui.openUrl(manualUpgradeLink);
267
264
  }
268
265
  });
269
- throw __1.NotJsonError(err);
266
+ throw error_1.NotJsonError(err);
270
267
  }
271
268
  }
272
269
  async function handleError(projectPath, ctx, backupFolder) {
@@ -275,13 +272,12 @@ async function handleError(projectPath, ctx, backupFolder) {
275
272
  }
276
273
  catch (e) {
277
274
  // try my best to cleanup
278
- const core = ctx.self;
279
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.error(`[core] Failed to cleanup the backup, error: '${e}'`);
275
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.logProvider.error(`[core] Failed to cleanup the backup, error: '${e}'`);
280
276
  }
281
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.ui.showMessage("info", tools_1.getStrings().solution.MigrationToArmAndMultiEnvErrorMessage, false, learnMoreText).then((result) => {
277
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.ui.showMessage("info", localizeUtils_1.getLocalizedString("core.migrationToArmAndMultiEnv.ErrorMessage"), false, learnMoreText).then((result) => {
282
278
  const userSelected = result.isOk() ? result.value : undefined;
283
279
  if (userSelected === learnMoreText) {
284
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.ui.openUrl(manualUpgradeLink);
280
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.ui.openUrl(manualUpgradeLink);
285
281
  }
286
282
  });
287
283
  }
@@ -289,7 +285,7 @@ async function generateUpgradeReport(backupFolder) {
289
285
  try {
290
286
  if (backupFolder) {
291
287
  const target = path_1.default.join(backupFolder, upgradeReportName);
292
- const source = path_1.default.resolve(path_1.default.join(__1.getResourceFolder(), upgradeReportName));
288
+ const source = path_1.default.resolve(path_1.default.join(folder_1.getResourceFolder(), upgradeReportName));
293
289
  await fs_extra_1.default.copyFile(source, target);
294
290
  }
295
291
  }
@@ -303,19 +299,18 @@ async function postMigration(projectPath, ctx, inputs, backupFolder) {
303
299
  telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorMigrate);
304
300
  telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorGuideStart);
305
301
  await generateUpgradeReport(backupFolder);
306
- const core = ctx.self;
307
- await updateGitIgnore(projectPath, __2.TOOLS.logProvider, backupFolder);
308
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`[core] Upgrade success! All old files in .fx and appPackage folder have been backed up to the .backup folder and you can delete it. Read this wiki(${learnMoreLink}) if you want to restore your configuration files or learn more about this upgrade.`);
309
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`[core] Read upgrade-change-logs.md to learn about details for this upgrade.`);
302
+ await updateGitIgnore(projectPath, globalVars_1.TOOLS.logProvider, backupFolder);
303
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.logProvider.warning(`[core] Upgrade success! All old files in .fx and appPackage folder have been backed up to the .backup folder and you can delete it. Read this wiki(${learnMoreLink}) if you want to restore your configuration files or learn more about this upgrade.`);
304
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.logProvider.warning(`[core] Read upgrade-change-logs.md to learn about details for this upgrade.`);
310
305
  if (inputs.platform === teamsfx_api_1.Platform.VSCode) {
311
306
  await globalState_1.globalStateUpdate(ChangeLogsFlag, true);
312
307
  telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorGuide, {
313
308
  [telemetry_1.TelemetryProperty.Status]: telemetry_1.ProjectMigratorGuideStatus.Reload,
314
309
  });
315
- await ((_b = __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : (_a = __2.TOOLS.ui).reload) === null || _b === void 0 ? void 0 : _b.call(_a));
310
+ await ((_b = globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : (_a = globalVars_1.TOOLS.ui).reload) === null || _b === void 0 ? void 0 : _b.call(_a));
316
311
  }
317
312
  else {
318
- __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.info(tools_1.getStrings().solution.MigrationToArmAndMultiEnvSuccessMessage);
313
+ globalVars_1.TOOLS === null || globalVars_1.TOOLS === void 0 ? void 0 : globalVars_1.TOOLS.logProvider.info(localizeUtils_1.getLocalizedString("core.migrationToArmAndMultiEnv.SuccessMessage"));
319
314
  }
320
315
  }
321
316
  async function updateGitIgnore(projectPath, log, backupFolder) {
@@ -387,7 +382,7 @@ async function generateLocalTemplate(manifestString, isSPFx, log) {
387
382
  return manifest;
388
383
  }
389
384
  async function getManifest(sourceManifestFile) {
390
- return await fileUtils_1.readJson(sourceManifestFile);
385
+ return await fs_extra_1.default.readJson(sourceManifestFile);
391
386
  }
392
387
  async function copyManifest(projectPath, fx, target) {
393
388
  if (await fs_extra_1.default.pathExists(path_1.default.join(projectPath, teamsfx_api_1.AppPackageFolderName))) {
@@ -472,7 +467,7 @@ async function migrateMultiEnv(projectPath, log) {
472
467
  const replaceMap = new Map();
473
468
  const packageSolutionFile = `${projectPath}/SPFx/config/package-solution.json`;
474
469
  if (!(await fs_extra_1.default.pathExists(packageSolutionFile))) {
475
- throw __1.SPFxConfigError(packageSolutionFile);
470
+ throw error_1.SPFxConfigError(packageSolutionFile);
476
471
  }
477
472
  const solutionConfig = await fs_extra_1.default.readJson(packageSolutionFile);
478
473
  replaceMap.set(constants_5.PlaceHolders.componentId, solutionConfig.solution.id);
@@ -489,7 +484,7 @@ async function migrateMultiEnv(projectPath, log) {
489
484
  await removeExpiredFields(devState, devUserData);
490
485
  }
491
486
  async function removeExpiredFields(devState, devUserData) {
492
- const stateData = await fileUtils_1.readJson(devState);
487
+ const stateData = await fs_extra_1.default.readJson(devState);
493
488
  if (stateData[constants_1.PluginNames.SOLUTION] && stateData[constants_1.PluginNames.SOLUTION]["remoteTeamsAppId"]) {
494
489
  stateData[constants_1.PluginNames.APPST]["teamsAppId"] =
495
490
  stateData[constants_1.PluginNames.SOLUTION]["remoteTeamsAppId"];
@@ -528,7 +523,7 @@ async function removeExpiredFields(devState, devUserData) {
528
523
  deleteUserDataKey(secrets, `${constants_1.PluginNames.LDEBUG}.${value}`);
529
524
  }
530
525
  deleteUserDataKey(secrets, `${constants_1.PluginNames.AAD}.local_clientSecret`);
531
- await fs_extra_1.default.writeFile(devUserData, __1.serializeDict(secrets), { encoding: "UTF-8" });
526
+ await fs_extra_1.default.writeFile(devUserData, tools_1.serializeDict(secrets), { encoding: "UTF-8" });
532
527
  }
533
528
  }
534
529
  function deleteUserDataKey(secrets, key) {
@@ -537,14 +532,14 @@ function deleteUserDataKey(secrets, key) {
537
532
  }
538
533
  }
539
534
  function getConfigDevJson(appName) {
540
- return __1.environmentManager.newEnvConfigData(appName);
535
+ return environment_1.environmentManager.newEnvConfigData(appName);
541
536
  }
542
537
  async function queryProjectStatus(fx) {
543
538
  var _a;
544
- const settings = await fileUtils_1.readJson(path_1.default.join(fx, "settings.json"));
539
+ const settings = await fs_extra_1.default.readJson(path_1.default.join(fx, "settings.json"));
545
540
  const solutionSettings = settings.solutionSettings;
546
541
  const plugins = ResourcePluginContainer_1.getActivatedResourcePlugins(solutionSettings);
547
- const envDefaultJson = await fileUtils_1.readJson(path_1.default.join(fx, "env.default.json"));
542
+ const envDefaultJson = await fs_extra_1.default.readJson(path_1.default.join(fx, "env.default.json"));
548
543
  const hasFrontend = plugins === null || plugins === void 0 ? void 0 : plugins.some((plugin) => plugin.name === constants_1.PluginNames.FE);
549
544
  const hasBackend = plugins === null || plugins === void 0 ? void 0 : plugins.some((plugin) => plugin.name === constants_1.PluginNames.FUNC);
550
545
  const hasBot = plugins === null || plugins === void 0 ? void 0 : plugins.some((plugin) => plugin.name === constants_1.PluginNames.BOT);
@@ -637,9 +632,9 @@ async function removeOldProjectFiles(projectPath) {
637
632
  }
638
633
  async function ensureProjectSettings(projectSettingPath, envDefaultPath) {
639
634
  var _a, _b;
640
- const settings = await fileUtils_1.readJson(projectSettingPath);
635
+ const settings = await fs_extra_1.default.readJson(projectSettingPath);
641
636
  if (!settings.programmingLanguage || !settings.defaultFunctionName) {
642
- const envDefault = await fileUtils_1.readJson(envDefaultPath);
637
+ const envDefault = await fs_extra_1.default.readJson(envDefaultPath);
643
638
  settings.programmingLanguage =
644
639
  settings.programmingLanguage || ((_a = envDefault[constants_1.PluginNames.SOLUTION]) === null || _a === void 0 ? void 0 : _a[programmingLanguage]);
645
640
  settings.defaultFunctionName =
@@ -651,7 +646,7 @@ async function ensureProjectSettings(projectSettingPath, envDefaultPath) {
651
646
  });
652
647
  }
653
648
  async function getAppName(projectSettingPath) {
654
- const settings = await fileUtils_1.readJson(projectSettingPath);
649
+ const settings = await fs_extra_1.default.readJson(projectSettingPath);
655
650
  return settings.appName;
656
651
  }
657
652
  async function cleanup(projectPath, backupFolder) {
@@ -676,7 +671,7 @@ async function needMigrateToArmAndMultiEnv(ctx) {
676
671
  if (!fxExist) {
677
672
  return false;
678
673
  }
679
- const parameterEnvFileName = parameterFileNameTemplate.replace("@envName", __1.environmentManager.getDefaultEnvName());
674
+ const parameterEnvFileName = parameterFileNameTemplate.replace("@envName", environment_1.environmentManager.getDefaultEnvName());
680
675
  const envFileExist = await fs_extra_1.default.pathExists(path_1.default.join(inputs.projectPath, ".fx", "env.default.json"));
681
676
  const configDirExist = await fs_extra_1.default.pathExists(path_1.default.join(inputs.projectPath, ".fx", "configs"));
682
677
  const armParameterExist = await fs_extra_1.default.pathExists(path_1.default.join(inputs.projectPath, ".fx", "configs", parameterEnvFileName));
@@ -750,7 +745,6 @@ async function updateConfig(ctx) {
750
745
  async function generateArmTemplatesFiles(ctx) {
751
746
  const minorCtx = { arguments: ctx.arguments };
752
747
  const inputs = ctx.arguments[ctx.arguments.length - 1];
753
- const core = ctx.self;
754
748
  const fx = path_1.default.join(inputs.projectPath, `.${teamsfx_api_1.ConfigFolderName}`);
755
749
  const fxConfig = path_1.default.join(fx, teamsfx_api_1.InputConfigsFolderName);
756
750
  const templateAzure = path_1.default.join(inputs.projectPath, "templates", "azure");
@@ -759,14 +753,15 @@ async function generateArmTemplatesFiles(ctx) {
759
753
  // load local settings.json
760
754
  const loadRes = await projectSettingsLoader_1.loadProjectSettings(inputs);
761
755
  if (loadRes.isErr()) {
762
- throw __1.ProjectSettingError();
756
+ throw error_1.ProjectSettingError();
763
757
  }
764
758
  const projectSettings = loadRes.value;
759
+ utils_3.setActivatedResourcePluginsV2(projectSettings);
765
760
  minorCtx.projectSettings = projectSettings;
766
761
  const targetEnvName = "dev";
767
762
  const result = await envInfoLoader_1.loadSolutionContext(inputs, minorCtx.projectSettings, targetEnvName, inputs.ignoreEnvInfo);
768
763
  if (result.isErr()) {
769
- throw __1.SolutionConfigError();
764
+ throw error_1.SolutionConfigError();
770
765
  }
771
766
  minorCtx.solutionContext = result.value;
772
767
  const settings = minorCtx.projectSettings;
@@ -778,9 +773,9 @@ async function generateArmTemplatesFiles(ctx) {
778
773
  catch (error) {
779
774
  throw error;
780
775
  }
781
- const parameterEnvFileName = parameterFileNameTemplate.replace("@envName", __1.environmentManager.getDefaultEnvName());
776
+ const parameterEnvFileName = parameterFileNameTemplate.replace("@envName", environment_1.environmentManager.getDefaultEnvName());
782
777
  if (!(await fs_extra_1.default.pathExists(path_1.default.join(fxConfig, parameterEnvFileName)))) {
783
- throw teamsfx_api_1.err(teamsfx_api_1.returnSystemError(new Error(`Failed to generate ${parameterEnvFileName} on migration`), __2.CoreSource, "GenerateArmTemplateFailed"));
778
+ throw teamsfx_api_1.err(teamsfx_api_1.returnSystemError(new Error(`Failed to generate ${parameterEnvFileName} on migration`), error_1.CoreSource, "GenerateArmTemplateFailed"));
784
779
  }
785
780
  }
786
781
  async function generateArmParameterJson(ctx) {
@@ -789,7 +784,7 @@ async function generateArmParameterJson(ctx) {
789
784
  const fx = path_1.default.join(inputs.projectPath, `.${teamsfx_api_1.ConfigFolderName}`);
790
785
  const fxConfig = path_1.default.join(fx, teamsfx_api_1.InputConfigsFolderName);
791
786
  const envConfig = await fs_extra_1.default.readJson(path_1.default.join(fx, "env.default.json"));
792
- const parameterEnvFileName = parameterFileNameTemplate.replace("@envName", __1.environmentManager.getDefaultEnvName());
787
+ const parameterEnvFileName = parameterFileNameTemplate.replace("@envName", environment_1.environmentManager.getDefaultEnvName());
793
788
  const targetJson = await fs_extra_1.default.readJson(path_1.default.join(fxConfig, parameterEnvFileName));
794
789
  const parameterObj = targetJson["parameters"]["provisionParameters"]["value"];
795
790
  // frontend hosting