@microsoft/teamsfx-core 1.10.0 → 1.10.1-alpha.009656ebb.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 (693) hide show
  1. package/build/common/azure-hosting/azureFunctionHosting.d.ts +3 -5
  2. package/build/common/azure-hosting/azureFunctionHosting.d.ts.map +1 -1
  3. package/build/common/azure-hosting/azureFunctionHosting.js +6 -8
  4. package/build/common/azure-hosting/azureFunctionHosting.js.map +1 -1
  5. package/build/common/azure-hosting/azureHosting.d.ts +4 -5
  6. package/build/common/azure-hosting/azureHosting.d.ts.map +1 -1
  7. package/build/common/azure-hosting/azureHosting.js +12 -15
  8. package/build/common/azure-hosting/azureHosting.js.map +1 -1
  9. package/build/common/azure-hosting/hostingConstant.d.ts.map +1 -1
  10. package/build/common/azure-hosting/hostingConstant.js +1 -1
  11. package/build/common/azure-hosting/hostingConstant.js.map +1 -1
  12. package/build/common/azure-hosting/interfaces.d.ts +14 -1
  13. package/build/common/azure-hosting/interfaces.d.ts.map +1 -1
  14. package/build/common/azure-hosting/interfaces.js +1 -1
  15. package/build/common/azure-hosting/interfaces.js.map +1 -1
  16. package/build/common/azure-hosting/utils.d.ts +3 -1
  17. package/build/common/azure-hosting/utils.d.ts.map +1 -1
  18. package/build/common/azure-hosting/utils.js +18 -1
  19. package/build/common/azure-hosting/utils.js.map +1 -1
  20. package/build/common/deps-checker/depsError.d.ts +1 -1
  21. package/build/common/deps-checker/depsError.d.ts.map +1 -1
  22. package/build/common/deps-checker/depsError.js +2 -2
  23. package/build/common/deps-checker/depsError.js.map +1 -1
  24. package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
  25. package/build/common/deps-checker/internal/dotnetChecker.js +1 -1
  26. package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
  27. package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
  28. package/build/common/deps-checker/internal/funcToolChecker.js +1 -1
  29. package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
  30. package/build/common/local/index.d.ts +1 -0
  31. package/build/common/local/index.d.ts.map +1 -1
  32. package/build/common/local/index.js +1 -0
  33. package/build/common/local/index.js.map +1 -1
  34. package/build/common/local/localTelemetryReporter.d.ts +68 -0
  35. package/build/common/local/localTelemetryReporter.d.ts.map +1 -0
  36. package/build/common/local/localTelemetryReporter.js +113 -0
  37. package/build/common/local/localTelemetryReporter.js.map +1 -0
  38. package/build/common/projectSettingsHelper.d.ts +1 -2
  39. package/build/common/projectSettingsHelper.d.ts.map +1 -1
  40. package/build/common/projectSettingsHelper.js +1 -19
  41. package/build/common/projectSettingsHelper.js.map +1 -1
  42. package/build/common/projectSettingsHelperV3.d.ts +10 -0
  43. package/build/common/projectSettingsHelperV3.d.ts.map +1 -0
  44. package/build/common/projectSettingsHelperV3.js +64 -0
  45. package/build/common/projectSettingsHelperV3.js.map +1 -0
  46. package/build/common/templates-config.json +2 -2
  47. package/build/common/tools.d.ts +3 -2
  48. package/build/common/tools.d.ts.map +1 -1
  49. package/build/common/tools.js +23 -6
  50. package/build/common/tools.js.map +1 -1
  51. package/build/common/utils.d.ts +2 -0
  52. package/build/common/utils.d.ts.map +1 -0
  53. package/build/common/utils.js +22 -0
  54. package/build/common/utils.js.map +1 -0
  55. package/build/component/bicep.d.ts.map +1 -1
  56. package/build/component/bicep.js +0 -8
  57. package/build/component/bicep.js.map +1 -1
  58. package/build/component/code/apiCode.d.ts +1 -0
  59. package/build/component/code/apiCode.d.ts.map +1 -0
  60. package/build/component/code/apiCode.js +2 -0
  61. package/build/component/code/apiCode.js.map +1 -0
  62. package/build/component/{botCode.d.ts → code/botCode.d.ts} +2 -3
  63. package/build/component/code/botCode.d.ts.map +1 -0
  64. package/build/component/code/botCode.js +154 -0
  65. package/build/component/code/botCode.js.map +1 -0
  66. package/build/component/code/tabCode.d.ts +11 -0
  67. package/build/component/code/tabCode.d.ts.map +1 -0
  68. package/build/component/code/tabCode.js +123 -0
  69. package/build/component/code/tabCode.js.map +1 -0
  70. package/build/component/connection/aadConfig.d.ts +1 -0
  71. package/build/component/connection/aadConfig.d.ts.map +1 -0
  72. package/build/component/connection/aadConfig.js +2 -0
  73. package/build/component/connection/aadConfig.js.map +1 -0
  74. package/build/component/connection/azureFunctionConfig.d.ts +9 -0
  75. package/build/component/connection/azureFunctionConfig.d.ts.map +1 -0
  76. package/build/component/connection/azureFunctionConfig.js +88 -0
  77. package/build/component/connection/azureFunctionConfig.js.map +1 -0
  78. package/build/component/{connection.d.ts → connection/azureWebAppConfig.d.ts} +1 -1
  79. package/build/component/connection/azureWebAppConfig.d.ts.map +1 -0
  80. package/build/component/{connection.js → connection/azureWebAppConfig.js} +5 -5
  81. package/build/component/connection/azureWebAppConfig.js.map +1 -0
  82. package/build/component/constants.d.ts +65 -0
  83. package/build/component/constants.d.ts.map +1 -0
  84. package/build/component/constants.js +70 -0
  85. package/build/component/constants.js.map +1 -0
  86. package/build/component/core.d.ts +21 -34
  87. package/build/component/core.d.ts.map +1 -1
  88. package/build/component/core.js +195 -603
  89. package/build/component/core.js.map +1 -1
  90. package/build/component/debug.d.ts +10 -0
  91. package/build/component/debug.d.ts.map +1 -0
  92. package/build/component/debug.js +327 -0
  93. package/build/component/debug.js.map +1 -0
  94. package/build/component/envManager.d.ts +2 -0
  95. package/build/component/envManager.d.ts.map +1 -1
  96. package/build/component/envManager.js +63 -84
  97. package/build/component/envManager.js.map +1 -1
  98. package/build/component/feature/bot.d.ts +35 -0
  99. package/build/component/feature/bot.d.ts.map +1 -0
  100. package/build/component/feature/bot.js +191 -0
  101. package/build/component/feature/bot.js.map +1 -0
  102. package/build/component/feature/sql.d.ts +15 -0
  103. package/build/component/feature/sql.d.ts.map +1 -0
  104. package/build/component/feature/sql.js +135 -0
  105. package/build/component/feature/sql.js.map +1 -0
  106. package/build/component/feature/tab.d.ts +7 -0
  107. package/build/component/feature/tab.d.ts.map +1 -0
  108. package/build/component/feature/tab.js +76 -0
  109. package/build/component/feature/tab.js.map +1 -0
  110. package/build/component/fx/preDeployAction.d.ts +7 -0
  111. package/build/component/fx/preDeployAction.d.ts.map +1 -0
  112. package/build/component/fx/preDeployAction.js +32 -0
  113. package/build/component/fx/preDeployAction.js.map +1 -0
  114. package/build/component/fx/preProvisionAction.d.ts +7 -0
  115. package/build/component/fx/preProvisionAction.d.ts.map +1 -0
  116. package/build/component/fx/preProvisionAction.js +63 -0
  117. package/build/component/fx/preProvisionAction.js.map +1 -0
  118. package/build/component/middleware/logger.d.ts +20 -0
  119. package/build/component/middleware/logger.d.ts.map +1 -0
  120. package/build/component/middleware/logger.js +50 -0
  121. package/build/component/middleware/logger.js.map +1 -0
  122. package/build/component/middleware/progressbar.d.ts +3 -0
  123. package/build/component/middleware/progressbar.d.ts.map +1 -0
  124. package/build/component/middleware/progressbar.js +22 -0
  125. package/build/component/middleware/progressbar.js.map +1 -0
  126. package/build/component/middleware/runWithCatchError.d.ts +6 -0
  127. package/build/component/middleware/runWithCatchError.d.ts.map +1 -0
  128. package/build/component/middleware/runWithCatchError.js +43 -0
  129. package/build/component/middleware/runWithCatchError.js.map +1 -0
  130. package/build/component/middleware/telemetry.d.ts +36 -0
  131. package/build/component/middleware/telemetry.d.ts.map +1 -0
  132. package/build/component/middleware/telemetry.js +67 -0
  133. package/build/component/middleware/telemetry.js.map +1 -0
  134. package/build/component/middleware/types.d.ts +24 -0
  135. package/build/component/middleware/types.d.ts.map +1 -0
  136. package/build/component/middleware/types.js +5 -0
  137. package/build/component/middleware/types.js.map +1 -0
  138. package/build/component/resource/{teamsManifest.d.ts → appManifest/appManifest.d.ts} +4 -3
  139. package/build/component/resource/appManifest/appManifest.d.ts.map +1 -0
  140. package/build/component/resource/appManifest/appManifest.js +272 -0
  141. package/build/component/resource/appManifest/appManifest.js.map +1 -0
  142. package/build/component/resource/appManifest/appStudio.d.ts +18 -0
  143. package/build/component/resource/appManifest/appStudio.d.ts.map +1 -0
  144. package/build/component/resource/appManifest/appStudio.js +208 -0
  145. package/build/component/resource/appManifest/appStudio.js.map +1 -0
  146. package/build/component/resource/appManifest/constants.d.ts +16 -0
  147. package/build/component/resource/appManifest/constants.d.ts.map +1 -0
  148. package/build/component/resource/appManifest/constants.js +186 -0
  149. package/build/component/resource/appManifest/constants.js.map +1 -0
  150. package/build/component/resource/appManifest/utils.d.ts +5 -0
  151. package/build/component/resource/appManifest/utils.d.ts.map +1 -0
  152. package/build/component/resource/appManifest/utils.js +23 -0
  153. package/build/component/resource/appManifest/utils.js.map +1 -0
  154. package/build/component/resource/azureFunction.d.ts +4 -3
  155. package/build/component/resource/azureFunction.d.ts.map +1 -1
  156. package/build/component/resource/azureFunction.js +6 -28
  157. package/build/component/resource/azureFunction.js.map +1 -1
  158. package/build/component/resource/azureResource.d.ts +11 -0
  159. package/build/component/resource/azureResource.d.ts.map +1 -0
  160. package/build/component/resource/azureResource.js +55 -0
  161. package/build/component/resource/azureResource.js.map +1 -0
  162. package/build/component/resource/azureSql/actions/configure.d.ts +16 -0
  163. package/build/component/resource/azureSql/actions/configure.d.ts.map +1 -0
  164. package/build/component/resource/azureSql/actions/configure.js +161 -0
  165. package/build/component/resource/azureSql/actions/configure.js.map +1 -0
  166. package/build/component/resource/azureSql/actions/generateBicep.d.ts +3 -0
  167. package/build/component/resource/azureSql/actions/generateBicep.d.ts.map +1 -0
  168. package/build/component/resource/azureSql/actions/generateBicep.js +61 -0
  169. package/build/component/resource/azureSql/actions/generateBicep.js.map +1 -0
  170. package/build/component/resource/azureSql/actions/provision.d.ts +3 -0
  171. package/build/component/resource/azureSql/actions/provision.d.ts.map +1 -0
  172. package/build/component/resource/azureSql/actions/provision.js +27 -0
  173. package/build/component/resource/azureSql/actions/provision.js.map +1 -0
  174. package/build/component/resource/{azureSql.d.ts → azureSql/azureSql.d.ts} +4 -4
  175. package/build/component/resource/azureSql/azureSql.d.ts.map +1 -0
  176. package/build/component/resource/azureSql/azureSql.js +34 -0
  177. package/build/component/resource/azureSql/azureSql.js.map +1 -0
  178. package/build/component/resource/azureSql/clients/management.d.ts +18 -0
  179. package/build/component/resource/azureSql/clients/management.d.ts.map +1 -0
  180. package/build/component/resource/azureSql/clients/management.js +111 -0
  181. package/build/component/resource/azureSql/clients/management.js.map +1 -0
  182. package/build/component/resource/azureSql/clients/sql.d.ts +13 -0
  183. package/build/component/resource/azureSql/clients/sql.d.ts.map +1 -0
  184. package/build/component/resource/azureSql/clients/sql.js +153 -0
  185. package/build/component/resource/azureSql/clients/sql.js.map +1 -0
  186. package/build/component/resource/azureSql/config.d.ts +5 -0
  187. package/build/component/resource/azureSql/config.d.ts.map +1 -0
  188. package/build/component/resource/azureSql/config.js +69 -0
  189. package/build/component/resource/azureSql/config.js.map +1 -0
  190. package/build/component/resource/azureSql/constants.d.ts +91 -0
  191. package/build/component/resource/azureSql/constants.d.ts.map +1 -0
  192. package/build/component/resource/azureSql/constants.js +101 -0
  193. package/build/component/resource/azureSql/constants.js.map +1 -0
  194. package/build/component/resource/azureSql/errors.d.ts +63 -0
  195. package/build/component/resource/azureSql/errors.d.ts.map +1 -0
  196. package/build/component/resource/azureSql/errors.js +107 -0
  197. package/build/component/resource/azureSql/errors.js.map +1 -0
  198. package/build/component/resource/azureSql/index.d.ts +2 -0
  199. package/build/component/resource/azureSql/index.d.ts.map +1 -0
  200. package/build/component/resource/azureSql/index.js +7 -0
  201. package/build/component/resource/azureSql/index.js.map +1 -0
  202. package/build/component/resource/azureSql/questions.d.ts +5 -0
  203. package/build/component/resource/azureSql/questions.d.ts.map +1 -0
  204. package/build/component/resource/azureSql/questions.js +48 -0
  205. package/build/component/resource/azureSql/questions.js.map +1 -0
  206. package/build/component/resource/azureSql/results.d.ts +10 -0
  207. package/build/component/resource/azureSql/results.d.ts.map +1 -0
  208. package/build/component/resource/azureSql/results.js +34 -0
  209. package/build/component/resource/azureSql/results.js.map +1 -0
  210. package/build/component/resource/azureSql/types.d.ts +12 -0
  211. package/build/component/resource/azureSql/types.d.ts.map +1 -0
  212. package/build/component/resource/azureSql/types.js +5 -0
  213. package/build/component/resource/azureSql/types.js.map +1 -0
  214. package/build/component/resource/azureSql/utils/checkInput.d.ts +10 -0
  215. package/build/component/resource/azureSql/utils/checkInput.d.ts.map +1 -0
  216. package/build/component/resource/azureSql/utils/checkInput.js +89 -0
  217. package/build/component/resource/azureSql/utils/checkInput.js.map +1 -0
  218. package/build/component/resource/azureSql/utils/common.d.ts +12 -0
  219. package/build/component/resource/azureSql/utils/common.d.ts.map +1 -0
  220. package/build/component/resource/azureSql/utils/common.js +51 -0
  221. package/build/component/resource/azureSql/utils/common.js.map +1 -0
  222. package/build/component/resource/azureSql/utils/message.d.ts +16 -0
  223. package/build/component/resource/azureSql/utils/message.d.ts.map +1 -0
  224. package/build/component/resource/azureSql/utils/message.js +23 -0
  225. package/build/component/resource/azureSql/utils/message.js.map +1 -0
  226. package/build/component/resource/azureStorage.d.ts +8 -0
  227. package/build/component/resource/azureStorage.d.ts.map +1 -1
  228. package/build/component/resource/azureStorage.js +44 -3
  229. package/build/component/resource/azureStorage.js.map +1 -1
  230. package/build/component/resource/azureWebApp.d.ts +8 -3
  231. package/build/component/resource/azureWebApp.d.ts.map +1 -1
  232. package/build/component/resource/azureWebApp.js +74 -37
  233. package/build/component/resource/azureWebApp.js.map +1 -1
  234. package/build/component/resource/botService.d.ts +2 -1
  235. package/build/component/resource/botService.d.ts.map +1 -1
  236. package/build/component/resource/botService.js +81 -24
  237. package/build/component/resource/botService.js.map +1 -1
  238. package/build/component/utils.d.ts +3 -2
  239. package/build/component/utils.d.ts.map +1 -1
  240. package/build/component/utils.js +12 -4
  241. package/build/component/utils.js.map +1 -1
  242. package/build/component/workflow.d.ts.map +1 -1
  243. package/build/component/workflow.js +6 -3
  244. package/build/component/workflow.js.map +1 -1
  245. package/build/core/FxCore.d.ts.map +1 -1
  246. package/build/core/FxCore.js +36 -49
  247. package/build/core/FxCore.js.map +1 -1
  248. package/build/core/collaborator.d.ts.map +1 -1
  249. package/build/core/collaborator.js +14 -8
  250. package/build/core/collaborator.js.map +1 -1
  251. package/build/core/downloadSample.js +1 -1
  252. package/build/core/downloadSample.js.map +1 -1
  253. package/build/core/generateAadManifestTemplate.d.ts +0 -7
  254. package/build/core/generateAadManifestTemplate.d.ts.map +1 -1
  255. package/build/core/generateAadManifestTemplate.js +1 -19
  256. package/build/core/generateAadManifestTemplate.js.map +1 -1
  257. package/build/core/globalVars.d.ts +5 -0
  258. package/build/core/globalVars.d.ts.map +1 -1
  259. package/build/core/globalVars.js +9 -1
  260. package/build/core/globalVars.js.map +1 -1
  261. package/build/core/middleware/MigrationUtils.d.ts +2 -1
  262. package/build/core/middleware/MigrationUtils.d.ts.map +1 -1
  263. package/build/core/middleware/MigrationUtils.js +33 -14
  264. package/build/core/middleware/MigrationUtils.js.map +1 -1
  265. package/build/core/middleware/aadManifestMigration.d.ts.map +1 -1
  266. package/build/core/middleware/aadManifestMigration.js +2 -7
  267. package/build/core/middleware/aadManifestMigration.js.map +1 -1
  268. package/build/core/middleware/consolidateLocalRemote.d.ts.map +1 -1
  269. package/build/core/middleware/consolidateLocalRemote.js +2 -7
  270. package/build/core/middleware/consolidateLocalRemote.js.map +1 -1
  271. package/build/core/middleware/envInfoLoader.d.ts +2 -1
  272. package/build/core/middleware/envInfoLoader.d.ts.map +1 -1
  273. package/build/core/middleware/envInfoLoader.js +2 -1
  274. package/build/core/middleware/envInfoLoader.js.map +1 -1
  275. package/build/core/middleware/projectSettingsLoader.js +1 -0
  276. package/build/core/middleware/projectSettingsLoader.js.map +1 -1
  277. package/build/core/middleware/questionModel.d.ts.map +1 -1
  278. package/build/core/middleware/questionModel.js +6 -4
  279. package/build/core/middleware/questionModel.js.map +1 -1
  280. package/build/core/middleware/questionModelV3.d.ts.map +1 -1
  281. package/build/core/middleware/questionModelV3.js +51 -0
  282. package/build/core/middleware/questionModelV3.js.map +1 -1
  283. package/build/core/question.d.ts.map +1 -1
  284. package/build/core/question.js +7 -2
  285. package/build/core/question.js.map +1 -1
  286. package/build/plugins/resource/aad/aadAppClient.d.ts +3 -3
  287. package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
  288. package/build/plugins/resource/aad/aadAppClient.js +4 -4
  289. package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
  290. package/build/plugins/resource/aad/constants.d.ts +1 -1
  291. package/build/plugins/resource/aad/constants.d.ts.map +1 -1
  292. package/build/plugins/resource/aad/constants.js +1 -1
  293. package/build/plugins/resource/aad/constants.js.map +1 -1
  294. package/build/plugins/resource/aad/index.js.map +1 -1
  295. package/build/plugins/resource/aad/plugin.d.ts +3 -3
  296. package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
  297. package/build/plugins/resource/aad/plugin.js +27 -20
  298. package/build/plugins/resource/aad/plugin.js.map +1 -1
  299. package/build/plugins/resource/aad/utils/configs.d.ts +2 -2
  300. package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
  301. package/build/plugins/resource/aad/utils/configs.js +3 -2
  302. package/build/plugins/resource/aad/utils/configs.js.map +1 -1
  303. package/build/plugins/resource/aad/utils/tokenProvider.d.ts +2 -3
  304. package/build/plugins/resource/aad/utils/tokenProvider.d.ts.map +1 -1
  305. package/build/plugins/resource/aad/utils/tokenProvider.js +9 -4
  306. package/build/plugins/resource/aad/utils/tokenProvider.js.map +1 -1
  307. package/build/plugins/resource/aad/v3/index.d.ts +3 -3
  308. package/build/plugins/resource/aad/v3/index.d.ts.map +1 -1
  309. package/build/plugins/resource/aad/v3/index.js +6 -8
  310. package/build/plugins/resource/aad/v3/index.js.map +1 -1
  311. package/build/plugins/resource/apim/factory.d.ts +4 -4
  312. package/build/plugins/resource/apim/factory.d.ts.map +1 -1
  313. package/build/plugins/resource/apim/factory.js +10 -7
  314. package/build/plugins/resource/apim/factory.js.map +1 -1
  315. package/build/plugins/resource/apim/index.js +3 -3
  316. package/build/plugins/resource/apim/index.js.map +1 -1
  317. package/build/plugins/resource/apim/v3/index.js +3 -3
  318. package/build/plugins/resource/apim/v3/index.js.map +1 -1
  319. package/build/plugins/resource/appstudio/appStudio.d.ts +9 -11
  320. package/build/plugins/resource/appstudio/appStudio.d.ts.map +1 -1
  321. package/build/plugins/resource/appstudio/appStudio.js +47 -63
  322. package/build/plugins/resource/appstudio/appStudio.js.map +1 -1
  323. package/build/plugins/resource/appstudio/constants.d.ts +4 -5
  324. package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
  325. package/build/plugins/resource/appstudio/constants.js +34 -35
  326. package/build/plugins/resource/appstudio/constants.js.map +1 -1
  327. package/build/plugins/resource/appstudio/errors.d.ts +1 -1
  328. package/build/plugins/resource/appstudio/errors.d.ts.map +1 -1
  329. package/build/plugins/resource/appstudio/errors.js +3 -1
  330. package/build/plugins/resource/appstudio/errors.js.map +1 -1
  331. package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
  332. package/build/plugins/resource/appstudio/index.js +16 -7
  333. package/build/plugins/resource/appstudio/index.js.map +1 -1
  334. package/build/plugins/resource/appstudio/interfaces/activitiesDefinitionItem.d.ts +5 -0
  335. package/build/plugins/resource/appstudio/interfaces/activitiesDefinitionItem.d.ts.map +1 -0
  336. package/build/plugins/resource/appstudio/interfaces/activitiesDefinitionItem.js +5 -0
  337. package/build/plugins/resource/appstudio/interfaces/activitiesDefinitionItem.js.map +1 -0
  338. package/build/plugins/resource/appstudio/interfaces/activityDefinitionItem.d.ts +6 -0
  339. package/build/plugins/resource/appstudio/interfaces/activityDefinitionItem.d.ts.map +1 -0
  340. package/build/plugins/resource/appstudio/interfaces/activityDefinitionItem.js +5 -0
  341. package/build/plugins/resource/appstudio/interfaces/activityDefinitionItem.js.map +1 -0
  342. package/build/plugins/resource/appstudio/interfaces/appAuthorizationItem.d.ts +5 -0
  343. package/build/plugins/resource/appstudio/interfaces/appAuthorizationItem.d.ts.map +1 -0
  344. package/build/plugins/resource/appstudio/interfaces/appAuthorizationItem.js +5 -0
  345. package/build/plugins/resource/appstudio/interfaces/appAuthorizationItem.js.map +1 -0
  346. package/build/plugins/resource/appstudio/interfaces/appCategory.d.ts +38 -0
  347. package/build/plugins/resource/appstudio/interfaces/appCategory.d.ts.map +1 -0
  348. package/build/plugins/resource/appstudio/interfaces/appCategory.js +44 -0
  349. package/build/plugins/resource/appstudio/interfaces/appCategory.js.map +1 -0
  350. package/build/plugins/resource/appstudio/interfaces/appDefinition.d.ts +92 -0
  351. package/build/plugins/resource/appstudio/interfaces/appDefinition.d.ts.map +1 -0
  352. package/build/plugins/resource/appstudio/interfaces/appDefinition.js +5 -0
  353. package/build/plugins/resource/appstudio/interfaces/appDefinition.js.map +1 -0
  354. package/build/plugins/resource/appstudio/interfaces/appEnvironment.d.ts +7 -0
  355. package/build/plugins/resource/appstudio/interfaces/appEnvironment.d.ts.map +1 -0
  356. package/build/plugins/resource/appstudio/interfaces/appEnvironment.js +5 -0
  357. package/build/plugins/resource/appstudio/interfaces/appEnvironment.js.map +1 -0
  358. package/build/plugins/resource/appstudio/interfaces/appEnvironmentProperty.d.ts +5 -0
  359. package/build/plugins/resource/appstudio/interfaces/appEnvironmentProperty.d.ts.map +1 -0
  360. package/build/plugins/resource/appstudio/interfaces/appEnvironmentProperty.js +5 -0
  361. package/build/plugins/resource/appstudio/interfaces/appEnvironmentProperty.js.map +1 -0
  362. package/build/plugins/resource/appstudio/interfaces/appItemHostedCapability.d.ts +4 -0
  363. package/build/plugins/resource/appstudio/interfaces/appItemHostedCapability.d.ts.map +1 -0
  364. package/build/plugins/resource/appstudio/interfaces/appItemHostedCapability.js +10 -0
  365. package/build/plugins/resource/appstudio/interfaces/appItemHostedCapability.js.map +1 -0
  366. package/build/plugins/resource/appstudio/interfaces/appItemIndustry.d.ts +13 -0
  367. package/build/plugins/resource/appstudio/interfaces/appItemIndustry.d.ts.map +1 -0
  368. package/build/plugins/resource/appstudio/interfaces/appItemIndustry.js +19 -0
  369. package/build/plugins/resource/appstudio/interfaces/appItemIndustry.js.map +1 -0
  370. package/build/plugins/resource/appstudio/interfaces/appPermissionNodeItem.d.ts +6 -0
  371. package/build/plugins/resource/appstudio/interfaces/appPermissionNodeItem.d.ts.map +1 -0
  372. package/build/plugins/resource/appstudio/interfaces/appPermissionNodeItem.js +5 -0
  373. package/build/plugins/resource/appstudio/interfaces/appPermissionNodeItem.js.map +1 -0
  374. package/build/plugins/resource/appstudio/interfaces/appPermissionNodeItemType.d.ts +6 -0
  375. package/build/plugins/resource/appstudio/interfaces/appPermissionNodeItemType.d.ts.map +1 -0
  376. package/build/plugins/resource/appstudio/interfaces/appPermissionNodeItemType.js +12 -0
  377. package/build/plugins/resource/appstudio/interfaces/appPermissionNodeItemType.js.map +1 -0
  378. package/build/plugins/resource/appstudio/interfaces/appPermissionsItem.d.ts +6 -0
  379. package/build/plugins/resource/appstudio/interfaces/appPermissionsItem.d.ts.map +1 -0
  380. package/build/plugins/resource/appstudio/interfaces/appPermissionsItem.js +5 -0
  381. package/build/plugins/resource/appstudio/interfaces/appPermissionsItem.js.map +1 -0
  382. package/build/plugins/resource/appstudio/interfaces/appUser.d.ts +8 -0
  383. package/build/plugins/resource/appstudio/interfaces/appUser.d.ts.map +1 -0
  384. package/build/plugins/resource/appstudio/interfaces/appUser.js +5 -0
  385. package/build/plugins/resource/appstudio/interfaces/appUser.js.map +1 -0
  386. package/build/plugins/resource/appstudio/interfaces/appUserSetting.d.ts +5 -0
  387. package/build/plugins/resource/appstudio/interfaces/appUserSetting.d.ts.map +1 -0
  388. package/build/plugins/resource/appstudio/interfaces/appUserSetting.js +5 -0
  389. package/build/plugins/resource/appstudio/interfaces/appUserSetting.js.map +1 -0
  390. package/build/plugins/resource/appstudio/interfaces/bot.d.ts +15 -0
  391. package/build/plugins/resource/appstudio/interfaces/bot.d.ts.map +1 -0
  392. package/build/plugins/resource/appstudio/interfaces/bot.js +5 -0
  393. package/build/plugins/resource/appstudio/interfaces/bot.js.map +1 -0
  394. package/build/plugins/resource/appstudio/interfaces/botCommand.d.ts +5 -0
  395. package/build/plugins/resource/appstudio/interfaces/botCommand.d.ts.map +1 -0
  396. package/build/plugins/resource/appstudio/interfaces/botCommand.js +5 -0
  397. package/build/plugins/resource/appstudio/interfaces/botCommand.js.map +1 -0
  398. package/build/plugins/resource/appstudio/interfaces/configurableTab.d.ts +10 -0
  399. package/build/plugins/resource/appstudio/interfaces/configurableTab.d.ts.map +1 -0
  400. package/build/plugins/resource/appstudio/interfaces/configurableTab.js +5 -0
  401. package/build/plugins/resource/appstudio/interfaces/configurableTab.js.map +1 -0
  402. package/build/plugins/resource/appstudio/interfaces/connector.d.ts +8 -0
  403. package/build/plugins/resource/appstudio/interfaces/connector.d.ts.map +1 -0
  404. package/build/plugins/resource/appstudio/interfaces/connector.js +5 -0
  405. package/build/plugins/resource/appstudio/interfaces/connector.js.map +1 -0
  406. package/build/plugins/resource/appstudio/interfaces/defaultGroupCapability.d.ts +6 -0
  407. package/build/plugins/resource/appstudio/interfaces/defaultGroupCapability.d.ts.map +1 -0
  408. package/build/plugins/resource/appstudio/interfaces/defaultGroupCapability.js +5 -0
  409. package/build/plugins/resource/appstudio/interfaces/defaultGroupCapability.js.map +1 -0
  410. package/build/plugins/resource/appstudio/interfaces/disabledScopeItemType.d.ts +5 -0
  411. package/build/plugins/resource/appstudio/interfaces/disabledScopeItemType.d.ts.map +1 -0
  412. package/build/plugins/resource/appstudio/interfaces/disabledScopeItemType.js +11 -0
  413. package/build/plugins/resource/appstudio/interfaces/disabledScopeItemType.js.map +1 -0
  414. package/build/plugins/resource/appstudio/interfaces/graphConnector.d.ts +4 -0
  415. package/build/plugins/resource/appstudio/interfaces/graphConnector.d.ts.map +1 -0
  416. package/build/plugins/resource/appstudio/interfaces/graphConnector.js +5 -0
  417. package/build/plugins/resource/appstudio/interfaces/graphConnector.js.map +1 -0
  418. package/build/plugins/resource/appstudio/interfaces/language.d.ts +5 -0
  419. package/build/plugins/resource/appstudio/interfaces/language.d.ts.map +1 -0
  420. package/build/plugins/resource/appstudio/interfaces/language.js +5 -0
  421. package/build/plugins/resource/appstudio/interfaces/language.js.map +1 -0
  422. package/build/plugins/resource/appstudio/interfaces/localizationInfo.d.ts +6 -0
  423. package/build/plugins/resource/appstudio/interfaces/localizationInfo.d.ts.map +1 -0
  424. package/build/plugins/resource/appstudio/interfaces/localizationInfo.js +5 -0
  425. package/build/plugins/resource/appstudio/interfaces/localizationInfo.js.map +1 -0
  426. package/build/plugins/resource/appstudio/interfaces/meetingExtensionDefinitionItem.d.ts +5 -0
  427. package/build/plugins/resource/appstudio/interfaces/meetingExtensionDefinitionItem.d.ts.map +1 -0
  428. package/build/plugins/resource/appstudio/interfaces/meetingExtensionDefinitionItem.js +5 -0
  429. package/build/plugins/resource/appstudio/interfaces/meetingExtensionDefinitionItem.js.map +1 -0
  430. package/build/plugins/resource/appstudio/interfaces/messagingExtension.d.ts +10 -0
  431. package/build/plugins/resource/appstudio/interfaces/messagingExtension.d.ts.map +1 -0
  432. package/build/plugins/resource/appstudio/interfaces/messagingExtension.js +5 -0
  433. package/build/plugins/resource/appstudio/interfaces/messagingExtension.js.map +1 -0
  434. package/build/plugins/resource/appstudio/interfaces/messagingExtensionCommand.d.ts +14 -0
  435. package/build/plugins/resource/appstudio/interfaces/messagingExtensionCommand.d.ts.map +1 -0
  436. package/build/plugins/resource/appstudio/interfaces/messagingExtensionCommand.js +5 -0
  437. package/build/plugins/resource/appstudio/interfaces/messagingExtensionCommand.js.map +1 -0
  438. package/build/plugins/resource/appstudio/interfaces/messagingExtensionCommandParameter.d.ts +9 -0
  439. package/build/plugins/resource/appstudio/interfaces/messagingExtensionCommandParameter.d.ts.map +1 -0
  440. package/build/plugins/resource/appstudio/interfaces/messagingExtensionCommandParameter.js +5 -0
  441. package/build/plugins/resource/appstudio/interfaces/messagingExtensionCommandParameter.js.map +1 -0
  442. package/build/plugins/resource/appstudio/interfaces/messagingExtensionCommandTaskInfo.d.ts +7 -0
  443. package/build/plugins/resource/appstudio/interfaces/messagingExtensionCommandTaskInfo.d.ts.map +1 -0
  444. package/build/plugins/resource/appstudio/interfaces/messagingExtensionCommandTaskInfo.js +5 -0
  445. package/build/plugins/resource/appstudio/interfaces/messagingExtensionCommandTaskInfo.js.map +1 -0
  446. package/build/plugins/resource/appstudio/interfaces/messagingExtensionMessageHandler.d.ts +6 -0
  447. package/build/plugins/resource/appstudio/interfaces/messagingExtensionMessageHandler.d.ts.map +1 -0
  448. package/build/plugins/resource/appstudio/interfaces/messagingExtensionMessageHandler.js +5 -0
  449. package/build/plugins/resource/appstudio/interfaces/messagingExtensionMessageHandler.js.map +1 -0
  450. package/build/plugins/resource/appstudio/interfaces/messagingExtensionMessageHandlerLink.d.ts +4 -0
  451. package/build/plugins/resource/appstudio/interfaces/messagingExtensionMessageHandlerLink.d.ts.map +1 -0
  452. package/build/plugins/resource/appstudio/interfaces/messagingExtensionMessageHandlerLink.js +5 -0
  453. package/build/plugins/resource/appstudio/interfaces/messagingExtensionMessageHandlerLink.js.map +1 -0
  454. package/build/plugins/resource/appstudio/interfaces/messagingExtensionParameterChoice.d.ts +5 -0
  455. package/build/plugins/resource/appstudio/interfaces/messagingExtensionParameterChoice.d.ts.map +1 -0
  456. package/build/plugins/resource/appstudio/interfaces/messagingExtensionParameterChoice.js +5 -0
  457. package/build/plugins/resource/appstudio/interfaces/messagingExtensionParameterChoice.js.map +1 -0
  458. package/build/plugins/resource/appstudio/interfaces/staticTab.d.ts +15 -0
  459. package/build/plugins/resource/appstudio/interfaces/staticTab.d.ts.map +1 -0
  460. package/build/plugins/resource/appstudio/interfaces/staticTab.js +12 -0
  461. package/build/plugins/resource/appstudio/interfaces/staticTab.js.map +1 -0
  462. package/build/plugins/resource/appstudio/interfaces/subscriptionOffer.d.ts +4 -0
  463. package/build/plugins/resource/appstudio/interfaces/subscriptionOffer.d.ts.map +1 -0
  464. package/build/plugins/resource/appstudio/interfaces/subscriptionOffer.js +5 -0
  465. package/build/plugins/resource/appstudio/interfaces/subscriptionOffer.js.map +1 -0
  466. package/build/plugins/resource/appstudio/interfaces/togetherModeSceneItem.d.ts +9 -0
  467. package/build/plugins/resource/appstudio/interfaces/togetherModeSceneItem.d.ts.map +1 -0
  468. package/build/plugins/resource/appstudio/interfaces/togetherModeSceneItem.js +5 -0
  469. package/build/plugins/resource/appstudio/interfaces/togetherModeSceneItem.js.map +1 -0
  470. package/build/plugins/resource/appstudio/interfaces/webApplicationInfoItem.d.ts +7 -0
  471. package/build/plugins/resource/appstudio/interfaces/webApplicationInfoItem.d.ts.map +1 -0
  472. package/build/plugins/resource/appstudio/interfaces/webApplicationInfoItem.js +5 -0
  473. package/build/plugins/resource/appstudio/interfaces/webApplicationInfoItem.js.map +1 -0
  474. package/build/plugins/resource/appstudio/plugin.d.ts +3 -3
  475. package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
  476. package/build/plugins/resource/appstudio/plugin.js +177 -54
  477. package/build/plugins/resource/appstudio/plugin.js.map +1 -1
  478. package/build/plugins/resource/appstudio/utils/telemetry.d.ts +3 -3
  479. package/build/plugins/resource/appstudio/utils/telemetry.d.ts.map +1 -1
  480. package/build/plugins/resource/appstudio/utils/telemetry.js +16 -3
  481. package/build/plugins/resource/appstudio/utils/telemetry.js.map +1 -1
  482. package/build/plugins/resource/appstudio/utils/utils.d.ts +7 -4
  483. package/build/plugins/resource/appstudio/utils/utils.d.ts.map +1 -1
  484. package/build/plugins/resource/appstudio/utils/utils.js +90 -9
  485. package/build/plugins/resource/appstudio/utils/utils.js.map +1 -1
  486. package/build/plugins/resource/appstudio/v2/index.d.ts +2 -2
  487. package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
  488. package/build/plugins/resource/appstudio/v2/index.js +1 -1
  489. package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
  490. package/build/plugins/resource/appstudio/v3/index.d.ts +6 -7
  491. package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
  492. package/build/plugins/resource/appstudio/v3/index.js +32 -25
  493. package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
  494. package/build/plugins/resource/bot/configs/scaffoldConfig.d.ts.map +1 -1
  495. package/build/plugins/resource/bot/configs/scaffoldConfig.js +5 -6
  496. package/build/plugins/resource/bot/configs/scaffoldConfig.js.map +1 -1
  497. package/build/plugins/resource/bot/constants.d.ts +1 -0
  498. package/build/plugins/resource/bot/constants.d.ts.map +1 -1
  499. package/build/plugins/resource/bot/constants.js +14 -0
  500. package/build/plugins/resource/bot/constants.js.map +1 -1
  501. package/build/plugins/resource/bot/index.d.ts.map +1 -1
  502. package/build/plugins/resource/bot/index.js +22 -18
  503. package/build/plugins/resource/bot/index.js.map +1 -1
  504. package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
  505. package/build/plugins/resource/bot/plugin.js +18 -7
  506. package/build/plugins/resource/bot/plugin.js.map +1 -1
  507. package/build/plugins/resource/bot/question.d.ts +7 -5
  508. package/build/plugins/resource/bot/question.d.ts.map +1 -1
  509. package/build/plugins/resource/bot/question.js +38 -57
  510. package/build/plugins/resource/bot/question.js.map +1 -1
  511. package/build/plugins/resource/bot/resources/strings.d.ts +1 -0
  512. package/build/plugins/resource/bot/resources/strings.d.ts.map +1 -1
  513. package/build/plugins/resource/bot/resources/strings.js +1 -0
  514. package/build/plugins/resource/bot/resources/strings.js.map +1 -1
  515. package/build/plugins/resource/bot/utils/telemetry-helper.d.ts.map +1 -1
  516. package/build/plugins/resource/bot/utils/telemetry-helper.js +3 -1
  517. package/build/plugins/resource/bot/utils/telemetry-helper.js.map +1 -1
  518. package/build/plugins/resource/bot/v2/common.d.ts.map +1 -1
  519. package/build/plugins/resource/bot/v2/common.js +5 -6
  520. package/build/plugins/resource/bot/v2/common.js.map +1 -1
  521. package/build/plugins/resource/bot/v2/enum.d.ts +4 -1
  522. package/build/plugins/resource/bot/v2/enum.d.ts.map +1 -1
  523. package/build/plugins/resource/bot/v2/enum.js +6 -2
  524. package/build/plugins/resource/bot/v2/enum.js.map +1 -1
  525. package/build/plugins/resource/bot/v2/mapping.d.ts +5 -0
  526. package/build/plugins/resource/bot/v2/mapping.d.ts.map +1 -1
  527. package/build/plugins/resource/bot/v2/mapping.js +25 -9
  528. package/build/plugins/resource/bot/v2/mapping.js.map +1 -1
  529. package/build/plugins/resource/bot/v2/plugin.d.ts +2 -0
  530. package/build/plugins/resource/bot/v2/plugin.d.ts.map +1 -1
  531. package/build/plugins/resource/bot/v2/plugin.js +20 -16
  532. package/build/plugins/resource/bot/v2/plugin.js.map +1 -1
  533. package/build/plugins/resource/bot/v3/index.d.ts.map +1 -1
  534. package/build/plugins/resource/bot/v3/index.js +12 -3
  535. package/build/plugins/resource/bot/v3/index.js.map +1 -1
  536. package/build/plugins/resource/frontend/utils/telemetry-helper.d.ts.map +1 -1
  537. package/build/plugins/resource/frontend/utils/telemetry-helper.js +3 -1
  538. package/build/plugins/resource/frontend/utils/telemetry-helper.js.map +1 -1
  539. package/build/plugins/resource/function/utils/telemetry-helper.d.ts.map +1 -1
  540. package/build/plugins/resource/function/utils/telemetry-helper.js +3 -1
  541. package/build/plugins/resource/function/utils/telemetry-helper.js.map +1 -1
  542. package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
  543. package/build/plugins/resource/spfx/plugin.js +15 -13
  544. package/build/plugins/resource/spfx/plugin.js.map +1 -1
  545. package/build/plugins/resource/spfx/v3/plugin.d.ts.map +1 -1
  546. package/build/plugins/resource/spfx/v3/plugin.js +18 -13
  547. package/build/plugins/resource/spfx/v3/plugin.js.map +1 -1
  548. package/build/plugins/resource/utils4v2.d.ts.map +1 -1
  549. package/build/plugins/resource/utils4v2.js +9 -0
  550. package/build/plugins/resource/utils4v2.js.map +1 -1
  551. package/build/plugins/solution/fx-solution/arm.d.ts +4 -3
  552. package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
  553. package/build/plugins/solution/fx-solution/arm.js +10 -9
  554. package/build/plugins/solution/fx-solution/arm.js.map +1 -1
  555. package/build/plugins/solution/fx-solution/constants.d.ts +3 -1
  556. package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
  557. package/build/plugins/solution/fx-solution/constants.js +2 -0
  558. package/build/plugins/solution/fx-solution/constants.js.map +1 -1
  559. package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
  560. package/build/plugins/solution/fx-solution/solution.js +81 -33
  561. package/build/plugins/solution/fx-solution/solution.js.map +1 -1
  562. package/build/plugins/solution/fx-solution/v2/adaptor.d.ts +2 -1
  563. package/build/plugins/solution/fx-solution/v2/adaptor.d.ts.map +1 -1
  564. package/build/plugins/solution/fx-solution/v2/adaptor.js +3 -0
  565. package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
  566. package/build/plugins/solution/fx-solution/v2/checkPermission.js +6 -6
  567. package/build/plugins/solution/fx-solution/v2/checkPermission.js.map +1 -1
  568. package/build/plugins/solution/fx-solution/v2/collaborationUtil.d.ts +5 -5
  569. package/build/plugins/solution/fx-solution/v2/collaborationUtil.d.ts.map +1 -1
  570. package/build/plugins/solution/fx-solution/v2/collaborationUtil.js +7 -5
  571. package/build/plugins/solution/fx-solution/v2/collaborationUtil.js.map +1 -1
  572. package/build/plugins/solution/fx-solution/v2/deploy.d.ts.map +1 -1
  573. package/build/plugins/solution/fx-solution/v2/deploy.js +9 -3
  574. package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
  575. package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
  576. package/build/plugins/solution/fx-solution/v2/executeUserTask.js +7 -1
  577. package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
  578. package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
  579. package/build/plugins/solution/fx-solution/v2/getQuestions.js +5 -2
  580. package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
  581. package/build/plugins/solution/fx-solution/v2/grantPermission.js +7 -7
  582. package/build/plugins/solution/fx-solution/v2/grantPermission.js.map +1 -1
  583. package/build/plugins/solution/fx-solution/v2/listCollaborator.d.ts +3 -3
  584. package/build/plugins/solution/fx-solution/v2/listCollaborator.d.ts.map +1 -1
  585. package/build/plugins/solution/fx-solution/v2/listCollaborator.js +6 -6
  586. package/build/plugins/solution/fx-solution/v2/listCollaborator.js.map +1 -1
  587. package/build/plugins/solution/fx-solution/v2/provision.js +7 -2
  588. package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
  589. package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts.map +1 -1
  590. package/build/plugins/solution/fx-solution/v2/provisionLocal.js +12 -3
  591. package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -1
  592. package/build/plugins/solution/fx-solution/v2/publish.d.ts +2 -2
  593. package/build/plugins/solution/fx-solution/v2/publish.d.ts.map +1 -1
  594. package/build/plugins/solution/fx-solution/v2/publish.js.map +1 -1
  595. package/build/plugins/solution/fx-solution/v2/solution.d.ts +2 -2
  596. package/build/plugins/solution/fx-solution/v2/solution.d.ts.map +1 -1
  597. package/build/plugins/solution/fx-solution/v2/utils.d.ts +2 -2
  598. package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
  599. package/build/plugins/solution/fx-solution/v2/utils.js +18 -4
  600. package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
  601. package/build/plugins/solution/fx-solution/v3/provision.d.ts +2 -2
  602. package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
  603. package/build/plugins/solution/fx-solution/v3/provision.js +11 -7
  604. package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
  605. package/build/plugins/solution/fx-solution/v3/publish.d.ts +3 -3
  606. package/build/plugins/solution/fx-solution/v3/publish.d.ts.map +1 -1
  607. package/build/plugins/solution/fx-solution/v3/publish.js +1 -4
  608. package/build/plugins/solution/fx-solution/v3/publish.js.map +1 -1
  609. package/build/plugins/solution/fx-solution/v3/solution.d.ts +2 -2
  610. package/build/plugins/solution/fx-solution/v3/solution.d.ts.map +1 -1
  611. package/build/plugins/solution/fx-solution/v3/solution.js.map +1 -1
  612. package/build/plugins/solution/spfx-solution/addFeature.d.ts +2 -2
  613. package/build/plugins/solution/spfx-solution/addFeature.d.ts.map +1 -1
  614. package/build/plugins/solution/spfx-solution/addFeature.js.map +1 -1
  615. package/package.json +5 -5
  616. package/resource/package.nls.json +8 -2
  617. package/templates/bicep/azureFunction.config.module.bicep +62 -0
  618. package/templates/bicep/azureFunction.config.orchestration.bicep +12 -0
  619. package/templates/bicep/azureFunction.parameters.json +4 -0
  620. package/templates/bicep/azureFunction.provision.module.bicep +89 -0
  621. package/templates/bicep/azureFunction.provision.orchestration.bicep +17 -0
  622. package/templates/bicep/azureWebApp.provision.module.bicep +1 -1
  623. package/templates/fallback/blazor-base.csharp.default.zip +0 -0
  624. package/templates/fallback/bot.csharp.command-and-response.zip +0 -0
  625. package/templates/fallback/bot.csharp.default.zip +0 -0
  626. package/templates/fallback/bot.csharp.notification-function-base.zip +0 -0
  627. package/templates/fallback/bot.csharp.notification-trigger-http.zip +0 -0
  628. package/templates/fallback/bot.csharp.notification-trigger-timer.zip +0 -0
  629. package/templates/fallback/bot.csharp.notification-webapi.zip +0 -0
  630. package/templates/fallback/bot.js.command-and-response.zip +0 -0
  631. package/templates/fallback/bot.js.default.zip +0 -0
  632. package/templates/fallback/bot.js.m365.zip +0 -0
  633. package/templates/fallback/bot.js.notification-function-base.zip +0 -0
  634. package/templates/fallback/bot.js.notification-restify.zip +0 -0
  635. package/templates/fallback/bot.js.notification-trigger-http.zip +0 -0
  636. package/templates/fallback/bot.js.notification-trigger-timer.zip +0 -0
  637. package/templates/fallback/bot.ts.command-and-response.zip +0 -0
  638. package/templates/fallback/bot.ts.default.zip +0 -0
  639. package/templates/fallback/bot.ts.m365.zip +0 -0
  640. package/templates/fallback/bot.ts.notification-function-base.zip +0 -0
  641. package/templates/fallback/bot.ts.notification-restify.zip +0 -0
  642. package/templates/fallback/bot.ts.notification-trigger-http.zip +0 -0
  643. package/templates/fallback/bot.ts.notification-trigger-timer.zip +0 -0
  644. package/templates/fallback/bot.ts.notification.zip +0 -0
  645. package/templates/fallback/function-base.js.default.zip +0 -0
  646. package/templates/fallback/function-base.ts.default.zip +0 -0
  647. package/templates/fallback/function-triggers.js.HTTPTrigger.zip +0 -0
  648. package/templates/fallback/function-triggers.ts.HTTPTrigger.zip +0 -0
  649. package/templates/fallback/tab.csharp.default.zip +0 -0
  650. package/templates/fallback/tab.js.default.zip +0 -0
  651. package/templates/fallback/tab.js.m365.zip +0 -0
  652. package/templates/fallback/tab.js.non-sso.zip +0 -0
  653. package/templates/fallback/tab.ts.default.zip +0 -0
  654. package/templates/fallback/tab.ts.m365.zip +0 -0
  655. package/templates/fallback/tab.ts.non-sso.zip +0 -0
  656. package/templates/plugins/resource/hosting/bicep/botservice/provision.template.bicep +1 -1
  657. package/templates/plugins/resource/hosting/bicep/function/config.template.bicep +12 -0
  658. package/templates/plugins/resource/hosting/bicep/{botFunction/botFunctionConfiguration.template.bicep → function/functionConfiguration.template.bicep} +2 -2
  659. package/templates/plugins/resource/hosting/bicep/{botFunction/botFunctionProvision.template.bicep → function/functionProvision.template.bicep} +18 -12
  660. package/templates/plugins/resource/hosting/bicep/function/provision.template.bicep +19 -0
  661. package/templates/plugins/resource/hosting/bicep/webapp/config.template.bicep +2 -2
  662. package/templates/plugins/resource/hosting/bicep/webapp/provision.template.bicep +3 -3
  663. package/templates/plugins/resource/hosting/bicep/webapp/webappConfiguration.template.bicep +1 -1
  664. package/templates/plugins/resource/hosting/bicep/webapp/webappProvision.template.bicep +9 -4
  665. package/build/component/botCode.d.ts.map +0 -1
  666. package/build/component/botCode.js +0 -138
  667. package/build/component/botCode.js.map +0 -1
  668. package/build/component/connection.d.ts.map +0 -1
  669. package/build/component/connection.js.map +0 -1
  670. package/build/component/debugManager.d.ts +0 -8
  671. package/build/component/debugManager.d.ts.map +0 -1
  672. package/build/component/debugManager.js +0 -57
  673. package/build/component/debugManager.js.map +0 -1
  674. package/build/component/resource/azureSql.d.ts.map +0 -1
  675. package/build/component/resource/azureSql.js +0 -101
  676. package/build/component/resource/azureSql.js.map +0 -1
  677. package/build/component/resource/index.d.ts +0 -17
  678. package/build/component/resource/index.d.ts.map +0 -1
  679. package/build/component/resource/index.js +0 -25
  680. package/build/component/resource/index.js.map +0 -1
  681. package/build/component/resource/teamsManifest.d.ts.map +0 -1
  682. package/build/component/resource/teamsManifest.js +0 -135
  683. package/build/component/resource/teamsManifest.js.map +0 -1
  684. package/build/plugins/resource/appstudio/interfaces/IAppDefinition.d.ts +0 -102
  685. package/build/plugins/resource/appstudio/interfaces/IAppDefinition.d.ts.map +0 -1
  686. package/build/plugins/resource/appstudio/interfaces/IAppDefinition.js +0 -3
  687. package/build/plugins/resource/appstudio/interfaces/IAppDefinition.js.map +0 -1
  688. package/build/plugins/resource/appstudio/v3/plugin.d.ts +0 -21
  689. package/build/plugins/resource/appstudio/v3/plugin.d.ts.map +0 -1
  690. package/build/plugins/resource/appstudio/v3/plugin.js +0 -198
  691. package/build/plugins/resource/appstudio/v3/plugin.js.map +0 -1
  692. package/templates/plugins/resource/hosting/bicep/botFunction/config.template.bicep +0 -12
  693. package/templates/plugins/resource/hosting/bicep/botFunction/provision.template.bicep +0 -20
@@ -9,377 +9,39 @@ const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
9
9
  const path_1 = tslib_1.__importDefault(require("path"));
10
10
  require("reflect-metadata");
11
11
  const typedi_1 = require("typedi");
12
- const projectSettingsHelper_1 = require("./../common/projectSettingsHelper");
13
12
  const projectSettingsLoader_1 = require("../core/middleware/projectSettingsLoader");
14
13
  const question_1 = require("../core/question");
15
- const workflow_1 = require("./workflow");
16
- require("./resource");
14
+ const projectSettingsHelper_1 = require("./../common/projectSettingsHelper");
17
15
  require("./bicep");
18
- require("./botCode");
19
- require("./connection");
16
+ require("./debug");
20
17
  require("./envManager");
21
- require("./debugManager");
22
- const plugins_1 = require("../plugins");
18
+ require("./resource/appManifest/appManifest");
19
+ require("./resource/azureSql");
20
+ require("./resource/aad");
21
+ require("./resource/azureFunction");
22
+ require("./resource/azureStorage");
23
+ require("./resource/azureWebApp");
24
+ require("./resource/botService");
25
+ require("./resource/spfx");
26
+ require("./feature/bot");
27
+ require("./feature/sql");
28
+ require("./feature/tab");
29
+ require("./code/botCode");
30
+ require("./code/tabCode");
31
+ require("./code/apiCode");
32
+ require("./connection/aadConfig");
33
+ require("./connection/azureWebAppConfig");
34
+ require("./connection/azureFunctionConfig");
23
35
  const projectSettingsManager_1 = require("./projectSettingsManager");
24
- const constants_1 = require("../plugins/resource/bot/constants");
25
- const question_2 = require("../plugins/resource/bot/question");
36
+ const constants_1 = require("./constants");
37
+ const localizeUtils_1 = require("../common/localizeUtils");
38
+ const tools_1 = require("../common/tools");
39
+ const workflow_1 = require("./workflow");
40
+ const preDeployAction_1 = require("./fx/preDeployAction");
41
+ const preProvisionAction_1 = require("./fx/preProvisionAction");
26
42
  let TeamsfxCore = class TeamsfxCore {
27
43
  constructor() {
28
44
  this.name = "fx";
29
- // addTab(
30
- // context: ContextV3,
31
- // inputs: InputsWithProjectPath
32
- // ): MaybePromise<Result<Action | undefined, FxError>> {
33
- // const actions: Action[] = [
34
- // {
35
- // name: "fx.configTab",
36
- // type: "function",
37
- // plan: (context: ContextV3, inputs: InputsWithProjectPath) => {
38
- // return ok([`add component 'teams-tab' in projectSettings: ${JSON.stringify(inputs)}`]);
39
- // },
40
- // execute: async (
41
- // context: ContextV3,
42
- // inputs: InputsWithProjectPath
43
- // ): Promise<Result<undefined, FxError>> => {
44
- // const projectSettings = context.projectSetting as ProjectSettingsV3;
45
- // const teamsTabResource: Component = {
46
- // name: "teams-tab",
47
- // ...inputs,
48
- // };
49
- // projectSettings.components.push(teamsTabResource);
50
- // console.log(
51
- // `add component 'teams-tab' in projectSettings: ${JSON.stringify(teamsTabResource)}`
52
- // );
53
- // return ok(undefined);
54
- // },
55
- // },
56
- // {
57
- // name: "call:tab-code.generate",
58
- // type: "call",
59
- // required: true,
60
- // targetAction: "tab-code.generate",
61
- // },
62
- // {
63
- // name: "call:azure-bicep.generate",
64
- // type: "call",
65
- // required: false,
66
- // targetAction: "azure-bicep.generate",
67
- // inputs: {
68
- // "azure-bicep": {
69
- // resources: [inputs.hosting],
70
- // },
71
- // },
72
- // },
73
- // {
74
- // name: "call:teams-manifest.addCapability",
75
- // type: "call",
76
- // required: true,
77
- // targetAction: "teams-manifest.addCapability",
78
- // inputs: {
79
- // "teams-manifest": {
80
- // capabilities: [{ name: "staticTab" }],
81
- // },
82
- // },
83
- // },
84
- // ];
85
- // const group: GroupAction = {
86
- // type: "group",
87
- // name: "fx.addTab",
88
- // mode: "parallel",
89
- // actions: actions,
90
- // };
91
- // return ok(group);
92
- // }
93
- // preProvision(
94
- // context: ContextV3,
95
- // inputs: InputsWithProjectPath
96
- // ): MaybePromise<Result<Action | undefined, FxError>> {
97
- // const action: Action = {
98
- // type: "function",
99
- // name: "fx.preProvision",
100
- // plan: (context: ContextV3, inputs: InputsWithProjectPath) => {
101
- // return ok(["pre step before provision (tenant, subscription, resource group)"]);
102
- // },
103
- // execute: async (context: ContextV3, inputs: InputsWithProjectPath) => {
104
- // const ctx = context as ProvisionContextV3;
105
- // const envInfo = ctx.envInfo;
106
- // const solutionSetting = ctx.projectSetting.solutionSettings as
107
- // | AzureSolutionSettings
108
- // | undefined;
109
- // // 1. check M365 tenant
110
- // if (!envInfo.state["teams-manifest"]) envInfo.state["teams-manifest"] = {};
111
- // const teamsAppResource = envInfo.state["teams-manifest"] as v3.TeamsAppResource;
112
- // if (!envInfo.state.solution) envInfo.state.solution = {};
113
- // const solutionConfig = envInfo.state.solution as v3.AzureSolutionConfig;
114
- // solutionConfig.provisionSucceeded = false;
115
- // const tenantIdInConfig = teamsAppResource.tenantId;
116
- // const tenantIdInTokenRes = await getM365TenantId(ctx.tokenProvider.appStudioToken);
117
- // if (tenantIdInTokenRes.isErr()) {
118
- // return err(tenantIdInTokenRes.error);
119
- // }
120
- // const tenantIdInToken = tenantIdInTokenRes.value;
121
- // if (tenantIdInConfig && tenantIdInToken && tenantIdInToken !== tenantIdInConfig) {
122
- // return err(
123
- // new UserError(
124
- // "Solution",
125
- // SolutionError.TeamsAppTenantIdNotRight,
126
- // `The signed in M365 account does not match the M365 tenant in config file for '${envInfo.envName}' environment. Please sign out and sign in with the correct M365 account.`
127
- // )
128
- // );
129
- // }
130
- // if (!tenantIdInConfig) {
131
- // teamsAppResource.tenantId = tenantIdInToken;
132
- // solutionConfig.teamsAppTenantId = tenantIdInToken;
133
- // }
134
- // // 3. check Azure configs
135
- // if (hasAzureResourceV3(ctx.projectSetting) && envInfo.envName !== "local") {
136
- // // ask common question and fill in solution config
137
- // const solutionConfigRes = await fillInAzureConfigs(
138
- // ctx,
139
- // inputs,
140
- // envInfo as v3.EnvInfoV3,
141
- // ctx.tokenProvider
142
- // );
143
- // if (solutionConfigRes.isErr()) {
144
- // return err(solutionConfigRes.error);
145
- // }
146
- // // ask for provision consent
147
- // const consentResult = await askForProvisionConsent(
148
- // ctx,
149
- // ctx.tokenProvider.azureAccountProvider,
150
- // envInfo as v3.EnvInfoV3
151
- // );
152
- // if (consentResult.isErr()) {
153
- // return err(consentResult.error);
154
- // }
155
- // // create resource group if needed
156
- // if (solutionConfig.needCreateResourceGroup) {
157
- // const createRgRes = await resourceGroupHelper.createNewResourceGroup(
158
- // solutionConfig.resourceGroupName,
159
- // ctx.tokenProvider.azureAccountProvider,
160
- // solutionConfig.subscriptionId,
161
- // solutionConfig.location
162
- // );
163
- // if (createRgRes.isErr()) {
164
- // return err(createRgRes.error);
165
- // }
166
- // }
167
- // }
168
- // // ctx.envInfo.state.solution = {
169
- // // tenantId: "MockTenantId",
170
- // // subscriptionId: "MockSubscriptionId",
171
- // // resourceGroup: "MockResourceGroup",
172
- // // };
173
- // // ctx.envInfo.state["teams-manifest"] = {
174
- // // tenantId: "MockTenantId",
175
- // // };
176
- // return ok(["pre step before provision (tenant, subscription, resource group)"]);
177
- // },
178
- // };
179
- // return ok(action);
180
- // }
181
- // provision(
182
- // context: ContextV3,
183
- // inputs: InputsWithProjectPath
184
- // ): MaybePromise<Result<Action | undefined, FxError>> {
185
- // const ctx = context as ProvisionContextV3;
186
- // const projectSettings = context.projectSetting as ProjectSettingsV3;
187
- // const resourcesToProvision = projectSettings.components.filter((r) => r.provision);
188
- // const provisionActions: Action[] = resourcesToProvision.map((r) => {
189
- // return {
190
- // type: "call",
191
- // name: `call:${r.name}.provision`,
192
- // required: false,
193
- // targetAction: `${r.name}.provision`,
194
- // };
195
- // });
196
- // const loadEnvStep: Action = {
197
- // type: "call",
198
- // targetAction: "env-manager.read",
199
- // required: true,
200
- // };
201
- // const writeEnvStep: Action = {
202
- // type: "call",
203
- // targetAction: "env-manager.write",
204
- // required: true,
205
- // };
206
- // const configureActions: Action[] = resourcesToProvision.map((r) => {
207
- // return {
208
- // type: "call",
209
- // name: `call:${r.name}.configure`,
210
- // required: false,
211
- // targetAction: `${r.name}.configure`,
212
- // };
213
- // });
214
- // const setupLocalEnvironmentStep: Action = {
215
- // type: "call",
216
- // name: "call debug-manager.setupLocalEnvironment",
217
- // targetAction: "debug-manager.setupLocalEnvironment",
218
- // required: false,
219
- // };
220
- // const configLocalEnvironmentStep: Action = {
221
- // type: "call",
222
- // name: "call debug-manager.configLocalEnvironmentStep",
223
- // targetAction: "debug-manager.configLocalEnvironmentStep",
224
- // required: false,
225
- // };
226
- // const preProvisionStep: Action = {
227
- // type: "call",
228
- // name: "call fx.preProvision",
229
- // targetAction: "fx.preProvision",
230
- // required: true,
231
- // };
232
- // const createTeamsAppStep: Action = {
233
- // type: "call",
234
- // name: "call teams-manifest.provision",
235
- // targetAction: "teams-manifest.provision",
236
- // required: true,
237
- // };
238
- // const updateTeamsAppStep: Action = {
239
- // type: "call",
240
- // name: "call teams-manifest.configure",
241
- // targetAction: "teams-manifest.configure",
242
- // required: true,
243
- // };
244
- // const provisionResourcesStep: Action = {
245
- // type: "group",
246
- // name: "resources.provision",
247
- // mode: "parallel",
248
- // actions: provisionActions,
249
- // };
250
- // const configureResourcesStep: Action = {
251
- // type: "group",
252
- // name: "resources.configure",
253
- // mode: "parallel",
254
- // actions: configureActions,
255
- // };
256
- // const deployBicepStep: Action = {
257
- // type: "call",
258
- // name: "call:bicep.deploy",
259
- // required: true,
260
- // targetAction: "bicep.deploy",
261
- // };
262
- // const postProvisionStep: Action = {
263
- // type: "function",
264
- // name: "fx.postProvision",
265
- // plan: (context: ContextV3, inputs: InputsWithProjectPath) => {
266
- // return ok([]);
267
- // },
268
- // execute: (context: ContextV3, inputs: InputsWithProjectPath) => {
269
- // const ctx = context as ProvisionContextV3;
270
- // const url = getResourceGroupInPortal(
271
- // ctx.envInfo.state.solution.subscriptionId,
272
- // ctx.envInfo.state.solution.tenantId,
273
- // ctx.envInfo.state.solution.resourceGroupName
274
- // );
275
- // const msg = getLocalizedString("core.provision.successAzure");
276
- // if (url) {
277
- // const title = "View Provisioned Resources";
278
- // ctx.userInteraction.showMessage("info", msg, false, title).then((result: any) => {
279
- // const userSelected = result.isOk() ? result.value : undefined;
280
- // if (userSelected === title) {
281
- // ctx.userInteraction.openUrl(url);
282
- // }
283
- // });
284
- // } else {
285
- // ctx.userInteraction.showMessage("info", msg, false);
286
- // }
287
- // return ok([]);
288
- // },
289
- // };
290
- // const preConfigureStep: Action = {
291
- // type: "function",
292
- // name: "fx.preConfigure",
293
- // plan: (context: ContextV3, inputs: InputsWithProjectPath) => {
294
- // return ok([]);
295
- // },
296
- // execute: (context: ContextV3, inputs: InputsWithProjectPath) => {
297
- // const projectSettings = context.projectSetting as ProjectSettingsV3;
298
- // const teamsTab = getComponent(projectSettings, "teams-tab") as Component;
299
- // const aad = getComponent(projectSettings, "aad");
300
- // if (aad) {
301
- // if (teamsTab) {
302
- // const tabEndpoint = context.envInfo?.state[teamsTab.hosting!].endpoint;
303
- // inputs.m365ApplicationIdUri = `api://${tabEndpoint}`;
304
- // }
305
- // }
306
- // return ok([]);
307
- // },
308
- // };
309
- // const provisionSequences: Action[] = [
310
- // LoadProjectSettingsAction,
311
- // loadEnvStep,
312
- // preProvisionStep,
313
- // createTeamsAppStep,
314
- // provisionResourcesStep,
315
- // ctx.envInfo.envName !== "local" ? deployBicepStep : setupLocalEnvironmentStep,
316
- // preConfigureStep,
317
- // configureResourcesStep,
318
- // ctx.envInfo.envName === "local" ? configLocalEnvironmentStep : postProvisionStep,
319
- // updateTeamsAppStep,
320
- // writeEnvStep,
321
- // WriteProjectSettingsAction,
322
- // ];
323
- // const result: Action = {
324
- // name: "fx.provision",
325
- // type: "group",
326
- // actions: provisionSequences,
327
- // };
328
- // return ok(result);
329
- // }
330
- // build(context: ContextV3, inputs: InputsWithProjectPath): Result<Action | undefined, FxError> {
331
- // const projectSettings = context.projectSetting as ProjectSettingsV3;
332
- // const actions: Action[] = projectSettings.components
333
- // .filter((resource) => resource.build)
334
- // .map((resource) => {
335
- // return {
336
- // name: `call:${resource.name}.build`,
337
- // type: "call",
338
- // targetAction: `${resource.name}.build`,
339
- // required: false,
340
- // };
341
- // });
342
- // const group: Action = {
343
- // type: "group",
344
- // mode: "parallel",
345
- // actions: actions,
346
- // };
347
- // return ok(group);
348
- // }
349
- // deploy(
350
- // context: ContextV3,
351
- // inputs: InputsWithProjectPath
352
- // ): MaybePromise<Result<Action | undefined, FxError>> {
353
- // const projectSettings = context.projectSetting as ProjectSettingsV3;
354
- // const actions: Action[] = [
355
- // {
356
- // name: "call:fx.build",
357
- // type: "call",
358
- // targetAction: "fx.build",
359
- // required: false,
360
- // },
361
- // ];
362
- // projectSettings.components
363
- // .filter((resource) => resource.build && resource.hosting)
364
- // .forEach((resource) => {
365
- // actions.push({
366
- // type: "call",
367
- // targetAction: `${resource.hosting}.deploy`,
368
- // required: false,
369
- // inputs: {
370
- // [resource.hosting!]: {
371
- // folder: resource.folder,
372
- // },
373
- // },
374
- // });
375
- // });
376
- // const action: GroupAction = {
377
- // type: "group",
378
- // name: "fx.deploy",
379
- // actions: actions,
380
- // };
381
- // return ok(action);
382
- // }
383
45
  }
384
46
  init(context, inputs) {
385
47
  const initProjectSettings = {
@@ -409,7 +71,7 @@ let TeamsfxCore = class TeamsfxCore {
409
71
  },
410
72
  execute: async (context, inputs) => {
411
73
  const projectSettings = projectSettingsHelper_1.newProjectSettings();
412
- projectSettings.appName = workflow_1.getEmbeddedValueByPath(inputs, "app-name");
74
+ projectSettings.appName = inputs["app-name"];
413
75
  projectSettings.components = [];
414
76
  context.projectSetting = projectSettings;
415
77
  await fs_extra_1.default.ensureDir(inputs.projectPath);
@@ -431,7 +93,7 @@ let TeamsfxCore = class TeamsfxCore {
431
93
  initProjectSettings,
432
94
  {
433
95
  type: "call",
434
- targetAction: "teams-manifest.init",
96
+ targetAction: "app-manifest.init",
435
97
  required: true,
436
98
  },
437
99
  {
@@ -444,267 +106,197 @@ let TeamsfxCore = class TeamsfxCore {
444
106
  };
445
107
  return teamsfx_api_1.ok(action);
446
108
  }
447
- /**
448
- *
449
- * capability = Notification
450
- * bot-host-type-trigger = http-restify
451
- * group=bot, scenario=notification-restify, host=app-service
452
- * bot-host-type-trigger = [http-functions, timer-functions]
453
- * group=bot, host=function, scenario=notification-function-base + [notification-trigger-http, notification-trigger-timer]
454
- * capability = command-bot:
455
- * group=bot, host=app-service, scenario=command-and-response
456
- * capability = Bot
457
- * group=bot, host=app-service, scenario=default
458
- * capability = MessagingExtension
459
- * group=bot, host=app-service, scenario=default
460
- */
461
- /**
462
- * 1. config bot in project settings
463
- * 2. generate bot source code
464
- * 3. generate bot-service and hosting bicep
465
- * 3. overwrite hosting config bicep
466
- * 4. persist bicep
467
- * 5. add capability in teams manifest
468
- */
469
- addBot(context, inputs) {
470
- const feature = inputs.feature;
471
- const triggers = inputs[constants_1.QuestionNames.BOT_HOST_TYPE_TRIGGER];
472
- inputs.hosting = "azure-web-app";
473
- const scenarios = [];
474
- if (feature === plugins_1.NotificationOptionItem.id) {
475
- if (triggers.includes(question_2.AppServiceOptionItem.id)) {
476
- scenarios.push(constants_1.TemplateProjectsScenarios.NOTIFICATION_RESTIFY_SCENARIO_NAME);
477
- }
478
- else {
479
- inputs.hosting = "azure-function";
480
- if (triggers.includes(question_2.FunctionsHttpTriggerOptionItem.id)) {
481
- scenarios.push(constants_1.TemplateProjectsScenarios.NOTIFICATION_FUNCTION_TRIGGER_HTTP_SCENARIO_NAME);
482
- }
483
- if (triggers.includes(question_2.FunctionsTimerTriggerOptionItem.id)) {
484
- scenarios.push(constants_1.TemplateProjectsScenarios.NOTIFICATION_FUNCTION_TRIGGER_TIMER_SCENARIO_NAME);
485
- }
486
- }
487
- }
488
- else if (feature === plugins_1.CommandAndResponseOptionItem.id) {
489
- scenarios.push(constants_1.TemplateProjectsScenarios.COMMAND_AND_RESPONSE_SCENARIO_NAME);
490
- }
491
- else {
492
- scenarios.push(constants_1.TemplateProjectsScenarios.DEFAULT_SCENARIO_NAME);
493
- }
494
- const actions = [
495
- projectSettingsManager_1.LoadProjectSettingsAction,
496
- {
497
- name: "fx.configBot",
498
- type: "function",
499
- plan: (context, inputs) => {
500
- const remarks = [
501
- `add components 'teams-bot', '${inputs.hosting}', 'bot-service' in projectSettings`,
502
- ];
503
- // connect to azure-sql
504
- if (workflow_1.getComponent(context.projectSetting, "azure-sql")) {
505
- remarks.push(`connect 'azure-sql' to hosting component '${inputs.hosting}' in projectSettings`);
506
- }
507
- return teamsfx_api_1.ok(remarks);
508
- },
509
- execute: async (context, inputs) => {
510
- const projectSettings = context.projectSetting;
511
- // add teams-bot
512
- projectSettings.components.push({
513
- name: "teams-bot",
514
- hosting: inputs.hosting,
515
- });
516
- // add hosting component
517
- const hostingComponent = {
518
- name: inputs.hosting,
519
- connections: ["teams-bot"],
520
- };
521
- projectSettings.components.push(hostingComponent);
522
- //add bot-service
523
- projectSettings.components.push({
524
- name: "bot-service",
525
- provision: true,
526
- });
527
- const remarks = [
528
- `add components 'teams-bot', '${inputs.hosting}', 'bot-service' in projectSettings`,
529
- ];
530
- // connect azure-sql to hosting component
531
- if (workflow_1.getComponent(context.projectSetting, "azure-sql")) {
532
- hostingComponent.connections.push("azure-sql");
533
- remarks.push(`connect 'azure-sql' to hosting component '${inputs.hosting}' in projectSettings`);
534
- }
535
- return teamsfx_api_1.ok([
536
- {
537
- type: "file",
538
- operate: "replace",
539
- filePath: projectSettingsLoader_1.getProjectSettingsPath(inputs.projectPath),
540
- remarks: remarks.join(";"),
541
- },
542
- ]);
543
- },
544
- },
545
- {
546
- name: "call:bot-code.generate",
109
+ async provision(context, inputs) {
110
+ const ctx = context;
111
+ const filePath = projectSettingsLoader_1.getProjectSettingsPath(inputs.projectPath);
112
+ ctx.projectSetting = (await fs_extra_1.default.readJson(filePath));
113
+ const resourcesToProvision = ctx.projectSetting.components.filter((r) => r.provision);
114
+ const provisionActions = resourcesToProvision.map((r) => {
115
+ return {
547
116
  type: "call",
548
- required: true,
549
- targetAction: "bot-code.generate",
550
- inputs: {
551
- scenarios: scenarios,
552
- },
553
- },
554
- {
117
+ name: `call:${r.name}.provision`,
118
+ required: false,
119
+ targetAction: `${r.name}.provision`,
120
+ };
121
+ });
122
+ const configureActions = resourcesToProvision.map((r) => {
123
+ return {
555
124
  type: "call",
556
- targetAction: "bicep.init",
557
- required: true,
125
+ name: `call:${r.name}.configure`,
126
+ required: false,
127
+ targetAction: `${r.name}.configure`,
128
+ };
129
+ });
130
+ const setupLocalEnvironmentStep = {
131
+ type: "call",
132
+ name: "call debug-manager.setupLocalEnvironment",
133
+ targetAction: "debug-manager.setupLocalEnvironment",
134
+ required: false,
135
+ };
136
+ const configLocalEnvironmentStep = {
137
+ type: "call",
138
+ name: "call debug-manager.configLocalEnvironmentStep",
139
+ targetAction: "debug-manager.configLocalEnvironmentStep",
140
+ required: false,
141
+ };
142
+ const preProvisionStep = new preProvisionAction_1.FxPreProvisionAction();
143
+ const createTeamsAppStep = {
144
+ type: "call",
145
+ name: "call app-manifest.provision",
146
+ targetAction: "app-manifest.provision",
147
+ required: true,
148
+ };
149
+ const updateTeamsAppStep = {
150
+ type: "call",
151
+ name: "call app-manifest.configure",
152
+ targetAction: "app-manifest.configure",
153
+ required: true,
154
+ };
155
+ const provisionResourcesStep = {
156
+ type: "group",
157
+ name: "resources.provision",
158
+ mode: "parallel",
159
+ actions: provisionActions,
160
+ };
161
+ const configureResourcesStep = {
162
+ type: "group",
163
+ name: "resources.configure",
164
+ mode: "parallel",
165
+ actions: configureActions,
166
+ };
167
+ const deployBicepStep = {
168
+ type: "call",
169
+ name: "call:bicep.deploy",
170
+ required: true,
171
+ targetAction: "bicep.deploy",
172
+ };
173
+ const postProvisionStep = {
174
+ type: "function",
175
+ name: "fx.postProvision",
176
+ plan: (context, inputs) => {
177
+ return teamsfx_api_1.ok([]);
558
178
  },
559
- {
560
- name: `call:${inputs.hosting}.generateBicep`,
561
- type: "call",
562
- required: true,
563
- targetAction: `${inputs.hosting}.generateBicep`,
179
+ execute: (context, inputs) => {
180
+ const ctx = context;
181
+ ctx.envInfo.state.solution.provisionSucceeded = true;
182
+ const url = tools_1.getResourceGroupInPortal(ctx.envInfo.state.solution.subscriptionId, ctx.envInfo.state.solution.tenantId, ctx.envInfo.state.solution.resourceGroupName);
183
+ const msg = localizeUtils_1.getLocalizedString("core.provision.successAzure");
184
+ if (url) {
185
+ const title = "View Provisioned Resources";
186
+ ctx.userInteraction.showMessage("info", msg, false, title).then((result) => {
187
+ const userSelected = result.isOk() ? result.value : undefined;
188
+ if (userSelected === title) {
189
+ ctx.userInteraction.openUrl(url);
190
+ }
191
+ });
192
+ }
193
+ else {
194
+ ctx.userInteraction.showMessage("info", msg, false);
195
+ }
196
+ return teamsfx_api_1.ok([]);
564
197
  },
565
- {
566
- name: "call:bot-service.generateBicep",
567
- type: "call",
568
- required: true,
569
- targetAction: "bot-service.generateBicep",
198
+ };
199
+ const preConfigureStep = {
200
+ type: "function",
201
+ name: "fx.preConfigure",
202
+ plan: (context, inputs) => {
203
+ return teamsfx_api_1.ok([]);
570
204
  },
571
- {
572
- name: `call:${inputs.hosting}-config.generateBicep`,
573
- type: "call",
574
- required: true,
575
- targetAction: `${inputs.hosting}-config.generateBicep`,
205
+ execute: (context, inputs) => {
206
+ const ctx = context;
207
+ const teamsBot = workflow_1.getComponent(ctx.projectSetting, constants_1.ComponentNames.TeamsBot);
208
+ if (teamsBot) {
209
+ const teamsBotConfig = {
210
+ endpoint: ctx.envInfo.state[teamsBot.hosting].endpoint,
211
+ domain: ctx.envInfo.state[teamsBot.hosting].domain,
212
+ };
213
+ ctx.envInfo.state[constants_1.ComponentNames.TeamsBot] = teamsBotConfig;
214
+ }
215
+ const teamsTab = workflow_1.getComponent(ctx.projectSetting, constants_1.ComponentNames.TeamsTab);
216
+ if (teamsTab) {
217
+ const teamsTabConfig = {
218
+ endpoint: ctx.envInfo.state[teamsTab.hosting].endpoint,
219
+ domain: ctx.envInfo.state[teamsTab.hosting].domain,
220
+ };
221
+ ctx.envInfo.state[constants_1.ComponentNames.TeamsBot] = teamsTabConfig;
222
+ const aad = workflow_1.getComponent(ctx.projectSetting, constants_1.ComponentNames.AadApp);
223
+ if (aad) {
224
+ const tabEndpoint = ctx.envInfo.state[teamsTab.hosting].endpoint;
225
+ inputs.m365ApplicationIdUri = `api://${tabEndpoint}`;
226
+ }
227
+ }
228
+ return teamsfx_api_1.ok([]);
576
229
  },
577
- {
578
- name: "call:teams-manifest.addCapability",
230
+ };
231
+ const provisionSequences = [
232
+ preProvisionStep,
233
+ createTeamsAppStep,
234
+ provisionResourcesStep,
235
+ ctx.envInfo.envName !== "local" ? deployBicepStep : setupLocalEnvironmentStep,
236
+ preConfigureStep,
237
+ configureResourcesStep,
238
+ ctx.envInfo.envName === "local" ? configLocalEnvironmentStep : postProvisionStep,
239
+ updateTeamsAppStep,
240
+ ];
241
+ const result = {
242
+ name: "fx.provision",
243
+ type: "group",
244
+ actions: provisionSequences,
245
+ };
246
+ return teamsfx_api_1.ok(result);
247
+ }
248
+ build(context, inputs) {
249
+ const projectSettings = context.projectSetting;
250
+ const actions = projectSettings.components
251
+ .filter((resource) => resource.build)
252
+ .map((resource) => {
253
+ const component = resource.code || resource.name;
254
+ return {
255
+ name: `call:${component}.build`,
579
256
  type: "call",
257
+ targetAction: `${component}.build`,
580
258
  required: true,
581
- targetAction: "teams-manifest.addCapability",
582
- inputs: {
583
- capabilities: [{ name: "Bot" }],
584
- },
585
- },
586
- ];
587
- actions.push(projectSettingsManager_1.WriteProjectSettingsAction);
259
+ };
260
+ });
588
261
  const group = {
589
262
  type: "group",
590
- name: "fx.addBot",
591
- mode: "sequential",
263
+ name: "fx.build",
264
+ mode: "parallel",
592
265
  actions: actions,
593
266
  };
594
267
  return teamsfx_api_1.ok(group);
595
268
  }
596
- /**
597
- * 1. config sql
598
- * 2. add sql provision bicep
599
- * 3. re-generate resources that connect to sql
600
- * 4. persist bicep
601
- */
602
- addSql(context, inputs) {
603
- const sqlComponent = workflow_1.getComponent(context.projectSetting, "azure-sql");
604
- const provisionType = sqlComponent ? "database" : "server";
269
+ deploy(context, inputs) {
270
+ const projectSettings = context.projectSetting;
605
271
  const actions = [
606
- // LoadProjectSettingsAction,
607
- {
608
- name: "fx.configSql",
609
- type: "function",
610
- plan: (context, inputs) => {
611
- const sqlComponent = workflow_1.getComponent(context.projectSetting, "azure-sql");
612
- if (sqlComponent) {
613
- return teamsfx_api_1.ok([]);
614
- }
615
- const remarks = ["add component 'azure-sql' in projectSettings"];
616
- const webAppComponent = workflow_1.getComponent(context.projectSetting, "azure-web-app");
617
- if (webAppComponent) {
618
- remarks.push("connect 'azure-sql' to component 'azure-web-app' in projectSettings");
619
- }
620
- const functionComponent = workflow_1.getComponent(context.projectSetting, "azure-function");
621
- if (functionComponent) {
622
- remarks.push("connect 'azure-sql' to component 'azure-function' in projectSettings");
623
- }
624
- return teamsfx_api_1.ok([
625
- {
626
- type: "file",
627
- operate: "replace",
628
- filePath: projectSettingsLoader_1.getProjectSettingsPath(inputs.projectPath),
629
- remarks: remarks.join(";"),
630
- },
631
- ]);
632
- },
633
- execute: async (context, inputs) => {
634
- const sqlComponent = workflow_1.getComponent(context.projectSetting, "azure-sql");
635
- if (sqlComponent)
636
- return teamsfx_api_1.ok([]);
637
- const projectSettings = context.projectSetting;
638
- const remarks = ["add component 'azure-sql' in projectSettings"];
639
- projectSettings.components.push({
640
- name: "azure-sql",
641
- provision: true,
642
- });
643
- const webAppComponent = workflow_1.getComponent(context.projectSetting, "azure-web-app");
644
- if (webAppComponent) {
645
- if (!webAppComponent.connections)
646
- webAppComponent.connections = [];
647
- webAppComponent.connections.push("azure-sql");
648
- remarks.push("connect 'azure-sql' to component 'azure-web-app' in projectSettings");
649
- }
650
- const functionComponent = workflow_1.getComponent(context.projectSetting, "azure-function");
651
- if (functionComponent) {
652
- if (!functionComponent.connections)
653
- functionComponent.connections = [];
654
- functionComponent.connections.push("azure-sql");
655
- remarks.push("connect 'azure-sql' to component 'azure-function' in projectSettings");
656
- }
657
- return teamsfx_api_1.ok([
658
- {
659
- type: "file",
660
- operate: "replace",
661
- filePath: projectSettingsLoader_1.getProjectSettingsPath(inputs.projectPath),
662
- remarks: remarks.join(";"),
663
- },
664
- ]);
665
- },
666
- },
272
+ new preDeployAction_1.FxPreDeployAction(),
667
273
  {
274
+ name: "call:fx.build",
668
275
  type: "call",
669
- targetAction: "bicep.init",
276
+ targetAction: "fx.build",
670
277
  required: true,
671
278
  },
672
- {
673
- name: "call:azure-sql.generateBicep",
674
- type: "call",
675
- required: true,
676
- targetAction: "azure-sql.generateBicep",
677
- inputs: {
678
- provisionType: provisionType,
679
- },
680
- },
681
279
  ];
682
- const webAppComponent = workflow_1.getComponent(context.projectSetting, "azure-web-app");
683
- if (webAppComponent) {
684
- actions.push({
685
- name: "call:azure-web-app-config.generateBicep",
686
- type: "call",
687
- required: true,
688
- targetAction: "azure-web-app-config.generateBicep",
689
- });
690
- }
691
- const functionComponent = workflow_1.getComponent(context.projectSetting, "azure-function");
692
- if (functionComponent) {
693
- actions.push({
694
- name: "call:azure-function-config.generateBicep",
695
- type: "call",
696
- required: true,
697
- targetAction: "azure-function-config.generateBicep",
698
- });
699
- }
700
- // actions.push(WriteProjectSettingsAction);
701
- const group = {
280
+ const components = inputs["deploy-plugin"];
281
+ components.forEach((componentName) => {
282
+ const componentConfig = workflow_1.getComponent(projectSettings, componentName);
283
+ if (componentConfig) {
284
+ actions.push({
285
+ type: "call",
286
+ targetAction: `${componentConfig.hosting}.deploy`,
287
+ required: false,
288
+ inputs: {
289
+ folder: componentConfig.folder,
290
+ },
291
+ });
292
+ }
293
+ });
294
+ const action = {
702
295
  type: "group",
703
- name: "fx.addSql",
704
- mode: "sequential",
296
+ name: "fx.deploy",
705
297
  actions: actions,
706
298
  };
707
- return teamsfx_api_1.ok(group);
299
+ return teamsfx_api_1.ok(action);
708
300
  }
709
301
  };
710
302
  TeamsfxCore = tslib_1.__decorate([