@microsoft/teamsfx-core 2.0.7-alpha.9f1ef2a12.0 → 2.0.7-alpha.a372ccf67.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 (285) hide show
  1. package/build/common/constants.d.ts +5 -1
  2. package/build/common/constants.d.ts.map +1 -1
  3. package/build/common/constants.js +5 -1
  4. package/build/common/constants.js.map +1 -1
  5. package/build/common/featureFlags.d.ts +4 -0
  6. package/build/common/featureFlags.d.ts.map +1 -1
  7. package/build/common/featureFlags.js +20 -2
  8. package/build/common/featureFlags.js.map +1 -1
  9. package/build/common/local/packageJsonHelper.d.ts.map +1 -1
  10. package/build/common/local/packageJsonHelper.js +1 -2
  11. package/build/common/local/packageJsonHelper.js.map +1 -1
  12. package/build/common/m365/packageService.d.ts +1 -0
  13. package/build/common/m365/packageService.d.ts.map +1 -1
  14. package/build/common/m365/packageService.js +15 -2
  15. package/build/common/m365/packageService.js.map +1 -1
  16. package/build/common/projectSettingsHelper.d.ts +3 -0
  17. package/build/common/projectSettingsHelper.d.ts.map +1 -1
  18. package/build/common/projectSettingsHelper.js +29 -1
  19. package/build/common/projectSettingsHelper.js.map +1 -1
  20. package/build/common/projectTypeChecker.d.ts.map +1 -1
  21. package/build/common/projectTypeChecker.js +1 -2
  22. package/build/common/projectTypeChecker.js.map +1 -1
  23. package/build/common/samples.d.ts +3 -2
  24. package/build/common/samples.d.ts.map +1 -1
  25. package/build/common/samples.js +84 -40
  26. package/build/common/samples.js.map +1 -1
  27. package/build/common/telemetry.d.ts +3 -1
  28. package/build/common/telemetry.d.ts.map +1 -1
  29. package/build/common/telemetry.js +2 -0
  30. package/build/common/telemetry.js.map +1 -1
  31. package/build/common/templates-config.json +1 -0
  32. package/build/common/tools.d.ts.map +1 -1
  33. package/build/common/tools.js +1 -1
  34. package/build/common/tools.js.map +1 -1
  35. package/build/common/wrappedAxiosClient.d.ts +59 -0
  36. package/build/common/wrappedAxiosClient.d.ts.map +1 -0
  37. package/build/common/wrappedAxiosClient.js +247 -0
  38. package/build/common/wrappedAxiosClient.js.map +1 -0
  39. package/build/component/configManager/lifecycle.js +1 -1
  40. package/build/component/configManager/lifecycle.js.map +1 -1
  41. package/build/component/constant/commonConstant.d.ts +5 -0
  42. package/build/component/constant/commonConstant.d.ts.map +1 -1
  43. package/build/component/constant/commonConstant.js +7 -1
  44. package/build/component/constant/commonConstant.js.map +1 -1
  45. package/build/component/coordinator/index.d.ts +8 -1
  46. package/build/component/coordinator/index.d.ts.map +1 -1
  47. package/build/component/coordinator/index.js +78 -8
  48. package/build/component/coordinator/index.js.map +1 -1
  49. package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
  50. package/build/component/developerPortalScaffoldUtils.js +0 -2
  51. package/build/component/developerPortalScaffoldUtils.js.map +1 -1
  52. package/build/component/driver/aad/utility/aadAppClient.d.ts +1 -0
  53. package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
  54. package/build/component/driver/aad/utility/aadAppClient.js +16 -2
  55. package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
  56. package/build/component/driver/apiKey/create.d.ts.map +1 -1
  57. package/build/component/driver/apiKey/create.js +2 -4
  58. package/build/component/driver/apiKey/create.js.map +1 -1
  59. package/build/component/driver/botFramework/createOrUpdateBot.d.ts.map +1 -1
  60. package/build/component/driver/botFramework/createOrUpdateBot.js +0 -2
  61. package/build/component/driver/botFramework/createOrUpdateBot.js.map +1 -1
  62. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
  63. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +5 -5
  64. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
  65. package/build/component/driver/middleware/addSWADeployTelemetry.js +1 -2
  66. package/build/component/driver/middleware/addSWADeployTelemetry.js.map +1 -1
  67. package/build/component/driver/teamsApp/appStudio.d.ts.map +1 -1
  68. package/build/component/driver/teamsApp/appStudio.js +0 -2
  69. package/build/component/driver/teamsApp/appStudio.js.map +1 -1
  70. package/build/component/driver/teamsApp/clients/appStudioClient.d.ts +31 -9
  71. package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
  72. package/build/component/driver/teamsApp/clients/appStudioClient.js +86 -111
  73. package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
  74. package/build/component/driver/teamsApp/clients/authSvcClient.d.ts.map +1 -1
  75. package/build/component/driver/teamsApp/clients/authSvcClient.js +3 -24
  76. package/build/component/driver/teamsApp/clients/authSvcClient.js.map +1 -1
  77. package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
  78. package/build/component/driver/teamsApp/configure.js +0 -2
  79. package/build/component/driver/teamsApp/configure.js.map +1 -1
  80. package/build/component/driver/teamsApp/constants.d.ts +3 -0
  81. package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
  82. package/build/component/driver/teamsApp/constants.js +3 -0
  83. package/build/component/driver/teamsApp/constants.js.map +1 -1
  84. package/build/component/driver/teamsApp/create.d.ts.map +1 -1
  85. package/build/component/driver/teamsApp/create.js +0 -2
  86. package/build/component/driver/teamsApp/create.js.map +1 -1
  87. package/build/component/driver/teamsApp/createAppPackage.d.ts +3 -0
  88. package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
  89. package/build/component/driver/teamsApp/createAppPackage.js +61 -14
  90. package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
  91. package/build/component/driver/teamsApp/errors.d.ts +4 -0
  92. package/build/component/driver/teamsApp/errors.d.ts.map +1 -1
  93. package/build/component/driver/teamsApp/errors.js +7 -0
  94. package/build/component/driver/teamsApp/errors.js.map +1 -1
  95. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationDetailsResponse.d.ts +21 -0
  96. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationDetailsResponse.d.ts.map +1 -0
  97. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationDetailsResponse.js +5 -0
  98. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationDetailsResponse.js.map +1 -0
  99. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResponse.d.ts +17 -0
  100. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResponse.d.ts.map +1 -0
  101. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResponse.js +16 -0
  102. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResponse.js.map +1 -0
  103. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResultsResponse.d.ts +41 -0
  104. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResultsResponse.d.ts.map +1 -0
  105. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResultsResponse.js +5 -0
  106. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResultsResponse.js.map +1 -0
  107. package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
  108. package/build/component/driver/teamsApp/publishAppPackage.js +3 -5
  109. package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
  110. package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +1 -0
  111. package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
  112. package/build/component/driver/teamsApp/utils/ManifestUtils.js +17 -0
  113. package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
  114. package/build/component/driver/teamsApp/utils/PluginManifestUtils.d.ts +8 -0
  115. package/build/component/driver/teamsApp/utils/PluginManifestUtils.d.ts.map +1 -0
  116. package/build/component/driver/teamsApp/utils/PluginManifestUtils.js +63 -0
  117. package/build/component/driver/teamsApp/utils/PluginManifestUtils.js.map +1 -0
  118. package/build/component/driver/teamsApp/utils/telemetry.d.ts +0 -31
  119. package/build/component/driver/teamsApp/utils/telemetry.d.ts.map +1 -1
  120. package/build/component/driver/teamsApp/utils/telemetry.js +1 -53
  121. package/build/component/driver/teamsApp/utils/telemetry.js.map +1 -1
  122. package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
  123. package/build/component/driver/teamsApp/validate.js +0 -1
  124. package/build/component/driver/teamsApp/validate.js.map +1 -1
  125. package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
  126. package/build/component/driver/teamsApp/validateAppPackage.js +0 -1
  127. package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
  128. package/build/component/feature/collaboration.d.ts +1 -1
  129. package/build/component/feature/collaboration.d.ts.map +1 -1
  130. package/build/component/feature/collaboration.js +2 -4
  131. package/build/component/feature/collaboration.js.map +1 -1
  132. package/build/component/generator/copilotPlugin/generator.d.ts +5 -2
  133. package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -1
  134. package/build/component/generator/copilotPlugin/generator.js +101 -26
  135. package/build/component/generator/copilotPlugin/generator.js.map +1 -1
  136. package/build/component/generator/copilotPlugin/helper.d.ts +8 -3
  137. package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -1
  138. package/build/component/generator/copilotPlugin/helper.js +239 -28
  139. package/build/component/generator/copilotPlugin/helper.js.map +1 -1
  140. package/build/component/generator/error.d.ts +1 -1
  141. package/build/component/generator/error.d.ts.map +1 -1
  142. package/build/component/generator/error.js +4 -4
  143. package/build/component/generator/error.js.map +1 -1
  144. package/build/component/generator/generator.d.ts +6 -1
  145. package/build/component/generator/generator.d.ts.map +1 -1
  146. package/build/component/generator/generator.js +32 -26
  147. package/build/component/generator/generator.js.map +1 -1
  148. package/build/component/generator/generatorAction.d.ts +5 -16
  149. package/build/component/generator/generatorAction.d.ts.map +1 -1
  150. package/build/component/generator/generatorAction.js +46 -87
  151. package/build/component/generator/generatorAction.js.map +1 -1
  152. package/build/component/generator/officeAddin/config/projectProperties.d.ts +32 -1
  153. package/build/component/generator/officeAddin/config/projectProperties.d.ts.map +1 -1
  154. package/build/component/generator/officeAddin/config/projectProperties.js +33 -2
  155. package/build/component/generator/officeAddin/config/projectProperties.js.map +1 -1
  156. package/build/component/generator/officeAddin/config/projectsJsonData.d.ts +7 -1
  157. package/build/component/generator/officeAddin/config/projectsJsonData.d.ts.map +1 -1
  158. package/build/component/generator/officeAddin/config/projectsJsonData.js +54 -4
  159. package/build/component/generator/officeAddin/config/projectsJsonData.js.map +1 -1
  160. package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
  161. package/build/component/generator/officeAddin/generator.js +31 -10
  162. package/build/component/generator/officeAddin/generator.js.map +1 -1
  163. package/build/component/generator/officeAddin/helperMethods.d.ts +2 -1
  164. package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
  165. package/build/component/generator/officeAddin/helperMethods.js +21 -10
  166. package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
  167. package/build/component/generator/officeXMLAddin/generator.d.ts +9 -0
  168. package/build/component/generator/officeXMLAddin/generator.d.ts.map +1 -0
  169. package/build/component/generator/officeXMLAddin/generator.js +90 -0
  170. package/build/component/generator/officeXMLAddin/generator.js.map +1 -0
  171. package/build/component/generator/officeXMLAddin/projectConfig.d.ts +36 -0
  172. package/build/component/generator/officeXMLAddin/projectConfig.d.ts.map +1 -0
  173. package/build/component/generator/officeXMLAddin/projectConfig.js +127 -0
  174. package/build/component/generator/officeXMLAddin/projectConfig.js.map +1 -0
  175. package/build/component/generator/utils.d.ts +2 -1
  176. package/build/component/generator/utils.d.ts.map +1 -1
  177. package/build/component/generator/utils.js +35 -16
  178. package/build/component/generator/utils.js.map +1 -1
  179. package/build/component/middleware/envMW.d.ts.map +1 -1
  180. package/build/component/middleware/envMW.js +1 -0
  181. package/build/component/middleware/envMW.js.map +1 -1
  182. package/build/component/resource/botService/appStudio/appStudioClient.d.ts.map +1 -1
  183. package/build/component/resource/botService/appStudio/appStudioClient.js +11 -39
  184. package/build/component/resource/botService/appStudio/appStudioClient.js.map +1 -1
  185. package/build/component/utils/envUtil.d.ts +2 -0
  186. package/build/component/utils/envUtil.d.ts.map +1 -1
  187. package/build/component/utils/envUtil.js +23 -0
  188. package/build/component/utils/envUtil.js.map +1 -1
  189. package/build/component/utils/pathUtils.d.ts.map +1 -1
  190. package/build/component/utils/pathUtils.js +2 -0
  191. package/build/component/utils/pathUtils.js.map +1 -1
  192. package/build/core/FxCore.d.ts.map +1 -1
  193. package/build/core/FxCore.js +26 -15
  194. package/build/core/FxCore.js.map +1 -1
  195. package/build/core/collaborator.js +3 -3
  196. package/build/core/collaborator.js.map +1 -1
  197. package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
  198. package/build/core/middleware/projectMigratorV3.js +6 -1
  199. package/build/core/middleware/projectMigratorV3.js.map +1 -1
  200. package/build/error/arm.d.ts.map +1 -1
  201. package/build/error/arm.js +0 -2
  202. package/build/error/arm.js.map +1 -1
  203. package/build/error/common.d.ts.map +1 -1
  204. package/build/error/common.js +1 -1
  205. package/build/error/common.js.map +1 -1
  206. package/build/error/deploy.d.ts.map +1 -1
  207. package/build/error/deploy.js +17 -6
  208. package/build/error/deploy.js.map +1 -1
  209. package/build/index.d.ts +0 -1
  210. package/build/index.d.ts.map +1 -1
  211. package/build/index.js +1 -3
  212. package/build/index.js.map +1 -1
  213. package/build/question/constants.d.ts +1 -0
  214. package/build/question/constants.d.ts.map +1 -1
  215. package/build/question/constants.js +2 -1
  216. package/build/question/constants.js.map +1 -1
  217. package/build/question/create.d.ts +34 -2
  218. package/build/question/create.d.ts.map +1 -1
  219. package/build/question/create.js +552 -74
  220. package/build/question/create.js.map +1 -1
  221. package/build/question/inputs/CreateProjectInputs.d.ts +21 -7
  222. package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
  223. package/build/question/options/CreateProjectOptions.d.ts.map +1 -1
  224. package/build/question/options/CreateProjectOptions.js +57 -11
  225. package/build/question/options/CreateProjectOptions.js.map +1 -1
  226. package/build/question/questionNames.d.ts +10 -1
  227. package/build/question/questionNames.d.ts.map +1 -1
  228. package/build/question/questionNames.js +9 -0
  229. package/build/question/questionNames.js.map +1 -1
  230. package/package.json +8 -8
  231. package/resource/package.nls.json +200 -115
  232. package/templates/fallback/common.zip +0 -0
  233. package/templates/fallback/csharp.zip +0 -0
  234. package/templates/fallback/js.zip +0 -0
  235. package/templates/fallback/python.zip +0 -0
  236. package/templates/fallback/ts.zip +0 -0
  237. package/templates/plugins/resource/aad/auth/V3/Enable SSO.txt +1 -1
  238. package/build/common/spec-parser/adaptiveCardGenerator.d.ts +0 -7
  239. package/build/common/spec-parser/adaptiveCardGenerator.d.ts.map +0 -1
  240. package/build/common/spec-parser/adaptiveCardGenerator.js +0 -168
  241. package/build/common/spec-parser/adaptiveCardGenerator.js.map +0 -1
  242. package/build/common/spec-parser/adaptiveCardWrapper.d.ts +0 -15
  243. package/build/common/spec-parser/adaptiveCardWrapper.d.ts.map +0 -1
  244. package/build/common/spec-parser/adaptiveCardWrapper.js +0 -98
  245. package/build/common/spec-parser/adaptiveCardWrapper.js.map +0 -1
  246. package/build/common/spec-parser/constants.d.ts +0 -41
  247. package/build/common/spec-parser/constants.d.ts.map +0 -1
  248. package/build/common/spec-parser/constants.js +0 -95
  249. package/build/common/spec-parser/constants.js.map +0 -1
  250. package/build/common/spec-parser/index.browser.d.ts +0 -6
  251. package/build/common/spec-parser/index.browser.d.ts.map +0 -1
  252. package/build/common/spec-parser/index.browser.js +0 -16
  253. package/build/common/spec-parser/index.browser.js.map +0 -1
  254. package/build/common/spec-parser/index.d.ts +0 -5
  255. package/build/common/spec-parser/index.d.ts.map +0 -1
  256. package/build/common/spec-parser/index.js +0 -16
  257. package/build/common/spec-parser/index.js.map +0 -1
  258. package/build/common/spec-parser/interfaces.d.ts +0 -180
  259. package/build/common/spec-parser/interfaces.d.ts.map +0 -1
  260. package/build/common/spec-parser/interfaces.js +0 -51
  261. package/build/common/spec-parser/interfaces.js.map +0 -1
  262. package/build/common/spec-parser/manifestUpdater.d.ts +0 -7
  263. package/build/common/spec-parser/manifestUpdater.d.ts.map +0 -1
  264. package/build/common/spec-parser/manifestUpdater.js +0 -98
  265. package/build/common/spec-parser/manifestUpdater.js.map +0 -1
  266. package/build/common/spec-parser/specFilter.d.ts +0 -3
  267. package/build/common/spec-parser/specFilter.d.ts.map +0 -1
  268. package/build/common/spec-parser/specFilter.js +0 -40
  269. package/build/common/spec-parser/specFilter.js.map +0 -1
  270. package/build/common/spec-parser/specParser.browser.d.ts +0 -46
  271. package/build/common/spec-parser/specParser.browser.d.ts.map +0 -1
  272. package/build/common/spec-parser/specParser.browser.js +0 -139
  273. package/build/common/spec-parser/specParser.browser.js.map +0 -1
  274. package/build/common/spec-parser/specParser.d.ts +0 -46
  275. package/build/common/spec-parser/specParser.d.ts.map +0 -1
  276. package/build/common/spec-parser/specParser.js +0 -244
  277. package/build/common/spec-parser/specParser.js.map +0 -1
  278. package/build/common/spec-parser/specParserError.d.ts +0 -6
  279. package/build/common/spec-parser/specParserError.d.ts.map +0 -1
  280. package/build/common/spec-parser/specParserError.js +0 -13
  281. package/build/common/spec-parser/specParserError.js.map +0 -1
  282. package/build/common/spec-parser/utils.d.ts +0 -43
  283. package/build/common/spec-parser/utils.d.ts.map +0 -1
  284. package/build/common/spec-parser/utils.js +0 -587
  285. package/build/common/spec-parser/utils.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"appStudio.js","sourceRoot":"","sources":["../../../../src/component/driver/teamsApp/appStudio.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAgBgC;AAChC,8DAA6B;AAC7B,gEAA0B;AAC1B,mDAA6B;AAC7B,4DAAuB;AACvB,mDAA6B;AAC7B,0EAA0C;AAC1C,mCAAmC;AACnC,iDAAwD;AACxD,+DAA4D;AAC5D,qCAA0C;AAC1C,uCAAmD;AACnD,iEAAqF;AACrF,yDAAsD;AACtD,2CAAgE;AAMhE,iDAA8C;AAE9C,+BAAyC;AACzC,6DAA6B;AAC7B,yDAA8E;AAC9E,2CAAwE;AACxE,kDAA2E;AAC3E,iDAAmD;AACnD,gDAAkD;AAE3C,KAAK,UAAU,qCAAqC,CACzD,UAAkB,EAClB,aAAgC,EAChC,MAAmB;IAEnB,MAAM,iBAAiB,GAAG,MAAM,aAAa,CAAC,cAA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YAAY,OAAO,OAAO,CAC3B,CAAC;IAEF,OAAO;QACL,YAAY,EAAE,oBAAoB;QAClC,aAAa,EAAE,IAAI,CAAC,IAAI,CACtB,WAAW,EACX,kCAAoB,EACpB,6BAAe,EACf,cAAc,OAAO,MAAM,CAC5B;QACD,cAAc,EAAE,gBAAgB;KACjC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"appStudio.js","sourceRoot":"","sources":["../../../../src/component/driver/teamsApp/appStudio.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAgBgC;AAChC,8DAA6B;AAC7B,gEAA0B;AAC1B,mDAA6B;AAC7B,4DAAuB;AACvB,mDAA6B;AAC7B,0EAA0C;AAC1C,mCAAmC;AACnC,iDAAwD;AACxD,+DAA4D;AAC5D,qCAA0C;AAC1C,uCAAmD;AACnD,iEAAqF;AACrF,yDAAsD;AACtD,2CAAgE;AAMhE,iDAA8C;AAE9C,+BAAyC;AACzC,6DAA6B;AAC7B,yDAA8E;AAC9E,2CAAwE;AACxE,kDAA2E;AAC3E,gDAAkD;AAE3C,KAAK,UAAU,qCAAqC,CACzD,UAAkB,EAClB,aAAgC,EAChC,MAAmB;IAEnB,MAAM,iBAAiB,GAAG,MAAM,aAAa,CAAC,cAAc,CAAC;QAC3D,MAAM,EAAE,uBAAe;KACxB,CAAC,CAAC;IACH,IAAI,iBAAiB,CAAC,KAAK,EAAE,EAAE;QAC7B,OAAO,iBAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;KACrC;IAED,MAAM,cAAc,GAAG,iBAAiB,CAAC,KAAK,CAAC;IAE/C,IAAI;QACF,MAAM,iCAAe,CAAC,MAAM,CAAC,UAAU,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC;KAClE;IAAC,OAAO,KAAU,EAAE;QACnB,IAAI,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;YAClD,MAAM,MAA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,CAAC,CAAC;qBACrF;aACJ;QACH,CAAC,CAAC,CAAC;QACH,OAAO,gBAAE,CAAC,UAAU,CAAC,CAAC;KACvB;IAAC,OAAO,CAAM,EAAE;QACf,OAAO,iBAAG,CAAC,CAAC,CAAC,CAAC;KACf;AACH,CAAC;AApDD,sCAoDC;AAED,SAAS,qBAAqB,CAAC,GAAY,EAAE,MAA6B;IACxE,OAAO;QACL,oBAAoB,EAAE,GAAG,CAAC,aAAc,CAAC,oBAAoB;QAC7D,iBAAiB,EAAE,GAAG,CAAC,aAAc,CAAC,iBAAiB;QACvD,EAAE,EAAE,GAAG,CAAC,eAAe;QACvB,WAAW,EAAE,SAAS;QACtB,WAAW,EAAE,GAAG,CAAC,WAAW;QAC5B,iBAAiB,EAAE,GAAG,CAAC,iBAAiB;QACxC,WAAW,EAAE,GAAG,CAAC,WAAY;QAC7B,QAAQ,EAAE,MAAM,CAAC,QAAQ;KAC1B,CAAC;AACJ,CAAC;AAED,SAAS,4BAA4B,CACnC,WAAmB,EACnB,oBAA4B,EAC5B,OAAe;IAEf,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAChC,WAAW,EACX,kCAAoB,EACpB,6BAAe,EACf,YAAY,OAAO,OAAO,CAC3B,CAAC;IAEF,OAAO;QACL,YAAY,EAAE,oBAAoB;QAClC,aAAa,EAAE,IAAI,CAAC,IAAI,CACtB,WAAW,EACX,kCAAoB,EACpB,6BAAe,EACf,cAAc,OAAO,MAAM,CAC5B;QACD,cAAc,EAAE,gBAAgB;KACjC,CAAC;AACJ,CAAC"}
@@ -5,21 +5,16 @@ import { AppUser } from "../../../driver/teamsApp/interfaces/appdefinitions/appU
5
5
  import { IPublishingAppDenition } from "../interfaces/appdefinitions/IPublishingAppDefinition";
6
6
  import { IValidationResult } from "../../../driver/teamsApp/interfaces/appdefinitions/IValidationResult";
7
7
  import { ApiSecretRegistration } from "../interfaces/ApiSecretRegistration";
8
+ import { AsyncAppValidationResponse } from "../interfaces/AsyncAppValidationResponse";
9
+ import { AsyncAppValidationResultsResponse } from "../interfaces/AsyncAppValidationResultsResponse";
10
+ import { AsyncAppValidationDetailsResponse } from "../interfaces/AsyncAppValidationDetailsResponse";
8
11
  export declare namespace AppStudioClient {
9
12
  /**
10
13
  * Set user region
11
14
  * @param _region e.g. https://dev.teams.microsoft.com/amer
12
15
  */
13
16
  function setRegion(_region: string): void;
14
- function sendStartEvent(apiName: string, telemetryProperties?: {
15
- [key: string]: string;
16
- }): void;
17
- function sendSuccessEvent(apiName: string, telemetryProperties?: {
18
- [key: string]: string;
19
- }): void;
20
- function wrapException(e: any, apiName: string, telemetryProperties?: {
21
- [key: string]: string;
22
- }): Error;
17
+ function wrapException(e: any, apiName: string): Error;
23
18
  /**
24
19
  * Import an app registration in app studio with the given archived file and returns the app definition.
25
20
  * @param {Buffer} file - Zip file with manifest.json and two icons
@@ -67,7 +62,34 @@ export declare namespace AppStudioClient {
67
62
  function checkPermission(teamsAppId: string, appStudioToken: string, userObjectId: string, logProvider: LogProvider): Promise<string>;
68
63
  function grantPermission(teamsAppId: string, appStudioToken: string, newUser: AppUser, logProvider: LogProvider): Promise<void>;
69
64
  function getAppPackage(teamsAppId: string, appStudioToken: string, logProvider?: LogProvider): Promise<any>;
65
+ /**
66
+ * Send the app package for partner center validation
67
+ * @param file
68
+ * @param appStudioToken
69
+ * @returns
70
+ */
70
71
  function partnerCenterAppPackageValidation(file: Buffer, appStudioToken: string): Promise<IValidationResult>;
72
+ /**
73
+ * Submit App Validation Request (In-App) for which App Definitions are stored at TDP.
74
+ * @param teamsAppId
75
+ * @param appStudioToken
76
+ * @returns
77
+ */
78
+ function submitAppValidationRequest(teamsAppId: string, appStudioToken: string): Promise<AsyncAppValidationResponse>;
79
+ /**
80
+ * Get App validation requests sumitted by the user
81
+ * @param teamsAppId
82
+ * @param appStudioToken
83
+ * @returns
84
+ */
85
+ function getAppValidationRequestList(teamsAppId: string, appStudioToken: string): Promise<AsyncAppValidationDetailsResponse>;
86
+ /**
87
+ * Get App validation results by provided app validation id
88
+ * @param appValidationId
89
+ * @param appStudioToken
90
+ * @returns
91
+ */
92
+ function getAppValidationById(appValidationId: string, appStudioToken: string): Promise<AsyncAppValidationResultsResponse>;
71
93
  function getSideloadingStatus(appStudioToken: string): Promise<boolean | undefined>;
72
94
  /**
73
95
  * Create the Api Key registration.
@@ -1 +1 @@
1
- {"version":3,"file":"appStudioClient.d.ts","sourceRoot":"","sources":["../../../../../src/component/driver/teamsApp/clients/appStudioClient.ts"],"names":[],"mappings":";AAQA,OAAO,EAAe,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,kEAAkE,CAAC;AACjG,OAAO,EAAE,OAAO,EAAE,MAAM,4DAA4D,CAAC;AAErF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uDAAuD,CAAC;AAyB/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sEAAsE,CAAC;AAQzG,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAG5E,yBAAiB,eAAe,CAAC;IAK/B;;;OAGG;IACH,SAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,QAExC;IAoBD,SAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAC9C,IAAI,CAKN;IAED,SAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAC9C,IAAI,CAKN;IAED,SAAgB,aAAa,CAC3B,CAAC,EAAE,GAAG,EACN,OAAO,EAAE,MAAM,EACf,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAC9C,KAAK,CAcP;IAED;;;;;;;OAOG;IACH,SAAsB,SAAS,CAC7B,IAA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B,eAAe,CACnC,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,WAAW,GACvB,OAAO,CAAC,MAAM,CAAC,CAkBjB;IAED,SAAsB,eAAe,CACnC,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,GACvB,OAAO,CAAC,IAAI,CAAC,CAwEf;IAED,SAAsB,aAAa,CACjC,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,EACtB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,GAAG,CAAC,CA0Bd;IAED,SAAsB,iCAAiC,CACrD,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,iBAAiB,CAAC,CAwB5B;IAWD,SAAsB,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAmE/F;IAED;;;;OAIG;IACH,SAAsB,wBAAwB,CAC5C,cAAc,EAAE,MAAM,EACtB,kBAAkB,EAAE,qBAAqB,GACxC,OAAO,CAAC,qBAAqB,CAAC,CAahC;IAED;;;;OAIG;IACH,SAAsB,yBAAyB,CAC7C,cAAc,EAAE,MAAM,EACtB,uBAAuB,EAAE,MAAM,GAC9B,OAAO,CAAC,qBAAqB,CAAC,CAahC;CAQF"}
1
+ {"version":3,"file":"appStudioClient.d.ts","sourceRoot":"","sources":["../../../../../src/component/driver/teamsApp/clients/appStudioClient.ts"],"names":[],"mappings":";AAQA,OAAO,EAAe,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,kEAAkE,CAAC;AACjG,OAAO,EAAE,OAAO,EAAE,MAAM,4DAA4D,CAAC;AAErF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uDAAuD,CAAC;AAmB/F,OAAO,EAAE,iBAAiB,EA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,OAAO,CAAC,iCAAiC,CAAC,CAW5C;IAED;;;;;OAKG;IACH,SAAsB,oBAAoB,CACxC,eAAe,EAAE,MAAM,EACvB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,iCAAiC,CAAC,CAW5C;IAWD,SAAsB,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAmE/F;IAED;;;;OAIG;IACH,SAAsB,wBAAwB,CAC5C,cAAc,EAAE,MAAM,EACtB,kBAAkB,EAAE,qBAAqB,GACxC,OAAO,CAAC,qBAAqB,CAAC,CAWhC;IAED;;;;OAIG;IACH,SAAsB,yBAAyB,CAC7C,cAAc,EAAE,MAAM,EACtB,uBAAuB,EAAE,MAAM,GAC9B,OAAO,CAAC,qBAAqB,CAAC,CAWhC;CACF"}
@@ -14,15 +14,15 @@ const errors_1 = require(".././errors");
14
14
  const results_1 = require(".././results");
15
15
  const constants_1 = require(".././constants");
16
16
  const utils_1 = require("../utils/utils");
17
- const telemetry_1 = require("../utils/telemetry");
18
17
  const constants_2 = require("../../../../common/constants");
19
18
  const localizeUtils_1 = require("../../../../common/localizeUtils");
20
- const telemetry_2 = require("../../../../common/telemetry");
19
+ const telemetry_1 = require("../../../../common/telemetry");
21
20
  const tools_1 = require("../../../../common/tools");
22
21
  const commonConstant_1 = require("../../../constant/commonConstant");
23
22
  const ManifestUtils_1 = require("../utils/ManifestUtils");
24
23
  const globalVars_1 = require("../../../../core/globalVars");
25
24
  const teamsApp_1 = require("../../../../error/teamsApp");
25
+ const wrappedAxiosClient_1 = require("../../../../common/wrappedAxiosClient");
26
26
  // eslint-disable-next-line @typescript-eslint/no-namespace
27
27
  var AppStudioClient;
28
28
  (function (AppStudioClient) {
@@ -42,34 +42,19 @@ var AppStudioClient;
42
42
  * @returns {AxiosInstance}
43
43
  */
44
44
  function createRequesterWithToken(appStudioToken, _regionalUrl) {
45
- const instance = axios_1.default.create({
45
+ const instance = wrappedAxiosClient_1.WrappedAxiosClient.create({
46
46
  baseURL: _regionalUrl !== null && _regionalUrl !== void 0 ? _regionalUrl : baseUrl,
47
47
  });
48
48
  instance.defaults.headers.common["Authorization"] = `Bearer ${appStudioToken}`;
49
49
  instance.defaults.headers.common["Client-Source"] = "teamstoolkit";
50
- instance.interceptors.request.use(function (config) {
51
- config.params = Object.assign({ teamstoolkit: true }, config.params);
52
- return config;
53
- });
54
50
  return instance;
55
51
  }
56
- function sendStartEvent(apiName, telemetryProperties) {
57
- telemetry_1.TelemetryUtils.sendStartEvent(telemetry_1.TelemetryEventName.appStudioApi, Object.assign({ url: `<${apiName}-url>` }, telemetryProperties));
58
- }
59
- AppStudioClient.sendStartEvent = sendStartEvent;
60
- function sendSuccessEvent(apiName, telemetryProperties) {
61
- telemetry_1.TelemetryUtils.sendSuccessEvent(telemetry_1.TelemetryEventName.appStudioApi, Object.assign({ url: `<${apiName}-url>` }, telemetryProperties));
62
- }
63
- AppStudioClient.sendSuccessEvent = sendSuccessEvent;
64
- function wrapException(e, apiName, telemetryProperties) {
65
- var _a, _b, _c, _d;
52
+ function wrapException(e, apiName) {
53
+ var _a, _b;
66
54
  const correlationId = (_a = e.response) === null || _a === void 0 ? void 0 : _a.headers[constants_1.Constants.CORRELATION_ID];
67
55
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
68
56
  const extraData = ((_b = e.response) === null || _b === void 0 ? void 0 : _b.data) ? `data: ${JSON.stringify(e.response.data)}` : "";
69
57
  const error = new teamsApp_1.DeveloperPortalAPIFailedError(e, correlationId, apiName, extraData);
70
- telemetry_1.TelemetryUtils.sendErrorEvent(telemetry_1.TelemetryEventName.appStudioApi, error, Object.assign({ method: (_c = e.request) === null || _c === void 0 ? void 0 : _c.method,
71
- // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
72
- "status-code": `${(_d = e === null || e === void 0 ? void 0 : e.response) === null || _d === void 0 ? void 0 : _d.status}`, url: `<${apiName}-url>` }, telemetryProperties));
73
58
  return error;
74
59
  }
75
60
  AppStudioClient.wrapException = wrapException;
@@ -84,13 +69,6 @@ var AppStudioClient;
84
69
  async function importApp(file, appStudioToken, logProvider, overwrite = false) {
85
70
  var _a, _b, _c, _d, _e;
86
71
  globalVars_1.setErrorContext({ source: "Teams" });
87
- const telemetryProperties = {
88
- [telemetry_1.TelemetryPropertyKey.OverwriteIfAppAlreadyExists]: String(overwrite),
89
- // To avoid url be redacted in telemetry, get region from full base url
90
- // E.g. https://dev.teams.microsoft.com/amer => amer
91
- [telemetry_1.TelemetryPropertyKey.region]: String(extractRegionFromBaseUrl(region)),
92
- };
93
- sendStartEvent(constants_1.APP_STUDIO_API_NAMES.CREATE_APP, telemetryProperties);
94
72
  try {
95
73
  const requester = createRequesterWithToken(appStudioToken, region);
96
74
  logProvider.debug(`Sent API Request: ${region !== null && region !== void 0 ? region : baseUrl}/api/appdefinitions/v2/import`);
@@ -103,7 +81,6 @@ var AppStudioClient;
103
81
  if (response && response.data) {
104
82
  const app = response.data;
105
83
  logProvider.debug(`Received data from Teams Developer Portal: ${JSON.stringify(app)}`);
106
- sendSuccessEvent(constants_1.APP_STUDIO_API_NAMES.CREATE_APP, telemetryProperties);
107
84
  return app;
108
85
  }
109
86
  else {
@@ -135,7 +112,7 @@ var AppStudioClient;
135
112
  throw error;
136
113
  }
137
114
  }
138
- const error = wrapException(e, constants_1.APP_STUDIO_API_NAMES.CREATE_APP, telemetryProperties);
115
+ const error = wrapException(e, constants_1.APP_STUDIO_API_NAMES.CREATE_APP);
139
116
  throw error;
140
117
  }
141
118
  }
@@ -144,7 +121,6 @@ var AppStudioClient;
144
121
  if (!region)
145
122
  throw new Error("Failed to get region");
146
123
  globalVars_1.setErrorContext({ source: "Teams" });
147
- sendStartEvent(constants_1.APP_STUDIO_API_NAMES.LIST_APPS);
148
124
  let requester;
149
125
  try {
150
126
  requester = createRequesterWithToken(appStudioToken, region);
@@ -153,7 +129,6 @@ var AppStudioClient;
153
129
  if (response && response.data) {
154
130
  const apps = response.data;
155
131
  if (apps) {
156
- sendSuccessEvent(constants_1.APP_STUDIO_API_NAMES.LIST_APPS);
157
132
  return apps;
158
133
  }
159
134
  else {
@@ -172,7 +147,6 @@ var AppStudioClient;
172
147
  if (!region)
173
148
  throw new Error("Failed to get region");
174
149
  globalVars_1.setErrorContext({ source: "Teams" });
175
- sendStartEvent(constants_1.APP_STUDIO_API_NAMES.DELETE_APP);
176
150
  let requester;
177
151
  try {
178
152
  requester = createRequesterWithToken(appStudioToken, region);
@@ -181,7 +155,6 @@ var AppStudioClient;
181
155
  if (response && response.data) {
182
156
  const success = response.data;
183
157
  if (success) {
184
- sendSuccessEvent(constants_1.APP_STUDIO_API_NAMES.DELETE_APP);
185
158
  return success;
186
159
  }
187
160
  else {
@@ -198,27 +171,22 @@ var AppStudioClient;
198
171
  AppStudioClient.deleteApp = deleteApp;
199
172
  async function getApp(teamsAppId, appStudioToken, logProvider) {
200
173
  globalVars_1.setErrorContext({ source: "Teams" });
201
- sendStartEvent(constants_1.APP_STUDIO_API_NAMES.GET_APP);
202
- const telemetryProperties = {};
203
174
  let requester;
204
175
  try {
205
176
  let response;
206
177
  if (region) {
207
178
  requester = createRequesterWithToken(appStudioToken, region);
208
179
  logProvider.debug(`Sent API Request: GET ${region}/api/appdefinitions/${teamsAppId}`);
209
- telemetryProperties[telemetry_1.TelemetryPropertyKey.region] = String(extractRegionFromBaseUrl(region));
210
180
  response = await utils_1.RetryHandler.Retry(() => requester.get(`/api/appdefinitions/${teamsAppId}`));
211
181
  }
212
182
  else {
213
183
  logProvider.debug(`Sent API Request: GET ${baseUrl}/api/appdefinitions/${teamsAppId}`);
214
184
  requester = createRequesterWithToken(appStudioToken);
215
- telemetryProperties[telemetry_1.TelemetryPropertyKey.region] = telemetry_1.TelemetryPropertyValue.Global;
216
185
  response = await utils_1.RetryHandler.Retry(() => requester.get(`/api/appdefinitions/${teamsAppId}`));
217
186
  }
218
187
  if (response && response.data) {
219
188
  const app = response.data;
220
189
  if (app && app.teamsAppId && app.teamsAppId === teamsAppId) {
221
- sendSuccessEvent(constants_1.APP_STUDIO_API_NAMES.GET_APP, telemetryProperties);
222
190
  return app;
223
191
  }
224
192
  else {
@@ -228,7 +196,7 @@ var AppStudioClient;
228
196
  }
229
197
  }
230
198
  catch (e) {
231
- const error = wrapException(e, constants_1.APP_STUDIO_API_NAMES.GET_APP, telemetryProperties);
199
+ const error = wrapException(e, constants_1.APP_STUDIO_API_NAMES.GET_APP);
232
200
  throw error;
233
201
  }
234
202
  throw new Error(`Cannot get the app definition with app ID ${teamsAppId}`);
@@ -243,17 +211,10 @@ var AppStudioClient;
243
211
  */
244
212
  async function checkExistsInTenant(teamsAppId, appStudioToken, logProvider) {
245
213
  globalVars_1.setErrorContext({ source: "Teams" });
246
- sendStartEvent(constants_1.APP_STUDIO_API_NAMES.EXISTS_IN_TENANTS);
247
- const telemetryProperties = {
248
- [telemetry_1.TelemetryPropertyKey.region]: region
249
- ? String(extractRegionFromBaseUrl(region))
250
- : telemetry_1.TelemetryPropertyValue.Global,
251
- };
252
214
  const requester = createRequesterWithToken(appStudioToken, region);
253
215
  try {
254
216
  const response = await utils_1.RetryHandler.Retry(() => requester.get(`/api/appdefinitions/manifest/${teamsAppId}`));
255
217
  if (response && response.data) {
256
- sendSuccessEvent(constants_1.APP_STUDIO_API_NAMES.EXISTS_IN_TENANTS, telemetryProperties);
257
218
  return response.data;
258
219
  }
259
220
  else {
@@ -261,7 +222,6 @@ var AppStudioClient;
261
222
  }
262
223
  }
263
224
  catch (e) {
264
- wrapException(e, constants_1.APP_STUDIO_API_NAMES.EXISTS_IN_TENANTS, telemetryProperties);
265
225
  return false;
266
226
  }
267
227
  }
@@ -275,12 +235,6 @@ var AppStudioClient;
275
235
  */
276
236
  async function publishTeamsApp(teamsAppId, file, appStudioToken) {
277
237
  var _a;
278
- sendStartEvent(constants_1.APP_STUDIO_API_NAMES.PUBLISH_APP);
279
- const telemetryProperties = {
280
- [telemetry_1.TelemetryPropertyKey.region]: region
281
- ? String(extractRegionFromBaseUrl(region))
282
- : telemetry_1.TelemetryPropertyValue.Global,
283
- };
284
238
  try {
285
239
  const requester = createRequesterWithToken(appStudioToken, region);
286
240
  const response = await utils_1.RetryHandler.Retry(() => requester.post("/api/publishing", file, {
@@ -313,11 +267,10 @@ var AppStudioClient;
313
267
  const error = new Error(response === null || response === void 0 ? void 0 : response.data.error.message);
314
268
  error.response = response;
315
269
  error.request = response.request;
316
- const exception = wrapException(error, constants_1.APP_STUDIO_API_NAMES.PUBLISH_APP, telemetryProperties);
270
+ const exception = wrapException(error, constants_1.APP_STUDIO_API_NAMES.PUBLISH_APP);
317
271
  throw exception;
318
272
  }
319
273
  else {
320
- sendSuccessEvent(constants_1.APP_STUDIO_API_NAMES.PUBLISH_APP, telemetryProperties);
321
274
  return response.data.id;
322
275
  }
323
276
  }
@@ -330,7 +283,7 @@ var AppStudioClient;
330
283
  throw e;
331
284
  }
332
285
  else {
333
- const error = wrapException(e, constants_1.APP_STUDIO_API_NAMES.PUBLISH_APP, telemetryProperties);
286
+ const error = wrapException(e, constants_1.APP_STUDIO_API_NAMES.PUBLISH_APP);
334
287
  throw error;
335
288
  }
336
289
  }
@@ -346,12 +299,6 @@ var AppStudioClient;
346
299
  async function publishTeamsAppUpdate(teamsAppId, file, appStudioToken) {
347
300
  var _a, _b, _c;
348
301
  globalVars_1.setErrorContext({ source: "Teams" });
349
- sendStartEvent(constants_1.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP);
350
- const telemetryProperties = {
351
- [telemetry_1.TelemetryPropertyKey.region]: region
352
- ? String(extractRegionFromBaseUrl(region))
353
- : telemetry_1.TelemetryPropertyValue.Global,
354
- };
355
302
  try {
356
303
  // Get App Definition from Teams App Catalog
357
304
  const appDefinition = await getAppByTeamsAppId(teamsAppId, appStudioToken);
@@ -371,11 +318,10 @@ var AppStudioClient;
371
318
  const error = new Error(((_c = response.data.error) === null || _c === void 0 ? void 0 : _c.message) || response.data.errorMessage);
372
319
  error.response = response;
373
320
  error.request = response.request;
374
- const exception = wrapException(error, constants_1.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP, telemetryProperties);
321
+ const exception = wrapException(error, constants_1.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP);
375
322
  throw exception;
376
323
  }
377
324
  else {
378
- sendSuccessEvent(constants_1.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP, telemetryProperties);
379
325
  return response.data.teamsAppId;
380
326
  }
381
327
  }
@@ -388,7 +334,7 @@ var AppStudioClient;
388
334
  throw error;
389
335
  }
390
336
  else {
391
- const exception = wrapException(error, constants_1.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP, telemetryProperties);
337
+ const exception = wrapException(error, constants_1.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP);
392
338
  throw exception;
393
339
  }
394
340
  }
@@ -402,12 +348,6 @@ var AppStudioClient;
402
348
  */
403
349
  async function getAppByTeamsAppId(teamsAppId, appStudioToken) {
404
350
  globalVars_1.setErrorContext({ source: "Teams" });
405
- sendStartEvent(constants_1.APP_STUDIO_API_NAMES.GET_PUBLISHED_APP);
406
- const telemetryProperties = {
407
- [telemetry_1.TelemetryPropertyKey.region]: region
408
- ? String(extractRegionFromBaseUrl(region))
409
- : telemetry_1.TelemetryPropertyValue.Global,
410
- };
411
351
  const requester = createRequesterWithToken(appStudioToken, region);
412
352
  try {
413
353
  const response = await utils_1.RetryHandler.Retry(() => requester.get(`/api/publishing/${teamsAppId}`));
@@ -422,7 +362,6 @@ var AppStudioClient;
422
362
  displayName: item.displayName,
423
363
  };
424
364
  });
425
- sendSuccessEvent(constants_1.APP_STUDIO_API_NAMES.GET_PUBLISHED_APP, telemetryProperties);
426
365
  return appdefinitions[appdefinitions.length - 1];
427
366
  }
428
367
  else {
@@ -430,7 +369,6 @@ var AppStudioClient;
430
369
  }
431
370
  }
432
371
  catch (e) {
433
- wrapException(e, constants_1.APP_STUDIO_API_NAMES.GET_PUBLISHED_APP, telemetryProperties);
434
372
  return undefined;
435
373
  }
436
374
  }
@@ -468,7 +406,6 @@ var AppStudioClient;
468
406
  AppStudioClient.checkPermission = checkPermission;
469
407
  async function grantPermission(teamsAppId, appStudioToken, newUser, logProvider) {
470
408
  var _a, _b, _c, _d;
471
- sendStartEvent(constants_1.APP_STUDIO_API_NAMES.UPDATE_OWNER);
472
409
  let app;
473
410
  try {
474
411
  app = await getApp(teamsAppId, appStudioToken, logProvider);
@@ -514,7 +451,6 @@ var AppStudioClient;
514
451
  if (!response || !response.data || !checkUser(response.data, newUser)) {
515
452
  throw new Error(constants_1.ErrorMessages.GrantPermissionFailed);
516
453
  }
517
- sendSuccessEvent(constants_1.APP_STUDIO_API_NAMES.UPDATE_OWNER);
518
454
  }
519
455
  catch (err) {
520
456
  if (((_d = err === null || err === void 0 ? void 0 : err.message) === null || _d === void 0 ? void 0 : _d.indexOf("Request failed with status code 400")) >= 0) {
@@ -530,19 +466,12 @@ var AppStudioClient;
530
466
  AppStudioClient.grantPermission = grantPermission;
531
467
  async function getAppPackage(teamsAppId, appStudioToken, logProvider) {
532
468
  globalVars_1.setErrorContext({ source: "Teams" });
533
- sendStartEvent(constants_1.APP_STUDIO_API_NAMES.GET_APP_PACKAGE);
534
- const telemetryProperties = {
535
- [telemetry_1.TelemetryPropertyKey.region]: region
536
- ? String(extractRegionFromBaseUrl(region))
537
- : telemetry_1.TelemetryPropertyValue.Global,
538
- };
539
469
  logProvider === null || logProvider === void 0 ? void 0 : logProvider.info("Downloading app package for app " + teamsAppId);
540
470
  const requester = createRequesterWithToken(appStudioToken, region);
541
471
  try {
542
472
  const response = await utils_1.RetryHandler.Retry(() => requester.get(`/api/appdefinitions/${teamsAppId}/manifest`));
543
473
  if (response && response.data) {
544
474
  logProvider === null || logProvider === void 0 ? void 0 : logProvider.info("Download app package successfully");
545
- sendSuccessEvent(constants_1.APP_STUDIO_API_NAMES.GET_APP_PACKAGE, telemetryProperties);
546
475
  return response.data;
547
476
  }
548
477
  else {
@@ -550,32 +479,88 @@ var AppStudioClient;
550
479
  }
551
480
  }
552
481
  catch (e) {
553
- const error = wrapException(e, constants_1.APP_STUDIO_API_NAMES.GET_APP_PACKAGE, telemetryProperties);
482
+ const error = wrapException(e, constants_1.APP_STUDIO_API_NAMES.GET_APP_PACKAGE);
554
483
  throw error;
555
484
  }
556
485
  }
557
486
  AppStudioClient.getAppPackage = getAppPackage;
487
+ /**
488
+ * Send the app package for partner center validation
489
+ * @param file
490
+ * @param appStudioToken
491
+ * @returns
492
+ */
558
493
  async function partnerCenterAppPackageValidation(file, appStudioToken) {
559
- sendStartEvent(constants_1.APP_STUDIO_API_NAMES.VALIDATE_APP_PACKAGE);
560
- const telemetryProperties = {
561
- [telemetry_1.TelemetryPropertyKey.region]: region
562
- ? String(extractRegionFromBaseUrl(region))
563
- : telemetry_1.TelemetryPropertyValue.Global,
564
- };
565
494
  const requester = createRequesterWithToken(appStudioToken, region);
566
495
  try {
567
496
  const response = await utils_1.RetryHandler.Retry(() => requester.post("/api/appdefinitions/partnerCenterAppPackageValidation", file, {
568
497
  headers: { "Content-Type": "application/zip" },
569
498
  }));
570
- sendSuccessEvent(constants_1.APP_STUDIO_API_NAMES.VALIDATE_APP_PACKAGE, telemetryProperties);
571
499
  return response === null || response === void 0 ? void 0 : response.data;
572
500
  }
573
501
  catch (e) {
574
- const error = wrapException(e, constants_1.APP_STUDIO_API_NAMES.VALIDATE_APP_PACKAGE, telemetryProperties);
502
+ const error = wrapException(e, constants_1.APP_STUDIO_API_NAMES.VALIDATE_APP_PACKAGE);
575
503
  throw error;
576
504
  }
577
505
  }
578
506
  AppStudioClient.partnerCenterAppPackageValidation = partnerCenterAppPackageValidation;
507
+ /**
508
+ * Submit App Validation Request (In-App) for which App Definitions are stored at TDP.
509
+ * @param teamsAppId
510
+ * @param appStudioToken
511
+ * @returns
512
+ */
513
+ async function submitAppValidationRequest(teamsAppId, appStudioToken) {
514
+ const requester = createRequesterWithToken(appStudioToken, region);
515
+ try {
516
+ const response = await utils_1.RetryHandler.Retry(() => requester.post(`/api/v1.0/appvalidations/appdefinition/validate`, {
517
+ AppEnvironmentId: null,
518
+ appDefinitionId: teamsAppId,
519
+ }));
520
+ return response === null || response === void 0 ? void 0 : response.data;
521
+ }
522
+ catch (e) {
523
+ const error = wrapException(e, constants_1.APP_STUDIO_API_NAMES.SUMIT_APP_VALIDATION);
524
+ throw error;
525
+ }
526
+ }
527
+ AppStudioClient.submitAppValidationRequest = submitAppValidationRequest;
528
+ /**
529
+ * Get App validation requests sumitted by the user
530
+ * @param teamsAppId
531
+ * @param appStudioToken
532
+ * @returns
533
+ */
534
+ async function getAppValidationRequestList(teamsAppId, appStudioToken) {
535
+ const requester = createRequesterWithToken(appStudioToken, region);
536
+ try {
537
+ const response = await utils_1.RetryHandler.Retry(() => requester.get(`/api/v1.0/appvalidations/appdefinitions/${teamsAppId}`));
538
+ return response === null || response === void 0 ? void 0 : response.data;
539
+ }
540
+ catch (e) {
541
+ const error = wrapException(e, constants_1.APP_STUDIO_API_NAMES.GET_APP_VALIDATION_REQUESTS);
542
+ throw error;
543
+ }
544
+ }
545
+ AppStudioClient.getAppValidationRequestList = getAppValidationRequestList;
546
+ /**
547
+ * Get App validation results by provided app validation id
548
+ * @param appValidationId
549
+ * @param appStudioToken
550
+ * @returns
551
+ */
552
+ async function getAppValidationById(appValidationId, appStudioToken) {
553
+ const requester = createRequesterWithToken(appStudioToken, region);
554
+ try {
555
+ const response = await utils_1.RetryHandler.Retry(() => requester.get(`/api/v1.0/appvalidations/${appValidationId}`));
556
+ return response === null || response === void 0 ? void 0 : response.data;
557
+ }
558
+ catch (e) {
559
+ const error = wrapException(e, constants_1.APP_STUDIO_API_NAMES.GET_APP_VALIDATION_RESULT);
560
+ throw error;
561
+ }
562
+ }
563
+ AppStudioClient.getAppValidationById = getAppValidationById;
579
564
  function checkUser(app, newUser) {
580
565
  var _a;
581
566
  const findUser = (_a = app.userList) === null || _a === void 0 ? void 0 : _a.findIndex((user) => user["aadId"] === newUser.aadId);
@@ -609,27 +594,27 @@ var AppStudioClient;
609
594
  result = (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.isSideloadingAllowed;
610
595
  }
611
596
  if (result !== undefined) {
612
- telemetry_2.sendTelemetryEvent(telemetry_2.Component.core, telemetry_2.TelemetryEvent.CheckSideloading, {
613
- [telemetry_2.TelemetryProperty.IsSideloadingAllowed]: result.toString() + "",
597
+ telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.CheckSideloading, {
598
+ [telemetry_1.TelemetryProperty.IsSideloadingAllowed]: result.toString() + "",
614
599
  });
615
600
  }
616
601
  else {
617
- telemetry_2.sendTelemetryErrorEvent(telemetry_2.Component.core, telemetry_2.TelemetryEvent.CheckSideloading, new teamsfx_api_1.SystemError("M365Account", "UnknownValue",
602
+ telemetry_1.sendTelemetryErrorEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.CheckSideloading, new teamsfx_api_1.SystemError("M365Account", "UnknownValue",
618
603
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
619
604
  `AppStudio response code: ${response.status}, body: ${response.data}`), {
620
- [telemetry_2.TelemetryProperty.CheckSideloadingStatusCode]: `${response.status}`,
621
- [telemetry_2.TelemetryProperty.CheckSideloadingMethod]: "get",
622
- [telemetry_2.TelemetryProperty.CheckSideloadingUrl]: apiName,
605
+ [telemetry_1.TelemetryProperty.CheckSideloadingStatusCode]: `${response.status}`,
606
+ [telemetry_1.TelemetryProperty.CheckSideloadingMethod]: "get",
607
+ [telemetry_1.TelemetryProperty.CheckSideloadingUrl]: apiName,
623
608
  });
624
609
  }
625
610
  return result;
626
611
  }
627
612
  catch (error) {
628
- telemetry_2.sendTelemetryErrorEvent(telemetry_2.Component.core, telemetry_2.TelemetryEvent.CheckSideloading, new teamsApp_1.CheckSideloadingPermissionFailedError(error, (_e = (_d = (_c = error.response) === null || _c === void 0 ? void 0 : _c.headers) === null || _d === void 0 ? void 0 : _d[constants_1.Constants.CORRELATION_ID]) !== null && _e !== void 0 ? _e : "", apiName, ((_f = error.response) === null || _f === void 0 ? void 0 : _f.data) ? `data: ${JSON.stringify(error.response.data)}` : ""), {
613
+ telemetry_1.sendTelemetryErrorEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.CheckSideloading, new teamsApp_1.CheckSideloadingPermissionFailedError(error, (_e = (_d = (_c = error.response) === null || _c === void 0 ? void 0 : _c.headers) === null || _d === void 0 ? void 0 : _d[constants_1.Constants.CORRELATION_ID]) !== null && _e !== void 0 ? _e : "", apiName, ((_f = error.response) === null || _f === void 0 ? void 0 : _f.data) ? `data: ${JSON.stringify(error.response.data)}` : ""), {
629
614
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
630
- [telemetry_2.TelemetryProperty.CheckSideloadingStatusCode]: `${(_g = error === null || error === void 0 ? void 0 : error.response) === null || _g === void 0 ? void 0 : _g.status}`,
631
- [telemetry_2.TelemetryProperty.CheckSideloadingMethod]: "get",
632
- [telemetry_2.TelemetryProperty.CheckSideloadingUrl]: apiName,
615
+ [telemetry_1.TelemetryProperty.CheckSideloadingStatusCode]: `${(_g = error === null || error === void 0 ? void 0 : error.response) === null || _g === void 0 ? void 0 : _g.status}`,
616
+ [telemetry_1.TelemetryProperty.CheckSideloadingMethod]: "get",
617
+ [telemetry_1.TelemetryProperty.CheckSideloadingUrl]: apiName,
633
618
  });
634
619
  await tools_1.waitSeconds((retry + 1) * retryIntervalSeconds);
635
620
  }
@@ -643,11 +628,9 @@ var AppStudioClient;
643
628
  * @param apiKeyRegistration
644
629
  */
645
630
  async function createApiKeyRegistration(appStudioToken, apiKeyRegistration) {
646
- sendStartEvent(constants_1.APP_STUDIO_API_NAMES.CREATE_API_KEY);
647
631
  const requester = createRequesterWithToken(appStudioToken);
648
632
  try {
649
633
  const response = await utils_1.RetryHandler.Retry(() => requester.post("/api/v1.0/apiSecretRegistrations", apiKeyRegistration));
650
- sendSuccessEvent(constants_1.APP_STUDIO_API_NAMES.CREATE_API_KEY);
651
634
  return response === null || response === void 0 ? void 0 : response.data;
652
635
  }
653
636
  catch (e) {
@@ -662,11 +645,9 @@ var AppStudioClient;
662
645
  * @param apiSecretRegistrationId
663
646
  */
664
647
  async function getApiKeyRegistrationById(appStudioToken, apiSecretRegistrationId) {
665
- sendStartEvent(constants_1.APP_STUDIO_API_NAMES.GET_API_KEY);
666
648
  const requester = createRequesterWithToken(appStudioToken);
667
649
  try {
668
650
  const response = await utils_1.RetryHandler.Retry(() => requester.get(`/api/v1.0/apiSecretRegistrations/${apiSecretRegistrationId}`));
669
- sendSuccessEvent(constants_1.APP_STUDIO_API_NAMES.GET_API_KEY);
670
651
  return response === null || response === void 0 ? void 0 : response.data;
671
652
  }
672
653
  catch (e) {
@@ -675,11 +656,5 @@ var AppStudioClient;
675
656
  }
676
657
  }
677
658
  AppStudioClient.getApiKeyRegistrationById = getApiKeyRegistrationById;
678
- function extractRegionFromBaseUrl(url) {
679
- if (region && region.length >= 32) {
680
- return region.substring(32);
681
- }
682
- return undefined;
683
- }
684
659
  })(AppStudioClient = exports.AppStudioClient || (exports.AppStudioClient = {}));
685
660
  //# sourceMappingURL=appStudioClient.js.map