@microsoft/teamsfx-core 1.2.1 → 1.2.2-alpha.096c8289.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 (921) 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/constants.d.ts +9 -0
  4. package/build/common/constants.d.ts.map +1 -1
  5. package/build/common/constants.js +11 -1
  6. package/build/common/constants.js.map +1 -1
  7. package/build/common/deps-checker/constant/message.d.ts +0 -1
  8. package/build/common/deps-checker/constant/message.d.ts.map +1 -1
  9. package/build/common/deps-checker/constant/message.js +0 -4
  10. package/build/common/deps-checker/constant/message.js.map +1 -1
  11. package/build/common/deps-checker/depsChecker.d.ts +1 -0
  12. package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
  13. package/build/common/deps-checker/depsChecker.js.map +1 -1
  14. package/build/common/deps-checker/depsLogger.d.ts +10 -0
  15. package/build/common/deps-checker/depsLogger.d.ts.map +1 -1
  16. package/build/common/deps-checker/depsLogger.js +26 -0
  17. package/build/common/deps-checker/depsLogger.js.map +1 -1
  18. package/build/common/deps-checker/depsManager.d.ts +9 -5
  19. package/build/common/deps-checker/depsManager.d.ts.map +1 -1
  20. package/build/common/deps-checker/depsManager.js +29 -17
  21. package/build/common/deps-checker/depsManager.js.map +1 -1
  22. package/build/common/deps-checker/index.d.ts +1 -0
  23. package/build/common/deps-checker/index.d.ts.map +1 -1
  24. package/build/common/deps-checker/index.js +1 -0
  25. package/build/common/deps-checker/index.js.map +1 -1
  26. package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
  27. package/build/common/deps-checker/internal/dotnetChecker.js +2 -1
  28. package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
  29. package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
  30. package/build/common/deps-checker/internal/funcToolChecker.js +2 -1
  31. package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
  32. package/build/common/deps-checker/internal/ngrokChecker.d.ts +1 -1
  33. package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -1
  34. package/build/common/deps-checker/internal/ngrokChecker.js +2 -4
  35. package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -1
  36. package/build/common/deps-checker/internal/nodeChecker.d.ts +1 -0
  37. package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
  38. package/build/common/deps-checker/internal/nodeChecker.js +11 -1
  39. package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
  40. package/build/common/deps-checker/util/extensionInstaller.d.ts +3 -0
  41. package/build/common/deps-checker/util/extensionInstaller.d.ts.map +1 -0
  42. package/build/common/deps-checker/util/extensionInstaller.js +47 -0
  43. package/build/common/deps-checker/util/extensionInstaller.js.map +1 -0
  44. package/build/common/deps-checker/util/index.d.ts +5 -0
  45. package/build/common/deps-checker/util/index.d.ts.map +1 -0
  46. package/build/common/deps-checker/util/index.js +10 -0
  47. package/build/common/deps-checker/util/index.js.map +1 -0
  48. package/build/common/index.d.ts +1 -3
  49. package/build/common/index.d.ts.map +1 -1
  50. package/build/common/index.js +1 -3
  51. package/build/common/index.js.map +1 -1
  52. package/build/common/local/constants.d.ts +5 -42
  53. package/build/common/local/constants.d.ts.map +1 -1
  54. package/build/common/local/constants.js +7 -43
  55. package/build/common/local/constants.js.map +1 -1
  56. package/build/common/local/index.d.ts +6 -0
  57. package/build/common/local/index.d.ts.map +1 -0
  58. package/build/common/local/index.js +11 -0
  59. package/build/common/local/index.js.map +1 -0
  60. package/build/{plugins/solution/fx-solution/debug/util/certificate.d.ts → common/local/localCertificateManager.d.ts} +4 -6
  61. package/build/common/local/localCertificateManager.d.ts.map +1 -0
  62. package/build/{plugins/solution/fx-solution/debug/util/certificate.js → common/local/localCertificateManager.js} +35 -48
  63. package/build/common/local/localCertificateManager.js.map +1 -0
  64. package/build/common/local/localEnvManager.d.ts +6 -2
  65. package/build/common/local/localEnvManager.d.ts.map +1 -1
  66. package/build/common/local/localEnvManager.js +42 -2
  67. package/build/common/local/localEnvManager.js.map +1 -1
  68. package/build/common/local/localSettingsHelper.d.ts.map +1 -1
  69. package/build/common/local/localSettingsHelper.js +17 -16
  70. package/build/common/local/localSettingsHelper.js.map +1 -1
  71. package/build/common/local/packageJsonHelper.d.ts +1 -0
  72. package/build/common/local/packageJsonHelper.d.ts.map +1 -1
  73. package/build/common/local/packageJsonHelper.js +29 -1
  74. package/build/common/local/packageJsonHelper.js.map +1 -1
  75. package/build/common/local/portChecker.d.ts +2 -2
  76. package/build/common/local/portChecker.d.ts.map +1 -1
  77. package/build/common/local/portChecker.js +33 -50
  78. package/build/common/local/portChecker.js.map +1 -1
  79. package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.d.ts +0 -0
  80. package/build/common/local/process.d.ts.map +1 -0
  81. package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.js +0 -0
  82. package/build/common/local/process.js.map +1 -0
  83. package/build/common/local/projectSettingsHelper.d.ts +5 -5
  84. package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
  85. package/build/common/local/projectSettingsHelper.js +26 -19
  86. package/build/common/local/projectSettingsHelper.js.map +1 -1
  87. package/build/common/local/taskDefinition.d.ts +1 -8
  88. package/build/common/local/taskDefinition.d.ts.map +1 -1
  89. package/build/common/local/taskDefinition.js +8 -56
  90. package/build/common/local/taskDefinition.js.map +1 -1
  91. package/build/common/localSettingsConstants.d.ts +3 -6
  92. package/build/common/localSettingsConstants.d.ts.map +1 -1
  93. package/build/common/localSettingsConstants.js +4 -7
  94. package/build/common/localSettingsConstants.js.map +1 -1
  95. package/build/common/localSettingsProvider.d.ts +3 -3
  96. package/build/common/localSettingsProvider.d.ts.map +1 -1
  97. package/build/common/localSettingsProvider.js +16 -14
  98. package/build/common/localSettingsProvider.js.map +1 -1
  99. package/build/common/permissionInterface.d.ts +2 -2
  100. package/build/common/permissionInterface.d.ts.map +1 -1
  101. package/build/common/permissionInterface.js +2 -2
  102. package/build/common/permissionInterface.js.map +1 -1
  103. package/build/common/projectSettingsValidator.d.ts +3 -0
  104. package/build/common/projectSettingsValidator.d.ts.map +1 -0
  105. package/build/common/projectSettingsValidator.js +51 -0
  106. package/build/common/projectSettingsValidator.js.map +1 -0
  107. package/build/common/samples-config.json +24 -12
  108. package/build/common/samples.d.ts +1 -0
  109. package/build/common/samples.d.ts.map +1 -1
  110. package/build/common/samples.js +1 -0
  111. package/build/common/samples.js.map +1 -1
  112. package/build/common/telemetry.d.ts +10 -3
  113. package/build/common/telemetry.d.ts.map +1 -1
  114. package/build/common/telemetry.js +12 -4
  115. package/build/common/telemetry.js.map +1 -1
  116. package/build/common/{templates.d.ts → template-utils/templates.d.ts} +0 -0
  117. package/build/common/template-utils/templates.d.ts.map +1 -0
  118. package/build/common/{templates.js → template-utils/templates.js} +1 -1
  119. package/build/common/template-utils/templates.js.map +1 -0
  120. package/build/common/{templatesActions.d.ts → template-utils/templatesActions.d.ts} +0 -0
  121. package/build/common/template-utils/templatesActions.d.ts.map +1 -0
  122. package/build/common/{templatesActions.js → template-utils/templatesActions.js} +5 -5
  123. package/build/common/template-utils/templatesActions.js.map +1 -0
  124. package/build/common/{templatesUtils.d.ts → template-utils/templatesUtils.d.ts} +2 -1
  125. package/build/common/template-utils/templatesUtils.d.ts.map +1 -0
  126. package/build/common/{templatesUtils.js → template-utils/templatesUtils.js} +26 -8
  127. package/build/common/template-utils/templatesUtils.js.map +1 -0
  128. package/build/common/templates-config.json +2 -2
  129. package/build/common/tools.d.ts +1 -8
  130. package/build/common/tools.d.ts.map +1 -1
  131. package/build/common/tools.js +41 -19
  132. package/build/common/tools.js.map +1 -1
  133. package/build/core/downloadSample.js +1 -1
  134. package/build/core/downloadSample.js.map +1 -1
  135. package/build/core/environment.d.ts +4 -4
  136. package/build/core/environment.d.ts.map +1 -1
  137. package/build/core/environment.js +23 -2
  138. package/build/core/environment.js.map +1 -1
  139. package/build/core/error.d.ts +5 -0
  140. package/build/core/error.d.ts.map +1 -1
  141. package/build/core/error.js +16 -2
  142. package/build/core/error.js.map +1 -1
  143. package/build/core/index.d.ts +11 -20
  144. package/build/core/index.d.ts.map +1 -1
  145. package/build/core/index.js +160 -259
  146. package/build/core/index.js.map +1 -1
  147. package/build/core/middleware/CommonErrorHandlerMW.d.ts +14 -0
  148. package/build/core/middleware/CommonErrorHandlerMW.d.ts.map +1 -0
  149. package/build/core/middleware/CommonErrorHandlerMW.js +58 -0
  150. package/build/core/middleware/CommonErrorHandlerMW.js.map +1 -0
  151. package/build/core/middleware/envInfoLoader.d.ts.map +1 -1
  152. package/build/core/middleware/envInfoLoader.js +2 -1
  153. package/build/core/middleware/envInfoLoader.js.map +1 -1
  154. package/build/core/middleware/envInfoWriter.js +5 -6
  155. package/build/core/middleware/envInfoWriter.js.map +1 -1
  156. package/build/core/middleware/errorHandler.js +2 -1
  157. package/build/core/middleware/errorHandler.js.map +1 -1
  158. package/build/core/middleware/localSettingsLoader.d.ts.map +1 -1
  159. package/build/core/middleware/localSettingsLoader.js +27 -22
  160. package/build/core/middleware/localSettingsLoader.js.map +1 -1
  161. package/build/core/middleware/projectMigrator.d.ts.map +1 -1
  162. package/build/core/middleware/projectMigrator.js +3 -17
  163. package/build/core/middleware/projectMigrator.js.map +1 -1
  164. package/build/core/middleware/projectSettingsLoader.d.ts +1 -0
  165. package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
  166. package/build/core/middleware/projectSettingsLoader.js +9 -5
  167. package/build/core/middleware/projectSettingsLoader.js.map +1 -1
  168. package/build/core/middleware/projectSettingsWriter.d.ts.map +1 -1
  169. package/build/core/middleware/projectSettingsWriter.js +6 -4
  170. package/build/core/middleware/projectSettingsWriter.js.map +1 -1
  171. package/build/core/middleware/questionModel.d.ts +6 -8
  172. package/build/core/middleware/questionModel.d.ts.map +1 -1
  173. package/build/core/middleware/questionModel.js +20 -44
  174. package/build/core/middleware/questionModel.js.map +1 -1
  175. package/build/core/middleware/solutionLoader.d.ts.map +1 -1
  176. package/build/core/middleware/solutionLoader.js +5 -3
  177. package/build/core/middleware/solutionLoader.js.map +1 -1
  178. package/build/core/middleware/solutionLoaderV3.js +3 -2
  179. package/build/core/middleware/solutionLoaderV3.js.map +1 -1
  180. package/build/core/permissionRequest.js +2 -2
  181. package/build/core/permissionRequest.js.map +1 -1
  182. package/build/core/pvm/broker.d.ts +24 -0
  183. package/build/core/pvm/broker.d.ts.map +1 -0
  184. package/build/core/pvm/broker.js +93 -0
  185. package/build/core/pvm/broker.js.map +1 -0
  186. package/build/core/pvm/constant.d.ts +11 -0
  187. package/build/core/pvm/constant.d.ts.map +1 -0
  188. package/build/core/pvm/constant.js +14 -0
  189. package/build/core/pvm/constant.js.map +1 -0
  190. package/build/core/pvm/depot.d.ts +43 -0
  191. package/build/core/pvm/depot.d.ts.map +1 -0
  192. package/build/core/pvm/depot.js +243 -0
  193. package/build/core/pvm/depot.js.map +1 -0
  194. package/build/core/pvm/pvm.d.ts +49 -0
  195. package/build/core/pvm/pvm.d.ts.map +1 -0
  196. package/build/core/pvm/pvm.js +82 -0
  197. package/build/core/pvm/pvm.js.map +1 -0
  198. package/build/core/pvm/type.d.ts +11 -0
  199. package/build/core/pvm/type.d.ts.map +1 -0
  200. package/build/{plugins/resource/apim/interfaces/IApimResource.js → core/pvm/type.js} +1 -1
  201. package/build/core/pvm/type.js.map +1 -0
  202. package/build/core/pvm/utility.d.ts +2 -0
  203. package/build/core/pvm/utility.d.ts.map +1 -0
  204. package/build/core/pvm/utility.js +10 -0
  205. package/build/core/pvm/utility.js.map +1 -0
  206. package/build/core/question.d.ts.map +1 -1
  207. package/build/core/question.js +7 -4
  208. package/build/core/question.js.map +1 -1
  209. package/build/core/tools.d.ts +1 -2
  210. package/build/core/tools.d.ts.map +1 -1
  211. package/build/core/tools.js +3 -31
  212. package/build/core/tools.js.map +1 -1
  213. package/build/core/utils.d.ts +4 -0
  214. package/build/core/utils.d.ts.map +1 -0
  215. package/build/core/utils.js +14 -0
  216. package/build/core/utils.js.map +1 -0
  217. package/build/plugins/resource/aad/aadAppClient.d.ts +9 -9
  218. package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
  219. package/build/plugins/resource/aad/aadAppClient.js +30 -31
  220. package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
  221. package/build/plugins/resource/aad/errors.d.ts.map +1 -1
  222. package/build/plugins/resource/aad/errors.js +1 -2
  223. package/build/plugins/resource/aad/errors.js.map +1 -1
  224. package/build/plugins/resource/aad/index.d.ts +1 -0
  225. package/build/plugins/resource/aad/index.d.ts.map +1 -1
  226. package/build/plugins/resource/aad/index.js +6 -1
  227. package/build/plugins/resource/aad/index.js.map +1 -1
  228. package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts +4 -0
  229. package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts.map +1 -1
  230. package/build/plugins/resource/aad/plugin.d.ts +4 -3
  231. package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
  232. package/build/plugins/resource/aad/plugin.js +46 -59
  233. package/build/plugins/resource/aad/plugin.js.map +1 -1
  234. package/build/plugins/resource/aad/utils/common.d.ts +8 -4
  235. package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
  236. package/build/plugins/resource/aad/utils/common.js +70 -31
  237. package/build/plugins/resource/aad/utils/common.js.map +1 -1
  238. package/build/plugins/resource/aad/utils/configs.d.ts +10 -1
  239. package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
  240. package/build/plugins/resource/aad/utils/configs.js +224 -38
  241. package/build/plugins/resource/aad/utils/configs.js.map +1 -1
  242. package/build/plugins/resource/aad/utils/telemetry.d.ts +0 -1
  243. package/build/plugins/resource/aad/utils/telemetry.d.ts.map +1 -1
  244. package/build/plugins/resource/aad/utils/telemetry.js +10 -17
  245. package/build/plugins/resource/aad/utils/telemetry.js.map +1 -1
  246. package/build/plugins/resource/aad/utils/tokenProvider.d.ts +6 -2
  247. package/build/plugins/resource/aad/utils/tokenProvider.d.ts.map +1 -1
  248. package/build/plugins/resource/aad/utils/tokenProvider.js +11 -11
  249. package/build/plugins/resource/aad/utils/tokenProvider.js.map +1 -1
  250. package/build/plugins/resource/aad/v2/index.d.ts +12 -13
  251. package/build/plugins/resource/aad/v2/index.d.ts.map +1 -1
  252. package/build/plugins/resource/aad/v2/index.js +2 -1
  253. package/build/plugins/resource/aad/v2/index.js.map +1 -1
  254. package/build/plugins/resource/aad/v3/index.d.ts +20 -0
  255. package/build/plugins/resource/aad/v3/index.d.ts.map +1 -0
  256. package/build/plugins/resource/aad/v3/index.js +213 -0
  257. package/build/plugins/resource/aad/v3/index.js.map +1 -0
  258. package/build/plugins/resource/apim/answer.d.ts +0 -6
  259. package/build/plugins/resource/apim/answer.d.ts.map +1 -1
  260. package/build/plugins/resource/apim/answer.js +6 -45
  261. package/build/plugins/resource/apim/answer.js.map +1 -1
  262. package/build/plugins/resource/apim/config.d.ts +0 -12
  263. package/build/plugins/resource/apim/config.d.ts.map +1 -1
  264. package/build/plugins/resource/apim/config.js +0 -24
  265. package/build/plugins/resource/apim/config.js.map +1 -1
  266. package/build/plugins/resource/apim/constants.d.ts +1 -30
  267. package/build/plugins/resource/apim/constants.d.ts.map +1 -1
  268. package/build/plugins/resource/apim/constants.js +37 -74
  269. package/build/plugins/resource/apim/constants.js.map +1 -1
  270. package/build/plugins/resource/apim/error.d.ts +0 -1
  271. package/build/plugins/resource/apim/error.d.ts.map +1 -1
  272. package/build/plugins/resource/apim/error.js +2 -10
  273. package/build/plugins/resource/apim/error.js.map +1 -1
  274. package/build/plugins/resource/apim/factory.d.ts.map +1 -1
  275. package/build/plugins/resource/apim/factory.js +2 -5
  276. package/build/plugins/resource/apim/factory.js.map +1 -1
  277. package/build/plugins/resource/apim/index.d.ts +0 -1
  278. package/build/plugins/resource/apim/index.d.ts.map +1 -1
  279. package/build/plugins/resource/apim/index.js +1 -24
  280. package/build/plugins/resource/apim/index.js.map +1 -1
  281. package/build/plugins/resource/apim/managers/apimManager.d.ts +2 -3
  282. package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
  283. package/build/plugins/resource/apim/managers/apimManager.js +23 -63
  284. package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
  285. package/build/plugins/resource/apim/managers/questionManager.d.ts +2 -8
  286. package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
  287. package/build/plugins/resource/apim/managers/questionManager.js +2 -28
  288. package/build/plugins/resource/apim/managers/questionManager.js.map +1 -1
  289. package/build/plugins/resource/apim/questions/cliQuestion.d.ts +0 -8
  290. package/build/plugins/resource/apim/questions/cliQuestion.d.ts.map +1 -1
  291. package/build/plugins/resource/apim/questions/cliQuestion.js +1 -33
  292. package/build/plugins/resource/apim/questions/cliQuestion.js.map +1 -1
  293. package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts +0 -6
  294. package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
  295. package/build/plugins/resource/apim/questions/vscodeQuestion.js +7 -56
  296. package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
  297. package/build/plugins/resource/apim/services/apimService.d.ts +1 -12
  298. package/build/plugins/resource/apim/services/apimService.d.ts.map +1 -1
  299. package/build/plugins/resource/apim/services/apimService.js +0 -112
  300. package/build/plugins/resource/apim/services/apimService.js.map +1 -1
  301. package/build/plugins/resource/apim/utils/commonUtils.d.ts +1 -1
  302. package/build/plugins/resource/apim/utils/commonUtils.js +3 -3
  303. package/build/plugins/resource/apim/utils/namingRules.d.ts +0 -4
  304. package/build/plugins/resource/apim/utils/namingRules.d.ts.map +1 -1
  305. package/build/plugins/resource/apim/utils/namingRules.js +0 -32
  306. package/build/plugins/resource/apim/utils/namingRules.js.map +1 -1
  307. package/build/plugins/resource/apim/v2/index.d.ts +5 -7
  308. package/build/plugins/resource/apim/v2/index.d.ts.map +1 -1
  309. package/build/plugins/resource/apim/v2/index.js +2 -7
  310. package/build/plugins/resource/apim/v2/index.js.map +1 -1
  311. package/build/plugins/resource/appstudio/appStudio.d.ts +3 -0
  312. package/build/plugins/resource/appstudio/appStudio.d.ts.map +1 -1
  313. package/build/plugins/resource/appstudio/appStudio.js +3 -0
  314. package/build/plugins/resource/appstudio/appStudio.js.map +1 -1
  315. package/build/plugins/resource/appstudio/constants.d.ts +9 -2
  316. package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
  317. package/build/plugins/resource/appstudio/constants.js +126 -11
  318. package/build/plugins/resource/appstudio/constants.js.map +1 -1
  319. package/build/plugins/resource/appstudio/index.d.ts +2 -36
  320. package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
  321. package/build/plugins/resource/appstudio/index.js +1 -31
  322. package/build/plugins/resource/appstudio/index.js.map +1 -1
  323. package/build/plugins/resource/appstudio/manifestTemplate.d.ts +3 -27
  324. package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
  325. package/build/plugins/resource/appstudio/manifestTemplate.js +60 -19
  326. package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
  327. package/build/plugins/resource/appstudio/plugin.d.ts +4 -0
  328. package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
  329. package/build/plugins/resource/appstudio/plugin.js +66 -15
  330. package/build/plugins/resource/appstudio/plugin.js.map +1 -1
  331. package/build/plugins/resource/appstudio/utils/telemetry.d.ts +8 -4
  332. package/build/plugins/resource/appstudio/utils/telemetry.d.ts.map +1 -1
  333. package/build/plugins/resource/appstudio/utils/telemetry.js +13 -12
  334. package/build/plugins/resource/appstudio/utils/telemetry.js.map +1 -1
  335. package/build/plugins/resource/appstudio/v2/index.d.ts +5 -5
  336. package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
  337. package/build/plugins/resource/appstudio/v2/index.js +2 -1
  338. package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
  339. package/build/plugins/resource/appstudio/v3/index.d.ts +15 -29
  340. package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
  341. package/build/plugins/resource/appstudio/v3/index.js +86 -17
  342. package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
  343. package/build/plugins/resource/bot/aadRegistration.d.ts.map +1 -1
  344. package/build/plugins/resource/bot/aadRegistration.js +5 -4
  345. package/build/plugins/resource/bot/aadRegistration.js.map +1 -1
  346. package/build/plugins/resource/bot/configs/provisionConfig.d.ts.map +1 -1
  347. package/build/plugins/resource/bot/configs/provisionConfig.js +0 -10
  348. package/build/plugins/resource/bot/configs/provisionConfig.js.map +1 -1
  349. package/build/plugins/resource/bot/dotnet/constants.d.ts +5 -0
  350. package/build/plugins/resource/bot/dotnet/constants.d.ts.map +1 -0
  351. package/build/plugins/resource/bot/dotnet/constants.js +13 -0
  352. package/build/plugins/resource/bot/dotnet/constants.js.map +1 -0
  353. package/build/plugins/resource/bot/dotnet/plugin.d.ts +14 -0
  354. package/build/plugins/resource/bot/dotnet/plugin.d.ts.map +1 -0
  355. package/build/plugins/resource/bot/dotnet/plugin.js +62 -0
  356. package/build/plugins/resource/bot/dotnet/plugin.js.map +1 -0
  357. package/build/plugins/resource/bot/enums/programmingLanguage.d.ts +2 -1
  358. package/build/plugins/resource/bot/enums/programmingLanguage.d.ts.map +1 -1
  359. package/build/plugins/resource/bot/enums/programmingLanguage.js +1 -0
  360. package/build/plugins/resource/bot/enums/programmingLanguage.js.map +1 -1
  361. package/build/plugins/resource/bot/index.d.ts +5 -0
  362. package/build/plugins/resource/bot/index.d.ts.map +1 -1
  363. package/build/plugins/resource/bot/index.js +24 -13
  364. package/build/plugins/resource/bot/index.js.map +1 -1
  365. package/build/plugins/resource/bot/interface.d.ts +16 -0
  366. package/build/plugins/resource/bot/interface.d.ts.map +1 -0
  367. package/build/plugins/resource/bot/interface.js +5 -0
  368. package/build/plugins/resource/bot/interface.js.map +1 -0
  369. package/build/plugins/resource/bot/languageStrategy.d.ts +1 -1
  370. package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
  371. package/build/plugins/resource/bot/languageStrategy.js +1 -1
  372. package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
  373. package/build/plugins/resource/bot/plugin.d.ts +2 -1
  374. package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
  375. package/build/plugins/resource/bot/plugin.js +16 -135
  376. package/build/plugins/resource/bot/plugin.js.map +1 -1
  377. package/build/plugins/resource/bot/v2/index.d.ts +5 -5
  378. package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
  379. package/build/plugins/resource/bot/v2/index.js +2 -1
  380. package/build/plugins/resource/bot/v2/index.js.map +1 -1
  381. package/build/plugins/resource/frontend/configs.d.ts +1 -1
  382. package/build/plugins/resource/frontend/configs.d.ts.map +1 -1
  383. package/build/plugins/resource/frontend/configs.js +3 -9
  384. package/build/plugins/resource/frontend/configs.js.map +1 -1
  385. package/build/plugins/resource/frontend/constants.d.ts +2 -8
  386. package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
  387. package/build/plugins/resource/frontend/constants.js +3 -11
  388. package/build/plugins/resource/frontend/constants.js.map +1 -1
  389. package/build/plugins/resource/frontend/dotnet/constants.d.ts +56 -0
  390. package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -0
  391. package/build/plugins/resource/frontend/dotnet/constants.js +73 -0
  392. package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -0
  393. package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts +1 -1
  394. package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts.map +1 -1
  395. package/build/plugins/resource/frontend/dotnet/enum.js +41 -0
  396. package/build/plugins/resource/frontend/dotnet/enum.js.map +1 -0
  397. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts +0 -0
  398. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts.map +1 -1
  399. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js +3 -3
  400. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js.map +1 -1
  401. package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts +0 -0
  402. package/build/plugins/resource/frontend/dotnet/ops/deploy.d.ts.map +1 -0
  403. package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js +21 -6
  404. package/build/plugins/resource/frontend/dotnet/ops/deploy.js.map +1 -0
  405. package/build/plugins/resource/frontend/dotnet/plugin.d.ts +32 -0
  406. package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -0
  407. package/build/plugins/resource/frontend/dotnet/plugin.js +132 -0
  408. package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -0
  409. package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +35 -0
  410. package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +1 -0
  411. package/build/plugins/resource/frontend/{blazor → dotnet}/resources/errors.js +10 -22
  412. package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +1 -0
  413. package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts +24 -0
  414. package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -0
  415. package/build/plugins/resource/frontend/dotnet/resources/messages.js +33 -0
  416. package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -0
  417. package/build/plugins/resource/frontend/dotnet/resources/steps.d.ts +3 -0
  418. package/build/plugins/resource/frontend/dotnet/resources/steps.d.ts.map +1 -0
  419. package/build/plugins/resource/frontend/dotnet/resources/steps.js +16 -0
  420. package/build/plugins/resource/frontend/dotnet/resources/steps.js.map +1 -0
  421. package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts +6 -0
  422. package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts.map +1 -0
  423. package/build/plugins/resource/frontend/dotnet/utils/azure-client.js +11 -0
  424. package/build/plugins/resource/frontend/dotnet/utils/azure-client.js.map +1 -0
  425. package/build/plugins/resource/frontend/index.d.ts +6 -4
  426. package/build/plugins/resource/frontend/index.d.ts.map +1 -1
  427. package/build/plugins/resource/frontend/index.js +29 -49
  428. package/build/plugins/resource/frontend/index.js.map +1 -1
  429. package/build/plugins/resource/frontend/interface.d.ts +13 -0
  430. package/build/plugins/resource/frontend/interface.d.ts.map +1 -0
  431. package/build/plugins/resource/frontend/interface.js +5 -0
  432. package/build/plugins/resource/frontend/interface.js.map +1 -0
  433. package/build/plugins/resource/frontend/ops/deploy.d.ts +3 -0
  434. package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
  435. package/build/plugins/resource/frontend/ops/deploy.js +58 -14
  436. package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
  437. package/build/plugins/resource/frontend/ops/scaffold.d.ts +0 -10
  438. package/build/plugins/resource/frontend/ops/scaffold.d.ts.map +1 -1
  439. package/build/plugins/resource/frontend/ops/scaffold.js +1 -1
  440. package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
  441. package/build/plugins/resource/frontend/plugin.d.ts +3 -3
  442. package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
  443. package/build/plugins/resource/frontend/plugin.js +27 -58
  444. package/build/plugins/resource/frontend/plugin.js.map +1 -1
  445. package/build/plugins/resource/frontend/resources/errors.d.ts +23 -20
  446. package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
  447. package/build/plugins/resource/frontend/resources/errors.js +31 -67
  448. package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
  449. package/build/plugins/resource/frontend/resources/steps.d.ts +7 -0
  450. package/build/plugins/resource/frontend/resources/steps.d.ts.map +1 -0
  451. package/build/plugins/resource/frontend/resources/steps.js +41 -0
  452. package/build/plugins/resource/frontend/resources/steps.js.map +1 -0
  453. package/build/plugins/resource/frontend/resources/templateInfo.d.ts +4 -3
  454. package/build/plugins/resource/frontend/resources/templateInfo.d.ts.map +1 -1
  455. package/build/plugins/resource/frontend/resources/templateInfo.js +9 -8
  456. package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
  457. package/build/plugins/resource/frontend/utils/logger.d.ts +3 -1
  458. package/build/plugins/resource/frontend/utils/logger.d.ts.map +1 -1
  459. package/build/plugins/resource/frontend/utils/logger.js +9 -6
  460. package/build/plugins/resource/frontend/utils/logger.js.map +1 -1
  461. package/build/plugins/resource/frontend/utils/progress-helper.d.ts +9 -43
  462. package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
  463. package/build/plugins/resource/frontend/utils/progress-helper.js +9 -100
  464. package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
  465. package/build/plugins/resource/frontend/v2/index.d.ts +5 -5
  466. package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
  467. package/build/plugins/resource/frontend/v2/index.js +5 -4
  468. package/build/plugins/resource/frontend/v2/index.js.map +1 -1
  469. package/build/plugins/resource/frontend/v3/error.d.ts +23 -0
  470. package/build/plugins/resource/frontend/v3/error.d.ts.map +1 -0
  471. package/build/plugins/resource/frontend/v3/error.js +66 -0
  472. package/build/plugins/resource/frontend/v3/error.js.map +1 -0
  473. package/build/plugins/resource/frontend/v3/index.d.ts +16 -0
  474. package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -0
  475. package/build/plugins/resource/frontend/v3/index.js +264 -0
  476. package/build/plugins/resource/frontend/v3/index.js.map +1 -0
  477. package/build/plugins/resource/function/index.d.ts +1 -1
  478. package/build/plugins/resource/function/index.d.ts.map +1 -1
  479. package/build/plugins/resource/function/index.js +8 -21
  480. package/build/plugins/resource/function/index.js.map +1 -1
  481. package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
  482. package/build/plugins/resource/function/ops/deploy.js +8 -9
  483. package/build/plugins/resource/function/ops/deploy.js.map +1 -1
  484. package/build/plugins/resource/function/ops/scaffold.js +1 -1
  485. package/build/plugins/resource/function/ops/scaffold.js.map +1 -1
  486. package/build/plugins/resource/function/plugin.d.ts.map +1 -1
  487. package/build/plugins/resource/function/plugin.js +35 -138
  488. package/build/plugins/resource/function/plugin.js.map +1 -1
  489. package/build/plugins/resource/function/resources/message.d.ts +0 -1
  490. package/build/plugins/resource/function/resources/message.d.ts.map +1 -1
  491. package/build/plugins/resource/function/resources/message.js +0 -1
  492. package/build/plugins/resource/function/resources/message.js.map +1 -1
  493. package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +11 -0
  494. package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -0
  495. package/build/plugins/resource/function/utils/depsChecker/funcHelper.js +48 -0
  496. package/build/plugins/resource/function/utils/depsChecker/funcHelper.js.map +1 -0
  497. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts +6 -4
  498. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts.map +1 -1
  499. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js +15 -8
  500. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js.map +1 -1
  501. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts +4 -3
  502. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts.map +1 -1
  503. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js +5 -4
  504. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js.map +1 -1
  505. package/build/plugins/resource/function/utils/telemetry-helper.d.ts +1 -1
  506. package/build/plugins/resource/function/utils/telemetry-helper.d.ts.map +1 -1
  507. package/build/plugins/resource/function/v2/index.d.ts +5 -5
  508. package/build/plugins/resource/function/v2/index.d.ts.map +1 -1
  509. package/build/plugins/resource/function/v2/index.js +2 -1
  510. package/build/plugins/resource/function/v2/index.js.map +1 -1
  511. package/build/plugins/resource/identity/index.d.ts +1 -1
  512. package/build/plugins/resource/identity/index.d.ts.map +1 -1
  513. package/build/plugins/resource/identity/index.js +4 -22
  514. package/build/plugins/resource/identity/index.js.map +1 -1
  515. package/build/plugins/resource/identity/v2/index.d.ts +4 -4
  516. package/build/plugins/resource/identity/v2/index.d.ts.map +1 -1
  517. package/build/plugins/resource/identity/v2/index.js +2 -1
  518. package/build/plugins/resource/identity/v2/index.js.map +1 -1
  519. package/build/plugins/resource/identity/v3/index.d.ts +12 -0
  520. package/build/plugins/resource/identity/v3/index.d.ts.map +1 -0
  521. package/build/plugins/resource/identity/v3/index.js +89 -0
  522. package/build/plugins/resource/identity/v3/index.js.map +1 -0
  523. package/build/plugins/resource/keyvault/index.d.ts +1 -0
  524. package/build/plugins/resource/keyvault/index.d.ts.map +1 -1
  525. package/build/plugins/resource/keyvault/index.js +1 -0
  526. package/build/plugins/resource/keyvault/index.js.map +1 -1
  527. package/build/plugins/resource/keyvault/plugin.d.ts.map +1 -1
  528. package/build/plugins/resource/keyvault/plugin.js +1 -2
  529. package/build/plugins/resource/keyvault/plugin.js.map +1 -1
  530. package/build/plugins/resource/keyvault/v2/index.d.ts +2 -2
  531. package/build/plugins/resource/keyvault/v2/index.d.ts.map +1 -1
  532. package/build/plugins/resource/keyvault/v2/index.js +2 -1
  533. package/build/plugins/resource/keyvault/v2/index.js.map +1 -1
  534. package/build/plugins/resource/keyvault/v3/index.d.ts +10 -0
  535. package/build/plugins/resource/keyvault/v3/index.d.ts.map +1 -0
  536. package/build/plugins/resource/keyvault/v3/index.js +90 -0
  537. package/build/plugins/resource/keyvault/v3/index.js.map +1 -0
  538. package/build/plugins/resource/localdebug/constants.d.ts +0 -1
  539. package/build/plugins/resource/localdebug/constants.d.ts.map +1 -1
  540. package/build/plugins/resource/localdebug/constants.js +0 -1
  541. package/build/plugins/resource/localdebug/constants.js.map +1 -1
  542. package/build/plugins/resource/localdebug/v2/index.d.ts +2 -2
  543. package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
  544. package/build/plugins/resource/localdebug/v2/index.js +3 -5
  545. package/build/plugins/resource/localdebug/v2/index.js.map +1 -1
  546. package/build/plugins/resource/simpleauth/index.d.ts.map +1 -1
  547. package/build/plugins/resource/simpleauth/index.js +6 -11
  548. package/build/plugins/resource/simpleauth/index.js.map +1 -1
  549. package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
  550. package/build/plugins/resource/simpleauth/plugin.js +4 -9
  551. package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
  552. package/build/plugins/resource/simpleauth/v2/index.d.ts +4 -4
  553. package/build/plugins/resource/simpleauth/v2/index.d.ts.map +1 -1
  554. package/build/plugins/resource/simpleauth/v2/index.js +2 -1
  555. package/build/plugins/resource/simpleauth/v2/index.js.map +1 -1
  556. package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
  557. package/build/plugins/resource/spfx/plugin.js +14 -9
  558. package/build/plugins/resource/spfx/plugin.js.map +1 -1
  559. package/build/plugins/resource/spfx/utils/constants.d.ts +5 -4
  560. package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
  561. package/build/plugins/resource/spfx/utils/constants.js +5 -4
  562. package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
  563. package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
  564. package/build/plugins/resource/spfx/utils/progress-helper.js +1 -1
  565. package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
  566. package/build/plugins/resource/spfx/v2/index.d.ts +2 -2
  567. package/build/plugins/resource/spfx/v2/index.d.ts.map +1 -1
  568. package/build/plugins/resource/spfx/v2/index.js +2 -1
  569. package/build/plugins/resource/spfx/v2/index.js.map +1 -1
  570. package/build/plugins/resource/sql/config.d.ts +1 -0
  571. package/build/plugins/resource/sql/config.d.ts.map +1 -1
  572. package/build/plugins/resource/sql/config.js +1 -0
  573. package/build/plugins/resource/sql/config.js.map +1 -1
  574. package/build/plugins/resource/sql/constants.d.ts +3 -3
  575. package/build/plugins/resource/sql/constants.d.ts.map +1 -1
  576. package/build/plugins/resource/sql/constants.js +3 -3
  577. package/build/plugins/resource/sql/constants.js.map +1 -1
  578. package/build/plugins/resource/sql/errors.d.ts +1 -17
  579. package/build/plugins/resource/sql/errors.d.ts.map +1 -1
  580. package/build/plugins/resource/sql/errors.js +1 -17
  581. package/build/plugins/resource/sql/errors.js.map +1 -1
  582. package/build/plugins/resource/sql/index.d.ts.map +1 -1
  583. package/build/plugins/resource/sql/index.js +11 -11
  584. package/build/plugins/resource/sql/index.js.map +1 -1
  585. package/build/plugins/resource/sql/managementClient.d.ts +0 -4
  586. package/build/plugins/resource/sql/managementClient.d.ts.map +1 -1
  587. package/build/plugins/resource/sql/managementClient.js +14 -70
  588. package/build/plugins/resource/sql/managementClient.js.map +1 -1
  589. package/build/plugins/resource/sql/plugin.d.ts +4 -2
  590. package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
  591. package/build/plugins/resource/sql/plugin.js +77 -123
  592. package/build/plugins/resource/sql/plugin.js.map +1 -1
  593. package/build/plugins/resource/sql/sqlClient.d.ts +2 -2
  594. package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
  595. package/build/plugins/resource/sql/sqlClient.js +13 -12
  596. package/build/plugins/resource/sql/sqlClient.js.map +1 -1
  597. package/build/plugins/resource/sql/utils/dialogUtils.d.ts +0 -5
  598. package/build/plugins/resource/sql/utils/dialogUtils.d.ts.map +1 -1
  599. package/build/plugins/resource/sql/utils/dialogUtils.js +1 -7
  600. package/build/plugins/resource/sql/utils/dialogUtils.js.map +1 -1
  601. package/build/plugins/resource/sql/utils/message.d.ts +0 -10
  602. package/build/plugins/resource/sql/utils/message.d.ts.map +1 -1
  603. package/build/plugins/resource/sql/utils/message.js +0 -10
  604. package/build/plugins/resource/sql/utils/message.js.map +1 -1
  605. package/build/plugins/resource/sql/v2/index.d.ts +5 -5
  606. package/build/plugins/resource/sql/v2/index.d.ts.map +1 -1
  607. package/build/plugins/resource/sql/v2/index.js +2 -1
  608. package/build/plugins/resource/sql/v2/index.js.map +1 -1
  609. package/build/plugins/resource/utils4v2.d.ts +17 -21
  610. package/build/plugins/resource/utils4v2.d.ts.map +1 -1
  611. package/build/plugins/resource/utils4v2.js +12 -36
  612. package/build/plugins/resource/utils4v2.js.map +1 -1
  613. package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts +3 -3
  614. package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
  615. package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +7 -6
  616. package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +1 -1
  617. package/build/plugins/solution/fx-solution/arm.d.ts +8 -2
  618. package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
  619. package/build/plugins/solution/fx-solution/arm.js +151 -76
  620. package/build/plugins/solution/fx-solution/arm.js.map +1 -1
  621. package/build/plugins/solution/fx-solution/commonQuestions.d.ts +4 -3
  622. package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
  623. package/build/plugins/solution/fx-solution/commonQuestions.js +11 -17
  624. package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
  625. package/build/plugins/solution/fx-solution/constants.d.ts +3 -4
  626. package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
  627. package/build/plugins/solution/fx-solution/constants.js +4 -5
  628. package/build/plugins/solution/fx-solution/constants.js.map +1 -1
  629. package/build/plugins/solution/fx-solution/debug/constants.d.ts +0 -5
  630. package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -1
  631. package/build/plugins/solution/fx-solution/debug/constants.js +1 -7
  632. package/build/plugins/solution/fx-solution/debug/constants.js.map +1 -1
  633. package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -1
  634. package/build/plugins/solution/fx-solution/debug/provisionLocal.js +19 -10
  635. package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
  636. package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +2 -2
  637. package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
  638. package/build/plugins/solution/fx-solution/debug/scaffolding.js +23 -4
  639. package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
  640. package/build/plugins/solution/fx-solution/debug/util/tasks.d.ts.map +1 -1
  641. package/build/plugins/solution/fx-solution/debug/util/tasks.js +2 -4
  642. package/build/plugins/solution/fx-solution/debug/util/tasks.js.map +1 -1
  643. package/build/plugins/solution/fx-solution/debug/util/tasksNext.d.ts +2 -0
  644. package/build/plugins/solution/fx-solution/debug/util/tasksNext.d.ts.map +1 -0
  645. package/build/plugins/solution/fx-solution/debug/util/tasksNext.js +145 -0
  646. package/build/plugins/solution/fx-solution/debug/util/tasksNext.js.map +1 -0
  647. package/build/plugins/solution/fx-solution/question.d.ts +2 -2
  648. package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
  649. package/build/plugins/solution/fx-solution/question.js +32 -22
  650. package/build/plugins/solution/fx-solution/question.js.map +1 -1
  651. package/build/plugins/solution/fx-solution/solution.d.ts +2 -1
  652. package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
  653. package/build/plugins/solution/fx-solution/solution.js +48 -29
  654. package/build/plugins/solution/fx-solution/solution.js.map +1 -1
  655. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts +31 -0
  656. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts.map +1 -0
  657. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js +222 -0
  658. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js.map +1 -0
  659. package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts.map +1 -1
  660. package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.d.ts +3 -0
  661. package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.d.ts.map +1 -0
  662. package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.js +19 -0
  663. package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.js.map +1 -0
  664. package/build/plugins/solution/fx-solution/v2/adaptor.js +1 -1
  665. package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
  666. package/build/plugins/solution/fx-solution/v2/checkPermission.d.ts.map +1 -1
  667. package/build/plugins/solution/fx-solution/v2/checkPermission.js +32 -15
  668. package/build/plugins/solution/fx-solution/v2/checkPermission.js.map +1 -1
  669. package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -1
  670. package/build/plugins/solution/fx-solution/v2/createEnv.js +1 -3
  671. package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -1
  672. package/build/plugins/solution/fx-solution/v2/deploy.d.ts.map +1 -1
  673. package/build/plugins/solution/fx-solution/v2/deploy.js +3 -3
  674. package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
  675. package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +3 -3
  676. package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
  677. package/build/plugins/solution/fx-solution/v2/executeUserTask.js +217 -122
  678. package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
  679. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +1 -1
  680. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
  681. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +6 -14
  682. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
  683. package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
  684. package/build/plugins/solution/fx-solution/v2/getQuestions.js +88 -99
  685. package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
  686. package/build/plugins/solution/fx-solution/v2/grantPermission.d.ts.map +1 -1
  687. package/build/plugins/solution/fx-solution/v2/grantPermission.js +33 -16
  688. package/build/plugins/solution/fx-solution/v2/grantPermission.js.map +1 -1
  689. package/build/plugins/solution/fx-solution/v2/listCollaborator.d.ts.map +1 -1
  690. package/build/plugins/solution/fx-solution/v2/listCollaborator.js +26 -11
  691. package/build/plugins/solution/fx-solution/v2/listCollaborator.js.map +1 -1
  692. package/build/plugins/solution/fx-solution/v2/provision.d.ts +2 -3
  693. package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
  694. package/build/plugins/solution/fx-solution/v2/provision.js +98 -130
  695. package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
  696. package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts.map +1 -1
  697. package/build/plugins/solution/fx-solution/v2/provisionLocal.js +1 -6
  698. package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -1
  699. package/build/plugins/solution/fx-solution/v2/publish.js +2 -2
  700. package/build/plugins/solution/fx-solution/v2/publish.js.map +1 -1
  701. package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
  702. package/build/plugins/solution/fx-solution/v2/scaffolding.js +23 -9
  703. package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
  704. package/build/plugins/solution/fx-solution/v2/solution.d.ts +2 -2
  705. package/build/plugins/solution/fx-solution/v2/solution.d.ts.map +1 -1
  706. package/build/plugins/solution/fx-solution/v2/solution.js +0 -2
  707. package/build/plugins/solution/fx-solution/v2/solution.js.map +1 -1
  708. package/build/plugins/solution/fx-solution/v2/utils.d.ts +6 -6
  709. package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
  710. package/build/plugins/solution/fx-solution/v2/utils.js +16 -16
  711. package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
  712. package/build/plugins/solution/fx-solution/v3/addFeature.d.ts +25 -0
  713. package/build/plugins/solution/fx-solution/v3/addFeature.d.ts.map +1 -0
  714. package/build/plugins/solution/fx-solution/v3/addFeature.js +115 -0
  715. package/build/plugins/solution/fx-solution/v3/addFeature.js.map +1 -0
  716. package/build/plugins/solution/fx-solution/v3/constants.d.ts +9 -9
  717. package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
  718. package/build/plugins/solution/fx-solution/v3/constants.js +11 -11
  719. package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
  720. package/build/plugins/solution/fx-solution/v3/deploy.d.ts +2 -4
  721. package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
  722. package/build/plugins/solution/fx-solution/v3/deploy.js +15 -18
  723. package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
  724. package/build/plugins/solution/fx-solution/v3/error.d.ts +1 -7
  725. package/build/plugins/solution/fx-solution/v3/error.d.ts.map +1 -1
  726. package/build/plugins/solution/fx-solution/v3/error.js +0 -14
  727. package/build/plugins/solution/fx-solution/v3/error.js.map +1 -1
  728. package/build/plugins/solution/fx-solution/v3/provision.d.ts +15 -3
  729. package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
  730. package/build/plugins/solution/fx-solution/v3/provision.js +324 -81
  731. package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
  732. package/build/plugins/solution/fx-solution/v3/publish.d.ts +2 -2
  733. package/build/plugins/solution/fx-solution/v3/publish.d.ts.map +1 -1
  734. package/build/plugins/solution/fx-solution/v3/publish.js +1 -1
  735. package/build/plugins/solution/fx-solution/v3/publish.js.map +1 -1
  736. package/build/plugins/solution/fx-solution/v3/solution.d.ts +14 -24
  737. package/build/plugins/solution/fx-solution/v3/solution.d.ts.map +1 -1
  738. package/build/plugins/solution/fx-solution/v3/solution.js +75 -19
  739. package/build/plugins/solution/fx-solution/v3/solution.js.map +1 -1
  740. package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.d.ts +5 -0
  741. package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.d.ts.map +1 -0
  742. package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.js +10 -0
  743. package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.js.map +1 -0
  744. package/build/plugins/solution/fx-solution/v3/userTask.d.ts +4 -3
  745. package/build/plugins/solution/fx-solution/v3/userTask.d.ts.map +1 -1
  746. package/build/plugins/solution/fx-solution/v3/userTask.js +111 -5
  747. package/build/plugins/solution/fx-solution/v3/userTask.js.map +1 -1
  748. package/build/plugins/solution/fx-solution/v3/utils.d.ts +1 -2
  749. package/build/plugins/solution/fx-solution/v3/utils.d.ts.map +1 -1
  750. package/build/plugins/solution/fx-solution/v3/utils.js +0 -13
  751. package/build/plugins/solution/fx-solution/v3/utils.js.map +1 -1
  752. package/build/plugins/solution/spfx-solution/addFeature.d.ts +5 -0
  753. package/build/plugins/solution/spfx-solution/addFeature.d.ts.map +1 -0
  754. package/build/plugins/solution/spfx-solution/addFeature.js +38 -0
  755. package/build/plugins/solution/spfx-solution/addFeature.js.map +1 -0
  756. package/build/plugins/solution/spfx-solution/solution.d.ts +5 -17
  757. package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -1
  758. package/build/plugins/solution/spfx-solution/solution.js +5 -12
  759. package/build/plugins/solution/spfx-solution/solution.js.map +1 -1
  760. package/build/plugins/solution/utils/questions.d.ts +5 -11
  761. package/build/plugins/solution/utils/questions.d.ts.map +1 -1
  762. package/build/plugins/solution/utils/questions.js +9 -62
  763. package/build/plugins/solution/utils/questions.js.map +1 -1
  764. package/package.json +21 -10
  765. package/resource/strings.json +50 -8
  766. package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +1 -0
  767. package/templates/plugins/resource/apim/bicep/apimProvision.bicep +7 -5
  768. package/templates/plugins/resource/apim/bicep/config.template.bicep +1 -0
  769. package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +12 -12
  770. package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +15 -11
  771. package/templates/plugins/resource/bot/bicep/config.template.bicep +2 -0
  772. package/templates/plugins/resource/bot/bot-msgext.js.default.zip +0 -0
  773. package/templates/plugins/resource/bot/bot-msgext.ts.default.zip +0 -0
  774. package/templates/plugins/resource/bot/bot.js.default.zip +0 -0
  775. package/templates/plugins/resource/bot/bot.ts.default.zip +0 -0
  776. package/templates/plugins/resource/bot/msgext.js.default.zip +0 -0
  777. package/templates/plugins/resource/bot/msgext.ts.default.zip +0 -0
  778. package/templates/plugins/resource/botservice/bicep/botServiceProvision.template.bicep +34 -0
  779. package/templates/plugins/resource/botservice/bicep/parameters.json +4 -0
  780. package/templates/plugins/resource/botservice/bicep/provision.template.bicep +13 -0
  781. package/templates/plugins/resource/frontend/bicep/frontendHostingProvision.bicep +4 -2
  782. package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -0
  783. package/templates/plugins/resource/frontend/tab.js.default.zip +0 -0
  784. package/templates/plugins/resource/frontend/tab.ts.default.zip +0 -0
  785. package/templates/plugins/resource/function/bicep/config.template.bicep +2 -0
  786. package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +15 -15
  787. package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +17 -14
  788. package/templates/plugins/resource/function/function-base.js.default.zip +0 -0
  789. package/templates/plugins/resource/function/function-base.ts.default.zip +0 -0
  790. package/templates/plugins/resource/function/function-triggers.js.HTTPTrigger.zip +0 -0
  791. package/templates/plugins/resource/function/function-triggers.ts.HTTPTrigger.zip +0 -0
  792. package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +2 -1
  793. package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +9 -7
  794. package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +2 -0
  795. package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +7 -7
  796. package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +9 -6
  797. package/templates/plugins/resource/sql/bicep/newDatabase.orchestration.template.bicep +5 -0
  798. package/templates/plugins/resource/sql/bicep/newDatabaseProvision.template.bicep +15 -0
  799. package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +9 -5
  800. package/templates/plugins/resource/storage/bicep/azureStorageProvision.bicep +25 -0
  801. package/templates/plugins/resource/storage/bicep/provision.template.bicep +15 -0
  802. package/templates/plugins/resource/webapp/bicep/config.template.bicep +10 -0
  803. package/templates/plugins/resource/webapp/bicep/provision.template.bicep +16 -0
  804. package/templates/plugins/resource/webapp/bicep/webappConfiguration.template.bicep +74 -0
  805. package/templates/plugins/resource/webapp/bicep/webappProvision.template.bicep +48 -0
  806. package/templates/plugins/solution/{main.bicep → mainConfig.bicep} +0 -12
  807. package/templates/plugins/solution/mainProvision.bicep +10 -0
  808. package/build/common/templates.d.ts.map +0 -1
  809. package/build/common/templates.js.map +0 -1
  810. package/build/common/templatesActions.d.ts.map +0 -1
  811. package/build/common/templatesActions.js.map +0 -1
  812. package/build/common/templatesUtils.d.ts.map +0 -1
  813. package/build/common/templatesUtils.js.map +0 -1
  814. package/build/core/middleware/projectSettingsLoaderV3.d.ts +0 -4
  815. package/build/core/middleware/projectSettingsLoaderV3.d.ts.map +0 -1
  816. package/build/core/middleware/projectSettingsLoaderV3.js +0 -49
  817. package/build/core/middleware/projectSettingsLoaderV3.js.map +0 -1
  818. package/build/plugins/resource/apim/interfaces/IApimResource.d.ts +0 -5
  819. package/build/plugins/resource/apim/interfaces/IApimResource.d.ts.map +0 -1
  820. package/build/plugins/resource/apim/interfaces/IApimResource.js.map +0 -1
  821. package/build/plugins/resource/frontend/blazor/constants.d.ts +0 -75
  822. package/build/plugins/resource/frontend/blazor/constants.d.ts.map +0 -1
  823. package/build/plugins/resource/frontend/blazor/constants.js +0 -98
  824. package/build/plugins/resource/frontend/blazor/constants.js.map +0 -1
  825. package/build/plugins/resource/frontend/blazor/enum.js +0 -39
  826. package/build/plugins/resource/frontend/blazor/enum.js.map +0 -1
  827. package/build/plugins/resource/frontend/blazor/ops/deploy.d.ts.map +0 -1
  828. package/build/plugins/resource/frontend/blazor/ops/deploy.js.map +0 -1
  829. package/build/plugins/resource/frontend/blazor/ops/provision.d.ts +0 -8
  830. package/build/plugins/resource/frontend/blazor/ops/provision.d.ts.map +0 -1
  831. package/build/plugins/resource/frontend/blazor/ops/provision.js +0 -42
  832. package/build/plugins/resource/frontend/blazor/ops/provision.js.map +0 -1
  833. package/build/plugins/resource/frontend/blazor/plugin.d.ts +0 -35
  834. package/build/plugins/resource/frontend/blazor/plugin.d.ts.map +0 -1
  835. package/build/plugins/resource/frontend/blazor/plugin.js +0 -190
  836. package/build/plugins/resource/frontend/blazor/plugin.js.map +0 -1
  837. package/build/plugins/resource/frontend/blazor/resources/errors.d.ts +0 -41
  838. package/build/plugins/resource/frontend/blazor/resources/errors.d.ts.map +0 -1
  839. package/build/plugins/resource/frontend/blazor/resources/errors.js.map +0 -1
  840. package/build/plugins/resource/frontend/blazor/resources/messages.d.ts +0 -13
  841. package/build/plugins/resource/frontend/blazor/resources/messages.d.ts.map +0 -1
  842. package/build/plugins/resource/frontend/blazor/resources/messages.js +0 -20
  843. package/build/plugins/resource/frontend/blazor/resources/messages.js.map +0 -1
  844. package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts +0 -21
  845. package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts.map +0 -1
  846. package/build/plugins/resource/frontend/blazor/utils/azure-client.js +0 -47
  847. package/build/plugins/resource/frontend/blazor/utils/azure-client.js.map +0 -1
  848. package/build/plugins/resource/frontend/utils/azure-client.d.ts +0 -12
  849. package/build/plugins/resource/frontend/utils/azure-client.d.ts.map +0 -1
  850. package/build/plugins/resource/frontend/utils/azure-client.js +0 -29
  851. package/build/plugins/resource/frontend/utils/azure-client.js.map +0 -1
  852. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts +0 -9
  853. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts.map +0 -1
  854. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js +0 -55
  855. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js.map +0 -1
  856. package/build/plugins/resource/function/utils/depsChecker/checker.d.ts +0 -54
  857. package/build/plugins/resource/function/utils/depsChecker/checker.d.ts.map +0 -1
  858. package/build/plugins/resource/function/utils/depsChecker/checker.js +0 -104
  859. package/build/plugins/resource/function/utils/depsChecker/checker.js.map +0 -1
  860. package/build/plugins/resource/function/utils/depsChecker/common.d.ts +0 -84
  861. package/build/plugins/resource/function/utils/depsChecker/common.d.ts.map +0 -1
  862. package/build/plugins/resource/function/utils/depsChecker/common.js +0 -136
  863. package/build/plugins/resource/function/utils/depsChecker/common.js.map +0 -1
  864. package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts +0 -22
  865. package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts.map +0 -1
  866. package/build/plugins/resource/function/utils/depsChecker/cpUtils.js +0 -105
  867. package/build/plugins/resource/function/utils/depsChecker/cpUtils.js.map +0 -1
  868. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts +0 -53
  869. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts.map +0 -1
  870. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js +0 -387
  871. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js.map +0 -1
  872. package/build/plugins/resource/function/utils/depsChecker/errors.d.ts +0 -14
  873. package/build/plugins/resource/function/utils/depsChecker/errors.d.ts.map +0 -1
  874. package/build/plugins/resource/function/utils/depsChecker/errors.js +0 -41
  875. package/build/plugins/resource/function/utils/depsChecker/errors.js.map +0 -1
  876. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts +0 -26
  877. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts.map +0 -1
  878. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js +0 -111
  879. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js.map +0 -1
  880. package/build/plugins/solution/fx-solution/debug/util/certificate.d.ts.map +0 -1
  881. package/build/plugins/solution/fx-solution/debug/util/certificate.js.map +0 -1
  882. package/build/plugins/solution/fx-solution/debug/util/process.d.ts.map +0 -1
  883. package/build/plugins/solution/fx-solution/debug/util/process.js.map +0 -1
  884. package/build/plugins/solution/fx-solution/v2/listAllCollaborators.d.ts +0 -5
  885. package/build/plugins/solution/fx-solution/v2/listAllCollaborators.d.ts.map +0 -1
  886. package/build/plugins/solution/fx-solution/v2/listAllCollaborators.js +0 -118
  887. package/build/plugins/solution/fx-solution/v2/listAllCollaborators.js.map +0 -1
  888. package/build/plugins/solution/fx-solution/v3/addModule.d.ts +0 -6
  889. package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +0 -1
  890. package/build/plugins/solution/fx-solution/v3/addModule.js +0 -35
  891. package/build/plugins/solution/fx-solution/v3/addModule.js.map +0 -1
  892. package/build/plugins/solution/fx-solution/v3/addResource.d.ts +0 -37
  893. package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +0 -1
  894. package/build/plugins/solution/fx-solution/v3/addResource.js +0 -261
  895. package/build/plugins/solution/fx-solution/v3/addResource.js.map +0 -1
  896. package/build/plugins/solution/fx-solution/v3/init.d.ts +0 -4
  897. package/build/plugins/solution/fx-solution/v3/init.d.ts.map +0 -1
  898. package/build/plugins/solution/fx-solution/v3/init.js +0 -35
  899. package/build/plugins/solution/fx-solution/v3/init.js.map +0 -1
  900. package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts +0 -4
  901. package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +0 -1
  902. package/build/plugins/solution/fx-solution/v3/provisionLocal.js +0 -13
  903. package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +0 -1
  904. package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +0 -27
  905. package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +0 -1
  906. package/build/plugins/solution/fx-solution/v3/scaffold.js +0 -241
  907. package/build/plugins/solution/fx-solution/v3/scaffold.js.map +0 -1
  908. package/build/plugins/solution/spfx-solution/addModule.d.ts +0 -5
  909. package/build/plugins/solution/spfx-solution/addModule.d.ts.map +0 -1
  910. package/build/plugins/solution/spfx-solution/addModule.js +0 -29
  911. package/build/plugins/solution/spfx-solution/addModule.js.map +0 -1
  912. package/build/plugins/solution/spfx-solution/init.d.ts +0 -4
  913. package/build/plugins/solution/spfx-solution/init.d.ts.map +0 -1
  914. package/build/plugins/solution/spfx-solution/init.js +0 -52
  915. package/build/plugins/solution/spfx-solution/init.js.map +0 -1
  916. package/build/plugins/solution/spfx-solution/scaffold.d.ts +0 -13
  917. package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +0 -1
  918. package/build/plugins/solution/spfx-solution/scaffold.js +0 -105
  919. package/build/plugins/solution/spfx-solution/scaffold.js.map +0 -1
  920. package/resource/plugins/resource/function/dotnet-install.ps1 +0 -1095
  921. package/resource/plugins/resource/function/dotnet-install.sh +0 -1222
@@ -1,49 +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.getProjectSettingsPath = exports.ProjectSettingsLoaderMW_V3 = void 0;
6
- const tslib_1 = require("tslib");
7
- const teamsfx_api_1 = require("@microsoft/teamsfx-api");
8
- const fs = tslib_1.__importStar(require("fs-extra"));
9
- const path = tslib_1.__importStar(require("path"));
10
- const uuid = tslib_1.__importStar(require("uuid"));
11
- const __1 = require("..");
12
- const fileUtils_1 = require("../../common/fileUtils");
13
- const crypto_1 = require("../crypto");
14
- const error_1 = require("../error");
15
- const tools_1 = require("../tools");
16
- const ProjectSettingsLoaderMW_V3 = async (ctx, next) => {
17
- const inputs = ctx.arguments[ctx.arguments.length - 1];
18
- if (!inputs.projectPath) {
19
- ctx.result = teamsfx_api_1.err(error_1.NoProjectOpenedError());
20
- return;
21
- }
22
- const projectPathExist = await fs.pathExists(inputs.projectPath);
23
- if (!projectPathExist) {
24
- ctx.result = teamsfx_api_1.err(error_1.PathNotExistError(inputs.projectPath));
25
- return;
26
- }
27
- const settingsFile = getProjectSettingsPath(inputs.projectPath);
28
- const projectSettings = await fileUtils_1.readJson(settingsFile);
29
- if (!projectSettings.projectId) {
30
- projectSettings.projectId = uuid.v4();
31
- }
32
- const validRes = tools_1.validateSettings(projectSettings);
33
- if (validRes) {
34
- ctx.result = teamsfx_api_1.err(error_1.InvalidProjectError(validRes));
35
- return;
36
- }
37
- ctx.projectSettings = projectSettings;
38
- ctx.self.isFromSample = projectSettings.isFromSample === true;
39
- ctx.self.settingsVersion = projectSettings.version;
40
- __1.TOOLS.cryptoProvider = new crypto_1.LocalCrypto(projectSettings.projectId);
41
- ctx.contextV2 = __1.createV2Context(projectSettings);
42
- await next();
43
- };
44
- exports.ProjectSettingsLoaderMW_V3 = ProjectSettingsLoaderMW_V3;
45
- function getProjectSettingsPath(projectPath) {
46
- return path.resolve(projectPath, `.${teamsfx_api_1.ConfigFolderName}`, teamsfx_api_1.InputConfigsFolderName, teamsfx_api_1.ProjectSettingsFileName);
47
- }
48
- exports.getProjectSettingsPath = getProjectSettingsPath;
49
- //# sourceMappingURL=projectSettingsLoaderV3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"projectSettingsLoaderV3.js","sourceRoot":"","sources":["../../../src/core/middleware/projectSettingsLoaderV3.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAGlC,wDAOgC;AAChC,qDAA+B;AAC/B,mDAA6B;AAC7B,mDAA6B;AAC7B,0BAA6D;AAC7D,sDAAkD;AAClD,sCAAwC;AACxC,oCAAwF;AACxF,oCAA4C;AAErC,MAAM,0BAA0B,GAAe,KAAK,EACzD,GAAoB,EACpB,IAAkB,EAClB,EAAE;IACF,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAW,CAAC;IACjE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;QACvB,GAAG,CAAC,MAAM,GAAG,iBAAG,CAAC,4BAAoB,EAAE,CAAC,CAAC;QACzC,OAAO;KACR;IACD,MAAM,gBAAgB,GAAG,MAAM,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACjE,IAAI,CAAC,gBAAgB,EAAE;QACrB,GAAG,CAAC,MAAM,GAAG,iBAAG,CAAC,yBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;QACxD,OAAO;KACR;IACD,MAAM,YAAY,GAAG,sBAAsB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IAChE,MAAM,eAAe,GAAoB,MAAM,oBAAQ,CAAC,YAAY,CAAC,CAAC;IACtE,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE;QAC9B,eAAe,CAAC,SAAS,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;KACvC;IACD,MAAM,QAAQ,GAAG,wBAAgB,CAAC,eAAe,CAAC,CAAC;IACnD,IAAI,QAAQ,EAAE;QACZ,GAAG,CAAC,MAAM,GAAG,iBAAG,CAAC,2BAAmB,CAAC,QAAQ,CAAC,CAAC,CAAC;QAChD,OAAO;KACR;IACD,GAAG,CAAC,eAAe,GAAG,eAAe,CAAC;IACrC,GAAG,CAAC,IAAY,CAAC,YAAY,GAAG,eAAe,CAAC,YAAY,KAAK,IAAI,CAAC;IACtE,GAAG,CAAC,IAAY,CAAC,eAAe,GAAG,eAAe,CAAC,OAAO,CAAC;IAC5D,SAAK,CAAC,cAAc,GAAG,IAAI,oBAAW,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;IAClE,GAAG,CAAC,SAAS,GAAG,mBAAe,CAAC,eAAe,CAAC,CAAC;IACjD,MAAM,IAAI,EAAE,CAAC;AACf,CAAC,CAAC;AA9BW,QAAA,0BAA0B,8BA8BrC;AAEF,SAAgB,sBAAsB,CAAC,WAAmB;IACxD,OAAO,IAAI,CAAC,OAAO,CACjB,WAAW,EACX,IAAI,8BAAgB,EAAE,EACtB,oCAAsB,EACtB,qCAAuB,CACxB,CAAC;AACJ,CAAC;AAPD,wDAOC"}
@@ -1,5 +0,0 @@
1
- export interface IApimServiceResource {
2
- serviceName: string;
3
- resourceGroupName: string;
4
- }
5
- //# sourceMappingURL=IApimResource.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IApimResource.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/interfaces/IApimResource.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;CAC3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IApimResource.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/interfaces/IApimResource.ts"],"names":[],"mappings":""}
@@ -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,CAAC,YAAY,YAAa,MAAM,YACY;IAE3D,MAAM,CAAC,QAAQ,CAAC,kBAAkB,aAAc,MAAM,YACkC;CACzF;AAED,qBAAa,WAAW;IACtB,MAAM,CAAC,QAAQ,CAAC,wBAAwB,EAAE,MAAM,CAAmB;IACnE,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAwC;CAChF;AAED,qBAAa,uBAAuB;IAClC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,aAAc,MAAM;;;;;;MAMtD;IAEH,MAAM,CAAC,QAAQ,CAAC,YAAY,aAAc,MAAM;;;;;;MAM7C;CACJ;AAED,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,QAAQ,CAAC,UAAU,wBAAwB;IAClD,MAAM,CAAC,QAAQ,CAAC,WAAW,YAAY;IACvC,MAAM,CAAC,QAAQ,CAAC,KAAK,QAAQ;IAC7B,MAAM,CAAC,QAAQ,CAAC,SAAS,qDAAqD;IAC9E,MAAM,CAAC,QAAQ,CAAC,QAAQ,oCAAoC;IAE5D,MAAM,CAAC,QAAQ,CAAC,gBAAgB,WAM9B;IAEF,MAAM,CAAC,QAAQ,CAAC,gBAAgB,YAAY;IAC5C,MAAM,CAAC,QAAQ,CAAC,cAAc,aAAa;CAC5C;AAED,qBAAa,cAAc;IACzB,MAAM,CAAC,QAAQ,CAAC,iBAAiB,gBAClB,MAAM,2CAGlB,MAAM,CAA4E;CACtF;AAED,qBAAa,cAAc;IACzB,MAAM,CAAC,QAAQ,CAAC,YAAY,YAAa,MAAM,YACkC;CAClF;AAED,qBAAa,mBAAmB;IAC9B,MAAM,CAAC,QAAQ,CAAC,kBAAkB,cAAc;IAChD,MAAM,CAAC,QAAQ,CAAC,cAAc,oBAAoB;IAClD,MAAM,CAAC,QAAQ,CAAC,iBAAiB,uBAAuB;IACxD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,wBAAwB;IAC1D,MAAM,CAAC,QAAQ,CAAC,QAAQ,cAAc;IACtC,MAAM,CAAC,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":"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"}
@@ -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 +0,0 @@
1
- {"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/blazor/enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAmBX;AAnBD,WAAY,eAAe;IACzB,0BAA0B;IAC1B,0DAAuC,CAAA;IACvC,oDAAiC,CAAA;IACjC,4DAAyC,CAAA;IACzC,wCAAqB,CAAA;IACrB,4CAAyB,CAAA;IACzB,gDAA6B,CAAA;IAE7B,sCAAsC;IACtC,4CAAyB,CAAA;IACzB,4DAAyC,CAAA;IACzC,oDAAiC,CAAA;IACjC,gDAA6B,CAAA;IAC7B,sDAAmC,CAAA;IACnC,wDAAqC,CAAA;IAErC,kBAAkB;IAClB,gCAAa,CAAA;AACf,CAAC,EAnBW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAmB1B;AAED,IAAY,cASX;AATD,WAAY,cAAc;IACxB,gDAA8B,CAAA;IAC9B,wCAAsB,CAAA;IACtB,+CAA6B,CAAA;IAC7B,qDAAmC,CAAA;IACnC,6DAA2C,CAAA;IAC3C,kCAAgB,CAAA;IAChB,8CAA4B,CAAA;IAC5B,kDAAgC,CAAA;AAClC,CAAC,EATW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QASzB;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,wCAAwB,CAAA;IACxB,yDAAyC,CAAA;AAC3C,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/blazor/ops/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,SAAS,CAAC;AAW7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAUhE,wBAAsB,mBAAmB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAOlF;AAED,wBAAsB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,iBAMxD;AAED,wBAAsB,WAAW,CAAC,aAAa,EAAE,MAAM,mBAwBtD;AAED,wBAAsB,SAAS,CAC7B,MAAM,EAAE,uBAAuB,EAC/B,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,iBAyCtB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/blazor/ops/deploy.ts"],"names":[],"mappings":"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"}
@@ -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,CAAC;AAC3C,CAAC;AAPD,gDAOC;AAEM,KAAK,UAAU,YAAY,CAChC,MAA+B,EAC/B,iBAAyB,EACzB,QAAgB,EAChB,UAAkB,EAClB,YAAoB;IAEpB,MAAM,YAAY,mCACb,mCAAuB,CAAC,YAAY,CAAC,QAAQ,CAAC,KACjD,YAAY,EAAE,YAAY,GAC3B,CAAC;IAEF,MAAM,IAAI,GAAG,MAAM,iCAAwB,CACzC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,uBAAc,CAAC,mBAAY,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAC9D,KAAK,IAAI,EAAE,CAAC,MAAM,uBAAQ,CAAC,YAAY,CAAC,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,YAAY,CAAC,CAC7F,CAAC;IAEF,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE;QACzB,iDAAiD;QACjD,MAAM,IAAI,uBAAc,CAAC,mBAAY,CAAC,MAAM,CAAC,CAAC;KAC/C;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAvBD,oCAuBC;AAEM,KAAK,UAAU,oBAAoB,CACxC,MAA+B,EAC/B,iBAAyB,EACzB,kBAA0B,EAC1B,QAAgB;IAEhB,MAAM,cAAc,GAAG,MAAM,iCAAwB,CACnD,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,uBAAc,CAAC,mBAAY,CAAC,cAAc,EAAE,KAAK,CAAC,IAAI,CAAC,EACtE,KAAK,IAAI,EAAE,CACT,MAAM,uBAAQ,CAAC,oBAAoB,CACjC,MAAM,EACN,iBAAiB,EACjB,kBAAkB,EAClB,mCAAuB,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CACxD,CACJ,CAAC;IAEF,MAAM,gBAAgB,GAAuB,cAAc,CAAC,EAAE,CAAC;IAC/D,IAAI,CAAC,gBAAgB,EAAE;QACrB,mDAAmD;QACnD,MAAM,IAAI,uBAAc,CAAC,mBAAY,CAAC,cAAc,CAAC,CAAC;KACvD;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,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAC;AAEzC,MAAM,WAAW,kBAAkB;IAEjC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,qBAAa,gBAAgB;IAC3B,MAAM,EAAE,kBAAkB,CAAM;IAEhC,OAAO,CAAC,qBAAqB;IA2B7B,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,eAAe;IAMV,YAAY,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAYxD,SAAS,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAmDrD,aAAa,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAyC/D,kBAAkB,CAAC,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI;IAkBjD,sBAAsB,CAAC,IAAI,EAAE,IAAI;IAKjC,yBAAyB,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,oBAAoB;IAcrE,yBAAyB,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,oBAAoB;IAiCrE,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,UAAO,GAAG,IAAI;IAsB9E,MAAM,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;CAwChE"}
@@ -1,190 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BlazorPluginImpl = void 0;
4
- const tslib_1 = require("tslib");
5
- // Copyright (c) Microsoft Corporation.
6
- // Licensed under the MIT license.
7
- const teamsfx_api_1 = require("@microsoft/teamsfx-api");
8
- const constants_1 = require("./constants");
9
- const messages_1 = require("./resources/messages");
10
- const uuid_1 = require("uuid");
11
- const Provision = tslib_1.__importStar(require("./ops/provision"));
12
- const azure_client_1 = require("./utils/azure-client");
13
- const enum_1 = require("./enum");
14
- const errors_1 = require("./resources/errors");
15
- const Deploy = tslib_1.__importStar(require("./ops/deploy"));
16
- const logger_1 = require("../utils/logger");
17
- const path_1 = tslib_1.__importDefault(require("path"));
18
- const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
19
- const __1 = require("../../../..");
20
- class BlazorPluginImpl {
21
- constructor() {
22
- this.config = {};
23
- }
24
- syncConfigFromContext(ctx) {
25
- const solutionConfig = ctx.envInfo.state.get(constants_1.DependentPluginInfo.solutionPluginName);
26
- this.config.resourceGroupName = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.resourceGroupName);
27
- this.config.subscriptionId = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.subscriptionId);
28
- this.config.resourceNameSuffix = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.resourceNameSuffix);
29
- this.config.location = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.location);
30
- this.config.webAppName = ctx.config.get(constants_1.BlazorConfigInfo.webAppName);
31
- this.config.appServicePlanName = ctx.config.get(constants_1.BlazorConfigInfo.appServicePlanName);
32
- this.config.projectFilePath = ctx.config.get(constants_1.BlazorConfigInfo.projectFilePath);
33
- // Resource id priors to other configs
34
- const webAppResourceId = ctx.config.get(enum_1.BlazorConfigKey.webAppResourceId);
35
- if (webAppResourceId) {
36
- this.config.webAppResourceId = webAppResourceId;
37
- this.config.resourceGroupName = __1.getResourceGroupNameFromResourceId(webAppResourceId);
38
- this.config.webAppName = __1.getSiteNameFromResourceId(webAppResourceId);
39
- this.config.subscriptionId = __1.getSubscriptionIdFromResourceId(webAppResourceId);
40
- }
41
- }
42
- syncConfigToContext(ctx) {
43
- Object.entries(this.config)
44
- .filter((kv) => constants_1.BlazorPluginInfo.persistentConfig.find((x) => x === kv[0] && kv[1]))
45
- .forEach((kv) => ctx.config.set(kv[0], kv[1]));
46
- }
47
- checkAndGet(v, key) {
48
- if (v) {
49
- return v;
50
- }
51
- throw new errors_1.FetchConfigError(key);
52
- }
53
- isPluginEnabled(ctx, plugin) {
54
- var _a;
55
- const selectedPlugins = ((_a = ctx.projectSettings) === null || _a === void 0 ? void 0 : _a.solutionSettings)
56
- .activeResourcePlugins;
57
- return selectedPlugins.includes(plugin);
58
- }
59
- async preProvision(ctx) {
60
- var _a, _b, _c, _d;
61
- var _e, _f;
62
- this.syncConfigFromContext(ctx);
63
- const teamsAppName = this.checkAndGet((_a = ctx.projectSettings) === null || _a === void 0 ? void 0 : _a.appName, enum_1.BlazorConfigKey.teamsAppName);
64
- const suffix = (_b = this.config.resourceNameSuffix) !== null && _b !== void 0 ? _b : uuid_1.v4().substr(0, 6);
65
- (_c = (_e = this.config).webAppName) !== null && _c !== void 0 ? _c : (_e.webAppName = Provision.generateWebAppName(teamsAppName, constants_1.BlazorPluginInfo.alias, suffix));
66
- (_d = (_f = this.config).appServicePlanName) !== null && _d !== void 0 ? _d : (_f.appServicePlanName = this.config.webAppName);
67
- this.syncConfigToContext(ctx);
68
- return teamsfx_api_1.ok(undefined);
69
- }
70
- async provision(ctx) {
71
- var _a;
72
- logger_1.Logger.info(messages_1.Messages.StartProvision(constants_1.BlazorPluginInfo.displayName));
73
- // TODO: const progressHandler = await ProgressHelper.startProvisionProgressHandler(ctx);
74
- this.syncConfigFromContext(ctx);
75
- const resourceGroupName = this.checkAndGet(this.config.resourceGroupName, enum_1.BlazorConfigKey.resourceGroupName);
76
- const subscriptionId = this.checkAndGet(this.config.subscriptionId, enum_1.BlazorConfigKey.subscriptionId);
77
- const location = this.checkAndGet(this.config.location, enum_1.BlazorConfigKey.location);
78
- const appServicePlanName = this.checkAndGet(this.config.appServicePlanName, enum_1.BlazorConfigKey.appServicePlanName);
79
- const webAppName = this.checkAndGet(this.config.webAppName, enum_1.BlazorConfigKey.webAppName);
80
- const credential = this.checkAndGet(await ((_a = ctx.azureAccountProvider) === null || _a === void 0 ? void 0 : _a.getAccountCredentialAsync()), enum_1.BlazorConfigKey.credential);
81
- const client = azure_client_1.AzureClientFactory.getWebSiteManagementClient(credential, subscriptionId);
82
- const appServicePlanId = await Provision.ensureAppServicePlan(client, resourceGroupName, appServicePlanName, location);
83
- const site = await Provision.ensureWebApp(client, resourceGroupName, location, webAppName, appServicePlanId);
84
- this.config.site = site;
85
- if (!this.config.endpoint) {
86
- this.config.endpoint = `https://${site.defaultHostName}`;
87
- this.config.domain = site.defaultHostName;
88
- }
89
- this.syncConfigToContext(ctx);
90
- // TODO: await ProgressHelper.endProvisionProgress(true);
91
- logger_1.Logger.info(messages_1.Messages.EndProvision(constants_1.BlazorPluginInfo.displayName));
92
- return teamsfx_api_1.ok(undefined);
93
- }
94
- async postProvision(ctx) {
95
- var _a;
96
- if (__1.isArmSupportEnabled()) {
97
- return teamsfx_api_1.ok(undefined);
98
- }
99
- this.syncConfigFromContext(ctx);
100
- const resourceGroupName = this.checkAndGet(this.config.resourceGroupName, enum_1.BlazorConfigKey.resourceGroupName);
101
- const subscriptionId = this.checkAndGet(this.config.subscriptionId, enum_1.BlazorConfigKey.subscriptionId);
102
- const webAppName = this.checkAndGet(this.config.webAppName, enum_1.BlazorConfigKey.webAppName);
103
- const credential = this.checkAndGet(await ((_a = ctx.azureAccountProvider) === null || _a === void 0 ? void 0 : _a.getAccountCredentialAsync()), enum_1.BlazorConfigKey.credential);
104
- const site = this.checkAndGet(this.config.site, enum_1.BlazorConfigKey.site);
105
- this.config.site = undefined;
106
- const client = azure_client_1.AzureClientFactory.getWebSiteManagementClient(credential, subscriptionId);
107
- const res = await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.ConfigureWebAppError(error.code), async () => await client.webApps.listApplicationSettings(resourceGroupName, webAppName));
108
- if (res.properties) {
109
- Object.entries(res.properties).forEach((kv) => {
110
- this.pushAppSettings(site, kv[0], kv[1]);
111
- });
112
- }
113
- this.collectAppSettings(ctx, site);
114
- await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.ConfigureWebAppError(error.code), async () => await client.webApps.update(resourceGroupName, webAppName, site));
115
- return teamsfx_api_1.ok(undefined);
116
- }
117
- collectAppSettings(ctx, site) {
118
- this.collectAppSettingsSelf(site);
119
- const aadConfig = ctx.envInfo.state.get(constants_1.DependentPluginInfo.aadPluginName);
120
- if (this.isPluginEnabled(ctx, constants_1.DependentPluginInfo.aadPluginName) && aadConfig) {
121
- this.collectAppSettingsFromAAD(site, aadConfig);
122
- }
123
- const botConfig = ctx.envInfo.state.get(constants_1.DependentPluginInfo.botPluginName);
124
- if (this.isPluginEnabled(ctx, constants_1.DependentPluginInfo.botPluginName) && botConfig) {
125
- this.collectAppSettingsFromBot(site, botConfig);
126
- }
127
- }
128
- collectAppSettingsSelf(site) {
129
- const endpoint = this.checkAndGet(this.config.endpoint, enum_1.BlazorConfigKey.webAppEndpoint);
130
- this.pushAppSettings(site, enum_1.AppSettingsKey.tabAppEndpoint, endpoint);
131
- }
132
- collectAppSettingsFromBot(site, botConfig) {
133
- const botId = this.checkAndGet(botConfig.get(constants_1.DependentPluginInfo.botId), constants_1.DependentPluginInfo.botId);
134
- const botPassword = this.checkAndGet(botConfig.get(constants_1.DependentPluginInfo.botPassword), constants_1.DependentPluginInfo.botPassword);
135
- this.pushAppSettings(site, enum_1.AppSettingsKey.botId, botId);
136
- this.pushAppSettings(site, enum_1.AppSettingsKey.botPassword, botPassword);
137
- }
138
- collectAppSettingsFromAAD(site, aadConfig) {
139
- const clientId = this.checkAndGet(aadConfig.get(constants_1.DependentPluginInfo.clientID), constants_1.DependentPluginInfo.clientID);
140
- const clientSecret = this.checkAndGet(aadConfig.get(constants_1.DependentPluginInfo.aadClientSecret), constants_1.DependentPluginInfo.aadClientSecret);
141
- const oauthHost = this.checkAndGet(aadConfig.get(constants_1.DependentPluginInfo.oauthHost), constants_1.DependentPluginInfo.oauthHost);
142
- const tenantId = this.checkAndGet(aadConfig.get(constants_1.DependentPluginInfo.tenantId), constants_1.DependentPluginInfo.tenantId);
143
- const applicationIdUris = this.checkAndGet(aadConfig.get(constants_1.DependentPluginInfo.applicationIdUris), constants_1.DependentPluginInfo.applicationIdUris);
144
- this.pushAppSettings(site, enum_1.AppSettingsKey.clientId, clientId);
145
- this.pushAppSettings(site, enum_1.AppSettingsKey.clientSecret, clientSecret);
146
- this.pushAppSettings(site, enum_1.AppSettingsKey.oauthHost, `${oauthHost}/${tenantId}`);
147
- this.pushAppSettings(site, enum_1.AppSettingsKey.identifierUri, applicationIdUris);
148
- this.pushAppSettings(site, enum_1.AppSettingsKey.aadMetadataAddress, constants_1.AzureInfo.aadMetadataAddress(tenantId));
149
- }
150
- pushAppSettings(site, newName, newValue, replace = true) {
151
- if (!site.siteConfig) {
152
- site.siteConfig = {};
153
- }
154
- if (!site.siteConfig.appSettings) {
155
- site.siteConfig.appSettings = [];
156
- }
157
- const kv = site.siteConfig.appSettings.find((kv) => kv.name === newName);
158
- if (!kv) {
159
- site.siteConfig.appSettings.push({
160
- name: newName,
161
- value: newValue,
162
- });
163
- }
164
- else if (replace) {
165
- kv.value = newValue;
166
- }
167
- }
168
- async deploy(ctx) {
169
- var _a;
170
- logger_1.Logger.info(messages_1.Messages.StartDeploy(constants_1.BlazorPluginInfo.displayName));
171
- this.syncConfigFromContext(ctx);
172
- const webAppName = this.checkAndGet(this.config.webAppName, enum_1.BlazorConfigKey.webAppName);
173
- const resourceGroupName = this.checkAndGet(this.config.resourceGroupName, enum_1.BlazorConfigKey.resourceGroupName);
174
- const subscriptionId = this.checkAndGet(this.config.subscriptionId, enum_1.BlazorConfigKey.subscriptionId);
175
- const credential = this.checkAndGet(await ((_a = ctx.azureAccountProvider) === null || _a === void 0 ? void 0 : _a.getAccountCredentialAsync()), enum_1.BlazorConfigKey.credential);
176
- const projectFilePath = path_1.default.resolve(ctx.root, this.checkAndGet(this.config.projectFilePath, enum_1.BlazorConfigKey.projectFilePath));
177
- await errors_1.runWithErrorCatchAndThrow(new errors_1.ProjectPathError(projectFilePath), async () => await fs_extra_1.default.pathExists(projectFilePath));
178
- const projectPath = path_1.default.dirname(projectFilePath);
179
- const framework = await Deploy.getFrameworkVersion(projectFilePath);
180
- const runtime = constants_1.BlazorPluginInfo.defaultRuntime;
181
- const client = azure_client_1.AzureClientFactory.getWebSiteManagementClient(credential, subscriptionId);
182
- await Deploy.build(projectPath, runtime);
183
- const folderToBeZipped = constants_1.BlazorPathInfo.publishFolderPath(projectPath, framework, runtime);
184
- await Deploy.zipDeploy(client, resourceGroupName, webAppName, folderToBeZipped);
185
- logger_1.Logger.info(messages_1.Messages.EndDeploy(constants_1.BlazorPluginInfo.displayName));
186
- return teamsfx_api_1.ok(undefined);
187
- }
188
- }
189
- exports.BlazorPluginImpl = BlazorPluginImpl;
190
- //# sourceMappingURL=plugin.js.map