@microsoft/teamsfx-core 1.22.1-alpha.d2fbcaf19.0 → 1.22.1-alpha.ecf7bf89a.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 (381) hide show
  1. package/build/common/deps-checker/checkerFactory.d.ts.map +1 -1
  2. package/build/common/deps-checker/checkerFactory.js +2 -0
  3. package/build/common/deps-checker/checkerFactory.js.map +1 -1
  4. package/build/common/deps-checker/constant/helpLink.d.ts +1 -0
  5. package/build/common/deps-checker/constant/helpLink.d.ts.map +1 -1
  6. package/build/common/deps-checker/constant/helpLink.js +2 -1
  7. package/build/common/deps-checker/constant/helpLink.js.map +1 -1
  8. package/build/common/deps-checker/constant/message.d.ts +2 -1
  9. package/build/common/deps-checker/constant/message.d.ts.map +1 -1
  10. package/build/common/deps-checker/constant/message.js +4 -1
  11. package/build/common/deps-checker/constant/message.js.map +1 -1
  12. package/build/common/deps-checker/constant/telemetry.d.ts +1 -0
  13. package/build/common/deps-checker/constant/telemetry.d.ts.map +1 -1
  14. package/build/common/deps-checker/constant/telemetry.js +1 -0
  15. package/build/common/deps-checker/constant/telemetry.js.map +1 -1
  16. package/build/common/deps-checker/depsChecker.d.ts +5 -1
  17. package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
  18. package/build/common/deps-checker/depsChecker.js +1 -0
  19. package/build/common/deps-checker/depsChecker.js.map +1 -1
  20. package/build/common/deps-checker/depsError.d.ts +4 -1
  21. package/build/common/deps-checker/depsError.d.ts.map +1 -1
  22. package/build/common/deps-checker/depsError.js +11 -4
  23. package/build/common/deps-checker/depsError.js.map +1 -1
  24. package/build/common/deps-checker/internal/funcToolChecker.d.ts +13 -7
  25. package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
  26. package/build/common/deps-checker/internal/funcToolChecker.js +75 -44
  27. package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
  28. package/build/common/deps-checker/internal/nodeChecker.d.ts +17 -6
  29. package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
  30. package/build/common/deps-checker/internal/nodeChecker.js +44 -22
  31. package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
  32. package/build/common/deps-checker/internal/vxTestAppChecker.d.ts +3 -3
  33. package/build/common/deps-checker/internal/vxTestAppChecker.d.ts.map +1 -1
  34. package/build/common/deps-checker/internal/vxTestAppChecker.js.map +1 -1
  35. package/build/common/m365/packageService.d.ts +1 -1
  36. package/build/common/m365/packageService.d.ts.map +1 -1
  37. package/build/common/m365/packageService.js +7 -4
  38. package/build/common/m365/packageService.js.map +1 -1
  39. package/build/common/m365/serviceConstant.d.ts +2 -2
  40. package/build/common/m365/serviceConstant.d.ts.map +1 -1
  41. package/build/common/m365/serviceConstant.js +2 -2
  42. package/build/common/m365/serviceConstant.js.map +1 -1
  43. package/build/common/projectSettingsHelper.d.ts.map +1 -1
  44. package/build/common/projectSettingsHelper.js +4 -2
  45. package/build/common/projectSettingsHelper.js.map +1 -1
  46. package/build/common/samples-config-v3.json +12 -22
  47. package/build/common/samples-config.json +1 -1
  48. package/build/common/tools.d.ts.map +1 -1
  49. package/build/common/tools.js +7 -4
  50. package/build/common/tools.js.map +1 -1
  51. package/build/common/versionMetadata.d.ts +23 -0
  52. package/build/common/versionMetadata.d.ts.map +1 -1
  53. package/build/common/versionMetadata.js +22 -2
  54. package/build/common/versionMetadata.js.map +1 -1
  55. package/build/component/configManager/error.d.ts +3 -0
  56. package/build/component/configManager/error.d.ts.map +1 -1
  57. package/build/component/configManager/error.js +15 -1
  58. package/build/component/configManager/error.js.map +1 -1
  59. package/build/component/configManager/interface.d.ts +2 -0
  60. package/build/component/configManager/interface.d.ts.map +1 -1
  61. package/build/component/configManager/interface.js.map +1 -1
  62. package/build/component/configManager/parser.d.ts +1 -0
  63. package/build/component/configManager/parser.d.ts.map +1 -1
  64. package/build/component/configManager/parser.js +14 -3
  65. package/build/component/configManager/parser.js.map +1 -1
  66. package/build/component/constant/commonConstant.d.ts +9 -1
  67. package/build/component/constant/commonConstant.d.ts.map +1 -1
  68. package/build/component/constant/commonConstant.js +8 -0
  69. package/build/component/constant/commonConstant.js.map +1 -1
  70. package/build/component/constant/deployConstant.d.ts +5 -0
  71. package/build/component/constant/deployConstant.d.ts.map +1 -1
  72. package/build/component/constant/deployConstant.js +19 -1
  73. package/build/component/constant/deployConstant.js.map +1 -1
  74. package/build/component/constants.d.ts +8 -0
  75. package/build/component/constants.d.ts.map +1 -1
  76. package/build/component/constants.js +12 -4
  77. package/build/component/constants.js.map +1 -1
  78. package/build/component/coordinator/index.d.ts +0 -1
  79. package/build/component/coordinator/index.d.ts.map +1 -1
  80. package/build/component/coordinator/index.js +78 -62
  81. package/build/component/coordinator/index.js.map +1 -1
  82. package/build/component/coordinator/summary.d.ts +13 -2
  83. package/build/component/coordinator/summary.d.ts.map +1 -1
  84. package/build/component/coordinator/summary.js +2 -2
  85. package/build/component/coordinator/summary.js.map +1 -1
  86. package/build/component/debugHandler/bot.d.ts.map +1 -1
  87. package/build/component/debugHandler/bot.js +5 -1
  88. package/build/component/debugHandler/bot.js.map +1 -1
  89. package/build/component/developerPortalScaffoldUtils.d.ts +1 -0
  90. package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
  91. package/build/component/developerPortalScaffoldUtils.js +5 -7
  92. package/build/component/developerPortalScaffoldUtils.js.map +1 -1
  93. package/build/component/driver/aad/error/missingEnvError.d.ts.map +1 -1
  94. package/build/component/driver/aad/error/missingEnvError.js +2 -2
  95. package/build/component/driver/aad/error/missingEnvError.js.map +1 -1
  96. package/build/component/driver/aad/error/missingEnvInFileError.d.ts +5 -0
  97. package/build/component/driver/aad/error/missingEnvInFileError.d.ts.map +1 -0
  98. package/build/component/driver/aad/error/missingEnvInFileError.js +33 -0
  99. package/build/component/driver/aad/error/missingEnvInFileError.js.map +1 -0
  100. package/build/component/driver/aad/interface/updateAadAppArgs.d.ts +1 -1
  101. package/build/component/driver/aad/interface/updateAadAppArgs.d.ts.map +1 -1
  102. package/build/component/driver/aad/update.js +4 -4
  103. package/build/component/driver/aad/update.js.map +1 -1
  104. package/build/component/driver/aad/utility/buildAadManifest.d.ts +1 -1
  105. package/build/component/driver/aad/utility/buildAadManifest.d.ts.map +1 -1
  106. package/build/component/driver/aad/utility/buildAadManifest.js +7 -10
  107. package/build/component/driver/aad/utility/buildAadManifest.js.map +1 -1
  108. package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.d.ts +5 -11
  109. package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.d.ts.map +1 -1
  110. package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.js +22 -47
  111. package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.js.map +1 -1
  112. package/build/component/driver/deploy/azure/azureFunctionDeployDriver.d.ts +5 -14
  113. package/build/component/driver/deploy/azure/azureFunctionDeployDriver.d.ts.map +1 -1
  114. package/build/component/driver/deploy/azure/azureFunctionDeployDriver.js +23 -45
  115. package/build/component/driver/deploy/azure/azureFunctionDeployDriver.js.map +1 -1
  116. package/build/component/driver/deploy/azure/azureStorageDeployDriver.d.ts +6 -2
  117. package/build/component/driver/deploy/azure/azureStorageDeployDriver.d.ts.map +1 -1
  118. package/build/component/driver/deploy/azure/azureStorageDeployDriver.js +21 -13
  119. package/build/component/driver/deploy/azure/azureStorageDeployDriver.js.map +1 -1
  120. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts +45 -0
  121. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -0
  122. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +150 -0
  123. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -0
  124. package/build/component/driver/deploy/azure/{azureDeployDriver.d.ts → impl/azureDeployImpl.d.ts} +7 -31
  125. package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts.map +1 -0
  126. package/build/component/driver/deploy/azure/impl/azureDeployImpl.js +146 -0
  127. package/build/component/driver/deploy/azure/impl/azureDeployImpl.js.map +1 -0
  128. package/build/component/driver/deploy/azure/impl/baseDeployImpl.d.ts +42 -0
  129. package/build/component/driver/deploy/azure/impl/baseDeployImpl.d.ts.map +1 -0
  130. package/build/component/driver/deploy/azure/{baseDeployDriver.js → impl/baseDeployImpl.js} +47 -33
  131. package/build/component/driver/deploy/azure/impl/baseDeployImpl.js.map +1 -0
  132. package/build/component/driver/deploy/azure/impl/progressBarHelper.d.ts +3 -0
  133. package/build/component/driver/deploy/azure/impl/progressBarHelper.d.ts.map +1 -0
  134. package/build/component/driver/deploy/azure/impl/progressBarHelper.js +15 -0
  135. package/build/component/driver/deploy/azure/impl/progressBarHelper.js.map +1 -0
  136. package/build/component/driver/file/updateEnv.js +1 -1
  137. package/build/component/driver/file/updateEnv.js.map +1 -1
  138. package/build/component/driver/file/{appsettingsGenerate.d.ts → updateJson.d.ts} +2 -2
  139. package/build/component/driver/file/updateJson.d.ts.map +1 -0
  140. package/build/component/driver/file/{appsettingsGenerate.js → updateJson.js} +12 -14
  141. package/build/component/driver/file/updateJson.js.map +1 -0
  142. package/build/component/driver/index.d.ts +2 -1
  143. package/build/component/driver/index.d.ts.map +1 -1
  144. package/build/component/driver/index.js +2 -1
  145. package/build/component/driver/index.js.map +1 -1
  146. package/build/component/driver/m365/acquire.d.ts +15 -0
  147. package/build/component/driver/m365/acquire.d.ts.map +1 -0
  148. package/build/component/driver/m365/acquire.js +104 -0
  149. package/build/component/driver/m365/acquire.js.map +1 -0
  150. package/build/component/driver/m365/error/FileNotFoundUserError.d.ts +5 -0
  151. package/build/component/driver/m365/error/FileNotFoundUserError.d.ts.map +1 -0
  152. package/build/component/driver/m365/error/FileNotFoundUserError.js +22 -0
  153. package/build/component/driver/m365/error/FileNotFoundUserError.js.map +1 -0
  154. package/build/component/driver/m365/error/invalidParameterUserError.d.ts +5 -0
  155. package/build/component/driver/m365/error/invalidParameterUserError.d.ts.map +1 -0
  156. package/build/component/driver/m365/error/invalidParameterUserError.js +29 -0
  157. package/build/component/driver/m365/error/invalidParameterUserError.js.map +1 -0
  158. package/build/component/driver/m365/error/unhandledError.d.ts +5 -0
  159. package/build/component/driver/m365/error/unhandledError.d.ts.map +1 -0
  160. package/build/component/driver/m365/error/unhandledError.js +25 -0
  161. package/build/component/driver/m365/error/unhandledError.js.map +1 -0
  162. package/build/component/generator/generator.js +2 -2
  163. package/build/component/generator/generator.js.map +1 -1
  164. package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
  165. package/build/component/generator/officeAddin/generator.js +12 -4
  166. package/build/component/generator/officeAddin/generator.js.map +1 -1
  167. package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
  168. package/build/component/generator/officeAddin/helperMethods.js +3 -7
  169. package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
  170. package/build/component/generator/officeAddin/question.d.ts +1 -2
  171. package/build/component/generator/officeAddin/question.d.ts.map +1 -1
  172. package/build/component/generator/officeAddin/question.js +1 -10
  173. package/build/component/generator/officeAddin/question.js.map +1 -1
  174. package/build/component/generator/spfxGenerator.d.ts.map +1 -1
  175. package/build/component/generator/spfxGenerator.js +5 -4
  176. package/build/component/generator/spfxGenerator.js.map +1 -1
  177. package/build/component/messages.d.ts +11 -11
  178. package/build/component/messages.d.ts.map +1 -1
  179. package/build/component/messages.js +11 -11
  180. package/build/component/messages.js.map +1 -1
  181. package/build/component/middleware/envMW.d.ts.map +1 -1
  182. package/build/component/middleware/envMW.js +15 -19
  183. package/build/component/middleware/envMW.js.map +1 -1
  184. package/build/component/question.d.ts.map +1 -1
  185. package/build/component/question.js +7 -16
  186. package/build/component/question.js.map +1 -1
  187. package/build/component/resource/appManifest/appStudioClient.d.ts +1 -0
  188. package/build/component/resource/appManifest/appStudioClient.d.ts.map +1 -1
  189. package/build/component/resource/appManifest/appStudioClient.js +17 -7
  190. package/build/component/resource/appManifest/appStudioClient.js.map +1 -1
  191. package/build/component/resource/appManifest/constants.d.ts +6 -0
  192. package/build/component/resource/appManifest/constants.d.ts.map +1 -1
  193. package/build/component/resource/appManifest/constants.js +3 -0
  194. package/build/component/resource/appManifest/constants.js.map +1 -1
  195. package/build/component/resource/appManifest/utils/ManifestUtils.d.ts.map +1 -1
  196. package/build/component/resource/appManifest/utils/ManifestUtils.js +6 -2
  197. package/build/component/resource/appManifest/utils/ManifestUtils.js.map +1 -1
  198. package/build/component/resource/appManifest/utils/utils.d.ts.map +1 -1
  199. package/build/component/resource/appManifest/utils/utils.js +15 -8
  200. package/build/component/resource/appManifest/utils/utils.js.map +1 -1
  201. package/build/component/resource/azureAppService/azureAppService.js +1 -1
  202. package/build/component/resource/azureAppService/azureAppService.js.map +1 -1
  203. package/build/component/resource/botService/appStudio/appStudioClient.d.ts +5 -1
  204. package/build/component/resource/botService/appStudio/appStudioClient.d.ts.map +1 -1
  205. package/build/component/resource/botService/appStudio/appStudioClient.js +69 -46
  206. package/build/component/resource/botService/appStudio/appStudioClient.js.map +1 -1
  207. package/build/component/resource/botService/botService.d.ts +3 -0
  208. package/build/component/resource/botService/botService.d.ts.map +1 -1
  209. package/build/component/resource/botService/botService.js +7 -4
  210. package/build/component/resource/botService/botService.js.map +1 -1
  211. package/build/component/resource/botService/common.d.ts +2 -0
  212. package/build/component/resource/botService/common.d.ts.map +1 -1
  213. package/build/component/resource/botService/common.js +8 -1
  214. package/build/component/resource/botService/common.js.map +1 -1
  215. package/build/component/resource/botService/constants.d.ts +7 -1
  216. package/build/component/resource/botService/constants.d.ts.map +1 -1
  217. package/build/component/resource/botService/constants.js +7 -1
  218. package/build/component/resource/botService/constants.js.map +1 -1
  219. package/build/component/resource/botService/errors.d.ts +9 -0
  220. package/build/component/resource/botService/errors.d.ts.map +1 -1
  221. package/build/component/resource/botService/errors.js +22 -1
  222. package/build/component/resource/botService/errors.js.map +1 -1
  223. package/build/component/resource/botService/messages.d.ts +5 -1
  224. package/build/component/resource/botService/messages.d.ts.map +1 -1
  225. package/build/component/resource/botService/messages.js +17 -25
  226. package/build/component/resource/botService/messages.js.map +1 -1
  227. package/build/component/resource/botService/retryHandler.d.ts.map +1 -1
  228. package/build/component/resource/botService/retryHandler.js +6 -1
  229. package/build/component/resource/botService/retryHandler.js.map +1 -1
  230. package/build/component/utils/envUtil.d.ts +19 -0
  231. package/build/component/utils/envUtil.d.ts.map +1 -1
  232. package/build/component/utils/envUtil.js +54 -11
  233. package/build/component/utils/envUtil.js.map +1 -1
  234. package/build/component/utils/pathUtils.d.ts +10 -0
  235. package/build/component/utils/pathUtils.d.ts.map +1 -0
  236. package/build/component/utils/pathUtils.js +52 -0
  237. package/build/component/utils/pathUtils.js.map +1 -0
  238. package/build/component/utils/settingsUtil.d.ts.map +1 -1
  239. package/build/component/utils/settingsUtil.js +31 -13
  240. package/build/component/utils/settingsUtil.js.map +1 -1
  241. package/build/core/FxCoreImplementV3.d.ts.map +1 -1
  242. package/build/core/FxCoreImplementV3.js +31 -11
  243. package/build/core/FxCoreImplementV3.js.map +1 -1
  244. package/build/core/environment.d.ts +1 -1
  245. package/build/core/environment.d.ts.map +1 -1
  246. package/build/core/environment.js +20 -6
  247. package/build/core/environment.js.map +1 -1
  248. package/build/core/error.d.ts +2 -1
  249. package/build/core/error.d.ts.map +1 -1
  250. package/build/core/error.js +7 -3
  251. package/build/core/error.js.map +1 -1
  252. package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
  253. package/build/core/middleware/concurrentLocker.js +1 -1
  254. package/build/core/middleware/concurrentLocker.js.map +1 -1
  255. package/build/core/middleware/envInfoLoaderV3.js +2 -2
  256. package/build/core/middleware/envInfoLoaderV3.js.map +1 -1
  257. package/build/core/middleware/projectMigratorV3.d.ts +12 -1
  258. package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
  259. package/build/core/middleware/projectMigratorV3.js +59 -82
  260. package/build/core/middleware/projectMigratorV3.js.map +1 -1
  261. package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
  262. package/build/core/middleware/projectSettingsLoader.js +13 -13
  263. package/build/core/middleware/projectSettingsLoader.js.map +1 -1
  264. package/build/core/middleware/projectSettingsWriter.d.ts.map +1 -1
  265. package/build/core/middleware/projectSettingsWriter.js +1 -10
  266. package/build/core/middleware/projectSettingsWriter.js.map +1 -1
  267. package/build/core/middleware/projectVersionChecker.d.ts.map +1 -1
  268. package/build/core/middleware/projectVersionChecker.js +23 -10
  269. package/build/core/middleware/projectVersionChecker.js.map +1 -1
  270. package/build/core/middleware/types.d.ts +2 -1
  271. package/build/core/middleware/types.d.ts.map +1 -1
  272. package/build/core/middleware/utils/appYmlGenerator.d.ts +2 -0
  273. package/build/core/middleware/utils/appYmlGenerator.d.ts.map +1 -1
  274. package/build/core/middleware/utils/appYmlGenerator.js +12 -4
  275. package/build/core/middleware/utils/appYmlGenerator.js.map +1 -1
  276. package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts +13 -0
  277. package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts.map +1 -1
  278. package/build/core/middleware/utils/debug/appLocalYmlGenerator.js.map +1 -1
  279. package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts +2 -3
  280. package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts.map +1 -1
  281. package/build/core/middleware/utils/debug/debugV3MigrationUtils.js +17 -20
  282. package/build/core/middleware/utils/debug/debugV3MigrationUtils.js.map +1 -1
  283. package/build/core/middleware/utils/debug/taskMigrator.d.ts.map +1 -1
  284. package/build/core/middleware/utils/debug/taskMigrator.js +28 -224
  285. package/build/core/middleware/utils/debug/taskMigrator.js.map +1 -1
  286. package/build/core/middleware/utils/migrationContext.d.ts +2 -2
  287. package/build/core/middleware/utils/migrationContext.d.ts.map +1 -1
  288. package/build/core/middleware/utils/migrationContext.js +9 -10
  289. package/build/core/middleware/utils/migrationContext.js.map +1 -1
  290. package/build/core/middleware/utils/v3MigrationUtils.d.ts +4 -4
  291. package/build/core/middleware/utils/v3MigrationUtils.d.ts.map +1 -1
  292. package/build/core/middleware/utils/v3MigrationUtils.js +33 -11
  293. package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
  294. package/build/core/question.d.ts +4 -1
  295. package/build/core/question.d.ts.map +1 -1
  296. package/build/core/question.js +13 -15
  297. package/build/core/question.js.map +1 -1
  298. package/build/core/types.d.ts +1 -0
  299. package/build/core/types.d.ts.map +1 -1
  300. package/package.json +13 -6
  301. package/resource/package.nls.cs.json +63 -44
  302. package/resource/package.nls.de.json +63 -44
  303. package/resource/package.nls.es.json +63 -44
  304. package/resource/package.nls.fr.json +63 -44
  305. package/resource/package.nls.it.json +63 -44
  306. package/resource/package.nls.ja.json +63 -44
  307. package/resource/package.nls.json +58 -38
  308. package/resource/package.nls.ko.json +63 -44
  309. package/resource/package.nls.pl.json +63 -44
  310. package/resource/package.nls.pt-BR.json +63 -44
  311. package/resource/package.nls.ru.json +63 -44
  312. package/resource/package.nls.tr.json +63 -44
  313. package/resource/package.nls.zh-Hans.json +63 -44
  314. package/resource/package.nls.zh-Hant.json +63 -44
  315. package/templates/bicep/azureWebApp.provision.module.bicep +1 -1
  316. package/templates/core/v3Migration/csharp.app.local.yml +6 -6
  317. package/templates/core/v3Migration/csharp.app.yml +11 -7
  318. package/templates/core/v3Migration/js.ts.app.local.yml +120 -24
  319. package/templates/core/v3Migration/js.ts.app.yml +10 -6
  320. package/templates/core/v3Migration/spfx.app.yml +7 -5
  321. package/templates/core/v3Migration/upgradeReport.md +36 -0
  322. package/templates/fallback/bot.csharp.command-and-response.zip +0 -0
  323. package/templates/fallback/bot.csharp.default.zip +0 -0
  324. package/templates/fallback/bot.csharp.notification-function-base.zip +0 -0
  325. package/templates/fallback/bot.csharp.notification-trigger-http.zip +0 -0
  326. package/templates/fallback/bot.csharp.notification-trigger-timer.zip +0 -0
  327. package/templates/fallback/bot.csharp.notification-webapi.zip +0 -0
  328. package/templates/fallback/bot.csharp.workflow.zip +0 -0
  329. package/templates/fallback/bot.js.command-and-response.zip +0 -0
  330. package/templates/fallback/bot.js.default.zip +0 -0
  331. package/templates/fallback/bot.js.m365.zip +0 -0
  332. package/templates/fallback/bot.js.notification-function-base.zip +0 -0
  333. package/templates/fallback/bot.js.notification-restify.zip +0 -0
  334. package/templates/fallback/bot.js.notification-trigger-http.zip +0 -0
  335. package/templates/fallback/bot.js.notification-trigger-timer.zip +0 -0
  336. package/templates/fallback/bot.js.workflow.zip +0 -0
  337. package/templates/fallback/bot.ts.command-and-response.zip +0 -0
  338. package/templates/fallback/bot.ts.default.zip +0 -0
  339. package/templates/fallback/bot.ts.m365.zip +0 -0
  340. package/templates/fallback/bot.ts.notification-function-base.zip +0 -0
  341. package/templates/fallback/bot.ts.notification-restify.zip +0 -0
  342. package/templates/fallback/bot.ts.notification-trigger-http.zip +0 -0
  343. package/templates/fallback/bot.ts.notification-trigger-timer.zip +0 -0
  344. package/templates/fallback/bot.ts.workflow.zip +0 -0
  345. package/templates/fallback/common.zip +0 -0
  346. package/templates/fallback/csharp.zip +0 -0
  347. package/templates/fallback/function-base.js.default.zip +0 -0
  348. package/templates/fallback/function-base.ts.default.zip +0 -0
  349. package/templates/fallback/function-triggers.js.HTTPTrigger.zip +0 -0
  350. package/templates/fallback/function-triggers.ts.HTTPTrigger.zip +0 -0
  351. package/templates/fallback/js.zip +0 -0
  352. package/templates/fallback/tab.csharp.default.zip +0 -0
  353. package/templates/fallback/tab.csharp.non-sso.zip +0 -0
  354. package/templates/fallback/tab.js.dashboard.zip +0 -0
  355. package/templates/fallback/tab.js.default.zip +0 -0
  356. package/templates/fallback/tab.js.m365.zip +0 -0
  357. package/templates/fallback/tab.js.non-sso.zip +0 -0
  358. package/templates/fallback/tab.ts.dashboard.zip +0 -0
  359. package/templates/fallback/tab.ts.default.zip +0 -0
  360. package/templates/fallback/tab.ts.m365.zip +0 -0
  361. package/templates/fallback/tab.ts.non-sso.zip +0 -0
  362. package/templates/fallback/ts.zip +0 -0
  363. package/templates/plugins/resource/aad/auth/bot/README.md +6 -6
  364. package/templates/plugins/resource/aad/auth/bot/README.txt +36 -3
  365. package/templates/plugins/resource/apim/README.md +1 -1
  366. package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +1 -1
  367. package/templates/plugins/resource/hosting/bicep/webapp/webappProvision.template.bicep +1 -1
  368. package/templates/plugins/resource/spfx/solution/README.md +1 -1
  369. package/build/component/driver/deploy/azure/azureDeployDriver.d.ts.map +0 -1
  370. package/build/component/driver/deploy/azure/azureDeployDriver.js +0 -237
  371. package/build/component/driver/deploy/azure/azureDeployDriver.js.map +0 -1
  372. package/build/component/driver/deploy/azure/baseDeployDriver.d.ts +0 -25
  373. package/build/component/driver/deploy/azure/baseDeployDriver.d.ts.map +0 -1
  374. package/build/component/driver/deploy/azure/baseDeployDriver.js.map +0 -1
  375. package/build/component/driver/file/appsettingsGenerate.d.ts.map +0 -1
  376. package/build/component/driver/file/appsettingsGenerate.js.map +0 -1
  377. package/build/component/driver/interface/baseDeployStepDriver.d.ts +0 -19
  378. package/build/component/driver/interface/baseDeployStepDriver.d.ts.map +0 -1
  379. package/build/component/driver/interface/baseDeployStepDriver.js +0 -30
  380. package/build/component/driver/interface/baseDeployStepDriver.js.map +0 -1
  381. package/templates/core/v3Migration/migrationReport.md +0 -37
@@ -3,27 +3,39 @@ version: 1.0.0
3
3
  {{#config.registerApp}}
4
4
  registerApp:
5
5
  {{#if aad}}
6
- - uses: aadApp/create
6
+ - uses: aadApp/create # Creates a new AAD app to authenticate users if AAD_APP_CLIENT_ID environment variable is empty
7
7
  with:
8
- name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}}-aad
9
- generateClientSecret: true
8
+ name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}}-aad # Note: when you run configure/aadApp, the AAD app name will be updated based on the definition of manifest. If you don't want to change the name, ensure the name in AAD manifest is same with the name defined here.
9
+ generateClientSecret: true # If the value is false, the action will not generate client secret for you
10
+ # Output: following environment variable will be persisted in current environment's .env file.
11
+ # AAD_APP_CLIENT_ID: the client id of AAD app
12
+ # AAD_APP_CLIENT_SECRET: the client secret of AAD app
13
+ # AAD_APP_OBJECT_ID: the object id of AAD app
14
+ # AAD_APP_TENANT_ID: the tenant id of AAD app
15
+ # AAD_APP_OAUTH_AUTHORITY_HOST: the host of OAUTH authority of AAD app
16
+ # AAD_APP_OAUTH_AUTHORITY: the OAUTH authority of AAD app
10
17
 
11
18
  {{/if}}
12
19
  {{#if teamsApp}}
13
- - uses: teamsApp/create
20
+ - uses: teamsApp/create # Creates a Teams app
14
21
  with:
15
- name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}}
22
+ name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}} # Teams app name
23
+ # Output: following environment variable will be persisted in current environment's .env file.
24
+ # TEAMS_APP_ID: the id of Teams app
16
25
  {{/if}}
17
26
 
18
27
  {{/config.registerApp}}
19
28
  {{#config.provision}}
20
29
  provision:
21
30
  {{#bot}}
22
- - uses: botAadApp/create
31
+ - uses: botAadApp/create # Creates a new AAD app for bot if BOT_ID environment variable is empty
23
32
  with:
24
33
  name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}}-bot
34
+ # Output: following environment variable will be persisted in current environment's .env file.
35
+ # BOT_ID: the AAD app client id created for bot
36
+ # SECRET_BOT_PASSWORD: the AAD app client secret created for bot
25
37
 
26
- - uses: botFramework/create
38
+ - uses: botFramework/create # Create or update the bot registration on dev.botframework.com
27
39
  with:
28
40
  botId: $\{{BOT_ID}}
29
41
  name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}}-bot
@@ -40,7 +52,7 @@ provision:
40
52
  {{#config.configureApp}}
41
53
  configureApp:
42
54
  {{#tab}}
43
- - uses: file/updateEnv
55
+ - uses: file/updateEnv # Generate env to .env file
44
56
  with:
45
57
  envs:
46
58
  {{../../placeholderMappings.tabDomain}}: {{domain}}
@@ -49,31 +61,37 @@ configureApp:
49
61
 
50
62
  {{/tab}}
51
63
  {{#if aad}}
52
- - uses: aadApp/update
64
+ - 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.
53
65
  with:
54
- manifestTemplatePath: ./aad.manifest.template.json
66
+ manifestPath: ./aad.manifest.json # Relative path to this file. Environment variables in manifest will be replaced before apply to AAD app
55
67
  outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
68
+ # Output: following environment variable will be persisted in current environment's .env file.
69
+ # AAD_APP_ACCESS_AS_USER_PERMISSION_ID: the id of access_as_user permission which is used to enable SSO
56
70
 
57
71
  {{/if}}
58
72
  {{#teamsApp}}
59
73
  {{#if appPackagePath}}
60
- - uses: teamsApp/update
74
+ - 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.
61
75
  with:
62
- appPackagePath: {{appPackagePath}}
76
+ appPackagePath: {{appPackagePath}} # Relative path to this file. This is the path for built zip file.
77
+ # Output: following environment variable will be persisted in current environment's .env file.
78
+ # TEAMS_APP_ID: the id of Teams app
63
79
  {{else}}
64
80
  - uses: teamsApp/validate
65
81
  with:
66
- manifestPath: ./appPackage/manifest.template.json
82
+ manifestPath: ./appPackage/manifest.json # Path to manifest template
67
83
 
68
- - uses: teamsApp/zipAppPackage
84
+ - uses: teamsApp/zipAppPackage # Build Teams app package with latest env value
69
85
  with:
70
- manifestPath: ./appPackage/manifest.template.json
86
+ manifestPath: ./appPackage/manifest.json # Path to manifest template
71
87
  outputZipPath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
72
88
  outputJsonPath: ./build/appPackage/manifest.$\{{TEAMSFX_ENV}}.json
73
89
 
74
- - uses: teamsApp/update
90
+ - 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.
75
91
  with:
76
- appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
92
+ appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
93
+ # Output: following environment variable will be persisted in current environment's .env file.
94
+ # TEAMS_APP_ID: the id of Teams app
77
95
  {{/if}}
78
96
  {{/teamsApp}}
79
97
 
@@ -81,7 +99,7 @@ configureApp:
81
99
  {{#config.deploy}}
82
100
  deploy:
83
101
  {{#tools}}
84
- - uses: prerequisite/install
102
+ - uses: prerequisite/install # Install dependencies
85
103
  with:
86
104
  {{#devCert}}
87
105
  devCert:
@@ -93,6 +111,11 @@ deploy:
93
111
  {{#dotnet}}
94
112
  dotnet: true
95
113
  {{/dotnet}}
114
+ {{#if devCert}}
115
+ # Output: following environment variable will be persisted in current environment's .env file.
116
+ # SSL_CRT_FILE: certificate file
117
+ # SSL_KEY_FILE: certificate key
118
+ {{/if}}
96
119
 
97
120
  {{/tools}}
98
121
  {{#dotnetCommand}}
@@ -106,7 +129,7 @@ deploy:
106
129
 
107
130
  {{/dotnetCommand}}
108
131
  {{#tab}}
109
- - uses: file/updateEnv
132
+ - uses: file/updateEnv # Generate runtime environment variables
110
133
  with:
111
134
  target: ./tabs/.env.teamsfx.local
112
135
  envs:
@@ -118,7 +141,7 @@ deploy:
118
141
 
119
142
  {{/tab}}
120
143
  {{#if bot}}
121
- - uses: file/updateEnv
144
+ - uses: file/updateEnv # Generate runtime environment variables
122
145
  with:
123
146
  target: ./bot/.env.teamsfx.local
124
147
  envs:
@@ -127,7 +150,7 @@ deploy:
127
150
 
128
151
  {{/if}}
129
152
  {{#ssoTab}}
130
- - uses: file/updateEnv
153
+ - uses: file/updateEnv # Generate runtime environment variables
131
154
  with:
132
155
  target: ./tabs/.env.teamsfx.local
133
156
  envs:
@@ -140,7 +163,7 @@ deploy:
140
163
 
141
164
  {{/ssoTab}}
142
165
  {{#if ssoBot}}
143
- - uses: file/updateEnv
166
+ - uses: file/updateEnv # Generate runtime environment variables
144
167
  with:
145
168
  target: ./bot/.env.teamsfx.local
146
169
  envs:
@@ -160,7 +183,7 @@ deploy:
160
183
 
161
184
  {{/if}}
162
185
  {{#if ssoFunction}}
163
- - uses: file/updateEnv
186
+ - uses: file/updateEnv # Generate runtime environment variables
164
187
  with:
165
188
  target: ./api/.env.teamsfx.local
166
189
  envs:
@@ -172,7 +195,7 @@ deploy:
172
195
 
173
196
  {{/if}}
174
197
  {{#npmCommands}}
175
- - uses: cli/runNpmCommand
198
+ - uses: cli/runNpmCommand # Run npm command
176
199
  with:
177
200
  args: {{args}}
178
201
  {{#if workingDirectory}}
@@ -180,4 +203,77 @@ deploy:
180
203
  {{/if}}
181
204
 
182
205
  {{/npmCommands}}
206
+ {{#frontendStart}}
207
+ - uses: file/updateEnv # Generate runtime environment variables
208
+ with:
209
+ target: ./tabs/.localSettings
210
+ envs:
211
+ BROWSER: none
212
+ HTTPS: true
213
+ PORT: 53000
214
+ SSL_CRT_FILE: $\{{SSL_CRT_FILE}}
215
+ SSL_KEY_FILE: $\{{SSL_KEY_FILE}}
216
+ {{#if sso}}
217
+ REACT_APP_CLIENT_ID: $\{{AAD_APP_CLIENT_ID}}
218
+ REACT_APP_START_LOGIN_PAGE_URL: $\{{ {{~../../placeholderMappings.tabEndpoint~}} }}/auth-start.html
219
+ REACT_APP_TEAMSFX_ENDPOINT: http://localhost:55000
220
+ {{/if}}
221
+ {{#if functionName}}
222
+ REACT_APP_FUNC_ENDPOINT: http://localhost:7071
223
+ REACT_APP_FUNC_NAME: {{functionName}}
224
+ {{/if}}
225
+
226
+ {{/frontendStart}}
227
+ {{#authStart}}
228
+ - uses: file/updateJson # Generate runtime environment variables
229
+ with:
230
+ target: {{appsettingsPath}}
231
+ appsettings:
232
+ CLIENT_ID: $\{{AAD_APP_CLIENT_ID}}
233
+ CLIENT_SECRET: $\{{SECRET_AAD_APP_CLIENT_SECRET}}
234
+ IDENTIFIER_URI: api://$\{{ {{~../../placeholderMappings.tabDomain~}} }}/$\{{AAD_APP_CLIENT_ID}}
235
+ AAD_METADATA_ADDRESS: $\{{AAD_APP_OAUTH_AUTHORITY}}/v2.0/.well-known/openid-configuration
236
+ OAUTH_AUTHORITY: $\{{AAD_APP_OAUTH_AUTHORITY}}
237
+ TAB_APP_ENDPOINT: $\{{ {{~../../placeholderMappings.tabEndpoint~}} }}
238
+ ALLOWED_APP_IDS: 1fec8e78-bce4-4aaf-ab1b-5451cc387264;5e3ce6c0-2b1f-4285-8d4b-75ee78787346;0ec893e0-5785-4de6-99da-4ed124e5296c;4345a7b9-9a63-4910-a426-35363201d503;4765445b-32c6-49b0-83e6-1d93765276ca;d3590ed6-52b3-4102-aeff-aad2292ab01c;00000002-0000-0ff1-ce00-000000000000;bc59ab01-8403-45c6-8796-ac3ef710b3e3
239
+ URLS: http://localhost:55000
240
+
241
+ {{/authStart}}
242
+ {{#botStart}}
243
+ - uses: file/updateEnv # Generate runtime environment variables
244
+ with:
245
+ target: ./bot/.localSettings
246
+ envs:
247
+ BOT_ID: $\{{BOT_ID}}
248
+ BOT_PASSWORD: $\{{SECRET_BOT_PASSWORD}}
249
+ {{#if sso}}
250
+ M365_CLIENT_ID: $\{{AAD_APP_CLIENT_ID}}
251
+ M365_CLIENT_SECRET: $\{{SECRET_AAD_APP_CLIENT_SECRET}}
252
+ M365_TENANT_ID: $\{{AAD_APP_TENANT_ID}}
253
+ M365_AUTHORITY_HOST: $\{{AAD_APP_OAUTH_AUTHORITY_HOST}}
254
+ INITIATE_LOGIN_ENDPOINT: $\{{ {{~../../placeholderMappings.botEndpoint~}} }}/auth-start.html
255
+ {{#if tab}}
256
+ M365_APPLICATION_ID_URI: api://$\{{ {{~../../placeholderMappings.tabDomain~}} }}/botid-$\{{BOT_ID}}
257
+ {{else}}
258
+ M365_APPLICATION_ID_URI: api://botid-$\{{BOT_ID}}
259
+ {{/if}}
260
+ {{/if}}
261
+ {{#if function}}
262
+ API_ENDPOINT: http://localhost:7071
263
+ {{/if}}
264
+
265
+ {{/botStart}}
266
+ {{#if backendStart}}
267
+ - uses: file/updateEnv # Generate runtime environment variables
268
+ with:
269
+ target: ./api/.localSettings
270
+ envs:
271
+ FUNCTIONS_WORKER_RUNTIME: node
272
+ M365_CLIENT_ID: $\{{AAD_APP_CLIENT_ID}}
273
+ M365_CLIENT_SECRET: $\{{SECRET_AAD_APP_CLIENT_SECRET}}
274
+ M365_TENANT_ID: $\{{AAD_APP_TENANT_ID}}
275
+ M365_AUTHORITY_HOST: $\{{AAD_APP_OAUTH_AUTHORITY_HOST}}
276
+ ALLOWED_APP_IDS: 1fec8e78-bce4-4aaf-ab1b-5451cc387264;5e3ce6c0-2b1f-4285-8d4b-75ee78787346;0ec893e0-5785-4de6-99da-4ed124e5296c;4345a7b9-9a63-4910-a426-35363201d503;4765445b-32c6-49b0-83e6-1d93765276ca;d3590ed6-52b3-4102-aeff-aad2292ab01c;00000002-0000-0ff1-ce00-000000000000;bc59ab01-8403-45c6-8796-ac3ef710b3e3
277
+
278
+ {{/if}}
183
279
  {{/config.deploy}}
@@ -1,5 +1,9 @@
1
1
  version: 1.0.0
2
2
 
3
+ projectId: {{projectId}}
4
+
5
+ environmentFolderPath: ./ {{~environmentFolder}}
6
+
3
7
  provision:
4
8
  {{#if activePlugins.fx-resource-bot}}
5
9
  - uses: botAadApp/create # Creates a new AAD app for Bot Registration.
@@ -18,7 +22,7 @@ provision:
18
22
  parameters: ./templates/azure/azure.parameters.$\{{TEAMSFX_ENV}}.json # Relative path to this file. Placeholders will be replaced with corresponding environment variable before ARM deployment.
19
23
  deploymentName: teams_toolkit_deployment # Required when deploy ARM template
20
24
  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.
21
- # Output: every bicep output will be persisted in current environment's .env file with certain naming conversion. Refer https://aka.ms/teamsfx-provision-arm#output for more details on the naming conversion rule.
25
+ # Output: every bicep output will be persisted in current environment's .env file with certain naming conversion. Refer https://aka.ms/teamsfx-actions/arm-deploy for more details on the naming conversion rule.
22
26
  {{#if activePlugins.fx-resource-frontend-hosting}}
23
27
  - uses: azureStorage/enableStaticWebsite
24
28
  with:
@@ -158,17 +162,17 @@ configureApp:
158
162
  {{#if activePlugins.fx-resource-aad-app-for-teams}}
159
163
  - 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.
160
164
  with:
161
- manifestTemplatePath: ./aad.manifest.template.json # Relative path to this file. Environment variables in manifest will be replaced before apply to AAD app
165
+ manifestPath: ./aad.manifest.json # Relative path to this file. Environment variables in manifest will be replaced before apply to AAD app
162
166
  outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
163
167
  # Output: following environment variable will be persisted in current environment's .env file.
164
168
  # AAD_APP_ACCESS_AS_USER_PERMISSION_ID: the id of access_as_user permission which is used to enable SSO
165
169
  {{/if}}
166
170
  - uses: teamsApp/validate
167
171
  with:
168
- manifestPath: ./appPackage/manifest.template.json # Path to manifest template
172
+ manifestPath: ./appPackage/manifest.json # Path to manifest template
169
173
  - uses: teamsApp/zipAppPackage # Build Teams app package with latest env value
170
174
  with:
171
- manifestPath: ./appPackage/manifest.template.json # Path to manifest template
175
+ manifestPath: ./appPackage/manifest.json # Path to manifest template
172
176
  outputZipPath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
173
177
  outputJsonPath: ./build/appPackage/manifest.$\{{TEAMSFX_ENV}}.json
174
178
  - 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.
@@ -180,10 +184,10 @@ configureApp:
180
184
  publish:
181
185
  - uses: teamsApp/validate
182
186
  with:
183
- manifestPath: ./appPackage/manifest.template.json # Path to manifest template
187
+ manifestPath: ./appPackage/manifest.json # Path to manifest template
184
188
  - uses: teamsApp/zipAppPackage
185
189
  with:
186
- manifestPath: ./appPackage/manifest.template.json # Path to manifest template
190
+ manifestPath: ./appPackage/manifest.json # Path to manifest template
187
191
  outputZipPath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
188
192
  outputJsonPath: ./build/appPackage/manifest.$\{{TEAMSFX_ENV}}.json
189
193
  - uses: teamsApp/publishAppPackage # Publish the app to Teams app catalog
@@ -1,5 +1,7 @@
1
1
  version: 1.0.0
2
2
 
3
+ environmentFolderPath: ./ {{~environmentFolder}}
4
+
3
5
  deploy:
4
6
  - uses: cli/runNpmCommand
5
7
  with:
@@ -28,25 +30,25 @@ registerApp:
28
30
  configureApp:
29
31
  - uses: teamsApp/validate
30
32
  with:
31
- manifestPath: ./appPackage/manifest.template.json # Path to manifest template
33
+ manifestPath: ./appPackage/manifest.json # Path to manifest template
32
34
  - uses: teamsApp/zipAppPackage # Build Teams app package with latest env value
33
35
  with:
34
- manifestPath: ./appPackage/manifest.template.json # Path to manifest template
36
+ manifestPath: ./appPackage/manifest.json # Path to manifest template
35
37
  outputZipPath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
36
38
  outputJsonPath: ./build/appPackage/manifest.$\{{TEAMSFX_ENV}}.json
37
39
  - 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.
38
40
  with:
39
- appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to teamsfx folder. This is the path for built zip file.
41
+ appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
40
42
  # Output: following environment variable will be persisted in current environment's .env file.
41
43
  # TEAMS_APP_ID: the id of Teams app
42
44
 
43
45
  publish:
44
46
  - uses: teamsApp/validate
45
47
  with:
46
- manifestPath: ./appPackage/manifest.template.json # Path to manifest template
48
+ manifestPath: ./appPackage/manifest.json # Path to manifest template
47
49
  - uses: teamsApp/zipAppPackage
48
50
  with:
49
- manifestPath: ./appPackage/manifest.template.json # Path to manifest template
51
+ manifestPath: ./appPackage/manifest.json # Path to manifest template
50
52
  outputZipPath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
51
53
  outputJsonPath: ./build/appPackage/manifest.$\{{TEAMSFX_ENV}}.json
52
54
  - uses: teamsApp/copyAppPackageForSPFx
@@ -0,0 +1,36 @@
1
+ # Upgrade Summary
2
+
3
+ Congratulations! Your project has been upgraded to work with latest Teams Toolkit. You can visit https://aka.ms/teamsfx-v5.0-guide to learn new features in Teams Toolkit. And visit https://aka.ms/teams-toolkit-5.0-upgrade to learn more about the upgrade.
4
+
5
+ ## Changes to your project
6
+
7
+ 1. Created `teamsapp.yml` and `teamsapp.local.yml` in your project root folder.
8
+ 2. Moved environment files in `.fx` to `.env.{env}` in `env` folder.
9
+ 3. Moved `templates/appPackage` to `appPackage` and updated placeholders in it per latest tooling's requirement, and rename `manifest.template.json` to `manifest.json`.
10
+ 4. Moved `templates/appPackage/aad.template.json` to `aad.manifest.json` and updated placeholders in it per latest tooling's requirement.
11
+ 5. Updated `.vscode/tasks.json` and `.vscode/launch.json`.
12
+ 6. Updated `.gitignore` to ignore new environment files.
13
+ 7. Removed `.fx` folder.
14
+
15
+ For more detailed changes, please refer to this [wiki](https://aka.ms/teams-toolkit-5.0-upgrade#file-changes).
16
+
17
+ ## Important changes to your development flow
18
+
19
+ 1. All the environment files will be gitignored by default, you need to sync their content manually. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#environment-management)
20
+ 2. You need to take some manual steps when creating new environments for your old project. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#environment-management)
21
+ 3. You need to manually update `.vscode/launch.json` when launch your app for a certain environment. [Learn More](https://aka.ms/teams-toolkit-5.0-upgrade#launch-your-app)
22
+ 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)
23
+
24
+ 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.
25
+
26
+ ## Known issues
27
+
28
+ 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.template.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)
29
+
30
+ ## Restore your project configuration
31
+
32
+ If you want to restore your project configuration after the upgrade is successful and continue to use old version Teams Toolkit, you can follow these steps:
33
+ 1. Copy everything in `.backup` folder to your project root folder
34
+ 2. Delete the new files mentioned in [Changes to your project](#changes-to-your-project) section
35
+
36
+ You can learn more details in this [wiki](https://aka.ms/teams-toolkit-5.0-upgrade#restore-your-project-configuration).
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -63,7 +63,7 @@ To make this work in your application:
63
63
 
64
64
  1. Move `profileSsoCommandHandler` file under `auth/bot/sso` folder to `bot/src`. ProfileSsoCommandHandler class is a sso command handler to get user info with SSO token. You can follow this method and create your own sso command handler.
65
65
 
66
- 1. Open `package.json` file, make sure that teamfx SDK version >= 1.2.0
66
+ 1. Open `package.json` file, make sure that teamsfx SDK version >= 2.2.0
67
67
  1. Execute the following commands under `bot` folder: `npm install isomorphic-fetch --save`
68
68
  1. (For ts only) Execute the following commands under `bot` folder: `npm install copyfiles --save-dev` and replace following line in package.json:
69
69
 
@@ -318,7 +318,7 @@ After successfully add SSO in your project, you can also add a new sso command.
318
318
  <h2 id='3'>Update your business logic for Message Extension</h2>
319
319
 
320
320
  The sample business logic provides a handler `TeamsBot` extends TeamsActivityHandler and override `handleTeamsMessagingExtensionQuery`.
321
- You can update the query logic in the `handleMessageExtensionQueryWithToken` with token which is obtained by using the logged-in Teams user token.
321
+ You can update the query logic in the `handleMessageExtensionQueryWithSSO` with token which is obtained by using the logged-in Teams user token.
322
322
 
323
323
  To make this work in your application:
324
324
  1. Move the `auth/bot/public` folder to `bot`. This folder contains HTML pages that the bot application hosts. When single sign-on flows are initiated with AAD, AAD will redirect the user to these pages.
@@ -329,7 +329,7 @@ To make this work in your application:
329
329
 
330
330
  // Listen for incoming requests.
331
331
  server.post("/api/messages", async (req, res) => {
332
- await adapter.processActivity(req, res, async (context) => {
332
+ await adapter.process(req, res, async (context) => {
333
333
  await bot.run(context);
334
334
  }).catch((err) => {
335
335
  // Error message including "412" means it is waiting for user's consent, which is a normal process of SSO, sholdn't throw this error.
@@ -346,8 +346,8 @@ To make this work in your application:
346
346
  })
347
347
  );
348
348
  ```
349
- 1. Override `handleTeamsMessagingExtensionQuery` interface under `bot/teamsBot`. You can follow the sample code in the `handleMessageExtensionQueryWithToken` to do your own query logic.
350
- 1. Open `bot/package.json`, ensure that `@microsoft/teamsfx` version >= 1.2.0
349
+ 1. Override `handleTeamsMessagingExtensionQuery` interface under `bot/teamsBot`. You can follow the sample code in the `handleMessageExtensionQueryWithSSO` to do your own query logic.
350
+ 1. Open `bot/package.json`, ensure that `@microsoft/teamsfx` version >= 2.2.0
351
351
  1. Install `isomorphic-fetch` npm packages in your bot project.
352
352
  1. (For ts only) Install `copyfiles` npm packages in your bot project, add or update the `build` script in `bot/package.json` as following
353
353
 
@@ -356,7 +356,7 @@ To make this work in your application:
356
356
  ```
357
357
  By doing this, the HTML pages used for auth redirect will be copied when building this bot project.
358
358
 
359
- 1. Update `templates/appPackage/aad.template.json` your scopes which used in `handleMessageExtensionQueryWithToken`.
359
+ 1. Update `templates/appPackage/aad.template.json` your scopes which used in `handleMessageExtensionQueryWithSSO`.
360
360
  ```json
361
361
  "requiredResourceAccess": [
362
362
  {
@@ -20,7 +20,7 @@ Actions required - update your code to add SSO authentication
20
20
  Note: This part is for `command and response bot`.
21
21
 
22
22
  1. Please upgrade your SDK and make sure your SDK version:
23
- TeamsFx: >= 1.1.0
23
+ TeamsFx: >= 2.2.0
24
24
  Microsoft.Bot.Builder >= 4.17.1
25
25
 
26
26
  2. Create "Pages" folder and move files in `Auth/bot/Pages` folder to `Pages`
@@ -62,12 +62,45 @@ Note: This part is for `command and response bot`.
62
62
  botAuthOption.InitiateLoginEndpoint = authOptionsValue.Bot.InitiateLoginEndpoint;
63
63
  }).ValidateDataAnnotations();
64
64
  '''
65
- 4.2 Find and delete the following code:
65
+ 4.2 Find the following lines:
66
+ '''
67
+ builder.Services.AddSingleton<HelloWorldCommandHandler>();
68
+ builder.Services.AddSingleton(sp =>
69
+ {
70
+ var options = new ConversationOptions()
71
+ {
72
+ Adapter = sp.GetService<CloudAdapter>(),
73
+ Command = new CommandOptions()
74
+ {
75
+ Commands = new List<ITeamsCommandHandler> { sp.GetService<HelloWorldCommandHandler>() }
76
+ }
77
+ };
78
+
79
+ return new ConversationBot(options);
80
+ });
81
+ '''
82
+ and replace with:
83
+ '''
84
+ builder.Services.AddSingleton(sp =>
85
+ {
86
+ var options = new ConversationOptions()
87
+ {
88
+ Adapter = sp.GetService<CloudAdapter>(),
89
+ Command = new CommandOptions()
90
+ {
91
+ Commands = new List<ITeamsCommandHandler> { }
92
+ }
93
+ };
94
+
95
+ return new ConversationBot(options);
96
+ });
97
+ '''
98
+ 4.3 Find and delete the following code:
66
99
  '''
67
100
  // Create the bot as a transient. In this case the ASP Controller is expecting an IBot.
68
101
  builder.Services.AddTransient<IBot, TeamsBot>();
69
102
  '''
70
- 4.3 Find the following code:
103
+ 4.4 Find the following code:
71
104
  '''
72
105
  app.UseEndpoints(endpoints =>
73
106
  {
@@ -4,7 +4,7 @@ Azure API Management (APIM) is used to create consistent and modern API gateways
4
4
 
5
5
  ## Prerequisite
6
6
 
7
- - [Node.js](https://nodejs.org/en/)
7
+ - [Node.js](https://nodejs.org/en/), supported versions: 14, 16, 18 (preview)
8
8
  - An Microsoft 365 account. If you do not have an Microsoft 365 account, apply for one from [Microsoft 365 developer program](https://developer.microsoft.com/en-us/microsoft-365/dev-program)
9
9
  - An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/en-us/free/)
10
10
  - Ensure the resource provider 'Microsoft.ApiManagement' is registered for the subscription by following [document](https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/error-register-resource-provider#solution-3---azure-portal)
@@ -70,7 +70,7 @@ resource webApp 'Microsoft.Web/sites@2021-02-01' = {
70
70
  }
71
71
  {
72
72
  name: 'WEBSITE_NODE_DEFAULT_VERSION'
73
- value: '~16' // Set NodeJS version to 16.x for your site
73
+ value: '~18' // Set NodeJS version to 18.x for your site
74
74
  }
75
75
  {
76
76
  name: 'RUNNING_ON_AZURE'
@@ -33,7 +33,7 @@ resource webApp 'Microsoft.Web/sites@2021-02-01' = {
33
33
  {{#if (contains "node" configs)}}
34
34
  {
35
35
  name: 'WEBSITE_NODE_DEFAULT_VERSION'
36
- value: '~16' // Set NodeJS version to 16.x for your site
36
+ value: '~18' // Set NodeJS version to 18.x for your site
37
37
  }
38
38
  {
39
39
  name: 'SCM_SCRIPT_GENERATOR_ARGS'
@@ -15,7 +15,7 @@ The SharePoint Framework (SPFx) is a page and web part model that provides full
15
15
 
16
16
  ## Prerequisites
17
17
 
18
- > - Node.js v16
18
+ > - [Node.js](https://nodejs.org/en/), supported versions: 16
19
19
  > - An Microsoft 365 account. Get your own free Microsoft 365 tenant from [Microsoft 365 developer program](https://developer.microsoft.com/en-us/microsoft-365/dev-program)
20
20
 
21
21
  ## Solution
@@ -1 +0,0 @@
1
- {"version":3,"file":"azureDeployDriver.d.ts","sourceRoot":"","sources":["../../../../../src/component/driver/deploy/azure/azureDeployDriver.ts"],"names":[],"mappings":";AAGA,OAAO,EACL,cAAc,EACd,iBAAiB,EAEjB,UAAU,EAEV,YAAY,EACb,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AASpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAMlD,8BAAsB,iBAAkB,SAAQ,gBAAgB;IAC9D,SAAS,CAAC,gBAAgB,EAAE,UAAU,CAAC,uBAAuB,GAAG,SAAS,CAAC;IAE3E,gBAAuB,cAAc,gCAAkB;IAEvD;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAwB7C;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,CAClB,IAAI,EAAE,cAAc,EACpB,aAAa,EAAE,iBAAiB,EAChC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,IAAI,CAAC;IAEhB;;;;OAIG;IACH,SAAS,CAAC,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,iBAAiB;IAIhE;;;;;;;OAOG;IACU,SAAS,CACpB,IAAI,EAAE,cAAc,EACpB,aAAa,EAAE,iBAAiB,EAChC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,MAAM,CAAC;IA6ClB;;;;;;;OAOG;cACa,gBAAgB,CAC9B,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,iBAAiB,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,MAAM,CAAC;IA8DlB;;;;;;;OAOG;cACa,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,iBAAiB,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;IAuCpC;;;;OAIG;IACH,SAAS,CAAC,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAIxD;;;;;OAKG;cACa,uBAAuB,CACrC,aAAa,EAAE,iBAAiB,EAChC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,iBAAiB,CAAC;cAiCb,kBAAkB,CAAC,aAAa,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;CAWpF"}