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