@microsoft/teamsfx-core 2.0.1-alpha.c8eab1a43.0 → 2.0.1-alpha.d4f96cccc.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 (493) hide show
  1. package/build/common/local/localStateHelper.d.ts.map +1 -1
  2. package/build/common/local/localStateHelper.js.map +1 -1
  3. package/build/common/samples.d.ts.map +1 -1
  4. package/build/common/samples.js +2 -2
  5. package/build/common/samples.js.map +1 -1
  6. package/build/common/telemetry.d.ts +0 -13
  7. package/build/common/telemetry.d.ts.map +1 -1
  8. package/build/common/telemetry.js +0 -13
  9. package/build/common/telemetry.js.map +1 -1
  10. package/build/common/templates-config.json +2 -1
  11. package/build/common/tools.d.ts +1 -15
  12. package/build/common/tools.d.ts.map +1 -1
  13. package/build/common/tools.js +53 -138
  14. package/build/common/tools.js.map +1 -1
  15. package/build/component/code/appSettingUtils.d.ts +1 -2
  16. package/build/component/code/appSettingUtils.d.ts.map +1 -1
  17. package/build/component/code/appSettingUtils.js +1 -46
  18. package/build/component/code/appSettingUtils.js.map +1 -1
  19. package/build/component/constant/deployConstant.d.ts.map +1 -1
  20. package/build/component/constant/deployConstant.js.map +1 -1
  21. package/build/component/constants.d.ts +3 -210
  22. package/build/component/constants.d.ts.map +1 -1
  23. package/build/component/constants.js +7 -404
  24. package/build/component/constants.js.map +1 -1
  25. package/build/component/coordinator/index.d.ts +1 -0
  26. package/build/component/coordinator/index.d.ts.map +1 -1
  27. package/build/component/coordinator/index.js +21 -10
  28. package/build/component/coordinator/index.js.map +1 -1
  29. package/build/component/deployUtils.d.ts +1 -8
  30. package/build/component/deployUtils.d.ts.map +1 -1
  31. package/build/component/deployUtils.js +2 -98
  32. package/build/component/deployUtils.js.map +1 -1
  33. package/build/component/driver/add/addWebPart.js +3 -3
  34. package/build/component/driver/add/addWebPart.js.map +1 -1
  35. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +9 -9
  36. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
  37. package/build/component/driver/interface/buildAndDeployArgs.d.ts +11 -11
  38. package/build/component/driver/interface/buildAndDeployArgs.d.ts.map +1 -1
  39. package/build/component/driver/script/scriptDriver.js +6 -6
  40. package/build/component/driver/script/scriptDriver.js.map +1 -1
  41. package/build/component/error.d.ts +0 -3
  42. package/build/component/error.d.ts.map +1 -1
  43. package/build/component/error.js +1 -11
  44. package/build/component/error.js.map +1 -1
  45. package/build/component/feature/cicd/cicd.d.ts +1 -2
  46. package/build/component/feature/cicd/cicd.d.ts.map +1 -1
  47. package/build/component/feature/cicd/cicd.js +2 -87
  48. package/build/component/feature/cicd/cicd.js.map +1 -1
  49. package/build/component/feature/sso.d.ts +0 -1
  50. package/build/component/feature/sso.d.ts.map +1 -1
  51. package/build/component/feature/sso.js +0 -1
  52. package/build/component/feature/sso.js.map +1 -1
  53. package/build/component/generator/generatorAction.d.ts.map +1 -1
  54. package/build/component/generator/generatorAction.js +1 -1
  55. package/build/component/generator/generatorAction.js.map +1 -1
  56. package/build/component/generator/spfx/depsChecker/dependencyChecker.d.ts +8 -0
  57. package/build/component/generator/spfx/depsChecker/dependencyChecker.d.ts.map +1 -0
  58. package/build/component/generator/spfx/depsChecker/dependencyChecker.js.map +1 -0
  59. package/build/component/{resource → generator}/spfx/depsChecker/generatorChecker.d.ts +1 -4
  60. package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts.map +1 -0
  61. package/build/component/{resource → generator}/spfx/depsChecker/generatorChecker.js +0 -39
  62. package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +1 -0
  63. package/build/component/{resource → generator}/spfx/depsChecker/yoChecker.d.ts +1 -4
  64. package/build/component/generator/spfx/depsChecker/yoChecker.d.ts.map +1 -0
  65. package/build/component/{resource → generator}/spfx/depsChecker/yoChecker.js +0 -33
  66. package/build/component/generator/spfx/depsChecker/yoChecker.js.map +1 -0
  67. package/build/component/generator/spfx/error.d.ts +8 -0
  68. package/build/component/generator/spfx/error.d.ts.map +1 -0
  69. package/build/component/generator/spfx/error.js +55 -0
  70. package/build/component/generator/spfx/error.js.map +1 -0
  71. package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -0
  72. package/build/component/generator/{spfxGenerator.js → spfx/spfxGenerator.js} +16 -16
  73. package/build/component/generator/spfx/spfxGenerator.js.map +1 -0
  74. package/build/component/{resource → generator}/spfx/utils/constants.d.ts +0 -33
  75. package/build/component/generator/spfx/utils/constants.d.ts.map +1 -0
  76. package/build/component/{resource → generator}/spfx/utils/constants.js +1 -39
  77. package/build/component/generator/spfx/utils/constants.js.map +1 -0
  78. package/build/component/{resource → generator}/spfx/utils/progress-helper.d.ts +0 -5
  79. package/build/component/generator/spfx/utils/progress-helper.d.ts.map +1 -0
  80. package/build/component/generator/spfx/utils/progress-helper.js +21 -0
  81. package/build/component/generator/spfx/utils/progress-helper.js.map +1 -0
  82. package/build/component/generator/spfx/utils/question-helper.d.ts.map +1 -0
  83. package/build/component/generator/spfx/utils/question-helper.js.map +1 -0
  84. package/build/component/{resource → generator}/spfx/utils/questions.d.ts +0 -1
  85. package/build/component/generator/spfx/utils/questions.d.ts.map +1 -0
  86. package/build/component/{resource → generator}/spfx/utils/questions.js +1 -23
  87. package/build/component/generator/spfx/utils/questions.js.map +1 -0
  88. package/build/component/generator/spfx/utils/telemetry-helper.d.ts.map +1 -0
  89. package/build/component/generator/spfx/utils/telemetry-helper.js.map +1 -0
  90. package/build/component/generator/spfx/utils/telemetryEvents.d.ts.map +1 -0
  91. package/build/component/generator/spfx/utils/telemetryEvents.js.map +1 -0
  92. package/build/component/generator/spfx/utils/utils.d.ts.map +1 -0
  93. package/build/component/generator/spfx/utils/utils.js.map +1 -0
  94. package/build/component/generator/utils.js +2 -2
  95. package/build/component/generator/utils.js.map +1 -1
  96. package/build/component/middleware/envMW.js.map +1 -1
  97. package/build/component/provisionUtils.d.ts +2 -23
  98. package/build/component/provisionUtils.d.ts.map +1 -1
  99. package/build/component/provisionUtils.js +5 -523
  100. package/build/component/provisionUtils.js.map +1 -1
  101. package/build/component/question.js +1 -1
  102. package/build/component/question.js.map +1 -1
  103. package/build/component/registerService.d.ts +0 -3
  104. package/build/component/registerService.d.ts.map +1 -1
  105. package/build/component/registerService.js +0 -3
  106. package/build/component/registerService.js.map +1 -1
  107. package/build/component/resource/aadApp/utils/aadManifestHelper.js +2 -1
  108. package/build/component/resource/aadApp/utils/aadManifestHelper.js.map +1 -1
  109. package/build/component/resource/appManifest/appManifest.d.ts +0 -6
  110. package/build/component/resource/appManifest/appManifest.d.ts.map +1 -1
  111. package/build/component/resource/appManifest/appManifest.js +24 -247
  112. package/build/component/resource/appManifest/appManifest.js.map +1 -1
  113. package/build/component/resource/appManifest/appStudio.d.ts +1 -21
  114. package/build/component/resource/appManifest/appStudio.d.ts.map +1 -1
  115. package/build/component/resource/appManifest/appStudio.js +15 -257
  116. package/build/component/resource/appManifest/appStudio.js.map +1 -1
  117. package/build/component/resource/botService/errors.d.ts +0 -2
  118. package/build/component/resource/botService/errors.d.ts.map +1 -1
  119. package/build/component/resource/botService/errors.js +1 -43
  120. package/build/component/resource/botService/errors.js.map +1 -1
  121. package/build/component/utils/ResourceGroupHelper.d.ts +1 -5
  122. package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
  123. package/build/component/utils/ResourceGroupHelper.js +0 -6
  124. package/build/component/utils/ResourceGroupHelper.js.map +1 -1
  125. package/build/component/utils/pathUtils.d.ts.map +1 -1
  126. package/build/component/utils/pathUtils.js +2 -2
  127. package/build/component/utils/pathUtils.js.map +1 -1
  128. package/build/component/utils.d.ts +1 -18
  129. package/build/component/utils.d.ts.map +1 -1
  130. package/build/component/utils.js +23 -277
  131. package/build/component/utils.js.map +1 -1
  132. package/build/component/workflow.d.ts +0 -1
  133. package/build/component/workflow.d.ts.map +1 -1
  134. package/build/component/workflow.js +1 -6
  135. package/build/component/workflow.js.map +1 -1
  136. package/build/core/FxCore.d.ts +0 -8
  137. package/build/core/FxCore.d.ts.map +1 -1
  138. package/build/core/FxCore.js +0 -12
  139. package/build/core/FxCore.js.map +1 -1
  140. package/build/core/FxCoreImplementV3.d.ts.map +1 -1
  141. package/build/core/FxCoreImplementV3.js +7 -20
  142. package/build/core/FxCoreImplementV3.js.map +1 -1
  143. package/build/core/collaborator.d.ts +2 -0
  144. package/build/core/collaborator.d.ts.map +1 -1
  145. package/build/core/collaborator.js +2 -0
  146. package/build/core/collaborator.js.map +1 -1
  147. package/build/core/environment.d.ts +2 -4
  148. package/build/core/environment.d.ts.map +1 -1
  149. package/build/core/environment.js +44 -108
  150. package/build/core/environment.js.map +1 -1
  151. package/build/core/error.d.ts +1 -34
  152. package/build/core/error.d.ts.map +1 -1
  153. package/build/core/error.js +1 -112
  154. package/build/core/error.js.map +1 -1
  155. package/build/core/globalVars.d.ts +0 -1
  156. package/build/core/globalVars.d.ts.map +1 -1
  157. package/build/core/globalVars.js +1 -15
  158. package/build/core/globalVars.js.map +1 -1
  159. package/build/core/middleware/projectMigratorV3.d.ts +2 -1
  160. package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
  161. package/build/core/middleware/projectMigratorV3.js +40 -46
  162. package/build/core/middleware/projectMigratorV3.js.map +1 -1
  163. package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
  164. package/build/core/middleware/projectSettingsLoader.js +9 -20
  165. package/build/core/middleware/projectSettingsLoader.js.map +1 -1
  166. package/build/core/middleware/projectVersionChecker.d.ts.map +1 -1
  167. package/build/core/middleware/projectVersionChecker.js +6 -18
  168. package/build/core/middleware/projectVersionChecker.js.map +1 -1
  169. package/build/core/middleware/utils/migrationContext.d.ts.map +1 -1
  170. package/build/core/middleware/utils/migrationContext.js +0 -4
  171. package/build/core/middleware/utils/migrationContext.js.map +1 -1
  172. package/build/core/question.d.ts.map +1 -1
  173. package/build/core/question.js +4 -4
  174. package/build/core/question.js.map +1 -1
  175. package/build/core/types.d.ts +0 -10
  176. package/build/core/types.d.ts.map +1 -1
  177. package/build/index.d.ts +0 -1
  178. package/build/index.d.ts.map +1 -1
  179. package/build/index.js +0 -1
  180. package/build/index.js.map +1 -1
  181. package/package.json +7 -11
  182. package/resource/package.nls.json +3 -177
  183. package/templates/fallback/common.zip +0 -0
  184. package/templates/fallback/csharp.zip +0 -0
  185. package/templates/fallback/js.zip +0 -0
  186. package/templates/fallback/ts.zip +0 -0
  187. package/build/common/azure-hosting/azureAppServiceHosting.d.ts +0 -16
  188. package/build/common/azure-hosting/azureAppServiceHosting.d.ts.map +0 -1
  189. package/build/common/azure-hosting/azureAppServiceHosting.js +0 -33
  190. package/build/common/azure-hosting/azureAppServiceHosting.js.map +0 -1
  191. package/build/common/azure-hosting/azureFunctionHosting.d.ts +0 -14
  192. package/build/common/azure-hosting/azureFunctionHosting.d.ts.map +0 -1
  193. package/build/common/azure-hosting/azureFunctionHosting.js +0 -34
  194. package/build/common/azure-hosting/azureFunctionHosting.js.map +0 -1
  195. package/build/common/azure-hosting/azureHosting.d.ts +0 -23
  196. package/build/common/azure-hosting/azureHosting.d.ts.map +0 -1
  197. package/build/common/azure-hosting/azureHosting.js +0 -95
  198. package/build/common/azure-hosting/azureHosting.js.map +0 -1
  199. package/build/common/azure-hosting/azureOps.d.ts +0 -17
  200. package/build/common/azure-hosting/azureOps.d.ts.map +0 -1
  201. package/build/common/azure-hosting/azureOps.js +0 -94
  202. package/build/common/azure-hosting/azureOps.js.map +0 -1
  203. package/build/common/azure-hosting/hostingConstant.d.ts +0 -46
  204. package/build/common/azure-hosting/hostingConstant.d.ts.map +0 -1
  205. package/build/common/azure-hosting/hostingConstant.js +0 -86
  206. package/build/common/azure-hosting/hostingConstant.js.map +0 -1
  207. package/build/common/azure-hosting/hostingError.d.ts +0 -47
  208. package/build/common/azure-hosting/hostingError.d.ts.map +0 -1
  209. package/build/common/azure-hosting/hostingError.js +0 -83
  210. package/build/common/azure-hosting/hostingError.js.map +0 -1
  211. package/build/common/azure-hosting/hostingFactory.d.ts +0 -6
  212. package/build/common/azure-hosting/hostingFactory.d.ts.map +0 -1
  213. package/build/common/azure-hosting/hostingFactory.js +0 -22
  214. package/build/common/azure-hosting/hostingFactory.js.map +0 -1
  215. package/build/common/azure-hosting/interfaces.d.ts +0 -58
  216. package/build/common/azure-hosting/interfaces.d.ts.map +0 -1
  217. package/build/common/azure-hosting/interfaces.js +0 -12
  218. package/build/common/azure-hosting/interfaces.js.map +0 -1
  219. package/build/common/azure-hosting/messages.d.ts +0 -10
  220. package/build/common/azure-hosting/messages.d.ts.map +0 -1
  221. package/build/common/azure-hosting/messages.js +0 -16
  222. package/build/common/azure-hosting/messages.js.map +0 -1
  223. package/build/common/azure-hosting/utils.d.ts +0 -10
  224. package/build/common/azure-hosting/utils.d.ts.map +0 -1
  225. package/build/common/azure-hosting/utils.js +0 -107
  226. package/build/common/azure-hosting/utils.js.map +0 -1
  227. package/build/common/samples-config.json +0 -201
  228. package/build/component/code/spfxTabCode.d.ts +0 -11
  229. package/build/component/code/spfxTabCode.d.ts.map +0 -1
  230. package/build/component/code/spfxTabCode.js +0 -237
  231. package/build/component/code/spfxTabCode.js.map +0 -1
  232. package/build/component/envManager.d.ts +0 -4
  233. package/build/component/envManager.d.ts.map +0 -1
  234. package/build/component/envManager.js +0 -25
  235. package/build/component/envManager.js.map +0 -1
  236. package/build/component/feature/apiconnector/ApiConnectorImpl.d.ts +0 -23
  237. package/build/component/feature/apiconnector/ApiConnectorImpl.d.ts.map +0 -1
  238. package/build/component/feature/apiconnector/ApiConnectorImpl.js +0 -288
  239. package/build/component/feature/apiconnector/ApiConnectorImpl.js.map +0 -1
  240. package/build/component/feature/apiconnector/checker.d.ts +0 -7
  241. package/build/component/feature/apiconnector/checker.d.ts.map +0 -1
  242. package/build/component/feature/apiconnector/checker.js +0 -74
  243. package/build/component/feature/apiconnector/checker.js.map +0 -1
  244. package/build/component/feature/apiconnector/config.d.ts +0 -23
  245. package/build/component/feature/apiconnector/config.d.ts.map +0 -1
  246. package/build/component/feature/apiconnector/config.js +0 -5
  247. package/build/component/feature/apiconnector/config.js.map +0 -1
  248. package/build/component/feature/apiconnector/constants.d.ts +0 -50
  249. package/build/component/feature/apiconnector/constants.d.ts.map +0 -1
  250. package/build/component/feature/apiconnector/constants.js +0 -61
  251. package/build/component/feature/apiconnector/constants.js.map +0 -1
  252. package/build/component/feature/apiconnector/depsHandler.d.ts +0 -14
  253. package/build/component/feature/apiconnector/depsHandler.d.ts.map +0 -1
  254. package/build/component/feature/apiconnector/depsHandler.js +0 -109
  255. package/build/component/feature/apiconnector/depsHandler.js.map +0 -1
  256. package/build/component/feature/apiconnector/envHandler.d.ts +0 -21
  257. package/build/component/feature/apiconnector/envHandler.d.ts.map +0 -1
  258. package/build/component/feature/apiconnector/envHandler.js +0 -128
  259. package/build/component/feature/apiconnector/envHandler.js.map +0 -1
  260. package/build/component/feature/apiconnector/errors.d.ts +0 -53
  261. package/build/component/feature/apiconnector/errors.d.ts.map +0 -1
  262. package/build/component/feature/apiconnector/errors.js +0 -64
  263. package/build/component/feature/apiconnector/errors.js.map +0 -1
  264. package/build/component/feature/apiconnector/questions.d.ts +0 -41
  265. package/build/component/feature/apiconnector/questions.d.ts.map +0 -1
  266. package/build/component/feature/apiconnector/questions.js +0 -262
  267. package/build/component/feature/apiconnector/questions.js.map +0 -1
  268. package/build/component/feature/apiconnector/result.d.ts +0 -23
  269. package/build/component/feature/apiconnector/result.d.ts.map +0 -1
  270. package/build/component/feature/apiconnector/result.js +0 -40
  271. package/build/component/feature/apiconnector/result.js.map +0 -1
  272. package/build/component/feature/apiconnector/sampleHandler.d.ts +0 -10
  273. package/build/component/feature/apiconnector/sampleHandler.d.ts.map +0 -1
  274. package/build/component/feature/apiconnector/sampleHandler.js +0 -62
  275. package/build/component/feature/apiconnector/sampleHandler.js.map +0 -1
  276. package/build/component/feature/apiconnector/telemetry.d.ts +0 -42
  277. package/build/component/feature/apiconnector/telemetry.d.ts.map +0 -1
  278. package/build/component/feature/apiconnector/telemetry.js +0 -70
  279. package/build/component/feature/apiconnector/telemetry.js.map +0 -1
  280. package/build/component/feature/apiconnector/utils.d.ts +0 -18
  281. package/build/component/feature/apiconnector/utils.d.ts.map +0 -1
  282. package/build/component/feature/apiconnector/utils.js +0 -90
  283. package/build/component/feature/apiconnector/utils.js.map +0 -1
  284. package/build/component/generator/spfxGenerator.d.ts.map +0 -1
  285. package/build/component/generator/spfxGenerator.js.map +0 -1
  286. package/build/component/resource/azureAppService/azureAppService.d.ts +0 -12
  287. package/build/component/resource/azureAppService/azureAppService.d.ts.map +0 -1
  288. package/build/component/resource/azureAppService/azureAppService.js +0 -48
  289. package/build/component/resource/azureAppService/azureAppService.js.map +0 -1
  290. package/build/component/resource/azureAppService/azureFunction.d.ts +0 -36
  291. package/build/component/resource/azureAppService/azureFunction.d.ts.map +0 -1
  292. package/build/component/resource/azureAppService/azureFunction.js +0 -155
  293. package/build/component/resource/azureAppService/azureFunction.js.map +0 -1
  294. package/build/component/resource/azureAppService/azureLibs.d.ts +0 -6
  295. package/build/component/resource/azureAppService/azureLibs.d.ts.map +0 -1
  296. package/build/component/resource/azureAppService/azureLibs.js +0 -13
  297. package/build/component/resource/azureAppService/azureLibs.js.map +0 -1
  298. package/build/component/resource/azureAppService/azureWebApp.d.ts +0 -30
  299. package/build/component/resource/azureAppService/azureWebApp.d.ts.map +0 -1
  300. package/build/component/resource/azureAppService/azureWebApp.js +0 -43
  301. package/build/component/resource/azureAppService/azureWebApp.js.map +0 -1
  302. package/build/component/resource/azureAppService/common.d.ts +0 -10
  303. package/build/component/resource/azureAppService/common.d.ts.map +0 -1
  304. package/build/component/resource/azureAppService/common.js +0 -80
  305. package/build/component/resource/azureAppService/common.js.map +0 -1
  306. package/build/component/resource/azureAppService/dir-walk.d.ts +0 -4
  307. package/build/component/resource/azureAppService/dir-walk.d.ts.map +0 -1
  308. package/build/component/resource/azureAppService/dir-walk.js +0 -21
  309. package/build/component/resource/azureAppService/dir-walk.js.map +0 -1
  310. package/build/component/resource/azureSql/actions/configure.d.ts +0 -15
  311. package/build/component/resource/azureSql/actions/configure.d.ts.map +0 -1
  312. package/build/component/resource/azureSql/actions/configure.js +0 -92
  313. package/build/component/resource/azureSql/actions/configure.js.map +0 -1
  314. package/build/component/resource/azureSql/actions/provision.d.ts +0 -10
  315. package/build/component/resource/azureSql/actions/provision.d.ts.map +0 -1
  316. package/build/component/resource/azureSql/actions/provision.js +0 -63
  317. package/build/component/resource/azureSql/actions/provision.js.map +0 -1
  318. package/build/component/resource/azureSql/actions/utils.d.ts +0 -12
  319. package/build/component/resource/azureSql/actions/utils.d.ts.map +0 -1
  320. package/build/component/resource/azureSql/actions/utils.js +0 -82
  321. package/build/component/resource/azureSql/actions/utils.js.map +0 -1
  322. package/build/component/resource/azureSql/azureSql.d.ts +0 -24
  323. package/build/component/resource/azureSql/azureSql.d.ts.map +0 -1
  324. package/build/component/resource/azureSql/azureSql.js +0 -75
  325. package/build/component/resource/azureSql/azureSql.js.map +0 -1
  326. package/build/component/resource/azureSql/clients/management.d.ts +0 -18
  327. package/build/component/resource/azureSql/clients/management.d.ts.map +0 -1
  328. package/build/component/resource/azureSql/clients/management.js +0 -124
  329. package/build/component/resource/azureSql/clients/management.js.map +0 -1
  330. package/build/component/resource/azureSql/clients/sql.d.ts +0 -13
  331. package/build/component/resource/azureSql/clients/sql.d.ts.map +0 -1
  332. package/build/component/resource/azureSql/clients/sql.js +0 -153
  333. package/build/component/resource/azureSql/clients/sql.js.map +0 -1
  334. package/build/component/resource/azureSql/config.d.ts +0 -7
  335. package/build/component/resource/azureSql/config.d.ts.map +0 -1
  336. package/build/component/resource/azureSql/config.js +0 -77
  337. package/build/component/resource/azureSql/config.js.map +0 -1
  338. package/build/component/resource/azureSql/constants.d.ts +0 -85
  339. package/build/component/resource/azureSql/constants.d.ts.map +0 -1
  340. package/build/component/resource/azureSql/constants.js +0 -95
  341. package/build/component/resource/azureSql/constants.js.map +0 -1
  342. package/build/component/resource/azureSql/errors.d.ts +0 -63
  343. package/build/component/resource/azureSql/errors.d.ts.map +0 -1
  344. package/build/component/resource/azureSql/errors.js +0 -107
  345. package/build/component/resource/azureSql/errors.js.map +0 -1
  346. package/build/component/resource/azureSql/index.d.ts +0 -2
  347. package/build/component/resource/azureSql/index.d.ts.map +0 -1
  348. package/build/component/resource/azureSql/index.js +0 -7
  349. package/build/component/resource/azureSql/index.js.map +0 -1
  350. package/build/component/resource/azureSql/questions.d.ts +0 -6
  351. package/build/component/resource/azureSql/questions.d.ts.map +0 -1
  352. package/build/component/resource/azureSql/questions.js +0 -59
  353. package/build/component/resource/azureSql/questions.js.map +0 -1
  354. package/build/component/resource/azureSql/results.d.ts +0 -10
  355. package/build/component/resource/azureSql/results.d.ts.map +0 -1
  356. package/build/component/resource/azureSql/results.js +0 -34
  357. package/build/component/resource/azureSql/results.js.map +0 -1
  358. package/build/component/resource/azureSql/types.d.ts +0 -12
  359. package/build/component/resource/azureSql/types.d.ts.map +0 -1
  360. package/build/component/resource/azureSql/types.js +0 -5
  361. package/build/component/resource/azureSql/types.js.map +0 -1
  362. package/build/component/resource/azureSql/utils/checkInput.d.ts +0 -10
  363. package/build/component/resource/azureSql/utils/checkInput.d.ts.map +0 -1
  364. package/build/component/resource/azureSql/utils/checkInput.js +0 -89
  365. package/build/component/resource/azureSql/utils/checkInput.js.map +0 -1
  366. package/build/component/resource/azureSql/utils/common.d.ts +0 -12
  367. package/build/component/resource/azureSql/utils/common.d.ts.map +0 -1
  368. package/build/component/resource/azureSql/utils/common.js +0 -51
  369. package/build/component/resource/azureSql/utils/common.js.map +0 -1
  370. package/build/component/resource/azureStorage/azureStorage.d.ts +0 -31
  371. package/build/component/resource/azureStorage/azureStorage.d.ts.map +0 -1
  372. package/build/component/resource/azureStorage/azureStorage.js +0 -111
  373. package/build/component/resource/azureStorage/azureStorage.js.map +0 -1
  374. package/build/component/resource/azureStorage/clients.d.ts +0 -23
  375. package/build/component/resource/azureStorage/clients.d.ts.map +0 -1
  376. package/build/component/resource/azureStorage/clients.js +0 -133
  377. package/build/component/resource/azureStorage/clients.js.map +0 -1
  378. package/build/component/resource/azureStorage/configs.d.ts +0 -12
  379. package/build/component/resource/azureStorage/configs.d.ts.map +0 -1
  380. package/build/component/resource/azureStorage/configs.js +0 -30
  381. package/build/component/resource/azureStorage/configs.js.map +0 -1
  382. package/build/component/resource/azureStorage/constants.d.ts +0 -11
  383. package/build/component/resource/azureStorage/constants.d.ts.map +0 -1
  384. package/build/component/resource/azureStorage/constants.js +0 -17
  385. package/build/component/resource/azureStorage/constants.js.map +0 -1
  386. package/build/component/resource/azureStorage/messages.d.ts +0 -14
  387. package/build/component/resource/azureStorage/messages.d.ts.map +0 -1
  388. package/build/component/resource/azureStorage/messages.js +0 -28
  389. package/build/component/resource/azureStorage/messages.js.map +0 -1
  390. package/build/component/resource/botService/botService.d.ts +0 -24
  391. package/build/component/resource/botService/botService.d.ts.map +0 -1
  392. package/build/component/resource/botService/botService.js +0 -146
  393. package/build/component/resource/botService/botService.js.map +0 -1
  394. package/build/component/resource/spfx/depsChecker/dependencyChecker.d.ts +0 -11
  395. package/build/component/resource/spfx/depsChecker/dependencyChecker.d.ts.map +0 -1
  396. package/build/component/resource/spfx/depsChecker/dependencyChecker.js.map +0 -1
  397. package/build/component/resource/spfx/depsChecker/generatorChecker.d.ts.map +0 -1
  398. package/build/component/resource/spfx/depsChecker/generatorChecker.js.map +0 -1
  399. package/build/component/resource/spfx/depsChecker/yoChecker.d.ts.map +0 -1
  400. package/build/component/resource/spfx/depsChecker/yoChecker.js.map +0 -1
  401. package/build/component/resource/spfx/error.d.ts +0 -21
  402. package/build/component/resource/spfx/error.d.ts.map +0 -1
  403. package/build/component/resource/spfx/error.js +0 -138
  404. package/build/component/resource/spfx/error.js.map +0 -1
  405. package/build/component/resource/spfx/index.d.ts +0 -15
  406. package/build/component/resource/spfx/index.d.ts.map +0 -1
  407. package/build/component/resource/spfx/index.js +0 -248
  408. package/build/component/resource/spfx/index.js.map +0 -1
  409. package/build/component/resource/spfx/spoClient.d.ts +0 -25
  410. package/build/component/resource/spfx/spoClient.d.ts.map +0 -1
  411. package/build/component/resource/spfx/spoClient.js +0 -79
  412. package/build/component/resource/spfx/spoClient.js.map +0 -1
  413. package/build/component/resource/spfx/utils/constants.d.ts.map +0 -1
  414. package/build/component/resource/spfx/utils/constants.js.map +0 -1
  415. package/build/component/resource/spfx/utils/progress-helper.d.ts.map +0 -1
  416. package/build/component/resource/spfx/utils/progress-helper.js +0 -46
  417. package/build/component/resource/spfx/utils/progress-helper.js.map +0 -1
  418. package/build/component/resource/spfx/utils/question-helper.d.ts.map +0 -1
  419. package/build/component/resource/spfx/utils/question-helper.js.map +0 -1
  420. package/build/component/resource/spfx/utils/questions.d.ts.map +0 -1
  421. package/build/component/resource/spfx/utils/questions.js.map +0 -1
  422. package/build/component/resource/spfx/utils/telemetry-helper.d.ts.map +0 -1
  423. package/build/component/resource/spfx/utils/telemetry-helper.js.map +0 -1
  424. package/build/component/resource/spfx/utils/telemetryEvents.d.ts.map +0 -1
  425. package/build/component/resource/spfx/utils/telemetryEvents.js.map +0 -1
  426. package/build/component/resource/spfx/utils/utils.d.ts.map +0 -1
  427. package/build/component/resource/spfx/utils/utils.js.map +0 -1
  428. package/build/component/utils/backupFiles.d.ts +0 -4
  429. package/build/component/utils/backupFiles.d.ts.map +0 -1
  430. package/build/component/utils/backupFiles.js +0 -162
  431. package/build/component/utils/backupFiles.js.map +0 -1
  432. package/build/component/utils/executor.d.ts +0 -12
  433. package/build/component/utils/executor.d.ts.map +0 -1
  434. package/build/component/utils/executor.js +0 -87
  435. package/build/component/utils/executor.js.map +0 -1
  436. package/build/core/downloadSample.d.ts +0 -9
  437. package/build/core/downloadSample.d.ts.map +0 -1
  438. package/build/core/downloadSample.js +0 -161
  439. package/build/core/downloadSample.js.map +0 -1
  440. package/resource/backup-config-change-logs.md +0 -24
  441. package/templates/bicep/azureSql.parameters.json +0 -4
  442. package/templates/bicep/azureSql.provisionDatabase.module.bicep +0 -15
  443. package/templates/bicep/azureSql.provisionDatabase.orchestration.bicep +0 -5
  444. package/templates/bicep/azureSql.provisionServer.module.bicep +0 -44
  445. package/templates/bicep/azureSql.provisionServer.orchestration.bicep +0 -14
  446. package/templates/bicep/identity.provision.module.bicep +0 -15
  447. package/templates/bicep/identity.provision.orchestration.bicep +0 -14
  448. package/templates/bicep/keyVault.provision.module.bicep +0 -57
  449. package/templates/bicep/keyVault.provision.orchestration.bicep +0 -15
  450. package/templates/plugins/resource/apiconnector/package.json +0 -5
  451. package/templates/plugins/resource/apiconnector/sample/footerComment.template +0 -20
  452. package/templates/plugins/resource/apiconnector/sample/headerComment.template +0 -52
  453. package/templates/plugins/resource/apiconnector/sample/js/aad.template +0 -31
  454. package/templates/plugins/resource/apiconnector/sample/js/apikey.template +0 -19
  455. package/templates/plugins/resource/apiconnector/sample/js/basic.template +0 -14
  456. package/templates/plugins/resource/apiconnector/sample/js/cert.template +0 -17
  457. package/templates/plugins/resource/apiconnector/sample/js/custom.template +0 -39
  458. package/templates/plugins/resource/apiconnector/sample/ts/aad.template +0 -36
  459. package/templates/plugins/resource/apiconnector/sample/ts/apikey.template +0 -16
  460. package/templates/plugins/resource/apiconnector/sample/ts/basic.template +0 -14
  461. package/templates/plugins/resource/apiconnector/sample/ts/cert.template +0 -19
  462. package/templates/plugins/resource/apiconnector/sample/ts/custom.template +0 -42
  463. package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +0 -15
  464. package/templates/plugins/resource/identity/bicep/provision.template.bicep +0 -14
  465. package/templates/plugins/resource/identity/parameters.json +0 -12
  466. package/templates/plugins/resource/identity/template.json +0 -28
  467. package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +0 -57
  468. package/templates/plugins/resource/keyvault/bicep/provision.template.bicep +0 -15
  469. package/templates/plugins/resource/simpleauth/SimpleAuth.zip +0 -0
  470. package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +0 -12
  471. package/templates/plugins/resource/simpleauth/bicep/provision.template.bicep +0 -14
  472. package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +0 -62
  473. package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +0 -51
  474. package/templates/plugins/resource/simpleauth/version.txt +0 -2
  475. package/templates/plugins/resource/spfx/solution/README.md +0 -82
  476. package/templates/plugins/resource/spfx/solution/manifest.local.template.json +0 -62
  477. package/templates/plugins/resource/spfx/solution/manifest_multi_env.json +0 -63
  478. package/templates/plugins/resource/spfx/solution/rootREADME.md +0 -13
  479. package/templates/plugins/resource/sql/bicep/newDatabase.orchestration.template.bicep +0 -5
  480. package/templates/plugins/resource/sql/bicep/newDatabaseProvision.template.bicep +0 -15
  481. package/templates/plugins/resource/sql/bicep/parameters.json +0 -4
  482. package/templates/plugins/resource/sql/bicep/provision.template.bicep +0 -14
  483. package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +0 -44
  484. /package/build/component/{resource → generator}/spfx/depsChecker/dependencyChecker.js +0 -0
  485. /package/build/component/generator/{spfxGenerator.d.ts → spfx/spfxGenerator.d.ts} +0 -0
  486. /package/build/component/{resource → generator}/spfx/utils/question-helper.d.ts +0 -0
  487. /package/build/component/{resource → generator}/spfx/utils/question-helper.js +0 -0
  488. /package/build/component/{resource → generator}/spfx/utils/telemetry-helper.d.ts +0 -0
  489. /package/build/component/{resource → generator}/spfx/utils/telemetry-helper.js +0 -0
  490. /package/build/component/{resource → generator}/spfx/utils/telemetryEvents.d.ts +0 -0
  491. /package/build/component/{resource → generator}/spfx/utils/telemetryEvents.js +0 -0
  492. /package/build/component/{resource → generator}/spfx/utils/utils.d.ts +0 -0
  493. /package/build/component/{resource → generator}/spfx/utils/utils.js +0 -0
@@ -1,44 +0,0 @@
1
- @secure()
2
- param provisionParameters object
3
- var resourceBaseName = provisionParameters.resourceBaseName
4
- var sqlServerName = contains(provisionParameters, 'sqlServerName') ? provisionParameters['sqlServerName'] : '${resourceBaseName}' // Try to read name for SQL Server from parameters
5
- var sqlDatabaseName = contains(provisionParameters, 'sqlDatabaseName') ? provisionParameters['sqlDatabaseName'] : '${resourceBaseName}' // Try to read name for SQL Database from parameters
6
- var sqlDatabaseSku = contains(provisionParameters, 'sqlDatabaseSku') ? provisionParameters['sqlDatabaseSku'] : 'Basic' // Try to read SKU for SQL Database from parameters
7
- var administratorLogin = contains(provisionParameters, 'azureSqlAdmin') ? provisionParameters['azureSqlAdmin'] : '' // Try to read admin name for SQL Server from parameters, the value must be empty or same with the admin name used to create SQL Server
8
- var administratorLoginPassword = contains(provisionParameters, 'azureSqlAdminPassword') ? provisionParameters['azureSqlAdminPassword'] : '' // Try to read admin password for SQL Server from parameters, empty means do not update admin password
9
-
10
- // SQL Server that hosts the databases
11
- // The symbolic name of SQL Server will be referenced as parent when adding nmultiple databases
12
- resource sqlServer 'Microsoft.Sql/servers@2021-05-01-preview' = {
13
- location: resourceGroup().location
14
- name: sqlServerName
15
- properties: {
16
- minimalTlsVersion:'1.2'
17
- administratorLogin: empty(administratorLogin) ? null : administratorLogin
18
- administratorLoginPassword: administratorLoginPassword
19
- }
20
- }
21
-
22
- // SQL Database
23
- resource sqlDatabase 'Microsoft.Sql/servers/databases@2021-05-01-preview' = {
24
- parent: sqlServer
25
- location: resourceGroup().location
26
- name: sqlDatabaseName
27
- sku: {
28
- name: sqlDatabaseSku // You can follow https://aka.ms/teamsfx-bicep-add-param-tutorial to add sqlDatabaseSku property to provisionParameters to override the default value "Basic".
29
- }
30
- }
31
-
32
- // Allow Azure services connect to the SQL Server
33
- resource sqlFirewallRules 'Microsoft.Sql/servers/firewallRules@2021-05-01-preview' = {
34
- parent: sqlServer
35
- name: 'AllowAzure'
36
- properties: {
37
- endIpAddress: '0.0.0.0'
38
- startIpAddress: '0.0.0.0'
39
- }
40
- }
41
-
42
- output sqlResourceId string = sqlServer.id
43
- output sqlEndpoint string = sqlServer.properties.fullyQualifiedDomainName
44
- output sqlDatabaseName string = sqlDatabaseName
@@ -1,14 +0,0 @@
1
- // Resources for Azure SQL
2
- module azureSqlProvision './provision/azureSql.bicep' = {
3
- name: 'azureSqlProvision'
4
- params: {
5
- provisionParameters: provisionParameters
6
- }
7
- }
8
-
9
- output azureSqlOutput object = {
10
- teamsFxPluginId: 'azure-sql'
11
- sqlResourceId: azureSqlProvision.outputs.sqlResourceId
12
- sqlEndpoint: azureSqlProvision.outputs.sqlEndpoint
13
- databaseName: azureSqlProvision.outputs.sqlDatabaseName
14
- }
@@ -1,15 +0,0 @@
1
- @secure()
2
- param provisionParameters object
3
- var resourceBaseName = provisionParameters.resourceBaseName
4
- var identityName = contains(provisionParameters, 'userAssignedIdentityName') ? provisionParameters['userAssignedIdentityName'] : '${resourceBaseName}' // Try to read name for user assigned identity from parameters
5
-
6
- // user assigned identity will be used to access other Azure resources
7
- resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2018-11-30' = {
8
- name: identityName
9
- location: resourceGroup().location
10
- }
11
-
12
- output identityName string = identityName
13
- output identityClientId string = managedIdentity.properties.clientId
14
- output identityResourceId string = managedIdentity.id
15
- output identityPrincipalId string = managedIdentity.properties.principalId
@@ -1,14 +0,0 @@
1
- // Resources for identity
2
- module userAssignedIdentityProvision './provision/identity.bicep' = {
3
- name: 'userAssignedIdentityProvision'
4
- params: {
5
- provisionParameters: provisionParameters
6
- }
7
- }
8
-
9
- output identityOutput object = {
10
- teamsFxPluginId: 'identity'
11
- identityName: userAssignedIdentityProvision.outputs.identityName
12
- identityResourceId: userAssignedIdentityProvision.outputs.identityResourceId
13
- identityClientId: userAssignedIdentityProvision.outputs.identityClientId
14
- }
@@ -1,57 +0,0 @@
1
- @secure()
2
- param provisionParameters object
3
- param userAssignedIdentityObjectId string // User assigned identity that will be grant Key Vault access permission
4
-
5
- var resourceBaseName = provisionParameters.resourceBaseName
6
- var keyVaultName = contains(provisionParameters, 'keyVaultName') ? provisionParameters['keyVaultName'] : '${resourceBaseName}' // Try to read name for Key Vault from parameters
7
- var tenantId = subscription().tenantId
8
- var m365ClientSecretName = 'm365ClientSecret' // Secret name of AAD app client secret
9
- var m365ClientSecret = contains(provisionParameters, 'm365ClientSecret') ? provisionParameters['m365ClientSecret'] : '' // Try to read AAD app client secret from parameters
10
- var botClientSecretName = 'botClientSecret' // Secret name of bot's AAD app client secret
11
- var botClientSecret = contains(provisionParameters, 'botAadAppClientSecret') ? provisionParameters['botAadAppClientSecret'] : '' // Try to read bot's AAD app client secret from parameters
12
- var keyVaultSkuName = contains(provisionParameters, 'keyVaultSkuName') ? provisionParameters['keyVaultSkuName'] : 'standard' // Try to read SKU for Key Vault from parameters
13
-
14
- resource keyVault 'Microsoft.KeyVault/vaults@2019-09-01' = {
15
- name: keyVaultName
16
- location: resourceGroup().location
17
- properties: {
18
- tenantId: tenantId
19
- accessPolicies: [
20
- {
21
- tenantId: tenantId
22
- objectId: userAssignedIdentityObjectId
23
- permissions: {
24
- secrets: [
25
- 'get'
26
- ]
27
- }
28
- }
29
- ]
30
- sku: {
31
- name: keyVaultSkuName // You can follow https://aka.ms/teamsfx-bicep-add-param-tutorial to add "keyVaultSkuName" property to provisionParameters to override the default value "standard".
32
- family: 'A'
33
- }
34
- }
35
- }
36
-
37
- // Set or update AAD app client secret if it's not empty in parameters
38
- resource clientSecretKv 'Microsoft.KeyVault/vaults/secrets@2019-09-01' = if (length(m365ClientSecret) != 0) {
39
- parent: keyVault
40
- name: m365ClientSecretName
41
- properties: {
42
- value: m365ClientSecret
43
- }
44
- }
45
-
46
- // Set or update bot's AAD app client secret if it's not empty in parameters
47
- resource botClientSecretKv 'Microsoft.KeyVault/vaults/secrets@2019-09-01' = if (length(botClientSecret) != 0) {
48
- parent: keyVault
49
- name: botClientSecretName
50
- properties: {
51
- value: botClientSecret
52
- }
53
- }
54
-
55
- output keyVaultResourceId string = keyVault.id
56
- output m365ClientSecretReference string = '@Microsoft.KeyVault(VaultName=${keyVaultName};SecretName=${m365ClientSecretName})'
57
- output botClientSecretReference string = '@Microsoft.KeyVault(VaultName=${keyVaultName};SecretName=${botClientSecretName})'
@@ -1,15 +0,0 @@
1
- // Resources for Azure Key Vault
2
- module keyVaultProvision './provision/keyVault.bicep' = {
3
- name: 'keyVaultProvision'
4
- params: {
5
- provisionParameters: provisionParameters
6
- userAssignedIdentityObjectId: {{identity.principalId}}
7
- }
8
- }
9
-
10
- output keyVaultOutput object = {
11
- teamsFxPluginId: 'key-vault'
12
- keyVaultResourceId: keyVaultProvision.outputs.keyVaultResourceId
13
- m365ClientSecretReference: keyVaultProvision.outputs.m365ClientSecretReference
14
- botClientSecretReference: keyVaultProvision.outputs.botClientSecretReference
15
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": {
3
- "@microsoft/teamsfx": "^2.0.0"
4
- }
5
- }
@@ -1,20 +0,0 @@
1
- /*
2
- Setting API configuration for cloud environment:
3
- We have set configuration in `.env.teamsfx.local` based on your answers.
4
- Before you deploy your code to Azure using TeamsFx, follow https://aka.ms/teamsfx-add-appsettings to add the following configuration (with their appropriate values) to your Azure environment:
5
- TEAMSFX_API_{{capitalName}}_ENDPOINT
6
- {{#if (equals config.AuthConfig.AuthType "basic")}}
7
- TEAMSFX_API_{{capitalName}}_USERNAME
8
- TEAMSFX_API_{{capitalName}}_PASSWORD
9
- {{else if (equals config.AuthConfig.AuthType "aad")}}
10
- {{#if (equals config.AuthConfig.ReuseTeamsApp false)}}
11
- TEAMSFX_API_{{capitalName}}_TENANT_ID
12
- TEAMSFX_API_{{capitalName}}_CLIENT_ID
13
- TEAMSFX_API_{{capitalName}}_CLIENT_SECRET
14
- {{/if}}
15
- {{else if (equals config.AuthConfig.AuthType "apikey")}}
16
- TEAMSFX_API_{{capitalName}}_API_KEY
17
- {{/if}}
18
-
19
- Refer to https://aka.ms/teamsfx-connect-api to learn more.
20
- */
@@ -1,52 +0,0 @@
1
- // This file is auto generated by Teams Toolkit to provide you instructions and reference code to call your API.
2
-
3
- /*
4
- Next steps:
5
- 1. Run npm install. We added the @microsoft/teamsfx to your package.json.
6
- You need to run the command under the "{{component}}" folder (instead of your project root folder).
7
- {{#if (equals config.AuthConfig.AuthType "basic")}}
8
- 2. Add your user password to TEAMSFX_API_{{capitalName}}_PASSWORD in `{{component}}/.env.teamsfx.local`.
9
- {{else if (equals config.AuthConfig.AuthType "aad")}}
10
- {{#if (equals config.AuthConfig.ReuseTeamsApp false)}}
11
- 2. Replace "<your-api-scope>" in this file with actual scope required by the API.
12
- 3. Set `TEAMSFX_API_{{capitalName}}_CLIENT_SECRET` to your client secret in the file `{{component}}/.env.teamsfx.local`.
13
- {{else}}
14
- 2. Replace "<your-api-scope>" in this file with actual scope required by the API.
15
- 3. Refer https://aka.ms/teamsfx-connect-api-with-aad for configuring AAD app and consent scopes.
16
- {{/if}}
17
- {{else if (equals config.AuthConfig.AuthType "apikey")}}
18
- 2. Set `TEAMSFX_API_{{capitalName}}_API_KEY` to your API key in the file `{{component}}/.env.teamsfx.local`.
19
- {{else if (equals config.AuthConfig.AuthType "cert")}}
20
- 2. Add code to read your certificate content and replace "<your-cert>" and "<your-private-key>" with the actual values.
21
- {{else if (equals config.AuthConfig.AuthType "custom")}}
22
- 2. Refer to the sample code and comments in this file to implement your custom auth provider.
23
- {{/if}}
24
-
25
- {{#if (equals languageExt "js")}}
26
- It is also recommended to put all the configurations into config.js file.
27
- {{else}}
28
- It is also recommended to put all the configurations into config.ts file.
29
- {{/if}}
30
-
31
- You can import the API client (an Axios instance) in another file and call {{config.APIName}} APIs and authentication is now handled for you automatically.
32
-
33
- Here is an example for a GET request to "relative_path_of_target_api":
34
- ```
35
- {{#if (equals languageExt "js")}}
36
- const { {{config.APIName}}Client } = require("relative_path_to_this_file");
37
- {{else}}
38
- import { {{config.APIName}}Client } from "relative_path_to_this_file";
39
- {{/if}}
40
-
41
- const response = await {{config.APIName}}Client.get("relative_path_of_target_api");
42
- // You only need to enter the relative path for your API.
43
- // For example, if you want to call api https://my-api-endpoint/test and you configured https://my-api-endpoint as the API endpoint,
44
- // your code will be: const response = await {{config.APIName}}Client.get("test");
45
-
46
- const responseBody = response.data;
47
- ```
48
-
49
- If you added this API while local debugging, stop local debugging and start again because local debugging will not hot reload changes to `.env.teamsfx.local`.
50
-
51
- Refer to https://aka.ms/teamsfx-connect-api to learn more.
52
- */
@@ -1,31 +0,0 @@
1
- const teamsfxSdk = require("@microsoft/teamsfx");
2
-
3
- // Load application configuration. This sample uses the client credential flow to acquire a token for your API.
4
- {{#if (equals config.AuthConfig.ReuseTeamsApp true)}}
5
- const teamsFx = new teamsfxSdk.TeamsFx(teamsfxSdk.IdentityType.App, {
6
- authorityHost: process.env.M365_AUTHORITY_HOST,
7
- tenantId: process.env.M365_TENANT_ID,
8
- clientId: process.env.M365_CLIENT_ID,
9
- clientSecret: process.env.M365_CLIENT_SECRET,
10
- });
11
- {{else}}
12
- const teamsFx = new teamsfxSdk.TeamsFx(teamsfxSdk.IdentityType.App, {
13
- // You can replace the default authorityHost URL
14
- authorityHost: "https://login.microsoftonline.com",
15
- tenantId: process.env.TEAMSFX_API_{{capitalName}}_TENANT_ID,
16
- clientId: process.env.TEAMSFX_API_{{capitalName}}_CLIENT_ID,
17
- // This references the client secret that you must add in the file `.env.teamsfx.local`.
18
- clientSecret: process.env.TEAMSFX_API_{{capitalName}}_CLIENT_SECRET,
19
- });
20
- {{/if}}
21
- // Initialize a new axios instance to call {{config.APIName}}
22
- const appCredential = teamsFx.getCredential();
23
- const authProvider = new teamsfxSdk.BearerTokenAuthProvider(
24
- // TODO: Replace '<your-api-scope>' with your required API scope
25
- async () => (await appCredential.getToken("<your-api-scope>")).token
26
- );
27
- const {{config.APIName}}Client = teamsfxSdk.createApiClient(
28
- process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
29
- authProvider
30
- );
31
- module.exports.{{config.APIName}}Client = {{config.APIName}}Client;
@@ -1,19 +0,0 @@
1
- const teamsfxSdk = require("@microsoft/teamsfx");
2
-
3
- // Load application configuration
4
- const teamsFx = new teamsfxSdk.TeamsFx();
5
- // Initialize a new axios instance to call {{config.APIName}}
6
- const authProvider = new teamsfxSdk.ApiKeyProvider(
7
- "{{config.AuthConfig.Name}}",
8
- process.env.TEAMSFX_API_{{capitalName}}_API_KEY,
9
- {{#if (equals config.AuthConfig.Location "request header")}}
10
- teamsfxSdk.ApiKeyLocation.Header
11
- {{else}}
12
- teamsfxSdk.ApiKeyLocation.QueryParams
13
- {{/if}}
14
- );
15
- const {{config.APIName}}Client = teamsfxSdk.createApiClient(
16
- process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
17
- authProvider
18
- );
19
- module.exports.{{config.APIName}}Client = {{config.APIName}}Client;
@@ -1,14 +0,0 @@
1
- const teamsfxSdk = require("@microsoft/teamsfx");
2
-
3
- // Load application configuration
4
- const teamsFx = new teamsfxSdk.TeamsFx();
5
- // Initialize a new axios instance to call {{config.APIName}}
6
- const authProvider = new teamsfxSdk.BasicAuthProvider(
7
- process.env.TEAMSFX_API_{{capitalName}}_USERNAME,
8
- process.env.TEAMSFX_API_{{capitalName}}_PASSWORD
9
- );
10
- const {{config.APIName}}Client = teamsfxSdk.createApiClient(
11
- process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
12
- authProvider
13
- );
14
- module.exports.{{config.APIName}}Client = {{config.APIName}}Client;
@@ -1,17 +0,0 @@
1
- const teamsfxSdk = require("@microsoft/teamsfx");
2
-
3
- // Load application configuration
4
- const teamsFx = new teamsfxSdk.TeamsFx();
5
- // Initialize a new axios instance to call {{config.APIName}}
6
- const authProvider = new teamsfxSdk.CertificateAuthProvider(
7
- // TODO:
8
- // 1. Add code to read your certificate and private key.
9
- // 2. Replace "<your-cert>" and "<your-private-key>" with your actual certificate and private key values
10
- // If you have a .pfx certificate, you can use the `createPfxCertOption` function to initialize your certificate
11
- teamsfxSdk.createPemCertOption("<your-cert>", "<your-private-key>")
12
- );
13
- const {{config.APIName}}Client = teamsfxSdk.createApiClient(
14
- process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
15
- authProvider
16
- );
17
- module.exports.{{config.APIName}}Client = {{config.APIName}}Client;
@@ -1,39 +0,0 @@
1
- const teamsfxSdk = require("@microsoft/teamsfx");
2
-
3
- // A custom authProvider implements the `AuthProvider` interface.
4
- // This sample authProvider implementation will set a custom property in the request header
5
- class CustomAuthProvider {
6
- customProperty;
7
- customValue;
8
-
9
- constructor(customProperty, customValue) {
10
- this.customProperty = customProperty;
11
- this.customValue = customValue;
12
- }
13
-
14
- // Replace the sample code with your own logic.
15
- AddAuthenticationInfo = async (config) => {
16
- if (!config.headers) {
17
- config.headers = {};
18
- }
19
- config.headers[this.customProperty] = this.customValue;
20
- return config;
21
- };
22
- }
23
-
24
- // Load application configuration
25
- const teamsFx = new teamsfxSdk.TeamsFx();
26
-
27
- const authProvider = new CustomAuthProvider(
28
- // You can also add configuration to the file `.env.teamsfx.local` and use `process.env.{setting_name}` to read the configuration. For example:
29
- // process.env.TEAMSFX_API_{{capitalName}}_CUSTOM_PROPERTY,
30
- // process.env.TEAMSFX_API_{{capitalName}}_CUSTOM_VALUE
31
- "customPropery",
32
- "customValue"
33
- );
34
- // Initialize a new axios instance to call {{config.APIName}}
35
- const {{config.APIName}}Client = teamsfxSdk.createApiClient(
36
- process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
37
- authProvider
38
- );
39
- module.exports.{{config.APIName}}Client = {{config.APIName}}Client;
@@ -1,36 +0,0 @@
1
- import {
2
- TeamsFx,
3
- createApiClient,
4
- BearerTokenAuthProvider,
5
- IdentityType,
6
- } from "@microsoft/teamsfx";
7
-
8
- // Load application configuration. This sample uses the client credential flow to acquire a token for your API.
9
- {{#if (equals config.AuthConfig.ReuseTeamsApp true)}}
10
- const teamsFx = new TeamsFx(IdentityType.App, {
11
- authorityHost: process.env.M365_AUTHORITY_HOST!,
12
- tenantId: process.env.M365_TENANT_ID!,
13
- clientId: process.env.M365_CLIENT_ID!,
14
- clientSecret: process.env.M365_CLIENT_SECRET!,
15
- });
16
- {{else}}
17
- const teamsFx = new TeamsFx(IdentityType.App, {
18
- // You can replace the default authorityHost URL
19
- authorityHost: "https://login.microsoftonline.com",
20
- tenantId: process.env.TEAMSFX_API_{{capitalName}}_TENANT_ID!,
21
- clientId: process.env.TEAMSFX_API_{{capitalName}}_CLIENT_ID!,
22
- // This references the client secret that you must add in the file `.env.teamsfx.local`.
23
- clientSecret: process.env.TEAMSFX_API_{{capitalName}}_CLIENT_SECRET!,
24
- });
25
- {{/if}}
26
- // Initialize a new axios instance to call {{config.APIName}}
27
- const appCredential = teamsFx.getCredential();
28
- const authProvider = new BearerTokenAuthProvider(
29
- // TODO: Replace '<your-api-scope>' with your required API scope
30
- async () => (await appCredential.getToken("<your-api-scope>"))!.token
31
- );
32
- const {{config.APIName}}Client = createApiClient(
33
- process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
34
- authProvider
35
- );
36
- export { {{config.APIName}}Client };
@@ -1,16 +0,0 @@
1
- import { TeamsFx, createApiClient, ApiKeyProvider, ApiKeyLocation } from "@microsoft/teamsfx";
2
-
3
- // Load application configuration
4
- const teamsFx = new TeamsFx();
5
- // Initialize a new axios instance to call {{config.APIName}}
6
- const authProvider = new ApiKeyProvider(
7
- "{{config.AuthConfig.Name}}",
8
- process.env.TEAMSFX_API_{{capitalName}}_API_KEY,
9
- {{#if (equals config.AuthConfig.Location "request header")}}
10
- ApiKeyLocation.Header
11
- {{else}}
12
- ApiKeyLocation.QueryParams
13
- {{/if}}
14
- );
15
- const {{config.APIName}}Client = createApiClient(process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT, authProvider);
16
- export { {{config.APIName}}Client };
@@ -1,14 +0,0 @@
1
- import { TeamsFx, createApiClient, BasicAuthProvider } from "@microsoft/teamsfx";
2
-
3
- // Load application configuration
4
- const teamsFx = new TeamsFx();
5
- // Initialize a new axios instance to call {{config.APIName}}
6
- const authProvider = new BasicAuthProvider(
7
- process.env.TEAMSFX_API_{{capitalName}}_USERNAME,
8
- process.env.TEAMSFX_API_{{capitalName}}_PASSWORD
9
- );
10
- const {{config.APIName}}Client = createApiClient(
11
- process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
12
- authProvider
13
- );
14
- export { {{config.APIName}}Client };
@@ -1,19 +0,0 @@
1
- import {
2
- TeamsFx,
3
- createApiClient,
4
- CertificateAuthProvider,
5
- createPemCertOption,
6
- } from "@microsoft/teamsfx";
7
-
8
- // Load application configuration
9
- const teamsFx = new TeamsFx();
10
- // Initialize a new axios instance to call {{config.APIName}}
11
- const authProvider = new CertificateAuthProvider(
12
- // TODO:
13
- // 1. Add code to read your certificate and private key.
14
- // 2. Replace "<your-cert>" and "<your-private-key>" with your actual certificate and private key values
15
- // If you have a .pfx certificate, you can use the `createPfxCertOption` function to initialize your certificate
16
- createPemCertOption("<your-cert>", "<your-private-key>")
17
- );
18
- const {{config.APIName}}Client = createApiClient(process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT, authProvider);
19
- export { {{config.APIName}}Client };
@@ -1,42 +0,0 @@
1
- import { TeamsFx, createApiClient, AuthProvider } from "@microsoft/teamsfx";
2
- import { AxiosRequestConfig } from "axios";
3
-
4
- // A custom authProvider implements the `AuthProvider` interface.
5
- // This sample authProvider implementation will set a custom property in the request header
6
- class CustomAuthProvider implements AuthProvider {
7
- customProperty: string;
8
- customValue: string;
9
-
10
- constructor(customProperty: string, customValue: string) {
11
- this.customProperty = customProperty;
12
- this.customValue = customValue;
13
- }
14
-
15
- // Replace the sample code with your own logic.
16
- AddAuthenticationInfo: (config: AxiosRequestConfig) => Promise<AxiosRequestConfig> = async (
17
- config
18
- ) => {
19
- if (!config.headers) {
20
- config.headers = {};
21
- }
22
- config.headers[this.customProperty] = this.customValue;
23
- return config;
24
- };
25
- }
26
-
27
- // Load application configuration
28
- const teamsFx = new TeamsFx();
29
-
30
- const authProvider = new CustomAuthProvider(
31
- // You can also add configuration to the file `.env.teamsfx.local` and use `process.env.{setting_name}` to read the configuration. For example:
32
- // process.env.TEAMSFX_API_{{capitalName}}_CUSTOM_PROPERTY,
33
- // process.env.TEAMSFX_API_{{capitalName}}_CUSTOM_VALUE
34
- "customPropery",
35
- "customValue"
36
- );
37
- // Initialize a new axios instance to call {{config.APIName}}
38
- const {{config.APIName}}Client = createApiClient(
39
- process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
40
- authProvider
41
- );
42
- export { {{config.APIName}}Client };
@@ -1,15 +0,0 @@
1
- @secure()
2
- param provisionParameters object
3
- var resourceBaseName = provisionParameters.resourceBaseName
4
- var identityName = contains(provisionParameters, 'userAssignedIdentityName') ? provisionParameters['userAssignedIdentityName'] : '${resourceBaseName}' // Try to read name for user assigned identity from parameters
5
-
6
- // user assigned identity will be used to access other Azure resources
7
- resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2018-11-30' = {
8
- name: identityName
9
- location: resourceGroup().location
10
- }
11
-
12
- output identityName string = identityName
13
- output identityClientId string = managedIdentity.properties.clientId
14
- output identityResourceId string = managedIdentity.id
15
- output identityPrincipalId string = managedIdentity.properties.principalId
@@ -1,14 +0,0 @@
1
- // Resources for identity
2
- module userAssignedIdentityProvision '\{{fx-resource-identity.Provision.identity.path}}' = {
3
- name: 'userAssignedIdentityProvision'
4
- params: {
5
- provisionParameters: provisionParameters
6
- }
7
- }
8
-
9
- output identityOutput object = {
10
- teamsFxPluginId: 'fx-resource-identity'
11
- identityName: userAssignedIdentityProvision.outputs.identityName
12
- identityResourceId: userAssignedIdentityProvision.outputs.identityResourceId
13
- identityClientId: userAssignedIdentityProvision.outputs.identityClientId
14
- }
@@ -1,12 +0,0 @@
1
- {
2
- "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
3
- "contentVersion": "1.0.0.0",
4
- "parameters": {
5
- "identityName": {
6
- "value": ""
7
- },
8
- "location": {
9
- "value": ""
10
- }
11
- }
12
- }
@@ -1,28 +0,0 @@
1
- {
2
- "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
3
- "contentVersion": "1.0.0.0",
4
- "parameters": {
5
- "location": {
6
- "type": "string",
7
- "defaultValue": "[resourceGroup().location]",
8
- "metadata": {
9
- "description": "Location for all resources."
10
- }
11
- },
12
- "identityName": {
13
- "type": "string",
14
- "metadata": {
15
- "description": "name for identity"
16
- }
17
- }
18
- },
19
- "variables": {},
20
- "resources": [
21
- {
22
- "type": "Microsoft.ManagedIdentity/userAssignedIdentities",
23
- "name": "[parameters('identityName')]",
24
- "apiVersion": "2018-11-30",
25
- "location": "[parameters('location')]"
26
- }
27
- ]
28
- }
@@ -1,57 +0,0 @@
1
- @secure()
2
- param provisionParameters object
3
- param userAssignedIdentityObjectId string // User assigned identity that will be grant Key Vault access permission
4
-
5
- var resourceBaseName = provisionParameters.resourceBaseName
6
- var keyVaultName = contains(provisionParameters, 'keyVaultName') ? provisionParameters['keyVaultName'] : '${resourceBaseName}' // Try to read name for Key Vault from parameters
7
- var tenantId = subscription().tenantId
8
- var m365ClientSecretName = 'm365ClientSecret' // Secret name of AAD app client secret
9
- var m365ClientSecret = contains(provisionParameters, 'm365ClientSecret') ? provisionParameters['m365ClientSecret'] : '' // Try to read AAD app client secret from parameters
10
- var botClientSecretName = 'botClientSecret' // Secret name of bot's AAD app client secret
11
- var botClientSecret = contains(provisionParameters, 'botAadAppClientSecret') ? provisionParameters['botAadAppClientSecret'] : '' // Try to read bot's AAD app client secret from parameters
12
- var keyVaultSkuName = contains(provisionParameters, 'keyVaultSkuName') ? provisionParameters['keyVaultSkuName'] : 'standard' // Try to read SKU for Key Vault from parameters
13
-
14
- resource keyVault 'Microsoft.KeyVault/vaults@2019-09-01' = {
15
- name: keyVaultName
16
- location: resourceGroup().location
17
- properties: {
18
- tenantId: tenantId
19
- accessPolicies: [
20
- {
21
- tenantId: tenantId
22
- objectId: userAssignedIdentityObjectId
23
- permissions: {
24
- secrets: [
25
- 'get'
26
- ]
27
- }
28
- }
29
- ]
30
- sku: {
31
- name: keyVaultSkuName // You can follow https://aka.ms/teamsfx-bicep-add-param-tutorial to add "keyVaultSkuName" property to provisionParameters to override the default value "standard".
32
- family: 'A'
33
- }
34
- }
35
- }
36
-
37
- // Set or update AAD app client secret if it's not empty in parameters
38
- resource clientSecretKv 'Microsoft.KeyVault/vaults/secrets@2019-09-01' = if (length(m365ClientSecret) != 0) {
39
- parent: keyVault
40
- name: m365ClientSecretName
41
- properties: {
42
- value: m365ClientSecret
43
- }
44
- }
45
-
46
- // Set or update bot's AAD app client secret if it's not empty in parameters
47
- resource botClientSecretKv 'Microsoft.KeyVault/vaults/secrets@2019-09-01' = if (length(botClientSecret) != 0) {
48
- parent: keyVault
49
- name: botClientSecretName
50
- properties: {
51
- value: botClientSecret
52
- }
53
- }
54
-
55
- output keyVaultResourceId string = keyVault.id
56
- output m365ClientSecretReference string = '@Microsoft.KeyVault(VaultName=${keyVaultName};SecretName=${m365ClientSecretName})'
57
- output botClientSecretReference string = '@Microsoft.KeyVault(VaultName=${keyVaultName};SecretName=${botClientSecretName})'