@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 +0,0 @@
1
- {"version":3,"file":"spfxTabCode.js","sourceRoot":"","sources":["../../../src/component/code/spfxTabCode.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,+CAA8C;AAC9C,wDAagC;AAChC,gEAA0B;AAC1B,mCAA0C;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,CAAC,iBAAiB,EAAE,CAAC;YACrD,MAAM,SAAS,GACb,eAAe,KAAK,SAAS;gBAC3B,CAAC,CAAC,sBAAsB;gBACxB,CAAC,CAAC,6BAA6B,eAAe,EAAE,CAAC;YACrD,MAAM,gBAAgB,GACpB,gBAAgB,KAAK,SAAS;gBAC5B,CAAC,CAAC,mDAAmD;gBACrD,CAAC,CAAC,0DAA0D,eAAe,EAAE,CAAC;YAClF,MAAA,OAAO,CAAC,WAAW,0CAAE,KAAK,CACxB,2NAA2N,SAAS,OAAO,gBAAgB,EAAE,CAC9P,CAAC;YACF,MAAA,OAAO,CAAC,WAAW,0CAAE,KAAK,CACxB,kCAAkC,MAAM,CAAC,WAAW,IAAI,OAAO,CAAC,WAAW,EAAE,CAC9E,CAAC;SACH;QACD,IACG,KAAa,CAAC,OAAO;YACrB,KAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,2DAA2D,CAAC,EAC5F;YACA,MAAA,OAAO,CAAC,WAAW,0CAAE,KAAK,CACxB,+KAA+K,CAChL,CAAC;SACH;QACD,MAAM,CAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,GAAG,CAAC,KAAK,CAAC,CAAA,CAAC;QAClC,OAAO,iBAAG,CAAC,qBAAa,CAAC,KAAK,CAAC,CAAC,CAAC;KAClC;AACH,CAAC;AApOD,oCAoOC"}
@@ -1,4 +0,0 @@
1
- import { FxError, InputsWithProjectPath, Result } from "@microsoft/teamsfx-api";
2
- import "reflect-metadata";
3
- export declare function createEnvWithName(targetEnvName: string, appName: string, inputs: InputsWithProjectPath, existingTabEndpoint?: string): Promise<Result<undefined, FxError>>;
4
- //# sourceMappingURL=envManager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"envManager.d.ts","sourceRoot":"","sources":["../../src/component/envManager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAO,OAAO,EAAE,qBAAqB,EAAM,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACzF,OAAO,kBAAkB,CAAC;AAK1B,wBAAsB,iBAAiB,CACrC,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,qBAAqB,EAC7B,mBAAmB,CAAC,EAAE,MAAM,GAC3B,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAmBrC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.createEnvWithName = void 0;
6
- const teamsfx_api_1 = require("@microsoft/teamsfx-api");
7
- require("reflect-metadata");
8
- const environment_1 = require("../core/environment");
9
- const globalVars_1 = require("../core/globalVars");
10
- const utils_1 = require("./resource/appManifest/utils/utils");
11
- async function createEnvWithName(targetEnvName, appName, inputs, existingTabEndpoint) {
12
- var _a;
13
- if (targetEnvName === environment_1.environmentManager.getLocalEnvName()) {
14
- appName = utils_1.getLocalAppName(appName);
15
- }
16
- const newEnvConfig = environment_1.environmentManager.newEnvConfigData(appName, existingTabEndpoint);
17
- const writeEnvResult = await environment_1.environmentManager.writeEnvConfig(inputs.projectPath, newEnvConfig, targetEnvName);
18
- if (writeEnvResult.isErr()) {
19
- return teamsfx_api_1.err(writeEnvResult.error);
20
- }
21
- (_a = globalVars_1.TOOLS.logProvider) === null || _a === void 0 ? void 0 : _a.debug(`[core] persist ${targetEnvName} env state to path ${writeEnvResult.value}: ${JSON.stringify(newEnvConfig)}`);
22
- return teamsfx_api_1.ok(undefined);
23
- }
24
- exports.createEnvWithName = createEnvWithName;
25
- //# sourceMappingURL=envManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"envManager.js","sourceRoot":"","sources":["../../src/component/envManager.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAAyF;AACzF,4BAA0B;AAC1B,qDAAyD;AACzD,mDAA2C;AAC3C,8DAAqE;AAE9D,KAAK,UAAU,iBAAiB,CACrC,aAAqB,EACrB,OAAe,EACf,MAA6B,EAC7B,mBAA4B;;IAE5B,IAAI,aAAa,KAAK,gCAAkB,CAAC,eAAe,EAAE,EAAE;QAC1D,OAAO,GAAG,uBAAe,CAAC,OAAO,CAAC,CAAC;KACpC;IACD,MAAM,YAAY,GAAG,gCAAkB,CAAC,gBAAgB,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAC;IACvF,MAAM,cAAc,GAAG,MAAM,gCAAkB,CAAC,cAAc,CAC5D,MAAM,CAAC,WAAW,EAClB,YAAY,EACZ,aAAa,CACd,CAAC;IACF,IAAI,cAAc,CAAC,KAAK,EAAE,EAAE;QAC1B,OAAO,iBAAG,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;KAClC;IACD,MAAA,kBAAK,CAAC,WAAW,0CAAE,KAAK,CACtB,kBAAkB,aAAa,sBAAsB,cAAc,CAAC,KAAK,KAAK,IAAI,CAAC,SAAS,CAC1F,YAAY,CACb,EAAE,CACJ,CAAC;IACF,OAAO,gBAAE,CAAC,SAAS,CAAC,CAAC;AACvB,CAAC;AAxBD,8CAwBC"}
@@ -1,23 +0,0 @@
1
- import { Inputs, QTreeNode, ContextV3 } from "@microsoft/teamsfx-api";
2
- import { ApiConnectorConfiguration } from "./config";
3
- import { ApiConnectorResult, QuestionResult } from "./result";
4
- export declare class ApiConnectorImpl {
5
- scaffold(ctx: ContextV3, inputs: Inputs): Promise<ApiConnectorResult>;
6
- private scaffoldInComponent;
7
- private backupExistingFiles;
8
- private removeSampleFilesWhenRestore;
9
- private getAuthConfigFromInputs;
10
- private getUserDataFromInputs;
11
- private scaffoldEnvFileToComponent;
12
- private scaffoldSampleCodeToComponent;
13
- private addSDKDependency;
14
- generateQuestion(ctx: ContextV3, inputs: Inputs): Promise<QuestionResult>;
15
- buildAuthTypeQuestion(ctx: ContextV3, inputs: Inputs): QTreeNode;
16
- buildBasicAuthQuestion(): QTreeNode;
17
- buildAADAuthQuestion(ctx: ContextV3, inputs: Inputs): QTreeNode;
18
- buildAPIKeyAuthQuestion(): QTreeNode;
19
- getTelemetryProperties(config: ApiConnectorConfiguration): {
20
- [key: string]: string;
21
- };
22
- }
23
- //# sourceMappingURL=ApiConnectorImpl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApiConnectorImpl.d.ts","sourceRoot":"","sources":["../../../../src/component/feature/apiconnector/ApiConnectorImpl.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,MAAM,EACN,SAAS,EAMT,SAAS,EACV,MAAM,wBAAwB,CAAC;AAWhC,OAAO,EACL,yBAAyB,EAK1B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,kBAAkB,EAAiB,cAAc,EAAc,MAAM,UAAU,CAAC;AA6BzF,qBAAa,gBAAgB;IACd,QAAQ,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;YA+HpE,mBAAmB;YA2BnB,mBAAmB;YAgBnB,4BAA4B;IAY1C,OAAO,CAAC,uBAAuB;IAyD/B,OAAO,CAAC,qBAAqB;YAiBf,0BAA0B;YAU1B,6BAA6B;YAU7B,gBAAgB;IAQjB,gBAAgB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAe/E,qBAAqB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS;IAoBhE,sBAAsB,IAAI,SAAS;IAMnC,oBAAoB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS;IAwB/D,uBAAuB,IAAI,SAAS;IAepC,sBAAsB,CAAC,MAAM,EAAE,yBAAyB,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;CAsB5F"}
@@ -1,288 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- "use strict";
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.ApiConnectorImpl = void 0;
6
- const tslib_1 = require("tslib");
7
- const path = tslib_1.__importStar(require("path"));
8
- const fs = tslib_1.__importStar(require("fs-extra"));
9
- const teamsfx_api_1 = require("@microsoft/teamsfx-api");
10
- const utils_1 = require("./utils");
11
- const result_1 = require("./result");
12
- const constants_1 = require("./constants");
13
- const envHandler_1 = require("./envHandler");
14
- const errors_1 = require("./errors");
15
- const questions_1 = require("./questions");
16
- const localizeUtils_1 = require("../../../common/localizeUtils");
17
- const sampleHandler_1 = require("./sampleHandler");
18
- const depsHandler_1 = require("./depsHandler");
19
- const telemetry_1 = require("./telemetry");
20
- const projectSettingsHelperV3_1 = require("../../../common/projectSettingsHelperV3");
21
- const common_1 = require("../../../error/common");
22
- class ApiConnectorImpl {
23
- async scaffold(ctx, inputs) {
24
- var _a, _b;
25
- if (!inputs.projectPath) {
26
- throw new common_1.InvalidProjectError();
27
- }
28
- const projectPath = inputs.projectPath;
29
- const languageType = ctx.projectSetting.programmingLanguage;
30
- const config = this.getUserDataFromInputs(inputs);
31
- const telemetryProperties = this.getTelemetryProperties(config);
32
- telemetry_1.TelemetryUtils.init(ctx.telemetryReporter);
33
- telemetry_1.TelemetryUtils.sendEvent(telemetry_1.Telemetry.stage.scaffold + telemetry_1.Telemetry.startSuffix, undefined, telemetryProperties);
34
- // CLI checker
35
- const bot = projectSettingsHelperV3_1.hasBot(ctx.projectSetting);
36
- const hasFunc = projectSettingsHelperV3_1.hasApi(ctx.projectSetting);
37
- if (!bot && config.ComponentType.includes(constants_1.ComponentType.BOT)) {
38
- throw result_1.ResultFactory.UserError(errors_1.ErrorMessage.componentNotExistError.name, errors_1.ErrorMessage.componentNotExistError.message(constants_1.ComponentType.BOT));
39
- }
40
- if (!hasFunc && config.ComponentType.includes(constants_1.ComponentType.API)) {
41
- throw result_1.ResultFactory.UserError(errors_1.ErrorMessage.componentNotExistError.name, errors_1.ErrorMessage.componentNotExistError.message(constants_1.ComponentType.API));
42
- }
43
- // backup relative files.
44
- const backupFolderName = utils_1.generateTempFolder();
45
- await Promise.all(config.ComponentType.map(async (component) => {
46
- await this.backupExistingFiles(path.join(projectPath, component), backupFolderName);
47
- }));
48
- try {
49
- let filesChanged = [];
50
- await Promise.all(config.ComponentType.map(async (component) => {
51
- const changes = await this.scaffoldInComponent(projectPath, component, config, languageType);
52
- filesChanged = filesChanged.concat(changes);
53
- }));
54
- const msg = utils_1.Notification.getNotificationMsg(projectPath, config, languageType);
55
- const logMessage = localizeUtils_1.getLocalizedString("plugins.apiConnector.Log.CommandSuccess", filesChanged.reduce((previousValue, currentValue) => previousValue +
56
- `[${currentValue.changeType}] ${path.relative(inputs.projectPath, currentValue.filePath)}` +
57
- "\n", ""));
58
- (_a = ctx.logProvider) === null || _a === void 0 ? void 0 : _a.info(logMessage); // Print generated/updated files for users
59
- if (inputs.platform != teamsfx_api_1.Platform.CLI) {
60
- (_b = ctx.userInteraction) === null || _b === void 0 ? void 0 : _b.showMessage("info", msg, false, "OK", utils_1.Notification.READ_MORE()).then((result) => {
61
- var _a;
62
- const userSelected = result.isOk() ? result.value : undefined;
63
- if (userSelected === utils_1.Notification.READ_MORE()) {
64
- (_a = ctx.userInteraction) === null || _a === void 0 ? void 0 : _a.openUrl(utils_1.Notification.READ_MORE_URL);
65
- }
66
- });
67
- }
68
- else {
69
- ctx.userInteraction.showMessage("info", msg + ` ${utils_1.Notification.GetLinkNotification()}`, false);
70
- }
71
- }
72
- catch (err) {
73
- await Promise.all(config.ComponentType.map(async (component) => {
74
- await fs.copy(path.join(projectPath, component, backupFolderName), path.join(projectPath, component), { overwrite: true });
75
- await this.removeSampleFilesWhenRestore(projectPath, component, config.APIName, languageType);
76
- }));
77
- if (!(err instanceof teamsfx_api_1.SystemError) && !(err instanceof teamsfx_api_1.UserError)) {
78
- err = result_1.ResultFactory.SystemError(errors_1.ErrorMessage.generateApiConFilesError.name, errors_1.ErrorMessage.generateApiConFilesError.message(err.message));
79
- }
80
- utils_1.sendErrorTelemetry(err, telemetry_1.Telemetry.stage.scaffold);
81
- throw err;
82
- }
83
- finally {
84
- await Promise.all(config.ComponentType.map(async (component) => {
85
- await utils_1.removeFileIfExist(path.join(projectPath, component, backupFolderName));
86
- }));
87
- }
88
- telemetry_1.TelemetryUtils.sendEvent(telemetry_1.Telemetry.stage.scaffold, true, telemetryProperties);
89
- const result = config.ComponentType.map((item) => {
90
- const componentPath = path.join(projectPath, item);
91
- return path.join(utils_1.getSampleDirPath(componentPath), utils_1.getSampleFileName(config.APIName, languageType));
92
- });
93
- return { generatedFiles: result };
94
- }
95
- async scaffoldInComponent(projectPath, componentItem, config, languageType) {
96
- const updatedPackageFile = await this.addSDKDependency(projectPath, componentItem);
97
- const updatedEnvFile = await this.scaffoldEnvFileToComponent(projectPath, config, componentItem);
98
- const generatedSampleFile = await this.scaffoldSampleCodeToComponent(projectPath, config, componentItem, languageType);
99
- const fileChanges = [updatedEnvFile, generatedSampleFile];
100
- if (updatedPackageFile) {
101
- // if we didn't update package.json, the result will be undefined
102
- fileChanges.push(updatedPackageFile);
103
- }
104
- return fileChanges;
105
- }
106
- async backupExistingFiles(folderPath, backupFolder) {
107
- await fs.ensureDir(path.join(folderPath, backupFolder));
108
- await utils_1.copyFileIfExist(path.join(folderPath, constants_1.Constants.envFileName), path.join(folderPath, backupFolder, constants_1.Constants.envFileName));
109
- await utils_1.copyFileIfExist(path.join(folderPath, constants_1.Constants.pkgJsonFile), path.join(folderPath, backupFolder, constants_1.Constants.pkgJsonFile));
110
- await utils_1.copyFileIfExist(path.join(folderPath, constants_1.Constants.pkgLockFile), path.join(folderPath, backupFolder, constants_1.Constants.pkgLockFile));
111
- }
112
- async removeSampleFilesWhenRestore(projectPath, component, apiName, languageType) {
113
- const apiFileName = utils_1.getSampleFileName(apiName, languageType);
114
- const sampleDirPath = utils_1.getSampleDirPath(path.join(projectPath, component));
115
- const sampleFilePath = path.join(sampleDirPath, apiFileName);
116
- await utils_1.removeFileIfExist(sampleFilePath);
117
- }
118
- getAuthConfigFromInputs(inputs) {
119
- let config;
120
- const apiType = inputs[constants_1.Constants.questionKey.apiType];
121
- switch (apiType) {
122
- case constants_1.AuthType.BASIC:
123
- utils_1.checkInputEmpty(inputs, constants_1.Constants.questionKey.apiUserName);
124
- config = {
125
- AuthType: constants_1.AuthType.BASIC,
126
- UserName: inputs[constants_1.Constants.questionKey.apiUserName],
127
- };
128
- break;
129
- case constants_1.AuthType.AAD:
130
- const AADConfig = {
131
- AuthType: constants_1.AuthType.AAD,
132
- };
133
- if (inputs[constants_1.Constants.questionKey.apiAppType] === questions_1.reuseAppOption().id) {
134
- AADConfig.ReuseTeamsApp = true;
135
- }
136
- else {
137
- AADConfig.ReuseTeamsApp = false;
138
- utils_1.checkInputEmpty(inputs, constants_1.Constants.questionKey.apiAppTenentId, constants_1.Constants.questionKey.apiAppId);
139
- AADConfig.TenantId = inputs[constants_1.Constants.questionKey.apiAppTenentId];
140
- AADConfig.ClientId = inputs[constants_1.Constants.questionKey.apiAppId];
141
- }
142
- config = AADConfig;
143
- break;
144
- case constants_1.AuthType.APIKEY:
145
- const APIKeyConfig = {
146
- AuthType: constants_1.AuthType.APIKEY,
147
- };
148
- if (inputs[constants_1.Constants.questionKey.apiAPIKeyLocation] === questions_1.requestHeaderOption().id) {
149
- APIKeyConfig.Location = constants_1.KeyLocation.Header;
150
- }
151
- else {
152
- APIKeyConfig.Location = constants_1.KeyLocation.QueryParams;
153
- }
154
- utils_1.checkInputEmpty(inputs, constants_1.Constants.questionKey.apiAPIKeyName);
155
- APIKeyConfig.Name = inputs[constants_1.Constants.questionKey.apiAPIKeyName];
156
- config = APIKeyConfig;
157
- break;
158
- case constants_1.AuthType.CUSTOM:
159
- case constants_1.AuthType.CERT:
160
- config = {
161
- AuthType: apiType,
162
- };
163
- break;
164
- default:
165
- throw result_1.ResultFactory.SystemError(errors_1.ErrorMessage.ApiConnectorInputError.name, errors_1.ErrorMessage.ApiConnectorInputError.message(inputs[constants_1.Constants.questionKey.apiAppType]));
166
- }
167
- return config;
168
- }
169
- getUserDataFromInputs(inputs) {
170
- utils_1.checkInputEmpty(inputs, constants_1.Constants.questionKey.componentsSelect, constants_1.Constants.questionKey.apiName, constants_1.Constants.questionKey.endpoint);
171
- const authConfig = this.getAuthConfigFromInputs(inputs);
172
- const config = {
173
- ComponentType: inputs[constants_1.Constants.questionKey.componentsSelect],
174
- APIName: inputs[constants_1.Constants.questionKey.apiName],
175
- AuthConfig: authConfig,
176
- EndPoint: inputs[constants_1.Constants.questionKey.endpoint],
177
- };
178
- return config;
179
- }
180
- async scaffoldEnvFileToComponent(projectPath, config, component) {
181
- const envHander = new envHandler_1.EnvHandler(projectPath, component);
182
- envHander.updateEnvs(config);
183
- return await envHander.saveLocalEnvFile();
184
- }
185
- async scaffoldSampleCodeToComponent(projectPath, config, component, languageType) {
186
- const sampleHandler = new sampleHandler_1.SampleHandler(projectPath, languageType, component);
187
- return await sampleHandler.generateSampleCode(config);
188
- }
189
- async addSDKDependency(projectPath, component) {
190
- const depsHandler = new depsHandler_1.DepsHandler(projectPath, component);
191
- return await depsHandler.addPkgDeps();
192
- }
193
- async generateQuestion(ctx, inputs) {
194
- const whichComponent = new questions_1.ComponentsQuestion(ctx, inputs);
195
- const apiNameQuestion = new questions_1.ApiNameQuestion(ctx);
196
- const whichAuthType = this.buildAuthTypeQuestion(ctx, inputs);
197
- const question = new teamsfx_api_1.QTreeNode({
198
- type: "group",
199
- });
200
- question.addChild(new teamsfx_api_1.QTreeNode(questions_1.apiEndpointQuestion()));
201
- question.addChild(new teamsfx_api_1.QTreeNode(whichComponent.getQuestion()));
202
- question.addChild(new teamsfx_api_1.QTreeNode(apiNameQuestion.getQuestion()));
203
- question.addChild(whichAuthType);
204
- return teamsfx_api_1.ok(question);
205
- }
206
- buildAuthTypeQuestion(ctx, inputs) {
207
- const whichAuthType = new teamsfx_api_1.QTreeNode({
208
- name: constants_1.Constants.questionKey.apiType,
209
- type: "singleSelect",
210
- staticOptions: [
211
- questions_1.BasicAuthOption(),
212
- questions_1.CertAuthOption(),
213
- questions_1.AADAuthOption(),
214
- questions_1.APIKeyAuthOption(),
215
- questions_1.ImplementMyselfOption(),
216
- ],
217
- title: localizeUtils_1.getLocalizedString("plugins.apiConnector.whichAuthType.title"),
218
- placeholder: localizeUtils_1.getLocalizedString("plugins.apiConnector.whichAuthType.placeholder"), // Use the placeholder to display some description
219
- });
220
- whichAuthType.addChild(this.buildAADAuthQuestion(ctx, inputs));
221
- whichAuthType.addChild(this.buildBasicAuthQuestion());
222
- whichAuthType.addChild(this.buildAPIKeyAuthQuestion());
223
- return whichAuthType;
224
- }
225
- buildBasicAuthQuestion() {
226
- const node = new teamsfx_api_1.QTreeNode(questions_1.basicAuthUsernameQuestion());
227
- node.condition = { equals: questions_1.BasicAuthOption().id };
228
- return node;
229
- }
230
- buildAADAuthQuestion(ctx, inputs) {
231
- const aad = projectSettingsHelperV3_1.hasAAD(ctx.projectSetting);
232
- let node;
233
- if (aad || inputs.platform === teamsfx_api_1.Platform.CLI_HELP) {
234
- node = new teamsfx_api_1.QTreeNode({
235
- name: constants_1.Constants.questionKey.apiAppType,
236
- type: "singleSelect",
237
- staticOptions: [questions_1.reuseAppOption(), questions_1.anotherAppOption()],
238
- title: localizeUtils_1.getLocalizedString("plugins.apiConnector.getQuestion.appType.title"),
239
- });
240
- node.condition = { equals: questions_1.AADAuthOption().id };
241
- const tenentQuestionNode = new teamsfx_api_1.QTreeNode(questions_1.appTenantIdQuestion());
242
- tenentQuestionNode.condition = { equals: questions_1.anotherAppOption().id };
243
- tenentQuestionNode.addChild(new teamsfx_api_1.QTreeNode(questions_1.appIdQuestion()));
244
- node.addChild(tenentQuestionNode);
245
- }
246
- else {
247
- node = new teamsfx_api_1.QTreeNode(questions_1.appTenantIdQuestion());
248
- node.condition = { equals: questions_1.AADAuthOption().id };
249
- node.addChild(new teamsfx_api_1.QTreeNode(questions_1.appIdQuestion()));
250
- }
251
- return node;
252
- }
253
- buildAPIKeyAuthQuestion() {
254
- const node = new teamsfx_api_1.QTreeNode({
255
- name: constants_1.Constants.questionKey.apiAPIKeyLocation,
256
- type: "singleSelect",
257
- staticOptions: [questions_1.requestHeaderOption(), questions_1.queryParamsOption()],
258
- title: localizeUtils_1.getLocalizedString("plugins.apiConnector.getQuestion.apiKeyLocation.title"),
259
- });
260
- node.condition = { equals: questions_1.APIKeyAuthOption().id };
261
- const keyNameQuestionNode = new teamsfx_api_1.QTreeNode(questions_1.buildAPIKeyNameQuestion());
262
- node.addChild(keyNameQuestionNode);
263
- return node;
264
- }
265
- getTelemetryProperties(config) {
266
- const properties = {
267
- [telemetry_1.Telemetry.properties.authType]: config.AuthConfig.AuthType.toString(),
268
- [telemetry_1.Telemetry.properties.componentType]: config.ComponentType.join(","),
269
- };
270
- switch (config.AuthConfig.AuthType) {
271
- case constants_1.AuthType.AAD:
272
- const aadAuthConfig = config.AuthConfig;
273
- properties[telemetry_1.Telemetry.properties.reuseTeamsApp] = aadAuthConfig.ReuseTeamsApp
274
- ? telemetry_1.Telemetry.valueYes
275
- : telemetry_1.Telemetry.valueNo;
276
- break;
277
- case constants_1.AuthType.APIKEY:
278
- const authConfig = config.AuthConfig;
279
- properties[telemetry_1.Telemetry.properties.keyLocation] = authConfig.Location;
280
- break;
281
- default:
282
- break;
283
- }
284
- return properties;
285
- }
286
- }
287
- exports.ApiConnectorImpl = ApiConnectorImpl;
288
- //# sourceMappingURL=ApiConnectorImpl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ApiConnectorImpl.js","sourceRoot":"","sources":["../../../../src/component/feature/apiconnector/ApiConnectorImpl.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;;AACb,mDAA6B;AAC7B,qDAA+B;AAC/B,wDASgC;AAChC,mCASiB;AAQjB,qCAAyF;AACzF,2CAA8E;AAC9E,6CAA0C;AAC1C,qCAAwC;AACxC,2CAiBqB;AACrB,iEAAmE;AACnE,mDAAgD;AAChD,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AC;gBACnE,MAAM;YACR;gBACE,MAAM;SACT;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;CACF;AAnYD,4CAmYC"}
@@ -1,7 +0,0 @@
1
- export declare function checkApiNameExist(input: string, projectPath: string, components: string[], languageType: string): Promise<string | undefined>;
2
- export declare function checkEmptyValue(input: string): Promise<string | undefined>;
3
- export declare function checkApiNameValid(input: string): Promise<string | undefined>;
4
- export declare function checkEmptySelect(input: string[]): Promise<string | undefined>;
5
- export declare function checkIsGuid(input: string): Promise<string | undefined>;
6
- export declare function checkHttp(input: string): Promise<string | undefined>;
7
- //# sourceMappingURL=checker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checker.d.ts","sourceRoot":"","sources":["../../../../src/component/feature/apiconnector/checker.ts"],"names":[],"mappings":"AAUA,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EAAE,EACpB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAc7B;AAED,wBAAsB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAKhF;AAED,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAYlF;AAED,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAMnF;AAED,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAK5E;AAED,wBAAsB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAK1E"}
@@ -1,74 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- "use strict";
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.checkHttp = exports.checkIsGuid = exports.checkEmptySelect = exports.checkApiNameValid = exports.checkEmptyValue = exports.checkApiNameExist = void 0;
6
- const tslib_1 = require("tslib");
7
- const fs = tslib_1.__importStar(require("fs-extra"));
8
- const path_1 = tslib_1.__importDefault(require("path"));
9
- const localizeUtils_1 = require("../../../common/localizeUtils");
10
- const utils_1 = require("./utils");
11
- const guidRegex = /^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$/;
12
- async function checkApiNameExist(input, projectPath, components, languageType) {
13
- const apiFileName = utils_1.getSampleFileName(input, languageType);
14
- for (const component of components) {
15
- const componentPath = path_1.default.join(projectPath, component);
16
- const apiFilePath = utils_1.getSampleDirPath(componentPath);
17
- // This pathExistsSync is a workaround for cli interactive command.
18
- if (fs.pathExistsSync(path_1.default.join(apiFilePath, apiFileName))) {
19
- return localizeUtils_1.getLocalizedString("plugins.apiConnector.QuestionAppName.validation.ApiNameExist", apiFileName);
20
- }
21
- }
22
- return undefined;
23
- }
24
- exports.checkApiNameExist = checkApiNameExist;
25
- async function checkEmptyValue(input) {
26
- if (input) {
27
- return undefined;
28
- }
29
- return localizeUtils_1.getLocalizedString("plugins.apiConnector.Question.validation.EmptyValue");
30
- }
31
- exports.checkEmptyValue = checkEmptyValue;
32
- async function checkApiNameValid(input) {
33
- if (input.match(/[^a-zA-Z0-9]/)) {
34
- return localizeUtils_1.getLocalizedString("plugins.apiConnector.QuestionAppName.validation.ApiNameAlphanumeric");
35
- }
36
- if (input.match(/^[0-9]/)) {
37
- return localizeUtils_1.getLocalizedString("plugins.apiConnector.QuestionAppName.validation.ApiNameNumberPrefix");
38
- }
39
- return undefined;
40
- }
41
- exports.checkApiNameValid = checkApiNameValid;
42
- async function checkEmptySelect(input) {
43
- const name = input;
44
- if (name.length === 0) {
45
- return localizeUtils_1.getLocalizedString("plugins.apiConnector.questionComponentSelect.emptySelection");
46
- }
47
- return undefined;
48
- }
49
- exports.checkEmptySelect = checkEmptySelect;
50
- async function checkIsGuid(input) {
51
- if (guidRegex.exec(input)) {
52
- return undefined;
53
- }
54
- return localizeUtils_1.getLocalizedString("plugins.apiConnector.Question.validation.NotGuid");
55
- }
56
- exports.checkIsGuid = checkIsGuid;
57
- async function checkHttp(input) {
58
- if (isValidHttpUrl(input)) {
59
- return undefined;
60
- }
61
- return localizeUtils_1.getLocalizedString("plugins.apiConnector.QuestionApiEndpoint.validation.NotHttp");
62
- }
63
- exports.checkHttp = checkHttp;
64
- function isValidHttpUrl(str) {
65
- let url;
66
- try {
67
- url = new URL(str);
68
- }
69
- catch (_) {
70
- return false;
71
- }
72
- return url.protocol === "http:" || url.protocol === "https:";
73
- }
74
- //# sourceMappingURL=checker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checker.js","sourceRoot":"","sources":["../../../../src/component/feature/apiconnector/checker.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;;AACb,qDAA+B;AAC/B,wDAAwB;AACxB,iEAAmE;AACnE,mCAA8D;AAE9D,MAAM,SAAS,GAAG,sDAAsD,CAAC;AAElE,KAAK,UAAU,iBAAiB,CACrC,KAAa,EACb,WAAmB,EACnB,UAAoB,EACpB,YAAoB;IAEpB,MAAM,WAAW,GAAW,yBAAiB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACnE,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;QAClC,MAAM,aAAa,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QACxD,MAAM,WAAW,GAAG,wBAAgB,CAAC,aAAa,CAAC,CAAC;QACpD,mEAAmE;QACnE,IAAI,EAAE,CAAC,cAAc,CAAC,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,EAAE;YAC1D,OAAO,kCAAkB,CACvB,8DAA8D,EAC9D,WAAW,CACZ,CAAC;SACH;KACF;IACD,O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AO,CAAC,EAAE;QACV,OAAO,KAAK,CAAC;KACd;IAED,OAAO,GAAG,CAAC,QAAQ,KAAK,OAAO,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC;AAC/D,CAAC"}
@@ -1,23 +0,0 @@
1
- import { AuthType, KeyLocation } from "./constants";
2
- export interface ApiConnectorConfiguration extends Record<any, any> {
3
- ComponentType: string[];
4
- APIName: string;
5
- EndPoint: string;
6
- AuthConfig: AuthConfig;
7
- }
8
- export interface AuthConfig {
9
- AuthType: AuthType;
10
- }
11
- export interface BasicAuthConfig extends AuthConfig {
12
- UserName: string;
13
- }
14
- export interface AADAuthConfig extends AuthConfig {
15
- ReuseTeamsApp: boolean;
16
- TenantId?: string;
17
- ClientId?: string;
18
- }
19
- export interface APIKeyAuthConfig extends AuthConfig {
20
- Name: string;
21
- Location: KeyLocation;
22
- }
23
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/component/feature/apiconnector/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,WAAW,yBAA0B,SAAQ,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC;IACjE,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,UAAU,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,WAAW,CAAC;CACvB"}
@@ -1,5 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- "use strict";
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/component/feature/apiconnector/config.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC"}
@@ -1,50 +0,0 @@
1
- export declare enum ComponentType {
2
- API = "api",
3
- BOT = "bot"
4
- }
5
- export declare enum AuthType {
6
- BASIC = "basic",
7
- APIKEY = "apikey",
8
- AAD = "aad",
9
- CERT = "cert",
10
- CUSTOM = "custom"
11
- }
12
- export declare enum KeyLocation {
13
- Header = "request header",
14
- QueryParams = "query parameter"
15
- }
16
- export declare enum LanguageType {
17
- JS = "javascript",
18
- TS = "typescript"
19
- }
20
- export declare enum FileType {
21
- JS = "js",
22
- TS = "ts"
23
- }
24
- export declare class Constants {
25
- static readonly PLUGIN_NAME = "APIConnector";
26
- static readonly pluginNameShort = "api-connector";
27
- static readonly headerCommentTemplate = "headerComment.template";
28
- static readonly footerCommentTemplate = "footerComment.template";
29
- static readonly templateEx = ".template";
30
- static readonly envPrefix = "TEAMSFX_API_";
31
- static readonly sampleCodeDir = "apiConnections";
32
- static readonly envFileName = ".env.teamsfx.local";
33
- static readonly pkgJsonFile = "package.json";
34
- static readonly pkgLockFile = "package-lock.json";
35
- static readonly sdkName = "@microsoft/teamsfx";
36
- static readonly sdkJsName = "@microsft/teams-js";
37
- static readonly questionKey: {
38
- componentsSelect: string;
39
- endpoint: string;
40
- apiName: string;
41
- apiType: string;
42
- apiUserName: string;
43
- apiAppType: string;
44
- apiAppTenentId: string;
45
- apiAppId: string;
46
- apiAPIKeyLocation: string;
47
- apiAPIKeyName: string;
48
- };
49
- }
50
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/component/feature/apiconnector/constants.ts"],"names":[],"mappings":"AAIA,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,oBAAY,WAAW;IACrB,MAAM,mBAAmB;IACzB,WAAW,oBAAoB;CAChC;AAED,oBAAY,YAAY;IACtB,EAAE,eAAe;IACjB,EAAE,eAAe;CAClB;AAED,oBAAY,QAAQ;IAClB,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AACD,qBAAa,SAAS;IACpB,gBAAuB,WAAW,kBAAkB;IACpD,gBAAuB,eAAe,mBAAmB;IACzD,gBAAuB,qBAAqB,4BAA4B;IACxE,gBAAuB,qBAAqB,4BAA4B;IACxE,gBAAuB,UAAU,eAAe;IAChD,gBAAuB,SAAS,kBAAkB;IAClD,gBAAuB,aAAa,oBAAoB;IAExD,gBAAuB,WAAW,wBAAwB;IAC1D,gBAAuB,WAAW,kBAAkB;IACpD,gBAAuB,WAAW,uBAAuB;IACzD,gBAAuB,OAAO,wBAAwB;IACtD,gBAAuB,SAAS,wBAAwB;IAExD,gBAAuB,WAAW;;;;;;;;;;;MAWhC;CACH"}