@microsoft/teamsfx-core 2.0.0-alpha.df941b6ed.0 → 2.0.0-alpha.e49547890.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 (450) hide show
  1. package/build/common/armInterface.d.ts +0 -5
  2. package/build/common/armInterface.d.ts.map +1 -1
  3. package/build/common/deps-checker/constant/helpLink.d.ts +6 -6
  4. package/build/common/deps-checker/constant/helpLink.d.ts.map +1 -1
  5. package/build/common/deps-checker/constant/helpLink.js +14 -7
  6. package/build/common/deps-checker/constant/helpLink.js.map +1 -1
  7. package/build/common/deps-checker/constant/message.d.ts +6 -5
  8. package/build/common/deps-checker/constant/message.d.ts.map +1 -1
  9. package/build/common/deps-checker/constant/message.js +13 -9
  10. package/build/common/deps-checker/constant/message.js.map +1 -1
  11. package/build/common/deps-checker/constant/telemetry.d.ts +12 -1
  12. package/build/common/deps-checker/constant/telemetry.d.ts.map +1 -1
  13. package/build/common/deps-checker/constant/telemetry.js +11 -0
  14. package/build/common/deps-checker/constant/telemetry.js.map +1 -1
  15. package/build/common/deps-checker/depsChecker.d.ts +6 -1
  16. package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
  17. package/build/common/deps-checker/depsChecker.js.map +1 -1
  18. package/build/common/deps-checker/internal/funcToolChecker.d.ts +20 -40
  19. package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
  20. package/build/common/deps-checker/internal/funcToolChecker.js +208 -295
  21. package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
  22. package/build/common/deps-checker/internal/nodeChecker.d.ts +3 -3
  23. package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
  24. package/build/common/deps-checker/internal/nodeChecker.js +4 -6
  25. package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
  26. package/build/common/deps-checker/internal/vxTestAppChecker.d.ts +0 -1
  27. package/build/common/deps-checker/internal/vxTestAppChecker.d.ts.map +1 -1
  28. package/build/common/deps-checker/internal/vxTestAppChecker.js +3 -21
  29. package/build/common/deps-checker/internal/vxTestAppChecker.js.map +1 -1
  30. package/build/common/deps-checker/util/fileHelper.d.ts +4 -0
  31. package/build/common/deps-checker/util/fileHelper.d.ts.map +1 -0
  32. package/build/common/deps-checker/util/fileHelper.js +45 -0
  33. package/build/common/deps-checker/util/fileHelper.js.map +1 -0
  34. package/build/common/local/constants.d.ts +7 -0
  35. package/build/common/local/constants.d.ts.map +1 -1
  36. package/build/common/local/constants.js +7 -0
  37. package/build/common/local/constants.js.map +1 -1
  38. package/build/common/local/localEnvManager.d.ts.map +1 -1
  39. package/build/common/local/localEnvManager.js +2 -3
  40. package/build/common/local/localEnvManager.js.map +1 -1
  41. package/build/common/m365/errors.d.ts +1 -1
  42. package/build/common/m365/errors.d.ts.map +1 -1
  43. package/build/common/m365/errors.js +7 -7
  44. package/build/common/m365/errors.js.map +1 -1
  45. package/build/common/m365/launchHelper.js +2 -2
  46. package/build/common/m365/launchHelper.js.map +1 -1
  47. package/build/common/samples-config-v3.json +23 -0
  48. package/build/common/samples.js +1 -1
  49. package/build/common/samples.js.map +1 -1
  50. package/build/common/telemetry.d.ts +1 -0
  51. package/build/common/telemetry.d.ts.map +1 -1
  52. package/build/common/telemetry.js +1 -0
  53. package/build/common/telemetry.js.map +1 -1
  54. package/build/common/tools.d.ts +1 -0
  55. package/build/common/tools.d.ts.map +1 -1
  56. package/build/common/tools.js +6 -2
  57. package/build/common/tools.js.map +1 -1
  58. package/build/common/versionMetadata.d.ts +5 -0
  59. package/build/common/versionMetadata.d.ts.map +1 -1
  60. package/build/common/versionMetadata.js +11 -0
  61. package/build/common/versionMetadata.js.map +1 -1
  62. package/build/component/code/utils.d.ts +3 -0
  63. package/build/component/code/utils.d.ts.map +1 -1
  64. package/build/component/code/utils.js +19 -8
  65. package/build/component/code/utils.js.map +1 -1
  66. package/build/component/configManager/diagnostic.d.ts +9 -0
  67. package/build/component/configManager/diagnostic.d.ts.map +1 -0
  68. package/build/component/configManager/diagnostic.js +47 -0
  69. package/build/component/configManager/diagnostic.js.map +1 -0
  70. package/build/component/configManager/parser.d.ts.map +1 -1
  71. package/build/component/configManager/parser.js +11 -5
  72. package/build/component/configManager/parser.js.map +1 -1
  73. package/build/component/constants.d.ts +7 -0
  74. package/build/component/constants.d.ts.map +1 -1
  75. package/build/component/constants.js +60 -26
  76. package/build/component/constants.js.map +1 -1
  77. package/build/component/coordinator/index.d.ts +2 -2
  78. package/build/component/coordinator/index.d.ts.map +1 -1
  79. package/build/component/coordinator/index.js +57 -72
  80. package/build/component/coordinator/index.js.map +1 -1
  81. package/build/component/debugHandler/appManifest.js +2 -1
  82. package/build/component/debugHandler/appManifest.js.map +1 -1
  83. package/build/component/debugHandler/error.d.ts +0 -1
  84. package/build/component/debugHandler/error.d.ts.map +1 -1
  85. package/build/component/debugHandler/error.js +1 -5
  86. package/build/component/debugHandler/error.js.map +1 -1
  87. package/build/component/developerPortalScaffoldUtils.d.ts +4 -1
  88. package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
  89. package/build/component/developerPortalScaffoldUtils.js +5 -5
  90. package/build/component/developerPortalScaffoldUtils.js.map +1 -1
  91. package/build/component/driver/aad/create.d.ts.map +1 -1
  92. package/build/component/driver/aad/create.js +5 -14
  93. package/build/component/driver/aad/create.js.map +1 -1
  94. package/build/component/driver/aad/update.d.ts.map +1 -1
  95. package/build/component/driver/aad/update.js +3 -4
  96. package/build/component/driver/aad/update.js.map +1 -1
  97. package/build/component/driver/aad/utility/buildAadManifest.js +1 -1
  98. package/build/component/driver/aad/utility/buildAadManifest.js.map +1 -1
  99. package/build/component/driver/add/utility/constants.d.ts +1 -1
  100. package/build/component/driver/add/utility/constants.d.ts.map +1 -1
  101. package/build/component/driver/add/utility/constants.js +1 -1
  102. package/build/component/driver/add/utility/constants.js.map +1 -1
  103. package/build/component/driver/arm/deployImpl.d.ts.map +1 -1
  104. package/build/component/driver/arm/deployImpl.js +4 -1
  105. package/build/component/driver/arm/deployImpl.js.map +1 -1
  106. package/build/component/driver/arm/validator.d.ts.map +1 -1
  107. package/build/component/driver/arm/validator.js +0 -15
  108. package/build/component/driver/arm/validator.js.map +1 -1
  109. package/build/component/driver/botAadApp/create.d.ts.map +1 -1
  110. package/build/component/driver/botAadApp/create.js +5 -6
  111. package/build/component/driver/botAadApp/create.js.map +1 -1
  112. package/build/component/driver/botFramework/createOrUpdateBot.d.ts.map +1 -1
  113. package/build/component/driver/botFramework/createOrUpdateBot.js +1 -2
  114. package/build/component/driver/botFramework/createOrUpdateBot.js.map +1 -1
  115. package/build/component/driver/deploy/azure/azureStorageDeployDriver.d.ts.map +1 -1
  116. package/build/component/driver/deploy/azure/azureStorageDeployDriver.js +10 -17
  117. package/build/component/driver/deploy/azure/azureStorageDeployDriver.js.map +1 -1
  118. package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.d.ts.map +1 -1
  119. package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js +3 -3
  120. package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js.map +1 -1
  121. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts +1 -1
  122. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
  123. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +13 -13
  124. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
  125. package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts +2 -3
  126. package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts.map +1 -1
  127. package/build/component/driver/deploy/azure/impl/azureDeployImpl.js +45 -13
  128. package/build/component/driver/deploy/azure/impl/azureDeployImpl.js.map +1 -1
  129. package/build/component/driver/deploy/azure/impl/baseDeployImpl.d.ts +1 -1
  130. package/build/component/driver/deploy/azure/impl/baseDeployImpl.d.ts.map +1 -1
  131. package/build/component/driver/deploy/azure/impl/baseDeployImpl.js +6 -0
  132. package/build/component/driver/deploy/azure/impl/baseDeployImpl.js.map +1 -1
  133. package/build/component/driver/devTool/constant.d.ts.map +1 -0
  134. package/build/component/driver/devTool/constant.js.map +1 -0
  135. package/build/component/driver/devTool/error/dotnetInstallationUserError.d.ts +5 -0
  136. package/build/component/driver/devTool/error/dotnetInstallationUserError.d.ts.map +1 -0
  137. package/build/component/driver/{prerequisite → devTool}/error/dotnetInstallationUserError.js +2 -1
  138. package/build/component/driver/devTool/error/dotnetInstallationUserError.js.map +1 -0
  139. package/build/component/driver/devTool/error/funcInstallationUserError.d.ts +5 -0
  140. package/build/component/driver/devTool/error/funcInstallationUserError.d.ts.map +1 -0
  141. package/build/component/driver/{prerequisite → devTool}/error/funcInstallationUserError.js +2 -1
  142. package/build/component/driver/devTool/error/funcInstallationUserError.js.map +1 -0
  143. package/build/component/driver/{prerequisite → devTool}/installDriver.d.ts +1 -1
  144. package/build/component/driver/devTool/installDriver.d.ts.map +1 -0
  145. package/build/component/driver/{prerequisite → devTool}/installDriver.js +46 -17
  146. package/build/component/driver/devTool/installDriver.js.map +1 -0
  147. package/build/component/driver/{prerequisite → devTool}/interfaces/InstallToolArgs.d.ts +5 -1
  148. package/build/component/driver/devTool/interfaces/InstallToolArgs.d.ts.map +1 -0
  149. package/build/component/driver/devTool/interfaces/InstallToolArgs.js.map +1 -0
  150. package/build/component/driver/error/outputEnvironmentVariableUndefinedError.d.ts +5 -0
  151. package/build/component/driver/error/outputEnvironmentVariableUndefinedError.d.ts.map +1 -0
  152. package/build/component/driver/error/outputEnvironmentVariableUndefinedError.js +22 -0
  153. package/build/component/driver/error/outputEnvironmentVariableUndefinedError.js.map +1 -0
  154. package/build/component/driver/file/createOrUpdateEnvironmentFile.d.ts.map +1 -1
  155. package/build/component/driver/file/createOrUpdateEnvironmentFile.js +1 -2
  156. package/build/component/driver/file/createOrUpdateEnvironmentFile.js.map +1 -1
  157. package/build/component/driver/file/createOrUpdateJsonFile.d.ts.map +1 -1
  158. package/build/component/driver/file/createOrUpdateJsonFile.js +1 -2
  159. package/build/component/driver/file/createOrUpdateJsonFile.js.map +1 -1
  160. package/build/component/driver/index.d.ts +1 -1
  161. package/build/component/driver/index.d.ts.map +1 -1
  162. package/build/component/driver/index.js +1 -1
  163. package/build/component/driver/index.js.map +1 -1
  164. package/build/component/driver/m365/acquire.d.ts.map +1 -1
  165. package/build/component/driver/m365/acquire.js +5 -6
  166. package/build/component/driver/m365/acquire.js.map +1 -1
  167. package/build/component/driver/middleware/addStartAndEndTelemetry.d.ts.map +1 -1
  168. package/build/component/driver/middleware/addStartAndEndTelemetry.js +14 -6
  169. package/build/component/driver/middleware/addStartAndEndTelemetry.js.map +1 -1
  170. package/build/component/driver/script/scriptDriver.js +4 -2
  171. package/build/component/driver/script/scriptDriver.js.map +1 -1
  172. package/build/component/driver/teamsApp/createAppPackage.d.ts +0 -1
  173. package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
  174. package/build/component/driver/teamsApp/createAppPackage.js +1 -11
  175. package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
  176. package/build/component/driver/teamsApp/interfaces/ValidateManifestArgs.d.ts +5 -0
  177. package/build/component/driver/teamsApp/interfaces/ValidateManifestArgs.d.ts.map +1 -1
  178. package/build/component/driver/teamsApp/validate.d.ts +0 -1
  179. package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
  180. package/build/component/driver/teamsApp/validate.js +54 -20
  181. package/build/component/driver/teamsApp/validate.js.map +1 -1
  182. package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
  183. package/build/component/driver/teamsApp/validateAppPackage.js +80 -13
  184. package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
  185. package/build/component/driver/util/wrapUtil.js +1 -1
  186. package/build/component/driver/util/wrapUtil.js.map +1 -1
  187. package/build/component/error/deployError.d.ts +0 -17
  188. package/build/component/error/deployError.d.ts.map +1 -1
  189. package/build/component/error/deployError.js +0 -80
  190. package/build/component/error/deployError.js.map +1 -1
  191. package/build/component/feature/apiconnector/errors.d.ts +0 -4
  192. package/build/component/feature/apiconnector/errors.d.ts.map +1 -1
  193. package/build/component/feature/apiconnector/errors.js +12 -16
  194. package/build/component/feature/apiconnector/errors.js.map +1 -1
  195. package/build/component/feature/bot/bot.js +8 -8
  196. package/build/component/feature/bot/bot.js.map +1 -1
  197. package/build/component/feature/bot/question.d.ts +6 -6
  198. package/build/component/feature/bot/question.d.ts.map +1 -1
  199. package/build/component/feature/bot/question.js +69 -38
  200. package/build/component/feature/bot/question.js.map +1 -1
  201. package/build/component/generator/constant.d.ts +2 -0
  202. package/build/component/generator/constant.d.ts.map +1 -1
  203. package/build/component/generator/constant.js +3 -1
  204. package/build/component/generator/constant.js.map +1 -1
  205. package/build/component/generator/error.d.ts +9 -0
  206. package/build/component/generator/error.d.ts.map +1 -1
  207. package/build/component/generator/error.js +19 -1
  208. package/build/component/generator/error.js.map +1 -1
  209. package/build/component/generator/generator.d.ts +1 -1
  210. package/build/component/generator/generator.d.ts.map +1 -1
  211. package/build/component/generator/generator.js +25 -8
  212. package/build/component/generator/generator.js.map +1 -1
  213. package/build/component/generator/generatorAction.d.ts +5 -2
  214. package/build/component/generator/generatorAction.d.ts.map +1 -1
  215. package/build/component/generator/generatorAction.js +20 -10
  216. package/build/component/generator/generatorAction.js.map +1 -1
  217. package/build/component/generator/officeAddin/question.d.ts.map +1 -1
  218. package/build/component/generator/officeAddin/question.js +3 -3
  219. package/build/component/generator/officeAddin/question.js.map +1 -1
  220. package/build/component/generator/utils.d.ts +2 -0
  221. package/build/component/generator/utils.d.ts.map +1 -1
  222. package/build/component/generator/utils.js +64 -2
  223. package/build/component/generator/utils.js.map +1 -1
  224. package/build/component/messages.d.ts +3 -2
  225. package/build/component/messages.d.ts.map +1 -1
  226. package/build/component/messages.js +3 -2
  227. package/build/component/messages.js.map +1 -1
  228. package/build/component/question.d.ts +1 -0
  229. package/build/component/question.d.ts.map +1 -1
  230. package/build/component/question.js +15 -11
  231. package/build/component/question.js.map +1 -1
  232. package/build/component/resource/appManifest/appManifest.d.ts.map +1 -1
  233. package/build/component/resource/appManifest/appManifest.js +3 -4
  234. package/build/component/resource/appManifest/appManifest.js.map +1 -1
  235. package/build/component/resource/appManifest/appStudio.d.ts.map +1 -1
  236. package/build/component/resource/appManifest/appStudio.js +8 -12
  237. package/build/component/resource/appManifest/appStudio.js.map +1 -1
  238. package/build/component/resource/appManifest/constants.d.ts +1 -0
  239. package/build/component/resource/appManifest/constants.d.ts.map +1 -1
  240. package/build/component/resource/appManifest/constants.js +1 -0
  241. package/build/component/resource/appManifest/constants.js.map +1 -1
  242. package/build/component/resource/appManifest/errors.d.ts +0 -4
  243. package/build/component/resource/appManifest/errors.d.ts.map +1 -1
  244. package/build/component/resource/appManifest/errors.js +0 -7
  245. package/build/component/resource/appManifest/errors.js.map +1 -1
  246. package/build/component/resource/appManifest/utils/ManifestUtils.d.ts +2 -1
  247. package/build/component/resource/appManifest/utils/ManifestUtils.d.ts.map +1 -1
  248. package/build/component/resource/appManifest/utils/ManifestUtils.js +9 -14
  249. package/build/component/resource/appManifest/utils/ManifestUtils.js.map +1 -1
  250. package/build/component/resource/appManifest/utils/telemetry.d.ts +2 -0
  251. package/build/component/resource/appManifest/utils/telemetry.d.ts.map +1 -1
  252. package/build/component/resource/appManifest/utils/telemetry.js +2 -0
  253. package/build/component/resource/appManifest/utils/telemetry.js.map +1 -1
  254. package/build/component/resource/appManifest/utils/utils.d.ts.map +1 -1
  255. package/build/component/resource/appManifest/utils/utils.js +5 -1
  256. package/build/component/resource/appManifest/utils/utils.js.map +1 -1
  257. package/build/component/resource/azureSql/errors.js +28 -28
  258. package/build/component/resource/azureSql/errors.js.map +1 -1
  259. package/build/component/resource/azureStorage/configs.d.ts +1 -1
  260. package/build/component/resource/spfx/utils/question-helper.js +1 -1
  261. package/build/component/resource/spfx/utils/question-helper.js.map +1 -1
  262. package/build/component/utils/ResourceGroupHelper.d.ts +1 -6
  263. package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
  264. package/build/component/utils/ResourceGroupHelper.js +65 -131
  265. package/build/component/utils/ResourceGroupHelper.js.map +1 -1
  266. package/build/component/utils/azureSdkErrorHandler.d.ts +2 -1
  267. package/build/component/utils/azureSdkErrorHandler.d.ts.map +1 -1
  268. package/build/component/utils/azureSdkErrorHandler.js.map +1 -1
  269. package/build/component/utils/depsChecker/bicepChecker.d.ts.map +1 -1
  270. package/build/component/utils/depsChecker/bicepChecker.js +4 -7
  271. package/build/component/utils/depsChecker/bicepChecker.js.map +1 -1
  272. package/build/component/utils/envUtil.d.ts.map +1 -1
  273. package/build/component/utils/envUtil.js +5 -8
  274. package/build/component/utils/envUtil.js.map +1 -1
  275. package/build/component/utils/pathUtils.js +2 -2
  276. package/build/component/utils/pathUtils.js.map +1 -1
  277. package/build/component/utils/settingsUtil.js +3 -3
  278. package/build/component/utils/settingsUtil.js.map +1 -1
  279. package/build/core/FxCore.d.ts +89 -31
  280. package/build/core/FxCore.d.ts.map +1 -1
  281. package/build/core/FxCore.js +144 -607
  282. package/build/core/FxCore.js.map +1 -1
  283. package/build/core/FxCoreImplementV3.d.ts +12 -3
  284. package/build/core/FxCoreImplementV3.d.ts.map +1 -1
  285. package/build/core/FxCoreImplementV3.js +88 -31
  286. package/build/core/FxCoreImplementV3.js.map +1 -1
  287. package/build/core/environment.d.ts.map +1 -1
  288. package/build/core/environment.js +2 -13
  289. package/build/core/environment.js.map +1 -1
  290. package/build/core/error.d.ts +1 -13
  291. package/build/core/error.d.ts.map +1 -1
  292. package/build/core/error.js +1 -57
  293. package/build/core/error.js.map +1 -1
  294. package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
  295. package/build/core/middleware/concurrentLocker.js +3 -10
  296. package/build/core/middleware/concurrentLocker.js.map +1 -1
  297. package/build/core/middleware/envInfoLoaderV3.d.ts +1 -10
  298. package/build/core/middleware/envInfoLoaderV3.d.ts.map +1 -1
  299. package/build/core/middleware/envInfoLoaderV3.js +1 -207
  300. package/build/core/middleware/envInfoLoaderV3.js.map +1 -1
  301. package/build/core/middleware/projectMigratorV3.d.ts +3 -1
  302. package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
  303. package/build/core/middleware/projectMigratorV3.js +81 -35
  304. package/build/core/middleware/projectMigratorV3.js.map +1 -1
  305. package/build/core/middleware/questionModel.d.ts +0 -1
  306. package/build/core/middleware/questionModel.d.ts.map +1 -1
  307. package/build/core/middleware/questionModel.js +110 -32
  308. package/build/core/middleware/questionModel.js.map +1 -1
  309. package/build/core/middleware/utils/MigrationUtils.d.ts.map +1 -1
  310. package/build/core/middleware/utils/MigrationUtils.js +1 -0
  311. package/build/core/middleware/utils/MigrationUtils.js.map +1 -1
  312. package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts +1 -1
  313. package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts.map +1 -1
  314. package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts +2 -0
  315. package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts.map +1 -1
  316. package/build/core/middleware/utils/debug/debugV3MigrationUtils.js +12 -8
  317. package/build/core/middleware/utils/debug/debugV3MigrationUtils.js.map +1 -1
  318. package/build/core/middleware/utils/debug/taskMigrator.d.ts +1 -0
  319. package/build/core/middleware/utils/debug/taskMigrator.d.ts.map +1 -1
  320. package/build/core/middleware/utils/debug/taskMigrator.js +134 -37
  321. package/build/core/middleware/utils/debug/taskMigrator.js.map +1 -1
  322. package/build/core/middleware/utils/migrationContext.d.ts +1 -0
  323. package/build/core/middleware/utils/migrationContext.d.ts.map +1 -1
  324. package/build/core/middleware/utils/migrationContext.js +1 -0
  325. package/build/core/middleware/utils/migrationContext.js.map +1 -1
  326. package/build/core/middleware/utils/v3MigrationUtils.d.ts +9 -1
  327. package/build/core/middleware/utils/v3MigrationUtils.d.ts.map +1 -1
  328. package/build/core/middleware/utils/v3MigrationUtils.js +49 -18
  329. package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
  330. package/build/core/question.d.ts +10 -3
  331. package/build/core/question.d.ts.map +1 -1
  332. package/build/core/question.js +181 -90
  333. package/build/core/question.js.map +1 -1
  334. package/build/core/types.d.ts +3 -3
  335. package/build/core/types.d.ts.map +1 -1
  336. package/build/error/arm.d.ts +6 -0
  337. package/build/error/arm.d.ts.map +1 -1
  338. package/build/error/arm.js +17 -1
  339. package/build/error/arm.js.map +1 -1
  340. package/build/error/azure.d.ts +30 -0
  341. package/build/error/azure.d.ts.map +1 -1
  342. package/build/error/azure.js +81 -1
  343. package/build/error/azure.js.map +1 -1
  344. package/build/error/common.d.ts +14 -2
  345. package/build/error/common.d.ts.map +1 -1
  346. package/build/error/common.js +59 -11
  347. package/build/error/common.js.map +1 -1
  348. package/build/error/deploy.d.ts +28 -0
  349. package/build/error/deploy.d.ts.map +1 -1
  350. package/build/error/deploy.js +100 -1
  351. package/build/error/deploy.js.map +1 -1
  352. package/build/error/script.d.ts +14 -0
  353. package/build/error/script.d.ts.map +1 -0
  354. package/build/error/script.js +38 -0
  355. package/build/error/script.js.map +1 -0
  356. package/build/error/upgrade.d.ts +5 -0
  357. package/build/error/upgrade.d.ts.map +1 -0
  358. package/build/error/upgrade.js +16 -0
  359. package/build/error/upgrade.js.map +1 -0
  360. package/build/error/yml.d.ts +1 -1
  361. package/build/error/yml.d.ts.map +1 -1
  362. package/build/error/yml.js +5 -5
  363. package/build/error/yml.js.map +1 -1
  364. package/package.json +13 -8
  365. package/resource/package.nls.cs.json +307 -366
  366. package/resource/package.nls.de.json +307 -366
  367. package/resource/package.nls.es.json +307 -366
  368. package/resource/package.nls.fr.json +307 -366
  369. package/resource/package.nls.it.json +307 -366
  370. package/resource/package.nls.ja.json +307 -366
  371. package/resource/package.nls.json +118 -112
  372. package/resource/package.nls.ko.json +307 -366
  373. package/resource/package.nls.pl.json +307 -366
  374. package/resource/package.nls.pt-BR.json +307 -366
  375. package/resource/package.nls.ru.json +307 -366
  376. package/resource/package.nls.tr.json +307 -366
  377. package/resource/package.nls.zh-Hans.json +307 -366
  378. package/resource/package.nls.zh-Hant.json +307 -366
  379. package/resource/yaml.schema.json +33 -12
  380. package/templates/core/v3Migration/csharp.app.local.yml +13 -20
  381. package/templates/core/v3Migration/csharp.app.yml +20 -9
  382. package/templates/core/v3Migration/js.ts.app.local.yml +105 -53
  383. package/templates/core/v3Migration/js.ts.app.yml +149 -54
  384. package/templates/core/v3Migration/spfx.app.yml +61 -17
  385. package/templates/core/v3Migration/upgradeReport.md +4 -2
  386. package/templates/fallback/common.zip +0 -0
  387. package/templates/fallback/csharp.zip +0 -0
  388. package/templates/fallback/js.zip +0 -0
  389. package/templates/fallback/ts.zip +0 -0
  390. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/SsoOperations.cs +23 -8
  391. package/templates/plugins/resource/aad/auth/V3/Tab/GetUserProfile.razor +2 -1
  392. package/build/component/driver/aad/error/invalidParameterUserError.d.ts +0 -5
  393. package/build/component/driver/aad/error/invalidParameterUserError.d.ts.map +0 -1
  394. package/build/component/driver/aad/error/invalidParameterUserError.js +0 -29
  395. package/build/component/driver/aad/error/invalidParameterUserError.js.map +0 -1
  396. package/build/component/driver/aad/error/unhandledError.d.ts +0 -8
  397. package/build/component/driver/aad/error/unhandledError.d.ts.map +0 -1
  398. package/build/component/driver/aad/error/unhandledError.js +0 -33
  399. package/build/component/driver/aad/error/unhandledError.js.map +0 -1
  400. package/build/component/driver/botAadApp/error/invalidParameterUserError.d.ts +0 -5
  401. package/build/component/driver/botAadApp/error/invalidParameterUserError.d.ts.map +0 -1
  402. package/build/component/driver/botAadApp/error/invalidParameterUserError.js +0 -30
  403. package/build/component/driver/botAadApp/error/invalidParameterUserError.js.map +0 -1
  404. package/build/component/driver/botAadApp/error/unhandledError.d.ts +0 -8
  405. package/build/component/driver/botAadApp/error/unhandledError.d.ts.map +0 -1
  406. package/build/component/driver/botAadApp/error/unhandledError.js +0 -33
  407. package/build/component/driver/botAadApp/error/unhandledError.js.map +0 -1
  408. package/build/component/driver/botFramework/error/unhandledError.d.ts +0 -5
  409. package/build/component/driver/botFramework/error/unhandledError.d.ts.map +0 -1
  410. package/build/component/driver/botFramework/error/unhandledError.js +0 -25
  411. package/build/component/driver/botFramework/error/unhandledError.js.map +0 -1
  412. package/build/component/driver/file/error/unhandledError.d.ts +0 -5
  413. package/build/component/driver/file/error/unhandledError.d.ts.map +0 -1
  414. package/build/component/driver/file/error/unhandledError.js +0 -25
  415. package/build/component/driver/file/error/unhandledError.js.map +0 -1
  416. package/build/component/driver/m365/error/FileNotFoundUserError.d.ts +0 -5
  417. package/build/component/driver/m365/error/FileNotFoundUserError.d.ts.map +0 -1
  418. package/build/component/driver/m365/error/FileNotFoundUserError.js +0 -22
  419. package/build/component/driver/m365/error/FileNotFoundUserError.js.map +0 -1
  420. package/build/component/driver/m365/error/unhandledError.d.ts +0 -5
  421. package/build/component/driver/m365/error/unhandledError.d.ts.map +0 -1
  422. package/build/component/driver/m365/error/unhandledError.js +0 -25
  423. package/build/component/driver/m365/error/unhandledError.js.map +0 -1
  424. package/build/component/driver/prerequisite/constant.d.ts.map +0 -1
  425. package/build/component/driver/prerequisite/constant.js.map +0 -1
  426. package/build/component/driver/prerequisite/error/dotnetInstallationUserError.d.ts +0 -5
  427. package/build/component/driver/prerequisite/error/dotnetInstallationUserError.d.ts.map +0 -1
  428. package/build/component/driver/prerequisite/error/dotnetInstallationUserError.js.map +0 -1
  429. package/build/component/driver/prerequisite/error/funcInstallationUserError.d.ts +0 -5
  430. package/build/component/driver/prerequisite/error/funcInstallationUserError.d.ts.map +0 -1
  431. package/build/component/driver/prerequisite/error/funcInstallationUserError.js.map +0 -1
  432. package/build/component/driver/prerequisite/installDriver.d.ts.map +0 -1
  433. package/build/component/driver/prerequisite/installDriver.js.map +0 -1
  434. package/build/component/driver/prerequisite/interfaces/InstallToolArgs.d.ts.map +0 -1
  435. package/build/component/driver/prerequisite/interfaces/InstallToolArgs.js.map +0 -1
  436. package/build/core/middleware/envInfoWriter.d.ts +0 -8
  437. package/build/core/middleware/envInfoWriter.d.ts.map +0 -1
  438. package/build/core/middleware/envInfoWriter.js +0 -76
  439. package/build/core/middleware/envInfoWriter.js.map +0 -1
  440. package/build/core/middleware/envInfoWriterV3.d.ts +0 -6
  441. package/build/core/middleware/envInfoWriterV3.d.ts.map +0 -1
  442. package/build/core/middleware/envInfoWriterV3.js +0 -67
  443. package/build/core/middleware/envInfoWriterV3.js.map +0 -1
  444. package/build/core/middleware/projectSettingsWriter.d.ts +0 -6
  445. package/build/core/middleware/projectSettingsWriter.d.ts.map +0 -1
  446. package/build/core/middleware/projectSettingsWriter.js +0 -52
  447. package/build/core/middleware/projectSettingsWriter.js.map +0 -1
  448. /package/build/component/driver/{prerequisite → devTool}/constant.d.ts +0 -0
  449. /package/build/component/driver/{prerequisite → devTool}/constant.js +0 -0
  450. /package/build/component/driver/{prerequisite → devTool}/interfaces/InstallToolArgs.js +0 -0
@@ -1,90 +1,151 @@
1
+ # yaml-language-server: $schema=https://aka.ms/teams-toolkit/1.0.0/yaml.schema.json
2
+ # Visit https://aka.ms/teamsfx-v5.0-guide for details on this file
3
+ # Visit https://aka.ms/teamsfx-actions for details on actions
1
4
  version: 1.0.0
2
5
 
3
6
  projectId: {{projectId}}
4
7
 
5
8
  environmentFolderPath: ./ {{~environmentFolder}}
6
9
 
10
+ # Triggered when 'teamsfx provision' is executed
7
11
  provision:
8
12
  {{#if activePlugins.fx-resource-aad-app-for-teams}}
9
- - uses: aadApp/create # Creates a new Azure Active Directory (AAD) app to authenticate users if the environment variable that stores clientId is empty
13
+ # Creates a new Azure Active Directory (AAD) app to authenticate users if
14
+ # the environment variable that stores clientId is empty
15
+ - uses: aadApp/create
10
16
  with:
11
- name: {{aadAppName}} # Note: when you run aadApp/update, the AAD app name will be updated based on the definition in manifest. If you don't want to change the name, make sure the name in AAD manifest is the same with the name defined here.
12
- generateClientSecret: true # If the value is false, the action will not generate client secret for you
13
- signInAudience: "AzureADMyOrg" # Authenticate users with a Microsoft work or school account in your organization's Azure AD tenant (for example, single tenant).
14
- writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
17
+ # Note: when you run aadApp/update, the AAD app name will be updated
18
+ # based on the definition in manifest. If you don't want to change the
19
+ # name, make sure the name in AAD manifest is the same with the name
20
+ # defined here.
21
+ name: {{aadAppName}}
22
+ # If the value is false, the action will not generate client secret for you
23
+ generateClientSecret: true
24
+ # Authenticate users with a Microsoft work or school account in your
25
+ # organization's Azure AD tenant (for example, single tenant).
26
+ signInAudience: "AzureADMyOrg"
27
+ # Write the information of created resources into environment file for the
28
+ # specified environment variable(s).
29
+ writeToEnvironmentFile:
15
30
  clientId: AAD_APP_CLIENT_ID
16
- clientSecret: SECRET_AAD_APP_CLIENT_SECRET # Environment variable that starts with `SECRET_` will be stored to the .env.{envName}.user environment file
31
+ # Environment variable that starts with `SECRET_` will be stored to the
32
+ # .env.{envName}.user environment file
33
+ clientSecret: SECRET_AAD_APP_CLIENT_SECRET
17
34
  objectId: AAD_APP_OBJECT_ID
18
35
  tenantId: AAD_APP_TENANT_ID
19
36
  authority: AAD_APP_OAUTH_AUTHORITY
20
37
  authorityHost: AAD_APP_OAUTH_AUTHORITY_HOST
21
38
  {{/if}}
22
- - uses: teamsApp/create # Creates a Teams app
39
+ # Creates a Teams app
40
+ - uses: teamsApp/create
23
41
  with:
24
- name: {{teamsAppName}} # Teams app name
42
+ # Teams app name
43
+ name: {{teamsAppName}}
44
+ # Write the information of created resources into environment file for
45
+ # the specified environment variable(s).
25
46
  writeToEnvironmentFile:
26
47
  teamsAppId: TEAMS_APP_ID
27
48
  {{#if activePlugins.fx-resource-bot}}
28
- - uses: botAadApp/create # Creates a new AAD app for Bot Registration.
49
+ # Create or reuse an existing Azure Active Directory application for bot.
50
+ - uses: botAadApp/create
29
51
  with:
52
+ # The Azure Active Directory application's display name
30
53
  name: {{appName}}bt$\{{RESOURCE_SUFFIX}}
31
54
  writeToEnvironmentFile:
55
+ # The Azure Active Directory application's client id created for bot.
32
56
  botId: BOT_ID
57
+ # The Azure Active Directory application's client secret created for bot.
33
58
  botPassword: SECRET_BOT_PASSWORD
34
59
  {{/if}}
35
- - uses: arm/deploy # Deploy given ARM templates parallelly.
60
+ - uses: arm/deploy # Deploy given ARM templates parallelly.
36
61
  with:
37
- subscriptionId: $\{{AZURE_SUBSCRIPTION_ID}} # The AZURE_SUBSCRIPTION_ID is a built-in environment variable. TeamsFx will ask you select one subscription if its value is empty. You're free to reference other environment varialbe here, but TeamsFx will not ask you to select subscription if it's empty in this case.
38
- resourceGroupName: $\{{AZURE_RESOURCE_GROUP_NAME}} # The AZURE_RESOURCE_GROUP_NAME is a built-in environment variable. TeamsFx will ask you to select or create one resource group if its value is empty. You're free to reference other environment varialbe here, but TeamsFx will not ask you to select or create resource grouop if it's empty in this case.
62
+ # AZURE_SUBSCRIPTION_ID is a built-in environment variable,
63
+ # if its value is empty, TeamsFx will prompt you to select a subscription.
64
+ # Referencing other environment variables with empty values
65
+ # will skip the subscription selection prompt.
66
+ subscriptionId: $\{{AZURE_SUBSCRIPTION_ID}}
67
+ # AZURE_RESOURCE_GROUP_NAME is a built-in environment variable,
68
+ # if its value is empty, TeamsFx will prompt you to select or create one
69
+ # resource group.
70
+ # Referencing other environment variables with empty values
71
+ # will skip the resource group selection prompt.
72
+ resourceGroupName: $\{{AZURE_RESOURCE_GROUP_NAME}}
39
73
  templates:
40
- - path: ./templates/azure/main.bicep # Relative path to this file
41
- parameters: ./templates/azure/azure.parameters.$\{{TEAMSFX_ENV}}.json # Relative path to this file. Placeholders will be replaced with corresponding environment variable before ARM deployment.
42
- deploymentName: teams_toolkit_deployment # Required when deploy ARM template
43
- bicepCliVersion: v0.4.613 # Teams Toolkit will download this bicep CLI version from github for you, will use bicep CLI in PATH if you remove this config.
74
+ - path: ./templates/azure/main.bicep # Relative path to this file
75
+ # Relative path to this yaml file.
76
+ # Placeholders will be replaced with corresponding environment
77
+ # variable before ARM deployment.
78
+ parameters: ./templates/azure/azure.parameters.$\{{TEAMSFX_ENV}}.json
79
+ # Required when deploying ARM template
80
+ deploymentName: teams_toolkit_deployment
81
+ # Teams Toolkit will download this bicep CLI version from github for you,
82
+ # will use bicep CLI in PATH if you remove this config.
83
+ bicepCliVersion: v0.4.613
44
84
  {{#if activePlugins.fx-resource-frontend-hosting}}
45
85
  - uses: azureStorage/enableStaticWebsite
46
86
  with:
47
87
  storageResourceId: $\{{ {{~placeholderMappings.[state.fx-resource-frontend-hosting.storageResourceId]~}} }}
48
88
  indexPage: index.html
49
89
  errorPage: error.html
50
- # Output: N/A
51
90
  {{/if}}
52
91
  {{#if activePlugins.fx-resource-aad-app-for-teams}}
53
- - uses: aadApp/update # Apply the AAD manifest to an existing AAD app. Will use the object id in manifest file to determine which AAD app to update.
92
+ # Apply the AAD manifest to an existing AAD app. Will use the object id in
93
+ # manifest file to determine which AAD app to update.
94
+ - uses: aadApp/update
54
95
  with:
55
- manifestPath: ./aad.manifest.json # Relative path to this file. Environment variables in manifest will be replaced before apply to AAD app
96
+ # Relative path to this file. Environment variables in manifest will
97
+ # be replaced before apply to AAD app
98
+ manifestPath: ./aad.manifest.json
56
99
  outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
57
100
  {{/if}}
58
- - uses: teamsApp/validateManifest # Validate using manifest schema
101
+ # Validate using manifest schema
102
+ - uses: teamsApp/validateManifest
59
103
  with:
60
- manifestPath: ./appPackage/manifest.json # Path to manifest template
61
- - uses: teamsApp/zipAppPackage # Build Teams app package with latest env value
104
+ # Path to manifest template
105
+ manifestPath: ./appPackage/manifest.json
106
+ # Build Teams app package with latest env value
107
+ - uses: teamsApp/zipAppPackage
62
108
  with:
63
- manifestPath: ./appPackage/manifest.json # Path to manifest template
109
+ # Path to manifest template
110
+ manifestPath: ./appPackage/manifest.json
64
111
  outputZipPath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
65
112
  outputJsonPath: ./build/appPackage/manifest.$\{{TEAMSFX_ENV}}.json
66
- - uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app. Will use the app id in manifest file to determine which Teams app to update.
113
+ # Validate app package using validation rules
114
+ - uses: teamsApp/validateAppPackage
67
115
  with:
68
- appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
69
- writeToEnvironmentFile:
70
- teamsAppId: TEAMS_APP_ID
116
+ # Relative path to this file. This is the path for built zip file.
117
+ appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
118
+ # Apply the Teams app manifest to an existing Teams app in
119
+ # Teams Developer Portal.
120
+ # Will use the app id in manifest file to determine which Teams app to update.
121
+ - uses: teamsApp/update
122
+ with:
123
+ # Relative path to this file. This is the path for built zip file.
124
+ appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
71
125
  {{#if isM365}}
72
- - uses: m365Title/acquire # Upload your app to Outlook and the Microsoft 365 app
126
+ # Extend your Teams app to Outlook and the Microsoft 365 app
127
+ - uses: teamsApp/extendToM365
73
128
  with:
74
- appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to the built app package.
75
- writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
129
+ # Relative path to the build app package.
130
+ appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
131
+ # Write the information of created resources into environment file for
132
+ # the specified environment variable(s).
133
+ writeToEnvironmentFile:
76
134
  titleId: M365_TITLE_ID
77
135
  appId: M365_APP_ID
78
136
  {{/if}}
79
137
 
138
+ # Triggered when 'teamsfx deploy' is executed
80
139
  deploy:
81
140
  {{#if activePlugins.fx-resource-frontend-hosting}}
82
- - uses: cli/runNpmCommand # Run npm command
141
+ # Run npm command
142
+ - uses: cli/runNpmCommand
83
143
  name: install tab dependencies
84
144
  with:
85
145
  workingDirectory: tabs
86
146
  args: install
87
- - uses: cli/runNpmCommand # Run npm command
147
+ # Run npm command
148
+ - uses: cli/runNpmCommand
88
149
  name: build tab app
89
150
  {{#if activePlugins.fx-resource-aad-app-for-teams}}
90
151
  env:
@@ -104,7 +165,10 @@ deploy:
104
165
  workingDirectory: tabs
105
166
  # Deploy base folder. This folder includes manifest files for AAD app and Teams app that should be ignored using the ignoreFile.
106
167
  artifactFolder: build
107
- # The resource id of the cloud resource to be deployed to. This key will be generated by arm/deploy action automatically. You can replace it with your existing Azure Resource id or add it to your environment variable file.
168
+ # The resource id of the cloud resource to be deployed to.
169
+ # This key will be generated by arm/deploy action automatically.
170
+ # You can replace it with your existing Azure Resource id
171
+ # or add it to your environment variable file.
108
172
  resourceId: $\{{ {{~placeholderMappings.[state.fx-resource-frontend-hosting.storageResourceId]~}} }}
109
173
  {{/if}}
110
174
  {{#if activePlugins.fx-resource-bot}}
@@ -122,45 +186,56 @@ deploy:
122
186
  args: run build --if-present
123
187
  {{/if}}
124
188
  # Deploy your application to Azure Functions using the zip deploy feature.
125
- # For additional details, please refer to https://aka.ms/zip-deploy-to-azure-functions
189
+ # For additional details, see at https://aka.ms/zip-deploy-to-azure-functions
126
190
  - uses: azureFunctions/zipDeploy
127
191
  with:
128
192
  workingDirectory: bot
129
193
  # Deploy base folder
130
194
  artifactFolder: .
131
- # Can be changed to any ignore file location, leave blank will ignore nothing
195
+ # Ignore file location, leave blank will ignore nothing
132
196
  ignoreFile: .funcignore
133
- # The resource id of the cloud resource to be deployed to. This key will be generated by arm/deploy action automatically. You can replace it with your existing Azure Resource id or add it to your environment variable file.
197
+ # The resource id of the cloud resource to be deployed to.
198
+ # This key will be generated by arm/deploy action automatically.
199
+ # You can replace it with your existing Azure Resource id
200
+ # or add it to your environment variable file.
134
201
  resourceId: $\{{ {{~botResourceId~}} }}
135
202
  {{else}}
136
- - uses: cli/runNpmCommand # Run npm command
203
+ # Run npm command
204
+ - uses: cli/runNpmCommand
137
205
  name: install bot dependencies
138
206
  with:
139
207
  workingDirectory: bot
140
208
  args: install
141
209
  {{#if isTypescript}}
142
- - uses: cli/runNpmCommand # Run npm command
210
+ # Run npm command
211
+ - uses: cli/runNpmCommand
143
212
  name: build bot app
144
213
  with:
145
214
  workingDirectory: bot
146
215
  args: run build --if-present
147
216
  {{/if}}
148
217
  # Deploy your application to Azure App Service using the zip deploy feature.
149
- # For additional details, please refer to https://aka.ms/zip-deploy-to-app-services.
218
+ # For additional details, refer to https://aka.ms/zip-deploy-to-app-services.
150
219
  - uses: azureAppService/zipDeploy
151
220
  with:
152
221
  workingDirectory: bot
153
222
  # Deploy base folder.
154
223
  artifactFolder: .
155
- # The resource id of the cloud resource to be deployed to. This key will be generated by arm/deploy action automatically. You can replace it with your existing Azure Resource id or add it to your environment variable file.
224
+ # The resource id of the cloud resource to be deployed to.
225
+ # This key will be generated by arm/deploy action automatically.
226
+ # You can replace it with your existing Azure Resource id
227
+ # or add it to your environment variable file.
156
228
  resourceId: $\{{ {{~botResourceId~}} }}
157
229
  {{/if}}
158
230
  {{/if}}
159
231
  {{#if activePlugins.fx-resource-function}}
160
- - uses: prerequisite/install # Install dependencies
232
+ # Install development tool(s)
233
+ - uses: devTool/install
161
234
  with:
162
235
  dotnet: true
163
- writeToEnvironmentFile: # Write the information of installed dependencies into environment file for the specified environment variable(s).
236
+ # Write the information of installed development tool(s) into environment
237
+ # file for the specified environment variable(s).
238
+ writeToEnvironmentFile:
164
239
  dotnetPath: DOTNET_PATH
165
240
  - uses: cli/runNpmCommand
166
241
  name: install api dependencies
@@ -171,7 +246,7 @@ deploy:
171
246
  with:
172
247
  workingDirectory: api
173
248
  args: build extensions.csproj -o bin --ignore-failed-sources
174
- execPath: $\{{ {{~dotnetPath~}} }} # Use dotnet installed by prerequisite/install action
249
+ execPath: $\{{ {{~dotnetPath~}} }} # Use dotnet installed by devTool/install action
175
250
  {{#if isTypescript}}
176
251
  - uses: cli/runNpmCommand
177
252
  name: build api app
@@ -180,34 +255,54 @@ deploy:
180
255
  args: run build --if-present
181
256
  {{/if}}
182
257
  # Deploy your application to Azure Functions using the zip deploy feature.
183
- # For additional details, please refer to https://aka.ms/zip-deploy-to-azure-functions
258
+ # For additional details, see at https://aka.ms/zip-deploy-to-azure-functions
184
259
  - uses: azureFunctions/zipDeploy
185
260
  with:
186
261
  workingDirectory: api
187
262
  # Deploy base folder
188
263
  artifactFolder: .
189
- # Can be changed to any ignore file location, leave blank will ignore nothing
264
+ # Ignore file location, leave blank will ignore nothing
190
265
  ignoreFile: .funcignore
191
- # The resource id of the cloud resource to be deployed to. This key will be generated by arm/deploy action automatically. You can replace it with your existing Azure Resource id or add it to your environment variable file.
266
+ # The resource id of the cloud resource to be deployed to.
267
+ # This key will be generated by arm/deploy action automatically.
268
+ # You can replace it with your existing Azure Resource id
269
+ # or add it to your environment variable file.
192
270
  resourceId: $\{{ {{~placeholderMappings.[state.fx-resource-function.functionAppResourceId]~}} }}
193
271
  {{/if}}
194
272
 
273
+ # Triggered when 'teamsfx publish' is executed
195
274
  publish:
196
- - uses: teamsApp/validateManifest # Validate using manifest schema
275
+ # Validate using manifest schema
276
+ - uses: teamsApp/validateManifest
197
277
  with:
198
- manifestPath: ./appPackage/manifest.json # Path to manifest template
278
+ # Path to manifest template
279
+ manifestPath: ./appPackage/manifest.json
280
+ # Build Teams app package with latest env value
199
281
  - uses: teamsApp/zipAppPackage
200
282
  with:
201
- manifestPath: ./appPackage/manifest.json # Path to manifest template
283
+ # Path to manifest template
284
+ manifestPath: ./appPackage/manifest.json
202
285
  outputZipPath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
203
286
  outputJsonPath: ./build/appPackage/manifest.$\{{TEAMSFX_ENV}}.json
204
- - uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app in Teams Developer Portal. Will use the app id in manifest file to determine which Teams app to update.
287
+ # Validate app package using validation rules
288
+ - uses: teamsApp/validateAppPackage
205
289
  with:
206
- appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
207
- writeToEnvironmentFile:
208
- teamsAppId: TEAMS_APP_ID
209
- - uses: teamsApp/publishAppPackage # Publish the app to Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) for review and approval
290
+ # Relative path to this file. This is the path for built zip file.
291
+ appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
292
+ # Apply the Teams app manifest to an existing Teams app in
293
+ # Teams Developer Portal.
294
+ # Will use the app id in manifest file to determine which Teams app to update.
295
+ - uses: teamsApp/update
296
+ with:
297
+ # Relative path to this file. This is the path for built zip file.
298
+ appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
299
+ # Publish the app to
300
+ # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps)
301
+ # for review and approval
302
+ - uses: teamsApp/publishAppPackage
210
303
  with:
211
304
  appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
305
+ # Write the information of created resources into environment file for
306
+ # the specified environment variable(s).
212
307
  writeToEnvironmentFile:
213
308
  publishedAppId: TEAMS_APP_PUBLISHED_APP_ID
@@ -1,27 +1,59 @@
1
+ # yaml-language-server: $schema=https://aka.ms/teams-toolkit/1.0.0/yaml.schema.json
2
+ # Visit https://aka.ms/teamsfx-v5.0-guide for details on this file
3
+ # Visit https://aka.ms/teamsfx-actions for details on actions
1
4
  version: 1.0.0
2
5
 
6
+ projectId: {{projectId}}
7
+
3
8
  environmentFolderPath: ./ {{~environmentFolder}}
4
9
 
10
+ # Triggered when 'teamsfx provision' is executed
5
11
  provision:
6
- - uses: teamsApp/create # Creates a Teams app
12
+ # Creates a Teams app
13
+ - uses: teamsApp/create
7
14
  with:
8
- name: {{teamsAppName}} # Teams app name
15
+ # Teams app name
16
+ name: {{teamsAppName}}
17
+ # Write the information of created resources into environment file for
18
+ # the specified environment variable(s).
9
19
  writeToEnvironmentFile:
10
20
  teamsAppId: TEAMS_APP_ID
11
- - uses: teamsApp/validateManifest # Validate using manifest schema
21
+ # Validate using manifest schema
22
+ - uses: teamsApp/validateManifest
12
23
  with:
13
- manifestPath: ./appPackage/manifest.json # Path to manifest template
14
- - uses: teamsApp/zipAppPackage # Build Teams app package with latest env value
24
+ # Path to manifest template
25
+ manifestPath: ./appPackage/manifest.json
26
+ # Build Teams app package with latest env value
27
+ - uses: teamsApp/zipAppPackage
15
28
  with:
16
- manifestPath: ./appPackage/manifest.json # Path to manifest template
29
+ # Path to manifest template
30
+ manifestPath: ./appPackage/manifest.json
17
31
  outputZipPath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
18
32
  outputJsonPath: ./build/appPackage/manifest.$\{{TEAMSFX_ENV}}.json
19
- - uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app. Will use the app id in manifest file to determine which Teams app to update.
33
+ # Validate app package using validation rules
34
+ - uses: teamsApp/validateAppPackage
35
+ with:
36
+ # Relative path to this file. This is the path for built zip file.
37
+ appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
38
+ # Apply the Teams app manifest to an existing Teams app in
39
+ # Teams Developer Portal.
40
+ # Will use the app id in manifest file to determine which Teams app to update.
41
+ - uses: teamsApp/update
42
+ with:
43
+ # Relative path to this file. This is the path for built zip file.
44
+ appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
45
+ # Extend your Teams app to Outlook and the Microsoft 365 app
46
+ - uses: teamsApp/extendToM365
20
47
  with:
21
- appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
48
+ # Relative path to the build app package.
49
+ appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
50
+ # Write the information of created resources into environment file for
51
+ # the specified environment variable(s).
22
52
  writeToEnvironmentFile:
23
- teamsAppId: TEAMS_APP_ID
53
+ titleId: M365_TITLE_ID
54
+ appId: M365_APP_ID
24
55
 
56
+ # Triggered when 'teamsfx deploy' is executed
25
57
  deploy:
26
58
  - uses: cli/runNpmCommand
27
59
  with:
@@ -40,26 +72,38 @@ deploy:
40
72
  createAppCatalogIfNotExist: false
41
73
  packageSolutionPath: ./SPFx/config/package-solution.json
42
74
 
75
+ # Triggered when 'teamsfx publish' is executed
43
76
  publish:
44
- - uses: teamsApp/validateManifest # Validate using manifest schema
77
+ # Validate using manifest schema
78
+ - uses: teamsApp/validateManifest
45
79
  with:
46
- manifestPath: ./appPackage/manifest.json # Path to manifest template
80
+ # Path to manifest template
81
+ manifestPath: ./appPackage/manifest.json
82
+ # Build Teams app package with latest env value
47
83
  - uses: teamsApp/zipAppPackage
48
84
  with:
49
- manifestPath: ./appPackage/manifest.json # Path to manifest template
85
+ # Path to manifest template
86
+ manifestPath: ./appPackage/manifest.json
50
87
  outputZipPath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
51
88
  outputJsonPath: ./build/appPackage/manifest.$\{{TEAMSFX_ENV}}.json
52
89
  - uses: teamsApp/copyAppPackageToSPFx
53
90
  with:
54
91
  appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
55
92
  spfxFolder: ./SPFx
56
- - uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app in Teams Developer Portal. Will use the app id in manifest file to determine which Teams app to update.
93
+ # Apply the Teams app manifest to an existing Teams app in
94
+ # Teams Developer Portal.
95
+ # Will use the app id in manifest file to determine which Teams app to update.
96
+ - uses: teamsApp/update
57
97
  with:
58
- appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
59
- writeToEnvironmentFile:
60
- teamsAppId: TEAMS_APP_ID
61
- - uses: teamsApp/publishAppPackage # Publish the app to Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) for review and approval
98
+ # Relative path to this file. This is the path for built zip file.
99
+ appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
100
+ # Publish the app to
101
+ # Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps)
102
+ # for review and approval
103
+ - uses: teamsApp/publishAppPackage
62
104
  with:
63
105
  appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
106
+ # Write the information of created resources into environment file for
107
+ # the specified environment variable(s).
64
108
  writeToEnvironmentFile:
65
109
  publishedAppId: TEAMS_APP_PUBLISHED_APP_ID
@@ -15,6 +15,7 @@ There's no immediate action required from you. This part illustrates what's chan
15
15
  2. You need to take some manual steps when creating or provisioning new environments for your old project. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#environment-management)
16
16
  3. You need to manually update `.vscode/launch.json` when launching your app for a certain environment if your current project contains it. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#launch-your-app)
17
17
  4. You need to provide values to `APIM__PUBLISHEREMAIL` and `APIM__PUBLISHERNAME` environment variable if your current project uses APIM. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#provision-apim-service)
18
+ 5. You need to manually update `Start local tunnel` task in `.vscode/task.json` if you have customized this task. Teams Toolkit now uses Dev Tunnel as default tunnel solution. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#start-tunnel-service)
18
19
 
19
20
  You can visit this [wiki](https://aka.ms/teams-toolkit-5.0-upgrade#feature-changes-that-impact-your-development-flow) to learn more changes to Teams Toolkit.
20
21
 
@@ -35,9 +36,10 @@ For more detailed changes, please refer to this [wiki](https://aka.ms/teams-tool
35
36
 
36
37
  1. If your project only contains a bot, you may meet error that complains `STATE__FX_RESOURCE_FRONTEND_HOSTING__ENDPOINT` is missing when executing commands. Replace this placeholder with a valid URL in `appPackage/manifest.json` to fix it. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#state__fx_resource_frontend_hosting__endpoint-missing-error-in-some-projects)
37
38
 
38
- 2. If your project is created with Viusal Studio version < 17.4, you may see error `InvalidParameter: Following parameter is missing or invalid for aadApp/create action: name` when executing commands. Please follow [the steps](#how-to-roll-back) to roll back, install VS 17.4 and run upgrade first.
39
+ 2. If your project is created with Visual Studio version < 17.4, you may see error `InvalidParameter: Following parameter is missing or invalid for aadApp/create action: name` when executing commands. Please follow [the steps](#how-to-roll-back) to roll back, install VS 17.4 and run upgrade first.
39
40
 
40
- 3. If your tab app is created with Teams Toolkit 3.2.0 or earlier version, you may see error `simpleAuthEndpoint in configuration is invalid` when remote debugging your app. Please follow this [wiki]( `https://aka.ms/teams-toolkit-5.0-upgrade#simpleauthendpoint-in-configuration-is-invalid`) to learn how to mitigate this error.
41
+ 3. If your tab app is created with Teams Toolkit 3.2.0 or earlier version, you may see error `simpleAuthEndpoint in configuration is invalid` when remote debugging your app. Please follow this [wiki](https://aka.ms/teams-toolkit-5.0-upgrade#simpleauthendpoint-in-configuration-is-invalid) to learn how to mitigate this error.
42
+ 4. If your project can be provisioned successfully before, but after upgrade it cannot be provisioned or published by `teamsApp/validateAppPackage` actione, please use the [validation](https://dev.teams.microsoft.com/validation) to check your appPackage zip file and fix the error. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#teamsappvalidateapppackage-failed-error)
41
43
 
42
44
  ## How to roll back
43
45
 
Binary file
Binary file
Binary file
Binary file
@@ -1,22 +1,37 @@
1
1
  using Microsoft.Bot.Builder;
2
2
  using Microsoft.Graph;
3
+ using Microsoft.Kiota.Abstractions.Authentication;
3
4
  using Microsoft.TeamsFx.Configuration;
4
5
 
5
6
  namespace {{YOUR_NAMESPACE}}.SSO;
6
7
 
8
+ public class TokenProvider : IAccessTokenProvider
9
+ {
10
+ private string token { get; set; }
11
+
12
+ public TokenProvider(String token)
13
+ {
14
+ this.token = token;
15
+ }
16
+
17
+ public Task<string> GetAuthorizationTokenAsync(Uri uri, Dictionary<string, object> additionalAuthenticationContext = default,
18
+ CancellationToken cancellationToken = default)
19
+ {
20
+ // get the token and return it
21
+ return Task.FromResult(this.token);
22
+ }
23
+
24
+ public AllowedHostsValidator AllowedHostsValidator { get; }
25
+ }
26
+
7
27
  public static class SsoOperations
8
28
  {
9
29
  public static async Task ShowUserInfo(ITurnContext stepContext, string token, BotAuthenticationOptions botAuthOptions)
10
30
  {
11
31
  await stepContext.SendActivityAsync("Retrieving user information from Microsoft Graph ...");
12
- var authProvider = new DelegateAuthenticationProvider((request) =>
13
- {
14
- request.Headers.Authorization =
15
- new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", token);
16
- return Task.CompletedTask;
17
- });
18
- var graphClient = new GraphServiceClient(authProvider);
19
- var profile = await graphClient.Me.Request().GetAsync();
32
+ var tokenCredential = new BaseBearerTokenAuthenticationProvider(new TokenProvider(token));
33
+ var graphClient = new GraphServiceClient(tokenCredential);
34
+ var profile = await graphClient.Me.GetAsync();
20
35
  await stepContext.SendActivityAsync($"You're logged in as {profile.DisplayName}");
21
36
  }
22
37
  }
@@ -1,6 +1,7 @@
1
1
  @using System.IO
2
2
  @using Azure.Core
3
3
  @using Microsoft.Graph
4
+ @using Microsoft.Graph.Models
4
5
  @inject TeamsFx teamsfx
5
6
  @inject TeamsUserCredential teamsUserCredential
6
7
 
@@ -45,7 +46,7 @@
45
46
  IsLoading = true;
46
47
  var graph = GetGraphServiceClient();
47
48
 
48
- Profile = await graph.Me.Request().GetAsync();
49
+ Profile = await graph.Me.GetAsync();
49
50
 
50
51
  IsLoading = false;
51
52
  ErrorMessage = string.Empty;
@@ -1,5 +0,0 @@
1
- import { UserError } from "@microsoft/teamsfx-api";
2
- export declare class InvalidParameterUserError extends UserError {
3
- constructor(actionName: string, invalidParameters: string | string[], helpLink: string);
4
- }
5
- //# sourceMappingURL=invalidParameterUserError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invalidParameterUserError.d.ts","sourceRoot":"","sources":["../../../../../src/component/driver/aad/error/invalidParameterUserError.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAMnD,qBAAa,yBAA0B,SAAQ,SAAS;gBAC1C,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM;CAevF"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.InvalidParameterUserError = void 0;
6
- const teamsfx_api_1 = require("@microsoft/teamsfx-api");
7
- const localizeUtils_1 = require("../../../../common/localizeUtils");
8
- const errorCode = "InvalidParameter";
9
- const messageKey = "driver.aadApp.error.invalidParameter";
10
- class InvalidParameterUserError extends teamsfx_api_1.UserError {
11
- constructor(actionName, invalidParameters, helpLink) {
12
- let parameterList;
13
- if (Array.isArray(invalidParameters)) {
14
- parameterList = invalidParameters.join(", ");
15
- }
16
- else {
17
- parameterList = invalidParameters;
18
- }
19
- super({
20
- source: actionName,
21
- name: errorCode,
22
- message: localizeUtils_1.getDefaultString(messageKey, actionName, parameterList),
23
- displayMessage: localizeUtils_1.getLocalizedString(messageKey, actionName, parameterList),
24
- helpLink: helpLink,
25
- });
26
- }
27
- }
28
- exports.InvalidParameterUserError = InvalidParameterUserError;
29
- //# sourceMappingURL=invalidParameterUserError.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invalidParameterUserError.js","sourceRoot":"","sources":["../../../../../src/component/driver/aad/error/invalidParameterUserError.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAAmD;AACnD,oEAAwF;AAExF,MAAM,SAAS,GAAG,kBAAkB,CAAC;AACrC,MAAM,UAAU,GAAG,sCAAsC,CAAC;AAE1D,MAAa,yBAA0B,SAAQ,uBAAS;IACtD,YAAY,UAAkB,EAAE,iBAAoC,EAAE,QAAgB;QACpF,IAAI,aAAa,CAAC;QAClB,IAAI,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE;YACpC,aAAa,GAAG,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC9C;aAAM;YACL,aAAa,GAAG,iBAAiB,CAAC;SACnC;QACD,KAAK,CAAC;YACJ,MAAM,EAAE,UAAU;YAClB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,gCAAgB,CAAC,UAAU,EAAE,UAAU,EAAE,aAAa,CAAC;YAChE,cAAc,EAAE,kCAAkB,CAAC,UAAU,EAAE,UAAU,EAAE,aAAa,CAAC;YACzE,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;IACL,CAAC;CACF;AAhBD,8DAgBC"}
@@ -1,8 +0,0 @@
1
- import { SystemError, UserError } from "@microsoft/teamsfx-api";
2
- export declare class UnhandledUserError extends UserError {
3
- constructor(actionName: string, detail: string, helpLink: string);
4
- }
5
- export declare class UnhandledSystemError extends SystemError {
6
- constructor(actionName: string, detail: string);
7
- }
8
- //# sourceMappingURL=unhandledError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unhandledError.d.ts","sourceRoot":"","sources":["../../../../../src/component/driver/aad/error/unhandledError.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,WAAW,EAEX,SAAS,EAEV,MAAM,wBAAwB,CAAC;AAMhC,qBAAa,kBAAmB,SAAQ,SAAS;gBACnC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAKjE;AAED,qBAAa,oBAAqB,SAAQ,WAAW;gBACvC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAI/C"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.UnhandledSystemError = exports.UnhandledUserError = void 0;
6
- const teamsfx_api_1 = require("@microsoft/teamsfx-api");
7
- const localizeUtils_1 = require("../../../../common/localizeUtils");
8
- const errorCode = "UnhandledError";
9
- const messageKey = "error.common.UnhandledError";
10
- class UnhandledUserError extends teamsfx_api_1.UserError {
11
- constructor(actionName, detail, helpLink) {
12
- const errorOptions = generateErrorOptions(actionName, detail);
13
- errorOptions.helpLink = helpLink;
14
- super(errorOptions);
15
- }
16
- }
17
- exports.UnhandledUserError = UnhandledUserError;
18
- class UnhandledSystemError extends teamsfx_api_1.SystemError {
19
- constructor(actionName, detail) {
20
- const errorOptions = generateErrorOptions(actionName, detail);
21
- super(errorOptions);
22
- }
23
- }
24
- exports.UnhandledSystemError = UnhandledSystemError;
25
- function generateErrorOptions(actionName, detail) {
26
- return {
27
- source: actionName,
28
- name: errorCode,
29
- message: localizeUtils_1.getDefaultString(messageKey, actionName, detail),
30
- displayMessage: localizeUtils_1.getLocalizedString(messageKey, actionName, detail),
31
- };
32
- }
33
- //# sourceMappingURL=unhandledError.js.map