@microsoft/teamsfx-core 1.9.0 → 1.9.1-alpha.2cc91ae90.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 (405) hide show
  1. package/build/common/azure-hosting/azureAppServiceHosting.d.ts +16 -0
  2. package/build/common/azure-hosting/azureAppServiceHosting.d.ts.map +1 -0
  3. package/build/common/azure-hosting/azureAppServiceHosting.js +33 -0
  4. package/build/common/azure-hosting/azureAppServiceHosting.js.map +1 -0
  5. package/build/common/azure-hosting/azureFunctionHosting.d.ts +17 -0
  6. package/build/common/azure-hosting/azureFunctionHosting.d.ts.map +1 -0
  7. package/build/common/azure-hosting/azureFunctionHosting.js +36 -0
  8. package/build/common/azure-hosting/azureFunctionHosting.js.map +1 -0
  9. package/build/common/azure-hosting/azureHosting.d.ts +22 -0
  10. package/build/common/azure-hosting/azureHosting.d.ts.map +1 -0
  11. package/build/common/azure-hosting/azureHosting.js +89 -0
  12. package/build/common/azure-hosting/azureHosting.js.map +1 -0
  13. package/build/common/azure-hosting/azureOps.d.ts +16 -0
  14. package/build/common/azure-hosting/azureOps.d.ts.map +1 -0
  15. package/build/common/azure-hosting/azureOps.js +87 -0
  16. package/build/common/azure-hosting/azureOps.js.map +1 -0
  17. package/build/common/azure-hosting/botServiceHosting.d.ts +7 -0
  18. package/build/common/azure-hosting/botServiceHosting.d.ts.map +1 -0
  19. package/build/common/azure-hosting/botServiceHosting.js +16 -0
  20. package/build/common/azure-hosting/botServiceHosting.js.map +1 -0
  21. package/build/common/azure-hosting/hostingConstant.d.ts +45 -0
  22. package/build/common/azure-hosting/hostingConstant.d.ts.map +1 -0
  23. package/build/common/azure-hosting/hostingConstant.js +85 -0
  24. package/build/common/azure-hosting/hostingConstant.js.map +1 -0
  25. package/build/common/azure-hosting/hostingError.d.ts +47 -0
  26. package/build/common/azure-hosting/hostingError.d.ts.map +1 -0
  27. package/build/common/azure-hosting/hostingError.js +83 -0
  28. package/build/common/azure-hosting/hostingError.js.map +1 -0
  29. package/build/common/azure-hosting/hostingFactory.d.ts +6 -0
  30. package/build/common/azure-hosting/hostingFactory.d.ts.map +1 -0
  31. package/build/common/azure-hosting/hostingFactory.js +24 -0
  32. package/build/common/azure-hosting/hostingFactory.js.map +1 -0
  33. package/build/common/azure-hosting/interfaces.d.ts +39 -0
  34. package/build/common/azure-hosting/interfaces.d.ts.map +1 -0
  35. package/build/common/azure-hosting/interfaces.js +12 -0
  36. package/build/common/azure-hosting/interfaces.js.map +1 -0
  37. package/build/common/azure-hosting/utils.d.ts +7 -0
  38. package/build/common/azure-hosting/utils.d.ts.map +1 -0
  39. package/build/common/azure-hosting/utils.js +86 -0
  40. package/build/common/azure-hosting/utils.js.map +1 -0
  41. package/build/common/constants.d.ts +6 -0
  42. package/build/common/constants.d.ts.map +1 -1
  43. package/build/common/constants.js +8 -1
  44. package/build/common/constants.js.map +1 -1
  45. package/build/common/deps-checker/constant/helpLink.d.ts +1 -0
  46. package/build/common/deps-checker/constant/helpLink.d.ts.map +1 -1
  47. package/build/common/deps-checker/constant/helpLink.js +2 -1
  48. package/build/common/deps-checker/constant/helpLink.js.map +1 -1
  49. package/build/common/deps-checker/constant/message.d.ts +1 -0
  50. package/build/common/deps-checker/constant/message.d.ts.map +1 -1
  51. package/build/common/deps-checker/constant/message.js +1 -0
  52. package/build/common/deps-checker/constant/message.js.map +1 -1
  53. package/build/common/deps-checker/depsError.d.ts +3 -0
  54. package/build/common/deps-checker/depsError.d.ts.map +1 -1
  55. package/build/common/deps-checker/depsError.js +8 -1
  56. package/build/common/deps-checker/depsError.js.map +1 -1
  57. package/build/common/deps-checker/depsManager.js +1 -1
  58. package/build/common/deps-checker/depsManager.js.map +1 -1
  59. package/build/common/deps-checker/internal/funcToolChecker.d.ts +1 -0
  60. package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
  61. package/build/common/deps-checker/internal/funcToolChecker.js +36 -0
  62. package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
  63. package/build/common/deps-checker/internal/nodeChecker.d.ts +7 -0
  64. package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
  65. package/build/common/deps-checker/internal/nodeChecker.js +2 -1
  66. package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
  67. package/build/common/featureFlags.d.ts +1 -0
  68. package/build/common/featureFlags.d.ts.map +1 -1
  69. package/build/common/featureFlags.js +5 -1
  70. package/build/common/featureFlags.js.map +1 -1
  71. package/build/common/projectSettingsHelper.d.ts +2 -1
  72. package/build/common/projectSettingsHelper.d.ts.map +1 -1
  73. package/build/common/projectSettingsHelper.js +19 -2
  74. package/build/common/projectSettingsHelper.js.map +1 -1
  75. package/build/common/template-utils/templatesUtils.d.ts +1 -1
  76. package/build/common/template-utils/templatesUtils.d.ts.map +1 -1
  77. package/build/common/template-utils/templatesUtils.js +9 -2
  78. package/build/common/template-utils/templatesUtils.js.map +1 -1
  79. package/build/common/templates-config.json +2 -2
  80. package/build/common/tools.d.ts +5 -0
  81. package/build/common/tools.d.ts.map +1 -1
  82. package/build/common/tools.js +17 -1
  83. package/build/common/tools.js.map +1 -1
  84. package/build/component/bicep.d.ts +8 -0
  85. package/build/component/bicep.d.ts.map +1 -0
  86. package/build/component/bicep.js +107 -0
  87. package/build/component/bicep.js.map +1 -0
  88. package/build/component/botCode.d.ts +13 -0
  89. package/build/component/botCode.d.ts.map +1 -0
  90. package/build/component/botCode.js +138 -0
  91. package/build/component/botCode.js.map +1 -0
  92. package/build/component/connection.d.ts +8 -0
  93. package/build/component/connection.d.ts.map +1 -0
  94. package/build/component/connection.js +84 -0
  95. package/build/component/connection.js.map +1 -0
  96. package/build/component/core.d.ts +43 -0
  97. package/build/component/core.d.ts.map +1 -0
  98. package/build/component/core.js +714 -0
  99. package/build/component/core.js.map +1 -0
  100. package/build/component/debugManager.d.ts +8 -0
  101. package/build/component/debugManager.d.ts.map +1 -0
  102. package/build/component/debugManager.js +57 -0
  103. package/build/component/debugManager.js.map +1 -0
  104. package/build/component/envManager.d.ts +7 -0
  105. package/build/component/envManager.d.ts.map +1 -0
  106. package/build/component/envManager.js +140 -0
  107. package/build/component/envManager.js.map +1 -0
  108. package/build/component/projectSettingsManager.d.ts +10 -0
  109. package/build/component/projectSettingsManager.d.ts.map +1 -0
  110. package/build/component/projectSettingsManager.js +72 -0
  111. package/build/component/projectSettingsManager.js.map +1 -0
  112. package/build/component/resource/aad.d.ts +11 -0
  113. package/build/component/resource/aad.d.ts.map +1 -0
  114. package/build/component/resource/aad.js +82 -0
  115. package/build/component/resource/aad.js.map +1 -0
  116. package/build/component/resource/azureFunction.d.ts +19 -0
  117. package/build/component/resource/azureFunction.d.ts.map +1 -0
  118. package/build/component/resource/azureFunction.js +81 -0
  119. package/build/component/resource/azureFunction.js.map +1 -0
  120. package/build/component/resource/azureSql.d.ts +24 -0
  121. package/build/component/resource/azureSql.d.ts.map +1 -0
  122. package/build/component/resource/azureSql.js +101 -0
  123. package/build/component/resource/azureSql.js.map +1 -0
  124. package/build/component/resource/azureStorage.d.ts +16 -0
  125. package/build/component/resource/azureStorage.d.ts.map +1 -0
  126. package/build/component/resource/azureStorage.js +102 -0
  127. package/build/component/resource/azureStorage.js.map +1 -0
  128. package/build/component/resource/azureWebApp.d.ts +23 -0
  129. package/build/component/resource/azureWebApp.d.ts.map +1 -0
  130. package/build/component/resource/azureWebApp.js +95 -0
  131. package/build/component/resource/azureWebApp.js.map +1 -0
  132. package/build/component/resource/botService.d.ts +22 -0
  133. package/build/component/resource/botService.d.ts.map +1 -0
  134. package/build/component/resource/botService.js +208 -0
  135. package/build/component/resource/botService.js.map +1 -0
  136. package/build/component/resource/index.d.ts +17 -0
  137. package/build/component/resource/index.d.ts.map +1 -0
  138. package/build/component/resource/index.js +25 -0
  139. package/build/component/resource/index.js.map +1 -0
  140. package/build/component/resource/spfx.d.ts +9 -0
  141. package/build/component/resource/spfx.d.ts.map +1 -0
  142. package/build/component/resource/spfx.js +46 -0
  143. package/build/component/resource/spfx.js.map +1 -0
  144. package/build/component/resource/teamsManifest.d.ts +19 -0
  145. package/build/component/resource/teamsManifest.d.ts.map +1 -0
  146. package/build/component/resource/teamsManifest.js +135 -0
  147. package/build/component/resource/teamsManifest.js.map +1 -0
  148. package/build/component/utils.d.ts +18 -0
  149. package/build/component/utils.d.ts.map +1 -0
  150. package/build/component/utils.js +354 -0
  151. package/build/component/utils.js.map +1 -0
  152. package/build/component/workflow.d.ts +21 -0
  153. package/build/component/workflow.d.ts.map +1 -0
  154. package/build/component/workflow.js +440 -0
  155. package/build/component/workflow.js.map +1 -0
  156. package/build/core/FxCore.d.ts +2 -2
  157. package/build/core/FxCore.d.ts.map +1 -1
  158. package/build/core/FxCore.js +36 -91
  159. package/build/core/FxCore.js.map +1 -1
  160. package/build/core/collaborator.d.ts.map +1 -1
  161. package/build/core/collaborator.js +2 -1
  162. package/build/core/collaborator.js.map +1 -1
  163. package/build/core/middleware/questionModel.d.ts.map +1 -1
  164. package/build/core/middleware/questionModel.js +65 -20
  165. package/build/core/middleware/questionModel.js.map +1 -1
  166. package/build/core/middleware/questionModelV3.d.ts +6 -0
  167. package/build/core/middleware/questionModelV3.d.ts.map +1 -0
  168. package/build/core/middleware/questionModelV3.js +83 -0
  169. package/build/core/middleware/questionModelV3.js.map +1 -0
  170. package/build/core/question.d.ts +6 -0
  171. package/build/core/question.d.ts.map +1 -1
  172. package/build/core/question.js +42 -1
  173. package/build/core/question.js.map +1 -1
  174. package/build/plugins/resource/apiconnector/index.d.ts.map +1 -1
  175. package/build/plugins/resource/apiconnector/index.js +3 -1
  176. package/build/plugins/resource/apiconnector/index.js.map +1 -1
  177. package/build/plugins/resource/appstudio/constants.d.ts +2 -4
  178. package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
  179. package/build/plugins/resource/appstudio/constants.js +3 -5
  180. package/build/plugins/resource/appstudio/constants.js.map +1 -1
  181. package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
  182. package/build/plugins/resource/appstudio/index.js +27 -18
  183. package/build/plugins/resource/appstudio/index.js.map +1 -1
  184. package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
  185. package/build/plugins/resource/appstudio/plugin.js +6 -6
  186. package/build/plugins/resource/appstudio/plugin.js.map +1 -1
  187. package/build/plugins/resource/bot/appStudio/appStudio.d.ts +4 -0
  188. package/build/plugins/resource/bot/appStudio/appStudio.d.ts.map +1 -1
  189. package/build/plugins/resource/bot/appStudio/appStudio.js +14 -3
  190. package/build/plugins/resource/bot/appStudio/appStudio.js.map +1 -1
  191. package/build/plugins/resource/bot/constants.d.ts +2 -70
  192. package/build/plugins/resource/bot/constants.d.ts.map +1 -1
  193. package/build/plugins/resource/bot/constants.js +9 -85
  194. package/build/plugins/resource/bot/constants.js.map +1 -1
  195. package/build/plugins/resource/bot/dotnet/constants.d.ts +5 -0
  196. package/build/plugins/resource/bot/dotnet/constants.d.ts.map +1 -1
  197. package/build/plugins/resource/bot/dotnet/constants.js +7 -1
  198. package/build/plugins/resource/bot/dotnet/constants.js.map +1 -1
  199. package/build/plugins/resource/bot/dotnet/errors.d.ts +5 -0
  200. package/build/plugins/resource/bot/dotnet/errors.d.ts.map +1 -0
  201. package/build/plugins/resource/bot/dotnet/errors.js +21 -0
  202. package/build/plugins/resource/bot/dotnet/errors.js.map +1 -0
  203. package/build/plugins/resource/bot/dotnet/plugin.d.ts +1 -0
  204. package/build/plugins/resource/bot/dotnet/plugin.d.ts.map +1 -1
  205. package/build/plugins/resource/bot/dotnet/plugin.js +28 -0
  206. package/build/plugins/resource/bot/dotnet/plugin.js.map +1 -1
  207. package/build/plugins/resource/bot/errors.d.ts +5 -16
  208. package/build/plugins/resource/bot/errors.d.ts.map +1 -1
  209. package/build/plugins/resource/bot/errors.js +68 -38
  210. package/build/plugins/resource/bot/errors.js.map +1 -1
  211. package/build/plugins/resource/bot/functionsHostedBot/deployMgr.d.ts.map +1 -1
  212. package/build/plugins/resource/bot/functionsHostedBot/deployMgr.js +7 -7
  213. package/build/plugins/resource/bot/functionsHostedBot/deployMgr.js.map +1 -1
  214. package/build/plugins/resource/bot/functionsHostedBot/plugin.d.ts.map +1 -1
  215. package/build/plugins/resource/bot/functionsHostedBot/plugin.js +16 -16
  216. package/build/plugins/resource/bot/functionsHostedBot/plugin.js.map +1 -1
  217. package/build/plugins/resource/bot/index.d.ts +1 -2
  218. package/build/plugins/resource/bot/index.d.ts.map +1 -1
  219. package/build/plugins/resource/bot/index.js +27 -76
  220. package/build/plugins/resource/bot/index.js.map +1 -1
  221. package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
  222. package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
  223. package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
  224. package/build/plugins/resource/bot/plugin.js +19 -24
  225. package/build/plugins/resource/bot/plugin.js.map +1 -1
  226. package/build/plugins/resource/bot/progressBars.d.ts +1 -1
  227. package/build/plugins/resource/bot/progressBars.d.ts.map +1 -1
  228. package/build/plugins/resource/bot/progressBars.js +6 -6
  229. package/build/plugins/resource/bot/progressBars.js.map +1 -1
  230. package/build/plugins/resource/bot/question.d.ts +5 -3
  231. package/build/plugins/resource/bot/question.d.ts.map +1 -1
  232. package/build/plugins/resource/bot/question.js +33 -1
  233. package/build/plugins/resource/bot/question.js.map +1 -1
  234. package/build/plugins/resource/bot/resources/messages.d.ts +0 -14
  235. package/build/plugins/resource/bot/resources/messages.d.ts.map +1 -1
  236. package/build/plugins/resource/bot/resources/messages.js +0 -41
  237. package/build/plugins/resource/bot/resources/messages.js.map +1 -1
  238. package/build/plugins/resource/bot/resources/strings.d.ts +2 -11
  239. package/build/plugins/resource/bot/resources/strings.d.ts.map +1 -1
  240. package/build/plugins/resource/bot/resources/strings.js +2 -15
  241. package/build/plugins/resource/bot/resources/strings.js.map +1 -1
  242. package/build/plugins/resource/bot/utils/common.d.ts +10 -0
  243. package/build/plugins/resource/bot/utils/common.d.ts.map +1 -1
  244. package/build/plugins/resource/bot/utils/common.js +92 -3
  245. package/build/plugins/resource/bot/utils/common.js.map +1 -1
  246. package/build/plugins/resource/bot/v2/common.d.ts +10 -0
  247. package/build/plugins/resource/bot/v2/common.d.ts.map +1 -0
  248. package/build/plugins/resource/bot/v2/common.js +73 -0
  249. package/build/plugins/resource/bot/v2/common.js.map +1 -0
  250. package/build/plugins/resource/bot/v2/enum.d.ts +10 -0
  251. package/build/plugins/resource/bot/v2/enum.d.ts.map +1 -0
  252. package/build/plugins/resource/bot/v2/enum.js +17 -0
  253. package/build/plugins/resource/bot/v2/enum.js.map +1 -0
  254. package/build/plugins/resource/bot/v2/index.d.ts +2 -0
  255. package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
  256. package/build/plugins/resource/bot/v2/index.js +22 -5
  257. package/build/plugins/resource/bot/v2/index.js.map +1 -1
  258. package/build/plugins/resource/bot/v2/interface/codeTemplateInfo.d.ts +10 -0
  259. package/build/plugins/resource/bot/v2/interface/codeTemplateInfo.d.ts.map +1 -0
  260. package/build/plugins/resource/bot/v2/interface/codeTemplateInfo.js +5 -0
  261. package/build/plugins/resource/bot/v2/interface/codeTemplateInfo.js.map +1 -0
  262. package/build/plugins/resource/bot/v2/mapping.d.ts +8 -0
  263. package/build/plugins/resource/bot/v2/mapping.d.ts.map +1 -0
  264. package/build/plugins/resource/bot/v2/mapping.js +91 -0
  265. package/build/plugins/resource/bot/v2/mapping.js.map +1 -0
  266. package/build/plugins/resource/bot/v2/plugin.d.ts +48 -0
  267. package/build/plugins/resource/bot/v2/plugin.d.ts.map +1 -0
  268. package/build/plugins/resource/bot/v2/plugin.js +303 -0
  269. package/build/plugins/resource/bot/v2/plugin.js.map +1 -0
  270. package/build/plugins/resource/bot/v2/scaffold.d.ts +5 -0
  271. package/build/plugins/resource/bot/v2/scaffold.d.ts.map +1 -0
  272. package/build/plugins/resource/bot/v2/scaffold.js +48 -0
  273. package/build/plugins/resource/bot/v2/scaffold.js.map +1 -0
  274. package/build/plugins/resource/bot/v3/index.d.ts.map +1 -1
  275. package/build/plugins/resource/bot/v3/index.js +7 -11
  276. package/build/plugins/resource/bot/v3/index.js.map +1 -1
  277. package/build/plugins/resource/cicd/plugin.d.ts.map +1 -1
  278. package/build/plugins/resource/cicd/plugin.js +7 -1
  279. package/build/plugins/resource/cicd/plugin.js.map +1 -1
  280. package/build/plugins/resource/frontend/dotnet/constants.d.ts +1 -13
  281. package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -1
  282. package/build/plugins/resource/frontend/dotnet/constants.js +4 -16
  283. package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -1
  284. package/build/plugins/resource/frontend/dotnet/enum.d.ts +0 -10
  285. package/build/plugins/resource/frontend/dotnet/enum.d.ts.map +1 -1
  286. package/build/plugins/resource/frontend/dotnet/enum.js +1 -12
  287. package/build/plugins/resource/frontend/dotnet/enum.js.map +1 -1
  288. package/build/plugins/resource/frontend/dotnet/ops/scaffold.js +2 -2
  289. package/build/plugins/resource/frontend/dotnet/ops/scaffold.js.map +1 -1
  290. package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -1
  291. package/build/plugins/resource/frontend/dotnet/plugin.js +12 -48
  292. package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -1
  293. package/build/plugins/resource/frontend/dotnet/resources/templateInfo.d.ts +2 -7
  294. package/build/plugins/resource/frontend/dotnet/resources/templateInfo.d.ts.map +1 -1
  295. package/build/plugins/resource/frontend/dotnet/resources/templateInfo.js +5 -31
  296. package/build/plugins/resource/frontend/dotnet/resources/templateInfo.js.map +1 -1
  297. package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
  298. package/build/plugins/resource/frontend/v2/index.js +1 -3
  299. package/build/plugins/resource/frontend/v2/index.js.map +1 -1
  300. package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
  301. package/build/plugins/solution/fx-solution/arm.js +5 -7
  302. package/build/plugins/solution/fx-solution/arm.js.map +1 -1
  303. package/build/plugins/solution/fx-solution/constants.d.ts +5 -2
  304. package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
  305. package/build/plugins/solution/fx-solution/constants.js +3 -0
  306. package/build/plugins/solution/fx-solution/constants.js.map +1 -1
  307. package/build/plugins/solution/fx-solution/debug/provisionLocal.js +2 -2
  308. package/build/plugins/solution/fx-solution/question.d.ts +1 -0
  309. package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
  310. package/build/plugins/solution/fx-solution/question.js +7 -1
  311. package/build/plugins/solution/fx-solution/question.js.map +1 -1
  312. package/build/plugins/solution/fx-solution/v2/listCollaborator.d.ts.map +1 -1
  313. package/build/plugins/solution/fx-solution/v2/listCollaborator.js +2 -1
  314. package/build/plugins/solution/fx-solution/v2/listCollaborator.js.map +1 -1
  315. package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
  316. package/build/plugins/solution/fx-solution/v2/provision.js +29 -1
  317. package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
  318. package/build/plugins/solution/fx-solution/v3/constants.d.ts +0 -1
  319. package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
  320. package/build/plugins/solution/fx-solution/v3/constants.js +0 -1
  321. package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
  322. package/build/plugins/solution/fx-solution/v3/userTask.d.ts.map +1 -1
  323. package/build/plugins/solution/fx-solution/v3/userTask.js +5 -12
  324. package/build/plugins/solution/fx-solution/v3/userTask.js.map +1 -1
  325. package/package.json +8 -3
  326. package/resource/package.nls.cs.json +642 -0
  327. package/resource/package.nls.de.json +642 -0
  328. package/resource/package.nls.es.json +642 -0
  329. package/resource/package.nls.fr.json +642 -0
  330. package/resource/package.nls.it.json +642 -0
  331. package/resource/package.nls.ja.json +642 -0
  332. package/resource/package.nls.json +29 -19
  333. package/resource/package.nls.ko.json +642 -0
  334. package/resource/package.nls.pl.json +642 -0
  335. package/resource/package.nls.pt-BR.json +642 -0
  336. package/resource/package.nls.ru.json +642 -0
  337. package/resource/package.nls.tr.json +642 -0
  338. package/resource/package.nls.zh-Hans.json +642 -0
  339. package/resource/package.nls.zh-Hant.json +642 -0
  340. package/templates/bicep/azureSql.parameters.json +4 -0
  341. package/templates/bicep/azureSql.provisionDatabase.module.bicep +15 -0
  342. package/templates/bicep/azureSql.provisionDatabase.orchestration.bicep +5 -0
  343. package/templates/bicep/azureSql.provisionServer.module.bicep +44 -0
  344. package/templates/bicep/azureSql.provisionServer.orchestration.bicep +14 -0
  345. package/templates/bicep/azureWebApp.config.module.bicep +63 -0
  346. package/templates/bicep/azureWebApp.config.orchestration.bicep +12 -0
  347. package/templates/bicep/azureWebApp.parameters.json +4 -0
  348. package/templates/bicep/azureWebApp.provision.module.bicep +50 -0
  349. package/templates/bicep/azureWebApp.provision.orchestration.bicep +18 -0
  350. package/templates/bicep/botService.config.module.bicep +33 -0
  351. package/templates/bicep/botService.config.orchestration.bicep +8 -0
  352. package/templates/bicep/config.bicep +3 -0
  353. package/templates/bicep/main.bicep +18 -0
  354. package/templates/bicep/provision.bicep +2 -0
  355. package/templates/fallback/blazor-base.csharp.default.zip +0 -0
  356. package/templates/fallback/bot.csharp.command-and-response.zip +0 -0
  357. package/templates/fallback/bot.csharp.default.zip +0 -0
  358. package/templates/fallback/bot.csharp.notification-webapi.zip +0 -0
  359. package/templates/fallback/bot.js.command-and-response.zip +0 -0
  360. package/templates/fallback/bot.js.default.zip +0 -0
  361. package/templates/fallback/bot.js.m365.zip +0 -0
  362. package/templates/fallback/bot.js.notification-function-base.zip +0 -0
  363. package/templates/fallback/bot.js.notification-restify.zip +0 -0
  364. package/templates/fallback/bot.js.notification-trigger-http.zip +0 -0
  365. package/templates/fallback/bot.js.notification-trigger-timer.zip +0 -0
  366. package/templates/fallback/bot.ts.command-and-response.zip +0 -0
  367. package/templates/fallback/bot.ts.default.zip +0 -0
  368. package/templates/fallback/bot.ts.m365.zip +0 -0
  369. package/templates/fallback/bot.ts.notification-function-base.zip +0 -0
  370. package/templates/fallback/bot.ts.notification-restify.zip +0 -0
  371. package/templates/fallback/bot.ts.notification-trigger-http.zip +0 -0
  372. package/templates/fallback/bot.ts.notification-trigger-timer.zip +0 -0
  373. package/templates/fallback/bot.ts.notification.zip +0 -0
  374. package/templates/fallback/function-base.js.default.zip +0 -0
  375. package/templates/fallback/function-base.ts.default.zip +0 -0
  376. package/templates/fallback/function-triggers.js.HTTPTrigger.zip +0 -0
  377. package/templates/fallback/function-triggers.ts.HTTPTrigger.zip +0 -0
  378. package/templates/fallback/tab.csharp.default.zip +0 -0
  379. package/templates/fallback/tab.js.default.zip +0 -0
  380. package/templates/fallback/tab.js.m365.zip +0 -0
  381. package/templates/fallback/tab.js.non-sso.zip +0 -0
  382. package/templates/fallback/tab.ts.default.zip +0 -0
  383. package/templates/fallback/tab.ts.m365.zip +0 -0
  384. package/templates/fallback/tab.ts.non-sso.zip +0 -0
  385. package/templates/plugins/resource/aad/auth/bot/js/public/auth-end.html +8 -8
  386. package/templates/plugins/resource/aad/auth/bot/ts/public/auth-end.html +8 -8
  387. package/templates/plugins/resource/hosting/bicep/botFunction/botFunctionConfiguration.template.bicep +71 -0
  388. package/templates/plugins/resource/hosting/bicep/botFunction/botFunctionProvision.template.bicep +101 -0
  389. package/templates/plugins/resource/hosting/bicep/botFunction/config.template.bicep +12 -0
  390. package/templates/plugins/resource/hosting/bicep/botFunction/provision.template.bicep +20 -0
  391. package/templates/plugins/resource/hosting/bicep/botservice/botserviceProvision.template.bicep +34 -0
  392. package/templates/plugins/resource/hosting/bicep/botservice/parameters.json +4 -0
  393. package/templates/plugins/resource/hosting/bicep/botservice/provision.template.bicep +8 -0
  394. package/templates/plugins/resource/hosting/bicep/webapp/config.template.bicep +12 -0
  395. package/templates/plugins/resource/hosting/bicep/webapp/provision.template.bicep +20 -0
  396. package/templates/plugins/resource/hosting/bicep/webapp/webappConfiguration.template.bicep +66 -0
  397. package/templates/plugins/resource/hosting/bicep/webapp/webappProvision.template.bicep +63 -0
  398. package/build/plugins/resource/bot/azureOps.d.ts +0 -14
  399. package/build/plugins/resource/bot/azureOps.d.ts.map +0 -1
  400. package/build/plugins/resource/bot/azureOps.js +0 -140
  401. package/build/plugins/resource/bot/azureOps.js.map +0 -1
  402. package/build/plugins/resource/bot/functionsHostedBot/constants.d.ts +0 -13
  403. package/build/plugins/resource/bot/functionsHostedBot/constants.d.ts.map +0 -1
  404. package/build/plugins/resource/bot/functionsHostedBot/constants.js +0 -20
  405. package/build/plugins/resource/bot/functionsHostedBot/constants.js.map +0 -1
@@ -0,0 +1,101 @@
1
+ @secure()
2
+ param provisionParameters object
3
+ param userAssignedIdentityId string
4
+
5
+ var resourceBaseName = provisionParameters.resourceBaseName
6
+ var serverfarmsName = contains(provisionParameters, 'botServerfarmsName') ? provisionParameters['botServerfarmsName'] : '${resourceBaseName}bot' // Try to read name for App Service Plan from parameters
7
+ var functionSKU = contains(provisionParameters, 'botFunctionAppSKU') ? provisionParameters['botFunctionAppSKU'] : 'B1' // Try to read SKU for Azure Web App from parameters
8
+ var functionAppName = contains(provisionParameters, 'botSitesName') ? provisionParameters['botSitesName'] : '${resourceBaseName}bot' // Try to read name for Azure Web App from parameters
9
+ var storageName = contains(provisionParameters, 'botStorageName') ? provisionParameters['botStorageName'] : '${resourceBaseName}bot' // Try to read name for Azure Storage from parameters
10
+ var storageSku = contains(provisionParameters, 'botStorageSku') ? provisionParameters['botStorageSku'] : 'Standard_LRS' // Try to read SKU for Azure Storage from parameters
11
+
12
+ // Compute resources for your Function App
13
+ resource serverfarm 'Microsoft.Web/serverfarms@2021-02-01' = {
14
+ kind: 'functionapp'
15
+ location: resourceGroup().location
16
+ name: serverfarmsName
17
+ sku: {
18
+ name: functionSKU
19
+ }
20
+ }
21
+
22
+ // Azure Storage is required when creating Azure Functions instance
23
+ resource storage 'Microsoft.Storage/storageAccounts@2021-06-01' = {
24
+ name: storageName
25
+ kind: 'StorageV2'
26
+ location: resourceGroup().location
27
+ sku: {
28
+ name: storageSku // You can follow https://aka.ms/teamsfx-bicep-add-param-tutorial to add functionStorageSku property to provisionParameters to override the default value "Standard_LRS".
29
+ }
30
+ }
31
+
32
+ // Function App that hosts your bot
33
+ resource functionApp 'Microsoft.Web/sites@2021-02-01' = {
34
+ kind: 'functionapp'
35
+ location: resourceGroup().location
36
+ name: functionAppName
37
+ properties: {
38
+ serverFarmId: serverfarm.id
39
+ keyVaultReferenceIdentity: userAssignedIdentityId // Use given user assigned identity to access Key Vault
40
+ httpsOnly: true
41
+ siteConfig: {
42
+ alwaysOn: true
43
+ appSettings: [
44
+ {
45
+ name: 'AzureWebJobsDashboard'
46
+ value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};AccountKey=${listKeys(storage.id, storage.apiVersion).keys[0].value};EndpointSuffix=${environment().suffixes.storage}' // Azure Functions internal setting
47
+ }
48
+ {
49
+ name: 'AzureWebJobsStorage'
50
+ value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};AccountKey=${listKeys(storage.id, storage.apiVersion).keys[0].value};EndpointSuffix=${environment().suffixes.storage}' // Azure Functions internal setting
51
+ }
52
+ {
53
+ name: 'FUNCTIONS_EXTENSION_VERSION'
54
+ value: '~4' // Use Azure Functions runtime v4
55
+ }
56
+ {
57
+ name: 'FUNCTIONS_WORKER_RUNTIME'
58
+ value: 'node' // Set runtime to NodeJS
59
+ }
60
+ {
61
+ name: 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING'
62
+ value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};AccountKey=${listKeys(storage.id, storage.apiVersion).keys[0].value};EndpointSuffix=${environment().suffixes.storage}' // Azure Functions internal setting
63
+ }
64
+ {
65
+ name: 'WEBSITE_RUN_FROM_PACKAGE'
66
+ value: '1' // Run Azure Functions from a package file
67
+ }
68
+ {{#if (contains "node" configs)}}
69
+ {
70
+ name: 'WEBSITE_NODE_DEFAULT_VERSION'
71
+ value: '~16' // Set NodeJS version to 16.x
72
+ }
73
+ {{/if}}
74
+ {{#if (contains "running-on-azure" configs)}}
75
+ {
76
+ name: 'RUNNING_ON_AZURE'
77
+ value: '1'
78
+ }
79
+ {
80
+ name: 'SCM_ZIPDEPLOY_DONOT_PRESERVE_FILETIME'
81
+ value: '1' // Zipdeploy files will always be updated. Detail: https://aka.ms/teamsfx-zipdeploy-donot-preserve-filetime
82
+ }
83
+ {{/if}}
84
+ ]
85
+ ftpsState: 'FtpsOnly'
86
+ }
87
+ }
88
+ identity: {
89
+ type: 'UserAssigned'
90
+ userAssignedIdentities: {
91
+ '${userAssignedIdentityId}': {} // The identity is used to access other Azure resources
92
+ }
93
+ }
94
+ }
95
+
96
+ output functionSKU string = functionSKU
97
+ output functionName string = functionAppName
98
+ output domain string = functionApp.properties.defaultHostName
99
+ output appServicePlanName string = serverfarmsName
100
+ output functionResourceId string = functionApp.id
101
+ output functionEndpoint string = 'https://${functionApp.properties.defaultHostName}'
@@ -0,0 +1,12 @@
1
+ // Get existing app settings for merge
2
+ var botFunctionCurrentAppSettings = list('${provisionOutputs.botFunctionOutput.value.botWebAppResourceId}/config/appsettings', '2021-02-01').properties
3
+
4
+ // Merge TeamsFx configurations to Function resources
5
+ module teamsFxBotFunctionConfig '\{{PluginIdPlaceholder.Configuration.botFunction.path}}' = {
6
+ name: 'addTeamsFxBotFunctionConfiguration'
7
+ params: {
8
+ provisionParameters: provisionParameters
9
+ provisionOutputs: provisionOutputs
10
+ currentAppSettings: botFunctionCurrentAppSettings
11
+ }
12
+ }
@@ -0,0 +1,20 @@
1
+ // Resources for bot
2
+ module botFunctionProvision '\{{PluginIdPlaceholder.Provision.botFunction.path}}' = {
3
+ name: 'botFunctionProvision'
4
+ params: {
5
+ provisionParameters: provisionParameters
6
+ {{#if (contains "fx-resource-identity" plugins)}}
7
+ userAssignedIdentityId: \{{fx-resource-identity.References.identityResourceId}}
8
+ {{/if}}
9
+ }
10
+ }
11
+
12
+ output botFunctionOutput object = {
13
+ teamsFxPluginId: 'PluginIdPlaceholder'
14
+ skuName: botFunctionProvision.outputs.functionSKU
15
+ siteName: botFunctionProvision.outputs.functionName
16
+ validDomain: botFunctionProvision.outputs.domain
17
+ appServicePlanName: botFunctionProvision.outputs.appServicePlanName
18
+ botWebAppResourceId: botFunctionProvision.outputs.functionResourceId
19
+ siteEndpoint: botFunctionProvision.outputs.functionEndpoint
20
+ }
@@ -0,0 +1,34 @@
1
+ @secure()
2
+ param provisionParameters object
3
+ param botEndpoint string
4
+
5
+ var resourceBaseName = provisionParameters.resourceBaseName
6
+ var botAadAppClientId = provisionParameters['botAadAppClientId'] // Read AAD app client id for Azure Bot Service from parameters
7
+ var botServiceName = contains(provisionParameters, 'botServiceName') ? provisionParameters['botServiceName'] : '${resourceBaseName}' // Try to read name for Azure Bot Service from parameters
8
+ var botServiceSku = contains(provisionParameters, 'botServiceSku') ? provisionParameters['botServiceSku'] : 'F0' // Try to read SKU for Azure Bot Service from parameters
9
+ var botDisplayName = contains(provisionParameters, 'botDisplayName') ? provisionParameters['botDisplayName'] : '${resourceBaseName}' // Try to read display name for Azure Bot Service from parameters
10
+
11
+ // Register your web service as a bot with the Bot Framework
12
+ resource botService 'Microsoft.BotService/botServices@2021-03-01' = {
13
+ kind: 'azurebot'
14
+ location: 'global'
15
+ name: botServiceName
16
+ properties: {
17
+ displayName: botDisplayName
18
+ endpoint: uri(botEndpoint, '/api/messages')
19
+ msaAppId: botAadAppClientId
20
+ }
21
+ sku: {
22
+ name: botServiceSku // You can follow https://aka.ms/teamsfx-bicep-add-param-tutorial to add botServiceSku property to provisionParameters to override the default value "F0".
23
+ }
24
+ }
25
+
26
+ // Connect the bot service to Microsoft Teams
27
+ resource botServiceMsTeamsChannel 'Microsoft.BotService/botServices/channels@2021-03-01' = {
28
+ parent: botService
29
+ location: 'global'
30
+ name: 'MsTeamsChannel'
31
+ properties: {
32
+ channelName: 'MsTeamsChannel'
33
+ }
34
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "botAadAppClientId": "{{state.fx-resource-bot.botId}}",
3
+ "botAadAppClientSecret": "{{state.fx-resource-bot.botPassword}}"
4
+ }
@@ -0,0 +1,8 @@
1
+ // Resources for bot
2
+ module botProvision '\{{fx-resource-bot.Provision.botservice.path}}' = {
3
+ name: 'botProvision'
4
+ params: {
5
+ provisionParameters: provisionParameters
6
+ botEndpoint: \{{fx-resource-bot.References.endpointAsParam}}
7
+ }
8
+ }
@@ -0,0 +1,12 @@
1
+ // Get existing app settings for merge
2
+ var botCurrentAppSettings = list('${provisionOutputs.webAppOutput.value.botWebAppResourceId}/config/appsettings', '2021-02-01').properties
3
+
4
+ // Merge TeamsFx configurations to Bot resources
5
+ module teamsFxBotConfig '\{{PluginIdPlaceholder.Configuration.webapp.path}}' = {
6
+ name: 'addTeamsFxBotConfiguration'
7
+ params: {
8
+ provisionParameters: provisionParameters
9
+ provisionOutputs: provisionOutputs
10
+ currentAppSettings: botCurrentAppSettings
11
+ }
12
+ }
@@ -0,0 +1,20 @@
1
+ // Resources for bot
2
+ module webAppProvision '\{{PluginIdPlaceholder.Provision.webapp.path}}' = {
3
+ name: 'webAppProvision'
4
+ params: {
5
+ provisionParameters: provisionParameters
6
+ {{#if (contains "fx-resource-identity" plugins)}}
7
+ userAssignedIdentityId: \{{fx-resource-identity.References.identityResourceId}}
8
+ {{/if}}
9
+ }
10
+ }
11
+
12
+ output webAppOutput object = {
13
+ teamsFxPluginId: 'PluginIdPlaceholder'
14
+ skuName: webAppProvision.outputs.webAppSKU
15
+ siteName: webAppProvision.outputs.webAppName
16
+ validDomain: webAppProvision.outputs.webAppDomain
17
+ appServicePlanName: webAppProvision.outputs.appServicePlanName
18
+ botWebAppResourceId: webAppProvision.outputs.webAppResourceId
19
+ siteEndpoint: webAppProvision.outputs.webAppEndpoint
20
+ }
@@ -0,0 +1,66 @@
1
+ // Auto generated content, please customize files under provision folder
2
+
3
+ @secure()
4
+ param provisionParameters object
5
+ param provisionOutputs object
6
+ @secure()
7
+ param currentAppSettings object
8
+
9
+ var botWebAppName = split(provisionOutputs.webAppOutput.value.botWebAppResourceId, '/')[8]
10
+
11
+ {{#if (contains "fx-resource-aad-app-for-teams" plugins)}}
12
+ var m365ClientId = provisionParameters['m365ClientId']
13
+
14
+ {{#if (contains "fx-resource-key-vault" plugins) }}
15
+ var m365ClientSecret = \{{fx-resource-key-vault.References.m365ClientSecretReference}}
16
+ {{else}}
17
+ var m365ClientSecret = provisionParameters['m365ClientSecret']
18
+ {{/if}}
19
+
20
+ var m365TenantId = provisionParameters['m365TenantId']
21
+ var m365OauthAuthorityHost = provisionParameters['m365OauthAuthorityHost']
22
+
23
+ {{#if (contains "fx-resource-frontend-hosting" plugins)}}
24
+ {{#if (contains "fx-resource-bot" plugins) }}
25
+ var m365ApplicationIdUri = 'api://${ \{{fx-resource-frontend-hosting.References.domain}} }/botid-${botId}'
26
+ {{/if}}
27
+ {{else}}
28
+ var m365ApplicationIdUri = 'api://botid-${botId}'
29
+ {{/if}}
30
+ {{/if}}
31
+
32
+ var botAadAppClientId = provisionParameters['botAadAppClientId']
33
+
34
+ {{#if (contains "fx-resource-key-vault" plugins) }}
35
+ var botAadAppClientSecret = \{{fx-resource-key-vault.References.botClientSecretReference}}
36
+ {{else}}
37
+ var botAadAppClientSecret = provisionParameters['botAadAppClientSecret']
38
+ {{/if}}
39
+
40
+ var botId = provisionParameters['botAadAppClientId']
41
+
42
+ resource botWebAppSettings 'Microsoft.Web/sites/config@2021-02-01' = {
43
+ name: '${botWebAppName}/appsettings'
44
+ properties: union({
45
+ {{#if (contains "fx-resource-aad-app-for-teams" plugins)}}
46
+ INITIATE_LOGIN_ENDPOINT: uri(provisionOutputs.webAppOutput.value.siteEndpoint, 'auth-start.html') // The page is used to let users consent required OAuth permissions during bot SSO process
47
+ M365_AUTHORITY_HOST: m365OauthAuthorityHost // AAD authority host
48
+ M365_CLIENT_ID: m365ClientId // Client id of AAD application
49
+ M365_CLIENT_SECRET: m365ClientSecret // Client secret of AAD application
50
+ M365_TENANT_ID: m365TenantId // Tenant id of AAD application
51
+ M365_APPLICATION_ID_URI: m365ApplicationIdUri // Application ID URI of AAD application
52
+ {{/if}}
53
+ BOT_ID: botAadAppClientId // ID of your bot
54
+ BOT_PASSWORD: botAadAppClientSecret // Secret of your bot
55
+ {{#if (contains "fx-resource-function" plugins) }}
56
+ API_ENDPOINT: provisionOutputs.functionOutput.value.functionEndpoint // Azure Function endpoint
57
+ {{/if}}
58
+ {{#if (contains "fx-resource-azure-sql" plugins)}}
59
+ SQL_DATABASE_NAME: \{{fx-resource-azure-sql.References.databaseName}} // SQL database name
60
+ SQL_ENDPOINT: \{{fx-resource-azure-sql.References.sqlEndpoint}} // SQL server endpoint
61
+ {{/if}}
62
+ {{#if (contains "fx-resource-identity" plugins)}}
63
+ IDENTITY_ID: \{{fx-resource-identity.References.identityClientId}} // User assigned identity id, the identity is used to access other Azure resources
64
+ {{/if}}
65
+ }, currentAppSettings)
66
+ }
@@ -0,0 +1,63 @@
1
+ @secure()
2
+ param provisionParameters object
3
+ param userAssignedIdentityId string
4
+
5
+ var resourceBaseName = provisionParameters.resourceBaseName
6
+ var serverfarmsName = contains(provisionParameters, 'botServerfarmsName') ? provisionParameters['botServerfarmsName'] : '${resourceBaseName}bot' // Try to read name for App Service Plan from parameters
7
+ var webAppSKU = contains(provisionParameters, 'botWebAppSKU') ? provisionParameters['botWebAppSKU'] : 'B1' // Try to read SKU for Azure Web App from parameters
8
+ var webAppName = contains(provisionParameters, 'botSitesName') ? provisionParameters['botSitesName'] : '${resourceBaseName}bot' // Try to read name for Azure Web App from parameters
9
+
10
+ // Compute resources for your Web App
11
+ resource serverfarm 'Microsoft.Web/serverfarms@2021-02-01' = {
12
+ kind: 'app'
13
+ location: resourceGroup().location
14
+ name: serverfarmsName
15
+ sku: {
16
+ name: webAppSKU
17
+ }
18
+ }
19
+
20
+ // Web App that hosts your bot
21
+ resource webApp 'Microsoft.Web/sites@2021-02-01' = {
22
+ kind: 'app'
23
+ location: resourceGroup().location
24
+ name: webAppName
25
+ properties: {
26
+ serverFarmId: serverfarm.id
27
+ keyVaultReferenceIdentity: userAssignedIdentityId // Use given user assigned identity to access Key Vault
28
+ httpsOnly: true
29
+ siteConfig: {
30
+ alwaysOn: true
31
+ appSettings: [
32
+ {
33
+ name: 'SCM_DO_BUILD_DURING_DEPLOYMENT'
34
+ value: 'true' // Execute build steps on your site during deployment
35
+ }
36
+ {{#if (contains "node" configs)}}
37
+ {
38
+ name: 'WEBSITE_NODE_DEFAULT_VERSION'
39
+ value: '~14' // Set NodeJS version to 14.x for your site
40
+ }
41
+ {{/if}}
42
+ {
43
+ name: 'RUNNING_ON_AZURE'
44
+ value: '1'
45
+ }
46
+ ]
47
+ ftpsState: 'FtpsOnly'
48
+ }
49
+ }
50
+ identity: {
51
+ type: 'UserAssigned'
52
+ userAssignedIdentities: {
53
+ '${userAssignedIdentityId}': {} // The identity is used to access other Azure resources
54
+ }
55
+ }
56
+ }
57
+
58
+ output webAppSKU string = webAppSKU
59
+ output webAppName string = webAppName
60
+ output webAppDomain string = webApp.properties.defaultHostName
61
+ output appServicePlanName string = serverfarmsName
62
+ output webAppResourceId string = webApp.id
63
+ output webAppEndpoint string = 'https://${webApp.properties.defaultHostName}'
@@ -1,14 +0,0 @@
1
- /// <reference types="node" />
2
- import { AzureBotService } from "@azure/arm-botservice";
3
- import * as appService from "@azure/arm-appservice";
4
- export declare class AzureOperations {
5
- private static readonly axiosInstance;
6
- static UpdateBotChannelRegistration(botClient: AzureBotService, resourceGroup: string, botChannelRegistrationName: string, msaAppId: string, endpoint: string, displayName?: string): Promise<void>;
7
- static LinkTeamsChannel(botClient: AzureBotService, resourceGroup: string, botChannelRegistrationName: string): Promise<void>;
8
- static CreateOrUpdateAzureWebApp(webSiteMgmtClient: appService.WebSiteManagementClient, resourceGroup: string, siteName: string, siteEnvelope: appService.WebSiteManagementModels.Site, update?: boolean): Promise<any>;
9
- static ListPublishingCredentials(webSiteMgmtClient: appService.WebSiteManagementClient, resourceGroup: string, siteName: string): Promise<any>;
10
- static ZipDeployPackage(zipDeployEndpoint: string, zipBuffer: Buffer, config: any): Promise<string>;
11
- static CheckDeployStatus(location: string, config: any): Promise<void>;
12
- static RestartWebApp(webSiteMgmtClient: appService.WebSiteManagementClient, resourceGroup: string, siteName: string): Promise<void>;
13
- }
14
- //# sourceMappingURL=azureOps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azureOps.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/azureOps.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AAiBpD,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAkB;WAEnC,4BAA4B,CAC9C,SAAS,EAAE,eAAe,EAC1B,aAAa,EAAE,MAAM,EACrB,0BAA0B,EAAE,MAAM,EAClC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC;WAmBI,gBAAgB,CAClC,SAAS,EAAE,eAAe,EAC1B,aAAa,EAAE,MAAM,EACrB,0BAA0B,EAAE,MAAM,GACjC,OAAO,CAAC,IAAI,CAAC;WA2BI,yBAAyB,CAC3C,iBAAiB,EAAE,UAAU,CAAC,uBAAuB,EACrD,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,UAAU,CAAC,uBAAuB,CAAC,IAAI,EACrD,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,GAAG,CAAC;WA2BK,yBAAyB,CAC3C,iBAAiB,EAAE,UAAU,CAAC,uBAAuB,EACrD,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,GAAG,CAAC;WAkBK,gBAAgB,CAClC,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,GAAG,GACV,OAAO,CAAC,MAAM,CAAC;WAeE,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;WAuB/D,aAAa,CAC/B,iBAAiB,EAAE,UAAU,CAAC,uBAAuB,EACrD,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC;CAYjB"}
@@ -1,140 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.AzureOperations = void 0;
6
- const tslib_1 = require("tslib");
7
- const errors_1 = require("./errors");
8
- const strings_1 = require("./resources/strings");
9
- const utils = tslib_1.__importStar(require("./utils/common"));
10
- const axios_1 = tslib_1.__importDefault(require("axios"));
11
- const common_1 = require("../../../common");
12
- const constants_1 = require("./constants");
13
- class AzureOperations {
14
- static async UpdateBotChannelRegistration(botClient, resourceGroup, botChannelRegistrationName, msaAppId, endpoint, displayName) {
15
- let botResponse = undefined;
16
- try {
17
- botResponse = await botClient.bots.update(resourceGroup, botChannelRegistrationName, {
18
- properties: {
19
- displayName: displayName !== null && displayName !== void 0 ? displayName : botChannelRegistrationName,
20
- endpoint: endpoint,
21
- msaAppId: msaAppId,
22
- },
23
- });
24
- }
25
- catch (e) {
26
- throw new errors_1.MessageEndpointUpdatingError(endpoint, e);
27
- }
28
- if (!botResponse || !utils.isHttpCodeOkOrCreated(botResponse._response.status)) {
29
- throw new errors_1.MessageEndpointUpdatingError(endpoint);
30
- }
31
- }
32
- static async LinkTeamsChannel(botClient, resourceGroup, botChannelRegistrationName) {
33
- let channelResponse = undefined;
34
- try {
35
- channelResponse = await botClient.channels.create(resourceGroup, botChannelRegistrationName, "MsTeamsChannel", {
36
- location: "global",
37
- kind: "bot",
38
- properties: {
39
- channelName: "MsTeamsChannel",
40
- properties: {
41
- isEnabled: true,
42
- },
43
- },
44
- });
45
- }
46
- catch (e) {
47
- throw new errors_1.ProvisionError(strings_1.CommonStrings.MS_TEAMS_CHANNEL, e);
48
- }
49
- if (!channelResponse || !utils.isHttpCodeOkOrCreated(channelResponse._response.status)) {
50
- throw new errors_1.ProvisionError(strings_1.CommonStrings.MS_TEAMS_CHANNEL);
51
- }
52
- }
53
- static async CreateOrUpdateAzureWebApp(webSiteMgmtClient, resourceGroup, siteName, siteEnvelope, update) {
54
- let webappResponse = undefined;
55
- try {
56
- webappResponse = await webSiteMgmtClient.webApps.createOrUpdate(resourceGroup, siteName, siteEnvelope);
57
- }
58
- catch (e) {
59
- if (!update) {
60
- throw new errors_1.ProvisionError(strings_1.CommonStrings.AZURE_WEB_APP, e);
61
- }
62
- else {
63
- throw new errors_1.ConfigUpdatingError(strings_1.ConfigNames.AZURE_WEB_APP_AUTH_CONFIGS, e);
64
- }
65
- }
66
- if (!webappResponse || !utils.isHttpCodeOkOrCreated(webappResponse._response.status)) {
67
- if (!update) {
68
- throw new errors_1.ProvisionError(strings_1.CommonStrings.AZURE_WEB_APP);
69
- }
70
- else {
71
- throw new errors_1.ConfigUpdatingError(strings_1.ConfigNames.AZURE_WEB_APP_AUTH_CONFIGS);
72
- }
73
- }
74
- return webappResponse;
75
- }
76
- static async ListPublishingCredentials(webSiteMgmtClient, resourceGroup, siteName) {
77
- let listResponse = undefined;
78
- try {
79
- listResponse = await webSiteMgmtClient.webApps.listPublishingCredentials(resourceGroup, siteName);
80
- }
81
- catch (e) {
82
- throw new errors_1.ListPublishingCredentialsError(e);
83
- }
84
- if (!listResponse || !utils.isHttpCodeOkOrCreated(listResponse._response.status)) {
85
- throw new errors_1.ListPublishingCredentialsError();
86
- }
87
- return listResponse;
88
- }
89
- static async ZipDeployPackage(zipDeployEndpoint, zipBuffer, config) {
90
- let res = undefined;
91
- try {
92
- res = await AzureOperations.axiosInstance.post(zipDeployEndpoint, zipBuffer, config);
93
- }
94
- catch (e) {
95
- throw new errors_1.ZipDeployError(e);
96
- }
97
- if (!res || !utils.isHttpCodeAccepted(res === null || res === void 0 ? void 0 : res.status)) {
98
- throw new errors_1.ZipDeployError();
99
- }
100
- return res.headers.location;
101
- }
102
- static async CheckDeployStatus(location, config) {
103
- let res = undefined;
104
- for (let i = 0; i < constants_1.DeployStatus.RETRY_TIMES; ++i) {
105
- try {
106
- res = await AzureOperations.axiosInstance.get(location, config);
107
- }
108
- catch (e) {
109
- throw new errors_1.DeployStatusError(e);
110
- }
111
- if (res) {
112
- if (utils.isHttpCodeAccepted(res === null || res === void 0 ? void 0 : res.status)) {
113
- await common_1.waitSeconds(constants_1.DeployStatus.BACKOFF_TIME_S);
114
- }
115
- else if (utils.isHttpCodeOkOrCreated(res === null || res === void 0 ? void 0 : res.status)) {
116
- return;
117
- }
118
- else {
119
- throw new errors_1.DeployStatusError();
120
- }
121
- }
122
- }
123
- throw new errors_1.DeployTimeoutError();
124
- }
125
- static async RestartWebApp(webSiteMgmtClient, resourceGroup, siteName) {
126
- let res = undefined;
127
- try {
128
- res = await webSiteMgmtClient.webApps.restart(resourceGroup, siteName);
129
- }
130
- catch (e) {
131
- throw new errors_1.RestartWebAppError(e);
132
- }
133
- if (!res || !utils.isHttpCodeOkOrCreated(res === null || res === void 0 ? void 0 : res._response.status)) {
134
- throw new errors_1.RestartWebAppError();
135
- }
136
- }
137
- }
138
- exports.AzureOperations = AzureOperations;
139
- AzureOperations.axiosInstance = axios_1.default.create();
140
- //# sourceMappingURL=azureOps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azureOps.js","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/azureOps.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAIlC,qCASkB;AAClB,iDAAiE;AACjE,8DAAwC;AACxC,0DAAyC;AACzC,4CAA8C;AAC9C,2CAA2C;AAE3C,MAAa,eAAe;IAGnB,MAAM,CAAC,KAAK,CAAC,4BAA4B,CAC9C,SAA0B,EAC1B,aAAqB,EACrB,0BAAkC,EAClC,QAAgB,EAChB,QAAgB,EAChB,WAAoB;QAEp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AAK,CAAC,qBAAqB,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,MAAM,CAAC,EAAE;oBACnD,OAAO;iBACR;qBAAM;oBACL,MAAM,IAAI,0BAAiB,EAAE,CAAC;iBAC/B;aACF;SACF;QAED,MAAM,IAAI,2BAAkB,EAAE,CAAC;IACjC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,aAAa,CAC/B,iBAAqD,EACrD,aAAqB,EACrB,QAAgB;QAEhB,IAAI,GAAG,GAAG,SAAS,CAAC;QACpB,IAAI;YACF,GAAG,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;SACxE;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,IAAI,2BAAkB,CAAC,CAAC,CAAC,CAAC;SACjC;QAED,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,SAAS,CAAC,MAAM,CAAC,EAAE;YAC/D,MAAM,IAAI,2BAAkB,EAAE,CAAC;SAChC;IACH,CAAC;;AA5KH,0CA6KC;AA5KyB,6BAAa,GAAG,eAAK,CAAC,MAAM,EAAE,CAAC"}
@@ -1,13 +0,0 @@
1
- export declare class CommonConstants {
2
- static readonly msInOneSecond: number;
3
- static readonly zipTimeMSGranularity: number;
4
- static readonly latestTrustMtime: number;
5
- static readonly deployTimeoutInMs: number;
6
- }
7
- export declare class FuncHostedBotDeployConfigs {
8
- static readonly DEPLOYMENT_INFO_FILE = "deployment.json";
9
- static readonly DEPLOYMENT_ZIP_CACHE_FILE = "deployment.zip";
10
- static readonly FUNC_IGNORE_FILE = ".funcignore";
11
- static readonly GIT_IGNORE_FILE = ".gitignore";
12
- }
13
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/functionsHostedBot/constants.ts"],"names":[],"mappings":"AAGA,qBAAa,eAAe;IAC1B,gBAAuB,aAAa,EAAE,MAAM,CAAQ;IACpD,gBAAuB,oBAAoB,EAAE,MAAM,CAAqC;IACxF,gBAAuB,gBAAgB,EAAE,MAAM,CAAkC;IACjF,gBAAuB,iBAAiB,EAAE,MAAM,CAAkB;CACnE;AAED,qBAAa,0BAA0B;IACrC,gBAAuB,oBAAoB,qBAAqB;IAChE,gBAAuB,yBAAyB,oBAAoB;IACpE,gBAAuB,gBAAgB,iBAAiB;IACxD,gBAAuB,eAAe,gBAAgB;CACvD"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.FuncHostedBotDeployConfigs = exports.CommonConstants = void 0;
6
- class CommonConstants {
7
- }
8
- exports.CommonConstants = CommonConstants;
9
- CommonConstants.msInOneSecond = 1000;
10
- CommonConstants.zipTimeMSGranularity = 2 * CommonConstants.msInOneSecond;
11
- CommonConstants.latestTrustMtime = new Date(2000, 1, 1).getTime();
12
- CommonConstants.deployTimeoutInMs = 10 * 60 * 1000;
13
- class FuncHostedBotDeployConfigs {
14
- }
15
- exports.FuncHostedBotDeployConfigs = FuncHostedBotDeployConfigs;
16
- FuncHostedBotDeployConfigs.DEPLOYMENT_INFO_FILE = "deployment.json";
17
- FuncHostedBotDeployConfigs.DEPLOYMENT_ZIP_CACHE_FILE = "deployment.zip";
18
- FuncHostedBotDeployConfigs.FUNC_IGNORE_FILE = ".funcignore";
19
- FuncHostedBotDeployConfigs.GIT_IGNORE_FILE = ".gitignore";
20
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/functionsHostedBot/constants.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,MAAa,eAAe;;AAA5B,0CAKC;AAJwB,6BAAa,GAAW,IAAI,CAAC;AAC7B,oCAAoB,GAAW,CAAC,GAAG,eAAe,CAAC,aAAa,CAAC;AACjE,gCAAgB,GAAW,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;AAC1D,iCAAiB,GAAW,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAGpE,MAAa,0BAA0B;;AAAvC,gEAKC;AAJwB,+CAAoB,GAAG,iBAAiB,CAAC;AACzC,oDAAyB,GAAG,gBAAgB,CAAC;AAC7C,2CAAgB,GAAG,aAAa,CAAC;AACjC,0CAAe,GAAG,YAAY,CAAC"}