@microsoft/teamsfx-core 2.0.4-alpha.dc097d3df.0 → 2.0.4-alpha.e432bab97.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 (675) hide show
  1. package/build/common/deps-checker/checkerFactory.d.ts +1 -2
  2. package/build/common/deps-checker/checkerFactory.d.ts.map +1 -1
  3. package/build/common/deps-checker/checkerFactory.js +2 -2
  4. package/build/common/deps-checker/checkerFactory.js.map +1 -1
  5. package/build/common/deps-checker/depsLogger.d.ts +14 -14
  6. package/build/common/deps-checker/depsLogger.d.ts.map +1 -1
  7. package/build/common/deps-checker/depsLogger.js +7 -21
  8. package/build/common/deps-checker/depsLogger.js.map +1 -1
  9. package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
  10. package/build/common/deps-checker/internal/dotnetChecker.js +42 -37
  11. package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
  12. package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
  13. package/build/common/deps-checker/internal/funcToolChecker.js +2 -2
  14. package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
  15. package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
  16. package/build/common/deps-checker/internal/nodeChecker.js +8 -8
  17. package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
  18. package/build/common/deps-checker/internal/vxTestAppChecker.js +1 -1
  19. package/build/common/deps-checker/internal/vxTestAppChecker.js.map +1 -1
  20. package/build/common/deps-checker/util/cpUtils.d.ts +1 -1
  21. package/build/common/deps-checker/util/cpUtils.d.ts.map +1 -1
  22. package/build/common/deps-checker/util/cpUtils.js +5 -5
  23. package/build/common/deps-checker/util/cpUtils.js.map +1 -1
  24. package/build/common/deps-checker/util/fileHelper.d.ts.map +1 -1
  25. package/build/common/deps-checker/util/fileHelper.js +2 -0
  26. package/build/common/deps-checker/util/fileHelper.js.map +1 -1
  27. package/build/common/deps-checker/util/progressIndicator.js +2 -2
  28. package/build/common/deps-checker/util/progressIndicator.js.map +1 -1
  29. package/build/common/featureFlags.d.ts +1 -0
  30. package/build/common/featureFlags.d.ts.map +1 -1
  31. package/build/common/featureFlags.js +7 -2
  32. package/build/common/featureFlags.js.map +1 -1
  33. package/build/common/jsonUtils.d.ts.map +1 -1
  34. package/build/common/jsonUtils.js +2 -0
  35. package/build/common/jsonUtils.js.map +1 -1
  36. package/build/common/local/localCertificateManager.d.ts.map +1 -1
  37. package/build/common/local/localCertificateManager.js +4 -1
  38. package/build/common/local/localCertificateManager.js.map +1 -1
  39. package/build/common/local/packageJsonHelper.d.ts.map +1 -1
  40. package/build/common/local/packageJsonHelper.js +1 -0
  41. package/build/common/local/packageJsonHelper.js.map +1 -1
  42. package/build/common/local/portChecker.js.map +1 -1
  43. package/build/common/m365/launchHelper.d.ts +2 -2
  44. package/build/common/m365/launchHelper.d.ts.map +1 -1
  45. package/build/common/m365/launchHelper.js +13 -4
  46. package/build/common/m365/launchHelper.js.map +1 -1
  47. package/build/common/m365/packageService.d.ts.map +1 -1
  48. package/build/common/m365/packageService.js +38 -0
  49. package/build/common/m365/packageService.js.map +1 -1
  50. package/build/common/projectSettingsHelper.d.ts.map +1 -1
  51. package/build/common/projectSettingsHelper.js +1 -0
  52. package/build/common/projectSettingsHelper.js.map +1 -1
  53. package/build/common/samples-config-v3.json +234 -27
  54. package/build/common/samples.d.ts +10 -6
  55. package/build/common/samples.d.ts.map +1 -1
  56. package/build/common/samples.js +31 -29
  57. package/build/common/samples.js.map +1 -1
  58. package/build/common/spec-parser/adaptiveCardGenerator.d.ts +5 -0
  59. package/build/common/spec-parser/adaptiveCardGenerator.d.ts.map +1 -0
  60. package/build/common/spec-parser/adaptiveCardGenerator.js +119 -0
  61. package/build/common/spec-parser/adaptiveCardGenerator.js.map +1 -0
  62. package/build/common/spec-parser/constants.d.ts +20 -0
  63. package/build/common/spec-parser/constants.d.ts.map +1 -0
  64. package/build/common/spec-parser/constants.js +27 -0
  65. package/build/common/spec-parser/constants.js.map +1 -0
  66. package/build/common/spec-parser/interfaces.d.ts +133 -0
  67. package/build/common/spec-parser/interfaces.d.ts.map +1 -0
  68. package/build/common/spec-parser/interfaces.js +46 -0
  69. package/build/common/spec-parser/interfaces.js.map +1 -0
  70. package/build/common/spec-parser/manifestUpdater.d.ts +5 -0
  71. package/build/common/spec-parser/manifestUpdater.d.ts.map +1 -0
  72. package/build/common/spec-parser/manifestUpdater.js +81 -0
  73. package/build/common/spec-parser/manifestUpdater.js.map +1 -0
  74. package/build/common/spec-parser/specFilter.d.ts +3 -0
  75. package/build/common/spec-parser/specFilter.d.ts.map +1 -0
  76. package/build/common/spec-parser/specFilter.js +40 -0
  77. package/build/common/spec-parser/specFilter.js.map +1 -0
  78. package/build/common/spec-parser/specParser.d.ts +45 -0
  79. package/build/common/spec-parser/specParser.d.ts.map +1 -0
  80. package/build/common/spec-parser/specParser.js +247 -0
  81. package/build/common/spec-parser/specParser.js.map +1 -0
  82. package/build/common/spec-parser/specParserError.d.ts +6 -0
  83. package/build/common/spec-parser/specParserError.d.ts.map +1 -0
  84. package/build/common/spec-parser/specParserError.js +13 -0
  85. package/build/common/spec-parser/specParserError.js.map +1 -0
  86. package/build/common/spec-parser/utils.d.ts +8 -0
  87. package/build/common/spec-parser/utils.d.ts.map +1 -0
  88. package/build/common/spec-parser/utils.js +91 -0
  89. package/build/common/spec-parser/utils.js.map +1 -0
  90. package/build/common/telemetry.d.ts +7 -5
  91. package/build/common/telemetry.d.ts.map +1 -1
  92. package/build/common/telemetry.js +40 -15
  93. package/build/common/telemetry.js.map +1 -1
  94. package/build/common/tools.js +3 -3
  95. package/build/common/tools.js.map +1 -1
  96. package/build/common/utils.d.ts +1 -0
  97. package/build/common/utils.d.ts.map +1 -1
  98. package/build/common/utils.js +5 -1
  99. package/build/common/utils.js.map +1 -1
  100. package/build/component/configManager/constant.d.ts.map +1 -1
  101. package/build/component/configManager/constant.js +4 -2
  102. package/build/component/configManager/constant.js.map +1 -1
  103. package/build/component/configManager/interface.d.ts +5 -0
  104. package/build/component/configManager/interface.d.ts.map +1 -1
  105. package/build/component/configManager/interface.js +2 -3
  106. package/build/component/configManager/interface.js.map +1 -1
  107. package/build/component/configManager/lifecycle.d.ts.map +1 -1
  108. package/build/component/configManager/lifecycle.js +22 -13
  109. package/build/component/configManager/lifecycle.js.map +1 -1
  110. package/build/component/configManager/parser.d.ts.map +1 -1
  111. package/build/component/configManager/parser.js +17 -9
  112. package/build/component/configManager/parser.js.map +1 -1
  113. package/build/component/configManager/validator.d.ts +0 -3
  114. package/build/component/configManager/validator.d.ts.map +1 -1
  115. package/build/component/configManager/validator.js +4 -12
  116. package/build/component/configManager/validator.js.map +1 -1
  117. package/build/component/constants.d.ts +10 -23
  118. package/build/component/constants.d.ts.map +1 -1
  119. package/build/component/constants.js +11 -24
  120. package/build/component/constants.js.map +1 -1
  121. package/build/component/coordinator/index.d.ts +12 -8
  122. package/build/component/coordinator/index.d.ts.map +1 -1
  123. package/build/component/coordinator/index.js +76 -59
  124. package/build/component/coordinator/index.js.map +1 -1
  125. package/build/component/coordinator/summary.d.ts.map +1 -1
  126. package/build/component/coordinator/summary.js +4 -1
  127. package/build/component/coordinator/summary.js.map +1 -1
  128. package/build/component/developerPortalScaffoldUtils.d.ts +1 -1
  129. package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
  130. package/build/component/developerPortalScaffoldUtils.js +7 -7
  131. package/build/component/developerPortalScaffoldUtils.js.map +1 -1
  132. package/build/component/driver/aad/create.d.ts +1 -0
  133. package/build/component/driver/aad/create.d.ts.map +1 -1
  134. package/build/component/driver/aad/create.js +2 -5
  135. package/build/component/driver/aad/create.js.map +1 -1
  136. package/build/component/driver/aad/error/aadManifestError.d.ts +13 -3
  137. package/build/component/driver/aad/error/aadManifestError.d.ts.map +1 -1
  138. package/build/component/driver/aad/error/aadManifestError.js +51 -5
  139. package/build/component/driver/aad/error/aadManifestError.js.map +1 -1
  140. package/build/component/driver/aad/interface/AADApplication.js +1 -1
  141. package/build/component/driver/aad/interface/AADApplication.js.map +1 -1
  142. package/build/component/driver/aad/interface/AADManifest.js +1 -1
  143. package/build/component/driver/aad/interface/AADManifest.js.map +1 -1
  144. package/build/component/driver/aad/update.d.ts +1 -0
  145. package/build/component/driver/aad/update.d.ts.map +1 -1
  146. package/build/component/driver/aad/update.js +2 -5
  147. package/build/component/driver/aad/update.js.map +1 -1
  148. package/build/component/driver/aad/utility/aadAppClient.d.ts +1 -1
  149. package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
  150. package/build/component/driver/aad/utility/aadAppClient.js +58 -13
  151. package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
  152. package/build/component/driver/aad/utility/aadManifestHelper.d.ts.map +1 -1
  153. package/build/component/driver/aad/utility/aadManifestHelper.js +14 -19
  154. package/build/component/driver/aad/utility/aadManifestHelper.js.map +1 -1
  155. package/build/component/driver/aad/utility/buildAadManifest.d.ts.map +1 -1
  156. package/build/component/driver/aad/utility/buildAadManifest.js +12 -2
  157. package/build/component/driver/aad/utility/buildAadManifest.js.map +1 -1
  158. package/build/component/driver/aad/utility/constants.d.ts +3 -0
  159. package/build/component/driver/aad/utility/constants.d.ts.map +1 -1
  160. package/build/component/driver/aad/utility/constants.js +4 -1
  161. package/build/component/driver/aad/utility/constants.js.map +1 -1
  162. package/build/component/driver/add/addWebPart.js +1 -1
  163. package/build/component/driver/add/addWebPart.js.map +1 -1
  164. package/build/component/driver/arm/deploy.d.ts +1 -0
  165. package/build/component/driver/arm/deploy.d.ts.map +1 -1
  166. package/build/component/driver/arm/deploy.js +1 -8
  167. package/build/component/driver/arm/deploy.js.map +1 -1
  168. package/build/component/driver/arm/deployImpl.d.ts +2 -1
  169. package/build/component/driver/arm/deployImpl.d.ts.map +1 -1
  170. package/build/component/driver/arm/deployImpl.js +15 -0
  171. package/build/component/driver/arm/deployImpl.js.map +1 -1
  172. package/build/component/driver/arm/util/bicepChecker.d.ts.map +1 -1
  173. package/build/component/driver/arm/util/bicepChecker.js +9 -6
  174. package/build/component/driver/arm/util/bicepChecker.js.map +1 -1
  175. package/build/component/driver/arm/util/handleError.js.map +1 -1
  176. package/build/component/driver/arm/validator.d.ts.map +1 -1
  177. package/build/component/driver/arm/validator.js +3 -3
  178. package/build/component/driver/arm/validator.js.map +1 -1
  179. package/build/component/driver/botAadApp/create.d.ts +1 -0
  180. package/build/component/driver/botAadApp/create.d.ts.map +1 -1
  181. package/build/component/driver/botAadApp/create.js +4 -7
  182. package/build/component/driver/botAadApp/create.js.map +1 -1
  183. package/build/component/driver/botFramework/createOrUpdateBot.d.ts +1 -0
  184. package/build/component/driver/botFramework/createOrUpdateBot.d.ts.map +1 -1
  185. package/build/component/driver/botFramework/createOrUpdateBot.js +7 -11
  186. package/build/component/driver/botFramework/createOrUpdateBot.js.map +1 -1
  187. package/build/component/driver/deploy/azure/azureStorageDeployDriver.d.ts.map +1 -1
  188. package/build/component/driver/deploy/azure/azureStorageDeployDriver.js +12 -5
  189. package/build/component/driver/deploy/azure/azureStorageDeployDriver.js.map +1 -1
  190. package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.d.ts.map +1 -1
  191. package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js +11 -4
  192. package/build/component/driver/deploy/azure/azureStorageStaticWebsiteConfigDriver.js.map +1 -1
  193. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
  194. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +22 -14
  195. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
  196. package/build/component/driver/deploy/azure/impl/azureDeployImpl.d.ts.map +1 -1
  197. package/build/component/driver/deploy/azure/impl/azureDeployImpl.js +8 -8
  198. package/build/component/driver/deploy/azure/impl/azureDeployImpl.js.map +1 -1
  199. package/build/component/driver/deploy/azure/impl/baseDeployImpl.js +4 -4
  200. package/build/component/driver/deploy/azure/impl/baseDeployImpl.js.map +1 -1
  201. package/build/component/driver/deploy/spfx/deployDriver.d.ts +1 -0
  202. package/build/component/driver/deploy/spfx/deployDriver.d.ts.map +1 -1
  203. package/build/component/driver/deploy/spfx/deployDriver.js +11 -5
  204. package/build/component/driver/deploy/spfx/deployDriver.js.map +1 -1
  205. package/build/component/driver/devTool/installDriver.d.ts +1 -0
  206. package/build/component/driver/devTool/installDriver.d.ts.map +1 -1
  207. package/build/component/driver/devTool/installDriver.js +10 -6
  208. package/build/component/driver/devTool/installDriver.js.map +1 -1
  209. package/build/component/driver/file/createOrUpdateEnvironmentFile.d.ts +1 -0
  210. package/build/component/driver/file/createOrUpdateEnvironmentFile.d.ts.map +1 -1
  211. package/build/component/driver/file/createOrUpdateEnvironmentFile.js +5 -11
  212. package/build/component/driver/file/createOrUpdateEnvironmentFile.js.map +1 -1
  213. package/build/component/driver/file/createOrUpdateJsonFile.d.ts +1 -0
  214. package/build/component/driver/file/createOrUpdateJsonFile.d.ts.map +1 -1
  215. package/build/component/driver/file/createOrUpdateJsonFile.js +5 -11
  216. package/build/component/driver/file/createOrUpdateJsonFile.js.map +1 -1
  217. package/build/component/driver/interface/buildAndDeployArgs.d.ts +3 -6
  218. package/build/component/driver/interface/buildAndDeployArgs.d.ts.map +1 -1
  219. package/build/component/driver/interface/stepDriver.d.ts +1 -0
  220. package/build/component/driver/interface/stepDriver.d.ts.map +1 -1
  221. package/build/component/driver/m365/acquire.d.ts +1 -0
  222. package/build/component/driver/m365/acquire.d.ts.map +1 -1
  223. package/build/component/driver/m365/acquire.js +5 -11
  224. package/build/component/driver/m365/acquire.js.map +1 -1
  225. package/build/component/driver/script/baseBuildDriver.d.ts.map +1 -1
  226. package/build/component/driver/script/baseBuildDriver.js +1 -0
  227. package/build/component/driver/script/baseBuildDriver.js.map +1 -1
  228. package/build/component/driver/script/scriptDriver.d.ts +1 -0
  229. package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
  230. package/build/component/driver/script/scriptDriver.js +30 -21
  231. package/build/component/driver/script/scriptDriver.js.map +1 -1
  232. package/build/component/driver/teamsApp/appStudio.d.ts.map +1 -1
  233. package/build/component/driver/teamsApp/appStudio.js +6 -6
  234. package/build/component/driver/teamsApp/appStudio.js.map +1 -1
  235. package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
  236. package/build/component/driver/teamsApp/clients/appStudioClient.js +21 -5
  237. package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
  238. package/build/component/driver/teamsApp/clients/authSvcClient.d.ts +1 -1
  239. package/build/component/driver/teamsApp/clients/authSvcClient.d.ts.map +1 -1
  240. package/build/component/driver/teamsApp/clients/authSvcClient.js +3 -1
  241. package/build/component/driver/teamsApp/clients/authSvcClient.js.map +1 -1
  242. package/build/component/driver/teamsApp/configure.d.ts +1 -0
  243. package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
  244. package/build/component/driver/teamsApp/configure.js +4 -17
  245. package/build/component/driver/teamsApp/configure.js.map +1 -1
  246. package/build/component/driver/teamsApp/constants.d.ts +0 -1
  247. package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
  248. package/build/component/driver/teamsApp/constants.js +1 -2
  249. package/build/component/driver/teamsApp/constants.js.map +1 -1
  250. package/build/component/driver/teamsApp/copyAppPackageToSPFx.d.ts +1 -0
  251. package/build/component/driver/teamsApp/copyAppPackageToSPFx.d.ts.map +1 -1
  252. package/build/component/driver/teamsApp/copyAppPackageToSPFx.js +3 -6
  253. package/build/component/driver/teamsApp/copyAppPackageToSPFx.js.map +1 -1
  254. package/build/component/driver/teamsApp/create.d.ts +1 -0
  255. package/build/component/driver/teamsApp/create.d.ts.map +1 -1
  256. package/build/component/driver/teamsApp/create.js +4 -5
  257. package/build/component/driver/teamsApp/create.js.map +1 -1
  258. package/build/component/driver/teamsApp/createAppPackage.d.ts +3 -2
  259. package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
  260. package/build/component/driver/teamsApp/createAppPackage.js +47 -23
  261. package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
  262. package/build/component/driver/teamsApp/errors.d.ts.map +1 -1
  263. package/build/component/driver/teamsApp/errors.js +2 -0
  264. package/build/component/driver/teamsApp/errors.js.map +1 -1
  265. package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtension.d.ts +3 -0
  266. package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtension.d.ts.map +1 -1
  267. package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtensionCommand.d.ts +1 -0
  268. package/build/component/driver/teamsApp/interfaces/appdefinitions/messagingExtensionCommand.d.ts.map +1 -1
  269. package/build/component/driver/teamsApp/publishAppPackage.d.ts +1 -0
  270. package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
  271. package/build/component/driver/teamsApp/publishAppPackage.js +2 -5
  272. package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
  273. package/build/component/driver/teamsApp/results.d.ts.map +1 -1
  274. package/build/component/driver/teamsApp/results.js +2 -0
  275. package/build/component/driver/teamsApp/results.js.map +1 -1
  276. package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +6 -1
  277. package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
  278. package/build/component/driver/teamsApp/utils/ManifestUtils.js +19 -2
  279. package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
  280. package/build/component/driver/teamsApp/utils/utils.d.ts +2 -3
  281. package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
  282. package/build/component/driver/teamsApp/utils/utils.js +21 -19
  283. package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
  284. package/build/component/driver/teamsApp/validate.d.ts +1 -0
  285. package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
  286. package/build/component/driver/teamsApp/validate.js +8 -5
  287. package/build/component/driver/teamsApp/validate.js.map +1 -1
  288. package/build/component/driver/teamsApp/validateAppPackage.d.ts +1 -0
  289. package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
  290. package/build/component/driver/teamsApp/validateAppPackage.js +26 -18
  291. package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
  292. package/build/component/error/componentError.d.ts +2 -5
  293. package/build/component/error/componentError.d.ts.map +1 -1
  294. package/build/component/error/componentError.js +9 -14
  295. package/build/component/error/componentError.js.map +1 -1
  296. package/build/component/feature/collaboration.d.ts.map +1 -1
  297. package/build/component/feature/collaboration.js +50 -21
  298. package/build/component/feature/collaboration.js.map +1 -1
  299. package/build/component/feature/createAuthFiles.js.map +1 -1
  300. package/build/component/generator/copilotPlugin/generator.d.ts +8 -0
  301. package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -0
  302. package/build/component/generator/copilotPlugin/generator.js +142 -0
  303. package/build/component/generator/copilotPlugin/generator.js.map +1 -0
  304. package/build/component/generator/copilotPlugin/helper.d.ts +30 -0
  305. package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -0
  306. package/build/component/generator/copilotPlugin/helper.js +261 -0
  307. package/build/component/generator/copilotPlugin/helper.js.map +1 -0
  308. package/build/component/generator/error.d.ts +1 -1
  309. package/build/component/generator/error.d.ts.map +1 -1
  310. package/build/component/generator/error.js +2 -2
  311. package/build/component/generator/error.js.map +1 -1
  312. package/build/component/generator/generator.d.ts.map +1 -1
  313. package/build/component/generator/generator.js +24 -20
  314. package/build/component/generator/generator.js.map +1 -1
  315. package/build/component/generator/generatorAction.d.ts.map +1 -1
  316. package/build/component/generator/generatorAction.js +4 -3
  317. package/build/component/generator/generatorAction.js.map +1 -1
  318. package/build/component/generator/officeAddin/config/projectProperties.d.ts.map +1 -1
  319. package/build/component/generator/officeAddin/config/projectProperties.js +2 -0
  320. package/build/component/generator/officeAddin/config/projectProperties.js.map +1 -1
  321. package/build/component/generator/officeAddin/config/projectsJsonData.d.ts.map +1 -1
  322. package/build/component/generator/officeAddin/config/projectsJsonData.js +2 -0
  323. package/build/component/generator/officeAddin/config/projectsJsonData.js.map +1 -1
  324. package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
  325. package/build/component/generator/officeAddin/generator.js +17 -9
  326. package/build/component/generator/officeAddin/generator.js.map +1 -1
  327. package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
  328. package/build/component/generator/officeAddin/helperMethods.js +11 -5
  329. package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
  330. package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts +1 -1
  331. package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts.map +1 -1
  332. package/build/component/generator/spfx/depsChecker/generatorChecker.js +12 -12
  333. package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +1 -1
  334. package/build/component/generator/spfx/depsChecker/yoChecker.d.ts +1 -1
  335. package/build/component/generator/spfx/depsChecker/yoChecker.d.ts.map +1 -1
  336. package/build/component/generator/spfx/depsChecker/yoChecker.js +10 -10
  337. package/build/component/generator/spfx/depsChecker/yoChecker.js.map +1 -1
  338. package/build/component/generator/spfx/error.d.ts +2 -0
  339. package/build/component/generator/spfx/error.d.ts.map +1 -1
  340. package/build/component/generator/spfx/error.js +21 -1
  341. package/build/component/generator/spfx/error.js.map +1 -1
  342. package/build/component/generator/spfx/spfxGenerator.d.ts +4 -1
  343. package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
  344. package/build/component/generator/spfx/spfxGenerator.js +141 -117
  345. package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
  346. package/build/component/generator/spfx/utils/constants.d.ts +1 -0
  347. package/build/component/generator/spfx/utils/constants.d.ts.map +1 -1
  348. package/build/component/generator/spfx/utils/constants.js +2 -0
  349. package/build/component/generator/spfx/utils/constants.js.map +1 -1
  350. package/build/component/generator/spfx/utils/telemetryEvents.d.ts +2 -1
  351. package/build/component/generator/spfx/utils/telemetryEvents.d.ts.map +1 -1
  352. package/build/component/generator/spfx/utils/telemetryEvents.js +1 -0
  353. package/build/component/generator/spfx/utils/telemetryEvents.js.map +1 -1
  354. package/build/component/generator/spfx/utils/utils.js +3 -3
  355. package/build/component/generator/spfx/utils/utils.js.map +1 -1
  356. package/build/component/generator/utils.d.ts +10 -3
  357. package/build/component/generator/utils.d.ts.map +1 -1
  358. package/build/component/generator/utils.js +6 -9
  359. package/build/component/generator/utils.js.map +1 -1
  360. package/build/component/messages.d.ts +2 -3
  361. package/build/component/messages.d.ts.map +1 -1
  362. package/build/component/messages.js +3 -4
  363. package/build/component/messages.js.map +1 -1
  364. package/build/component/middleware/questionMW.d.ts +2 -2
  365. package/build/component/middleware/questionMW.d.ts.map +1 -1
  366. package/build/component/middleware/questionMW.js +7 -11
  367. package/build/component/middleware/questionMW.js.map +1 -1
  368. package/build/component/migrate.d.ts.map +1 -1
  369. package/build/component/migrate.js +2 -0
  370. package/build/component/migrate.js.map +1 -1
  371. package/build/component/provisionUtils.d.ts +3 -3
  372. package/build/component/provisionUtils.d.ts.map +1 -1
  373. package/build/component/provisionUtils.js +3 -3
  374. package/build/component/provisionUtils.js.map +1 -1
  375. package/build/component/registerService.d.ts +0 -1
  376. package/build/component/registerService.d.ts.map +1 -1
  377. package/build/component/registerService.js +0 -1
  378. package/build/component/registerService.js.map +1 -1
  379. package/build/component/resource/botService/appStudio/appStudioClient.d.ts.map +1 -1
  380. package/build/component/resource/botService/appStudio/appStudioClient.js +24 -2
  381. package/build/component/resource/botService/appStudio/appStudioClient.js.map +1 -1
  382. package/build/component/telemetry.d.ts.map +1 -1
  383. package/build/component/telemetry.js +3 -6
  384. package/build/component/telemetry.js.map +1 -1
  385. package/build/component/utils/ResourceGroupHelper.d.ts +2 -2
  386. package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
  387. package/build/component/utils/ResourceGroupHelper.js +1 -4
  388. package/build/component/utils/ResourceGroupHelper.js.map +1 -1
  389. package/build/component/utils/azureResourceOperation.js +2 -2
  390. package/build/component/utils/azureResourceOperation.js.map +1 -1
  391. package/build/component/utils/charsetUtils.d.ts.map +1 -1
  392. package/build/component/utils/charsetUtils.js +5 -3
  393. package/build/component/utils/charsetUtils.js.map +1 -1
  394. package/build/component/utils/common.d.ts +1 -1
  395. package/build/component/utils/common.d.ts.map +1 -1
  396. package/build/component/utils/common.js +5 -6
  397. package/build/component/utils/common.js.map +1 -1
  398. package/build/component/utils/depsChecker/common.d.ts.map +1 -1
  399. package/build/component/utils/depsChecker/common.js +1 -1
  400. package/build/component/utils/depsChecker/common.js.map +1 -1
  401. package/build/component/utils/depsChecker/cpUtils.d.ts.map +1 -1
  402. package/build/component/utils/depsChecker/cpUtils.js +9 -5
  403. package/build/component/utils/depsChecker/cpUtils.js.map +1 -1
  404. package/build/component/utils/envUtil.d.ts.map +1 -1
  405. package/build/component/utils/envUtil.js +4 -2
  406. package/build/component/utils/envUtil.js.map +1 -1
  407. package/build/component/utils/metadataUtil.d.ts +3 -0
  408. package/build/component/utils/metadataUtil.d.ts.map +1 -1
  409. package/build/component/utils/metadataUtil.js +18 -4
  410. package/build/component/utils/metadataUtil.js.map +1 -1
  411. package/build/component/utils/pathUtils.d.ts.map +1 -1
  412. package/build/component/utils/pathUtils.js +2 -0
  413. package/build/component/utils/pathUtils.js.map +1 -1
  414. package/build/component/utils/teamsFxTelemetryReporter.d.ts.map +1 -1
  415. package/build/component/utils/teamsFxTelemetryReporter.js +3 -6
  416. package/build/component/utils/teamsFxTelemetryReporter.js.map +1 -1
  417. package/build/component/utils.js.map +1 -1
  418. package/build/core/FxCore.d.ts +43 -32
  419. package/build/core/FxCore.d.ts.map +1 -1
  420. package/build/core/FxCore.js +816 -63
  421. package/build/core/FxCore.js.map +1 -1
  422. package/build/core/collaborator.d.ts +1 -1
  423. package/build/core/collaborator.d.ts.map +1 -1
  424. package/build/core/collaborator.js +16 -10
  425. package/build/core/collaborator.js.map +1 -1
  426. package/build/core/error.d.ts +6 -0
  427. package/build/core/error.d.ts.map +1 -1
  428. package/build/core/error.js +23 -1
  429. package/build/core/error.js.map +1 -1
  430. package/build/core/globalVars.d.ts +16 -0
  431. package/build/core/globalVars.d.ts.map +1 -1
  432. package/build/core/globalVars.js +34 -1
  433. package/build/core/globalVars.js.map +1 -1
  434. package/build/core/index.js +1 -0
  435. package/build/core/index.js.map +1 -1
  436. package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
  437. package/build/core/middleware/concurrentLocker.js +7 -3
  438. package/build/core/middleware/concurrentLocker.js.map +1 -1
  439. package/build/core/middleware/errorHandler.d.ts +2 -0
  440. package/build/core/middleware/errorHandler.d.ts.map +1 -1
  441. package/build/core/middleware/errorHandler.js +16 -25
  442. package/build/core/middleware/errorHandler.js.map +1 -1
  443. package/build/core/middleware/projectMigratorV3.d.ts +7 -1
  444. package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
  445. package/build/core/middleware/projectMigratorV3.js +35 -34
  446. package/build/core/middleware/projectMigratorV3.js.map +1 -1
  447. package/build/core/middleware/projectVersionChecker.js +8 -8
  448. package/build/core/middleware/projectVersionChecker.js.map +1 -1
  449. package/build/core/middleware/utils/appYmlGenerator.d.ts.map +1 -1
  450. package/build/core/middleware/utils/appYmlGenerator.js +2 -1
  451. package/build/core/middleware/utils/appYmlGenerator.js.map +1 -1
  452. package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts.map +1 -1
  453. package/build/core/middleware/utils/debug/appLocalYmlGenerator.js +3 -2
  454. package/build/core/middleware/utils/debug/appLocalYmlGenerator.js.map +1 -1
  455. package/build/core/middleware/utils/debug/debugV3MigrationUtils.js.map +1 -1
  456. package/build/core/middleware/utils/debug/taskMigrator.d.ts.map +1 -1
  457. package/build/core/middleware/utils/debug/taskMigrator.js +33 -15
  458. package/build/core/middleware/utils/debug/taskMigrator.js.map +1 -1
  459. package/build/core/middleware/utils/migrationContext.d.ts +1 -0
  460. package/build/core/middleware/utils/migrationContext.d.ts.map +1 -1
  461. package/build/core/middleware/utils/migrationContext.js.map +1 -1
  462. package/build/core/middleware/utils/v3MigrationUtils.d.ts.map +1 -1
  463. package/build/core/middleware/utils/v3MigrationUtils.js +6 -2
  464. package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
  465. package/build/error/arm.d.ts.map +1 -1
  466. package/build/error/arm.js +2 -0
  467. package/build/error/arm.js.map +1 -1
  468. package/build/error/azure.d.ts.map +1 -1
  469. package/build/error/azure.js +2 -0
  470. package/build/error/azure.js.map +1 -1
  471. package/build/error/common.d.ts +8 -2
  472. package/build/error/common.d.ts.map +1 -1
  473. package/build/error/common.js +129 -22
  474. package/build/error/common.js.map +1 -1
  475. package/build/error/deploy.d.ts.map +1 -1
  476. package/build/error/deploy.js +10 -8
  477. package/build/error/deploy.js.map +1 -1
  478. package/build/error/index.d.ts.map +1 -1
  479. package/build/error/index.js +2 -0
  480. package/build/error/index.js.map +1 -1
  481. package/build/error/m365.d.ts.map +1 -1
  482. package/build/error/m365.js +2 -0
  483. package/build/error/m365.js.map +1 -1
  484. package/build/error/script.d.ts.map +1 -1
  485. package/build/error/script.js +2 -0
  486. package/build/error/script.js.map +1 -1
  487. package/build/error/upgrade.d.ts.map +1 -1
  488. package/build/error/upgrade.js +2 -0
  489. package/build/error/upgrade.js.map +1 -1
  490. package/build/error/yml.d.ts.map +1 -1
  491. package/build/error/yml.js +2 -0
  492. package/build/error/yml.js.map +1 -1
  493. package/build/failpoint/index.d.ts.map +1 -1
  494. package/build/failpoint/index.js +2 -0
  495. package/build/failpoint/index.js.map +1 -1
  496. package/build/failpoint/marker.d.ts.map +1 -1
  497. package/build/failpoint/marker.js +2 -0
  498. package/build/failpoint/marker.js.map +1 -1
  499. package/build/failpoint/runtime.d.ts.map +1 -1
  500. package/build/failpoint/runtime.js +3 -4
  501. package/build/failpoint/runtime.js.map +1 -1
  502. package/build/index.d.ts +3 -1
  503. package/build/index.d.ts.map +1 -1
  504. package/build/index.js +4 -1
  505. package/build/index.js.map +1 -1
  506. package/build/question/constants.d.ts +4 -0
  507. package/build/question/constants.d.ts.map +1 -0
  508. package/build/question/constants.js +12 -0
  509. package/build/question/constants.js.map +1 -0
  510. package/build/question/create.d.ts +14 -15
  511. package/build/question/create.d.ts.map +1 -1
  512. package/build/question/create.js +478 -332
  513. package/build/question/create.js.map +1 -1
  514. package/build/question/generator.d.ts +4 -0
  515. package/build/question/generator.d.ts.map +1 -0
  516. package/build/question/generator.js +371 -0
  517. package/build/question/generator.js.map +1 -0
  518. package/build/question/index.d.ts +18 -28
  519. package/build/question/index.d.ts.map +1 -1
  520. package/build/question/index.js +18 -44
  521. package/build/question/index.js.map +1 -1
  522. package/build/question/inputs/CreateEnvInputs.d.ts +14 -0
  523. package/build/question/inputs/CreateEnvInputs.d.ts.map +1 -0
  524. package/build/question/inputs/CreateEnvInputs.js +5 -0
  525. package/build/question/inputs/CreateEnvInputs.js.map +1 -0
  526. package/build/question/inputs/CreateProjectInputs.d.ts +40 -0
  527. package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -0
  528. package/build/question/inputs/CreateProjectInputs.js +5 -0
  529. package/build/question/inputs/CreateProjectInputs.js.map +1 -0
  530. package/build/question/inputs/CreateSampleProjectInputs.d.ts +12 -0
  531. package/build/question/inputs/CreateSampleProjectInputs.d.ts.map +1 -0
  532. package/build/question/inputs/CreateSampleProjectInputs.js +5 -0
  533. package/build/question/inputs/CreateSampleProjectInputs.js.map +1 -0
  534. package/build/question/inputs/DeployAadManifestInputs.d.ts +14 -0
  535. package/build/question/inputs/DeployAadManifestInputs.d.ts.map +1 -0
  536. package/build/question/inputs/DeployAadManifestInputs.js +5 -0
  537. package/build/question/inputs/DeployAadManifestInputs.js.map +1 -0
  538. package/build/question/inputs/PermissionGrantInputs.d.ts +18 -0
  539. package/build/question/inputs/PermissionGrantInputs.d.ts.map +1 -0
  540. package/build/question/inputs/PermissionGrantInputs.js +5 -0
  541. package/build/question/inputs/PermissionGrantInputs.js.map +1 -0
  542. package/build/question/inputs/PermissionListInputs.d.ts +16 -0
  543. package/build/question/inputs/PermissionListInputs.d.ts.map +1 -0
  544. package/build/question/inputs/PermissionListInputs.js +5 -0
  545. package/build/question/inputs/PermissionListInputs.js.map +1 -0
  546. package/build/question/inputs/PreviewTeamsAppInputs.d.ts +14 -0
  547. package/build/question/inputs/PreviewTeamsAppInputs.d.ts.map +1 -0
  548. package/build/question/inputs/PreviewTeamsAppInputs.js +5 -0
  549. package/build/question/inputs/PreviewTeamsAppInputs.js.map +1 -0
  550. package/build/question/inputs/SPFxAddWebpartInputs.d.ts +18 -0
  551. package/build/question/inputs/SPFxAddWebpartInputs.d.ts.map +1 -0
  552. package/build/question/inputs/SPFxAddWebpartInputs.js +5 -0
  553. package/build/question/inputs/SPFxAddWebpartInputs.js.map +1 -0
  554. package/build/question/inputs/SelectTeamsManifestInputs.d.ts +12 -0
  555. package/build/question/inputs/SelectTeamsManifestInputs.d.ts.map +1 -0
  556. package/build/question/inputs/SelectTeamsManifestInputs.js +5 -0
  557. package/build/question/inputs/SelectTeamsManifestInputs.js.map +1 -0
  558. package/build/question/inputs/ValidateTeamsAppInputs.d.ts +14 -0
  559. package/build/question/inputs/ValidateTeamsAppInputs.d.ts.map +1 -0
  560. package/build/question/inputs/ValidateTeamsAppInputs.js +5 -0
  561. package/build/question/inputs/ValidateTeamsAppInputs.js.map +1 -0
  562. package/build/question/inputs/index.d.ts +11 -0
  563. package/build/question/inputs/index.d.ts.map +1 -0
  564. package/build/question/inputs/index.js +16 -0
  565. package/build/question/inputs/index.js.map +1 -0
  566. package/build/question/options/CreateEnvOptions.d.ts +10 -0
  567. package/build/question/options/CreateEnvOptions.d.ts.map +1 -0
  568. package/build/question/options/CreateEnvOptions.js +24 -0
  569. package/build/question/options/CreateEnvOptions.js.map +1 -0
  570. package/build/question/options/CreateProjectOptions.d.ts +10 -0
  571. package/build/question/options/CreateProjectOptions.d.ts.map +1 -0
  572. package/build/question/options/CreateProjectOptions.js +139 -0
  573. package/build/question/options/CreateProjectOptions.js.map +1 -0
  574. package/build/question/options/CreateSampleProjectOptions.d.ts +10 -0
  575. package/build/question/options/CreateSampleProjectOptions.d.ts.map +1 -0
  576. package/build/question/options/CreateSampleProjectOptions.js +52 -0
  577. package/build/question/options/CreateSampleProjectOptions.js.map +1 -0
  578. package/build/question/options/DeployAadManifestOptions.d.ts +10 -0
  579. package/build/question/options/DeployAadManifestOptions.d.ts.map +1 -0
  580. package/build/question/options/DeployAadManifestOptions.js +21 -0
  581. package/build/question/options/DeployAadManifestOptions.js.map +1 -0
  582. package/build/question/options/PermissionGrantOptions.d.ts +10 -0
  583. package/build/question/options/PermissionGrantOptions.d.ts.map +1 -0
  584. package/build/question/options/PermissionGrantOptions.js +33 -0
  585. package/build/question/options/PermissionGrantOptions.js.map +1 -0
  586. package/build/question/options/PermissionListOptions.d.ts +10 -0
  587. package/build/question/options/PermissionListOptions.d.ts.map +1 -0
  588. package/build/question/options/PermissionListOptions.js +28 -0
  589. package/build/question/options/PermissionListOptions.js.map +1 -0
  590. package/build/question/options/PreviewTeamsAppOptions.d.ts +10 -0
  591. package/build/question/options/PreviewTeamsAppOptions.d.ts.map +1 -0
  592. package/build/question/options/PreviewTeamsAppOptions.js +26 -0
  593. package/build/question/options/PreviewTeamsAppOptions.js.map +1 -0
  594. package/build/question/options/SPFxAddWebpartOptions.d.ts +10 -0
  595. package/build/question/options/SPFxAddWebpartOptions.d.ts.map +1 -0
  596. package/build/question/options/SPFxAddWebpartOptions.js +38 -0
  597. package/build/question/options/SPFxAddWebpartOptions.js.map +1 -0
  598. package/build/question/options/SelectTeamsManifestOptions.d.ts +10 -0
  599. package/build/question/options/SelectTeamsManifestOptions.d.ts.map +1 -0
  600. package/build/question/options/SelectTeamsManifestOptions.js +17 -0
  601. package/build/question/options/SelectTeamsManifestOptions.js.map +1 -0
  602. package/build/question/options/ValidateTeamsAppOptions.d.ts +10 -0
  603. package/build/question/options/ValidateTeamsAppOptions.d.ts.map +1 -0
  604. package/build/question/options/ValidateTeamsAppOptions.js +23 -0
  605. package/build/question/options/ValidateTeamsAppOptions.js.map +1 -0
  606. package/build/question/options/index.d.ts +11 -0
  607. package/build/question/options/index.d.ts.map +1 -0
  608. package/build/question/options/index.js +16 -0
  609. package/build/question/options/index.js.map +1 -0
  610. package/build/question/other.d.ts +13 -1
  611. package/build/question/other.d.ts.map +1 -1
  612. package/build/question/other.js +132 -26
  613. package/build/question/other.js.map +1 -1
  614. package/build/question/questionNames.d.ts +6 -2
  615. package/build/question/questionNames.d.ts.map +1 -1
  616. package/build/question/questionNames.js +10 -3
  617. package/build/question/questionNames.js.map +1 -1
  618. package/build/question/util.d.ts +1 -1
  619. package/build/question/util.d.ts.map +1 -1
  620. package/build/question/util.js +7 -5
  621. package/build/question/util.js.map +1 -1
  622. package/build/ui/validationUtils.d.ts +15 -0
  623. package/build/ui/validationUtils.d.ts.map +1 -0
  624. package/build/ui/validationUtils.js +95 -0
  625. package/build/ui/validationUtils.js.map +1 -0
  626. package/build/ui/visitor.d.ts +13 -1
  627. package/build/ui/visitor.d.ts.map +1 -1
  628. package/build/ui/visitor.js +259 -213
  629. package/build/ui/visitor.js.map +1 -1
  630. package/package.json +15 -9
  631. package/resource/package.nls.cs.json +30 -56
  632. package/resource/package.nls.de.json +30 -56
  633. package/resource/package.nls.es.json +30 -56
  634. package/resource/package.nls.fr.json +30 -56
  635. package/resource/package.nls.it.json +30 -56
  636. package/resource/package.nls.ja.json +30 -56
  637. package/resource/package.nls.json +57 -19
  638. package/resource/package.nls.ko.json +30 -56
  639. package/resource/package.nls.pl.json +30 -56
  640. package/resource/package.nls.pt-BR.json +31 -57
  641. package/resource/package.nls.ru.json +34 -60
  642. package/resource/package.nls.tr.json +31 -57
  643. package/resource/package.nls.zh-Hans.json +31 -57
  644. package/resource/package.nls.zh-Hant.json +30 -56
  645. package/resource/package.nls.zh-cn.json +232 -712
  646. package/resource/package.nls.zh-tw.json +230 -710
  647. package/resource/yaml-schema/v1.2/yaml.schema.json +1474 -0
  648. package/templates/fallback/common.zip +0 -0
  649. package/templates/fallback/csharp.zip +0 -0
  650. package/templates/fallback/js.zip +0 -0
  651. package/templates/fallback/ts.zip +0 -0
  652. package/templates/plugins/resource/aad/auth/V3/Tab/GetUserProfile.razor +1 -2
  653. package/templates/plugins/resource/aad/auth/bot/README.md +281 -263
  654. package/templates/plugins/resource/aad/auth/bot/js/sso/handleMessageExtensionQueryWithToken.js +13 -3
  655. package/templates/plugins/resource/aad/auth/bot/js/sso/profileSsoCommandHandler.js +14 -5
  656. package/templates/plugins/resource/aad/auth/bot/ts/sso/handleMessageExtensionQueryWithToken.ts +11 -3
  657. package/templates/plugins/resource/aad/auth/bot/ts/sso/profileSsoCommandHandler.ts +12 -3
  658. package/templates/plugins/resource/aad/auth/tab/csharp/GetUserProfile.razor +1 -2
  659. package/build/component/configManager/diagnostic.d.ts +0 -9
  660. package/build/component/configManager/diagnostic.d.ts.map +0 -1
  661. package/build/component/configManager/diagnostic.js +0 -47
  662. package/build/component/configManager/diagnostic.js.map +0 -1
  663. package/build/component/driver/middleware/updateProgress.d.ts +0 -6
  664. package/build/component/driver/middleware/updateProgress.d.ts.map +0 -1
  665. package/build/component/driver/middleware/updateProgress.js +0 -15
  666. package/build/component/driver/middleware/updateProgress.js.map +0 -1
  667. package/build/component/generator/officeAddin/question.d.ts +0 -10
  668. package/build/component/generator/officeAddin/question.d.ts.map +0 -1
  669. package/build/component/generator/officeAddin/question.js +0 -118
  670. package/build/component/generator/officeAddin/question.js.map +0 -1
  671. package/build/core/FxCoreImplementV3.d.ts +0 -43
  672. package/build/core/FxCoreImplementV3.d.ts.map +0 -1
  673. package/build/core/FxCoreImplementV3.js +0 -653
  674. package/build/core/FxCoreImplementV3.js.map +0 -1
  675. package/templates/plugins/resource/apim/README.md +0 -92
@@ -1,33 +1,51 @@
1
1
  {
2
- "baseUrl": "https://github.com/OfficeDev/TeamsFx-Samples/tree/v2.1.0/",
3
- "defaultPackageLink": "https://github.com/OfficeDev/TeamsFx-Samples/archive/refs/tags/v2.1.0.zip",
4
- "baseFolderName": "TeamsFx-Samples-2.1.0",
5
2
  "samples": [
6
3
  {
7
4
  "id": "hello-world-tab-with-backend",
5
+ "onboardDate": "2021-11-30",
8
6
  "title": "Tab App with Azure Backend",
9
7
  "shortDescription": "A Hello World app of Microsoft Teams Tab app which has a backend service",
10
8
  "fullDescription": "This is a Hello World app of Microsoft Teams Tab app which accomplishes very simple function like single-sign on. You can run this app locally or deploy it to Microsoft Azure. This app has a Tab frontend and a backend service using Azure Function.",
11
- "tags": ["Tab", "TS", "Azure function"],
9
+ "types": [
10
+ "Tab"
11
+ ],
12
+ "tags": [
13
+ "Tab",
14
+ "TS",
15
+ "Azure function"
16
+ ],
12
17
  "time": "5min to run",
13
18
  "configuration": "Ready for debug",
19
+ "gifPath": "images/helloWorld-tab-with-backend.gif",
14
20
  "suggested": true
15
21
  },
16
22
  {
17
23
  "id": "graph-toolkit-contact-exporter",
24
+ "onboardDate": "2021-11-30",
18
25
  "title": "Contact Exporter using Graph Toolkit",
19
26
  "shortDescription": "Contact Exporter app of Microsoft Teams Tab app.",
20
27
  "fullDescription": "Contact Exporter app can export your teams contact info to Excel files, and it is using Microsoft Graph Toolkit as UI component. This app only has a Tab frontend.",
21
- "tags": ["Tab", "JS"],
28
+ "types": [
29
+ "Tab"
30
+ ],
31
+ "tags": [
32
+ "Tab",
33
+ "JS"
34
+ ],
22
35
  "time": "5min to run",
23
36
  "configuration": "Ready for debug",
37
+ "gifPath": "images/overview.gif",
24
38
  "suggested": true
25
39
  },
26
40
  {
27
41
  "id": "bot-sso",
42
+ "onboardDate": "2021-10-19",
28
43
  "title": "Bot App with SSO Enabled",
29
44
  "shortDescription": "A Hello World app of Microsoft Teams Bot app with SSO",
30
45
  "fullDescription": "This is an extended Hello World app of Microsoft Teams Bot app demonstrating how to integrate with Bot Framework SDK, TeamsFx SDK, and Graph SDK to implement SSO (Single Sign-On) feature that retrieves profile photos for currently signed-in users.",
46
+ "types": [
47
+ "Bot"
48
+ ],
31
49
  "tags": [
32
50
  "Bot",
33
51
  "TS",
@@ -36,13 +54,18 @@
36
54
  ],
37
55
  "time": "5min to run",
38
56
  "configuration": "Ready for debug",
57
+ "gifPath": "images/preview.gif",
39
58
  "suggested": false
40
59
  },
41
60
  {
42
61
  "id": "todo-list-SPFx",
62
+ "onboardDate": "2021-05-06",
43
63
  "title": "Todo List with SPFx",
44
64
  "shortDescription": "Todo List app hosting on SharePoint",
45
65
  "fullDescription": "Todo List with SPFx is a Todo List for individuals to manage his/her personal to-do items. This app is hosted on Sharepoint. There is no requirements to deploy Azure resources.",
66
+ "types": [
67
+ "Tab"
68
+ ],
46
69
  "tags": [
47
70
  "SharePoint",
48
71
  "SPFx",
@@ -50,189 +73,373 @@
50
73
  ],
51
74
  "time": "1hr to run",
52
75
  "configuration": "Manual configurations required",
76
+ "gifPath": "images/ToDoListCRUD.gif",
53
77
  "suggested": false
54
78
  },
55
79
  {
56
80
  "id": "hello-world-in-meeting",
81
+ "onboardDate": "2022-04-08",
57
82
  "title": "My First Meeting App",
58
83
  "shortDescription": "A template for apps using only in the context of a Teams meeting",
59
84
  "fullDescription": "My first meeting app is a simple template to show how to build a tab app that can be installed and used in a meeting, in all of meeting lifecycles: pre-meeting chat, in-meeting, post-meeting chat. This sample contains tab as side panel, meeting chat tab, or meeting details tab. The template also includes simple codes to fetch meeting info and user profile.",
60
- "tags": ["Meeting extension", "JS"],
85
+ "types": [
86
+ "Tab"
87
+ ],
88
+ "tags": [
89
+ "Meeting extension",
90
+ "JS"
91
+ ],
61
92
  "time": "30min to run",
62
93
  "configuration": "Ready for debug",
94
+ "gifPath": "images/preview.png",
63
95
  "suggested": false
64
96
  },
65
97
  {
66
98
  "id": "todo-list-with-Azure-backend-M365",
99
+ "onboardDate": "2021-11-09",
67
100
  "title": "Todo List (Works in Teams, Outlook and Office)",
68
101
  "shortDescription": "Todo List app that runs across Microsoft 365 including Teams, Outlook and Office",
69
102
  "fullDescription": "Todo List app helps to manage personal to do items and also runs across Microsoft 365, including Teams, Outlook and Office. The frontend is a React app and the backend is an Azure Function. You can optionally deploy and host the app in Azure.",
70
- "tags": ["React", "Azure function", "JS", "Outlook", "Office"],
103
+ "types": [
104
+ "Tab"
105
+ ],
106
+ "tags": [
107
+ "React",
108
+ "Azure function",
109
+ "JS",
110
+ "Outlook",
111
+ "Office"
112
+ ],
71
113
  "time": "30min to run",
72
114
  "configuration": "Manual configurations required",
115
+ "gifPath": "images/preview.gif",
73
116
  "suggested": false
74
117
  },
75
118
  {
76
119
  "id": "NPM-search-connector-M365",
120
+ "onboardDate": "2021-11-09",
77
121
  "title": "NPM Search Connector",
78
122
  "shortDescription": "Search and Share an NPM Package in Teams and Outlook (Web)",
79
123
  "fullDescription": "NPM Search Connector is a Message Extension that runs across Microsoft 365 including Teams and Outlook (Web). It allows you to perform a quick search for a NPM package and insert package details into conversations for easy sharing. The front end is built with Adaptive Cards and the backend is an Azure Bot Service.",
80
- "tags": ["Message extension", "JS", "Outlook"],
124
+ "types": [
125
+ "Message extension"
126
+ ],
127
+ "tags": [
128
+ "Message extension",
129
+ "JS",
130
+ "Outlook"
131
+ ],
81
132
  "time": "45min to run",
82
133
  "configuration": "Manual configurations required",
134
+ "gifPath": "images/preview.gif",
83
135
  "suggested": false
84
136
  },
85
137
  {
86
138
  "id": "bot-proactive-messaging-teamsfx",
139
+ "onboardDate": "2022-08-01",
87
140
  "title": "Proactive Messaging",
88
141
  "shortDescription": "Demonstrates how to send proactive messages to users.",
89
142
  "fullDescription": "This is a sample which shows how to save user's conversation reference information to send proactive reminder message using Bots.",
143
+ "types": [
144
+ "Bot"
145
+ ],
90
146
  "tags": [
91
147
  "Bot",
92
148
  "JS"
93
149
  ],
94
150
  "time": "5min to run",
95
151
  "configuration": "Ready for debug",
152
+ "gifPath": "images/send-proactive-messages.gif",
96
153
  "suggested": false,
97
- "url": "https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-proactive-messaging-teamsfx",
98
- "packageLink": "https://github.com/OfficeDev/Microsoft-Teams-Samples/archive/refs/heads/main.zip",
99
- "relativePath": "Microsoft-Teams-Samples-main/samples/bot-proactive-messaging-teamsfx"
154
+ "downloadUrl": "https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-proactive-messaging-teamsfx"
100
155
  },
101
156
  {
102
157
  "id": "adaptive-card-notification",
158
+ "onboardDate": "2022-03-28",
103
159
  "title": "Adaptive Card Notification",
104
160
  "shortDescription": "Demonstrates how to send adaptive card notification to users.",
105
161
  "fullDescription": "This is a sample which shows how to send notification with different adaptive cards using Bots.",
162
+ "types": [
163
+ "Bot"
164
+ ],
106
165
  "tags": [
107
- "Bot", "TS"
166
+ "Bot",
167
+ "TS"
108
168
  ],
109
169
  "time": "5min to run",
110
170
  "configuration": "Ready for debug",
171
+ "gifPath": "images/adaptivecard.gif",
111
172
  "suggested": false
112
173
  },
113
174
  {
114
175
  "id": "incoming-webhook-notification",
176
+ "onboardDate": "2022-03-31",
115
177
  "title": "Incoming Webhook Notification",
116
178
  "shortDescription": "Demonstrates how to send notification via Incoming Webhook.",
117
179
  "fullDescription": "This is a sample which shows how to send notification via Incoming Webhook in Microsoft Teams channels.",
180
+ "types": [
181
+ "Bot"
182
+ ],
118
183
  "tags": [
119
- "Bot", "TS"
184
+ "Bot",
185
+ "TS"
120
186
  ],
121
187
  "time": "5min to run",
122
188
  "configuration": "Manual configurations required",
189
+ "gifPath": "images/incoming-webhook.gif",
123
190
  "suggested": false
124
191
  },
125
192
  {
126
193
  "id": "stocks-update-notification-bot",
194
+ "onboardDate": "2022-08-08",
127
195
  "title": "Stocks Update",
128
196
  "shortDescription": "Keep up to date with the latest stock price in Microsoft Teams.",
129
197
  "fullDescription": "This sample demonstrates how a Notification Bot can be used to call an external API using API Key authentication, on a pre-defined schedule of every 30 seconds, to obtain the latest stock information and render the results as an Adaptive Card.",
130
- "tags": ["Bot", "TS", "Azure function", "API Key"],
198
+ "types": [
199
+ "Bot"
200
+ ],
201
+ "tags": [
202
+ "Bot",
203
+ "TS",
204
+ "Azure function",
205
+ "API Key"
206
+ ],
131
207
  "time": "5min to run",
132
208
  "configuration": "Ready for debug",
209
+ "gifPath": "images/app.gif",
133
210
  "suggested": false
134
211
  },
135
212
  {
136
213
  "id": "query-org-user-with-message-extension-sso",
214
+ "onboardDate": "2022-09-20",
137
215
  "title": "Org User Search Connector",
138
216
  "shortDescription": "Query Org User with Message Extension SSO",
139
217
  "fullDescription": "This is a simple search-based message extension app demonstrating how to integrate with Bot Framework SDK, TeamsFx SDK and Microsoft Graph API to implement a feature that queries organization's user with single sign on (SSO) capability.",
140
- "tags": ["Message extension", "SSO"],
218
+ "types": [
219
+ "Message extension"
220
+ ],
221
+ "tags": [
222
+ "Message extension",
223
+ "SSO"
224
+ ],
141
225
  "time": "5min to run",
142
226
  "configuration": "Ready for debug",
227
+ "gifPath": "images/preview.gif",
143
228
  "suggested": false
144
229
  },
145
230
  {
146
231
  "id": "team-central-dashboard",
232
+ "onboardDate": "2022-09-20",
147
233
  "title": "Team Central Dashboard",
148
234
  "shortDescription": "A single dashboard displaying data chats and content from Microsoft Graph to accelerate team collaboration and personal productivity.",
149
235
  "fullDescription": "A single dashboard displaying data chats and content from Microsoft Graph to accelerate team collaboration and personal productivity.",
150
- "tags": ["Tab", "TS", "Azure function", "SSO"],
236
+ "types": [
237
+ "Tab"
238
+ ],
239
+ "tags": [
240
+ "Tab",
241
+ "TS",
242
+ "Azure function",
243
+ "SSO"
244
+ ],
151
245
  "time": "5min to run",
152
246
  "configuration": "Ready for debug",
247
+ "gifPath": "images/team-central-dashboard.gif",
153
248
  "suggested": false
154
249
  },
155
250
  {
156
251
  "id": "graph-connector-app",
252
+ "onboardDate": "2022-04-18",
157
253
  "title": "Graph Connector App",
158
254
  "shortDescription": "Showcases how to build custom Graph Connector",
159
255
  "fullDescription": "This sample app showcases how to build custom Graph Connector with Azure Functions and query data using Microsoft Graph Client and TeamsFx SDK.",
160
- "tags": ["Tab", "Azure function", "TS", "SSO"],
256
+ "types": [
257
+ "Tab"
258
+ ],
259
+ "tags": [
260
+ "Tab",
261
+ "Azure function",
262
+ "TS",
263
+ "SSO"
264
+ ],
161
265
  "time": "10min to run",
162
266
  "configuration": "Manual configurations required",
267
+ "gifPath": "images/graph-connector-app-demo.gif",
163
268
  "suggested": false
164
269
  },
165
270
  {
166
271
  "id": "graph-toolkit-one-productivity-hub",
272
+ "onboardDate": "2022-07-27",
167
273
  "title": "One Productivity Hub using Graph Toolkit",
168
274
  "shortDescription": "Microsoft Teams tab with SSO to view calendar events, to-do tasks and file folders.",
169
275
  "fullDescription": "One Productivity Hub sample shows you how to build a tab for viewing your calendar events, to-do tasks and files by using Microsoft Graph Toolkit components and TeamsFx provider. You can run this app locally or deploy it to Microsoft Azure.",
170
- "tags": ["Tab", "JS", "SSO"],
276
+ "types": [
277
+ "Tab"
278
+ ],
279
+ "tags": [
280
+ "Tab",
281
+ "JS",
282
+ "SSO",
283
+ "Graph Toolkit"
284
+ ],
171
285
  "time": "5min to run",
172
286
  "configuration": "Ready for debug",
287
+ "gifPath": "images/oneproductivityhub-overview.gif",
173
288
  "suggested": false
174
289
  },
175
290
  {
176
291
  "id": "todo-list-with-Azure-backend",
292
+ "onboardDate": "2021-05-06",
177
293
  "title": "Todo List with backend on Azure",
178
294
  "shortDescription": "Todo List app with Azure Function backend and Azure SQL database",
179
295
  "fullDescription": "Todo List provides an easy way to manage to-do items in Teams Client. This app helps enabling task collaboration and management for your team. The frontend is a React app and the backend is hosted on Azure. You will need an Azure subscription to run the app.",
180
- "tags": ["React", "Azure function", "Azure SQL", "JS", "CI/CD"],
296
+ "types": [
297
+ "Tab"
298
+ ],
299
+ "tags": [
300
+ "React",
301
+ "Azure function",
302
+ "Azure SQL",
303
+ "JS",
304
+ "CI/CD"
305
+ ],
181
306
  "time": "30min to run",
182
307
  "configuration": "Manual configurations required",
308
+ "gifPath": "images/ToDoListCRUD.gif",
183
309
  "suggested": false
184
310
  },
185
311
  {
186
312
  "id": "share-now",
313
+ "onboardDate": "2021-05-17",
187
314
  "title": "Share Now",
188
315
  "shortDescription": "Knowledge sharing app contains a Tab and a Message extension",
189
316
  "fullDescription": "Share Now promotes the exchange of information between colleagues by enabling users to share content within the Teams environment. Users engage the app to share items of interest, discover new shared content, set preferences, and bookmark favorites for later reading.",
190
- "tags": ["Tab", "Message extension", "TS"],
317
+ "types": [
318
+ "Tab",
319
+ "Message extension"
320
+ ],
321
+ "tags": [
322
+ "Tab",
323
+ "Message extension",
324
+ "TS"
325
+ ],
191
326
  "time": "30min to run",
192
327
  "configuration": "Ready for debug",
328
+ "gifPath": "images/shareNow.gif",
193
329
  "suggested": false
194
330
  },
195
331
  {
196
332
  "id": "hello-world-teams-tab-and-outlook-add-in",
333
+ "onboardDate": "2023-03-02",
197
334
  "title": "Hello World Teams Tab and Outlook add-in",
198
335
  "shortDescription": "A hello world project that contains both Teams Tab and Outlook add-in capability",
199
336
  "fullDescription": "A hello world project that contains both Teams Tab and Outlook add-in capability",
200
- "tags": ["Tab", "Outlook add-in"],
337
+ "types": [
338
+ "Tab"
339
+ ],
340
+ "tags": [
341
+ "Tab",
342
+ "Outlook add-in"
343
+ ],
201
344
  "time": "5min to run",
202
345
  "configuration": "Ready for debug",
346
+ "gifPath": "images/preview.png",
203
347
  "suggested": false
204
348
  },
205
349
  {
206
350
  "id": "outlook-add-in-set-signature",
351
+ "onboardDate": "2023-05-04",
207
352
  "title": "Set signature using Outlook add-in",
208
353
  "shortDescription": "An Outlook add-in that sets signature for the user",
209
354
  "fullDescription": "An Outlook add-in that sets signature for the user",
210
- "tags": ["Outlook add-in"],
355
+ "types": [
356
+ "Tab"
357
+ ],
358
+ "tags": [
359
+ "Outlook add-in"
360
+ ],
211
361
  "time": "5min to run",
212
362
  "configuration": "Ready for debug",
363
+ "gifPath": "assets/outlook-set-signature-overview.png",
213
364
  "suggested": false,
214
- "url": "https://github.com/OfficeDev/Office-Add-in-samples/tree/main/Samples/outlook-set-signature",
215
- "packageLink": "https://github.com/OfficeDev/Office-Add-in-samples/archive/refs/heads/main.zip",
216
- "relativePath": "Office-Add-in-samples-main/Samples/outlook-set-signature"
365
+ "downloadUrl": "https://github.com/OfficeDev/Office-Add-in-samples/tree/main/Samples/outlook-set-signature"
217
366
  },
218
367
  {
219
368
  "id": "developer-assist-dashboard",
369
+ "onboardDate": "2023-03-07",
220
370
  "title": "Developer Assist Dashboard",
221
371
  "shortDescription": "A dashboard that integrates with Azure DevOps, Github issues and Planner tasks that accelerates developer productivity.",
222
372
  "fullDescription": "A dashboard that integrates with Azure DevOps, Github issues and Planner tasks that accelerates developer productivity.",
223
- "tags": ["Outlook", "Office", "TS"],
373
+ "types": [
374
+ "Tab"
375
+ ],
376
+ "tags": [
377
+ "Outlook",
378
+ "Office",
379
+ "TS"
380
+ ],
224
381
  "time": "15min to run",
225
382
  "configuration": "Manual configurations required",
383
+ "gifPath": "images/preview.png",
226
384
  "suggested": false
227
385
  },
228
386
  {
229
387
  "id": "live-share-dice-roller",
388
+ "onboardDate": "2023-04-27",
230
389
  "title": "Dice Roller in meeting",
231
390
  "shortDescription": "This sample introduces Microsoft Live Share and Azure Fluid Relay to enable a shared experience between multiple users.",
232
391
  "fullDescription": "Microsoft Live Share is a collaboration tool that enables you to share your experience with others in real time. Azure Fluid Relay is a part of this service. The diceroller example is a simple app that allows multiple users to roll a dice and see the results. This sample is a great way to get started with Live Share and Fluid.",
233
- "tags": ["Live Share", "JS", "ReactJS", "Teams-JS 2.0"],
392
+ "types": [
393
+ "Tab"
394
+ ],
395
+ "tags": [
396
+ "Live Share",
397
+ "JS",
398
+ "ReactJS",
399
+ "Teams-JS 2.0"
400
+ ],
234
401
  "time": "5 min to run",
235
402
  "configuration": "Manual configurations required",
403
+ "gifPath": "images/preview.gif",
404
+ "suggested": false
405
+ },
406
+ {
407
+ "id": "teams-chef-bot",
408
+ "onboardDate": "2023-06-25",
409
+ "title": "Teams Chef Bot",
410
+ "shortDescription": "Demonstrates how to build bot with Microsoft Teams AI Library.",
411
+ "fullDescription": "This is a conversational bot for Microsoft Teams that impersonates a Chef to help you you cook Teams apps.",
412
+ "types": [
413
+ "Bot"
414
+ ],
415
+ "tags": [
416
+ "Bot",
417
+ "TS",
418
+ "GPT"
419
+ ],
420
+ "time": "5min to run",
421
+ "configuration": "Manual configurations required",
422
+ "gifPath": "assets/preview.gif",
423
+ "suggested": false
424
+ },
425
+ {
426
+ "id": "spfx-productivity-dashboard",
427
+ "onboardDate": "2023-08-09",
428
+ "title": "One Productivity Hub using Graph Toolkit with SPFx",
429
+ "shortDescription": "Microsoft Teams tab powered by SharePoint Framework to view calendar events, to-do tasks and file folders.",
430
+ "fullDescription": "One Productivity Hub sample shows you how to build a tab for viewing your calendar events, to-do tasks and files by using Microsoft Graph Toolkit components and SharePoint provider. You can run this app locally or deploy it to SharePoint.",
431
+ "types": [
432
+ "Tab"
433
+ ],
434
+ "tags": [
435
+ "Tab",
436
+ "TS",
437
+ "SPFx",
438
+ "Graph Toolkit"
439
+ ],
440
+ "time": "5min to run",
441
+ "configuration": "Ready for debug",
442
+ "gifPath": "src/assets/screenshot.png",
236
443
  "suggested": false
237
444
  }
238
445
  ]
@@ -1,24 +1,28 @@
1
- export interface SampleInfo {
1
+ export declare const SampleConfigTag = "v2.3.0";
2
+ export interface SampleConfig {
2
3
  id: string;
4
+ onboardDate: Date;
3
5
  title: string;
4
6
  shortDescription: string;
5
7
  fullDescription: string;
8
+ types: string[];
6
9
  tags: string[];
7
10
  time: string;
8
11
  configuration: string;
9
- link: string;
10
12
  suggested: boolean;
11
- url: string;
12
- relativePath?: string;
13
+ gifUrl: string;
14
+ maximumToolkitVersion?: string;
15
+ downloadUrl?: string;
13
16
  }
14
17
  interface SampleCollection {
15
- samples: SampleInfo[];
18
+ samples: SampleConfig[];
16
19
  }
17
20
  declare class SampleProvider {
18
21
  private sampleCollection;
19
- private sampleConfigs;
22
+ private samplesConfig;
20
23
  fetchSampleConfig(): Promise<void>;
21
24
  get SampleCollection(): SampleCollection;
25
+ private getBaseSampleUrl;
22
26
  }
23
27
  export declare const sampleProvider: SampleProvider;
24
28
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"samples.d.ts","sourceRoot":"","sources":["../../src/common/samples.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,gBAAgB;IACxB,OAAO,EAAE,UAAU,EAAE,CAAC;CACvB;AAED,cAAM,cAAc;IAClB,OAAO,CAAC,gBAAgB,CAA+B;IACvD,OAAO,CAAC,aAAa,CAAM;IAEd,iBAAiB;IAqB9B,IAAW,gBAAgB,IAAI,gBAAgB,CAmC9C;CACF;AAED,eAAO,MAAM,cAAc,gBAAuB,CAAC"}
1
+ {"version":3,"file":"samples.d.ts","sourceRoot":"","sources":["../../src/common/samples.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,eAAe,WAAW,CAAC;AAExC,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,IAAI,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IAExB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IAEf,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,gBAAgB;IACxB,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,cAAM,cAAc;IAClB,OAAO,CAAC,gBAAgB,CAA+B;IACvD,OAAO,CAAC,aAAa,CAA0D;IAElE,iBAAiB;IAoB9B,IAAW,gBAAgB,IAAI,gBAAgB,CAsC9C;IAED,OAAO,CAAC,gBAAgB;CAUzB;AAED,eAAO,MAAM,cAAc,gBAAuB,CAAC"}
@@ -1,51 +1,43 @@
1
1
  "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
2
4
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sampleProvider = void 0;
5
+ exports.sampleProvider = exports.SampleConfigTag = void 0;
4
6
  const tslib_1 = require("tslib");
5
7
  const axios_1 = tslib_1.__importDefault(require("axios"));
6
8
  const utils_1 = require("../component/generator/utils");
7
9
  const samples_config_v3_json_1 = tslib_1.__importDefault(require("./samples-config-v3.json"));
8
10
  const featureFlags_1 = require("./featureFlags");
9
- class configInfo {
10
- }
11
- configInfo.owner = "OfficeDev";
12
- configInfo.repo = "TeamsFx-Samples";
13
- configInfo.tree = "v2.2.0";
14
- configInfo.file = ".config/samples-config-v3.json";
11
+ const packageJson = require("../../package.json");
12
+ const SampleConfigOwner = "OfficeDev";
13
+ const SampleConfigRepo = "TeamsFx-Samples";
14
+ const SampleConfigFile = ".config/samples-config-v3.json";
15
+ exports.SampleConfigTag = "v2.3.0";
15
16
  class SampleProvider {
16
17
  async fetchSampleConfig() {
17
- this.sampleConfigs = undefined;
18
18
  try {
19
19
  const fileResponse = await utils_1.sendRequestWithTimeout(async () => {
20
- return await axios_1.default.get(`https://raw.githubusercontent.com/${configInfo.owner}/${configInfo.repo}/${configInfo.tree}/${configInfo.file}`, { responseType: "json" });
20
+ return await axios_1.default.get(`https://raw.githubusercontent.com/${SampleConfigOwner}/${SampleConfigRepo}/${exports.SampleConfigTag}/${SampleConfigFile}`, { responseType: "json" });
21
21
  }, 1000, 3);
22
22
  if (fileResponse && fileResponse.data) {
23
- this.sampleConfigs = fileResponse.data;
23
+ this.samplesConfig = fileResponse.data;
24
24
  }
25
25
  }
26
26
  catch (e) {
27
- this.sampleConfigs = undefined;
27
+ this.samplesConfig = undefined;
28
28
  }
29
29
  }
30
30
  get SampleCollection() {
31
- var _a;
32
- const samples = ((_a = this.sampleConfigs) !== null && _a !== void 0 ? _a : samples_config_v3_json_1.default).samples.map((sample) => {
33
- var _a, _b, _c;
34
- return {
35
- id: sample.id,
36
- title: sample.title,
37
- shortDescription: sample.shortDescription,
38
- fullDescription: sample.fullDescription,
39
- tags: sample.tags,
40
- time: sample.time,
41
- configuration: sample.configuration,
42
- link: (_a = sample.packageLink) !== null && _a !== void 0 ? _a : ((_b = this.sampleConfigs) !== null && _b !== void 0 ? _b : samples_config_v3_json_1.default).defaultPackageLink,
43
- suggested: sample.suggested,
44
- url: sample.relativePath && sample.url
45
- ? sample.url
46
- : `${((_c = this.sampleConfigs) !== null && _c !== void 0 ? _c : samples_config_v3_json_1.default).baseUrl}${sample.id}`,
47
- relativePath: sample.relativePath,
48
- };
31
+ const samples = (this.samplesConfig ? this.samplesConfig.samples : samples_config_v3_json_1.default.samples).map((sample) => {
32
+ const isExternal = sample["downloadUrl"] ? true : false;
33
+ let gifUrl = `https://raw.githubusercontent.com/${SampleConfigOwner}/${SampleConfigRepo}/${exports.SampleConfigTag}/${sample["id"]}/${sample["gifPath"]}`;
34
+ if (isExternal) {
35
+ const info = utils_1.parseSampleUrl(sample["downloadUrl"]);
36
+ gifUrl = `https://raw.githubusercontent.com/${info.owner}/${info.repository}/${info.ref}/${info.dir}/${sample["gifPath"]}`;
37
+ }
38
+ return Object.assign(Object.assign({}, sample), { onboardDate: new Date(sample["onboardDate"]), downloadUrl: isExternal
39
+ ? sample["downloadUrl"]
40
+ : `${this.getBaseSampleUrl()}${sample["id"]}`, gifUrl: gifUrl });
49
41
  });
50
42
  // remove video filter sample app if feature flag is disabled.
51
43
  if (!featureFlags_1.isVideoFilterEnabled()) {
@@ -60,6 +52,16 @@ class SampleProvider {
60
52
  };
61
53
  return this.sampleCollection;
62
54
  }
55
+ getBaseSampleUrl() {
56
+ const version = packageJson.version;
57
+ if (version.includes("alpha")) {
58
+ return "https://github.com/OfficeDev/TeamsFx-Samples/tree/dev/";
59
+ }
60
+ if (version.includes("rc")) {
61
+ return "https://github.com/OfficeDev/TeamsFx-Samples/tree/v3/";
62
+ }
63
+ return `https://github.com/${SampleConfigOwner}/${SampleConfigRepo}/tree/${exports.SampleConfigTag}/`;
64
+ }
63
65
  }
64
66
  exports.sampleProvider = new SampleProvider();
65
67
  //# sourceMappingURL=samples.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"samples.js","sourceRoot":"","sources":["../../src/common/samples.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,wDAAsE;AACtE,8FAAsD;AACtD,iDAAsD;AAEtD,MAAM,UAAU;;AACE,gBAAK,GAAG,WAAW,CAAC;AACpB,eAAI,GAAG,iBAAiB,CAAC;AACzB,eAAI,GAAG,QAAQ,CAAC;AAChB,eAAI,GAAG,gCAAgC,CAAC;AAqB1D,MAAM,cAAc;IAIX,KAAK,CAAC,iBAAiB;QAC5B,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;QAC/B,IAAI;YACF,MAAM,YAAY,GAAG,MAAM,8BAAsB,CAC/C,KAAK,IAAI,EAAE;gBACT,OAAO,MAAM,eAAK,CAAC,GAAG,CACpB,qCAAqC,UAAU,CAAC,KAAK,IAAI,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI,EAAE,EAChH,EAAE,YAAY,EAAE,MAAM,EAAE,CACzB,CAAC;YACJ,CAAC,EACD,IAAI,EACJ,CAAC,CACF,CAAC;YAEF,IAAI,YAAY,IAAI,YAAY,CAAC,IAAI,EAAE;gBACrC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC,IAAI,CAAC;aACxC;SACF;QAAC,OAAO,CAAC,EAAE;YACV,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;SAChC;IACH,CAAC;IACD,IAAW,gBAAgB;;QACzB,MAAM,OAAO,GAAG,CAAC,MAAA,IAAI,CAAC,aAAa,mCAAI,gCAAc,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAW,EAAE,EAAE;;YACjF,OAAO;gBACL,EAAE,EAAE,MAAM,CAAC,EAAE;gBACb,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;gBACzC,eAAe,EAAE,MAAM,CAAC,eAAe;gBACvC,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,aAAa,EAAE,MAAM,CAAC,aAAa;gBACnC,IAAI,EACF,MAAC,MAAc,CAAC,WAAW,mCAAI,CAAC,MAAA,IAAI,CAAC,aAAa,mCAAI,gCAAc,CAAC,CAAC,kBAAkB;gBAC1F,SAAS,EAAE,MAAM,CAAC,SAAS;gBAC3B,GAAG,EACA,MAAc,CAAC,YAAY,IAAK,MAAc,CAAC,GAAG;oBACjD,CAAC,CAAE,MAAc,CAAC,GAAG;oBACrB,CAAC,CAAC,GAAG,CAAC,MAAA,IAAI,CAAC,aAAa,mCAAI,gCAAc,CAAC,CAAC,OAAO,GAAG,MAAM,CAAC,EAAE,EAAE;gBACrE,YAAY,EAAG,MAAc,CAAC,YAAY;aAC7B,CAAC;QAClB,CAAC,CAAC,CAAC;QAEH,8DAA8D;QAC9D,IAAI,CAAC,mCAAoB,EAAE,EAAE;YAC3B,MAAM,mBAAmB,GAAG,uBAAuB,CAAC;YACpD,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,mBAAmB,CAAC,CAAC;YACpF,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;gBAChB,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;aAC1B;SACF;QAED,IAAI,CAAC,gBAAgB,GAAG;YACtB,OAAO;SACR,CAAC;QAEF,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;CACF;AAEY,QAAA,cAAc,GAAG,IAAI,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"samples.js","sourceRoot":"","sources":["../../src/common/samples.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,0DAA0B;AAC1B,wDAAsF;AACtF,8FAAsD;AACtD,iDAAsD;AACtD,MAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAElD,MAAM,iBAAiB,GAAG,WAAW,CAAC;AACtC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAC3C,MAAM,gBAAgB,GAAG,gCAAgC,CAAC;AAC7C,QAAA,eAAe,GAAG,QAAQ,CAAC;AAwBxC,MAAM,cAAc;IAIX,KAAK,CAAC,iBAAiB;QAC5B,IAAI;YACF,MAAM,YAAY,GAAG,MAAM,8BAAsB,CAC/C,KAAK,IAAI,EAAE;gBACT,OAAO,MAAM,eAAK,CAAC,GAAG,CACpB,qCAAqC,iBAAiB,IAAI,gBAAgB,IAAI,uBAAe,IAAI,gBAAgB,EAAE,EACnH,EAAE,YAAY,EAAE,MAAM,EAAE,CACzB,CAAC;YACJ,CAAC,EACD,IAAI,EACJ,CAAC,CACF,CAAC;YAEF,IAAI,YAAY,IAAI,YAAY,CAAC,IAAI,EAAE;gBACrC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC,IAAmD,CAAC;aACvF;SACF;QAAC,OAAO,CAAC,EAAE;YACV,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;SAChC;IACH,CAAC;IACD,IAAW,gBAAgB;QACzB,MAAM,OAAO,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,gCAAc,CAAC,OAAO,CAAC,CAAC,GAAG,CAC5F,CAAC,MAAM,EAAE,EAAE;YACT,MAAM,UAAU,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;YACxD,IAAI,MAAM,GAAG,qCAAqC,iBAAiB,IAAI,gBAAgB,IAAI,uBAAe,IACxG,MAAM,CAAC,IAAI,CACb,IAAI,MAAM,CAAC,SAAS,CAAW,EAAE,CAAC;YAClC,IAAI,UAAU,EAAE;gBACd,MAAM,IAAI,GAAG,sBAAc,CAAC,MAAM,CAAC,aAAa,CAAW,CAAC,CAAC;gBAC7D,MAAM,GAAG,qCAAqC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,UAAU,IACzE,IAAI,CAAC,GACP,IAAI,IAAI,CAAC,GAAG,IAAI,MAAM,CAAC,SAAS,CAAW,EAAE,CAAC;aAC/C;YACD,OAAO,gCACF,MAAM,KACT,WAAW,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,aAAa,CAAW,CAAC,EACtD,WAAW,EAAE,UAAU;oBACrB,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC;oBACvB,CAAC,CAAC,GAAG,IAAI,CAAC,gBAAgB,EAAE,GAAG,MAAM,CAAC,IAAI,CAAW,EAAE,EACzD,MAAM,EAAE,MAAM,GACC,CAAC;QACpB,CAAC,CACF,CAAC;QAEF,8DAA8D;QAC9D,IAAI,CAAC,mCAAoB,EAAE,EAAE;YAC3B,MAAM,mBAAmB,GAAG,uBAAuB,CAAC;YACpD,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,mBAAmB,CAAC,CAAC;YAC/E,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;gBAChB,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;aAC1B;SACF;QAED,IAAI,CAAC,gBAAgB,GAAG;YACtB,OAAO;SACR,CAAC;QAEF,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IAEO,gBAAgB;QACtB,MAAM,OAAO,GAAW,WAAW,CAAC,OAAO,CAAC;QAC5C,IAAI,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;YAC7B,OAAO,wDAAwD,CAAC;SACjE;QACD,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,uDAAuD,CAAC;SAChE;QACD,OAAO,sBAAsB,iBAAiB,IAAI,gBAAgB,SAAS,uBAAe,GAAG,CAAC;IAChG,CAAC;CACF;AAEY,QAAA,cAAc,GAAG,IAAI,cAAc,EAAE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { OpenAPIV3 } from "openapi-types";
2
+ import { AdaptiveCard, ArrayElement, TextBlockElement } from "./interfaces";
3
+ export declare function generateAdaptiveCard(operationItem: OpenAPIV3.OperationObject): AdaptiveCard;
4
+ export declare function generateCardFromResponse(schema: OpenAPIV3.SchemaObject, name: string, parentArrayName?: string): Array<TextBlockElement | ArrayElement>;
5
+ //# sourceMappingURL=adaptiveCardGenerator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adaptiveCardGenerator.d.ts","sourceRoot":"","sources":["../../../src/common/spec-parser/adaptiveCardGenerator.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAa,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAIvF,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,SAAS,CAAC,eAAe,GAAG,YAAY,CA0C3F;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,SAAS,CAAC,YAAY,EAC9B,IAAI,EAAE,MAAM,EACZ,eAAe,SAAK,GACnB,KAAK,CAAC,gBAAgB,GAAG,YAAY,CAAC,CA6ExC"}