@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
@@ -13,7 +13,7 @@ const results_1 = require("./results");
13
13
  const constants_2 = require("./constants");
14
14
  const adm_zip_1 = tslib_1.__importDefault(require("adm-zip"));
15
15
  const fs = tslib_1.__importStar(require("fs-extra"));
16
- const __1 = require("../../..");
16
+ const folder_1 = require("../../../folder");
17
17
  const path_1 = tslib_1.__importDefault(require("path"));
18
18
  const common_1 = require("../../../common");
19
19
  const localSettingsConstants_1 = require("../../../common/localSettingsConstants");
@@ -25,6 +25,8 @@ const telemetry_1 = require("./utils/telemetry");
25
25
  const lodash_1 = tslib_1.__importDefault(require("lodash"));
26
26
  const constants_3 = require("../../../common/constants");
27
27
  const manifestTemplate_1 = require("./manifestTemplate");
28
+ const environment_1 = require("../../../core/environment");
29
+ const localizeUtils_1 = require("../../../common/localizeUtils");
28
30
  class AppStudioPluginImpl {
29
31
  constructor() {
30
32
  this.commonProperties = {};
@@ -80,6 +82,7 @@ class AppStudioPluginImpl {
80
82
  }
81
83
  }
82
84
  const view = {
85
+ config: ctx.envInfo.config,
83
86
  localSettings: {
84
87
  teamsApp: {
85
88
  teamsAppId: localTeamsAppID,
@@ -117,7 +120,7 @@ class AppStudioPluginImpl {
117
120
  return teamsfx_api_1.err(result.error);
118
121
  }
119
122
  remoteTeamsAppId = result.value.teamsAppId;
120
- (_b = ctx.logProvider) === null || _b === void 0 ? void 0 : _b.info(`Teams app created ${remoteTeamsAppId}`);
123
+ (_b = ctx.logProvider) === null || _b === void 0 ? void 0 : _b.info(localizeUtils_1.getLocalizedString("plugins.appstudio.teamsAppCreatedNotice", remoteTeamsAppId));
121
124
  }
122
125
  (_c = ctx.envInfo.state.get(constants_1.PluginNames.APPST)) === null || _c === void 0 ? void 0 : _c.set(constants_2.Constants.TEAMS_APP_ID, remoteTeamsAppId);
123
126
  return teamsfx_api_1.ok(remoteTeamsAppId);
@@ -155,7 +158,7 @@ class AppStudioPluginImpl {
155
158
  if (result.isErr()) {
156
159
  return teamsfx_api_1.err(result.error);
157
160
  }
158
- (_b = ctx.logProvider) === null || _b === void 0 ? void 0 : _b.info(`Teams app updated: ${result.value}`);
161
+ (_b = ctx.logProvider) === null || _b === void 0 ? void 0 : _b.info(localizeUtils_1.getLocalizedString("plugins.appstudio.teamsAppUpdatedNotice", result.value));
159
162
  return teamsfx_api_1.ok(remoteTeamsAppId);
160
163
  }
161
164
  async validateManifest(ctx, isLocalDebug) {
@@ -172,7 +175,7 @@ class AppStudioPluginImpl {
172
175
  else {
173
176
  const appDefinitionAndManifest = await this.getAppDefinitionAndManifest(ctx, isLocalDebug);
174
177
  if (appDefinitionAndManifest.isErr()) {
175
- (_a = ctx.logProvider) === null || _a === void 0 ? void 0 : _a.error("[Teams Toolkit] Manifest Validation failed!");
178
+ (_a = ctx.logProvider) === null || _a === void 0 ? void 0 : _a.error(localizeUtils_1.getLocalizedString("plugins.appstudio.validationFailedNotice"));
176
179
  return teamsfx_api_1.err(appDefinitionAndManifest.error);
177
180
  }
178
181
  else {
@@ -192,24 +195,24 @@ class AppStudioPluginImpl {
192
195
  if (manifest.icons.outline) {
193
196
  if (manifest.icons.outline.startsWith("https://") ||
194
197
  manifest.icons.outline.startsWith("http://")) {
195
- errors.push("icons.outline should be a relative path, URL is not supported");
198
+ errors.push(localizeUtils_1.getLocalizedString("plugins.appstudio.relativePathTip", "icons.outline"));
196
199
  }
197
200
  else {
198
201
  const outlineFile = path_1.default.join(appDirectory, manifest.icons.outline);
199
202
  if (!(await fs.pathExists(outlineFile))) {
200
- errors.push(`icons.outline "${outlineFile}" cannot be found.`);
203
+ errors.push(localizeUtils_1.getLocalizedString("error.appstudio.fileNotFoundError", outlineFile));
201
204
  }
202
205
  }
203
206
  }
204
207
  if (manifest.icons.color) {
205
208
  if (manifest.icons.color.startsWith("https://") ||
206
209
  manifest.icons.color.startsWith("http://")) {
207
- errors.push("icons.color should be a relative path, URL is not supported");
210
+ errors.push(localizeUtils_1.getLocalizedString("plugins.appstudio.relativePathTip", "icons.color"));
208
211
  }
209
212
  else {
210
213
  const colorFile = path_1.default.join(appDirectory, manifest.icons.color);
211
214
  if (!(await fs.pathExists(colorFile))) {
212
- errors.push(`icons.color "${colorFile}" cannot be found.`);
215
+ errors.push(localizeUtils_1.getLocalizedString("error.appstudio.fileNotFoundError", colorFile));
213
216
  }
214
217
  }
215
218
  }
@@ -240,12 +243,12 @@ class AppStudioPluginImpl {
240
243
  else {
241
244
  const appManifest = await this.getAppDefinitionAndManifest(ctx, isLocalDebug);
242
245
  if (appManifest.isErr()) {
243
- (_a = ctx.logProvider) === null || _a === void 0 ? void 0 : _a.error("[Teams Toolkit] Update manifest failed!");
246
+ (_a = ctx.logProvider) === null || _a === void 0 ? void 0 : _a.error(localizeUtils_1.getLocalizedString("error.appstudio.updateManifestFailed"));
244
247
  const isProvisionSucceeded = !!((_b = ctx.envInfo.state
245
248
  .get("solution")) === null || _b === void 0 ? void 0 : _b.get(constants_1.SOLUTION_PROVISION_SUCCEEDED));
246
249
  if (appManifest.error.name === errors_1.AppStudioError.GetRemoteConfigFailedError.name &&
247
250
  !isProvisionSucceeded) {
248
- return teamsfx_api_1.err(results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.GetRemoteConfigError.name, errors_1.AppStudioError.GetRemoteConfigError.message("Update manifest failed"), constants_3.HelpLinks.WhyNeedProvision));
251
+ return teamsfx_api_1.err(results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.GetRemoteConfigFailedError.name, errors_1.AppStudioError.GetRemoteConfigFailedError.message(localizeUtils_1.getLocalizedString("error.appstudio.updateManifestFailed"), isProvisionSucceeded), constants_3.HelpLinks.WhyNeedProvision));
249
252
  }
250
253
  else {
251
254
  return teamsfx_api_1.err(appManifest.error);
@@ -262,7 +265,7 @@ class AppStudioPluginImpl {
262
265
  .get("solution")) === null || _c === void 0 ? void 0 : _c.get(constants_1.SOLUTION_PROVISION_SUCCEEDED));
263
266
  if (!isProvisionSucceeded) {
264
267
  return teamsfx_api_1.err(results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.FileNotFoundError.name, errors_1.AppStudioError.FileNotFoundError.message(manifestFileName) +
265
- " Run 'Provision in the cloud' first. Click Get Help to learn more about why you need to provision.", constants_3.HelpLinks.WhyNeedProvision));
268
+ localizeUtils_1.getLocalizedString("plugins.appstudio.provisionTip"), constants_3.HelpLinks.WhyNeedProvision));
266
269
  }
267
270
  await this.buildTeamsAppPackage(ctx, isLocalDebug);
268
271
  }
@@ -270,7 +273,7 @@ class AppStudioPluginImpl {
270
273
  delete manifest.id;
271
274
  delete existingManifest.id;
272
275
  if (!lodash_1.default.isEqual(manifest, existingManifest)) {
273
- const res = await ((_d = ctx.ui) === null || _d === void 0 ? void 0 : _d.showMessage("warn", "The manifest file configurations has been modified already. Do you want to continue to regenerate the manifest file and update to Teams platform?", true, "Preview only", "Preview and update"));
276
+ const res = await ((_d = ctx.ui) === null || _d === void 0 ? void 0 : _d.showMessage("warn", localizeUtils_1.getLocalizedString("plugins.appstudio.updateManifestTip"), true, "Preview only", "Preview and update"));
274
277
  const error = results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.UpdateManifestCancelError.name, errors_1.AppStudioError.UpdateManifestCancelError.message(manifest.name.short));
275
278
  if ((res === null || res === void 0 ? void 0 : res.isOk()) && res.value === "Preview only") {
276
279
  this.buildTeamsAppPackage(ctx, isLocalDebug);
@@ -292,7 +295,7 @@ class AppStudioPluginImpl {
292
295
  const app = await appStudio_1.AppStudioClient.getApp(teamsAppId, appStudioToken, ctx.logProvider);
293
296
  const devPortalUpdateTime = (_h = (_g = new Date(app.updatedAt)) === null || _g === void 0 ? void 0 : _g.getTime()) !== null && _h !== void 0 ? _h : -1;
294
297
  if (localUpdateTime < devPortalUpdateTime) {
295
- const res = await ((_j = ctx.ui) === null || _j === void 0 ? void 0 : _j.showMessage("warn", "The manifest file on Teams platform has been changed since your last update. Do you want to continue to update and overwrite the manifest file on Teams platform?", true, "Overwrite and update"));
298
+ const res = await ((_j = ctx.ui) === null || _j === void 0 ? void 0 : _j.showMessage("warn", localizeUtils_1.getLocalizedString("plugins.appstudio.updateOverwriteTip"), true, "Overwrite and update"));
296
299
  if (!((res === null || res === void 0 ? void 0 : res.isOk()) && res.value === "Overwrite and update")) {
297
300
  const error = results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.UpdateManifestCancelError.name, errors_1.AppStudioError.UpdateManifestCancelError.message(manifest.name.short));
298
301
  return teamsfx_api_1.err(error);
@@ -304,8 +307,8 @@ class AppStudioPluginImpl {
304
307
  if (result.isErr()) {
305
308
  return teamsfx_api_1.err(result.error);
306
309
  }
307
- (_k = ctx.logProvider) === null || _k === void 0 ? void 0 : _k.info(`Teams app updated: ${result.value}`);
308
- (_l = ctx.ui) === null || _l === void 0 ? void 0 : _l.showMessage("info", `Successfully updated manifest for [${manifest.name.short}]`, false);
310
+ (_k = ctx.logProvider) === null || _k === void 0 ? void 0 : _k.info(localizeUtils_1.getLocalizedString("plugins.appstudio.teamsAppUpdatedNotice", result.value));
311
+ (_l = ctx.ui) === null || _l === void 0 ? void 0 : _l.showMessage("info", localizeUtils_1.getLocalizedString("plugins.appstudio.teamsAppUpdatedNotice", result.value), false);
309
312
  return teamsfx_api_1.ok(teamsAppId);
310
313
  }
311
314
  catch (error) {
@@ -318,9 +321,9 @@ class AppStudioPluginImpl {
318
321
  }
319
322
  }
320
323
  async scaffold(ctx) {
321
- var _a;
324
+ var _a, _b;
322
325
  let manifest;
323
- const templatesFolder = __1.getTemplatesFolder();
326
+ const templatesFolder = folder_1.getTemplatesFolder();
324
327
  // cannot use getAppDirectory before creating the manifest file
325
328
  const appDir = `${ctx.root}/${constants_2.APP_PACKAGE_FOLDER_FOR_MULTI_ENV}`;
326
329
  if (common_1.isSPFxProject(ctx.projectSettings)) {
@@ -328,20 +331,26 @@ class AppStudioPluginImpl {
328
331
  const manifestFile = path_1.default.resolve(templateManifestFolder, "./solution/manifest_multi_env.json");
329
332
  const manifestString = (await fs.readFile(manifestFile)).toString();
330
333
  manifest = JSON.parse(manifestString);
331
- const localManifest = await createLocalManifest(ctx.projectSettings.appName, false, false, false, true);
332
- await fs.writeFile(`${appDir}/${constants_2.MANIFEST_LOCAL}`, JSON.stringify(localManifest, null, 4));
334
+ if (!common_1.isConfigUnifyEnabled()) {
335
+ const localManifest = await createLocalManifest(ctx.projectSettings.appName, false, false, false, true);
336
+ await fs.writeFile(`${appDir}/${constants_2.MANIFEST_LOCAL}`, JSON.stringify(localManifest, null, 4));
337
+ }
333
338
  }
334
339
  else {
335
340
  const solutionSettings = (_a = ctx.projectSettings) === null || _a === void 0 ? void 0 : _a.solutionSettings;
336
341
  const hasFrontend = solutionSettings.capabilities.includes(question_1.TabOptionItem.id);
337
342
  const hasBot = solutionSettings.capabilities.includes(question_1.BotOptionItem.id);
338
343
  const hasMessageExtension = solutionSettings.capabilities.includes(question_1.MessageExtensionItem.id);
339
- manifest = await createManifest(ctx.projectSettings.appName, hasFrontend, hasBot, hasMessageExtension, false);
340
- const localDebugManifest = await createLocalManifest(ctx.projectSettings.appName, hasFrontend, hasBot, hasMessageExtension, false);
341
- await fs.writeFile(`${appDir}/${constants_2.MANIFEST_LOCAL}`, JSON.stringify(localDebugManifest, null, 4));
344
+ const hasAad = common_1.isAADEnabled(solutionSettings);
345
+ const isM365 = (_b = ctx.projectSettings) === null || _b === void 0 ? void 0 : _b.isM365;
346
+ manifest = await createManifest(ctx.projectSettings.appName, hasFrontend, hasBot, hasMessageExtension, false, hasAad, isM365);
347
+ if (!common_1.isConfigUnifyEnabled()) {
348
+ const localDebugManifest = await createLocalManifest(ctx.projectSettings.appName, hasFrontend, hasBot, hasMessageExtension, false, hasAad, isM365);
349
+ await fs.writeFile(`${appDir}/${constants_2.MANIFEST_LOCAL}`, JSON.stringify(localDebugManifest, null, 4));
350
+ }
342
351
  }
343
352
  await fs.ensureDir(appDir);
344
- const manifestTemplatePath = `${appDir}/${constants_2.MANIFEST_TEMPLATE}`;
353
+ const manifestTemplatePath = await manifestTemplate_1.getManifestTemplatePath(ctx.root);
345
354
  await fs.writeFile(manifestTemplatePath, JSON.stringify(manifest, null, 4));
346
355
  const defaultColorPath = path_1.default.join(templatesFolder, constants_2.COLOR_TEMPLATE);
347
356
  const defaultOutlinePath = path_1.default.join(templatesFolder, constants_2.OUTLINE_TEMPLATE);
@@ -362,7 +371,7 @@ class AppStudioPluginImpl {
362
371
  }
363
372
  let manifestString = undefined;
364
373
  if (!((_a = ctx.envInfo) === null || _a === void 0 ? void 0 : _a.envName)) {
365
- throw new Error("Failed to get target environment name from plugin context.");
374
+ throw new Error(localizeUtils_1.getLocalizedString("error.appstudio.noEnvInfo"));
366
375
  }
367
376
  const appDirectory = await common_1.getAppDirectory(ctx.root);
368
377
  let zipFileName;
@@ -386,12 +395,12 @@ class AppStudioPluginImpl {
386
395
  manifestString = JSON.stringify(manifest.value[1], null, 4);
387
396
  }
388
397
  else {
389
- (_b = ctx.logProvider) === null || _b === void 0 ? void 0 : _b.error("[Teams Toolkit] Teams Package build failed!");
398
+ (_b = ctx.logProvider) === null || _b === void 0 ? void 0 : _b.error(localizeUtils_1.getLocalizedString("plugins.appstudio.buildFailedNotice"));
390
399
  const isProvisionSucceeded = !!((_c = ctx.envInfo.state
391
400
  .get("solution")) === null || _c === void 0 ? void 0 : _c.get(constants_1.SOLUTION_PROVISION_SUCCEEDED));
392
401
  if (manifest.error.name === errors_1.AppStudioError.GetRemoteConfigFailedError.name &&
393
402
  !isProvisionSucceeded) {
394
- throw results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.GetRemoteConfigError.name, errors_1.AppStudioError.GetRemoteConfigError.message("Teams package build failed"), constants_3.HelpLinks.WhyNeedProvision);
403
+ throw results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.GetRemoteConfigFailedError.name, errors_1.AppStudioError.GetRemoteConfigFailedError.message(localizeUtils_1.getLocalizedString("plugins.appstudio.buildFailedNotice"), isProvisionSucceeded), constants_3.HelpLinks.WhyNeedProvision);
395
404
  }
396
405
  else {
397
406
  throw manifest.error;
@@ -489,12 +498,13 @@ class AppStudioPluginImpl {
489
498
  const existApp = await appStudio_1.AppStudioClient.getAppByTeamsAppId(manifest.id, appStudioToken);
490
499
  if (existApp) {
491
500
  let executePublishUpdate = false;
492
- let description = `The app ${existApp.displayName} has already been submitted to tenant App Catalog.\nStatus: ${existApp.publishingState}\n`;
501
+ let description = localizeUtils_1.getLocalizedString("plugins.appstudio.updatePublishedAppNotice", existApp.displayName, existApp.publishingState);
493
502
  if (existApp.lastModifiedDateTime) {
494
503
  description =
495
- description + `Last Modified: ${(_b = existApp.lastModifiedDateTime) === null || _b === void 0 ? void 0 : _b.toLocaleString()}\n`;
504
+ description +
505
+ localizeUtils_1.getLocalizedString("plugins.appstudio.lastModifiedTip", (_b = existApp.lastModifiedDateTime) === null || _b === void 0 ? void 0 : _b.toLocaleString());
496
506
  }
497
- description = description + "Do you want to submit a new update?";
507
+ description = description + localizeUtils_1.getLocalizedString("plugins.appstudio.updatePublihsedAppConfirm");
498
508
  const res = await ((_c = ctx.ui) === null || _c === void 0 ? void 0 : _c.showMessage("warn", description, true, "Confirm"));
499
509
  if ((res === null || res === void 0 ? void 0 : res.isOk()) && res.value === "Confirm")
500
510
  executePublishUpdate = true;
@@ -618,7 +628,7 @@ class AppStudioPluginImpl {
618
628
  const publishProgress = (_a = ctx.ui) === null || _a === void 0 ? void 0 : _a.createProgressBar(`Publishing ${manifest.name.short}`, 3);
619
629
  try {
620
630
  // Validate manifest
621
- await (publishProgress === null || publishProgress === void 0 ? void 0 : publishProgress.start("Validating manifest file"));
631
+ await (publishProgress === null || publishProgress === void 0 ? void 0 : publishProgress.start(localizeUtils_1.getLocalizedString("plugins.appstudio.validateProgressStart")));
622
632
  const validationResult = await this.validateManifestAgainstSchema(manifest);
623
633
  if (validationResult.isErr()) {
624
634
  throw validationResult.error;
@@ -628,7 +638,7 @@ class AppStudioPluginImpl {
628
638
  }
629
639
  // Update App in App Studio
630
640
  const remoteTeamsAppId = await this.getTeamsAppId(ctx, false);
631
- await (publishProgress === null || publishProgress === void 0 ? void 0 : publishProgress.next(`Updating app definition for app ${remoteTeamsAppId} in app studio`));
641
+ await (publishProgress === null || publishProgress === void 0 ? void 0 : publishProgress.next(localizeUtils_1.getLocalizedString("plugins.appstudio.publishProgressUpdate", remoteTeamsAppId)));
632
642
  const appDefinitionRes = await this.convertToAppDefinition(ctx, manifest, true);
633
643
  if (appDefinitionRes.isErr()) {
634
644
  throw appDefinitionRes.error;
@@ -654,11 +664,11 @@ class AppStudioPluginImpl {
654
664
  }
655
665
  // Build Teams App package
656
666
  // Platforms will be checked in buildTeamsAppPackage(ctx)
657
- await (publishProgress === null || publishProgress === void 0 ? void 0 : publishProgress.next(`Building Teams app package in ${appDirectory}.`));
667
+ await (publishProgress === null || publishProgress === void 0 ? void 0 : publishProgress.next(localizeUtils_1.getLocalizedString("plugins.appstudio.publishProgressBuild", appDirectory)));
658
668
  const appPackage = await this.buildTeamsAppPackage(ctx, false);
659
669
  const appContent = await fs.readFile(appPackage);
660
670
  appStudioToken = await ((_d = ctx.appStudioToken) === null || _d === void 0 ? void 0 : _d.getAccessToken());
661
- await (publishProgress === null || publishProgress === void 0 ? void 0 : publishProgress.next(`Publishing ${manifest.name.short}`));
671
+ await (publishProgress === null || publishProgress === void 0 ? void 0 : publishProgress.next(localizeUtils_1.getLocalizedString("plugins.appstudio.publishProgressPublish", manifest.name.short)));
662
672
  if (update) {
663
673
  // Update existing app in App Catalog
664
674
  return await appStudio_1.AppStudioClient.publishTeamsAppUpdate(manifest.id, appContent, appStudioToken);
@@ -695,42 +705,42 @@ class AppStudioPluginImpl {
695
705
  }
696
706
  getTabEndpoint(ctx, isLocalDebug) {
697
707
  var _a, _b, _c;
698
- const tabEndpoint = isLocalDebug
708
+ const tabEndpoint = isLocalDebug && !common_1.isConfigUnifyEnabled()
699
709
  ? (_b = (_a = ctx.localSettings) === null || _a === void 0 ? void 0 : _a.frontend) === null || _b === void 0 ? void 0 : _b.get(localSettingsConstants_1.LocalSettingsFrontendKeys.TabEndpoint)
700
710
  : (_c = ctx.envInfo.state.get(constants_1.PluginNames.FE)) === null || _c === void 0 ? void 0 : _c.get(constants_2.FRONTEND_ENDPOINT);
701
711
  return tabEndpoint;
702
712
  }
703
713
  getTabDomain(ctx, isLocalDebug) {
704
714
  var _a, _b, _c;
705
- const tabDomain = isLocalDebug
715
+ const tabDomain = isLocalDebug && !common_1.isConfigUnifyEnabled()
706
716
  ? (_b = (_a = ctx.localSettings) === null || _a === void 0 ? void 0 : _a.frontend) === null || _b === void 0 ? void 0 : _b.get(localSettingsConstants_1.LocalSettingsFrontendKeys.TabDomain)
707
717
  : (_c = ctx.envInfo.state.get(constants_1.PluginNames.FE)) === null || _c === void 0 ? void 0 : _c.get(constants_2.FRONTEND_DOMAIN);
708
718
  return tabDomain;
709
719
  }
710
720
  getTabIndexPath(ctx, isLocalDebug) {
711
721
  var _a, _b, _c;
712
- const tabIndexPath = isLocalDebug
722
+ const tabIndexPath = isLocalDebug && !common_1.isConfigUnifyEnabled()
713
723
  ? (_b = (_a = ctx.localSettings) === null || _a === void 0 ? void 0 : _a.frontend) === null || _b === void 0 ? void 0 : _b.get(localSettingsConstants_1.LocalSettingsFrontendKeys.TabIndexPath)
714
724
  : (_c = ctx.envInfo.state.get(constants_1.PluginNames.FE)) === null || _c === void 0 ? void 0 : _c.get(constants_2.FRONTEND_INDEX_PATH);
715
725
  return tabIndexPath;
716
726
  }
717
727
  getAadClientId(ctx, isLocalDebug) {
718
728
  var _a, _b, _c;
719
- const clientId = isLocalDebug
729
+ const clientId = isLocalDebug && !common_1.isConfigUnifyEnabled()
720
730
  ? (_b = (_a = ctx.localSettings) === null || _a === void 0 ? void 0 : _a.auth) === null || _b === void 0 ? void 0 : _b.get(localSettingsConstants_1.LocalSettingsAuthKeys.ClientId)
721
731
  : (_c = ctx.envInfo.state.get(constants_1.PluginNames.AAD)) === null || _c === void 0 ? void 0 : _c.get(constants_1.REMOTE_AAD_ID);
722
732
  return clientId;
723
733
  }
724
734
  getBotId(ctx, isLocalDebug) {
725
735
  var _a, _b, _c;
726
- const botId = isLocalDebug
736
+ const botId = isLocalDebug && !common_1.isConfigUnifyEnabled()
727
737
  ? (_b = (_a = ctx.localSettings) === null || _a === void 0 ? void 0 : _a.bot) === null || _b === void 0 ? void 0 : _b.get(localSettingsConstants_1.LocalSettingsBotKeys.BotId)
728
738
  : (_c = ctx.envInfo.state.get(constants_1.PluginNames.BOT)) === null || _c === void 0 ? void 0 : _c.get(constants_2.BOT_ID);
729
739
  return botId;
730
740
  }
731
741
  getBotDomain(ctx, isLocalDebug) {
732
742
  var _a, _b, _c;
733
- const botDomain = isLocalDebug
743
+ const botDomain = isLocalDebug && !common_1.isConfigUnifyEnabled()
734
744
  ? (_b = (_a = ctx.localSettings) === null || _a === void 0 ? void 0 : _a.bot) === null || _b === void 0 ? void 0 : _b.get(localSettingsConstants_1.LocalSettingsBotKeys.BotDomain)
735
745
  : (_c = ctx.envInfo.state.get(constants_1.PluginNames.BOT)) === null || _c === void 0 ? void 0 : _c.get(constants_1.BOT_DOMAIN);
736
746
  return botDomain;
@@ -875,7 +885,7 @@ class AppStudioPluginImpl {
875
885
  async updateApp(ctx, appDefinition, appStudioToken, isLocalDebug, createIfNotExist, appDirectory, teamsAppId, logProvider) {
876
886
  var _a;
877
887
  if (appStudioToken === undefined || appStudioToken.length === 0) {
878
- return teamsfx_api_1.err(results_1.AppStudioResultFactory.SystemError(errors_1.AppStudioError.AppStudioTokenGetFailedError.name, errors_1.AppStudioError.AppStudioTokenGetFailedError.message));
888
+ return teamsfx_api_1.err(results_1.AppStudioResultFactory.SystemError(constants_1.SolutionError.NoAppStudioToken, localizeUtils_1.getLocalizedString("error.appstudio.noAppStudioToken")));
879
889
  }
880
890
  if (createIfNotExist) {
881
891
  const appDef = await this.createApp(ctx, isLocalDebug);
@@ -923,12 +933,14 @@ class AppStudioPluginImpl {
923
933
  }
924
934
  catch (e) {
925
935
  return teamsfx_api_1.err(results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.ValidationFailedError.name, errors_1.AppStudioError.ValidationFailedError.message([
926
- `Failed to get schema from ${manifest.$schema}, message: ${e.message}`,
936
+ localizeUtils_1.getLocalizedString("error.appstudio.validateFetchSchemaFailed", manifest.$schema, e.message),
927
937
  ]), constants_3.HelpLinks.WhyNeedProvision));
928
938
  }
929
939
  }
930
940
  else {
931
- return teamsfx_api_1.err(results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.ValidationFailedError.name, errors_1.AppStudioError.ValidationFailedError.message(["Manifest schema is not defined"]), constants_3.HelpLinks.WhyNeedProvision));
941
+ return teamsfx_api_1.err(results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.ValidationFailedError.name, errors_1.AppStudioError.ValidationFailedError.message([
942
+ localizeUtils_1.getLocalizedString("error.appstudio.validateSchemaNotDefined"),
943
+ ]), constants_3.HelpLinks.WhyNeedProvision));
932
944
  }
933
945
  }
934
946
  async getAppDefinitionAndManifest(ctx, isLocalDebug) {
@@ -940,13 +952,16 @@ class AppStudioPluginImpl {
940
952
  if (tabDomain) {
941
953
  validDomains.push(tabDomain);
942
954
  }
955
+ if (tabEndpoint && isLocalDebug) {
956
+ validDomains.push(tabEndpoint.slice(8));
957
+ }
943
958
  if (botId) {
944
959
  if (!botDomain) {
945
960
  if (isLocalDebug && !common_1.isConfigUnifyEnabled()) {
946
- return teamsfx_api_1.err(results_1.AppStudioResultFactory.SystemError(errors_1.AppStudioError.GetLocalDebugConfigFailedError.name, errors_1.AppStudioError.GetLocalDebugConfigFailedError.message(new Error(`Data required: ${constants_1.LOCAL_DEBUG_BOT_DOMAIN}`))));
961
+ return teamsfx_api_1.err(results_1.AppStudioResultFactory.SystemError(errors_1.AppStudioError.GetLocalDebugConfigFailedError.name, errors_1.AppStudioError.GetLocalDebugConfigFailedError.message(new Error(localizeUtils_1.getLocalizedString("plugins.appstudio.dataRequired", constants_1.LOCAL_DEBUG_BOT_DOMAIN)))));
947
962
  }
948
963
  else {
949
- return teamsfx_api_1.err(results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.GetRemoteConfigFailedError.name, errors_1.AppStudioError.GetRemoteConfigFailedError.message(new Error(`Data required: ${constants_1.BOT_DOMAIN}`), isProvisionSucceeded), constants_3.HelpLinks.WhyNeedProvision));
964
+ return teamsfx_api_1.err(results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.GetRemoteConfigFailedError.name, errors_1.AppStudioError.GetRemoteConfigFailedError.message(localizeUtils_1.getLocalizedString("plugins.appstudio.dataRequired", constants_1.BOT_DOMAIN), isProvisionSucceeded), constants_3.HelpLinks.WhyNeedProvision));
950
965
  }
951
966
  }
952
967
  else {
@@ -961,8 +976,19 @@ class AppStudioPluginImpl {
961
976
  // Bot only project, without frontend hosting
962
977
  let endpoint = tabEndpoint;
963
978
  let indexPath = tabIndexPath;
964
- const solutionSettings = (_b = ctx.projectSettings) === null || _b === void 0 ? void 0 : _b.solutionSettings;
965
- const hasFrontend = solutionSettings.capabilities.includes(question_1.TabOptionItem.id);
979
+ let hasFrontend = false;
980
+ if (common_1.isConfigUnifyEnabled()) {
981
+ const capabilities = await manifestTemplate_1.getCapabilities(ctx.root);
982
+ if (capabilities.isErr()) {
983
+ return teamsfx_api_1.err(capabilities.error);
984
+ }
985
+ hasFrontend =
986
+ capabilities.value.includes("staticTab") || capabilities.value.includes("configurableTab");
987
+ }
988
+ else {
989
+ const solutionSettings = (_b = ctx.projectSettings) === null || _b === void 0 ? void 0 : _b.solutionSettings;
990
+ hasFrontend = solutionSettings.capabilities.includes(question_1.TabOptionItem.id);
991
+ }
966
992
  if (!endpoint && !hasFrontend) {
967
993
  endpoint = constants_2.DEFAULT_DEVELOPER_WEBSITE_URL;
968
994
  indexPath = "";
@@ -1026,16 +1052,24 @@ class AppStudioPluginImpl {
1026
1052
  const tokens = [
1027
1053
  ...new Set(mustache_1.default.parse(manifestString)
1028
1054
  .filter((x) => {
1029
- return x[0] != "text" && x[1] != "localSettings.teamsApp.teamsAppId";
1055
+ if (common_1.isConfigUnifyEnabled()) {
1056
+ // TODO: update local check
1057
+ return (x[0] != "text" &&
1058
+ (ctx.envInfo.envName !== environment_1.environmentManager.getLocalEnvName() ||
1059
+ x[1] != "state.fx-resource-appstudio.teamsAppId"));
1060
+ }
1061
+ else {
1062
+ return x[0] != "text" && x[1] != "localSettings.teamsApp.teamsAppId";
1063
+ }
1030
1064
  })
1031
1065
  .map((x) => x[1])),
1032
1066
  ];
1033
1067
  if (tokens.length > 0) {
1034
1068
  if (isLocalDebug) {
1035
- return teamsfx_api_1.err(results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.GetLocalDebugConfigFailedError.name, errors_1.AppStudioError.GetLocalDebugConfigFailedError.message(new Error(`Data required: ${tokens.join(",")}`))));
1069
+ return teamsfx_api_1.err(results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.GetLocalDebugConfigFailedError.name, errors_1.AppStudioError.GetLocalDebugConfigFailedError.message(new Error(localizeUtils_1.getLocalizedString("plugins.appstudio.dataRequired", tokens.join(","))))));
1036
1070
  }
1037
1071
  else {
1038
- return teamsfx_api_1.err(results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.GetRemoteConfigFailedError.name, errors_1.AppStudioError.GetRemoteConfigFailedError.message(new Error(`Data required: ${tokens.join(",")}`), isProvisionSucceeded), constants_3.HelpLinks.WhyNeedProvision));
1072
+ return teamsfx_api_1.err(results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.GetRemoteConfigFailedError.name, errors_1.AppStudioError.GetRemoteConfigFailedError.message(localizeUtils_1.getLocalizedString("plugins.appstudio.dataRequired", tokens.join(",")), isProvisionSucceeded), constants_3.HelpLinks.WhyNeedProvision));
1039
1073
  }
1040
1074
  }
1041
1075
  let updatedManifest;
@@ -1091,14 +1125,14 @@ class AppStudioPluginImpl {
1091
1125
  }
1092
1126
  }
1093
1127
  exports.AppStudioPluginImpl = AppStudioPluginImpl;
1094
- async function createLocalManifest(appName, hasFrontend, hasBot, hasMessageExtension, isSPFx) {
1128
+ async function createLocalManifest(appName, hasFrontend, hasBot, hasMessageExtension, isSPFx, hasAad = true, isM365 = false) {
1095
1129
  let name = appName;
1096
1130
  const suffix = "-local-debug";
1097
1131
  if (suffix.length + appName.length <= constants_2.TEAMS_APP_SHORT_NAME_MAX_LENGTH) {
1098
1132
  name = name + suffix;
1099
1133
  }
1100
1134
  if (isSPFx) {
1101
- const templateManifestFolder = path_1.default.join(__1.getTemplatesFolder(), "plugins", "resource", "spfx");
1135
+ const templateManifestFolder = path_1.default.join(folder_1.getTemplatesFolder(), "plugins", "resource", "spfx");
1102
1136
  const localManifestFile = path_1.default.resolve(templateManifestFolder, `./solution/${constants_2.MANIFEST_LOCAL}`);
1103
1137
  let manifestString = (await fs.readFile(localManifestFile)).toString();
1104
1138
  manifestString = utils_1.replaceConfigValue(manifestString, "appName", name);
@@ -1106,12 +1140,17 @@ async function createLocalManifest(appName, hasFrontend, hasBot, hasMessageExten
1106
1140
  return manifest;
1107
1141
  }
1108
1142
  else {
1109
- let manifestString = constants_2.TEAMS_APP_MANIFEST_TEMPLATE_LOCAL_DEBUG;
1143
+ let manifestString = constants_2.TEAMS_APP_MANIFEST_TEMPLATE_LOCAL_DEBUG_V3;
1110
1144
  manifestString = utils_1.replaceConfigValue(manifestString, "appName", name);
1111
1145
  const manifest = JSON.parse(manifestString);
1146
+ if (hasAad) {
1147
+ manifest.webApplicationInfo = constants_2.WEB_APPLICATION_INFO_LOCAL_DEBUG;
1148
+ }
1112
1149
  if (hasFrontend) {
1113
1150
  manifest.staticTabs = constants_2.STATIC_TABS_TPL_LOCAL_DEBUG;
1114
- manifest.configurableTabs = constants_2.CONFIGURABLE_TABS_TPL_LOCAL_DEBUG;
1151
+ if (!isM365) {
1152
+ manifest.configurableTabs = constants_2.CONFIGURABLE_TABS_TPL_LOCAL_DEBUG;
1153
+ }
1115
1154
  }
1116
1155
  if (hasBot) {
1117
1156
  manifest.bots = constants_2.BOTS_TPL_LOCAL_DEBUG;
@@ -1119,20 +1158,29 @@ async function createLocalManifest(appName, hasFrontend, hasBot, hasMessageExten
1119
1158
  if (hasMessageExtension) {
1120
1159
  manifest.composeExtensions = constants_2.COMPOSE_EXTENSIONS_TPL_LOCAL_DEBUG;
1121
1160
  }
1161
+ if (isM365) {
1162
+ manifest.$schema = constants_2.DEVELOPER_PREVIEW_SCHEMA;
1163
+ manifest.manifestVersion = constants_2.M365_DEVELOPER_PREVIEW_MANIFEST_VERSION;
1164
+ }
1122
1165
  return manifest;
1123
1166
  }
1124
1167
  }
1125
1168
  exports.createLocalManifest = createLocalManifest;
1126
- async function createManifest(appName, hasFrontend, hasBot, hasMessageExtension, isSPFx) {
1127
- if (!hasBot && !hasMessageExtension && !hasFrontend) {
1169
+ async function createManifest(appName, hasFrontend, hasBot, hasMessageExtension, isSPFx, hasAad = true, isM365 = false) {
1170
+ if (!hasBot && !hasMessageExtension && !hasFrontend && !hasAad) {
1128
1171
  throw new Error(`Invalid capability`);
1129
1172
  }
1130
- if (!isSPFx || hasBot || hasMessageExtension) {
1131
- const manifestString = constants_2.TEAMS_APP_MANIFEST_TEMPLATE_FOR_MULTI_ENV;
1173
+ if (!isSPFx || hasBot || hasMessageExtension || hasAad) {
1174
+ const manifestString = constants_2.TEAMS_APP_MANIFEST_TEMPLATE_V3;
1132
1175
  const manifest = JSON.parse(manifestString);
1176
+ if (hasAad) {
1177
+ manifest.webApplicationInfo = constants_2.WEB_APPLICATION_INFO_MULTI_ENV;
1178
+ }
1133
1179
  if (hasFrontend) {
1134
1180
  manifest.staticTabs = constants_2.STATIC_TABS_TPL_FOR_MULTI_ENV;
1135
- manifest.configurableTabs = constants_2.CONFIGURABLE_TABS_TPL_FOR_MULTI_ENV;
1181
+ if (!isM365) {
1182
+ manifest.configurableTabs = constants_2.CONFIGURABLE_TABS_TPL_FOR_MULTI_ENV;
1183
+ }
1136
1184
  }
1137
1185
  if (hasBot) {
1138
1186
  manifest.bots = constants_2.BOTS_TPL_FOR_MULTI_ENV;
@@ -1140,6 +1188,10 @@ async function createManifest(appName, hasFrontend, hasBot, hasMessageExtension,
1140
1188
  if (hasMessageExtension) {
1141
1189
  manifest.composeExtensions = constants_2.COMPOSE_EXTENSIONS_TPL_FOR_MULTI_ENV;
1142
1190
  }
1191
+ if (isM365) {
1192
+ manifest.$schema = constants_2.DEVELOPER_PREVIEW_SCHEMA;
1193
+ manifest.manifestVersion = constants_2.M365_DEVELOPER_PREVIEW_MANIFEST_VERSION;
1194
+ }
1143
1195
  return manifest;
1144
1196
  }
1145
1197
  return undefined;