@microsoft/teamsfx-core 2.0.4-alpha.e83c26af7.0 → 2.0.4-alpha.ea55e6d34.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 (603) hide show
  1. package/build/common/constants.d.ts +1 -0
  2. package/build/common/constants.d.ts.map +1 -1
  3. package/build/common/constants.js +1 -0
  4. package/build/common/constants.js.map +1 -1
  5. package/build/common/deps-checker/checkerFactory.d.ts +1 -2
  6. package/build/common/deps-checker/checkerFactory.d.ts.map +1 -1
  7. package/build/common/deps-checker/checkerFactory.js +2 -2
  8. package/build/common/deps-checker/checkerFactory.js.map +1 -1
  9. package/build/common/deps-checker/depsLogger.d.ts +14 -14
  10. package/build/common/deps-checker/depsLogger.d.ts.map +1 -1
  11. package/build/common/deps-checker/depsLogger.js +7 -21
  12. package/build/common/deps-checker/depsLogger.js.map +1 -1
  13. package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
  14. package/build/common/deps-checker/internal/dotnetChecker.js +42 -37
  15. package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
  16. package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
  17. package/build/common/deps-checker/internal/funcToolChecker.js +2 -2
  18. package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
  19. package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
  20. package/build/common/deps-checker/internal/nodeChecker.js +8 -8
  21. package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
  22. package/build/common/deps-checker/internal/vxTestAppChecker.js +1 -1
  23. package/build/common/deps-checker/internal/vxTestAppChecker.js.map +1 -1
  24. package/build/common/deps-checker/util/cpUtils.d.ts +1 -1
  25. package/build/common/deps-checker/util/cpUtils.d.ts.map +1 -1
  26. package/build/common/deps-checker/util/cpUtils.js +4 -4
  27. package/build/common/deps-checker/util/cpUtils.js.map +1 -1
  28. package/build/common/deps-checker/util/progressIndicator.js +2 -2
  29. package/build/common/deps-checker/util/progressIndicator.js.map +1 -1
  30. package/build/common/featureFlags.d.ts +1 -0
  31. package/build/common/featureFlags.d.ts.map +1 -1
  32. package/build/common/featureFlags.js +5 -1
  33. package/build/common/featureFlags.js.map +1 -1
  34. package/build/common/local/localCertificateManager.d.ts.map +1 -1
  35. package/build/common/local/localCertificateManager.js +4 -1
  36. package/build/common/local/localCertificateManager.js.map +1 -1
  37. package/build/common/local/packageJsonHelper.d.ts.map +1 -1
  38. package/build/common/local/packageJsonHelper.js +1 -0
  39. package/build/common/local/packageJsonHelper.js.map +1 -1
  40. package/build/common/local/portChecker.js.map +1 -1
  41. package/build/common/m365/launchHelper.d.ts +2 -2
  42. package/build/common/m365/launchHelper.d.ts.map +1 -1
  43. package/build/common/m365/launchHelper.js +24 -6
  44. package/build/common/m365/launchHelper.js.map +1 -1
  45. package/build/common/m365/packageService.d.ts.map +1 -1
  46. package/build/common/m365/packageService.js +66 -19
  47. package/build/common/m365/packageService.js.map +1 -1
  48. package/build/common/projectSettingsHelper.d.ts.map +1 -1
  49. package/build/common/projectSettingsHelper.js +1 -0
  50. package/build/common/projectSettingsHelper.js.map +1 -1
  51. package/build/common/samples.d.ts +13 -5
  52. package/build/common/samples.d.ts.map +1 -1
  53. package/build/common/samples.js +58 -38
  54. package/build/common/samples.js.map +1 -1
  55. package/build/common/spec-parser/adaptiveCardGenerator.d.ts +5 -0
  56. package/build/common/spec-parser/adaptiveCardGenerator.d.ts.map +1 -0
  57. package/build/common/spec-parser/adaptiveCardGenerator.js +120 -0
  58. package/build/common/spec-parser/adaptiveCardGenerator.js.map +1 -0
  59. package/build/common/spec-parser/constants.d.ts +21 -7
  60. package/build/common/spec-parser/constants.d.ts.map +1 -1
  61. package/build/common/spec-parser/constants.js +45 -7
  62. package/build/common/spec-parser/constants.js.map +1 -1
  63. package/build/common/spec-parser/interfaces.d.ts +83 -13
  64. package/build/common/spec-parser/interfaces.d.ts.map +1 -1
  65. package/build/common/spec-parser/interfaces.js +23 -13
  66. package/build/common/spec-parser/interfaces.js.map +1 -1
  67. package/build/common/spec-parser/manifestUpdater.d.ts +6 -0
  68. package/build/common/spec-parser/manifestUpdater.d.ts.map +1 -0
  69. package/build/common/spec-parser/manifestUpdater.js +133 -0
  70. package/build/common/spec-parser/manifestUpdater.js.map +1 -0
  71. package/build/common/spec-parser/specFilter.d.ts +3 -0
  72. package/build/common/spec-parser/specFilter.d.ts.map +1 -0
  73. package/build/common/spec-parser/specFilter.js +40 -0
  74. package/build/common/spec-parser/specFilter.js.map +1 -0
  75. package/build/common/spec-parser/specParser.d.ts +14 -5
  76. package/build/common/spec-parser/specParser.d.ts.map +1 -1
  77. package/build/common/spec-parser/specParser.js +181 -94
  78. package/build/common/spec-parser/specParser.js.map +1 -1
  79. package/build/common/spec-parser/utils.d.ts +29 -0
  80. package/build/common/spec-parser/utils.d.ts.map +1 -0
  81. package/build/common/spec-parser/utils.js +309 -0
  82. package/build/common/spec-parser/utils.js.map +1 -0
  83. package/build/common/telemetry.d.ts +7 -5
  84. package/build/common/telemetry.d.ts.map +1 -1
  85. package/build/common/telemetry.js +41 -15
  86. package/build/common/telemetry.js.map +1 -1
  87. package/build/common/tools.d.ts.map +1 -1
  88. package/build/common/tools.js +7 -2
  89. package/build/common/tools.js.map +1 -1
  90. package/build/common/utils.d.ts +1 -0
  91. package/build/common/utils.d.ts.map +1 -1
  92. package/build/common/utils.js +5 -1
  93. package/build/common/utils.js.map +1 -1
  94. package/build/component/configManager/interface.d.ts +5 -1
  95. package/build/component/configManager/interface.d.ts.map +1 -1
  96. package/build/component/configManager/interface.js.map +1 -1
  97. package/build/component/configManager/lifecycle.d.ts +1 -3
  98. package/build/component/configManager/lifecycle.d.ts.map +1 -1
  99. package/build/component/configManager/lifecycle.js +25 -52
  100. package/build/component/configManager/lifecycle.js.map +1 -1
  101. package/build/component/configManager/parser.d.ts.map +1 -1
  102. package/build/component/configManager/parser.js +12 -6
  103. package/build/component/configManager/parser.js.map +1 -1
  104. package/build/component/configManager/validator.d.ts +0 -3
  105. package/build/component/configManager/validator.d.ts.map +1 -1
  106. package/build/component/configManager/validator.js +2 -12
  107. package/build/component/configManager/validator.js.map +1 -1
  108. package/build/component/constants.d.ts +11 -0
  109. package/build/component/constants.d.ts.map +1 -1
  110. package/build/component/constants.js +11 -0
  111. package/build/component/constants.js.map +1 -1
  112. package/build/component/coordinator/index.d.ts +12 -8
  113. package/build/component/coordinator/index.d.ts.map +1 -1
  114. package/build/component/coordinator/index.js +80 -67
  115. package/build/component/coordinator/index.js.map +1 -1
  116. package/build/component/coordinator/summary.d.ts.map +1 -1
  117. package/build/component/coordinator/summary.js +2 -1
  118. package/build/component/coordinator/summary.js.map +1 -1
  119. package/build/component/developerPortalScaffoldUtils.d.ts +1 -1
  120. package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
  121. package/build/component/developerPortalScaffoldUtils.js +7 -7
  122. package/build/component/developerPortalScaffoldUtils.js.map +1 -1
  123. package/build/component/driver/aad/create.d.ts +1 -2
  124. package/build/component/driver/aad/create.d.ts.map +1 -1
  125. package/build/component/driver/aad/create.js +4 -11
  126. package/build/component/driver/aad/create.js.map +1 -1
  127. package/build/component/driver/aad/error/aadManifestError.d.ts +3 -0
  128. package/build/component/driver/aad/error/aadManifestError.d.ts.map +1 -1
  129. package/build/component/driver/aad/error/aadManifestError.js +13 -1
  130. package/build/component/driver/aad/error/aadManifestError.js.map +1 -1
  131. package/build/component/driver/aad/update.d.ts +1 -2
  132. package/build/component/driver/aad/update.d.ts.map +1 -1
  133. package/build/component/driver/aad/update.js +4 -11
  134. package/build/component/driver/aad/update.js.map +1 -1
  135. package/build/component/driver/aad/utility/aadAppClient.d.ts +1 -1
  136. package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
  137. package/build/component/driver/aad/utility/aadAppClient.js +58 -13
  138. package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
  139. package/build/component/driver/aad/utility/constants.d.ts +3 -0
  140. package/build/component/driver/aad/utility/constants.d.ts.map +1 -1
  141. package/build/component/driver/aad/utility/constants.js +4 -1
  142. package/build/component/driver/aad/utility/constants.js.map +1 -1
  143. package/build/component/driver/add/addWebPart.d.ts.map +1 -1
  144. package/build/component/driver/add/addWebPart.js +10 -1
  145. package/build/component/driver/add/addWebPart.js.map +1 -1
  146. package/build/component/driver/arm/deploy.d.ts +1 -3
  147. package/build/component/driver/arm/deploy.d.ts.map +1 -1
  148. package/build/component/driver/arm/deploy.js +1 -14
  149. package/build/component/driver/arm/deploy.js.map +1 -1
  150. package/build/component/driver/arm/deployImpl.d.ts +2 -1
  151. package/build/component/driver/arm/deployImpl.d.ts.map +1 -1
  152. package/build/component/driver/arm/deployImpl.js +15 -0
  153. package/build/component/driver/arm/deployImpl.js.map +1 -1
  154. package/build/component/driver/arm/util/bicepChecker.js +7 -6
  155. package/build/component/driver/arm/util/bicepChecker.js.map +1 -1
  156. package/build/component/driver/arm/util/handleError.js.map +1 -1
  157. package/build/component/driver/arm/validator.d.ts.map +1 -1
  158. package/build/component/driver/arm/validator.js +3 -3
  159. package/build/component/driver/arm/validator.js.map +1 -1
  160. package/build/component/driver/botAadApp/create.d.ts +2 -1
  161. package/build/component/driver/botAadApp/create.d.ts.map +1 -1
  162. package/build/component/driver/botAadApp/create.js +7 -10
  163. package/build/component/driver/botAadApp/create.js.map +1 -1
  164. package/build/component/driver/botFramework/createOrUpdateBot.d.ts +1 -0
  165. package/build/component/driver/botFramework/createOrUpdateBot.d.ts.map +1 -1
  166. package/build/component/driver/botFramework/createOrUpdateBot.js +8 -12
  167. package/build/component/driver/botFramework/createOrUpdateBot.js.map +1 -1
  168. package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.d.ts +0 -2
  169. package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.d.ts.map +1 -1
  170. package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.js +0 -10
  171. package/build/component/driver/deploy/azure/azureAppServiceDeployDriver.js.map +1 -1
  172. package/build/component/driver/deploy/azure/azureFunctionDeployDriver.d.ts +0 -2
  173. package/build/component/driver/deploy/azure/azureFunctionDeployDriver.d.ts.map +1 -1
  174. package/build/component/driver/deploy/azure/azureFunctionDeployDriver.js +0 -10
  175. package/build/component/driver/deploy/azure/azureFunctionDeployDriver.js.map +1 -1
  176. package/build/component/driver/deploy/azure/azureStorageDeployDriver.d.ts +0 -2
  177. package/build/component/driver/deploy/azure/azureStorageDeployDriver.d.ts.map +1 -1
  178. package/build/component/driver/deploy/azure/azureStorageDeployDriver.js +17 -19
  179. package/build/component/driver/deploy/azure/azureStorageDeployDriver.js.map +1 -1
  180. package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.d.ts.map +1 -1
  181. package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js +11 -4
  182. package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js.map +1 -1
  183. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
  184. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +29 -16
  185. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
  186. package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts.map +1 -1
  187. package/build/component/driver/deploy/azure/impl/azureDeployImpl.js +18 -15
  188. package/build/component/driver/deploy/azure/impl/azureDeployImpl.js.map +1 -1
  189. package/build/component/driver/deploy/azure/impl/baseDeployImpl.d.ts.map +1 -1
  190. package/build/component/driver/deploy/azure/impl/baseDeployImpl.js +4 -4
  191. package/build/component/driver/deploy/azure/impl/baseDeployImpl.js.map +1 -1
  192. package/build/component/driver/deploy/spfx/deployDriver.d.ts +1 -0
  193. package/build/component/driver/deploy/spfx/deployDriver.d.ts.map +1 -1
  194. package/build/component/driver/deploy/spfx/deployDriver.js +27 -5
  195. package/build/component/driver/deploy/spfx/deployDriver.js.map +1 -1
  196. package/build/component/driver/devTool/installDriver.d.ts +1 -0
  197. package/build/component/driver/devTool/installDriver.d.ts.map +1 -1
  198. package/build/component/driver/devTool/installDriver.js +33 -11
  199. package/build/component/driver/devTool/installDriver.js.map +1 -1
  200. package/build/component/driver/file/createOrUpdateEnvironmentFile.d.ts +1 -0
  201. package/build/component/driver/file/createOrUpdateEnvironmentFile.d.ts.map +1 -1
  202. package/build/component/driver/file/createOrUpdateEnvironmentFile.js +12 -18
  203. package/build/component/driver/file/createOrUpdateEnvironmentFile.js.map +1 -1
  204. package/build/component/driver/file/createOrUpdateJsonFile.d.ts +1 -0
  205. package/build/component/driver/file/createOrUpdateJsonFile.d.ts.map +1 -1
  206. package/build/component/driver/file/createOrUpdateJsonFile.js +5 -11
  207. package/build/component/driver/file/createOrUpdateJsonFile.js.map +1 -1
  208. package/build/component/driver/interface/stepDriver.d.ts +2 -7
  209. package/build/component/driver/interface/stepDriver.d.ts.map +1 -1
  210. package/build/component/driver/m365/acquire.d.ts +1 -0
  211. package/build/component/driver/m365/acquire.d.ts.map +1 -1
  212. package/build/component/driver/m365/acquire.js +6 -12
  213. package/build/component/driver/m365/acquire.js.map +1 -1
  214. package/build/component/driver/script/baseBuildDriver.d.ts.map +1 -1
  215. package/build/component/driver/script/baseBuildDriver.js +1 -0
  216. package/build/component/driver/script/baseBuildDriver.js.map +1 -1
  217. package/build/component/driver/script/baseBuildStepDriver.d.ts +0 -2
  218. package/build/component/driver/script/baseBuildStepDriver.d.ts.map +1 -1
  219. package/build/component/driver/script/baseBuildStepDriver.js +0 -4
  220. package/build/component/driver/script/baseBuildStepDriver.js.map +1 -1
  221. package/build/component/driver/script/dotnetBuildDriver.d.ts +0 -2
  222. package/build/component/driver/script/dotnetBuildDriver.d.ts.map +1 -1
  223. package/build/component/driver/script/dotnetBuildDriver.js +0 -9
  224. package/build/component/driver/script/dotnetBuildDriver.js.map +1 -1
  225. package/build/component/driver/script/npmBuildDriver.d.ts +0 -2
  226. package/build/component/driver/script/npmBuildDriver.d.ts.map +1 -1
  227. package/build/component/driver/script/npmBuildDriver.js +0 -9
  228. package/build/component/driver/script/npmBuildDriver.js.map +1 -1
  229. package/build/component/driver/script/npxBuildDriver.d.ts +0 -2
  230. package/build/component/driver/script/npxBuildDriver.d.ts.map +1 -1
  231. package/build/component/driver/script/npxBuildDriver.js +0 -9
  232. package/build/component/driver/script/npxBuildDriver.js.map +1 -1
  233. package/build/component/driver/script/scriptDriver.d.ts +10 -1
  234. package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
  235. package/build/component/driver/script/scriptDriver.js +31 -30
  236. package/build/component/driver/script/scriptDriver.js.map +1 -1
  237. package/build/component/driver/teamsApp/appStudio.d.ts.map +1 -1
  238. package/build/component/driver/teamsApp/appStudio.js +11 -11
  239. package/build/component/driver/teamsApp/appStudio.js.map +1 -1
  240. package/build/component/driver/teamsApp/clients/appStudioClient.d.ts +5 -5
  241. package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
  242. package/build/component/driver/teamsApp/clients/appStudioClient.js +31 -11
  243. package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
  244. package/build/component/driver/teamsApp/clients/authSvcClient.d.ts.map +1 -1
  245. package/build/component/driver/teamsApp/clients/authSvcClient.js +2 -0
  246. package/build/component/driver/teamsApp/clients/authSvcClient.js.map +1 -1
  247. package/build/component/driver/teamsApp/configure.d.ts +1 -1
  248. package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
  249. package/build/component/driver/teamsApp/configure.js +5 -23
  250. package/build/component/driver/teamsApp/configure.js.map +1 -1
  251. package/build/component/driver/teamsApp/constants.d.ts +0 -1
  252. package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
  253. package/build/component/driver/teamsApp/constants.js +1 -2
  254. package/build/component/driver/teamsApp/constants.js.map +1 -1
  255. package/build/component/driver/teamsApp/copyAppPackageToSPFx.d.ts +1 -2
  256. package/build/component/driver/teamsApp/copyAppPackageToSPFx.d.ts.map +1 -1
  257. package/build/component/driver/teamsApp/copyAppPackageToSPFx.js +4 -11
  258. package/build/component/driver/teamsApp/copyAppPackageToSPFx.js.map +1 -1
  259. package/build/component/driver/teamsApp/create.d.ts +1 -1
  260. package/build/component/driver/teamsApp/create.d.ts.map +1 -1
  261. package/build/component/driver/teamsApp/create.js +6 -11
  262. package/build/component/driver/teamsApp/create.js.map +1 -1
  263. package/build/component/driver/teamsApp/createAppPackage.d.ts +4 -3
  264. package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
  265. package/build/component/driver/teamsApp/createAppPackage.js +68 -32
  266. package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
  267. package/build/component/driver/teamsApp/errors.d.ts.map +1 -1
  268. package/build/component/driver/teamsApp/errors.js +2 -0
  269. package/build/component/driver/teamsApp/errors.js.map +1 -1
  270. package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtension.d.ts +2 -0
  271. package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtension.d.ts.map +1 -1
  272. package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtensionCommand.d.ts +1 -0
  273. package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtensionCommand.d.ts.map +1 -1
  274. package/build/component/driver/teamsApp/publishAppPackage.d.ts +1 -1
  275. package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
  276. package/build/component/driver/teamsApp/publishAppPackage.js +4 -12
  277. package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
  278. package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +8 -2
  279. package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
  280. package/build/component/driver/teamsApp/utils/ManifestUtils.js +24 -4
  281. package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
  282. package/build/component/driver/teamsApp/utils/telemetry.d.ts +1 -0
  283. package/build/component/driver/teamsApp/utils/telemetry.d.ts.map +1 -1
  284. package/build/component/driver/teamsApp/utils/telemetry.js +1 -0
  285. package/build/component/driver/teamsApp/utils/telemetry.js.map +1 -1
  286. package/build/component/driver/teamsApp/utils/utils.d.ts +2 -3
  287. package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
  288. package/build/component/driver/teamsApp/utils/utils.js +21 -19
  289. package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
  290. package/build/component/driver/teamsApp/validate.d.ts +1 -1
  291. package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
  292. package/build/component/driver/teamsApp/validate.js +17 -12
  293. package/build/component/driver/teamsApp/validate.js.map +1 -1
  294. package/build/component/driver/teamsApp/validateAppPackage.d.ts +1 -1
  295. package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
  296. package/build/component/driver/teamsApp/validateAppPackage.js +22 -18
  297. package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
  298. package/build/component/error/componentError.d.ts +2 -1
  299. package/build/component/error/componentError.d.ts.map +1 -1
  300. package/build/component/error/componentError.js +8 -4
  301. package/build/component/error/componentError.js.map +1 -1
  302. package/build/component/feature/collaboration.d.ts.map +1 -1
  303. package/build/component/feature/collaboration.js +55 -26
  304. package/build/component/feature/collaboration.js.map +1 -1
  305. package/build/component/feature/createAuthFiles.js.map +1 -1
  306. package/build/component/generator/copilotPlugin/generator.d.ts +7 -2
  307. package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -1
  308. package/build/component/generator/copilotPlugin/generator.js +133 -25
  309. package/build/component/generator/copilotPlugin/generator.js.map +1 -1
  310. package/build/component/generator/copilotPlugin/helper.d.ts +12 -12
  311. package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -1
  312. package/build/component/generator/copilotPlugin/helper.js +214 -28
  313. package/build/component/generator/copilotPlugin/helper.js.map +1 -1
  314. package/build/component/generator/error.d.ts +7 -1
  315. package/build/component/generator/error.d.ts.map +1 -1
  316. package/build/component/generator/error.js +15 -3
  317. package/build/component/generator/error.js.map +1 -1
  318. package/build/component/generator/generator.d.ts.map +1 -1
  319. package/build/component/generator/generator.js +31 -22
  320. package/build/component/generator/generator.js.map +1 -1
  321. package/build/component/generator/generatorAction.d.ts +2 -1
  322. package/build/component/generator/generatorAction.d.ts.map +1 -1
  323. package/build/component/generator/generatorAction.js +12 -5
  324. package/build/component/generator/generatorAction.js.map +1 -1
  325. package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
  326. package/build/component/generator/officeAddin/generator.js +9 -1
  327. package/build/component/generator/officeAddin/generator.js.map +1 -1
  328. package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
  329. package/build/component/generator/officeAddin/helperMethods.js +9 -5
  330. package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
  331. package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts +1 -1
  332. package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts.map +1 -1
  333. package/build/component/generator/spfx/depsChecker/generatorChecker.js +12 -12
  334. package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +1 -1
  335. package/build/component/generator/spfx/depsChecker/yoChecker.d.ts +1 -1
  336. package/build/component/generator/spfx/depsChecker/yoChecker.d.ts.map +1 -1
  337. package/build/component/generator/spfx/depsChecker/yoChecker.js +10 -10
  338. package/build/component/generator/spfx/depsChecker/yoChecker.js.map +1 -1
  339. package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
  340. package/build/component/generator/spfx/spfxGenerator.js +16 -14
  341. package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
  342. package/build/component/generator/spfx/utils/constants.d.ts +1 -0
  343. package/build/component/generator/spfx/utils/constants.d.ts.map +1 -1
  344. package/build/component/generator/spfx/utils/constants.js +1 -0
  345. package/build/component/generator/spfx/utils/constants.js.map +1 -1
  346. package/build/component/generator/spfx/utils/utils.js +3 -3
  347. package/build/component/generator/spfx/utils/utils.js.map +1 -1
  348. package/build/component/generator/utils.d.ts +12 -4
  349. package/build/component/generator/utils.d.ts.map +1 -1
  350. package/build/component/generator/utils.js +17 -16
  351. package/build/component/generator/utils.js.map +1 -1
  352. package/build/component/messages.d.ts +2 -3
  353. package/build/component/messages.d.ts.map +1 -1
  354. package/build/component/messages.js +3 -4
  355. package/build/component/messages.js.map +1 -1
  356. package/build/component/middleware/actionExecutionMW.d.ts +2 -2
  357. package/build/component/middleware/actionExecutionMW.d.ts.map +1 -1
  358. package/build/component/middleware/envMW.js +1 -1
  359. package/build/component/middleware/envMW.js.map +1 -1
  360. package/build/component/middleware/questionMW.d.ts +2 -2
  361. package/build/component/middleware/questionMW.d.ts.map +1 -1
  362. package/build/component/middleware/questionMW.js +7 -11
  363. package/build/component/middleware/questionMW.js.map +1 -1
  364. package/build/component/migrate.js.map +1 -1
  365. package/build/component/provisionUtils.d.ts +3 -3
  366. package/build/component/provisionUtils.d.ts.map +1 -1
  367. package/build/component/provisionUtils.js +3 -3
  368. package/build/component/provisionUtils.js.map +1 -1
  369. package/build/component/resource/botService/appStudio/appStudioClient.d.ts.map +1 -1
  370. package/build/component/resource/botService/appStudio/appStudioClient.js +24 -2
  371. package/build/component/resource/botService/appStudio/appStudioClient.js.map +1 -1
  372. package/build/component/resource/botService/botRegistration/botFrameworkRegistration.d.ts +2 -2
  373. package/build/component/resource/botService/botRegistration/botFrameworkRegistration.d.ts.map +1 -1
  374. package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js +6 -1
  375. package/build/component/resource/botService/botRegistration/botFrameworkRegistration.js.map +1 -1
  376. package/build/component/telemetry.d.ts.map +1 -1
  377. package/build/component/telemetry.js +3 -6
  378. package/build/component/telemetry.js.map +1 -1
  379. package/build/component/utils/ResourceGroupHelper.d.ts +2 -2
  380. package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
  381. package/build/component/utils/ResourceGroupHelper.js +1 -4
  382. package/build/component/utils/ResourceGroupHelper.js.map +1 -1
  383. package/build/component/utils/azureResourceOperation.js +2 -2
  384. package/build/component/utils/azureResourceOperation.js.map +1 -1
  385. package/build/component/utils/charsetUtils.js +3 -3
  386. package/build/component/utils/charsetUtils.js.map +1 -1
  387. package/build/component/utils/common.d.ts +1 -1
  388. package/build/component/utils/common.d.ts.map +1 -1
  389. package/build/component/utils/common.js +4 -5
  390. package/build/component/utils/common.js.map +1 -1
  391. package/build/component/utils/depsChecker/cpUtils.d.ts.map +1 -1
  392. package/build/component/utils/depsChecker/cpUtils.js +8 -4
  393. package/build/component/utils/depsChecker/cpUtils.js.map +1 -1
  394. package/build/component/utils/envUtil.js +2 -2
  395. package/build/component/utils/envUtil.js.map +1 -1
  396. package/build/component/utils/metadataUtil.d.ts +3 -0
  397. package/build/component/utils/metadataUtil.d.ts.map +1 -1
  398. package/build/component/utils/metadataUtil.js +16 -4
  399. package/build/component/utils/metadataUtil.js.map +1 -1
  400. package/build/component/utils/teamsFxTelemetryReporter.d.ts.map +1 -1
  401. package/build/component/utils/teamsFxTelemetryReporter.js +3 -6
  402. package/build/component/utils/teamsFxTelemetryReporter.js.map +1 -1
  403. package/build/component/utils.js.map +1 -1
  404. package/build/core/FxCore.d.ts +44 -33
  405. package/build/core/FxCore.d.ts.map +1 -1
  406. package/build/core/FxCore.js +821 -64
  407. package/build/core/FxCore.js.map +1 -1
  408. package/build/core/collaborator.d.ts +1 -1
  409. package/build/core/collaborator.d.ts.map +1 -1
  410. package/build/core/collaborator.js +16 -10
  411. package/build/core/collaborator.js.map +1 -1
  412. package/build/core/error.d.ts +6 -0
  413. package/build/core/error.d.ts.map +1 -1
  414. package/build/core/error.js +23 -1
  415. package/build/core/error.js.map +1 -1
  416. package/build/core/globalVars.d.ts +16 -0
  417. package/build/core/globalVars.d.ts.map +1 -1
  418. package/build/core/globalVars.js +34 -1
  419. package/build/core/globalVars.js.map +1 -1
  420. package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
  421. package/build/core/middleware/concurrentLocker.js +7 -3
  422. package/build/core/middleware/concurrentLocker.js.map +1 -1
  423. package/build/core/middleware/errorHandler.d.ts +2 -0
  424. package/build/core/middleware/errorHandler.d.ts.map +1 -1
  425. package/build/core/middleware/errorHandler.js +16 -25
  426. package/build/core/middleware/errorHandler.js.map +1 -1
  427. package/build/core/middleware/projectMigratorV3.d.ts +7 -1
  428. package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
  429. package/build/core/middleware/projectMigratorV3.js +35 -34
  430. package/build/core/middleware/projectMigratorV3.js.map +1 -1
  431. package/build/core/middleware/projectVersionChecker.js +8 -8
  432. package/build/core/middleware/projectVersionChecker.js.map +1 -1
  433. package/build/core/middleware/utils/appYmlGenerator.d.ts.map +1 -1
  434. package/build/core/middleware/utils/appYmlGenerator.js +2 -1
  435. package/build/core/middleware/utils/appYmlGenerator.js.map +1 -1
  436. package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts.map +1 -1
  437. package/build/core/middleware/utils/debug/appLocalYmlGenerator.js +3 -2
  438. package/build/core/middleware/utils/debug/appLocalYmlGenerator.js.map +1 -1
  439. package/build/core/middleware/utils/debug/debugV3MigrationUtils.js.map +1 -1
  440. package/build/core/middleware/utils/debug/taskMigrator.d.ts.map +1 -1
  441. package/build/core/middleware/utils/debug/taskMigrator.js +33 -15
  442. package/build/core/middleware/utils/debug/taskMigrator.js.map +1 -1
  443. package/build/core/middleware/utils/migrationContext.d.ts +1 -0
  444. package/build/core/middleware/utils/migrationContext.d.ts.map +1 -1
  445. package/build/core/middleware/utils/migrationContext.js.map +1 -1
  446. package/build/core/middleware/utils/v3MigrationUtils.d.ts.map +1 -1
  447. package/build/core/middleware/utils/v3MigrationUtils.js +6 -2
  448. package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
  449. package/build/error/common.d.ts +10 -4
  450. package/build/error/common.d.ts.map +1 -1
  451. package/build/error/common.js +132 -24
  452. package/build/error/common.js.map +1 -1
  453. package/build/index.d.ts +4 -1
  454. package/build/index.d.ts.map +1 -1
  455. package/build/index.js +5 -1
  456. package/build/index.js.map +1 -1
  457. package/build/question/constants.d.ts +6 -0
  458. package/build/question/constants.d.ts.map +1 -0
  459. package/build/question/constants.js +18 -0
  460. package/build/question/constants.js.map +1 -0
  461. package/build/question/create.d.ts +19 -21
  462. package/build/question/create.d.ts.map +1 -1
  463. package/build/question/create.js +454 -344
  464. package/build/question/create.js.map +1 -1
  465. package/build/question/generator.d.ts +4 -0
  466. package/build/question/generator.d.ts.map +1 -0
  467. package/build/question/generator.js +365 -0
  468. package/build/question/generator.js.map +1 -0
  469. package/build/question/index.d.ts +19 -30
  470. package/build/question/index.d.ts.map +1 -1
  471. package/build/question/index.js +14 -47
  472. package/build/question/index.js.map +1 -1
  473. package/build/question/inputs/CreateEnvInputs.d.ts +14 -0
  474. package/build/question/inputs/CreateEnvInputs.d.ts.map +1 -0
  475. package/build/question/inputs/CreateEnvInputs.js +5 -0
  476. package/build/question/inputs/CreateEnvInputs.js.map +1 -0
  477. package/build/question/inputs/CreateProjectInputs.d.ts +38 -0
  478. package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -0
  479. package/build/question/inputs/CreateProjectInputs.js +5 -0
  480. package/build/question/inputs/CreateProjectInputs.js.map +1 -0
  481. package/build/question/inputs/CreateSampleProjectInputs.d.ts +12 -0
  482. package/build/question/inputs/CreateSampleProjectInputs.d.ts.map +1 -0
  483. package/build/question/inputs/CreateSampleProjectInputs.js +5 -0
  484. package/build/question/inputs/CreateSampleProjectInputs.js.map +1 -0
  485. package/build/question/inputs/DeployAadManifestInputs.d.ts +14 -0
  486. package/build/question/inputs/DeployAadManifestInputs.d.ts.map +1 -0
  487. package/build/question/inputs/DeployAadManifestInputs.js +5 -0
  488. package/build/question/inputs/DeployAadManifestInputs.js.map +1 -0
  489. package/build/question/inputs/PermissionGrantInputs.d.ts +18 -0
  490. package/build/question/inputs/PermissionGrantInputs.d.ts.map +1 -0
  491. package/build/question/inputs/PermissionGrantInputs.js +5 -0
  492. package/build/question/inputs/PermissionGrantInputs.js.map +1 -0
  493. package/build/question/inputs/PermissionListInputs.d.ts +16 -0
  494. package/build/question/inputs/PermissionListInputs.d.ts.map +1 -0
  495. package/build/question/inputs/PermissionListInputs.js +5 -0
  496. package/build/question/inputs/PermissionListInputs.js.map +1 -0
  497. package/build/question/inputs/PreviewTeamsAppInputs.d.ts +14 -0
  498. package/build/question/inputs/PreviewTeamsAppInputs.d.ts.map +1 -0
  499. package/build/question/inputs/PreviewTeamsAppInputs.js +5 -0
  500. package/build/question/inputs/PreviewTeamsAppInputs.js.map +1 -0
  501. package/build/question/inputs/SPFxAddWebpartInputs.d.ts +18 -0
  502. package/build/question/inputs/SPFxAddWebpartInputs.d.ts.map +1 -0
  503. package/build/question/inputs/SPFxAddWebpartInputs.js +5 -0
  504. package/build/question/inputs/SPFxAddWebpartInputs.js.map +1 -0
  505. package/build/question/inputs/SelectTeamsManifestInputs.d.ts +12 -0
  506. package/build/question/inputs/SelectTeamsManifestInputs.d.ts.map +1 -0
  507. package/build/question/inputs/SelectTeamsManifestInputs.js +5 -0
  508. package/build/question/inputs/SelectTeamsManifestInputs.js.map +1 -0
  509. package/build/question/inputs/ValidateTeamsAppInputs.d.ts +14 -0
  510. package/build/question/inputs/ValidateTeamsAppInputs.d.ts.map +1 -0
  511. package/build/question/inputs/ValidateTeamsAppInputs.js +5 -0
  512. package/build/question/inputs/ValidateTeamsAppInputs.js.map +1 -0
  513. package/build/question/inputs/index.d.ts +11 -0
  514. package/build/question/inputs/index.d.ts.map +1 -0
  515. package/build/question/inputs/index.js +16 -0
  516. package/build/question/inputs/index.js.map +1 -0
  517. package/build/question/options/CreateEnvOptions.d.ts +10 -0
  518. package/build/question/options/CreateEnvOptions.d.ts.map +1 -0
  519. package/build/question/options/CreateEnvOptions.js +24 -0
  520. package/build/question/options/CreateEnvOptions.js.map +1 -0
  521. package/build/question/options/CreateProjectOptions.d.ts +10 -0
  522. package/build/question/options/CreateProjectOptions.d.ts.map +1 -0
  523. package/build/question/options/CreateProjectOptions.js +132 -0
  524. package/build/question/options/CreateProjectOptions.js.map +1 -0
  525. package/build/question/options/CreateSampleProjectOptions.d.ts +10 -0
  526. package/build/question/options/CreateSampleProjectOptions.d.ts.map +1 -0
  527. package/build/question/options/CreateSampleProjectOptions.js +52 -0
  528. package/build/question/options/CreateSampleProjectOptions.js.map +1 -0
  529. package/build/question/options/DeployAadManifestOptions.d.ts +10 -0
  530. package/build/question/options/DeployAadManifestOptions.d.ts.map +1 -0
  531. package/build/question/options/DeployAadManifestOptions.js +21 -0
  532. package/build/question/options/DeployAadManifestOptions.js.map +1 -0
  533. package/build/question/options/PermissionGrantOptions.d.ts +10 -0
  534. package/build/question/options/PermissionGrantOptions.d.ts.map +1 -0
  535. package/build/question/options/PermissionGrantOptions.js +33 -0
  536. package/build/question/options/PermissionGrantOptions.js.map +1 -0
  537. package/build/question/options/PermissionListOptions.d.ts +10 -0
  538. package/build/question/options/PermissionListOptions.d.ts.map +1 -0
  539. package/build/question/options/PermissionListOptions.js +28 -0
  540. package/build/question/options/PermissionListOptions.js.map +1 -0
  541. package/build/question/options/PreviewTeamsAppOptions.d.ts +10 -0
  542. package/build/question/options/PreviewTeamsAppOptions.d.ts.map +1 -0
  543. package/build/question/options/PreviewTeamsAppOptions.js +26 -0
  544. package/build/question/options/PreviewTeamsAppOptions.js.map +1 -0
  545. package/build/question/options/SPFxAddWebpartOptions.d.ts +10 -0
  546. package/build/question/options/SPFxAddWebpartOptions.d.ts.map +1 -0
  547. package/build/question/options/SPFxAddWebpartOptions.js +39 -0
  548. package/build/question/options/SPFxAddWebpartOptions.js.map +1 -0
  549. package/build/question/options/SelectTeamsManifestOptions.d.ts +10 -0
  550. package/build/question/options/SelectTeamsManifestOptions.d.ts.map +1 -0
  551. package/build/question/options/SelectTeamsManifestOptions.js +17 -0
  552. package/build/question/options/SelectTeamsManifestOptions.js.map +1 -0
  553. package/build/question/options/ValidateTeamsAppOptions.d.ts +10 -0
  554. package/build/question/options/ValidateTeamsAppOptions.d.ts.map +1 -0
  555. package/build/question/options/ValidateTeamsAppOptions.js +23 -0
  556. package/build/question/options/ValidateTeamsAppOptions.js.map +1 -0
  557. package/build/question/options/index.d.ts +11 -0
  558. package/build/question/options/index.d.ts.map +1 -0
  559. package/build/question/options/index.js +16 -0
  560. package/build/question/options/index.js.map +1 -0
  561. package/build/question/other.d.ts +12 -1
  562. package/build/question/other.d.ts.map +1 -1
  563. package/build/question/other.js +129 -31
  564. package/build/question/other.js.map +1 -1
  565. package/build/question/questionNames.d.ts +6 -2
  566. package/build/question/questionNames.d.ts.map +1 -1
  567. package/build/question/questionNames.js +8 -3
  568. package/build/question/questionNames.js.map +1 -1
  569. package/build/ui/validationUtils.d.ts +31 -0
  570. package/build/ui/validationUtils.d.ts.map +1 -0
  571. package/build/ui/validationUtils.js +297 -0
  572. package/build/ui/validationUtils.js.map +1 -0
  573. package/build/ui/visitor.d.ts +13 -1
  574. package/build/ui/visitor.d.ts.map +1 -1
  575. package/build/ui/visitor.js +264 -215
  576. package/build/ui/visitor.js.map +1 -1
  577. package/package.json +21 -14
  578. package/resource/package.nls.json +59 -18
  579. package/resource/yaml-schema/v1.2/yaml.schema.json +1474 -0
  580. package/templates/fallback/common.zip +0 -0
  581. package/templates/fallback/csharp.zip +0 -0
  582. package/templates/fallback/js.zip +0 -0
  583. package/templates/fallback/ts.zip +0 -0
  584. package/templates/plugins/resource/aad/auth/V3/Tab/GetUserProfile.razor +1 -2
  585. package/templates/plugins/resource/aad/auth/bot/README.md +281 -263
  586. package/templates/plugins/resource/aad/auth/bot/js/sso/handleMessageExtensionQueryWithToken.js +13 -3
  587. package/templates/plugins/resource/aad/auth/bot/js/sso/profileSsoCommandHandler.js +14 -5
  588. package/templates/plugins/resource/aad/auth/bot/ts/sso/handleMessageExtensionQueryWithToken.ts +11 -3
  589. package/templates/plugins/resource/aad/auth/bot/ts/sso/profileSsoCommandHandler.ts +12 -3
  590. package/templates/plugins/resource/aad/auth/tab/csharp/GetUserProfile.razor +1 -2
  591. package/build/common/samples-config-v3.json +0 -233
  592. package/build/component/configManager/diagnostic.d.ts +0 -9
  593. package/build/component/configManager/diagnostic.d.ts.map +0 -1
  594. package/build/component/configManager/diagnostic.js +0 -49
  595. package/build/component/configManager/diagnostic.js.map +0 -1
  596. package/build/component/driver/middleware/updateProgress.d.ts +0 -6
  597. package/build/component/driver/middleware/updateProgress.d.ts.map +0 -1
  598. package/build/component/driver/middleware/updateProgress.js +0 -15
  599. package/build/component/driver/middleware/updateProgress.js.map +0 -1
  600. package/build/core/FxCoreImplementV3.d.ts +0 -44
  601. package/build/core/FxCoreImplementV3.d.ts.map +0 -1
  602. package/build/core/FxCoreImplementV3.js +0 -663
  603. package/build/core/FxCoreImplementV3.js.map +0 -1
@@ -1,663 +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.FxCoreV3Implement = void 0;
6
- const tslib_1 = require("tslib");
7
- const hooks_1 = require("@feathersjs/hooks");
8
- const teamsfx_api_1 = require("@microsoft/teamsfx-api");
9
- const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
10
- const os = tslib_1.__importStar(require("os"));
11
- const path = tslib_1.__importStar(require("path"));
12
- const typedi_1 = require("typedi");
13
- const url_1 = require("url");
14
- const constants_1 = require("../common/constants");
15
- const localizeUtils_1 = require("../common/localizeUtils");
16
- const launchHelper_1 = require("../common/m365/launchHelper");
17
- const projectSettingsHelper_1 = require("../common/projectSettingsHelper");
18
- const versionMetadata_1 = require("../common/versionMetadata");
19
- const constants_2 = require("../component/constants");
20
- const coordinator_1 = require("../component/coordinator");
21
- const buildAadManifest_1 = require("../component/driver/aad/utility/buildAadManifest");
22
- require("../component/driver/index");
23
- const appStudio_1 = require("../component/driver/teamsApp/appStudio");
24
- const ManifestUtils_1 = require("../component/driver/teamsApp/utils/ManifestUtils");
25
- const utils_1 = require("../component/driver/teamsApp/utils/utils");
26
- const envMW_1 = require("../component/middleware/envMW");
27
- const questionMW_1 = require("../component/middleware/questionMW");
28
- const utils_2 = require("../component/utils");
29
- const envUtil_1 = require("../component/utils/envUtil");
30
- const pathUtils_1 = require("../component/utils/pathUtils");
31
- const common_1 = require("../error/common");
32
- const upgrade_1 = require("../error/upgrade");
33
- const yml_1 = require("../error/yml");
34
- const question_1 = require("../question");
35
- const create_1 = require("../question/create");
36
- const other_1 = require("../question/other");
37
- const questionNames_1 = require("../question/questionNames");
38
- const collaborator_1 = require("./collaborator");
39
- const error_1 = require("./error");
40
- const globalVars_1 = require("./globalVars");
41
- const concurrentLocker_1 = require("./middleware/concurrentLocker");
42
- const contextInjector_1 = require("./middleware/contextInjector");
43
- const errorHandler_1 = require("./middleware/errorHandler");
44
- const projectMigratorV3_1 = require("./middleware/projectMigratorV3");
45
- const v3MigrationUtils_1 = require("./middleware/utils/v3MigrationUtils");
46
- const telemetry_1 = require("./telemetry");
47
- class FxCoreV3Implement {
48
- constructor(tools) {
49
- this.tools = tools;
50
- }
51
- async dispatch(exec, inputs) {
52
- const methodName = exec.name;
53
- if (!this[methodName]) {
54
- throw new Error("no implement");
55
- }
56
- const method = this[methodName];
57
- return await method.call(this, inputs);
58
- }
59
- async dispatchUserTask(exec, func, inputs) {
60
- const methodName = exec.name;
61
- if (!this[methodName]) {
62
- throw new Error("no implement");
63
- }
64
- const method = this[methodName];
65
- return await method.call(this, func, inputs);
66
- }
67
- async createProject(inputs) {
68
- const context = utils_2.createContextV3();
69
- if (inputs.teamsAppFromTdp) {
70
- // should never happen as we do same check on Developer Portal.
71
- if (utils_1.containsUnsupportedFeature(inputs.teamsAppFromTdp)) {
72
- return teamsfx_api_1.err(error_1.InvalidInputError("Teams app contains unsupported features"));
73
- }
74
- else {
75
- context.telemetryReporter.sendTelemetryEvent(telemetry_1.CoreTelemetryEvent.CreateFromTdpStart, {
76
- [telemetry_1.CoreTelemetryProperty.TdpTeamsAppFeatures]: utils_1.getFeaturesFromAppDefinition(inputs.teamsAppFromTdp).join(","),
77
- [telemetry_1.CoreTelemetryProperty.TdpTeamsAppId]: inputs.teamsAppFromTdp.teamsAppId,
78
- });
79
- }
80
- }
81
- const res = await coordinator_1.coordinator.create(context, inputs);
82
- if (res.isErr())
83
- return teamsfx_api_1.err(res.error);
84
- inputs.projectPath = context.projectPath;
85
- return teamsfx_api_1.ok(inputs.projectPath);
86
- }
87
- async provisionResources(inputs, ctx) {
88
- inputs.stage = teamsfx_api_1.Stage.provision;
89
- const context = utils_2.createDriverContext(inputs);
90
- try {
91
- const res = await coordinator_1.coordinator.provision(context, inputs);
92
- if (res.isOk()) {
93
- ctx.envVars = res.value;
94
- return teamsfx_api_1.ok(teamsfx_api_1.Void);
95
- }
96
- else {
97
- // for partial success scenario, output is set in inputs object
98
- ctx.envVars = inputs.envVars;
99
- return teamsfx_api_1.err(res.error);
100
- }
101
- }
102
- finally {
103
- //reset subscription
104
- try {
105
- await globalVars_1.TOOLS.tokenProvider.azureAccountProvider.setSubscription("");
106
- }
107
- catch (e) { }
108
- }
109
- }
110
- async deployArtifacts(inputs, ctx) {
111
- inputs.stage = teamsfx_api_1.Stage.deploy;
112
- const context = utils_2.createDriverContext(inputs);
113
- const res = await coordinator_1.coordinator.deploy(context, inputs);
114
- if (res.isOk()) {
115
- ctx.envVars = res.value;
116
- return teamsfx_api_1.ok(teamsfx_api_1.Void);
117
- }
118
- else {
119
- // for partial success scenario, output is set in inputs object
120
- ctx.envVars = inputs.envVars;
121
- return teamsfx_api_1.err(res.error);
122
- }
123
- }
124
- async deployAadManifest(inputs) {
125
- inputs.stage = teamsfx_api_1.Stage.deployAad;
126
- const updateAadClient = typedi_1.Container.get("aadApp/update");
127
- // In V3, the aad.template.json exist at .fx folder, and output to root build folder.
128
- const manifestTemplatePath = inputs[questionNames_1.QuestionNames.AadAppManifestFilePath];
129
- if (!(await fs_extra_1.default.pathExists(manifestTemplatePath))) {
130
- return teamsfx_api_1.err(new common_1.FileNotFoundError("deployAadManifest", manifestTemplatePath));
131
- }
132
- let manifestOutputPath = manifestTemplatePath;
133
- if (inputs.env && (await other_1.isAadMainifestContainsPlaceholder(inputs))) {
134
- await fs_extra_1.default.ensureDir(path.join(inputs.projectPath, "build"));
135
- manifestOutputPath = path.join(inputs.projectPath, "build", `aad.manifest.${inputs.env}.json`);
136
- }
137
- const inputArgs = {
138
- manifestPath: manifestTemplatePath,
139
- outputFilePath: manifestOutputPath,
140
- };
141
- const Context = utils_2.createDriverContext(inputs);
142
- const res = await updateAadClient.run(inputArgs, Context);
143
- if (res.isErr()) {
144
- return teamsfx_api_1.err(res.error);
145
- }
146
- if (Context.platform === teamsfx_api_1.Platform.CLI) {
147
- const msg = localizeUtils_1.getLocalizedString("core.deploy.aadManifestOnCLISuccessNotice");
148
- Context.ui.showMessage("info", msg, false);
149
- }
150
- else {
151
- const msg = localizeUtils_1.getLocalizedString("core.deploy.aadManifestSuccessNotice");
152
- Context.ui.showMessage("info", msg, false, localizeUtils_1.getLocalizedString("core.deploy.aadManifestLearnMore")).then((result) => {
153
- const userSelected = result.isOk() ? result.value : undefined;
154
- if (userSelected === localizeUtils_1.getLocalizedString("core.deploy.aadManifestLearnMore")) {
155
- Context.ui.openUrl(constants_2.ViewAadAppHelpLinkV5);
156
- }
157
- });
158
- }
159
- return teamsfx_api_1.ok(teamsfx_api_1.Void);
160
- }
161
- async publishApplication(inputs, ctx) {
162
- inputs.stage = teamsfx_api_1.Stage.publish;
163
- const context = utils_2.createDriverContext(inputs);
164
- const res = await coordinator_1.coordinator.publish(context, inputs);
165
- if (res.isOk()) {
166
- ctx.envVars = res.value;
167
- return teamsfx_api_1.ok(teamsfx_api_1.Void);
168
- }
169
- else {
170
- // for partial success scenario, output is set in inputs object
171
- ctx.envVars = inputs.envVars;
172
- return teamsfx_api_1.err(res.error);
173
- }
174
- }
175
- async deployTeamsManifest(inputs, ctx) {
176
- inputs.manifestTemplatePath = inputs[questionNames_1.QuestionNames.TeamsAppManifestFilePath];
177
- const context = utils_2.createContextV3();
178
- const res = await appStudio_1.updateManifestV3(context, inputs);
179
- if (res.isOk()) {
180
- ctx.envVars = envUtil_1.envUtil.map2object(res.value);
181
- }
182
- return res;
183
- }
184
- async executeUserTask(func, inputs) {
185
- let res = teamsfx_api_1.ok(undefined);
186
- const context = utils_2.createDriverContext(inputs);
187
- if (func.method === "addSso") {
188
- // used in v3 only in VS
189
- inputs.stage = teamsfx_api_1.Stage.addFeature;
190
- inputs[questionNames_1.QuestionNames.Features] = constants_2.SingleSignOnOptionItem.id;
191
- const component = typedi_1.Container.get("sso");
192
- res = await component.add(context, inputs);
193
- }
194
- return res;
195
- }
196
- async addWebpart(inputs) {
197
- const driver = typedi_1.Container.get("spfx/add");
198
- const args = {
199
- manifestPath: inputs[constants_2.SPFxQuestionNames.ManifestPath],
200
- localManifestPath: inputs[constants_2.SPFxQuestionNames.LocalManifestPath],
201
- spfxFolder: inputs[constants_2.SPFxQuestionNames.SPFxFolder],
202
- webpartName: inputs[constants_2.SPFxQuestionNames.WebPartName],
203
- spfxPackage: create_1.SPFxVersionOptionIds.installLocally,
204
- };
205
- const Context = utils_2.createDriverContext(inputs);
206
- return await driver.run(args, Context);
207
- }
208
- async publishInDeveloperPortal(inputs) {
209
- inputs.stage = teamsfx_api_1.Stage.publishInDeveloperPortal;
210
- const context = utils_2.createContextV3();
211
- return await coordinator_1.coordinator.publishInDeveloperPortal(context, inputs);
212
- }
213
- async grantPermission(inputs) {
214
- inputs.stage = teamsfx_api_1.Stage.grantPermission;
215
- const context = utils_2.createContextV3();
216
- const res = await collaborator_1.grantPermission(context, inputs, globalVars_1.TOOLS.tokenProvider);
217
- return res;
218
- }
219
- async checkPermission(inputs) {
220
- inputs.stage = teamsfx_api_1.Stage.checkPermission;
221
- const context = utils_2.createContextV3();
222
- const res = await collaborator_1.checkPermission(context, inputs, globalVars_1.TOOLS.tokenProvider);
223
- return res;
224
- }
225
- async listCollaborator(inputs) {
226
- inputs.stage = teamsfx_api_1.Stage.listCollaborator;
227
- const context = utils_2.createContextV3();
228
- const res = await collaborator_1.listCollaborator(context, inputs, globalVars_1.TOOLS.tokenProvider);
229
- return res;
230
- }
231
- /**
232
- * get all dot envs
233
- */
234
- async getDotEnvs(inputs) {
235
- const envListRes = await envUtil_1.envUtil.listEnv(inputs.projectPath);
236
- if (envListRes.isErr()) {
237
- return teamsfx_api_1.err(envListRes.error);
238
- }
239
- const res = {};
240
- for (const env of envListRes.value) {
241
- const envRes = await envUtil_1.envUtil.readEnv(inputs.projectPath, env, false, false);
242
- if (envRes.isErr()) {
243
- return teamsfx_api_1.err(envRes.error);
244
- }
245
- res[env] = envRes.value;
246
- }
247
- return teamsfx_api_1.ok(res);
248
- }
249
- async phantomMigrationV3(inputs) {
250
- // If the project is invalid or upgraded, the ProjectMigratorMWV3 will not take action.
251
- // Check invaliad/upgraded project here before call ProjectMigratorMWV3
252
- const projectPath = inputs.projectPath || "";
253
- const version = await v3MigrationUtils_1.getProjectVersionFromPath(projectPath);
254
- if (version.source === versionMetadata_1.VersionSource.teamsapp) {
255
- return teamsfx_api_1.err(new upgrade_1.NoNeedUpgradeError());
256
- }
257
- else if (version.source === versionMetadata_1.VersionSource.projectSettings) {
258
- const isValid = await projectMigratorV3_1.checkActiveResourcePlugins(projectPath);
259
- if (!isValid) {
260
- return teamsfx_api_1.err(new common_1.InvalidProjectError());
261
- }
262
- }
263
- if (version.source === versionMetadata_1.VersionSource.unknown) {
264
- return teamsfx_api_1.err(new common_1.InvalidProjectError());
265
- }
266
- return await this.innerMigrationV3(inputs);
267
- }
268
- async innerMigrationV3(inputs) {
269
- return teamsfx_api_1.ok(teamsfx_api_1.Void);
270
- }
271
- async projectVersionCheck(inputs) {
272
- const projectPath = inputs.projectPath || "";
273
- if (projectSettingsHelper_1.isValidProjectV3(projectPath) || projectSettingsHelper_1.isValidProjectV2(projectPath)) {
274
- const versionInfo = await v3MigrationUtils_1.getProjectVersionFromPath(projectPath);
275
- if (!versionInfo.version) {
276
- return teamsfx_api_1.err(new common_1.InvalidProjectError());
277
- }
278
- const trackingId = await v3MigrationUtils_1.getTrackingIdFromPath(projectPath);
279
- const isSupport = v3MigrationUtils_1.getVersionState(versionInfo);
280
- // if the project is upgradeable, check whether the project is valid and invalid project should not show upgrade option.
281
- if (isSupport === versionMetadata_1.VersionState.upgradeable) {
282
- if (!(await projectMigratorV3_1.checkActiveResourcePlugins(projectPath))) {
283
- return teamsfx_api_1.err(new common_1.InvalidProjectError());
284
- }
285
- }
286
- return teamsfx_api_1.ok({
287
- currentVersion: versionInfo.version,
288
- trackingId,
289
- isSupport,
290
- versionSource: versionMetadata_1.VersionSource[versionInfo.source],
291
- });
292
- }
293
- else {
294
- return teamsfx_api_1.err(new common_1.InvalidProjectError());
295
- }
296
- }
297
- async preProvisionForVS(inputs) {
298
- const context = utils_2.createDriverContext(inputs);
299
- return coordinator_1.coordinator.preProvisionForVS(context, inputs);
300
- }
301
- async preCheckYmlAndEnvForVS(inputs) {
302
- const context = utils_2.createDriverContext(inputs);
303
- const result = await coordinator_1.coordinator.preCheckYmlAndEnvForVS(context, inputs);
304
- return result;
305
- }
306
- async createEnv(inputs) {
307
- return this.createEnvCopyV3(inputs[questionNames_1.QuestionNames.NewTargetEnvName], inputs[questionNames_1.QuestionNames.SourceEnvName], inputs.projectPath);
308
- }
309
- async createEnvCopyV3(targetEnvName, sourceEnvName, projectPath) {
310
- let res = await pathUtils_1.pathUtils.getEnvFilePath(projectPath, sourceEnvName);
311
- if (res.isErr())
312
- return teamsfx_api_1.err(res.error);
313
- const sourceDotEnvFile = res.value;
314
- res = await pathUtils_1.pathUtils.getEnvFilePath(projectPath, targetEnvName);
315
- if (res.isErr())
316
- return teamsfx_api_1.err(res.error);
317
- const targetDotEnvFile = res.value;
318
- if (!sourceDotEnvFile || !targetDotEnvFile)
319
- return teamsfx_api_1.err(new yml_1.YamlFieldMissingError("environmentFolderPath"));
320
- if (!(await fs_extra_1.default.pathExists(sourceDotEnvFile)))
321
- return teamsfx_api_1.err(new common_1.FileNotFoundError("createEnvCopyV3", sourceDotEnvFile));
322
- const source = await fs_extra_1.default.readFile(sourceDotEnvFile);
323
- const writeStream = fs_extra_1.default.createWriteStream(targetDotEnvFile);
324
- source
325
- .toString()
326
- .split(/\r?\n/)
327
- .forEach((line) => {
328
- const reg = /^([a-zA-Z_][a-zA-Z0-9_]*=)/g;
329
- const match = reg.exec(line);
330
- if (match) {
331
- if (match[1].startsWith("TEAMSFX_ENV=")) {
332
- writeStream.write(`TEAMSFX_ENV=${targetEnvName}${os.EOL}`);
333
- }
334
- else {
335
- writeStream.write(`${match[1]}${os.EOL}`);
336
- }
337
- }
338
- else {
339
- writeStream.write(`${line.trim()}${os.EOL}`);
340
- }
341
- });
342
- writeStream.end();
343
- return teamsfx_api_1.ok(teamsfx_api_1.Void);
344
- }
345
- async buildAadManifest(inputs) {
346
- const manifestTemplatePath = inputs.AAD_MANIFEST_FILE
347
- ? inputs.AAD_MANIFEST_FILE
348
- : path.join(inputs.projectPath, constants_2.AadConstants.DefaultTemplateFileName);
349
- if (!(await fs_extra_1.default.pathExists(manifestTemplatePath))) {
350
- return teamsfx_api_1.err(new common_1.FileNotFoundError("buildAadManifest", manifestTemplatePath));
351
- }
352
- await fs_extra_1.default.ensureDir(path.join(inputs.projectPath, "build"));
353
- const manifestOutputPath = path.join(inputs.projectPath, "build", `aad.${inputs.env}.json`);
354
- const Context = utils_2.createDriverContext(inputs);
355
- await buildAadManifest_1.buildAadManifest(Context, manifestTemplatePath, manifestOutputPath);
356
- return teamsfx_api_1.ok(teamsfx_api_1.Void);
357
- }
358
- async validateManifest(inputs) {
359
- inputs.stage = teamsfx_api_1.Stage.validateApplication;
360
- const context = utils_2.createDriverContext(inputs);
361
- const teamsAppManifestFilePath = inputs === null || inputs === void 0 ? void 0 : inputs[questionNames_1.QuestionNames.TeamsAppManifestFilePath];
362
- const args = {
363
- manifestPath: teamsAppManifestFilePath,
364
- showMessage: (inputs === null || inputs === void 0 ? void 0 : inputs.showMessage) != undefined ? inputs.showMessage : true,
365
- };
366
- const driver = typedi_1.Container.get("teamsApp/validateManifest");
367
- const result = await driver.run(args, context);
368
- return result;
369
- }
370
- async validateAppPackage(inputs) {
371
- inputs.stage = teamsfx_api_1.Stage.validateApplication;
372
- const context = utils_2.createDriverContext(inputs);
373
- const teamsAppPackageFilePath = inputs === null || inputs === void 0 ? void 0 : inputs[questionNames_1.QuestionNames.TeamsAppPackageFilePath];
374
- const args = {
375
- appPackagePath: teamsAppPackageFilePath,
376
- showMessage: true,
377
- };
378
- const driver = typedi_1.Container.get("teamsApp/validateAppPackage");
379
- return await driver.run(args, context);
380
- }
381
- async createAppPackage(inputs) {
382
- var _a, _b, _c;
383
- inputs.stage = teamsfx_api_1.Stage.createAppPackage;
384
- const context = utils_2.createDriverContext(inputs);
385
- const teamsAppManifestFilePath = inputs === null || inputs === void 0 ? void 0 : inputs[questionNames_1.QuestionNames.TeamsAppManifestFilePath];
386
- const driver = typedi_1.Container.get("teamsApp/zipAppPackage");
387
- const args = {
388
- manifestPath: teamsAppManifestFilePath,
389
- outputZipPath: (_a = inputs[questionNames_1.QuestionNames.OutputZipPathParamName]) !== null && _a !== void 0 ? _a : `${inputs.projectPath}/${teamsfx_api_1.AppPackageFolderName}/${teamsfx_api_1.BuildFolderName}/appPackage.${process.env.TEAMSFX_ENV}.zip`,
390
- outputJsonPath: (_b = inputs[questionNames_1.QuestionNames.OutputManifestParamName]) !== null && _b !== void 0 ? _b : `${inputs.projectPath}/${teamsfx_api_1.AppPackageFolderName}/${teamsfx_api_1.BuildFolderName}/manifest.${process.env.TEAMSFX_ENV}.json`,
391
- };
392
- const result = await driver.run(args, context);
393
- if (context.platform === teamsfx_api_1.Platform.VSCode) {
394
- if (result.isOk()) {
395
- const isWindows = process.platform === "win32";
396
- let zipFileName = args.outputZipPath;
397
- if (!path.isAbsolute(zipFileName)) {
398
- zipFileName = path.join(context.projectPath, zipFileName);
399
- }
400
- let builtSuccess = localizeUtils_1.getLocalizedString("plugins.appstudio.buildSucceedNotice.fallback", zipFileName);
401
- if (isWindows) {
402
- const folderLink = url_1.pathToFileURL(path.dirname(zipFileName));
403
- const appPackageLink = `${constants_1.VSCodeExtensionCommand.openFolder}?%5B%22${folderLink}%22%5D`;
404
- builtSuccess = localizeUtils_1.getLocalizedString("plugins.appstudio.buildSucceedNotice", appPackageLink);
405
- }
406
- (_c = context.ui) === null || _c === void 0 ? void 0 : _c.showMessage("info", builtSuccess, false);
407
- }
408
- }
409
- return result;
410
- }
411
- async copilotPluginAddAPI(inputs) {
412
- // TODO: call generator to add API
413
- return teamsfx_api_1.ok("");
414
- }
415
- async previewWithManifest(inputs) {
416
- inputs.stage = teamsfx_api_1.Stage.previewWithManifest;
417
- const hub = inputs[questionNames_1.QuestionNames.M365Host];
418
- const manifestFilePath = inputs[questionNames_1.QuestionNames.TeamsAppManifestFilePath];
419
- const manifestRes = await ManifestUtils_1.manifestUtils.getManifestV3(manifestFilePath, false);
420
- if (manifestRes.isErr()) {
421
- return teamsfx_api_1.err(manifestRes.error);
422
- }
423
- const teamsAppId = manifestRes.value.id;
424
- const capabilities = ManifestUtils_1.manifestUtils.getCapabilities(manifestRes.value);
425
- const launchHelper = new launchHelper_1.LaunchHelper(this.tools.tokenProvider.m365TokenProvider, this.tools.logProvider);
426
- const result = await launchHelper.getLaunchUrl(hub, teamsAppId, capabilities);
427
- return result;
428
- }
429
- }
430
- tslib_1.__decorate([
431
- hooks_1.hooks([errorHandler_1.ErrorHandlerMW, questionMW_1.QuestionMW(question_1.questions.createProject)]),
432
- tslib_1.__metadata("design:type", Function),
433
- tslib_1.__metadata("design:paramtypes", [Object]),
434
- tslib_1.__metadata("design:returntype", Promise)
435
- ], FxCoreV3Implement.prototype, "createProject", null);
436
- tslib_1.__decorate([
437
- hooks_1.hooks([
438
- errorHandler_1.ErrorHandlerMW,
439
- projectMigratorV3_1.ProjectMigratorMWV3,
440
- envMW_1.EnvLoaderMW(false),
441
- concurrentLocker_1.ConcurrentLockerMW,
442
- contextInjector_1.ContextInjectorMW,
443
- envMW_1.EnvWriterMW,
444
- ]),
445
- tslib_1.__metadata("design:type", Function),
446
- tslib_1.__metadata("design:paramtypes", [Object, Object]),
447
- tslib_1.__metadata("design:returntype", Promise)
448
- ], FxCoreV3Implement.prototype, "provisionResources", null);
449
- tslib_1.__decorate([
450
- hooks_1.hooks([
451
- errorHandler_1.ErrorHandlerMW,
452
- projectMigratorV3_1.ProjectMigratorMWV3,
453
- envMW_1.EnvLoaderMW(false),
454
- concurrentLocker_1.ConcurrentLockerMW,
455
- contextInjector_1.ContextInjectorMW,
456
- envMW_1.EnvWriterMW,
457
- ]),
458
- tslib_1.__metadata("design:type", Function),
459
- tslib_1.__metadata("design:paramtypes", [Object, Object]),
460
- tslib_1.__metadata("design:returntype", Promise)
461
- ], FxCoreV3Implement.prototype, "deployArtifacts", null);
462
- tslib_1.__decorate([
463
- hooks_1.hooks([
464
- errorHandler_1.ErrorHandlerMW,
465
- projectMigratorV3_1.ProjectMigratorMWV3,
466
- questionMW_1.QuestionMW(question_1.questions.deployAadManifest),
467
- envMW_1.EnvLoaderMW(true, true),
468
- concurrentLocker_1.ConcurrentLockerMW,
469
- contextInjector_1.ContextInjectorMW,
470
- ]),
471
- tslib_1.__metadata("design:type", Function),
472
- tslib_1.__metadata("design:paramtypes", [Object]),
473
- tslib_1.__metadata("design:returntype", Promise)
474
- ], FxCoreV3Implement.prototype, "deployAadManifest", null);
475
- tslib_1.__decorate([
476
- hooks_1.hooks([
477
- errorHandler_1.ErrorHandlerMW,
478
- projectMigratorV3_1.ProjectMigratorMWV3,
479
- envMW_1.EnvLoaderMW(false),
480
- concurrentLocker_1.ConcurrentLockerMW,
481
- contextInjector_1.ContextInjectorMW,
482
- envMW_1.EnvWriterMW,
483
- ]),
484
- tslib_1.__metadata("design:type", Function),
485
- tslib_1.__metadata("design:paramtypes", [Object, Object]),
486
- tslib_1.__metadata("design:returntype", Promise)
487
- ], FxCoreV3Implement.prototype, "publishApplication", null);
488
- tslib_1.__decorate([
489
- hooks_1.hooks([
490
- errorHandler_1.ErrorHandlerMW,
491
- projectMigratorV3_1.ProjectMigratorMWV3,
492
- questionMW_1.QuestionMW(question_1.questions.selectTeamsAppManifest),
493
- envMW_1.EnvLoaderMW(true),
494
- concurrentLocker_1.ConcurrentLockerMW,
495
- contextInjector_1.ContextInjectorMW,
496
- envMW_1.EnvWriterMW,
497
- ]),
498
- tslib_1.__metadata("design:type", Function),
499
- tslib_1.__metadata("design:paramtypes", [Object, Object]),
500
- tslib_1.__metadata("design:returntype", Promise)
501
- ], FxCoreV3Implement.prototype, "deployTeamsManifest", null);
502
- tslib_1.__decorate([
503
- hooks_1.hooks([errorHandler_1.ErrorHandlerMW, projectMigratorV3_1.ProjectMigratorMWV3, envMW_1.EnvLoaderMW(false), concurrentLocker_1.ConcurrentLockerMW]),
504
- tslib_1.__metadata("design:type", Function),
505
- tslib_1.__metadata("design:paramtypes", [Object, Object]),
506
- tslib_1.__metadata("design:returntype", Promise)
507
- ], FxCoreV3Implement.prototype, "executeUserTask", null);
508
- tslib_1.__decorate([
509
- hooks_1.hooks([
510
- errorHandler_1.ErrorHandlerMW,
511
- questionMW_1.QuestionMW(question_1.questions.addWebpart),
512
- projectMigratorV3_1.ProjectMigratorMWV3,
513
- concurrentLocker_1.ConcurrentLockerMW,
514
- ]),
515
- tslib_1.__metadata("design:type", Function),
516
- tslib_1.__metadata("design:paramtypes", [Object]),
517
- tslib_1.__metadata("design:returntype", Promise)
518
- ], FxCoreV3Implement.prototype, "addWebpart", null);
519
- tslib_1.__decorate([
520
- hooks_1.hooks([errorHandler_1.ErrorHandlerMW, concurrentLocker_1.ConcurrentLockerMW, contextInjector_1.ContextInjectorMW]),
521
- tslib_1.__metadata("design:type", Function),
522
- tslib_1.__metadata("design:paramtypes", [Object]),
523
- tslib_1.__metadata("design:returntype", Promise)
524
- ], FxCoreV3Implement.prototype, "publishInDeveloperPortal", null);
525
- tslib_1.__decorate([
526
- hooks_1.hooks([
527
- errorHandler_1.ErrorHandlerMW,
528
- projectMigratorV3_1.ProjectMigratorMWV3,
529
- questionMW_1.QuestionMW(question_1.questions.grantPermission),
530
- envMW_1.EnvLoaderMW(false, true),
531
- concurrentLocker_1.ConcurrentLockerMW,
532
- envMW_1.EnvWriterMW,
533
- ]),
534
- tslib_1.__metadata("design:type", Function),
535
- tslib_1.__metadata("design:paramtypes", [Object]),
536
- tslib_1.__metadata("design:returntype", Promise)
537
- ], FxCoreV3Implement.prototype, "grantPermission", null);
538
- tslib_1.__decorate([
539
- hooks_1.hooks([
540
- errorHandler_1.ErrorHandlerMW,
541
- projectMigratorV3_1.ProjectMigratorMWV3,
542
- envMW_1.EnvLoaderMW(false, true),
543
- concurrentLocker_1.ConcurrentLockerMW,
544
- envMW_1.EnvWriterMW,
545
- ]),
546
- tslib_1.__metadata("design:type", Function),
547
- tslib_1.__metadata("design:paramtypes", [Object]),
548
- tslib_1.__metadata("design:returntype", Promise)
549
- ], FxCoreV3Implement.prototype, "checkPermission", null);
550
- tslib_1.__decorate([
551
- hooks_1.hooks([
552
- errorHandler_1.ErrorHandlerMW,
553
- projectMigratorV3_1.ProjectMigratorMWV3,
554
- questionMW_1.QuestionMW(question_1.questions.listCollaborator),
555
- envMW_1.EnvLoaderMW(false, true),
556
- concurrentLocker_1.ConcurrentLockerMW,
557
- envMW_1.EnvWriterMW,
558
- ]),
559
- tslib_1.__metadata("design:type", Function),
560
- tslib_1.__metadata("design:paramtypes", [Object]),
561
- tslib_1.__metadata("design:returntype", Promise)
562
- ], FxCoreV3Implement.prototype, "listCollaborator", null);
563
- tslib_1.__decorate([
564
- hooks_1.hooks([errorHandler_1.ErrorHandlerMW]),
565
- tslib_1.__metadata("design:type", Function),
566
- tslib_1.__metadata("design:paramtypes", [Object]),
567
- tslib_1.__metadata("design:returntype", Promise)
568
- ], FxCoreV3Implement.prototype, "getDotEnvs", null);
569
- tslib_1.__decorate([
570
- hooks_1.hooks([errorHandler_1.ErrorHandlerMW, projectMigratorV3_1.ProjectMigratorMWV3]),
571
- tslib_1.__metadata("design:type", Function),
572
- tslib_1.__metadata("design:paramtypes", [Object]),
573
- tslib_1.__metadata("design:returntype", Promise)
574
- ], FxCoreV3Implement.prototype, "innerMigrationV3", null);
575
- tslib_1.__decorate([
576
- hooks_1.hooks([errorHandler_1.ErrorHandlerMW]),
577
- tslib_1.__metadata("design:type", Function),
578
- tslib_1.__metadata("design:paramtypes", [Object]),
579
- tslib_1.__metadata("design:returntype", Promise)
580
- ], FxCoreV3Implement.prototype, "projectVersionCheck", null);
581
- tslib_1.__decorate([
582
- hooks_1.hooks([
583
- errorHandler_1.ErrorHandlerMW,
584
- projectMigratorV3_1.ProjectMigratorMWV3,
585
- envMW_1.EnvLoaderMW(false),
586
- concurrentLocker_1.ConcurrentLockerMW,
587
- contextInjector_1.ContextInjectorMW,
588
- ]),
589
- tslib_1.__metadata("design:type", Function),
590
- tslib_1.__metadata("design:paramtypes", [Object]),
591
- tslib_1.__metadata("design:returntype", Promise)
592
- ], FxCoreV3Implement.prototype, "preProvisionForVS", null);
593
- tslib_1.__decorate([
594
- hooks_1.hooks([
595
- errorHandler_1.ErrorHandlerMW,
596
- projectMigratorV3_1.ProjectMigratorMWV3,
597
- envMW_1.EnvLoaderMW(false),
598
- concurrentLocker_1.ConcurrentLockerMW,
599
- contextInjector_1.ContextInjectorMW,
600
- ]),
601
- tslib_1.__metadata("design:type", Function),
602
- tslib_1.__metadata("design:paramtypes", [Object]),
603
- tslib_1.__metadata("design:returntype", Promise)
604
- ], FxCoreV3Implement.prototype, "preCheckYmlAndEnvForVS", null);
605
- tslib_1.__decorate([
606
- hooks_1.hooks([errorHandler_1.ErrorHandlerMW, questionMW_1.QuestionMW(question_1.questions.createNewEnv), concurrentLocker_1.ConcurrentLockerMW]),
607
- tslib_1.__metadata("design:type", Function),
608
- tslib_1.__metadata("design:paramtypes", [Object]),
609
- tslib_1.__metadata("design:returntype", Promise)
610
- ], FxCoreV3Implement.prototype, "createEnv", null);
611
- tslib_1.__decorate([
612
- hooks_1.hooks([errorHandler_1.ErrorHandlerMW, projectMigratorV3_1.ProjectMigratorMWV3, envMW_1.EnvLoaderMW(false), concurrentLocker_1.ConcurrentLockerMW]),
613
- tslib_1.__metadata("design:type", Function),
614
- tslib_1.__metadata("design:paramtypes", [Object]),
615
- tslib_1.__metadata("design:returntype", Promise)
616
- ], FxCoreV3Implement.prototype, "buildAadManifest", null);
617
- tslib_1.__decorate([
618
- hooks_1.hooks([
619
- errorHandler_1.ErrorHandlerMW,
620
- questionMW_1.QuestionMW(question_1.questions.selectTeamsAppManifest),
621
- concurrentLocker_1.ConcurrentLockerMW,
622
- envMW_1.EnvLoaderMW(true),
623
- ]),
624
- tslib_1.__metadata("design:type", Function),
625
- tslib_1.__metadata("design:paramtypes", [Object]),
626
- tslib_1.__metadata("design:returntype", Promise)
627
- ], FxCoreV3Implement.prototype, "validateManifest", null);
628
- tslib_1.__decorate([
629
- hooks_1.hooks([errorHandler_1.ErrorHandlerMW, questionMW_1.QuestionMW(question_1.questions.selectTeamsAppPackage), concurrentLocker_1.ConcurrentLockerMW]),
630
- tslib_1.__metadata("design:type", Function),
631
- tslib_1.__metadata("design:paramtypes", [Object]),
632
- tslib_1.__metadata("design:returntype", Promise)
633
- ], FxCoreV3Implement.prototype, "validateAppPackage", null);
634
- tslib_1.__decorate([
635
- hooks_1.hooks([
636
- errorHandler_1.ErrorHandlerMW,
637
- questionMW_1.QuestionMW(question_1.questions.selectTeamsAppManifest),
638
- envMW_1.EnvLoaderMW(true),
639
- concurrentLocker_1.ConcurrentLockerMW,
640
- ]),
641
- tslib_1.__metadata("design:type", Function),
642
- tslib_1.__metadata("design:paramtypes", [Object]),
643
- tslib_1.__metadata("design:returntype", Promise)
644
- ], FxCoreV3Implement.prototype, "createAppPackage", null);
645
- tslib_1.__decorate([
646
- hooks_1.hooks([errorHandler_1.ErrorHandlerMW, questionMW_1.QuestionMW(question_1.questions.copilotPluginAddAPI), concurrentLocker_1.ConcurrentLockerMW]),
647
- tslib_1.__metadata("design:type", Function),
648
- tslib_1.__metadata("design:paramtypes", [Object]),
649
- tslib_1.__metadata("design:returntype", Promise)
650
- ], FxCoreV3Implement.prototype, "copilotPluginAddAPI", null);
651
- tslib_1.__decorate([
652
- hooks_1.hooks([
653
- errorHandler_1.ErrorHandlerMW,
654
- questionMW_1.QuestionMW(question_1.questions.previewWithTeamsAppManifest),
655
- envMW_1.EnvLoaderMW(false),
656
- concurrentLocker_1.ConcurrentLockerMW,
657
- ]),
658
- tslib_1.__metadata("design:type", Function),
659
- tslib_1.__metadata("design:paramtypes", [Object]),
660
- tslib_1.__metadata("design:returntype", Promise)
661
- ], FxCoreV3Implement.prototype, "previewWithManifest", null);
662
- exports.FxCoreV3Implement = FxCoreV3Implement;
663
- //# sourceMappingURL=FxCoreImplementV3.js.map