@microsoft/teamsfx-core 1.2.0 → 1.2.2-alpha.29989668.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 (708) hide show
  1. package/build/common/armInterface.d.ts +0 -20
  2. package/build/common/armInterface.d.ts.map +1 -1
  3. package/build/common/deps-checker/constant/message.d.ts +0 -1
  4. package/build/common/deps-checker/constant/message.d.ts.map +1 -1
  5. package/build/common/deps-checker/constant/message.js +0 -4
  6. package/build/common/deps-checker/constant/message.js.map +1 -1
  7. package/build/common/deps-checker/depsChecker.d.ts +1 -0
  8. package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
  9. package/build/common/deps-checker/depsChecker.js.map +1 -1
  10. package/build/common/deps-checker/depsManager.d.ts +2 -1
  11. package/build/common/deps-checker/depsManager.d.ts.map +1 -1
  12. package/build/common/deps-checker/depsManager.js +12 -7
  13. package/build/common/deps-checker/depsManager.js.map +1 -1
  14. package/build/common/deps-checker/index.d.ts +1 -0
  15. package/build/common/deps-checker/index.d.ts.map +1 -1
  16. package/build/common/deps-checker/index.js +1 -0
  17. package/build/common/deps-checker/index.js.map +1 -1
  18. package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
  19. package/build/common/deps-checker/internal/dotnetChecker.js +2 -1
  20. package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
  21. package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
  22. package/build/common/deps-checker/internal/funcToolChecker.js +2 -1
  23. package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
  24. package/build/common/deps-checker/internal/ngrokChecker.d.ts +1 -1
  25. package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -1
  26. package/build/common/deps-checker/internal/ngrokChecker.js +2 -4
  27. package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -1
  28. package/build/common/deps-checker/internal/nodeChecker.d.ts +1 -0
  29. package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
  30. package/build/common/deps-checker/internal/nodeChecker.js +9 -1
  31. package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
  32. package/build/common/deps-checker/util/extensionInstaller.d.ts +3 -0
  33. package/build/common/deps-checker/util/extensionInstaller.d.ts.map +1 -0
  34. package/build/common/deps-checker/util/extensionInstaller.js +47 -0
  35. package/build/common/deps-checker/util/extensionInstaller.js.map +1 -0
  36. package/build/common/deps-checker/util/index.d.ts +5 -0
  37. package/build/common/deps-checker/util/index.d.ts.map +1 -0
  38. package/build/common/deps-checker/util/index.js +10 -0
  39. package/build/common/deps-checker/util/index.js.map +1 -0
  40. package/build/common/index.d.ts +1 -3
  41. package/build/common/index.d.ts.map +1 -1
  42. package/build/common/index.js +1 -3
  43. package/build/common/index.js.map +1 -1
  44. package/build/common/local/constants.d.ts +5 -0
  45. package/build/common/local/constants.d.ts.map +1 -1
  46. package/build/common/local/constants.js +7 -1
  47. package/build/common/local/constants.js.map +1 -1
  48. package/build/common/local/index.d.ts +6 -0
  49. package/build/common/local/index.d.ts.map +1 -0
  50. package/build/common/local/index.js +11 -0
  51. package/build/common/local/index.js.map +1 -0
  52. package/build/{plugins/solution/fx-solution/debug/util/certificate.d.ts → common/local/localCertificateManager.d.ts} +4 -6
  53. package/build/common/local/localCertificateManager.d.ts.map +1 -0
  54. package/build/{plugins/solution/fx-solution/debug/util/certificate.js → common/local/localCertificateManager.js} +37 -47
  55. package/build/common/local/localCertificateManager.js.map +1 -0
  56. package/build/common/local/localEnvManager.d.ts +6 -2
  57. package/build/common/local/localEnvManager.d.ts.map +1 -1
  58. package/build/common/local/localEnvManager.js +41 -1
  59. package/build/common/local/localEnvManager.js.map +1 -1
  60. package/build/common/local/packageJsonHelper.d.ts +1 -0
  61. package/build/common/local/packageJsonHelper.d.ts.map +1 -1
  62. package/build/common/local/packageJsonHelper.js +29 -1
  63. package/build/common/local/packageJsonHelper.js.map +1 -1
  64. package/build/common/local/portChecker.d.ts.map +1 -1
  65. package/build/common/local/portChecker.js +18 -48
  66. package/build/common/local/portChecker.js.map +1 -1
  67. package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.d.ts +0 -0
  68. package/build/common/local/process.d.ts.map +1 -0
  69. package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.js +0 -0
  70. package/build/common/local/process.js.map +1 -0
  71. package/build/common/local/projectSettingsHelper.d.ts +5 -5
  72. package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
  73. package/build/common/local/projectSettingsHelper.js +28 -21
  74. package/build/common/local/projectSettingsHelper.js.map +1 -1
  75. package/build/common/local/taskDefinition.d.ts +1 -1
  76. package/build/common/local/taskDefinition.d.ts.map +1 -1
  77. package/build/common/local/taskDefinition.js +7 -5
  78. package/build/common/local/taskDefinition.js.map +1 -1
  79. package/build/common/localSettingsConstants.d.ts +3 -0
  80. package/build/common/localSettingsConstants.d.ts.map +1 -1
  81. package/build/common/localSettingsConstants.js +4 -1
  82. package/build/common/localSettingsConstants.js.map +1 -1
  83. package/build/common/localSettingsProvider.d.ts +3 -3
  84. package/build/common/localSettingsProvider.d.ts.map +1 -1
  85. package/build/common/localSettingsProvider.js +13 -5
  86. package/build/common/localSettingsProvider.js.map +1 -1
  87. package/build/common/permissionInterface.d.ts +2 -2
  88. package/build/common/permissionInterface.d.ts.map +1 -1
  89. package/build/common/permissionInterface.js +2 -2
  90. package/build/common/permissionInterface.js.map +1 -1
  91. package/build/common/projectSettingsValidator.d.ts +4 -0
  92. package/build/common/projectSettingsValidator.d.ts.map +1 -0
  93. package/build/common/projectSettingsValidator.js +65 -0
  94. package/build/common/projectSettingsValidator.js.map +1 -0
  95. package/build/common/samples-config.json +24 -12
  96. package/build/common/samples.d.ts +1 -0
  97. package/build/common/samples.d.ts.map +1 -1
  98. package/build/common/samples.js +1 -0
  99. package/build/common/samples.js.map +1 -1
  100. package/build/common/telemetry.d.ts +7 -2
  101. package/build/common/telemetry.d.ts.map +1 -1
  102. package/build/common/telemetry.js +10 -4
  103. package/build/common/telemetry.js.map +1 -1
  104. package/build/common/{templates.d.ts → template-utils/templates.d.ts} +0 -0
  105. package/build/common/template-utils/templates.d.ts.map +1 -0
  106. package/build/common/{templates.js → template-utils/templates.js} +1 -1
  107. package/build/common/template-utils/templates.js.map +1 -0
  108. package/build/common/{templatesActions.d.ts → template-utils/templatesActions.d.ts} +0 -0
  109. package/build/common/template-utils/templatesActions.d.ts.map +1 -0
  110. package/build/common/{templatesActions.js → template-utils/templatesActions.js} +5 -5
  111. package/build/common/template-utils/templatesActions.js.map +1 -0
  112. package/build/common/{templatesUtils.d.ts → template-utils/templatesUtils.d.ts} +2 -1
  113. package/build/common/template-utils/templatesUtils.d.ts.map +1 -0
  114. package/build/common/{templatesUtils.js → template-utils/templatesUtils.js} +26 -8
  115. package/build/common/template-utils/templatesUtils.js.map +1 -0
  116. package/build/common/templates-config.json +1 -1
  117. package/build/common/tools.d.ts +1 -8
  118. package/build/common/tools.d.ts.map +1 -1
  119. package/build/common/tools.js +41 -19
  120. package/build/common/tools.js.map +1 -1
  121. package/build/core/error.js +1 -1
  122. package/build/core/error.js.map +1 -1
  123. package/build/core/index.d.ts +2 -3
  124. package/build/core/index.d.ts.map +1 -1
  125. package/build/core/index.js +19 -31
  126. package/build/core/index.js.map +1 -1
  127. package/build/core/middleware/CommonErrorHandlerMW.d.ts +14 -0
  128. package/build/core/middleware/CommonErrorHandlerMW.d.ts.map +1 -0
  129. package/build/core/middleware/CommonErrorHandlerMW.js +55 -0
  130. package/build/core/middleware/CommonErrorHandlerMW.js.map +1 -0
  131. package/build/core/middleware/errorHandler.js +2 -1
  132. package/build/core/middleware/errorHandler.js.map +1 -1
  133. package/build/core/middleware/index.d.ts +0 -1
  134. package/build/core/middleware/index.d.ts.map +1 -1
  135. package/build/core/middleware/index.js +0 -1
  136. package/build/core/middleware/index.js.map +1 -1
  137. package/build/core/middleware/localSettingsLoader.d.ts.map +1 -1
  138. package/build/core/middleware/localSettingsLoader.js +4 -2
  139. package/build/core/middleware/localSettingsLoader.js.map +1 -1
  140. package/build/core/middleware/projectMigrator.d.ts.map +1 -1
  141. package/build/core/middleware/projectMigrator.js +1 -11
  142. package/build/core/middleware/projectMigrator.js.map +1 -1
  143. package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
  144. package/build/core/middleware/projectSettingsLoader.js +1 -1
  145. package/build/core/middleware/projectSettingsLoader.js.map +1 -1
  146. package/build/core/permissionRequest.js +2 -2
  147. package/build/core/permissionRequest.js.map +1 -1
  148. package/build/core/question.d.ts.map +1 -1
  149. package/build/core/question.js +7 -4
  150. package/build/core/question.js.map +1 -1
  151. package/build/core/tools.d.ts.map +1 -1
  152. package/build/core/tools.js +2 -6
  153. package/build/core/tools.js.map +1 -1
  154. package/build/plugins/resource/aad/aadAppClient.d.ts +9 -9
  155. package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
  156. package/build/plugins/resource/aad/aadAppClient.js +30 -31
  157. package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
  158. package/build/plugins/resource/aad/errors.d.ts.map +1 -1
  159. package/build/plugins/resource/aad/errors.js +1 -2
  160. package/build/plugins/resource/aad/errors.js.map +1 -1
  161. package/build/plugins/resource/aad/index.d.ts +1 -0
  162. package/build/plugins/resource/aad/index.d.ts.map +1 -1
  163. package/build/plugins/resource/aad/index.js +1 -0
  164. package/build/plugins/resource/aad/index.js.map +1 -1
  165. package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts +4 -0
  166. package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts.map +1 -1
  167. package/build/plugins/resource/aad/plugin.d.ts +4 -3
  168. package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
  169. package/build/plugins/resource/aad/plugin.js +46 -59
  170. package/build/plugins/resource/aad/plugin.js.map +1 -1
  171. package/build/plugins/resource/aad/utils/common.d.ts +8 -4
  172. package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
  173. package/build/plugins/resource/aad/utils/common.js +70 -31
  174. package/build/plugins/resource/aad/utils/common.js.map +1 -1
  175. package/build/plugins/resource/aad/utils/configs.d.ts +10 -1
  176. package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
  177. package/build/plugins/resource/aad/utils/configs.js +252 -38
  178. package/build/plugins/resource/aad/utils/configs.js.map +1 -1
  179. package/build/plugins/resource/aad/utils/telemetry.d.ts +0 -1
  180. package/build/plugins/resource/aad/utils/telemetry.d.ts.map +1 -1
  181. package/build/plugins/resource/aad/utils/telemetry.js +10 -17
  182. package/build/plugins/resource/aad/utils/telemetry.js.map +1 -1
  183. package/build/plugins/resource/aad/utils/tokenProvider.d.ts +6 -2
  184. package/build/plugins/resource/aad/utils/tokenProvider.d.ts.map +1 -1
  185. package/build/plugins/resource/aad/utils/tokenProvider.js +11 -11
  186. package/build/plugins/resource/aad/utils/tokenProvider.js.map +1 -1
  187. package/build/plugins/resource/aad/v2/index.d.ts +12 -13
  188. package/build/plugins/resource/aad/v2/index.d.ts.map +1 -1
  189. package/build/plugins/resource/aad/v2/index.js +2 -1
  190. package/build/plugins/resource/aad/v2/index.js.map +1 -1
  191. package/build/plugins/resource/aad/v3/index.d.ts +24 -0
  192. package/build/plugins/resource/aad/v3/index.d.ts.map +1 -0
  193. package/build/plugins/resource/aad/v3/index.js +248 -0
  194. package/build/plugins/resource/aad/v3/index.js.map +1 -0
  195. package/build/plugins/resource/apim/error.d.ts.map +1 -1
  196. package/build/plugins/resource/apim/error.js +1 -4
  197. package/build/plugins/resource/apim/error.js.map +1 -1
  198. package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
  199. package/build/plugins/resource/apim/managers/apimManager.js +23 -62
  200. package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
  201. package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
  202. package/build/plugins/resource/apim/managers/questionManager.js +0 -7
  203. package/build/plugins/resource/apim/managers/questionManager.js.map +1 -1
  204. package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
  205. package/build/plugins/resource/apim/questions/vscodeQuestion.js +6 -13
  206. package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
  207. package/build/plugins/resource/apim/v2/index.d.ts +2 -2
  208. package/build/plugins/resource/apim/v2/index.d.ts.map +1 -1
  209. package/build/plugins/resource/apim/v2/index.js +2 -1
  210. package/build/plugins/resource/apim/v2/index.js.map +1 -1
  211. package/build/plugins/resource/appstudio/constants.d.ts +5 -2
  212. package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
  213. package/build/plugins/resource/appstudio/constants.js +82 -11
  214. package/build/plugins/resource/appstudio/constants.js.map +1 -1
  215. package/build/plugins/resource/appstudio/index.d.ts +2 -36
  216. package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
  217. package/build/plugins/resource/appstudio/index.js +1 -31
  218. package/build/plugins/resource/appstudio/index.js.map +1 -1
  219. package/build/plugins/resource/appstudio/manifestTemplate.d.ts +1 -1
  220. package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
  221. package/build/plugins/resource/appstudio/manifestTemplate.js +27 -11
  222. package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
  223. package/build/plugins/resource/appstudio/plugin.d.ts +1 -0
  224. package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
  225. package/build/plugins/resource/appstudio/plugin.js +16 -3
  226. package/build/plugins/resource/appstudio/plugin.js.map +1 -1
  227. package/build/plugins/resource/appstudio/utils/telemetry.d.ts +8 -4
  228. package/build/plugins/resource/appstudio/utils/telemetry.d.ts.map +1 -1
  229. package/build/plugins/resource/appstudio/utils/telemetry.js +13 -12
  230. package/build/plugins/resource/appstudio/utils/telemetry.js.map +1 -1
  231. package/build/plugins/resource/appstudio/v2/index.d.ts +2 -2
  232. package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
  233. package/build/plugins/resource/appstudio/v2/index.js +2 -1
  234. package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
  235. package/build/plugins/resource/appstudio/v3/index.d.ts +11 -4
  236. package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
  237. package/build/plugins/resource/appstudio/v3/index.js +76 -16
  238. package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
  239. package/build/plugins/resource/bot/aadRegistration.d.ts.map +1 -1
  240. package/build/plugins/resource/bot/aadRegistration.js +5 -4
  241. package/build/plugins/resource/bot/aadRegistration.js.map +1 -1
  242. package/build/plugins/resource/bot/configs/provisionConfig.d.ts.map +1 -1
  243. package/build/plugins/resource/bot/configs/provisionConfig.js +0 -10
  244. package/build/plugins/resource/bot/configs/provisionConfig.js.map +1 -1
  245. package/build/plugins/resource/bot/dotnet/constants.d.ts +5 -0
  246. package/build/plugins/resource/bot/dotnet/constants.d.ts.map +1 -0
  247. package/build/plugins/resource/bot/dotnet/constants.js +13 -0
  248. package/build/plugins/resource/bot/dotnet/constants.js.map +1 -0
  249. package/build/plugins/resource/bot/dotnet/plugin.d.ts +14 -0
  250. package/build/plugins/resource/bot/dotnet/plugin.d.ts.map +1 -0
  251. package/build/plugins/resource/bot/dotnet/plugin.js +62 -0
  252. package/build/plugins/resource/bot/dotnet/plugin.js.map +1 -0
  253. package/build/plugins/resource/bot/index.d.ts +5 -0
  254. package/build/plugins/resource/bot/index.d.ts.map +1 -1
  255. package/build/plugins/resource/bot/index.js +23 -13
  256. package/build/plugins/resource/bot/index.js.map +1 -1
  257. package/build/plugins/resource/bot/interface.d.ts +16 -0
  258. package/build/plugins/resource/bot/interface.d.ts.map +1 -0
  259. package/build/plugins/resource/bot/interface.js +5 -0
  260. package/build/plugins/resource/bot/interface.js.map +1 -0
  261. package/build/plugins/resource/bot/languageStrategy.d.ts +1 -1
  262. package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
  263. package/build/plugins/resource/bot/languageStrategy.js +1 -1
  264. package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
  265. package/build/plugins/resource/bot/plugin.d.ts +2 -1
  266. package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
  267. package/build/plugins/resource/bot/plugin.js +16 -135
  268. package/build/plugins/resource/bot/plugin.js.map +1 -1
  269. package/build/plugins/resource/bot/v2/index.d.ts +2 -2
  270. package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
  271. package/build/plugins/resource/bot/v2/index.js +2 -1
  272. package/build/plugins/resource/bot/v2/index.js.map +1 -1
  273. package/build/plugins/resource/frontend/configs.d.ts +1 -1
  274. package/build/plugins/resource/frontend/configs.d.ts.map +1 -1
  275. package/build/plugins/resource/frontend/configs.js +3 -9
  276. package/build/plugins/resource/frontend/configs.js.map +1 -1
  277. package/build/plugins/resource/frontend/constants.d.ts +2 -8
  278. package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
  279. package/build/plugins/resource/frontend/constants.js +3 -11
  280. package/build/plugins/resource/frontend/constants.js.map +1 -1
  281. package/build/plugins/resource/frontend/dotnet/constants.d.ts +56 -0
  282. package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -0
  283. package/build/plugins/resource/frontend/dotnet/constants.js +73 -0
  284. package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -0
  285. package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts +1 -1
  286. package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts.map +1 -1
  287. package/build/plugins/resource/frontend/dotnet/enum.js +39 -0
  288. package/build/plugins/resource/frontend/{blazor → dotnet}/enum.js.map +1 -1
  289. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts +0 -0
  290. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts.map +1 -1
  291. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js +3 -3
  292. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js.map +1 -1
  293. package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts +0 -0
  294. package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts.map +1 -1
  295. package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js +3 -3
  296. package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js.map +1 -1
  297. package/build/plugins/resource/frontend/dotnet/plugin.d.ts +34 -0
  298. package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -0
  299. package/build/plugins/resource/frontend/dotnet/plugin.js +124 -0
  300. package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -0
  301. package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +35 -0
  302. package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +1 -0
  303. package/build/plugins/resource/frontend/{blazor → dotnet}/resources/errors.js +10 -22
  304. package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +1 -0
  305. package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.d.ts +0 -4
  306. package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -0
  307. package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.js +0 -4
  308. package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -0
  309. package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts +6 -0
  310. package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts.map +1 -0
  311. package/build/plugins/resource/frontend/dotnet/utils/azure-client.js +11 -0
  312. package/build/plugins/resource/frontend/dotnet/utils/azure-client.js.map +1 -0
  313. package/build/plugins/resource/frontend/index.d.ts +6 -3
  314. package/build/plugins/resource/frontend/index.d.ts.map +1 -1
  315. package/build/plugins/resource/frontend/index.js +27 -45
  316. package/build/plugins/resource/frontend/index.js.map +1 -1
  317. package/build/plugins/resource/frontend/interface.d.ts +13 -0
  318. package/build/plugins/resource/frontend/interface.d.ts.map +1 -0
  319. package/build/plugins/resource/frontend/interface.js +5 -0
  320. package/build/plugins/resource/frontend/interface.js.map +1 -0
  321. package/build/plugins/resource/frontend/ops/deploy.d.ts +3 -0
  322. package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
  323. package/build/plugins/resource/frontend/ops/deploy.js +43 -0
  324. package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
  325. package/build/plugins/resource/frontend/ops/scaffold.d.ts.map +1 -1
  326. package/build/plugins/resource/frontend/ops/scaffold.js +1 -1
  327. package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
  328. package/build/plugins/resource/frontend/plugin.d.ts +3 -3
  329. package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
  330. package/build/plugins/resource/frontend/plugin.js +15 -47
  331. package/build/plugins/resource/frontend/plugin.js.map +1 -1
  332. package/build/plugins/resource/frontend/resources/errors.d.ts +23 -20
  333. package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
  334. package/build/plugins/resource/frontend/resources/errors.js +31 -67
  335. package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
  336. package/build/plugins/resource/frontend/resources/templateInfo.js +1 -1
  337. package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
  338. package/build/plugins/resource/frontend/utils/logger.d.ts +3 -1
  339. package/build/plugins/resource/frontend/utils/logger.d.ts.map +1 -1
  340. package/build/plugins/resource/frontend/utils/logger.js +9 -6
  341. package/build/plugins/resource/frontend/utils/logger.js.map +1 -1
  342. package/build/plugins/resource/frontend/utils/progress-helper.d.ts +0 -8
  343. package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
  344. package/build/plugins/resource/frontend/utils/progress-helper.js +1 -19
  345. package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
  346. package/build/plugins/resource/frontend/v2/index.d.ts +3 -2
  347. package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
  348. package/build/plugins/resource/frontend/v2/index.js +5 -1
  349. package/build/plugins/resource/frontend/v2/index.js.map +1 -1
  350. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts +15 -0
  351. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts.map +1 -0
  352. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js +149 -0
  353. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js.map +1 -0
  354. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts +8 -0
  355. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts.map +1 -0
  356. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js +95 -0
  357. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js.map +1 -0
  358. package/build/plugins/resource/frontend/v3/error.d.ts +23 -0
  359. package/build/plugins/resource/frontend/v3/error.d.ts.map +1 -0
  360. package/build/plugins/resource/frontend/v3/error.js +66 -0
  361. package/build/plugins/resource/frontend/v3/error.js.map +1 -0
  362. package/build/plugins/resource/frontend/v3/index.d.ts +3 -0
  363. package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -0
  364. package/build/plugins/resource/frontend/v3/index.js +7 -0
  365. package/build/plugins/resource/frontend/v3/index.js.map +1 -0
  366. package/build/plugins/resource/function/index.d.ts +1 -1
  367. package/build/plugins/resource/function/index.d.ts.map +1 -1
  368. package/build/plugins/resource/function/index.js +8 -21
  369. package/build/plugins/resource/function/index.js.map +1 -1
  370. package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
  371. package/build/plugins/resource/function/ops/deploy.js +8 -9
  372. package/build/plugins/resource/function/ops/deploy.js.map +1 -1
  373. package/build/plugins/resource/function/ops/scaffold.js +1 -1
  374. package/build/plugins/resource/function/ops/scaffold.js.map +1 -1
  375. package/build/plugins/resource/function/plugin.d.ts.map +1 -1
  376. package/build/plugins/resource/function/plugin.js +35 -138
  377. package/build/plugins/resource/function/plugin.js.map +1 -1
  378. package/build/plugins/resource/function/resources/message.d.ts +0 -1
  379. package/build/plugins/resource/function/resources/message.d.ts.map +1 -1
  380. package/build/plugins/resource/function/resources/message.js +0 -1
  381. package/build/plugins/resource/function/resources/message.js.map +1 -1
  382. package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +11 -0
  383. package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -0
  384. package/build/plugins/resource/function/utils/depsChecker/funcHelper.js +48 -0
  385. package/build/plugins/resource/function/utils/depsChecker/funcHelper.js.map +1 -0
  386. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts +6 -4
  387. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts.map +1 -1
  388. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js +15 -8
  389. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js.map +1 -1
  390. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts +4 -3
  391. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts.map +1 -1
  392. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js +5 -4
  393. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js.map +1 -1
  394. package/build/plugins/resource/function/utils/telemetry-helper.d.ts +1 -1
  395. package/build/plugins/resource/function/utils/telemetry-helper.d.ts.map +1 -1
  396. package/build/plugins/resource/function/v2/index.d.ts +2 -2
  397. package/build/plugins/resource/function/v2/index.d.ts.map +1 -1
  398. package/build/plugins/resource/function/v2/index.js +2 -1
  399. package/build/plugins/resource/function/v2/index.js.map +1 -1
  400. package/build/plugins/resource/identity/index.d.ts +0 -1
  401. package/build/plugins/resource/identity/index.d.ts.map +1 -1
  402. package/build/plugins/resource/identity/index.js +3 -22
  403. package/build/plugins/resource/identity/index.js.map +1 -1
  404. package/build/plugins/resource/identity/v2/index.d.ts +2 -2
  405. package/build/plugins/resource/identity/v2/index.d.ts.map +1 -1
  406. package/build/plugins/resource/identity/v2/index.js +2 -1
  407. package/build/plugins/resource/identity/v2/index.js.map +1 -1
  408. package/build/plugins/resource/keyvault/plugin.d.ts.map +1 -1
  409. package/build/plugins/resource/keyvault/plugin.js +1 -2
  410. package/build/plugins/resource/keyvault/plugin.js.map +1 -1
  411. package/build/plugins/resource/keyvault/v2/index.d.ts +2 -2
  412. package/build/plugins/resource/keyvault/v2/index.d.ts.map +1 -1
  413. package/build/plugins/resource/keyvault/v2/index.js +2 -1
  414. package/build/plugins/resource/keyvault/v2/index.js.map +1 -1
  415. package/build/plugins/resource/localdebug/v2/index.d.ts +2 -2
  416. package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
  417. package/build/plugins/resource/localdebug/v2/index.js +2 -1
  418. package/build/plugins/resource/localdebug/v2/index.js.map +1 -1
  419. package/build/plugins/resource/simpleauth/index.d.ts.map +1 -1
  420. package/build/plugins/resource/simpleauth/index.js +6 -11
  421. package/build/plugins/resource/simpleauth/index.js.map +1 -1
  422. package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
  423. package/build/plugins/resource/simpleauth/plugin.js +4 -9
  424. package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
  425. package/build/plugins/resource/simpleauth/v2/index.d.ts +2 -2
  426. package/build/plugins/resource/simpleauth/v2/index.d.ts.map +1 -1
  427. package/build/plugins/resource/simpleauth/v2/index.js +2 -1
  428. package/build/plugins/resource/simpleauth/v2/index.js.map +1 -1
  429. package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
  430. package/build/plugins/resource/spfx/plugin.js +14 -9
  431. package/build/plugins/resource/spfx/plugin.js.map +1 -1
  432. package/build/plugins/resource/spfx/utils/constants.d.ts +5 -4
  433. package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
  434. package/build/plugins/resource/spfx/utils/constants.js +5 -4
  435. package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
  436. package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
  437. package/build/plugins/resource/spfx/utils/progress-helper.js +1 -1
  438. package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
  439. package/build/plugins/resource/spfx/v2/index.d.ts +2 -2
  440. package/build/plugins/resource/spfx/v2/index.d.ts.map +1 -1
  441. package/build/plugins/resource/spfx/v2/index.js +2 -1
  442. package/build/plugins/resource/spfx/v2/index.js.map +1 -1
  443. package/build/plugins/resource/sql/config.d.ts +1 -0
  444. package/build/plugins/resource/sql/config.d.ts.map +1 -1
  445. package/build/plugins/resource/sql/config.js +1 -0
  446. package/build/plugins/resource/sql/config.js.map +1 -1
  447. package/build/plugins/resource/sql/constants.d.ts +3 -0
  448. package/build/plugins/resource/sql/constants.d.ts.map +1 -1
  449. package/build/plugins/resource/sql/constants.js +3 -0
  450. package/build/plugins/resource/sql/constants.js.map +1 -1
  451. package/build/plugins/resource/sql/errors.d.ts +1 -1
  452. package/build/plugins/resource/sql/errors.d.ts.map +1 -1
  453. package/build/plugins/resource/sql/errors.js +1 -1
  454. package/build/plugins/resource/sql/errors.js.map +1 -1
  455. package/build/plugins/resource/sql/index.d.ts.map +1 -1
  456. package/build/plugins/resource/sql/index.js +11 -11
  457. package/build/plugins/resource/sql/index.js.map +1 -1
  458. package/build/plugins/resource/sql/managementClient.js +14 -14
  459. package/build/plugins/resource/sql/managementClient.js.map +1 -1
  460. package/build/plugins/resource/sql/plugin.d.ts +3 -0
  461. package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
  462. package/build/plugins/resource/sql/plugin.js +76 -68
  463. package/build/plugins/resource/sql/plugin.js.map +1 -1
  464. package/build/plugins/resource/sql/sqlClient.d.ts +2 -2
  465. package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
  466. package/build/plugins/resource/sql/sqlClient.js +13 -12
  467. package/build/plugins/resource/sql/sqlClient.js.map +1 -1
  468. package/build/plugins/resource/sql/v2/index.d.ts +2 -2
  469. package/build/plugins/resource/sql/v2/index.d.ts.map +1 -1
  470. package/build/plugins/resource/sql/v2/index.js +2 -1
  471. package/build/plugins/resource/sql/v2/index.js.map +1 -1
  472. package/build/plugins/resource/utils4v2.d.ts +16 -17
  473. package/build/plugins/resource/utils4v2.d.ts.map +1 -1
  474. package/build/plugins/resource/utils4v2.js +3 -3
  475. package/build/plugins/resource/utils4v2.js.map +1 -1
  476. package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts +3 -3
  477. package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
  478. package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +3 -3
  479. package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +1 -1
  480. package/build/plugins/solution/fx-solution/arm.d.ts +9 -2
  481. package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
  482. package/build/plugins/solution/fx-solution/arm.js +44 -13
  483. package/build/plugins/solution/fx-solution/arm.js.map +1 -1
  484. package/build/plugins/solution/fx-solution/commonQuestions.d.ts +4 -3
  485. package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
  486. package/build/plugins/solution/fx-solution/commonQuestions.js +11 -10
  487. package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
  488. package/build/plugins/solution/fx-solution/constants.d.ts +3 -4
  489. package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
  490. package/build/plugins/solution/fx-solution/constants.js +4 -5
  491. package/build/plugins/solution/fx-solution/constants.js.map +1 -1
  492. package/build/plugins/solution/fx-solution/debug/constants.d.ts +0 -5
  493. package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -1
  494. package/build/plugins/solution/fx-solution/debug/constants.js +1 -7
  495. package/build/plugins/solution/fx-solution/debug/constants.js.map +1 -1
  496. package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -1
  497. package/build/plugins/solution/fx-solution/debug/provisionLocal.js +18 -4
  498. package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
  499. package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +2 -2
  500. package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
  501. package/build/plugins/solution/fx-solution/debug/scaffolding.js +5 -3
  502. package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
  503. package/build/plugins/solution/fx-solution/question.d.ts +2 -2
  504. package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
  505. package/build/plugins/solution/fx-solution/question.js +32 -22
  506. package/build/plugins/solution/fx-solution/question.js.map +1 -1
  507. package/build/plugins/solution/fx-solution/solution.d.ts +0 -1
  508. package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
  509. package/build/plugins/solution/fx-solution/solution.js +15 -25
  510. package/build/plugins/solution/fx-solution/solution.js.map +1 -1
  511. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts +31 -0
  512. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts.map +1 -0
  513. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js +222 -0
  514. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js.map +1 -0
  515. package/build/plugins/solution/fx-solution/v2/adaptor.js +1 -1
  516. package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
  517. package/build/plugins/solution/fx-solution/v2/checkPermission.d.ts.map +1 -1
  518. package/build/plugins/solution/fx-solution/v2/checkPermission.js +26 -15
  519. package/build/plugins/solution/fx-solution/v2/checkPermission.js.map +1 -1
  520. package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -1
  521. package/build/plugins/solution/fx-solution/v2/createEnv.js +1 -3
  522. package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -1
  523. package/build/plugins/solution/fx-solution/v2/deploy.js +1 -1
  524. package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
  525. package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +2 -2
  526. package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
  527. package/build/plugins/solution/fx-solution/v2/executeUserTask.js +196 -122
  528. package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
  529. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +2 -2
  530. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
  531. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +9 -16
  532. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
  533. package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
  534. package/build/plugins/solution/fx-solution/v2/getQuestions.js +84 -99
  535. package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
  536. package/build/plugins/solution/fx-solution/v2/grantPermission.d.ts.map +1 -1
  537. package/build/plugins/solution/fx-solution/v2/grantPermission.js +27 -16
  538. package/build/plugins/solution/fx-solution/v2/grantPermission.js.map +1 -1
  539. package/build/plugins/solution/fx-solution/v2/listCollaborator.d.ts.map +1 -1
  540. package/build/plugins/solution/fx-solution/v2/listCollaborator.js +26 -11
  541. package/build/plugins/solution/fx-solution/v2/listCollaborator.js.map +1 -1
  542. package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
  543. package/build/plugins/solution/fx-solution/v2/provision.js +1 -1
  544. package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
  545. package/build/plugins/solution/fx-solution/v2/provisionLocal.js +1 -1
  546. package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -1
  547. package/build/plugins/solution/fx-solution/v2/publish.js +1 -1
  548. package/build/plugins/solution/fx-solution/v2/publish.js.map +1 -1
  549. package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
  550. package/build/plugins/solution/fx-solution/v2/scaffolding.js +16 -2
  551. package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
  552. package/build/plugins/solution/fx-solution/v2/solution.d.ts +0 -1
  553. package/build/plugins/solution/fx-solution/v2/solution.d.ts.map +1 -1
  554. package/build/plugins/solution/fx-solution/v2/solution.js +0 -2
  555. package/build/plugins/solution/fx-solution/v2/solution.js.map +1 -1
  556. package/build/plugins/solution/fx-solution/v2/utils.d.ts +3 -3
  557. package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
  558. package/build/plugins/solution/fx-solution/v2/utils.js +7 -5
  559. package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
  560. package/build/plugins/solution/fx-solution/v3/addModule.d.ts +2 -4
  561. package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +1 -1
  562. package/build/plugins/solution/fx-solution/v3/addModule.js +29 -6
  563. package/build/plugins/solution/fx-solution/v3/addModule.js.map +1 -1
  564. package/build/plugins/solution/fx-solution/v3/addResource.d.ts +6 -14
  565. package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +1 -1
  566. package/build/plugins/solution/fx-solution/v3/addResource.js +24 -49
  567. package/build/plugins/solution/fx-solution/v3/addResource.js.map +1 -1
  568. package/build/plugins/solution/fx-solution/v3/constants.d.ts +2 -0
  569. package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
  570. package/build/plugins/solution/fx-solution/v3/constants.js +3 -1
  571. package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
  572. package/build/plugins/solution/fx-solution/v3/deploy.d.ts +1 -3
  573. package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
  574. package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
  575. package/build/plugins/solution/fx-solution/v3/init.d.ts.map +1 -1
  576. package/build/plugins/solution/fx-solution/v3/init.js +9 -0
  577. package/build/plugins/solution/fx-solution/v3/init.js.map +1 -1
  578. package/build/plugins/solution/fx-solution/v3/provision.d.ts +8 -1
  579. package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
  580. package/build/plugins/solution/fx-solution/v3/provision.js +224 -16
  581. package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
  582. package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +1 -1
  583. package/build/plugins/solution/fx-solution/v3/provisionLocal.js +100 -1
  584. package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +1 -1
  585. package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +8 -13
  586. package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +1 -1
  587. package/build/plugins/solution/fx-solution/v3/scaffold.js +30 -52
  588. package/build/plugins/solution/fx-solution/v3/scaffold.js.map +1 -1
  589. package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.d.ts +5 -0
  590. package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.d.ts.map +1 -0
  591. package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.js +10 -0
  592. package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.js.map +1 -0
  593. package/build/plugins/solution/spfx-solution/addModule.d.ts +2 -4
  594. package/build/plugins/solution/spfx-solution/addModule.d.ts.map +1 -1
  595. package/build/plugins/solution/spfx-solution/addModule.js +1 -1
  596. package/build/plugins/solution/spfx-solution/addModule.js.map +1 -1
  597. package/build/plugins/solution/spfx-solution/scaffold.d.ts +2 -10
  598. package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +1 -1
  599. package/build/plugins/solution/spfx-solution/scaffold.js +3 -39
  600. package/build/plugins/solution/spfx-solution/scaffold.js.map +1 -1
  601. package/build/plugins/solution/spfx-solution/solution.d.ts +12 -17
  602. package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -1
  603. package/build/plugins/solution/spfx-solution/solution.js +7 -7
  604. package/build/plugins/solution/spfx-solution/solution.js.map +1 -1
  605. package/package.json +15 -9
  606. package/resource/strings.json +50 -8
  607. package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +1 -0
  608. package/templates/plugins/resource/apim/bicep/apimProvision.bicep +7 -5
  609. package/templates/plugins/resource/apim/bicep/config.template.bicep +1 -0
  610. package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +12 -12
  611. package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +15 -11
  612. package/templates/plugins/resource/bot/bicep/config.template.bicep +2 -0
  613. package/templates/plugins/resource/botservice/bicep/botServiceProvision.template.bicep +34 -0
  614. package/templates/plugins/resource/botservice/bicep/parameters.json +4 -0
  615. package/templates/plugins/resource/botservice/bicep/provision.template.bicep +13 -0
  616. package/templates/plugins/resource/frontend/bicep/frontendHostingProvision.bicep +4 -2
  617. package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -0
  618. package/templates/plugins/resource/function/bicep/config.template.bicep +2 -0
  619. package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +15 -15
  620. package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +17 -14
  621. package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +2 -1
  622. package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +9 -7
  623. package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +2 -0
  624. package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +7 -7
  625. package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +9 -6
  626. package/templates/plugins/resource/sql/bicep/newDatabase.orchestration.template.bicep +5 -0
  627. package/templates/plugins/resource/sql/bicep/newDatabaseProvision.template.bicep +15 -0
  628. package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +9 -5
  629. package/templates/plugins/resource/storage/bicep/azureStorageProvision.bicep +25 -0
  630. package/templates/plugins/resource/storage/bicep/provision.template.bicep +15 -0
  631. package/templates/plugins/resource/webapp/bicep/config.template.bicep +10 -0
  632. package/templates/plugins/resource/webapp/bicep/provision.template.bicep +16 -0
  633. package/templates/plugins/resource/webapp/bicep/webappConfiguration.template.bicep +74 -0
  634. package/templates/plugins/resource/webapp/bicep/webappProvision.template.bicep +48 -0
  635. package/build/common/templates.d.ts.map +0 -1
  636. package/build/common/templates.js.map +0 -1
  637. package/build/common/templatesActions.d.ts.map +0 -1
  638. package/build/common/templatesActions.js.map +0 -1
  639. package/build/common/templatesUtils.d.ts.map +0 -1
  640. package/build/common/templatesUtils.js.map +0 -1
  641. package/build/core/middleware/projectUpgrader.d.ts +0 -6
  642. package/build/core/middleware/projectUpgrader.d.ts.map +0 -1
  643. package/build/core/middleware/projectUpgrader.js +0 -224
  644. package/build/core/middleware/projectUpgrader.js.map +0 -1
  645. package/build/plugins/resource/frontend/blazor/constants.d.ts +0 -75
  646. package/build/plugins/resource/frontend/blazor/constants.d.ts.map +0 -1
  647. package/build/plugins/resource/frontend/blazor/constants.js +0 -98
  648. package/build/plugins/resource/frontend/blazor/constants.js.map +0 -1
  649. package/build/plugins/resource/frontend/blazor/enum.js +0 -39
  650. package/build/plugins/resource/frontend/blazor/ops/provision.d.ts +0 -8
  651. package/build/plugins/resource/frontend/blazor/ops/provision.d.ts.map +0 -1
  652. package/build/plugins/resource/frontend/blazor/ops/provision.js +0 -42
  653. package/build/plugins/resource/frontend/blazor/ops/provision.js.map +0 -1
  654. package/build/plugins/resource/frontend/blazor/plugin.d.ts +0 -35
  655. package/build/plugins/resource/frontend/blazor/plugin.d.ts.map +0 -1
  656. package/build/plugins/resource/frontend/blazor/plugin.js +0 -190
  657. package/build/plugins/resource/frontend/blazor/plugin.js.map +0 -1
  658. package/build/plugins/resource/frontend/blazor/resources/errors.d.ts +0 -41
  659. package/build/plugins/resource/frontend/blazor/resources/errors.d.ts.map +0 -1
  660. package/build/plugins/resource/frontend/blazor/resources/errors.js.map +0 -1
  661. package/build/plugins/resource/frontend/blazor/resources/messages.d.ts.map +0 -1
  662. package/build/plugins/resource/frontend/blazor/resources/messages.js.map +0 -1
  663. package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts +0 -21
  664. package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts.map +0 -1
  665. package/build/plugins/resource/frontend/blazor/utils/azure-client.js +0 -47
  666. package/build/plugins/resource/frontend/blazor/utils/azure-client.js.map +0 -1
  667. package/build/plugins/resource/frontend/utils/azure-client.d.ts +0 -12
  668. package/build/plugins/resource/frontend/utils/azure-client.d.ts.map +0 -1
  669. package/build/plugins/resource/frontend/utils/azure-client.js +0 -29
  670. package/build/plugins/resource/frontend/utils/azure-client.js.map +0 -1
  671. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts +0 -9
  672. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts.map +0 -1
  673. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js +0 -55
  674. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js.map +0 -1
  675. package/build/plugins/resource/function/utils/depsChecker/checker.d.ts +0 -54
  676. package/build/plugins/resource/function/utils/depsChecker/checker.d.ts.map +0 -1
  677. package/build/plugins/resource/function/utils/depsChecker/checker.js +0 -104
  678. package/build/plugins/resource/function/utils/depsChecker/checker.js.map +0 -1
  679. package/build/plugins/resource/function/utils/depsChecker/common.d.ts +0 -84
  680. package/build/plugins/resource/function/utils/depsChecker/common.d.ts.map +0 -1
  681. package/build/plugins/resource/function/utils/depsChecker/common.js +0 -136
  682. package/build/plugins/resource/function/utils/depsChecker/common.js.map +0 -1
  683. package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts +0 -22
  684. package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts.map +0 -1
  685. package/build/plugins/resource/function/utils/depsChecker/cpUtils.js +0 -105
  686. package/build/plugins/resource/function/utils/depsChecker/cpUtils.js.map +0 -1
  687. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts +0 -53
  688. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts.map +0 -1
  689. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js +0 -387
  690. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js.map +0 -1
  691. package/build/plugins/resource/function/utils/depsChecker/errors.d.ts +0 -14
  692. package/build/plugins/resource/function/utils/depsChecker/errors.d.ts.map +0 -1
  693. package/build/plugins/resource/function/utils/depsChecker/errors.js +0 -41
  694. package/build/plugins/resource/function/utils/depsChecker/errors.js.map +0 -1
  695. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts +0 -26
  696. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts.map +0 -1
  697. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js +0 -111
  698. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js.map +0 -1
  699. package/build/plugins/solution/fx-solution/debug/util/certificate.d.ts.map +0 -1
  700. package/build/plugins/solution/fx-solution/debug/util/certificate.js.map +0 -1
  701. package/build/plugins/solution/fx-solution/debug/util/process.d.ts.map +0 -1
  702. package/build/plugins/solution/fx-solution/debug/util/process.js.map +0 -1
  703. package/build/plugins/solution/fx-solution/v2/listAllCollaborators.d.ts +0 -5
  704. package/build/plugins/solution/fx-solution/v2/listAllCollaborators.d.ts.map +0 -1
  705. package/build/plugins/solution/fx-solution/v2/listAllCollaborators.js +0 -118
  706. package/build/plugins/solution/fx-solution/v2/listAllCollaborators.js.map +0 -1
  707. package/resource/plugins/resource/function/dotnet-install.ps1 +0 -1095
  708. package/resource/plugins/resource/function/dotnet-install.sh +0 -1222
@@ -1,224 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.upgradeContext = exports.ProjectUpgraderMW = void 0;
4
- const tslib_1 = require("tslib");
5
- const teamsfx_api_1 = require("@microsoft/teamsfx-api");
6
- const fs = tslib_1.__importStar(require("fs-extra"));
7
- const path = tslib_1.__importStar(require("path"));
8
- const __1 = require("..");
9
- const __2 = require("../..");
10
- const fileUtils_1 = require("../../common/fileUtils");
11
- const telemetry_1 = require("../../common/telemetry");
12
- const environment_1 = require("../environment");
13
- const dotenv = tslib_1.__importStar(require("dotenv"));
14
- const resourceContext = [
15
- {
16
- plugin: "fx-resource-aad-app-for-teams",
17
- secret: "local_clientSecret",
18
- relatedKeys: [
19
- "local_clientId",
20
- "local_objectId",
21
- "local_oauth2PermissionScopeId",
22
- "local_tenantId",
23
- "local_applicationIdUris",
24
- ],
25
- },
26
- {
27
- plugin: "fx-resource-bot",
28
- secret: "localBotPassword",
29
- relatedKeys: ["localBotId", "localObjectId", "local_redirectUri", "bots", "composeExtensions"],
30
- },
31
- ];
32
- const solutionContext = {
33
- plugin: "solution",
34
- relatedKeys: ["localDebugTeamsAppId", "teamsAppTenantId"],
35
- };
36
- const SolutionContextNotFoundError = "Failed to find solution context in env file.";
37
- const ProjectUpgraderMW = async (ctx, next) => {
38
- const res = await upgradeContext(ctx);
39
- if (res.isErr()) {
40
- ctx.result = res;
41
- return;
42
- }
43
- await next();
44
- };
45
- exports.ProjectUpgraderMW = ProjectUpgraderMW;
46
- // This part is for update context and userdata file to support better local debug experience.
47
- async function upgradeContext(ctx) {
48
- var _a, _b, _c, _d, _e, _f, _g, _h;
49
- const core = ctx.self;
50
- const inputs = ctx.arguments[ctx.arguments.length - 1];
51
- if (!inputs.projectPath) {
52
- return teamsfx_api_1.err(__1.NoProjectOpenedError());
53
- }
54
- const projectPathExist = await fs.pathExists(inputs.projectPath);
55
- if (!projectPathExist) {
56
- return teamsfx_api_1.err(__1.PathNotExistError(inputs.projectPath));
57
- }
58
- const statesFolderPath = path.resolve(inputs.projectPath, `.${teamsfx_api_1.ConfigFolderName}`, teamsfx_api_1.StatesFolderName);
59
- const defaultEnvName = environment_1.environmentManager.getDefaultEnvName();
60
- const contextPath = path.resolve(statesFolderPath, teamsfx_api_1.EnvStateFileNameTemplate.replace("@envName", defaultEnvName));
61
- const userDataPath = path.resolve(statesFolderPath, `${defaultEnvName}.userdata`);
62
- // For the multi env scenario, state.{envName}.json and {envName}.userdata are not created when scaffolding
63
- // These projects must be the new projects, so skip upgrading.
64
- try {
65
- await Promise.all([fs.stat(contextPath), fs.stat(userDataPath)]);
66
- }
67
- catch (error) {
68
- return teamsfx_api_1.ok(undefined);
69
- }
70
- let context = {};
71
- let userData = {};
72
- try {
73
- // Read context and userdata file.
74
- context = await readContext(contextPath);
75
- userData = await readUserData(userDataPath);
76
- if (!context || !userData) {
77
- // Do nothing if file does not exist.
78
- return teamsfx_api_1.ok(undefined);
79
- }
80
- }
81
- catch (error) {
82
- const errorObject = __1.ReadFileError(error);
83
- (_b = (_a = core === null || core === void 0 ? void 0 : core.tools) === null || _a === void 0 ? void 0 : _a.logProvider) === null || _b === void 0 ? void 0 : _b.info(errorObject.message);
84
- telemetry_1.sendTelemetryErrorEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectUpgrade, errorObject);
85
- return teamsfx_api_1.err(errorObject);
86
- }
87
- try {
88
- // Update value of specific key in context file to secret pattern.
89
- // Return: map of updated values.
90
- const updatedKeys = updateContextValue(context);
91
- if (!updatedKeys || updatedKeys.size == 0) {
92
- // No keys need to be updated, which means the file is up-to-date.
93
- // Can quit directly.
94
- return teamsfx_api_1.ok(undefined);
95
- }
96
- // Some keys updated. Send start telemetry.
97
- telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectUpgradeStart);
98
- // Merge updatedKeys into UserData.
99
- mergeKeysToUserDate(userData, updatedKeys);
100
- }
101
- catch (error) {
102
- const errorObject = __1.ContextUpgradeError(error, error.message == SolutionContextNotFoundError);
103
- (_d = (_c = core === null || core === void 0 ? void 0 : core.tools) === null || _c === void 0 ? void 0 : _c.logProvider) === null || _d === void 0 ? void 0 : _d.info(`Template upgrade failed. Please clean the env.default.json and default.userdata file and try again. Reason: ${error === null || error === void 0 ? void 0 : error.message}`);
104
- telemetry_1.sendTelemetryErrorEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectUpgrade, errorObject);
105
- return teamsfx_api_1.err(errorObject);
106
- }
107
- try {
108
- // Save the updated context and UserData.
109
- await saveContext(contextPath, context);
110
- await saveUserData(userDataPath, userData);
111
- }
112
- catch (error) {
113
- const errorObject = __1.WriteFileError(error);
114
- (_f = (_e = core === null || core === void 0 ? void 0 : core.tools) === null || _e === void 0 ? void 0 : _e.logProvider) === null || _f === void 0 ? void 0 : _f.info(errorObject.message);
115
- telemetry_1.sendTelemetryErrorEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectUpgrade, errorObject);
116
- return teamsfx_api_1.err(errorObject);
117
- }
118
- // Send log.
119
- (_h = (_g = core === null || core === void 0 ? void 0 : core.tools) === null || _g === void 0 ? void 0 : _g.logProvider) === null || _h === void 0 ? void 0 : _h.info("[core]: template version is too low. Updated context and moved some configs from env to userdata.");
120
- telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectUpgrade, {
121
- [telemetry_1.TelemetryProperty.Success]: telemetry_1.TelemetrySuccess.Yes,
122
- });
123
- return teamsfx_api_1.ok(undefined);
124
- }
125
- exports.upgradeContext = upgradeContext;
126
- // TODO: add readUserData as basic API in core since used in multiple places.
127
- async function readUserData(userDataPath) {
128
- let dict = {};
129
- if (!(await fs.pathExists(userDataPath))) {
130
- return undefined;
131
- }
132
- else {
133
- const dictContent = await fs.readFile(userDataPath, "UTF-8");
134
- dict = dotenv.parse(dictContent);
135
- }
136
- return dict;
137
- }
138
- // TODO: add saveUserData as basic API in core since used in multiple places.
139
- async function saveUserData(userDataPath, userData) {
140
- await fs.writeFile(userDataPath, __2.serializeDict(userData));
141
- }
142
- async function readContext(contextPath) {
143
- if (!(await fs.pathExists(contextPath))) {
144
- return undefined;
145
- }
146
- else {
147
- const configJson = await fileUtils_1.readJson(contextPath);
148
- return configJson;
149
- }
150
- }
151
- async function saveContext(contextPath, context) {
152
- await fs.writeFile(contextPath, JSON.stringify(context, null, 4));
153
- }
154
- function updateContextValue(context) {
155
- const res = new Map();
156
- // Update solution context.
157
- const pluginContext = context[solutionContext.plugin];
158
- if (!pluginContext) {
159
- throw new Error(SolutionContextNotFoundError);
160
- }
161
- for (const key of solutionContext.relatedKeys) {
162
- if (pluginContext[key] && !isSecretPattern(pluginContext[key])) {
163
- res.set(getUserDataKey(solutionContext.plugin, key), pluginContext[key]);
164
- pluginContext[key] = getSecretPattern(solutionContext.plugin, key);
165
- }
166
- }
167
- // Update resource context.
168
- for (const item of resourceContext) {
169
- const pluginContext = context[item.plugin];
170
- if (!pluginContext) {
171
- continue;
172
- }
173
- for (const key of item.relatedKeys) {
174
- // Save value to res and update value to secret pattern if value is not in secret pattern.
175
- if (pluginContext[key] && !isSecretPattern(pluginContext[key])) {
176
- res.set(getUserDataKey(item.plugin, key), pluginContext[key]);
177
- pluginContext[key] = getSecretPattern(item.plugin, key);
178
- }
179
- }
180
- }
181
- return res;
182
- }
183
- function mergeKeysToUserDate(userData, updatedKeys) {
184
- if (!userData) {
185
- return;
186
- }
187
- // Move resource context first to userdata
188
- let moved = false;
189
- for (const item of resourceContext) {
190
- // Check whether corresponding secret exists.
191
- if (!userData[getUserDataKey(item.plugin, item.secret)]) {
192
- continue;
193
- }
194
- for (const key of item.relatedKeys) {
195
- const userDataKey = getUserDataKey(item.plugin, key);
196
- // Merge will only happen when userData does not contain certain key.
197
- // Otherwise, value in userData will be regarded as source of truth.
198
- if (!userData[userDataKey] && updatedKeys.has(userDataKey)) {
199
- moved = true;
200
- userData[userDataKey] = updatedKeys.get(userDataKey);
201
- }
202
- }
203
- }
204
- // If any key moved, means at least one secret exists.
205
- // Move solution context.
206
- if (moved) {
207
- for (const key of solutionContext.relatedKeys) {
208
- const userDataKey = getUserDataKey(solutionContext.plugin, key);
209
- if (!userData[userDataKey] && updatedKeys.has(userDataKey)) {
210
- userData[userDataKey] = updatedKeys.get(userDataKey);
211
- }
212
- }
213
- }
214
- }
215
- function getUserDataKey(plugin, key) {
216
- return `${plugin}.${key}`;
217
- }
218
- function isSecretPattern(value) {
219
- return value.startsWith("{{") && value.endsWith("}}");
220
- }
221
- function getSecretPattern(plugin, key) {
222
- return `{{${getUserDataKey(plugin, key)}}}`;
223
- }
224
- //# sourceMappingURL=projectUpgrader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"projectUpgrader.js","sourceRoot":"","sources":["../../../src/core/middleware/projectUpgrader.ts"],"names":[],"mappings":";;;;AACA,wDAWgC;AAChC,qDAA+B;AAC/B,mDAA6B;AAC7B,0BAQY;AACZ,6BAAsC;AACtC,sDAAkD;AAClD,sDAOgC;AAChC,gDAAoD;AACpD,uDAAiC;AACjC,MAAM,eAAe,GAAG;IACtB;QACE,MAAM,EAAE,+BAA+B;QACvC,MA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WAAW,CAAC,IAAI,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;gBAC1D,QAAQ,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;aACtD;SACF;KACF;AACH,CAAC;AAED,SAAS,cAAc,CAAC,MAAc,EAAE,GAAW;IACjD,OAAO,GAAG,MAAM,IAAI,GAAG,EAAE,CAAC;AAC5B,CAAC;AAED,SAAS,eAAe,CAAC,KAAa;IACpC,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACxD,CAAC;AAED,SAAS,gBAAgB,CAAC,MAAc,EAAE,GAAW;IACnD,OAAO,KAAK,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC;AAC9C,CAAC"}
@@ -1,75 +0,0 @@
1
- export declare class Constants {
2
- static readonly emptyString = "";
3
- }
4
- export declare class AzureInfo {
5
- static readonly webappNameLenMax = 24;
6
- static readonly suffixLenMax = 12;
7
- static readonly zipDeployURL: (appName: string) => string;
8
- static readonly aadMetadataAddress: (tenantId: string) => string;
9
- }
10
- export declare class RegularExpr {
11
- static readonly allCharToBeSkippedInName: RegExp;
12
- static readonly targetFramework: RegExp;
13
- }
14
- export declare class DefaultProvisionConfigs {
15
- static readonly appServicePlansConfig: (location: string) => {
16
- location: string;
17
- kind: string;
18
- sku: {
19
- name: string;
20
- };
21
- };
22
- static readonly webAppConfig: (location: string) => {
23
- kind: string;
24
- location: string;
25
- sku: {
26
- name: string;
27
- };
28
- };
29
- }
30
- export declare class BlazorPluginInfo {
31
- static readonly pluginName = "fx-resource-blazor";
32
- static readonly displayName = "Blazor";
33
- static readonly alias = "bz";
34
- static readonly issueLink = "https://github.com/OfficeDev/TeamsFx/issues/new";
35
- static readonly helpLink = "https://aka.ms/teamsfx-bz-help";
36
- static readonly persistentConfig: string[];
37
- static readonly defaultFramework = "net6.0";
38
- static readonly defaultRuntime = "win-x86";
39
- }
40
- export declare class BlazorPathInfo {
41
- static readonly publishFolderPath: (workingPath: string, framework?: string, runtime?: string) => string;
42
- }
43
- export declare class BlazorCommands {
44
- static readonly buildRelease: (runtime: string) => string;
45
- }
46
- export declare class DependentPluginInfo {
47
- static readonly solutionPluginName = "solution";
48
- static readonly subscriptionId = "subscriptionId";
49
- static readonly resourceGroupName = "resourceGroupName";
50
- static readonly resourceNameSuffix = "resourceNameSuffix";
51
- static readonly location = "location";
52
- static readonly remoteTeamsAppId = "remoteTeamsAppId";
53
- static readonly functionPluginName = "fx-resource-function";
54
- static readonly functionEndpoint = "functionEndpoint";
55
- static readonly runtimePluginName = "fx-resource-simple-auth";
56
- static readonly runtimeEndpoint = "endpoint";
57
- static readonly startLoginPageURL = "auth-start.html";
58
- static readonly aadPluginName = "fx-resource-aad-app-for-teams";
59
- static readonly clientID = "clientId";
60
- static readonly tenantId = "tenantId";
61
- static readonly aadClientSecret = "clientSecret";
62
- static readonly oauthHost = "oauthHost";
63
- static readonly applicationIdUris = "applicationIdUris";
64
- static readonly botPluginName = "fx-resource-bot";
65
- static readonly botId = "botId";
66
- static readonly botPassword = "botPassword";
67
- }
68
- export declare class BlazorConfigInfo {
69
- static readonly webAppName = "webAppName";
70
- static readonly appServicePlanName = "appServicePlanName";
71
- static readonly webAppEndpoint = "endpoint";
72
- static readonly webAppDomain = "domain";
73
- static readonly projectFilePath = "projectFilePath";
74
- }
75
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/blazor/constants.ts"],"names":[],"mappings":"AAKA,qBAAa,SAAS;IACpB,MAAM,CAAC,QAAQ,CAAC,WAAW,MAAM;CAClC;AAED,qBAAa,SAAS;IACpB,MAAM,CAAC,QAAQ,CAAC,gBAAgB,MAAM;IACtC,MAAM,CAAC,QAAQ,CAAC,YAAY,MAAM;IAClC,MAAM,CAAC,QAAQ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AC,QAAQ,CAAC,gBAAgB,sBAAsB;IAEtD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,0BAA0B;IAC5D,MAAM,CAAC,QAAQ,CAAC,gBAAgB,sBAAsB;IAEtD,MAAM,CAAC,QAAQ,CAAC,iBAAiB,6BAA6B;IAC9D,MAAM,CAAC,QAAQ,CAAC,eAAe,cAAc;IAC7C,MAAM,CAAC,QAAQ,CAAC,iBAAiB,qBAAqB;IAEtD,MAAM,CAAC,QAAQ,CAAC,aAAa,mCAAmC;IAChE,MAAM,CAAC,QAAQ,CAAC,QAAQ,cAAc;IACtC,MAAM,CAAC,QAAQ,CAAC,QAAQ,cAAc;IACtC,MAAM,CAAC,QAAQ,CAAC,eAAe,kBAAkB;IACjD,MAAM,CAAC,QAAQ,CAAC,SAAS,eAAe;IACxC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,uBAAuB;IAExD,MAAM,CAAC,QAAQ,CAAC,aAAa,qBAAqB;IAClD,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAW;IAChC,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAiB;CAC7C;AAED,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,QAAQ,CAAC,UAAU,gBAAgB;IAC1C,MAAM,CAAC,QAAQ,CAAC,kBAAkB,wBAAwB;IAC1D,MAAM,CAAC,QAAQ,CAAC,cAAc,cAAc;IAC5C,MAAM,CAAC,QAAQ,CAAC,YAAY,YAAY;IACxC,MAAM,CAAC,QAAQ,CAAC,eAAe,qBAAqB;CACrD"}
@@ -1,98 +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.BlazorConfigInfo = exports.DependentPluginInfo = exports.BlazorCommands = exports.BlazorPathInfo = exports.BlazorPluginInfo = exports.DefaultProvisionConfigs = exports.RegularExpr = exports.AzureInfo = exports.Constants = void 0;
6
- const tslib_1 = require("tslib");
7
- const path_1 = tslib_1.__importDefault(require("path"));
8
- class Constants {
9
- }
10
- exports.Constants = Constants;
11
- Constants.emptyString = "";
12
- class AzureInfo {
13
- }
14
- exports.AzureInfo = AzureInfo;
15
- AzureInfo.webappNameLenMax = 24;
16
- AzureInfo.suffixLenMax = 12;
17
- AzureInfo.zipDeployURL = (appName) => `https://${appName}.scm.azurewebsites.net/api/zipdeploy`;
18
- // TODO: static readonly requiredResourceProviders = ["Microsoft.Web"];
19
- AzureInfo.aadMetadataAddress = (tenantId) => `https://login.microsoftonline.com/${tenantId}/v2.0/.well-known/openid-configuration`;
20
- class RegularExpr {
21
- }
22
- exports.RegularExpr = RegularExpr;
23
- RegularExpr.allCharToBeSkippedInName = /[^a-zA-Z0-9]/g;
24
- RegularExpr.targetFramework = /(?<=<TargetFramework>)(.*)(?=<)/gim;
25
- class DefaultProvisionConfigs {
26
- }
27
- exports.DefaultProvisionConfigs = DefaultProvisionConfigs;
28
- DefaultProvisionConfigs.appServicePlansConfig = (location) => ({
29
- location: location,
30
- kind: "app",
31
- sku: {
32
- name: "B1",
33
- },
34
- });
35
- DefaultProvisionConfigs.webAppConfig = (location) => ({
36
- kind: "app",
37
- location: location,
38
- sku: {
39
- name: "B1",
40
- },
41
- });
42
- class BlazorPluginInfo {
43
- }
44
- exports.BlazorPluginInfo = BlazorPluginInfo;
45
- BlazorPluginInfo.pluginName = "fx-resource-blazor";
46
- BlazorPluginInfo.displayName = "Blazor";
47
- BlazorPluginInfo.alias = "bz";
48
- BlazorPluginInfo.issueLink = "https://github.com/OfficeDev/TeamsFx/issues/new";
49
- BlazorPluginInfo.helpLink = "https://aka.ms/teamsfx-bz-help";
50
- BlazorPluginInfo.persistentConfig = [
51
- "webAppName",
52
- "appServicePlanName",
53
- "endpoint",
54
- "domain",
55
- "projectFilePath",
56
- ];
57
- BlazorPluginInfo.defaultFramework = "net6.0";
58
- BlazorPluginInfo.defaultRuntime = "win-x86";
59
- class BlazorPathInfo {
60
- }
61
- exports.BlazorPathInfo = BlazorPathInfo;
62
- BlazorPathInfo.publishFolderPath = (workingPath, framework = BlazorPluginInfo.defaultFramework, runtime = BlazorPluginInfo.defaultRuntime) => path_1.default.join(workingPath, "bin", "Release", framework, runtime, "publish");
63
- class BlazorCommands {
64
- }
65
- exports.BlazorCommands = BlazorCommands;
66
- BlazorCommands.buildRelease = (runtime) => `dotnet publish --configuration Release --runtime ${runtime} --self-contained`;
67
- class DependentPluginInfo {
68
- }
69
- exports.DependentPluginInfo = DependentPluginInfo;
70
- DependentPluginInfo.solutionPluginName = "solution";
71
- DependentPluginInfo.subscriptionId = "subscriptionId";
72
- DependentPluginInfo.resourceGroupName = "resourceGroupName";
73
- DependentPluginInfo.resourceNameSuffix = "resourceNameSuffix";
74
- DependentPluginInfo.location = "location";
75
- DependentPluginInfo.remoteTeamsAppId = "remoteTeamsAppId";
76
- DependentPluginInfo.functionPluginName = "fx-resource-function";
77
- DependentPluginInfo.functionEndpoint = "functionEndpoint";
78
- DependentPluginInfo.runtimePluginName = "fx-resource-simple-auth";
79
- DependentPluginInfo.runtimeEndpoint = "endpoint";
80
- DependentPluginInfo.startLoginPageURL = "auth-start.html";
81
- DependentPluginInfo.aadPluginName = "fx-resource-aad-app-for-teams";
82
- DependentPluginInfo.clientID = "clientId";
83
- DependentPluginInfo.tenantId = "tenantId";
84
- DependentPluginInfo.aadClientSecret = "clientSecret";
85
- DependentPluginInfo.oauthHost = "oauthHost";
86
- DependentPluginInfo.applicationIdUris = "applicationIdUris";
87
- DependentPluginInfo.botPluginName = "fx-resource-bot";
88
- DependentPluginInfo.botId = "botId";
89
- DependentPluginInfo.botPassword = "botPassword";
90
- class BlazorConfigInfo {
91
- }
92
- exports.BlazorConfigInfo = BlazorConfigInfo;
93
- BlazorConfigInfo.webAppName = "webAppName";
94
- BlazorConfigInfo.appServicePlanName = "appServicePlanName";
95
- BlazorConfigInfo.webAppEndpoint = "endpoint";
96
- BlazorConfigInfo.webAppDomain = "domain";
97
- BlazorConfigInfo.projectFilePath = "projectFilePath";
98
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/blazor/constants.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAAwB;AAExB,MAAa,SAAS;;AAAtB,8BAEC;AADiB,qBAAW,GAAG,EAAE,CAAC;AAGnC,MAAa,SAAS;;AAAtB,8BAQC;AAPiB,0BAAgB,GAAG,EAAE,CAAC;AACtB,sBAAY,GAAG,EAAE,CAAC;AAClB,sBAAY,GAAG,CAAC,OAAe,EAAE,EAAE,CACjD,WAAW,OAAO,sCAAsC,CAAC;AAC3D,uEAAuE;AACvD,4BAAkB,GAAG,CAAC,QAAgB,EAAE,EAAE,CACxD,qCAAqC,QAAQ,wCAAwC,CAAC;AAG1F,MAAa,WAAW;;AAAxB,kCAGC;AAFiB,oCAAwB,GAAW,eAAe,CAAC;AACnD,2BAAe,GAAW,oCAAoC,CAAC;AAGjF,MAAa,uBAAuB;;AAApC,0DAgBC;AAfiB,6CAAqB,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,CAAC;IAC7D,QAAQ,EAAE,QAAQ;IAClB,IAAI,EAAE,KAAK;IACX,GAAG,EAAE;QACH,IAAI,EAAE,IAAI;KACX;CACF,CAAC,CAAC;AAEa,oCAAY,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,CAAC;IACpD,IAAI,EAAE,KAAK;IACX,QAAQ,EAAE,QAAQ;IAClB,GAAG,EAAE;QACH,IAAI,EAAE,IAAI;KACX;CACF,CAAC,CAAC;AAGL,MAAa,gBAAgB;;AAA7B,4CAiBC;AAhBiB,2BAAU,GAAG,oBAAoB,CAAC;AAClC,4BAAW,GAAG,QAAQ,CAAC;AACvB,sBAAK,GAAG,IAAI,CAAC;AACb,0BAAS,GAAG,iDAAiD,CAAC;AAC9D,yBAAQ,GAAG,gCAAgC,CAAC;AAE5C,iCAAgB,GAAG;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Aa,CAAC;AAG9C,MAAa,gBAAgB;;AAA7B,4CAMC;AALiB,2BAAU,GAAG,YAAY,CAAC;AAC1B,mCAAkB,GAAG,oBAAoB,CAAC;AAC1C,+BAAc,GAAG,UAAU,CAAC;AAC5B,6BAAY,GAAG,QAAQ,CAAC;AACxB,gCAAe,GAAG,iBAAiB,CAAC"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResourceType = exports.AppSettingsKey = exports.BlazorConfigKey = void 0;
4
- var BlazorConfigKey;
5
- (function (BlazorConfigKey) {
6
- /* Config from solution */
7
- BlazorConfigKey["resourceGroupName"] = "resourceGroupName";
8
- BlazorConfigKey["subscriptionId"] = "subscriptionId";
9
- BlazorConfigKey["resourceNameSuffix"] = "resourceNameSuffix";
10
- BlazorConfigKey["location"] = "location";
11
- BlazorConfigKey["credential"] = "credential";
12
- BlazorConfigKey["teamsAppName"] = "teamsAppName";
13
- /* Config exported by Blazor plugin */
14
- BlazorConfigKey["webAppName"] = "webAppName";
15
- BlazorConfigKey["appServicePlanName"] = "appServicePlanName";
16
- BlazorConfigKey["webAppEndpoint"] = "webAppEndpoint";
17
- BlazorConfigKey["webAppDomain"] = "webAppDomain";
18
- BlazorConfigKey["projectFilePath"] = "projectFilePath";
19
- BlazorConfigKey["webAppResourceId"] = "webAppResourceId";
20
- /* Intermediate */
21
- BlazorConfigKey["site"] = "site";
22
- })(BlazorConfigKey = exports.BlazorConfigKey || (exports.BlazorConfigKey = {}));
23
- var AppSettingsKey;
24
- (function (AppSettingsKey) {
25
- AppSettingsKey["clientSecret"] = "CLIENT_SECRET";
26
- AppSettingsKey["clientId"] = "CLIENT_ID";
27
- AppSettingsKey["oauthHost"] = "OAUTH_AUTHORITY";
28
- AppSettingsKey["tabAppEndpoint"] = "TAB_APP_ENDPOINT";
29
- AppSettingsKey["aadMetadataAddress"] = "AAD_METADATA_ADDRESS";
30
- AppSettingsKey["botId"] = "BOT_ID";
31
- AppSettingsKey["botPassword"] = "BOT_PASSWORD";
32
- AppSettingsKey["identifierUri"] = "IDENTIFIER_URI";
33
- })(AppSettingsKey = exports.AppSettingsKey || (exports.AppSettingsKey = {}));
34
- var ResourceType;
35
- (function (ResourceType) {
36
- ResourceType["webApp"] = "Azure Web App";
37
- ResourceType["appServicePlan"] = "Azure App Service Plan";
38
- })(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
39
- //# sourceMappingURL=enum.js.map
@@ -1,8 +0,0 @@
1
- import { Site } from "@azure/arm-appservice/esm/models/mappers";
2
- import { WebSiteManagementClient, WebSiteManagementModels } from "@azure/arm-appservice";
3
- declare type Site = WebSiteManagementModels.Site;
4
- export declare function generateWebAppName(appName: string, classSuffix: string, identSuffix: string): string;
5
- export declare function ensureWebApp(client: WebSiteManagementClient, resourceGroupName: string, location: string, webAppName: string, appServiceId: string): Promise<Site>;
6
- export declare function ensureAppServicePlan(client: WebSiteManagementClient, resourceGroupName: string, appServicePlanName: string, location: string): Promise<string>;
7
- export {};
8
- //# sourceMappingURL=provision.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provision.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/blazor/ops/provision.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,0CAA0C,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAOzF,aAAK,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAC;AAazC,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,MAAM,CAGR;AAED,wBAAsB,YAAY,CAChC,MAAM,EAAE,uBAAuB,EAC/B,iBAAiB,EAAE,MAAM,EACzB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAiBf;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,uBAAuB,EAC/B,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,mBAoBjB"}
@@ -1,42 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ensureAppServicePlan = exports.ensureWebApp = exports.generateWebAppName = void 0;
4
- const constants_1 = require("../constants");
5
- const azure_client_1 = require("../utils/azure-client");
6
- const errors_1 = require("../resources/errors");
7
- const enum_1 = require("../enum");
8
- function normalize(raw) {
9
- return raw.replace(constants_1.RegularExpr.allCharToBeSkippedInName, constants_1.Constants.emptyString).toLowerCase();
10
- }
11
- function concatName(appName, mergedSuffix) {
12
- const suffix = normalize(mergedSuffix).substr(0, constants_1.AzureInfo.suffixLenMax);
13
- const paddingLength = constants_1.AzureInfo.webappNameLenMax - suffix.length;
14
- const normalizedAppName = normalize(appName).substr(0, paddingLength);
15
- return normalizedAppName + suffix;
16
- }
17
- function generateWebAppName(appName, classSuffix, identSuffix) {
18
- const mergedSuffix = classSuffix + identSuffix;
19
- return concatName(appName, mergedSuffix);
20
- }
21
- exports.generateWebAppName = generateWebAppName;
22
- async function ensureWebApp(client, resourceGroupName, location, webAppName, appServiceId) {
23
- const siteEnvelope = Object.assign(Object.assign({}, constants_1.DefaultProvisionConfigs.webAppConfig(location)), { serverFarmId: appServiceId });
24
- const site = await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.ProvisionError(enum_1.ResourceType.webApp, error.code), async () => await azure_client_1.AzureLib.ensureWebApp(client, resourceGroupName, webAppName, siteEnvelope));
25
- if (!site.defaultHostName) {
26
- // TODO: Logger.error("failToGetWebAppEndpoint");
27
- throw new errors_1.ProvisionError(enum_1.ResourceType.webApp);
28
- }
29
- return site;
30
- }
31
- exports.ensureWebApp = ensureWebApp;
32
- async function ensureAppServicePlan(client, resourceGroupName, appServicePlanName, location) {
33
- const appServicePlan = await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.ProvisionError(enum_1.ResourceType.appServicePlan, error.code), async () => await azure_client_1.AzureLib.ensureAppServicePlan(client, resourceGroupName, appServicePlanName, constants_1.DefaultProvisionConfigs.appServicePlansConfig(location)));
34
- const appServicePlanId = appServicePlan.id;
35
- if (!appServicePlanId) {
36
- // TODO: Logger.error("failToGetAppServicePlanId");
37
- throw new errors_1.ProvisionError(enum_1.ResourceType.appServicePlan);
38
- }
39
- return appServicePlanId;
40
- }
41
- exports.ensureAppServicePlan = ensureAppServicePlan;
42
- //# sourceMappingURL=provision.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provision.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/blazor/ops/provision.ts"],"names":[],"mappings":";;;AAKA,4CAA0F;AAC1F,wDAAiD;AACjD,gDAA+E;AAC/E,kCAAuC;AAIvC,SAAS,SAAS,CAAC,GAAW;IAC5B,OAAO,GAAG,CAAC,OAAO,CAAC,uBAAW,CAAC,wBAAwB,EAAE,qBAAS,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAAC;AAChG,CAAC;AAED,SAAS,UAAU,CAAC,OAAe,EAAE,YAAoB;IACvD,MAAM,MAAM,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,qBAAS,CAAC,YAAY,CAAC,CAAC;IACzE,MAAM,aAAa,GAAG,qBAAS,CAAC,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IACjE,MAAM,iBAAiB,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC;IACtE,OAAO,iBAAiB,GAAG,MAAM,CAAC;AACpC,CAAC;AAED,SAAgB,kBAAkB,CAChC,OAAe,EACf,WAAmB,EACnB,WAAmB;IAEnB,MAAM,YAAY,GAAW,WAAW,GAAG,WAAW,CAAC;IACvD,OAAO,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CA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IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAxBD,oDAwBC"}
@@ -1,35 +0,0 @@
1
- import { PluginContext, ReadonlyPluginConfig } from "@microsoft/teamsfx-api";
2
- import { TeamsFxResult } from "./error-factory";
3
- import { WebSiteManagementModels } from "@azure/arm-appservice";
4
- declare type Site = WebSiteManagementModels.Site;
5
- export interface BlazorPluginConfig {
6
- resourceGroupName?: string;
7
- subscriptionId?: string;
8
- resourceNameSuffix?: string;
9
- location?: string;
10
- webAppName?: string;
11
- appServicePlanName?: string;
12
- endpoint?: string;
13
- domain?: string;
14
- projectFilePath?: string;
15
- webAppResourceId?: string;
16
- site?: Site;
17
- }
18
- export declare class BlazorPluginImpl {
19
- config: BlazorPluginConfig;
20
- private syncConfigFromContext;
21
- private syncConfigToContext;
22
- private checkAndGet;
23
- private isPluginEnabled;
24
- preProvision(ctx: PluginContext): Promise<TeamsFxResult>;
25
- provision(ctx: PluginContext): Promise<TeamsFxResult>;
26
- postProvision(ctx: PluginContext): Promise<TeamsFxResult>;
27
- collectAppSettings(ctx: PluginContext, site: Site): void;
28
- collectAppSettingsSelf(site: Site): void;
29
- collectAppSettingsFromBot(site: Site, botConfig: ReadonlyPluginConfig): void;
30
- collectAppSettingsFromAAD(site: Site, aadConfig: ReadonlyPluginConfig): void;
31
- pushAppSettings(site: Site, newName: string, newValue: string, replace?: boolean): void;
32
- deploy(ctx: PluginContext): Promise<TeamsFxResult>;
33
- }
34
- export {};
35
- //# sourceMappingURL=plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/blazor/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EAGb,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAShC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAwBhE,aAAK,IAA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