@microsoft/teamsfx-core 3.0.14-alpha.39b9226977.0 → 3.0.14-alpha.7ffcdb8131.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 (461) hide show
  1. package/build/client/teamsDevPortalClient.d.ts +7 -2
  2. package/build/client/teamsDevPortalClient.d.ts.map +1 -1
  3. package/build/client/teamsDevPortalClient.js +63 -59
  4. package/build/client/teamsDevPortalClient.js.map +1 -1
  5. package/build/common/daSpecParser.d.ts +16 -1
  6. package/build/common/daSpecParser.d.ts.map +1 -1
  7. package/build/common/daSpecParser.js +34 -21
  8. package/build/common/daSpecParser.js.map +1 -1
  9. package/build/common/featureFlags.d.ts +15 -0
  10. package/build/common/featureFlags.d.ts.map +1 -1
  11. package/build/common/featureFlags.js +17 -0
  12. package/build/common/featureFlags.js.map +1 -1
  13. package/build/common/fetchHelper.d.ts.map +1 -1
  14. package/build/common/fetchHelper.js +41 -3
  15. package/build/common/fetchHelper.js.map +1 -1
  16. package/build/common/kiotaClient.d.ts +3 -3
  17. package/build/common/kiotaClient.d.ts.map +1 -1
  18. package/build/common/kiotaClient.js +10 -10
  19. package/build/common/kiotaClient.js.map +1 -1
  20. package/build/common/projectSettingsHelper.d.ts +0 -2
  21. package/build/common/projectSettingsHelper.d.ts.map +1 -1
  22. package/build/common/projectSettingsHelper.js +1 -56
  23. package/build/common/projectSettingsHelper.js.map +1 -1
  24. package/build/common/telemetry.d.ts +4 -15
  25. package/build/common/telemetry.d.ts.map +1 -1
  26. package/build/common/telemetry.js +7 -20
  27. package/build/common/telemetry.js.map +1 -1
  28. package/build/common/templates-config.json +9 -2
  29. package/build/common/tools.d.ts +6 -1
  30. package/build/common/tools.d.ts.map +1 -1
  31. package/build/common/tools.js +13 -8
  32. package/build/common/tools.js.map +1 -1
  33. package/build/common/wrappedAxiosClient.d.ts +1 -1
  34. package/build/common/wrappedAxiosClient.d.ts.map +1 -1
  35. package/build/common/wrappedAxiosClient.js +7 -8
  36. package/build/common/wrappedAxiosClient.js.map +1 -1
  37. package/build/component/coordinator/index.d.ts +4 -0
  38. package/build/component/coordinator/index.d.ts.map +1 -1
  39. package/build/component/coordinator/index.js +5 -2
  40. package/build/component/coordinator/index.js.map +1 -1
  41. package/build/component/deps-checker/internal/funcToolChecker.d.ts +6 -0
  42. package/build/component/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
  43. package/build/component/deps-checker/internal/funcToolChecker.js +15 -12
  44. package/build/component/deps-checker/internal/funcToolChecker.js.map +1 -1
  45. package/build/component/deps-checker/internal/nodeChecker.js +1 -1
  46. package/build/component/deps-checker/internal/nodeChecker.js.map +1 -1
  47. package/build/component/deps-checker/internal/testToolChecker.d.ts +12 -0
  48. package/build/component/deps-checker/internal/testToolChecker.d.ts.map +1 -1
  49. package/build/component/deps-checker/internal/testToolChecker.js +23 -14
  50. package/build/component/deps-checker/internal/testToolChecker.js.map +1 -1
  51. package/build/component/developerPortalScaffoldUtils.d.ts +11 -1
  52. package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
  53. package/build/component/developerPortalScaffoldUtils.js +21 -12
  54. package/build/component/developerPortalScaffoldUtils.js.map +1 -1
  55. package/build/component/driver/aad/utility/aadManifestHelper.d.ts +1 -1
  56. package/build/component/driver/aad/utility/aadManifestHelper.d.ts.map +1 -1
  57. package/build/component/driver/aad/utility/aadManifestHelper.js +7 -4
  58. package/build/component/driver/aad/utility/aadManifestHelper.js.map +1 -1
  59. package/build/component/driver/add/addWebPart.d.ts +9 -0
  60. package/build/component/driver/add/addWebPart.d.ts.map +1 -1
  61. package/build/component/driver/add/addWebPart.js +13 -7
  62. package/build/component/driver/add/addWebPart.js.map +1 -1
  63. package/build/component/driver/arm/util/handleError.d.ts +5 -0
  64. package/build/component/driver/arm/util/handleError.d.ts.map +1 -1
  65. package/build/component/driver/arm/util/handleError.js +10 -5
  66. package/build/component/driver/arm/util/handleError.js.map +1 -1
  67. package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.d.ts +8 -1
  68. package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.d.ts.map +1 -1
  69. package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.js +15 -10
  70. package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.js.map +1 -1
  71. package/build/component/driver/devTool/httpClient.d.ts +4 -0
  72. package/build/component/driver/devTool/httpClient.d.ts.map +1 -1
  73. package/build/component/driver/devTool/httpClient.js +6 -3
  74. package/build/component/driver/devTool/httpClient.js.map +1 -1
  75. package/build/component/driver/m365/acquire.d.ts +13 -1
  76. package/build/component/driver/m365/acquire.d.ts.map +1 -1
  77. package/build/component/driver/m365/acquire.js +16 -8
  78. package/build/component/driver/m365/acquire.js.map +1 -1
  79. package/build/component/driver/oauth/update.d.ts +6 -0
  80. package/build/component/driver/oauth/update.d.ts.map +1 -1
  81. package/build/component/driver/oauth/update.js +8 -4
  82. package/build/component/driver/oauth/update.js.map +1 -1
  83. package/build/component/driver/script/scriptDriver.d.ts +6 -0
  84. package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
  85. package/build/component/driver/script/scriptDriver.js +9 -4
  86. package/build/component/driver/script/scriptDriver.js.map +1 -1
  87. package/build/component/driver/share/utils.d.ts.map +1 -1
  88. package/build/component/driver/share/utils.js +9 -7
  89. package/build/component/driver/share/utils.js.map +1 -1
  90. package/build/component/driver/teamsApp/createAppPackage.d.ts +8 -0
  91. package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
  92. package/build/component/driver/teamsApp/createAppPackage.js +101 -7
  93. package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
  94. package/build/component/driver/teamsApp/interfaces/ValidationResult.d.ts +6 -0
  95. package/build/component/driver/teamsApp/interfaces/ValidationResult.d.ts.map +1 -1
  96. package/build/component/driver/teamsApp/publishAppPackage.d.ts +4 -0
  97. package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
  98. package/build/component/driver/teamsApp/publishAppPackage.js +8 -5
  99. package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
  100. package/build/component/driver/teamsApp/syncManifest.d.ts +16 -3
  101. package/build/component/driver/teamsApp/syncManifest.d.ts.map +1 -1
  102. package/build/component/driver/teamsApp/syncManifest.js +28 -18
  103. package/build/component/driver/teamsApp/syncManifest.js.map +1 -1
  104. package/build/component/driver/teamsApp/teamsappMgr.d.ts +4 -0
  105. package/build/component/driver/teamsApp/teamsappMgr.d.ts.map +1 -1
  106. package/build/component/driver/teamsApp/teamsappMgr.js +6 -3
  107. package/build/component/driver/teamsApp/teamsappMgr.js.map +1 -1
  108. package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts +2 -0
  109. package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts.map +1 -1
  110. package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js +113 -1
  111. package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js.map +1 -1
  112. package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +4 -0
  113. package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
  114. package/build/component/driver/teamsApp/utils/ManifestUtils.js +5 -2
  115. package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
  116. package/build/component/driver/teamsApp/utils/McpCertVerification.d.ts +4 -0
  117. package/build/component/driver/teamsApp/utils/McpCertVerification.d.ts.map +1 -1
  118. package/build/component/driver/teamsApp/utils/McpCertVerification.js +12 -5
  119. package/build/component/driver/teamsApp/utils/McpCertVerification.js.map +1 -1
  120. package/build/component/driver/teamsApp/utils/telemetry.d.ts +1 -0
  121. package/build/component/driver/teamsApp/utils/telemetry.d.ts.map +1 -1
  122. package/build/component/driver/teamsApp/utils/telemetry.js +1 -0
  123. package/build/component/driver/teamsApp/utils/telemetry.js.map +1 -1
  124. package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
  125. package/build/component/driver/teamsApp/validate.js +11 -1
  126. package/build/component/driver/teamsApp/validate.js.map +1 -1
  127. package/build/component/driver/teamsApp/validateTestCases.d.ts +12 -0
  128. package/build/component/driver/teamsApp/validateTestCases.d.ts.map +1 -1
  129. package/build/component/driver/teamsApp/validateTestCases.js +17 -8
  130. package/build/component/driver/teamsApp/validateTestCases.js.map +1 -1
  131. package/build/component/driver/typeSpec/compile.d.ts +9 -0
  132. package/build/component/driver/typeSpec/compile.d.ts.map +1 -1
  133. package/build/component/driver/typeSpec/compile.js +16 -10
  134. package/build/component/driver/typeSpec/compile.js.map +1 -1
  135. package/build/component/generator/declarativeAgent/generator.d.ts +8 -0
  136. package/build/component/generator/declarativeAgent/generator.d.ts.map +1 -1
  137. package/build/component/generator/declarativeAgent/generator.js +15 -8
  138. package/build/component/generator/declarativeAgent/generator.js.map +1 -1
  139. package/build/component/generator/declarativeAgent/helper.d.ts +14 -0
  140. package/build/component/generator/declarativeAgent/helper.d.ts.map +1 -1
  141. package/build/component/generator/declarativeAgent/helper.js +32 -20
  142. package/build/component/generator/declarativeAgent/helper.js.map +1 -1
  143. package/build/component/generator/defaultGenerator.d.ts.map +1 -1
  144. package/build/component/generator/defaultGenerator.js +14 -1
  145. package/build/component/generator/defaultGenerator.js.map +1 -1
  146. package/build/component/generator/error.d.ts +3 -0
  147. package/build/component/generator/error.d.ts.map +1 -1
  148. package/build/component/generator/error.js +7 -1
  149. package/build/component/generator/error.js.map +1 -1
  150. package/build/component/generator/generatorAction.d.ts +9 -0
  151. package/build/component/generator/generatorAction.d.ts.map +1 -1
  152. package/build/component/generator/generatorAction.js +16 -8
  153. package/build/component/generator/generatorAction.js.map +1 -1
  154. package/build/component/generator/officeAddin/generator.d.ts +4 -0
  155. package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
  156. package/build/component/generator/officeAddin/generator.js +6 -3
  157. package/build/component/generator/officeAddin/generator.js.map +1 -1
  158. package/build/component/generator/officeAddin/helperMethods.d.ts +4 -0
  159. package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
  160. package/build/component/generator/officeAddin/helperMethods.js +6 -3
  161. package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
  162. package/build/component/generator/openApiSpec/customEngineAgentGenerator.d.ts +9 -0
  163. package/build/component/generator/openApiSpec/customEngineAgentGenerator.d.ts.map +1 -1
  164. package/build/component/generator/openApiSpec/customEngineAgentGenerator.js +11 -5
  165. package/build/component/generator/openApiSpec/customEngineAgentGenerator.js.map +1 -1
  166. package/build/component/generator/openPlugin/authorParser.d.ts +8 -0
  167. package/build/component/generator/openPlugin/authorParser.d.ts.map +1 -0
  168. package/build/component/generator/openPlugin/authorParser.js +49 -0
  169. package/build/component/generator/openPlugin/authorParser.js.map +1 -0
  170. package/build/component/generator/openPlugin/deterministicId.d.ts +6 -0
  171. package/build/component/generator/openPlugin/deterministicId.d.ts.map +1 -0
  172. package/build/component/generator/openPlugin/deterministicId.js +31 -0
  173. package/build/component/generator/openPlugin/deterministicId.js.map +1 -0
  174. package/build/component/generator/openPlugin/exporter.d.ts +18 -0
  175. package/build/component/generator/openPlugin/exporter.d.ts.map +1 -0
  176. package/build/component/generator/openPlugin/exporter.js +233 -0
  177. package/build/component/generator/openPlugin/exporter.js.map +1 -0
  178. package/build/component/generator/openPlugin/iconStrategy.d.ts +8 -0
  179. package/build/component/generator/openPlugin/iconStrategy.d.ts.map +1 -0
  180. package/build/component/generator/openPlugin/iconStrategy.js +62 -0
  181. package/build/component/generator/openPlugin/iconStrategy.js.map +1 -0
  182. package/build/component/generator/openPlugin/importer.d.ts +25 -0
  183. package/build/component/generator/openPlugin/importer.d.ts.map +1 -0
  184. package/build/component/generator/openPlugin/importer.js +140 -0
  185. package/build/component/generator/openPlugin/importer.js.map +1 -0
  186. package/build/component/generator/openPlugin/mapper.d.ts +6 -0
  187. package/build/component/generator/openPlugin/mapper.d.ts.map +1 -0
  188. package/build/component/generator/openPlugin/mapper.js +141 -0
  189. package/build/component/generator/openPlugin/mapper.js.map +1 -0
  190. package/build/component/generator/openPlugin/parser.d.ts +3 -0
  191. package/build/component/generator/openPlugin/parser.d.ts.map +1 -0
  192. package/build/component/generator/openPlugin/parser.js +153 -0
  193. package/build/component/generator/openPlugin/parser.js.map +1 -0
  194. package/build/component/generator/openPlugin/placeholderPng.d.ts +6 -0
  195. package/build/component/generator/openPlugin/placeholderPng.d.ts.map +1 -0
  196. package/build/component/generator/openPlugin/placeholderPng.js +71 -0
  197. package/build/component/generator/openPlugin/placeholderPng.js.map +1 -0
  198. package/build/component/generator/openPlugin/textUtils.d.ts +12 -0
  199. package/build/component/generator/openPlugin/textUtils.d.ts.map +1 -0
  200. package/build/component/generator/openPlugin/textUtils.js +43 -0
  201. package/build/component/generator/openPlugin/textUtils.js.map +1 -0
  202. package/build/component/generator/openPlugin/types.d.ts +128 -0
  203. package/build/component/generator/openPlugin/types.d.ts.map +1 -0
  204. package/build/component/generator/openPlugin/types.js.map +1 -0
  205. package/build/component/generator/spfx/utils/constants.d.ts +1 -1
  206. package/build/component/generator/spfx/utils/constants.js +1 -1
  207. package/build/component/generator/templateHelper.d.ts +15 -0
  208. package/build/component/generator/templateHelper.d.ts.map +1 -1
  209. package/build/component/generator/templateHelper.js +28 -0
  210. package/build/component/generator/templateHelper.js.map +1 -1
  211. package/build/component/generator/templates/metadata/index.d.ts.map +1 -1
  212. package/build/component/generator/templates/metadata/index.js +12 -5
  213. package/build/component/generator/templates/metadata/index.js.map +1 -1
  214. package/build/component/generator/templates/templateNames.d.ts +3 -1
  215. package/build/component/generator/templates/templateNames.d.ts.map +1 -1
  216. package/build/component/generator/templates/templateNames.js +3 -0
  217. package/build/component/generator/templates/templateNames.js.map +1 -1
  218. package/build/component/generator/utils.js +8 -8
  219. package/build/component/generator/utils.js.map +1 -1
  220. package/build/component/generator/v4MetadataSource.d.ts +23 -0
  221. package/build/component/generator/v4MetadataSource.d.ts.map +1 -0
  222. package/build/component/generator/v4MetadataSource.js +42 -0
  223. package/build/component/generator/v4MetadataSource.js.map +1 -0
  224. package/build/component/generator/v4TemplateBridge.d.ts +40 -0
  225. package/build/component/generator/v4TemplateBridge.d.ts.map +1 -0
  226. package/build/component/generator/v4TemplateBridge.js +125 -0
  227. package/build/component/generator/v4TemplateBridge.js.map +1 -0
  228. package/build/component/local/localCertificateManager.d.ts +17 -1
  229. package/build/component/local/localCertificateManager.d.ts.map +1 -1
  230. package/build/component/local/localCertificateManager.js +48 -31
  231. package/build/component/local/localCertificateManager.js.map +1 -1
  232. package/build/component/m365/packageService.d.ts +5 -0
  233. package/build/component/m365/packageService.d.ts.map +1 -1
  234. package/build/component/m365/packageService.js +32 -12
  235. package/build/component/m365/packageService.js.map +1 -1
  236. package/build/component/middleware/envMW.d.ts.map +1 -1
  237. package/build/component/middleware/envMW.js +5 -0
  238. package/build/component/middleware/envMW.js.map +1 -1
  239. package/build/component/utils/ResourceGroupHelper.d.ts +4 -0
  240. package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
  241. package/build/component/utils/ResourceGroupHelper.js +7 -4
  242. package/build/component/utils/ResourceGroupHelper.js.map +1 -1
  243. package/build/component/utils/charsetUtils.js +3 -3
  244. package/build/component/utils/charsetUtils.js.map +1 -1
  245. package/build/component/utils/fileOperation.d.ts +10 -0
  246. package/build/component/utils/fileOperation.d.ts.map +1 -1
  247. package/build/component/utils/fileOperation.js +27 -17
  248. package/build/component/utils/fileOperation.js.map +1 -1
  249. package/build/component/utils/metadataGraphPermssion.d.ts +4 -0
  250. package/build/component/utils/metadataGraphPermssion.d.ts.map +1 -1
  251. package/build/component/utils/metadataGraphPermssion.js +7 -4
  252. package/build/component/utils/metadataGraphPermssion.js.map +1 -1
  253. package/build/component/utils/odrProvider.d.ts +6 -0
  254. package/build/component/utils/odrProvider.d.ts.map +1 -1
  255. package/build/component/utils/odrProvider.js +9 -4
  256. package/build/component/utils/odrProvider.js.map +1 -1
  257. package/build/core/FxCore.d.ts +46 -4
  258. package/build/core/FxCore.d.ts.map +1 -1
  259. package/build/core/FxCore.declarativeAgent.d.ts +9 -0
  260. package/build/core/FxCore.declarativeAgent.d.ts.map +1 -1
  261. package/build/core/FxCore.declarativeAgent.js +13 -6
  262. package/build/core/FxCore.declarativeAgent.js.map +1 -1
  263. package/build/core/FxCore.js +443 -140
  264. package/build/core/FxCore.js.map +1 -1
  265. package/build/core/FxCore.openPlugin.d.ts +29 -0
  266. package/build/core/FxCore.openPlugin.d.ts.map +1 -0
  267. package/build/core/FxCore.openPlugin.js +135 -0
  268. package/build/core/FxCore.openPlugin.js.map +1 -0
  269. package/build/core/collaborator.d.ts +4 -0
  270. package/build/core/collaborator.d.ts.map +1 -1
  271. package/build/core/collaborator.js +6 -3
  272. package/build/core/collaborator.js.map +1 -1
  273. package/build/core/middleware/concurrentLocker.d.ts +9 -0
  274. package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
  275. package/build/core/middleware/concurrentLocker.js +14 -11
  276. package/build/core/middleware/concurrentLocker.js.map +1 -1
  277. package/build/core/middleware/errorHandler.d.ts.map +1 -1
  278. package/build/core/middleware/errorHandler.js +9 -0
  279. package/build/core/middleware/errorHandler.js.map +1 -1
  280. package/build/core/middleware/fileLocker.d.ts +6 -0
  281. package/build/core/middleware/fileLocker.d.ts.map +1 -1
  282. package/build/core/middleware/fileLocker.js +11 -6
  283. package/build/core/middleware/fileLocker.js.map +1 -1
  284. package/build/core/middleware/utils/v3MigrationUtils.d.ts +1 -34
  285. package/build/core/middleware/utils/v3MigrationUtils.d.ts.map +1 -1
  286. package/build/core/middleware/utils/v3MigrationUtils.js +6 -245
  287. package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
  288. package/build/error/teamsApp.d.ts +3 -0
  289. package/build/error/teamsApp.d.ts.map +1 -1
  290. package/build/error/teamsApp.js +15 -1
  291. package/build/error/teamsApp.js.map +1 -1
  292. package/build/question/create.d.ts +8 -1
  293. package/build/question/create.d.ts.map +1 -1
  294. package/build/question/create.js +24 -15
  295. package/build/question/create.js.map +1 -1
  296. package/build/question/index.d.ts +1 -0
  297. package/build/question/index.d.ts.map +1 -1
  298. package/build/question/index.js +3 -0
  299. package/build/question/index.js.map +1 -1
  300. package/build/question/inputs/AddSkillInputs.d.ts +10 -0
  301. package/build/question/inputs/AddSkillInputs.d.ts.map +1 -0
  302. package/build/question/inputs/AddSkillInputs.js +5 -0
  303. package/build/question/inputs/AddSkillInputs.js.map +1 -0
  304. package/build/question/inputs/ExportOpenPluginInputs.d.ts +10 -0
  305. package/build/question/inputs/ExportOpenPluginInputs.d.ts.map +1 -0
  306. package/build/question/inputs/ExportOpenPluginInputs.js +5 -0
  307. package/build/question/inputs/ExportOpenPluginInputs.js.map +1 -0
  308. package/build/question/inputs/ImportOpenPluginInputs.d.ts +28 -0
  309. package/build/question/inputs/ImportOpenPluginInputs.d.ts.map +1 -0
  310. package/build/question/inputs/ImportOpenPluginInputs.js +5 -0
  311. package/build/question/inputs/ImportOpenPluginInputs.js.map +1 -0
  312. package/build/question/inputs/index.d.ts +3 -0
  313. package/build/question/inputs/index.d.ts.map +1 -1
  314. package/build/question/inputs/index.js +3 -0
  315. package/build/question/inputs/index.js.map +1 -1
  316. package/build/question/options/AddSkillOptions.d.ts +4 -0
  317. package/build/question/options/AddSkillOptions.d.ts.map +1 -0
  318. package/build/question/options/AddSkillOptions.js +47 -0
  319. package/build/question/options/AddSkillOptions.js.map +1 -0
  320. package/build/question/options/ExportOpenPluginOptions.d.ts +4 -0
  321. package/build/question/options/ExportOpenPluginOptions.d.ts.map +1 -0
  322. package/build/question/options/ExportOpenPluginOptions.js +29 -0
  323. package/build/question/options/ExportOpenPluginOptions.js.map +1 -0
  324. package/build/question/options/ImportOpenPluginOptions.d.ts +4 -0
  325. package/build/question/options/ImportOpenPluginOptions.d.ts.map +1 -0
  326. package/build/question/options/ImportOpenPluginOptions.js +54 -0
  327. package/build/question/options/ImportOpenPluginOptions.js.map +1 -0
  328. package/build/question/options/index.d.ts +3 -0
  329. package/build/question/options/index.d.ts.map +1 -1
  330. package/build/question/options/index.js +3 -0
  331. package/build/question/options/index.js.map +1 -1
  332. package/build/question/other.d.ts +1 -0
  333. package/build/question/other.d.ts.map +1 -1
  334. package/build/question/other.js +118 -0
  335. package/build/question/other.js.map +1 -1
  336. package/build/question/questionNames.d.ts +7 -1
  337. package/build/question/questionNames.d.ts.map +1 -1
  338. package/build/question/questionNames.js +6 -0
  339. package/build/question/questionNames.js.map +1 -1
  340. package/build/question/scaffold/vsc/CapabilityOptions.d.ts +1 -0
  341. package/build/question/scaffold/vsc/CapabilityOptions.d.ts.map +1 -1
  342. package/build/question/scaffold/vsc/CapabilityOptions.js +11 -0
  343. package/build/question/scaffold/vsc/CapabilityOptions.js.map +1 -1
  344. package/build/question/scaffold/vsc/rootNode.js +6 -4
  345. package/build/question/scaffold/vsc/rootNode.js.map +1 -1
  346. package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts +8 -0
  347. package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts.map +1 -1
  348. package/build/question/scaffold/vsc/teamsProjectTypeNode.js +17 -11
  349. package/build/question/scaffold/vsc/teamsProjectTypeNode.js.map +1 -1
  350. package/build/question/share.d.ts +7 -0
  351. package/build/question/share.d.ts.map +1 -1
  352. package/build/question/share.js +7 -3
  353. package/build/question/share.js.map +1 -1
  354. package/build/v4/distribution/bundledFloor.d.ts +12 -0
  355. package/build/v4/distribution/bundledFloor.d.ts.map +1 -0
  356. package/build/v4/distribution/bundledFloor.js +80 -0
  357. package/build/v4/distribution/bundledFloor.js.map +1 -0
  358. package/build/v4/distribution/templateConfig.d.ts +53 -0
  359. package/build/v4/distribution/templateConfig.d.ts.map +1 -0
  360. package/build/v4/distribution/templateConfig.js +43 -0
  361. package/build/v4/distribution/templateConfig.js.map +1 -0
  362. package/build/v4/distribution/templatePackage.d.ts +29 -0
  363. package/build/v4/distribution/templatePackage.d.ts.map +1 -0
  364. package/build/v4/distribution/templatePackage.js +82 -0
  365. package/build/v4/distribution/templatePackage.js.map +1 -0
  366. package/build/v4/distribution/templateSource.d.ts +67 -0
  367. package/build/v4/distribution/templateSource.d.ts.map +1 -0
  368. package/build/v4/distribution/templateSource.js +220 -0
  369. package/build/v4/distribution/templateSource.js.map +1 -0
  370. package/build/v4/distribution/templateSourcePort.d.ts +50 -0
  371. package/build/v4/distribution/templateSourcePort.d.ts.map +1 -0
  372. package/build/v4/distribution/templateSourcePort.js +207 -0
  373. package/build/v4/distribution/templateSourcePort.js.map +1 -0
  374. package/build/v4/index.d.ts +13 -0
  375. package/build/v4/index.d.ts.map +1 -0
  376. package/build/v4/index.js +18 -0
  377. package/build/v4/index.js.map +1 -0
  378. package/package.json +17 -78
  379. package/resource/package.nls.cs.json +42 -15
  380. package/resource/package.nls.de.json +43 -16
  381. package/resource/package.nls.es.json +42 -15
  382. package/resource/package.nls.fr.json +42 -15
  383. package/resource/package.nls.it.json +43 -16
  384. package/resource/package.nls.ja.json +42 -15
  385. package/resource/package.nls.json +33 -13
  386. package/resource/package.nls.ko.json +42 -15
  387. package/resource/package.nls.pl.json +43 -16
  388. package/resource/package.nls.pt-BR.json +42 -15
  389. package/resource/package.nls.ru.json +43 -16
  390. package/resource/package.nls.tr.json +44 -17
  391. package/resource/package.nls.zh-Hans.json +42 -15
  392. package/resource/package.nls.zh-Hant.json +54 -27
  393. package/resource/templates/package.nls.cs.json +2 -0
  394. package/resource/templates/package.nls.de.json +2 -0
  395. package/resource/templates/package.nls.es.json +2 -0
  396. package/resource/templates/package.nls.fr.json +2 -0
  397. package/resource/templates/package.nls.it.json +2 -0
  398. package/resource/templates/package.nls.ja.json +2 -0
  399. package/resource/templates/package.nls.json +2 -0
  400. package/resource/templates/package.nls.ko.json +2 -0
  401. package/resource/templates/package.nls.pl.json +2 -0
  402. package/resource/templates/package.nls.pt-BR.json +2 -0
  403. package/resource/templates/package.nls.ru.json +2 -0
  404. package/resource/templates/package.nls.tr.json +2 -0
  405. package/resource/templates/package.nls.zh-Hans.json +2 -0
  406. package/resource/templates/package.nls.zh-Hant.json +2 -0
  407. package/templates/fallback/common.zip +0 -0
  408. package/templates/fallback/csharp.zip +0 -0
  409. package/templates/fallback/js.zip +0 -0
  410. package/templates/fallback/python.zip +0 -0
  411. package/templates/fallback/ts.zip +0 -0
  412. package/templates/metadata/allTemplates.json +8 -0
  413. package/templates/metadata.zip +0 -0
  414. package/templates/ui/tdpNode.json +7 -0
  415. package/templates/ui/wizardNode.json +7 -0
  416. package/templates/v4/floor.json +3 -0
  417. package/templates/v4/templates.zip +0 -0
  418. package/build/core/middleware/projectMigratorV3.d.ts +0 -39
  419. package/build/core/middleware/projectMigratorV3.d.ts.map +0 -1
  420. package/build/core/middleware/projectMigratorV3.js +0 -694
  421. package/build/core/middleware/projectMigratorV3.js.map +0 -1
  422. package/build/core/middleware/projectVersionChecker.d.ts +0 -3
  423. package/build/core/middleware/projectVersionChecker.d.ts.map +0 -1
  424. package/build/core/middleware/projectVersionChecker.js +0 -60
  425. package/build/core/middleware/projectVersionChecker.js.map +0 -1
  426. package/build/core/middleware/types.d.ts +0 -9
  427. package/build/core/middleware/types.d.ts.map +0 -1
  428. package/build/core/middleware/types.js.map +0 -1
  429. package/build/core/middleware/utils/MigrationUtils.d.ts +0 -13
  430. package/build/core/middleware/utils/MigrationUtils.d.ts.map +0 -1
  431. package/build/core/middleware/utils/MigrationUtils.js +0 -212
  432. package/build/core/middleware/utils/MigrationUtils.js.map +0 -1
  433. package/build/core/middleware/utils/appYmlGenerator.d.ts +0 -34
  434. package/build/core/middleware/utils/appYmlGenerator.d.ts.map +0 -1
  435. package/build/core/middleware/utils/appYmlGenerator.js +0 -158
  436. package/build/core/middleware/utils/appYmlGenerator.js.map +0 -1
  437. package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts +0 -65
  438. package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts.map +0 -1
  439. package/build/core/middleware/utils/debug/appLocalYmlGenerator.js +0 -61
  440. package/build/core/middleware/utils/debug/appLocalYmlGenerator.js.map +0 -1
  441. package/build/core/middleware/utils/debug/constants.d.ts +0 -20
  442. package/build/core/middleware/utils/debug/constants.d.ts.map +0 -1
  443. package/build/core/middleware/utils/debug/constants.js +0 -28
  444. package/build/core/middleware/utils/debug/constants.js.map +0 -1
  445. package/build/core/middleware/utils/debug/debugMigrationContext.d.ts +0 -14
  446. package/build/core/middleware/utils/debug/debugMigrationContext.d.ts.map +0 -1
  447. package/build/core/middleware/utils/debug/debugMigrationContext.js +0 -23
  448. package/build/core/middleware/utils/debug/debugMigrationContext.js.map +0 -1
  449. package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts +0 -37
  450. package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts.map +0 -1
  451. package/build/core/middleware/utils/debug/debugV3MigrationUtils.js +0 -291
  452. package/build/core/middleware/utils/debug/debugV3MigrationUtils.js.map +0 -1
  453. package/build/core/middleware/utils/debug/taskMigrator.d.ts +0 -22
  454. package/build/core/middleware/utils/debug/taskMigrator.d.ts.map +0 -1
  455. package/build/core/middleware/utils/debug/taskMigrator.js +0 -935
  456. package/build/core/middleware/utils/debug/taskMigrator.js.map +0 -1
  457. package/build/core/middleware/utils/migrationContext.d.ts +0 -32
  458. package/build/core/middleware/utils/migrationContext.d.ts.map +0 -1
  459. package/build/core/middleware/utils/migrationContext.js +0 -104
  460. package/build/core/middleware/utils/migrationContext.js.map +0 -1
  461. /package/build/{core/middleware → component/generator/openPlugin}/types.js +0 -0
@@ -1,4 +1,7 @@
1
1
  import { AxiosInstance, AxiosResponse } from "axios";
2
+ import { sendTelemetryErrorEvent, sendTelemetryEvent } from "../common/telemetry";
3
+ import { AADApplication } from "../component/driver/aad/interface/AADApplication";
4
+ import { SignInAudience } from "../component/driver/aad/interface/signInAudience";
2
5
  import { ApiSecretRegistration, ApiSecretRegistrationUpdate } from "../component/driver/teamsApp/interfaces/ApiSecretRegistration";
3
6
  import { AsyncAppValidationDetailsResponse } from "../component/driver/teamsApp/interfaces/AsyncAppValidationDetailsResponse";
4
7
  import { AsyncAppValidationResponse } from "../component/driver/teamsApp/interfaces/AsyncAppValidationResponse";
@@ -10,8 +13,6 @@ import { IValidationResult } from "../component/driver/teamsApp/interfaces/appde
10
13
  import { AppDefinition } from "../component/driver/teamsApp/interfaces/appdefinitions/appDefinition";
11
14
  import { AppUser } from "../component/driver/teamsApp/interfaces/appdefinitions/appUser";
12
15
  import { IBotRegistration } from "../component/resource/botService/appStudio/interfaces/IBotRegistration";
13
- import { SignInAudience } from "../component/driver/aad/interface/signInAudience";
14
- import { AADApplication } from "../component/driver/aad/interface/AADApplication";
15
16
  export declare class TeamsDevPortalClient {
16
17
  regionEndpoint?: string;
17
18
  setRegionEndpoint(regionEndpoint: string): void;
@@ -123,5 +124,9 @@ export declare class TeamsDevPortalClient {
123
124
  wrapResponse(e?: Error, response?: AxiosResponse<any, any>): any;
124
125
  wrapException(e: any, apiName: string, name?: string, potentialReason?: string, disPlayMessage?: string, isUserError?: boolean, helpLink?: string): Error;
125
126
  }
127
+ export declare const teamsDevPortalClientDeps: {
128
+ sendTelemetryEvent: typeof sendTelemetryEvent;
129
+ sendTelemetryErrorEvent: typeof sendTelemetryErrorEvent;
130
+ };
126
131
  export declare const teamsDevPortalClient: TeamsDevPortalClient;
127
132
  //# sourceMappingURL=teamsDevPortalClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"teamsDevPortalClient.d.ts","sourceRoot":"","sources":["../../src/client/teamsDevPortalClient.ts"],"names":[],"mappings":"AAKA,OAAc,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAmB5D,OAAO,EACL,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,iCAAiC,EAAE,MAAM,2EAA2E,CAAC;AAC9H,OAAO,EAAE,0BAA0B,EAAE,MAAM,oEAAoE,CAAC;AAChH,OAAO,EAAE,iCAAiC,EAAE,MAAM,2EAA2E,CAAC;AAC9H,OAAO,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAA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E,MAAM,EACf,IAAI,SAA4D,EAChE,eAAe,SAA8D,EAC7E,cAAc,CAAC,EAAE,MAAM,EACvB,WAAW,UAAQ,EACnB,QAAQ,CAAC,EAAE,MAAM,GAChB,KAAK;CAgCT;AAED,eAAO,MAAM,wBAAwB;;;CAGpC,CAAC;AAEF,eAAO,MAAM,oBAAoB,sBAA6B,CAAC"}
@@ -2,7 +2,7 @@
2
2
  // Copyright (c) Microsoft Corporation.
3
3
  // Licensed under the MIT license.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.teamsDevPortalClient = exports.TeamsDevPortalClient = void 0;
5
+ exports.teamsDevPortalClient = exports.teamsDevPortalClientDeps = exports.TeamsDevPortalClient = void 0;
6
6
  const tslib_1 = require("tslib");
7
7
  const hooks_1 = require("@feathersjs/hooks");
8
8
  const teamsfx_api_1 = require("@microsoft/teamsfx-api");
@@ -14,19 +14,19 @@ const retryHandler_1 = require("../common/retryHandler");
14
14
  const telemetry_1 = require("../common/telemetry");
15
15
  const wrappedAxiosClient_1 = require("../common/wrappedAxiosClient");
16
16
  const commonConstant_1 = require("../component/constant/commonConstant");
17
- const constants_2 = require("../component/driver/teamsApp/constants");
17
+ const signInAudienceNotAllowedError_1 = require("../component/driver/aad/error/signInAudienceNotAllowedError");
18
+ const signInAudience_1 = require("../component/driver/aad/interface/signInAudience");
19
+ const constants_2 = require("../component/driver/aad/utility/constants");
20
+ const constants_3 = require("../component/driver/teamsApp/constants");
18
21
  const errors_1 = require("../component/driver/teamsApp/errors");
19
22
  const ManifestUtils_1 = require("../component/driver/teamsApp/utils/ManifestUtils");
20
23
  const IBotRegistration_1 = require("../component/resource/botService/appStudio/interfaces/IBotRegistration");
21
24
  const common_1 = require("../component/resource/botService/common");
22
- const constants_3 = require("../component/resource/botService/constants");
25
+ const constants_4 = require("../component/resource/botService/constants");
23
26
  const errors_2 = require("../component/resource/botService/errors");
24
27
  const messages_1 = require("../component/resource/botService/messages");
25
28
  const strings_1 = require("../component/resource/botService/strings");
26
29
  const teamsApp_1 = require("../error/teamsApp");
27
- const signInAudience_1 = require("../component/driver/aad/interface/signInAudience");
28
- const constants_4 = require("../component/driver/aad/utility/constants");
29
- const signInAudienceNotAllowedError_1 = require("../component/driver/aad/error/signInAudienceNotAllowedError");
30
30
  class TeamsDevPortalClient {
31
31
  regionEndpoint;
32
32
  setRegionEndpoint(regionEndpoint) {
@@ -84,18 +84,18 @@ class TeamsDevPortalClient {
84
84
  return app;
85
85
  }
86
86
  else {
87
- throw this.wrapException(new Error("cannot create teams app"), constants_2.APP_STUDIO_API_NAMES.CREATE_APP);
87
+ throw this.wrapException(new Error("cannot create teams app"), constants_3.APP_STUDIO_API_NAMES.CREATE_APP);
88
88
  }
89
89
  }
90
90
  catch (e) {
91
91
  if (e.response?.status === 409) {
92
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.CREATE_APP, errors_1.AppStudioError.TeamsAppCreateConflictError.name, errors_1.AppStudioError.TeamsAppCreateConflictError.message()[0], errors_1.AppStudioError.TeamsAppCreateConflictError.message()[1], true, constants_1.HelpLinks.SwitchTenant);
92
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_APP, errors_1.AppStudioError.TeamsAppCreateConflictError.name, errors_1.AppStudioError.TeamsAppCreateConflictError.message()[0], errors_1.AppStudioError.TeamsAppCreateConflictError.message()[1], true, constants_1.HelpLinks.SwitchTenant);
93
93
  }
94
94
  // Corner case: The provided app ID conflict with an existing published app
95
95
  // See Developer Portal PR: 507264
96
96
  if (e.response?.status == 422 &&
97
97
  e.response?.data.includes("App already exists and published")) {
98
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.CREATE_APP, errors_1.AppStudioError.TeamsAppCreateConflictWithPublishedAppError.name, errors_1.AppStudioError.TeamsAppCreateConflictWithPublishedAppError.message()[0], errors_1.AppStudioError.TeamsAppCreateConflictWithPublishedAppError.message()[1], true);
98
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_APP, errors_1.AppStudioError.TeamsAppCreateConflictWithPublishedAppError.name, errors_1.AppStudioError.TeamsAppCreateConflictWithPublishedAppError.message()[0], errors_1.AppStudioError.TeamsAppCreateConflictWithPublishedAppError.message()[1], true);
99
99
  }
100
100
  // Corner case: App Id must be a GUID
101
101
  if (e.response?.status === commonConstant_1.HttpStatusCode.BAD_REQUEST &&
@@ -106,10 +106,10 @@ class TeamsDevPortalClient {
106
106
  }
107
107
  else {
108
108
  const teamsAppId = manifest.value.id;
109
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.CREATE_APP, errors_1.AppStudioError.InvalidTeamsAppIdError.name, errors_1.AppStudioError.InvalidTeamsAppIdError.message(teamsAppId)[0], errors_1.AppStudioError.InvalidTeamsAppIdError.message(teamsAppId)[1], true);
109
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_APP, errors_1.AppStudioError.InvalidTeamsAppIdError.name, errors_1.AppStudioError.InvalidTeamsAppIdError.message(teamsAppId)[0], errors_1.AppStudioError.InvalidTeamsAppIdError.message(teamsAppId)[1], true);
110
110
  }
111
111
  }
112
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.CREATE_APP);
112
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_APP);
113
113
  }
114
114
  }
115
115
  async listApps(token) {
@@ -129,9 +129,9 @@ class TeamsDevPortalClient {
129
129
  }
130
130
  }
131
131
  catch (e) {
132
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.LIST_APPS);
132
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.LIST_APPS);
133
133
  }
134
- throw this.wrapException(new Error("cannot get the app definitions"), constants_2.APP_STUDIO_API_NAMES.LIST_APPS);
134
+ throw this.wrapException(new Error("cannot get the app definitions"), constants_3.APP_STUDIO_API_NAMES.LIST_APPS);
135
135
  }
136
136
  async deleteApp(appStudioToken, teamsAppId) {
137
137
  if (!this.regionEndpoint)
@@ -152,9 +152,9 @@ class TeamsDevPortalClient {
152
152
  }
153
153
  }
154
154
  catch (e) {
155
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.DELETE_APP);
155
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.DELETE_APP);
156
156
  }
157
- throw this.wrapException(new Error("cannot delete the app: " + teamsAppId), constants_2.APP_STUDIO_API_NAMES.DELETE_APP);
157
+ throw this.wrapException(new Error("cannot delete the app: " + teamsAppId), constants_3.APP_STUDIO_API_NAMES.DELETE_APP);
158
158
  }
159
159
  async getApp(token, teamsAppId) {
160
160
  let requester;
@@ -173,9 +173,9 @@ class TeamsDevPortalClient {
173
173
  }
174
174
  }
175
175
  catch (e) {
176
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.GET_APP);
176
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP);
177
177
  }
178
- throw this.wrapException(new Error(`cannot get the app definition with app ID ${teamsAppId}`), constants_2.APP_STUDIO_API_NAMES.GET_APP);
178
+ throw this.wrapException(new Error(`cannot get the app definition with app ID ${teamsAppId}`), constants_3.APP_STUDIO_API_NAMES.GET_APP);
179
179
  }
180
180
  async getBotId(token, teamsAppId) {
181
181
  const app = await this.getApp(token, teamsAppId);
@@ -195,11 +195,11 @@ class TeamsDevPortalClient {
195
195
  return response.data;
196
196
  }
197
197
  else {
198
- throw this.wrapException(new Error((0, localizeUtils_1.getLocalizedString)("plugins.appstudio.emptyAppPackage", teamsAppId)), constants_2.APP_STUDIO_API_NAMES.GET_APP_PACKAGE);
198
+ throw this.wrapException(new Error((0, localizeUtils_1.getLocalizedString)("plugins.appstudio.emptyAppPackage", teamsAppId)), constants_3.APP_STUDIO_API_NAMES.GET_APP_PACKAGE);
199
199
  }
200
200
  }
201
201
  catch (e) {
202
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.GET_APP_PACKAGE);
202
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP_PACKAGE);
203
203
  }
204
204
  }
205
205
  /**
@@ -253,21 +253,21 @@ class TeamsDevPortalClient {
253
253
  }
254
254
  catch (e) {
255
255
  if (e instanceof teamsApp_1.DeveloperPortalAPIFailedSystemError) {
256
- throw this.wrapException(this.wrapResponse(undefined, response), constants_2.APP_STUDIO_API_NAMES.PUBLISH_APP, errors_1.AppStudioError.TeamsAppPublishConflictError.name, errors_1.AppStudioError.TeamsAppPublishConflictError.message(teamsAppId)[0], errors_1.AppStudioError.TeamsAppPublishConflictError.message(teamsAppId)[1]);
256
+ throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.PUBLISH_APP, errors_1.AppStudioError.TeamsAppPublishConflictError.name, errors_1.AppStudioError.TeamsAppPublishConflictError.message(teamsAppId)[0], errors_1.AppStudioError.TeamsAppPublishConflictError.message(teamsAppId)[1]);
257
257
  }
258
258
  else {
259
259
  throw e;
260
260
  }
261
261
  }
262
262
  }
263
- throw this.wrapException(this.wrapResponse(undefined, response), constants_2.APP_STUDIO_API_NAMES.PUBLISH_APP);
263
+ throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.PUBLISH_APP);
264
264
  }
265
265
  else {
266
266
  return response.data.id;
267
267
  }
268
268
  }
269
269
  else {
270
- throw this.wrapException(this.wrapResponse(new Error("empty response"), response), constants_2.APP_STUDIO_API_NAMES.PUBLISH_APP, errors_1.AppStudioError.TeamsAppPublishFailedError.name, errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, "POST /api/publishing")[0], errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, "POST /api/publishing")[1]);
270
+ throw this.wrapException(this.wrapResponse(new Error("empty response"), response), constants_3.APP_STUDIO_API_NAMES.PUBLISH_APP, errors_1.AppStudioError.TeamsAppPublishFailedError.name, errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, "POST /api/publishing")[0], errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, "POST /api/publishing")[1]);
271
271
  }
272
272
  }
273
273
  catch (e) {
@@ -275,7 +275,7 @@ class TeamsDevPortalClient {
275
275
  throw e;
276
276
  }
277
277
  else {
278
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.PUBLISH_APP);
278
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.PUBLISH_APP);
279
279
  }
280
280
  }
281
281
  }
@@ -299,19 +299,19 @@ class TeamsDevPortalClient {
299
299
  }));
300
300
  }
301
301
  else {
302
- throw this.wrapException(new Error("API failed"), constants_2.APP_STUDIO_API_NAMES.GET_PUBLISHED_APP, errors_1.AppStudioError.TeamsAppPublishFailedError.name, errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, `GET /api/publishing/${teamsAppId}`)[0], errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, `GET /api/publishing/${teamsAppId}`)[1]);
302
+ throw this.wrapException(new Error("API failed"), constants_3.APP_STUDIO_API_NAMES.GET_PUBLISHED_APP, errors_1.AppStudioError.TeamsAppPublishFailedError.name, errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, `GET /api/publishing/${teamsAppId}`)[0], errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, `GET /api/publishing/${teamsAppId}`)[1]);
303
303
  }
304
304
  const requestPath = `${response?.request?.method} ${response?.request?.path}`;
305
305
  if (response && response.data) {
306
306
  if (response.data.error || response.data.errorMessage) {
307
- throw this.wrapException(this.wrapResponse(undefined, response), constants_2.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP);
307
+ throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP);
308
308
  }
309
309
  else {
310
310
  return response.data.teamsAppId;
311
311
  }
312
312
  }
313
313
  else {
314
- throw this.wrapException(new Error("empty response"), constants_2.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP, errors_1.AppStudioError.TeamsAppPublishFailedError.name, errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, requestPath)[0], errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, requestPath)[1]);
314
+ throw this.wrapException(new Error("empty response"), constants_3.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP, errors_1.AppStudioError.TeamsAppPublishFailedError.name, errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, requestPath)[0], errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, requestPath)[1]);
315
315
  }
316
316
  }
317
317
  catch (error) {
@@ -319,7 +319,7 @@ class TeamsDevPortalClient {
319
319
  throw error;
320
320
  }
321
321
  else {
322
- throw this.wrapException(error, constants_2.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP);
322
+ throw this.wrapException(error, constants_3.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP);
323
323
  }
324
324
  }
325
325
  }
@@ -364,17 +364,17 @@ class TeamsDevPortalClient {
364
364
  userList = await this.getUserList(token, teamsAppId);
365
365
  }
366
366
  catch (error) {
367
- return constants_2.Constants.PERMISSIONS.noPermission;
367
+ return constants_3.Constants.PERMISSIONS.noPermission;
368
368
  }
369
369
  const findUser = userList?.find((user) => user.aadId === userObjectId);
370
370
  if (!findUser) {
371
- return constants_2.Constants.PERMISSIONS.noPermission;
371
+ return constants_3.Constants.PERMISSIONS.noPermission;
372
372
  }
373
373
  if (findUser.isAdministrator) {
374
- return constants_2.Constants.PERMISSIONS.admin;
374
+ return constants_3.Constants.PERMISSIONS.admin;
375
375
  }
376
376
  else {
377
- return constants_2.Constants.PERMISSIONS.operative;
377
+ return constants_3.Constants.PERMISSIONS.operative;
378
378
  }
379
379
  }
380
380
  async removePermission(token, teamsAppId, userToRemove) {
@@ -396,7 +396,7 @@ class TeamsDevPortalClient {
396
396
  }
397
397
  }
398
398
  catch (err) {
399
- throw this.wrapException(err, constants_2.APP_STUDIO_API_NAMES.UPDATE_OWNER);
399
+ throw this.wrapException(err, constants_3.APP_STUDIO_API_NAMES.UPDATE_OWNER);
400
400
  }
401
401
  }
402
402
  async grantPermission(token, teamsAppId, newUser) {
@@ -412,11 +412,11 @@ class TeamsDevPortalClient {
412
412
  const response = await retryHandler_1.RetryHandler.Retry(() => requester.post(`/api/appdefinitions/${teamsAppId}/owner`, app));
413
413
  globalVars_1.TOOLS.logProvider.debug((0, localizeUtils_1.getLocalizedString)("core.common.ReceiveApiResponse", JSON.stringify(response?.data)));
414
414
  if (!response || !response.data || !this.checkUser(response.data, newUser)) {
415
- throw new Error(constants_2.ErrorMessages.GrantPermissionFailed);
415
+ throw new Error(constants_3.ErrorMessages.GrantPermissionFailed);
416
416
  }
417
417
  }
418
418
  catch (err) {
419
- throw this.wrapException(err, constants_2.APP_STUDIO_API_NAMES.UPDATE_OWNER);
419
+ throw this.wrapException(err, constants_3.APP_STUDIO_API_NAMES.UPDATE_OWNER);
420
420
  }
421
421
  }
422
422
  /**
@@ -434,7 +434,7 @@ class TeamsDevPortalClient {
434
434
  return response?.data;
435
435
  }
436
436
  catch (e) {
437
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.VALIDATE_APP_PACKAGE);
437
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.VALIDATE_APP_PACKAGE);
438
438
  }
439
439
  }
440
440
  checkUser(app, newUser) {
@@ -463,7 +463,7 @@ class TeamsDevPortalClient {
463
463
  return response?.data;
464
464
  }
465
465
  catch (e) {
466
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.SUBMIT_APP_VALIDATION);
466
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.SUBMIT_APP_VALIDATION);
467
467
  }
468
468
  }
469
469
  /**
@@ -476,7 +476,7 @@ class TeamsDevPortalClient {
476
476
  return response?.data;
477
477
  }
478
478
  catch (e) {
479
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.GET_APP_VALIDATION_REQUESTS);
479
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP_VALIDATION_REQUESTS);
480
480
  }
481
481
  }
482
482
  /**
@@ -493,7 +493,7 @@ class TeamsDevPortalClient {
493
493
  return response?.data;
494
494
  }
495
495
  catch (e) {
496
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.GET_APP_VALIDATION_RESULT);
496
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP_VALIDATION_RESULT);
497
497
  }
498
498
  }
499
499
  async getSideloadingStatus(token) {
@@ -511,12 +511,12 @@ class TeamsDevPortalClient {
511
511
  result = response.data?.value?.isSideloadingAllowed;
512
512
  }
513
513
  if (result !== undefined) {
514
- (0, telemetry_1.sendTelemetryEvent)("TeamsDevPortalClient", telemetry_1.TelemetryEvent.CheckSideloading, {
514
+ exports.teamsDevPortalClientDeps.sendTelemetryEvent("TeamsDevPortalClient", telemetry_1.TelemetryEvent.CheckSideloading, {
515
515
  [telemetry_1.TelemetryProperty.IsSideloadingAllowed]: result.toString() + "",
516
516
  });
517
517
  }
518
518
  else {
519
- (0, telemetry_1.sendTelemetryErrorEvent)("TeamsDevPortalClient", telemetry_1.TelemetryEvent.CheckSideloading, new teamsfx_api_1.SystemError("M365Account", "UnknownValue", `AppStudio response code: ${response.status}, body: ${response.data}`), {
519
+ exports.teamsDevPortalClientDeps.sendTelemetryErrorEvent("TeamsDevPortalClient", telemetry_1.TelemetryEvent.CheckSideloading, new teamsfx_api_1.SystemError("M365Account", "UnknownValue", `AppStudio response code: ${response.status}, body: ${response.data}`), {
520
520
  [telemetry_1.TelemetryProperty.CheckSideloadingStatusCode]: `${response.status}`,
521
521
  [telemetry_1.TelemetryProperty.CheckSideloadingMethod]: "get",
522
522
  [telemetry_1.TelemetryProperty.CheckSideloadingUrl]: apiName,
@@ -525,7 +525,7 @@ class TeamsDevPortalClient {
525
525
  return result;
526
526
  }
527
527
  catch (error) {
528
- (0, telemetry_1.sendTelemetryErrorEvent)("TeamsDevPortalClient", telemetry_1.TelemetryEvent.CheckSideloading, new teamsApp_1.CheckSideloadingPermissionFailedError(error, error.response?.headers?.[constants_2.Constants.CORRELATION_ID] ?? "", apiName, (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.reason.common", error.response?.data ? `data: ${JSON.stringify(error.response.data)}` : "")), {
528
+ exports.teamsDevPortalClientDeps.sendTelemetryErrorEvent("TeamsDevPortalClient", telemetry_1.TelemetryEvent.CheckSideloading, new teamsApp_1.CheckSideloadingPermissionFailedError(error, error.response?.headers?.[constants_3.Constants.CORRELATION_ID] ?? "", apiName, (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.reason.common", error.response?.data ? `data: ${JSON.stringify(error.response.data)}` : "")), {
529
529
  [telemetry_1.TelemetryProperty.CheckSideloadingStatusCode]: `${error?.response?.status}`,
530
530
  [telemetry_1.TelemetryProperty.CheckSideloadingMethod]: "get",
531
531
  [telemetry_1.TelemetryProperty.CheckSideloadingUrl]: apiName,
@@ -545,7 +545,7 @@ class TeamsDevPortalClient {
545
545
  return response?.data;
546
546
  }
547
547
  catch (e) {
548
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.CREATE_API_KEY);
548
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_API_KEY);
549
549
  }
550
550
  }
551
551
  /**
@@ -560,7 +560,7 @@ class TeamsDevPortalClient {
560
560
  return response?.data;
561
561
  }
562
562
  catch (e) {
563
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.GET_API_KEY);
563
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_API_KEY);
564
564
  }
565
565
  }
566
566
  async updateApiKeyRegistration(token, apiKeyRegistration, apiKeyRegistrationId) {
@@ -570,7 +570,7 @@ class TeamsDevPortalClient {
570
570
  return response?.data;
571
571
  }
572
572
  catch (e) {
573
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.UPDATE_API_KEY);
573
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.UPDATE_API_KEY);
574
574
  }
575
575
  }
576
576
  async getOauthRegistrationById(token, oauthRegistrationId) {
@@ -580,7 +580,7 @@ class TeamsDevPortalClient {
580
580
  return response?.data;
581
581
  }
582
582
  catch (e) {
583
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.GET_OAUTH);
583
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_OAUTH);
584
584
  }
585
585
  }
586
586
  async createOauthRegistration(token, oauthRegistration) {
@@ -590,7 +590,7 @@ class TeamsDevPortalClient {
590
590
  return response?.data;
591
591
  }
592
592
  catch (e) {
593
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.CREATE_OAUTH);
593
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_OAUTH);
594
594
  }
595
595
  }
596
596
  async updateOauthRegistration(token, oauthRegistration, oauthRegistrationId) {
@@ -600,7 +600,7 @@ class TeamsDevPortalClient {
600
600
  return response?.data;
601
601
  }
602
602
  catch (e) {
603
- throw this.wrapException(e, constants_2.APP_STUDIO_API_NAMES.UPDATE_OAUTH);
603
+ throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.UPDATE_OAUTH);
604
604
  }
605
605
  }
606
606
  async getBotRegistration(token, botId) {
@@ -612,11 +612,11 @@ class TeamsDevPortalClient {
612
612
  }
613
613
  else {
614
614
  // Defensive code and it should never reach here.
615
- throw this.wrapException(this.wrapResponse(undefined, response), constants_2.APP_STUDIO_API_NAMES.GET_BOT, (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.name.common"), "Failed to get data");
615
+ throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.GET_BOT, (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.name.common"), "Failed to get data");
616
616
  }
617
617
  }
618
618
  catch (e) {
619
- this.handleBotFrameworkError(e, constants_2.APP_STUDIO_API_NAMES.GET_BOT);
619
+ this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.GET_BOT);
620
620
  }
621
621
  }
622
622
  async listBots(token) {
@@ -628,11 +628,11 @@ class TeamsDevPortalClient {
628
628
  }
629
629
  else {
630
630
  // Defensive code and it should never reach here.
631
- throw this.wrapException(this.wrapResponse(undefined, response), constants_2.APP_STUDIO_API_NAMES.LIST_BOT, (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.name.common"), "Failed to get data");
631
+ throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.LIST_BOT, (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.name.common"), "Failed to get data");
632
632
  }
633
633
  }
634
634
  catch (e) {
635
- this.handleBotFrameworkError(e, constants_2.APP_STUDIO_API_NAMES.LIST_BOT);
635
+ this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.LIST_BOT);
636
636
  }
637
637
  }
638
638
  async deleteBot(token, botId) {
@@ -641,7 +641,7 @@ class TeamsDevPortalClient {
641
641
  await retryHandler_1.RetryHandler.Retry(() => requester.delete(`/api/botframework/${botId}`));
642
642
  }
643
643
  catch (e) {
644
- this.handleBotFrameworkError(e, constants_2.APP_STUDIO_API_NAMES.DELETE_BOT);
644
+ this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.DELETE_BOT);
645
645
  }
646
646
  }
647
647
  async createBotRegistration(token, registration, checkExistence = true) {
@@ -660,7 +660,7 @@ class TeamsDevPortalClient {
660
660
  }
661
661
  }
662
662
  catch (e) {
663
- this.handleBotFrameworkError(e, constants_2.APP_STUDIO_API_NAMES.CREATE_BOT);
663
+ this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.CREATE_BOT);
664
664
  }
665
665
  }
666
666
  async updateMessageEndpoint(token, botId, endpoint) {
@@ -683,7 +683,7 @@ class TeamsDevPortalClient {
683
683
  }
684
684
  }
685
685
  catch (e) {
686
- this.handleBotFrameworkError(e, constants_2.APP_STUDIO_API_NAMES.UPDATE_BOT);
686
+ this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.UPDATE_BOT);
687
687
  }
688
688
  }
689
689
  async createAADApp(token, displayName, signInAudience = signInAudience_1.SignInAudience.AzureADMyOrg, serviceManagementReference, isMicrosoftUser = false) {
@@ -701,13 +701,13 @@ class TeamsDevPortalClient {
701
701
  }
702
702
  catch (err) {
703
703
  if (axios_1.default.isAxiosError(err) && err.response) {
704
- if (err.response.data?.error?.code === constants_4.aadErrorCode.signInAudienceNotAllowedAsPerAppPolicy) {
704
+ if (err.response.data?.error?.code === constants_2.aadErrorCode.signInAudienceNotAllowedAsPerAppPolicy) {
705
705
  throw new signInAudienceNotAllowedError_1.SignInAudienceNotAllowedError("TeamsDevPortalClient", err.response.data.error?.message, isMicrosoftUser);
706
706
  }
707
707
  }
708
- throw this.wrapException(err, constants_2.APP_STUDIO_API_NAMES.CREATE_AAD_APP);
708
+ throw this.wrapException(err, constants_3.APP_STUDIO_API_NAMES.CREATE_AAD_APP);
709
709
  }
710
- throw this.wrapException(new Error(`Failed to create AAD app: ${displayName}`), constants_2.APP_STUDIO_API_NAMES.CREATE_AAD_APP);
710
+ throw this.wrapException(new Error(`Failed to create AAD app: ${displayName}`), constants_3.APP_STUDIO_API_NAMES.CREATE_AAD_APP);
711
711
  }
712
712
  handleBotFrameworkError(e, apiName) {
713
713
  if (e.response?.status === commonConstant_1.HttpStatusCode.NOTFOUND) {
@@ -723,7 +723,7 @@ class TeamsDevPortalClient {
723
723
  throw new errors_2.BotFrameworkConflictResultError();
724
724
  }
725
725
  else {
726
- e.teamsfxUrlName = constants_3.TeamsFxUrlNames[apiName];
726
+ e.teamsfxUrlName = constants_4.TeamsFxUrlNames[apiName];
727
727
  throw this.wrapException(e, apiName);
728
728
  }
729
729
  }
@@ -735,7 +735,7 @@ class TeamsDevPortalClient {
735
735
  }
736
736
  wrapException(e, apiName, name = (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.name.common"), potentialReason = (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.reason.common"), disPlayMessage, isUserError = false, helpLink) {
737
737
  e.name = name;
738
- const correlationId = e.response?.headers?.[constants_2.Constants.CORRELATION_ID];
738
+ const correlationId = e.response?.headers?.[constants_3.Constants.CORRELATION_ID];
739
739
  let extraData = `${potentialReason} ${e.response?.data ? `data: ${JSON.stringify(e.response.data)}` : ""}`;
740
740
  // add status code in extra data if the message does not have it.
741
741
  if (!e.message?.toLowerCase().includes("status code") && e.response?.status) {
@@ -944,5 +944,9 @@ tslib_1.__decorate([
944
944
  tslib_1.__metadata("design:paramtypes", [String, String, String, String, Object]),
945
945
  tslib_1.__metadata("design:returntype", Promise)
946
946
  ], TeamsDevPortalClient.prototype, "createAADApp", null);
947
+ exports.teamsDevPortalClientDeps = {
948
+ sendTelemetryEvent: telemetry_1.sendTelemetryEvent,
949
+ sendTelemetryErrorEvent: telemetry_1.sendTelemetryErrorEvent,
950
+ };
947
951
  exports.teamsDevPortalClient = new TeamsDevPortalClient();
948
952
  //# sourceMappingURL=teamsDevPortalClient.js.map