@microsoft/teamsfx-core 2.0.1-alpha.cb1f62669.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 (719) hide show
  1. package/build/common/deps-checker/checkerFactory.d.ts.map +1 -1
  2. package/build/common/deps-checker/checkerFactory.js +0 -7
  3. package/build/common/deps-checker/checkerFactory.js.map +1 -1
  4. package/build/common/deps-checker/constant/helpLink.d.ts +0 -4
  5. package/build/common/deps-checker/constant/helpLink.d.ts.map +1 -1
  6. package/build/common/deps-checker/constant/helpLink.js +1 -9
  7. package/build/common/deps-checker/constant/helpLink.js.map +1 -1
  8. package/build/common/deps-checker/constant/message.d.ts +0 -5
  9. package/build/common/deps-checker/constant/message.d.ts.map +1 -1
  10. package/build/common/deps-checker/constant/message.js +0 -6
  11. package/build/common/deps-checker/constant/message.js.map +1 -1
  12. package/build/common/deps-checker/constant/telemetry.d.ts +2 -33
  13. package/build/common/deps-checker/constant/telemetry.d.ts.map +1 -1
  14. package/build/common/deps-checker/constant/telemetry.js +0 -31
  15. package/build/common/deps-checker/constant/telemetry.js.map +1 -1
  16. package/build/common/deps-checker/depsChecker.d.ts +0 -3
  17. package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
  18. package/build/common/deps-checker/depsChecker.js +0 -3
  19. package/build/common/deps-checker/depsChecker.js.map +1 -1
  20. package/build/common/deps-checker/depsError.d.ts +0 -9
  21. package/build/common/deps-checker/depsError.d.ts.map +1 -1
  22. package/build/common/deps-checker/depsError.js +1 -22
  23. package/build/common/deps-checker/depsError.js.map +1 -1
  24. package/build/common/deps-checker/depsManager.d.ts.map +1 -1
  25. package/build/common/deps-checker/depsManager.js +0 -3
  26. package/build/common/deps-checker/depsManager.js.map +1 -1
  27. package/build/common/deps-checker/internal/funcToolChecker.d.ts +2 -2
  28. package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
  29. package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
  30. package/build/common/deps-checker/internal/nodeChecker.d.ts +0 -20
  31. package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
  32. package/build/common/deps-checker/internal/nodeChecker.js +1 -51
  33. package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
  34. package/build/common/local/localEnvManager.d.ts +0 -9
  35. package/build/common/local/localEnvManager.d.ts.map +1 -1
  36. package/build/common/local/localEnvManager.js +0 -59
  37. package/build/common/local/localEnvManager.js.map +1 -1
  38. package/build/common/local/localStateHelper.d.ts.map +1 -1
  39. package/build/common/local/localStateHelper.js.map +1 -1
  40. package/build/common/projectSettingsHelper.d.ts +1 -7
  41. package/build/common/projectSettingsHelper.d.ts.map +1 -1
  42. package/build/common/projectSettingsHelper.js +5 -81
  43. package/build/common/projectSettingsHelper.js.map +1 -1
  44. package/build/common/projectSettingsHelperV3.d.ts +0 -1
  45. package/build/common/projectSettingsHelperV3.d.ts.map +1 -1
  46. package/build/common/projectSettingsHelperV3.js +1 -10
  47. package/build/common/projectSettingsHelperV3.js.map +1 -1
  48. package/build/common/samples.d.ts.map +1 -1
  49. package/build/common/samples.js +20 -42
  50. package/build/common/samples.js.map +1 -1
  51. package/build/common/telemetry.d.ts +0 -13
  52. package/build/common/telemetry.d.ts.map +1 -1
  53. package/build/common/telemetry.js +0 -13
  54. package/build/common/telemetry.js.map +1 -1
  55. package/build/common/templates-config.json +2 -1
  56. package/build/common/tools.d.ts +1 -16
  57. package/build/common/tools.d.ts.map +1 -1
  58. package/build/common/tools.js +54 -204
  59. package/build/common/tools.js.map +1 -1
  60. package/build/component/code/appSettingUtils.d.ts +1 -2
  61. package/build/component/code/appSettingUtils.d.ts.map +1 -1
  62. package/build/component/code/appSettingUtils.js +1 -46
  63. package/build/component/code/appSettingUtils.js.map +1 -1
  64. package/build/component/code/utils.d.ts +1 -8
  65. package/build/component/code/utils.d.ts.map +1 -1
  66. package/build/component/code/utils.js +5 -144
  67. package/build/component/code/utils.js.map +1 -1
  68. package/build/component/constant/deployConstant.d.ts.map +1 -1
  69. package/build/component/constant/deployConstant.js.map +1 -1
  70. package/build/component/constants.d.ts +3 -210
  71. package/build/component/constants.d.ts.map +1 -1
  72. package/build/component/constants.js +7 -404
  73. package/build/component/constants.js.map +1 -1
  74. package/build/component/coordinator/index.d.ts +8 -7
  75. package/build/component/coordinator/index.d.ts.map +1 -1
  76. package/build/component/coordinator/index.js +35 -188
  77. package/build/component/coordinator/index.js.map +1 -1
  78. package/build/component/debug/error.d.ts +0 -1
  79. package/build/component/debug/error.d.ts.map +1 -1
  80. package/build/component/debug/error.js +1 -11
  81. package/build/component/debug/error.js.map +1 -1
  82. package/build/component/debug/index.d.ts.map +1 -1
  83. package/build/component/debug/index.js +1 -25
  84. package/build/component/debug/index.js.map +1 -1
  85. package/build/component/deployUtils.d.ts +1 -8
  86. package/build/component/deployUtils.d.ts.map +1 -1
  87. package/build/component/deployUtils.js +2 -98
  88. package/build/component/deployUtils.js.map +1 -1
  89. package/build/component/driver/aad/create.d.ts.map +1 -1
  90. package/build/component/driver/aad/create.js +2 -2
  91. package/build/component/driver/aad/create.js.map +1 -1
  92. package/build/component/driver/aad/update.d.ts.map +1 -1
  93. package/build/component/driver/aad/update.js +2 -2
  94. package/build/component/driver/aad/update.js.map +1 -1
  95. package/build/component/driver/add/addWebPart.js +3 -3
  96. package/build/component/driver/add/addWebPart.js.map +1 -1
  97. package/build/component/driver/botAadApp/create.d.ts.map +1 -1
  98. package/build/component/driver/botAadApp/create.js +2 -2
  99. package/build/component/driver/botAadApp/create.js.map +1 -1
  100. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +9 -9
  101. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
  102. package/build/component/driver/devTool/installDriver.d.ts.map +1 -1
  103. package/build/component/driver/devTool/installDriver.js +3 -2
  104. package/build/component/driver/devTool/installDriver.js.map +1 -1
  105. package/build/component/driver/interface/buildAndDeployArgs.d.ts +11 -11
  106. package/build/component/driver/interface/buildAndDeployArgs.d.ts.map +1 -1
  107. package/build/component/driver/script/baseBuildDriver.d.ts.map +1 -1
  108. package/build/component/driver/script/baseBuildDriver.js +2 -2
  109. package/build/component/driver/script/baseBuildDriver.js.map +1 -1
  110. package/build/component/driver/script/scriptDriver.d.ts +11 -1
  111. package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
  112. package/build/component/driver/script/scriptDriver.js +121 -4
  113. package/build/component/driver/script/scriptDriver.js.map +1 -1
  114. package/build/component/error.d.ts +0 -3
  115. package/build/component/error.d.ts.map +1 -1
  116. package/build/component/error.js +1 -11
  117. package/build/component/error.js.map +1 -1
  118. package/build/component/feature/bot/question.d.ts.map +1 -1
  119. package/build/component/feature/bot/question.js +7 -16
  120. package/build/component/feature/bot/question.js.map +1 -1
  121. package/build/component/feature/cicd/cicd.d.ts +1 -2
  122. package/build/component/feature/cicd/cicd.d.ts.map +1 -1
  123. package/build/component/feature/cicd/cicd.js +2 -87
  124. package/build/component/feature/cicd/cicd.js.map +1 -1
  125. package/build/component/feature/sso.d.ts +0 -4
  126. package/build/component/feature/sso.d.ts.map +1 -1
  127. package/build/component/feature/sso.js +10 -144
  128. package/build/component/feature/sso.js.map +1 -1
  129. package/build/component/generator/generatorAction.d.ts.map +1 -1
  130. package/build/component/generator/generatorAction.js +1 -1
  131. package/build/component/generator/generatorAction.js.map +1 -1
  132. package/build/component/generator/spfx/depsChecker/dependencyChecker.d.ts +8 -0
  133. package/build/component/generator/spfx/depsChecker/dependencyChecker.d.ts.map +1 -0
  134. package/build/component/generator/spfx/depsChecker/dependencyChecker.js.map +1 -0
  135. package/build/component/{resource → generator}/spfx/depsChecker/generatorChecker.d.ts +1 -4
  136. package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts.map +1 -0
  137. package/build/component/{resource → generator}/spfx/depsChecker/generatorChecker.js +0 -39
  138. package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +1 -0
  139. package/build/component/{resource → generator}/spfx/depsChecker/yoChecker.d.ts +1 -4
  140. package/build/component/generator/spfx/depsChecker/yoChecker.d.ts.map +1 -0
  141. package/build/component/{resource → generator}/spfx/depsChecker/yoChecker.js +0 -33
  142. package/build/component/generator/spfx/depsChecker/yoChecker.js.map +1 -0
  143. package/build/component/generator/spfx/error.d.ts +8 -0
  144. package/build/component/generator/spfx/error.d.ts.map +1 -0
  145. package/build/component/generator/spfx/error.js +55 -0
  146. package/build/component/generator/spfx/error.js.map +1 -0
  147. package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -0
  148. package/build/component/generator/{spfxGenerator.js → spfx/spfxGenerator.js} +16 -16
  149. package/build/component/generator/spfx/spfxGenerator.js.map +1 -0
  150. package/build/component/{resource → generator}/spfx/utils/constants.d.ts +0 -33
  151. package/build/component/generator/spfx/utils/constants.d.ts.map +1 -0
  152. package/build/component/{resource → generator}/spfx/utils/constants.js +1 -39
  153. package/build/component/generator/spfx/utils/constants.js.map +1 -0
  154. package/build/component/{resource → generator}/spfx/utils/progress-helper.d.ts +0 -5
  155. package/build/component/generator/spfx/utils/progress-helper.d.ts.map +1 -0
  156. package/build/component/generator/spfx/utils/progress-helper.js +21 -0
  157. package/build/component/generator/spfx/utils/progress-helper.js.map +1 -0
  158. package/build/component/generator/spfx/utils/question-helper.d.ts.map +1 -0
  159. package/build/component/generator/spfx/utils/question-helper.js.map +1 -0
  160. package/build/component/{resource → generator}/spfx/utils/questions.d.ts +0 -1
  161. package/build/component/generator/spfx/utils/questions.d.ts.map +1 -0
  162. package/build/component/{resource → generator}/spfx/utils/questions.js +2 -27
  163. package/build/component/generator/spfx/utils/questions.js.map +1 -0
  164. package/build/component/generator/spfx/utils/telemetry-helper.d.ts.map +1 -0
  165. package/build/component/generator/spfx/utils/telemetry-helper.js.map +1 -0
  166. package/build/component/generator/spfx/utils/telemetryEvents.d.ts.map +1 -0
  167. package/build/component/generator/spfx/utils/telemetryEvents.js.map +1 -0
  168. package/build/component/generator/spfx/utils/utils.d.ts.map +1 -0
  169. package/build/component/generator/spfx/utils/utils.js.map +1 -0
  170. package/build/component/generator/utils.js +2 -2
  171. package/build/component/generator/utils.js.map +1 -1
  172. package/build/component/middleware/envMW.js.map +1 -1
  173. package/build/component/provisionUtils.d.ts +2 -23
  174. package/build/component/provisionUtils.d.ts.map +1 -1
  175. package/build/component/provisionUtils.js +5 -523
  176. package/build/component/provisionUtils.js.map +1 -1
  177. package/build/component/question.d.ts +2 -64
  178. package/build/component/question.d.ts.map +1 -1
  179. package/build/component/question.js +50 -665
  180. package/build/component/question.js.map +1 -1
  181. package/build/component/registerService.d.ts +0 -16
  182. package/build/component/registerService.d.ts.map +1 -1
  183. package/build/component/registerService.js +0 -16
  184. package/build/component/registerService.js.map +1 -1
  185. package/build/component/resource/aadApp/aadApp.d.ts.map +1 -1
  186. package/build/component/resource/aadApp/aadApp.js +6 -24
  187. package/build/component/resource/aadApp/aadApp.js.map +1 -1
  188. package/build/component/resource/aadApp/utils/aadManifestHelper.js +2 -1
  189. package/build/component/resource/aadApp/utils/aadManifestHelper.js.map +1 -1
  190. package/build/component/resource/appManifest/appManifest.d.ts +0 -6
  191. package/build/component/resource/appManifest/appManifest.d.ts.map +1 -1
  192. package/build/component/resource/appManifest/appManifest.js +24 -247
  193. package/build/component/resource/appManifest/appManifest.js.map +1 -1
  194. package/build/component/resource/appManifest/appStudio.d.ts +1 -21
  195. package/build/component/resource/appManifest/appStudio.d.ts.map +1 -1
  196. package/build/component/resource/appManifest/appStudio.js +15 -257
  197. package/build/component/resource/appManifest/appStudio.js.map +1 -1
  198. package/build/component/resource/botService/errors.d.ts +0 -2
  199. package/build/component/resource/botService/errors.d.ts.map +1 -1
  200. package/build/component/resource/botService/errors.js +1 -43
  201. package/build/component/resource/botService/errors.js.map +1 -1
  202. package/build/component/utils/ResourceGroupHelper.d.ts +1 -5
  203. package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
  204. package/build/component/utils/ResourceGroupHelper.js +0 -6
  205. package/build/component/utils/ResourceGroupHelper.js.map +1 -1
  206. package/build/component/utils/charsetUtils.d.ts +3 -0
  207. package/build/component/utils/charsetUtils.d.ts.map +1 -0
  208. package/build/component/utils/charsetUtils.js +241 -0
  209. package/build/component/utils/charsetUtils.js.map +1 -0
  210. package/build/component/utils/metadataUtil.d.ts.map +1 -1
  211. package/build/component/utils/metadataUtil.js +9 -7
  212. package/build/component/utils/metadataUtil.js.map +1 -1
  213. package/build/component/utils/pathUtils.d.ts.map +1 -1
  214. package/build/component/utils/pathUtils.js +2 -2
  215. package/build/component/utils/pathUtils.js.map +1 -1
  216. package/build/component/utils.d.ts +1 -29
  217. package/build/component/utils.d.ts.map +1 -1
  218. package/build/component/utils.js +24 -501
  219. package/build/component/utils.js.map +1 -1
  220. package/build/component/workflow.d.ts +0 -2
  221. package/build/component/workflow.d.ts.map +1 -1
  222. package/build/component/workflow.js +1 -692
  223. package/build/component/workflow.js.map +1 -1
  224. package/build/core/FxCore.d.ts +0 -13
  225. package/build/core/FxCore.d.ts.map +1 -1
  226. package/build/core/FxCore.js +1 -55
  227. package/build/core/FxCore.js.map +1 -1
  228. package/build/core/FxCoreImplementV3.d.ts +2 -4
  229. package/build/core/FxCoreImplementV3.d.ts.map +1 -1
  230. package/build/core/FxCoreImplementV3.js +58 -102
  231. package/build/core/FxCoreImplementV3.js.map +1 -1
  232. package/build/core/collaborator.d.ts +2 -0
  233. package/build/core/collaborator.d.ts.map +1 -1
  234. package/build/core/collaborator.js +2 -0
  235. package/build/core/collaborator.js.map +1 -1
  236. package/build/core/environment.d.ts +2 -4
  237. package/build/core/environment.d.ts.map +1 -1
  238. package/build/core/environment.js +44 -108
  239. package/build/core/environment.js.map +1 -1
  240. package/build/core/error.d.ts +1 -34
  241. package/build/core/error.d.ts.map +1 -1
  242. package/build/core/error.js +1 -112
  243. package/build/core/error.js.map +1 -1
  244. package/build/core/globalVars.d.ts +0 -1
  245. package/build/core/globalVars.d.ts.map +1 -1
  246. package/build/core/globalVars.js +1 -15
  247. package/build/core/globalVars.js.map +1 -1
  248. package/build/core/middleware/projectMigratorV3.d.ts +3 -1
  249. package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
  250. package/build/core/middleware/projectMigratorV3.js +43 -49
  251. package/build/core/middleware/projectMigratorV3.js.map +1 -1
  252. package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
  253. package/build/core/middleware/projectSettingsLoader.js +9 -20
  254. package/build/core/middleware/projectSettingsLoader.js.map +1 -1
  255. package/build/core/middleware/projectVersionChecker.d.ts.map +1 -1
  256. package/build/core/middleware/projectVersionChecker.js +10 -23
  257. package/build/core/middleware/projectVersionChecker.js.map +1 -1
  258. package/build/core/middleware/questionModel.d.ts +0 -1
  259. package/build/core/middleware/questionModel.d.ts.map +1 -1
  260. package/build/core/middleware/questionModel.js +8 -54
  261. package/build/core/middleware/questionModel.js.map +1 -1
  262. package/build/core/middleware/utils/MigrationUtils.d.ts +0 -5
  263. package/build/core/middleware/utils/MigrationUtils.d.ts.map +1 -1
  264. package/build/core/middleware/utils/MigrationUtils.js +1 -77
  265. package/build/core/middleware/utils/MigrationUtils.js.map +1 -1
  266. package/build/core/middleware/utils/migrationContext.d.ts.map +1 -1
  267. package/build/core/middleware/utils/migrationContext.js +0 -4
  268. package/build/core/middleware/utils/migrationContext.js.map +1 -1
  269. package/build/core/question.d.ts +1 -12
  270. package/build/core/question.d.ts.map +1 -1
  271. package/build/core/question.js +17 -240
  272. package/build/core/question.js.map +1 -1
  273. package/build/core/types.d.ts +0 -10
  274. package/build/core/types.d.ts.map +1 -1
  275. package/build/error/common.d.ts +6 -0
  276. package/build/error/common.d.ts.map +1 -1
  277. package/build/error/common.js +26 -1
  278. package/build/error/common.js.map +1 -1
  279. package/build/error/script.d.ts +1 -1
  280. package/build/error/script.d.ts.map +1 -1
  281. package/build/error/script.js +3 -3
  282. package/build/error/script.js.map +1 -1
  283. package/build/index.d.ts +0 -2
  284. package/build/index.d.ts.map +1 -1
  285. package/build/index.js +1 -4
  286. package/build/index.js.map +1 -1
  287. package/package.json +14 -34
  288. package/resource/package.nls.json +6 -241
  289. package/templates/fallback/common.zip +0 -0
  290. package/templates/fallback/csharp.zip +0 -0
  291. package/templates/fallback/js.zip +0 -0
  292. package/templates/fallback/ts.zip +0 -0
  293. package/build/common/azure-hosting/azureAppServiceHosting.d.ts +0 -16
  294. package/build/common/azure-hosting/azureAppServiceHosting.d.ts.map +0 -1
  295. package/build/common/azure-hosting/azureAppServiceHosting.js +0 -33
  296. package/build/common/azure-hosting/azureAppServiceHosting.js.map +0 -1
  297. package/build/common/azure-hosting/azureFunctionHosting.d.ts +0 -14
  298. package/build/common/azure-hosting/azureFunctionHosting.d.ts.map +0 -1
  299. package/build/common/azure-hosting/azureFunctionHosting.js +0 -34
  300. package/build/common/azure-hosting/azureFunctionHosting.js.map +0 -1
  301. package/build/common/azure-hosting/azureHosting.d.ts +0 -23
  302. package/build/common/azure-hosting/azureHosting.d.ts.map +0 -1
  303. package/build/common/azure-hosting/azureHosting.js +0 -95
  304. package/build/common/azure-hosting/azureHosting.js.map +0 -1
  305. package/build/common/azure-hosting/azureOps.d.ts +0 -17
  306. package/build/common/azure-hosting/azureOps.d.ts.map +0 -1
  307. package/build/common/azure-hosting/azureOps.js +0 -94
  308. package/build/common/azure-hosting/azureOps.js.map +0 -1
  309. package/build/common/azure-hosting/hostingConstant.d.ts +0 -46
  310. package/build/common/azure-hosting/hostingConstant.d.ts.map +0 -1
  311. package/build/common/azure-hosting/hostingConstant.js +0 -86
  312. package/build/common/azure-hosting/hostingConstant.js.map +0 -1
  313. package/build/common/azure-hosting/hostingError.d.ts +0 -47
  314. package/build/common/azure-hosting/hostingError.d.ts.map +0 -1
  315. package/build/common/azure-hosting/hostingError.js +0 -83
  316. package/build/common/azure-hosting/hostingError.js.map +0 -1
  317. package/build/common/azure-hosting/hostingFactory.d.ts +0 -6
  318. package/build/common/azure-hosting/hostingFactory.d.ts.map +0 -1
  319. package/build/common/azure-hosting/hostingFactory.js +0 -22
  320. package/build/common/azure-hosting/hostingFactory.js.map +0 -1
  321. package/build/common/azure-hosting/interfaces.d.ts +0 -58
  322. package/build/common/azure-hosting/interfaces.d.ts.map +0 -1
  323. package/build/common/azure-hosting/interfaces.js +0 -12
  324. package/build/common/azure-hosting/interfaces.js.map +0 -1
  325. package/build/common/azure-hosting/messages.d.ts +0 -10
  326. package/build/common/azure-hosting/messages.d.ts.map +0 -1
  327. package/build/common/azure-hosting/messages.js +0 -16
  328. package/build/common/azure-hosting/messages.js.map +0 -1
  329. package/build/common/azure-hosting/utils.d.ts +0 -10
  330. package/build/common/azure-hosting/utils.d.ts.map +0 -1
  331. package/build/common/azure-hosting/utils.js +0 -107
  332. package/build/common/azure-hosting/utils.js.map +0 -1
  333. package/build/common/deps-checker/internal/ngrokChecker.d.ts +0 -27
  334. package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +0 -1
  335. package/build/common/deps-checker/internal/ngrokChecker.js +0 -222
  336. package/build/common/deps-checker/internal/ngrokChecker.js.map +0 -1
  337. package/build/common/samples-config.json +0 -201
  338. package/build/component/code/spfxTabCode.d.ts +0 -11
  339. package/build/component/code/spfxTabCode.d.ts.map +0 -1
  340. package/build/component/code/spfxTabCode.js +0 -237
  341. package/build/component/code/spfxTabCode.js.map +0 -1
  342. package/build/component/connection/apimConfig.d.ts +0 -11
  343. package/build/component/connection/apimConfig.d.ts.map +0 -1
  344. package/build/component/connection/apimConfig.js +0 -44
  345. package/build/component/connection/apimConfig.js.map +0 -1
  346. package/build/component/connection/azureFunctionConfig.d.ts +0 -9
  347. package/build/component/connection/azureFunctionConfig.d.ts.map +0 -1
  348. package/build/component/connection/azureFunctionConfig.js +0 -25
  349. package/build/component/connection/azureFunctionConfig.js.map +0 -1
  350. package/build/component/connection/azureResourceConfig.d.ts +0 -11
  351. package/build/component/connection/azureResourceConfig.d.ts.map +0 -1
  352. package/build/component/connection/azureResourceConfig.js +0 -72
  353. package/build/component/connection/azureResourceConfig.js.map +0 -1
  354. package/build/component/connection/azureWebAppConfig.d.ts +0 -9
  355. package/build/component/connection/azureWebAppConfig.d.ts.map +0 -1
  356. package/build/component/connection/azureWebAppConfig.js +0 -25
  357. package/build/component/connection/azureWebAppConfig.js.map +0 -1
  358. package/build/component/coordinator/lifecycleStage.d.ts +0 -2
  359. package/build/component/coordinator/lifecycleStage.d.ts.map +0 -1
  360. package/build/component/coordinator/lifecycleStage.js +0 -23
  361. package/build/component/coordinator/lifecycleStage.js.map +0 -1
  362. package/build/component/core.d.ts +0 -65
  363. package/build/component/core.d.ts.map +0 -1
  364. package/build/component/core.js +0 -653
  365. package/build/component/core.js.map +0 -1
  366. package/build/component/debug/util/ngrok.d.ts +0 -6
  367. package/build/component/debug/util/ngrok.d.ts.map +0 -1
  368. package/build/component/debug/util/ngrok.js +0 -65
  369. package/build/component/debug/util/ngrok.js.map +0 -1
  370. package/build/component/envManager.d.ts +0 -4
  371. package/build/component/envManager.d.ts.map +0 -1
  372. package/build/component/envManager.js +0 -25
  373. package/build/component/envManager.js.map +0 -1
  374. package/build/component/feature/api/api.d.ts +0 -8
  375. package/build/component/feature/api/api.d.ts.map +0 -1
  376. package/build/component/feature/api/api.js +0 -188
  377. package/build/component/feature/api/api.js.map +0 -1
  378. package/build/component/feature/apiconnector/ApiConnectorImpl.d.ts +0 -23
  379. package/build/component/feature/apiconnector/ApiConnectorImpl.d.ts.map +0 -1
  380. package/build/component/feature/apiconnector/ApiConnectorImpl.js +0 -288
  381. package/build/component/feature/apiconnector/ApiConnectorImpl.js.map +0 -1
  382. package/build/component/feature/apiconnector/apiConnector.d.ts +0 -11
  383. package/build/component/feature/apiconnector/apiConnector.d.ts.map +0 -1
  384. package/build/component/feature/apiconnector/apiConnector.js +0 -43
  385. package/build/component/feature/apiconnector/apiConnector.js.map +0 -1
  386. package/build/component/feature/apiconnector/checker.d.ts +0 -7
  387. package/build/component/feature/apiconnector/checker.d.ts.map +0 -1
  388. package/build/component/feature/apiconnector/checker.js +0 -74
  389. package/build/component/feature/apiconnector/checker.js.map +0 -1
  390. package/build/component/feature/apiconnector/config.d.ts +0 -23
  391. package/build/component/feature/apiconnector/config.d.ts.map +0 -1
  392. package/build/component/feature/apiconnector/config.js +0 -5
  393. package/build/component/feature/apiconnector/config.js.map +0 -1
  394. package/build/component/feature/apiconnector/constants.d.ts +0 -50
  395. package/build/component/feature/apiconnector/constants.d.ts.map +0 -1
  396. package/build/component/feature/apiconnector/constants.js +0 -61
  397. package/build/component/feature/apiconnector/constants.js.map +0 -1
  398. package/build/component/feature/apiconnector/depsHandler.d.ts +0 -14
  399. package/build/component/feature/apiconnector/depsHandler.d.ts.map +0 -1
  400. package/build/component/feature/apiconnector/depsHandler.js +0 -109
  401. package/build/component/feature/apiconnector/depsHandler.js.map +0 -1
  402. package/build/component/feature/apiconnector/envHandler.d.ts +0 -21
  403. package/build/component/feature/apiconnector/envHandler.d.ts.map +0 -1
  404. package/build/component/feature/apiconnector/envHandler.js +0 -128
  405. package/build/component/feature/apiconnector/envHandler.js.map +0 -1
  406. package/build/component/feature/apiconnector/errors.d.ts +0 -53
  407. package/build/component/feature/apiconnector/errors.d.ts.map +0 -1
  408. package/build/component/feature/apiconnector/errors.js +0 -64
  409. package/build/component/feature/apiconnector/errors.js.map +0 -1
  410. package/build/component/feature/apiconnector/questions.d.ts +0 -41
  411. package/build/component/feature/apiconnector/questions.d.ts.map +0 -1
  412. package/build/component/feature/apiconnector/questions.js +0 -262
  413. package/build/component/feature/apiconnector/questions.js.map +0 -1
  414. package/build/component/feature/apiconnector/result.d.ts +0 -23
  415. package/build/component/feature/apiconnector/result.d.ts.map +0 -1
  416. package/build/component/feature/apiconnector/result.js +0 -40
  417. package/build/component/feature/apiconnector/result.js.map +0 -1
  418. package/build/component/feature/apiconnector/sampleHandler.d.ts +0 -10
  419. package/build/component/feature/apiconnector/sampleHandler.d.ts.map +0 -1
  420. package/build/component/feature/apiconnector/sampleHandler.js +0 -62
  421. package/build/component/feature/apiconnector/sampleHandler.js.map +0 -1
  422. package/build/component/feature/apiconnector/telemetry.d.ts +0 -42
  423. package/build/component/feature/apiconnector/telemetry.d.ts.map +0 -1
  424. package/build/component/feature/apiconnector/telemetry.js +0 -70
  425. package/build/component/feature/apiconnector/telemetry.js.map +0 -1
  426. package/build/component/feature/apiconnector/utils.d.ts +0 -18
  427. package/build/component/feature/apiconnector/utils.d.ts.map +0 -1
  428. package/build/component/feature/apiconnector/utils.js +0 -90
  429. package/build/component/feature/apiconnector/utils.js.map +0 -1
  430. package/build/component/feature/apim.d.ts +0 -8
  431. package/build/component/feature/apim.d.ts.map +0 -1
  432. package/build/component/feature/apim.js +0 -123
  433. package/build/component/feature/apim.js.map +0 -1
  434. package/build/component/feature/bot/bot.d.ts +0 -12
  435. package/build/component/feature/bot/bot.d.ts.map +0 -1
  436. package/build/component/feature/bot/bot.js +0 -309
  437. package/build/component/feature/bot/bot.js.map +0 -1
  438. package/build/component/feature/keyVault.d.ts +0 -16
  439. package/build/component/feature/keyVault.d.ts.map +0 -1
  440. package/build/component/feature/keyVault.js +0 -90
  441. package/build/component/feature/keyVault.js.map +0 -1
  442. package/build/component/feature/spfx.d.ts +0 -9
  443. package/build/component/feature/spfx.d.ts.map +0 -1
  444. package/build/component/feature/spfx.js +0 -121
  445. package/build/component/feature/spfx.js.map +0 -1
  446. package/build/component/feature/sql.d.ts +0 -10
  447. package/build/component/feature/sql.d.ts.map +0 -1
  448. package/build/component/feature/sql.js +0 -80
  449. package/build/component/feature/sql.js.map +0 -1
  450. package/build/component/feature/tab.d.ts +0 -10
  451. package/build/component/feature/tab.d.ts.map +0 -1
  452. package/build/component/feature/tab.js +0 -238
  453. package/build/component/feature/tab.js.map +0 -1
  454. package/build/component/generator/spfxGenerator.d.ts.map +0 -1
  455. package/build/component/generator/spfxGenerator.js.map +0 -1
  456. package/build/component/resource/azureAppService/azureAppService.d.ts +0 -12
  457. package/build/component/resource/azureAppService/azureAppService.d.ts.map +0 -1
  458. package/build/component/resource/azureAppService/azureAppService.js +0 -48
  459. package/build/component/resource/azureAppService/azureAppService.js.map +0 -1
  460. package/build/component/resource/azureAppService/azureFunction.d.ts +0 -36
  461. package/build/component/resource/azureAppService/azureFunction.d.ts.map +0 -1
  462. package/build/component/resource/azureAppService/azureFunction.js +0 -155
  463. package/build/component/resource/azureAppService/azureFunction.js.map +0 -1
  464. package/build/component/resource/azureAppService/azureLibs.d.ts +0 -6
  465. package/build/component/resource/azureAppService/azureLibs.d.ts.map +0 -1
  466. package/build/component/resource/azureAppService/azureLibs.js +0 -13
  467. package/build/component/resource/azureAppService/azureLibs.js.map +0 -1
  468. package/build/component/resource/azureAppService/azureWebApp.d.ts +0 -30
  469. package/build/component/resource/azureAppService/azureWebApp.d.ts.map +0 -1
  470. package/build/component/resource/azureAppService/azureWebApp.js +0 -43
  471. package/build/component/resource/azureAppService/azureWebApp.js.map +0 -1
  472. package/build/component/resource/azureAppService/common.d.ts +0 -10
  473. package/build/component/resource/azureAppService/common.d.ts.map +0 -1
  474. package/build/component/resource/azureAppService/common.js +0 -80
  475. package/build/component/resource/azureAppService/common.js.map +0 -1
  476. package/build/component/resource/azureAppService/dir-walk.d.ts +0 -4
  477. package/build/component/resource/azureAppService/dir-walk.d.ts.map +0 -1
  478. package/build/component/resource/azureAppService/dir-walk.js +0 -21
  479. package/build/component/resource/azureAppService/dir-walk.js.map +0 -1
  480. package/build/component/resource/azureSql/actions/configure.d.ts +0 -15
  481. package/build/component/resource/azureSql/actions/configure.d.ts.map +0 -1
  482. package/build/component/resource/azureSql/actions/configure.js +0 -92
  483. package/build/component/resource/azureSql/actions/configure.js.map +0 -1
  484. package/build/component/resource/azureSql/actions/provision.d.ts +0 -10
  485. package/build/component/resource/azureSql/actions/provision.d.ts.map +0 -1
  486. package/build/component/resource/azureSql/actions/provision.js +0 -63
  487. package/build/component/resource/azureSql/actions/provision.js.map +0 -1
  488. package/build/component/resource/azureSql/actions/utils.d.ts +0 -12
  489. package/build/component/resource/azureSql/actions/utils.d.ts.map +0 -1
  490. package/build/component/resource/azureSql/actions/utils.js +0 -82
  491. package/build/component/resource/azureSql/actions/utils.js.map +0 -1
  492. package/build/component/resource/azureSql/azureSql.d.ts +0 -24
  493. package/build/component/resource/azureSql/azureSql.d.ts.map +0 -1
  494. package/build/component/resource/azureSql/azureSql.js +0 -75
  495. package/build/component/resource/azureSql/azureSql.js.map +0 -1
  496. package/build/component/resource/azureSql/clients/management.d.ts +0 -18
  497. package/build/component/resource/azureSql/clients/management.d.ts.map +0 -1
  498. package/build/component/resource/azureSql/clients/management.js +0 -124
  499. package/build/component/resource/azureSql/clients/management.js.map +0 -1
  500. package/build/component/resource/azureSql/clients/sql.d.ts +0 -13
  501. package/build/component/resource/azureSql/clients/sql.d.ts.map +0 -1
  502. package/build/component/resource/azureSql/clients/sql.js +0 -153
  503. package/build/component/resource/azureSql/clients/sql.js.map +0 -1
  504. package/build/component/resource/azureSql/config.d.ts +0 -7
  505. package/build/component/resource/azureSql/config.d.ts.map +0 -1
  506. package/build/component/resource/azureSql/config.js +0 -77
  507. package/build/component/resource/azureSql/config.js.map +0 -1
  508. package/build/component/resource/azureSql/constants.d.ts +0 -85
  509. package/build/component/resource/azureSql/constants.d.ts.map +0 -1
  510. package/build/component/resource/azureSql/constants.js +0 -95
  511. package/build/component/resource/azureSql/constants.js.map +0 -1
  512. package/build/component/resource/azureSql/errors.d.ts +0 -63
  513. package/build/component/resource/azureSql/errors.d.ts.map +0 -1
  514. package/build/component/resource/azureSql/errors.js +0 -107
  515. package/build/component/resource/azureSql/errors.js.map +0 -1
  516. package/build/component/resource/azureSql/index.d.ts +0 -2
  517. package/build/component/resource/azureSql/index.d.ts.map +0 -1
  518. package/build/component/resource/azureSql/index.js +0 -7
  519. package/build/component/resource/azureSql/index.js.map +0 -1
  520. package/build/component/resource/azureSql/questions.d.ts +0 -6
  521. package/build/component/resource/azureSql/questions.d.ts.map +0 -1
  522. package/build/component/resource/azureSql/questions.js +0 -59
  523. package/build/component/resource/azureSql/questions.js.map +0 -1
  524. package/build/component/resource/azureSql/results.d.ts +0 -10
  525. package/build/component/resource/azureSql/results.d.ts.map +0 -1
  526. package/build/component/resource/azureSql/results.js +0 -34
  527. package/build/component/resource/azureSql/results.js.map +0 -1
  528. package/build/component/resource/azureSql/types.d.ts +0 -12
  529. package/build/component/resource/azureSql/types.d.ts.map +0 -1
  530. package/build/component/resource/azureSql/types.js +0 -5
  531. package/build/component/resource/azureSql/types.js.map +0 -1
  532. package/build/component/resource/azureSql/utils/checkInput.d.ts +0 -10
  533. package/build/component/resource/azureSql/utils/checkInput.d.ts.map +0 -1
  534. package/build/component/resource/azureSql/utils/checkInput.js +0 -89
  535. package/build/component/resource/azureSql/utils/checkInput.js.map +0 -1
  536. package/build/component/resource/azureSql/utils/common.d.ts +0 -12
  537. package/build/component/resource/azureSql/utils/common.d.ts.map +0 -1
  538. package/build/component/resource/azureSql/utils/common.js +0 -51
  539. package/build/component/resource/azureSql/utils/common.js.map +0 -1
  540. package/build/component/resource/azureStorage/azureStorage.d.ts +0 -31
  541. package/build/component/resource/azureStorage/azureStorage.d.ts.map +0 -1
  542. package/build/component/resource/azureStorage/azureStorage.js +0 -111
  543. package/build/component/resource/azureStorage/azureStorage.js.map +0 -1
  544. package/build/component/resource/azureStorage/clients.d.ts +0 -23
  545. package/build/component/resource/azureStorage/clients.d.ts.map +0 -1
  546. package/build/component/resource/azureStorage/clients.js +0 -133
  547. package/build/component/resource/azureStorage/clients.js.map +0 -1
  548. package/build/component/resource/azureStorage/configs.d.ts +0 -12
  549. package/build/component/resource/azureStorage/configs.d.ts.map +0 -1
  550. package/build/component/resource/azureStorage/configs.js +0 -30
  551. package/build/component/resource/azureStorage/configs.js.map +0 -1
  552. package/build/component/resource/azureStorage/constants.d.ts +0 -11
  553. package/build/component/resource/azureStorage/constants.d.ts.map +0 -1
  554. package/build/component/resource/azureStorage/constants.js +0 -17
  555. package/build/component/resource/azureStorage/constants.js.map +0 -1
  556. package/build/component/resource/azureStorage/messages.d.ts +0 -14
  557. package/build/component/resource/azureStorage/messages.d.ts.map +0 -1
  558. package/build/component/resource/azureStorage/messages.js +0 -28
  559. package/build/component/resource/azureStorage/messages.js.map +0 -1
  560. package/build/component/resource/botService/botService.d.ts +0 -24
  561. package/build/component/resource/botService/botService.d.ts.map +0 -1
  562. package/build/component/resource/botService/botService.js +0 -146
  563. package/build/component/resource/botService/botService.js.map +0 -1
  564. package/build/component/resource/identity.d.ts +0 -28
  565. package/build/component/resource/identity.d.ts.map +0 -1
  566. package/build/component/resource/identity.js +0 -42
  567. package/build/component/resource/identity.js.map +0 -1
  568. package/build/component/resource/keyVault.d.ts +0 -29
  569. package/build/component/resource/keyVault.d.ts.map +0 -1
  570. package/build/component/resource/keyVault.js +0 -47
  571. package/build/component/resource/keyVault.js.map +0 -1
  572. package/build/component/resource/simpleAuth/constants.d.ts +0 -122
  573. package/build/component/resource/simpleAuth/constants.d.ts.map +0 -1
  574. package/build/component/resource/simpleAuth/constants.js +0 -163
  575. package/build/component/resource/simpleAuth/constants.js.map +0 -1
  576. package/build/component/resource/simpleAuth/errors.d.ts +0 -17
  577. package/build/component/resource/simpleAuth/errors.d.ts.map +0 -1
  578. package/build/component/resource/simpleAuth/errors.js +0 -91
  579. package/build/component/resource/simpleAuth/errors.js.map +0 -1
  580. package/build/component/resource/simpleAuth/index.d.ts +0 -12
  581. package/build/component/resource/simpleAuth/index.d.ts.map +0 -1
  582. package/build/component/resource/simpleAuth/index.js +0 -115
  583. package/build/component/resource/simpleAuth/index.js.map +0 -1
  584. package/build/component/resource/simpleAuth/result.d.ts +0 -9
  585. package/build/component/resource/simpleAuth/result.d.ts.map +0 -1
  586. package/build/component/resource/simpleAuth/result.js +0 -35
  587. package/build/component/resource/simpleAuth/result.js.map +0 -1
  588. package/build/component/resource/simpleAuth/utils/common.d.ts +0 -23
  589. package/build/component/resource/simpleAuth/utils/common.d.ts.map +0 -1
  590. package/build/component/resource/simpleAuth/utils/common.js +0 -150
  591. package/build/component/resource/simpleAuth/utils/common.js.map +0 -1
  592. package/build/component/resource/simpleAuth/utils/dialog.d.ts +0 -5
  593. package/build/component/resource/simpleAuth/utils/dialog.d.ts.map +0 -1
  594. package/build/component/resource/simpleAuth/utils/dialog.js +0 -7
  595. package/build/component/resource/simpleAuth/utils/dialog.js.map +0 -1
  596. package/build/component/resource/simpleAuth/utils/telemetry.d.ts +0 -17
  597. package/build/component/resource/simpleAuth/utils/telemetry.d.ts.map +0 -1
  598. package/build/component/resource/simpleAuth/utils/telemetry.js +0 -45
  599. package/build/component/resource/simpleAuth/utils/telemetry.js.map +0 -1
  600. package/build/component/resource/spfx/depsChecker/dependencyChecker.d.ts +0 -11
  601. package/build/component/resource/spfx/depsChecker/dependencyChecker.d.ts.map +0 -1
  602. package/build/component/resource/spfx/depsChecker/dependencyChecker.js.map +0 -1
  603. package/build/component/resource/spfx/depsChecker/generatorChecker.d.ts.map +0 -1
  604. package/build/component/resource/spfx/depsChecker/generatorChecker.js.map +0 -1
  605. package/build/component/resource/spfx/depsChecker/yoChecker.d.ts.map +0 -1
  606. package/build/component/resource/spfx/depsChecker/yoChecker.js.map +0 -1
  607. package/build/component/resource/spfx/error.d.ts +0 -21
  608. package/build/component/resource/spfx/error.d.ts.map +0 -1
  609. package/build/component/resource/spfx/error.js +0 -138
  610. package/build/component/resource/spfx/error.js.map +0 -1
  611. package/build/component/resource/spfx/index.d.ts +0 -15
  612. package/build/component/resource/spfx/index.d.ts.map +0 -1
  613. package/build/component/resource/spfx/index.js +0 -248
  614. package/build/component/resource/spfx/index.js.map +0 -1
  615. package/build/component/resource/spfx/spoClient.d.ts +0 -25
  616. package/build/component/resource/spfx/spoClient.d.ts.map +0 -1
  617. package/build/component/resource/spfx/spoClient.js +0 -79
  618. package/build/component/resource/spfx/spoClient.js.map +0 -1
  619. package/build/component/resource/spfx/utils/constants.d.ts.map +0 -1
  620. package/build/component/resource/spfx/utils/constants.js.map +0 -1
  621. package/build/component/resource/spfx/utils/progress-helper.d.ts.map +0 -1
  622. package/build/component/resource/spfx/utils/progress-helper.js +0 -46
  623. package/build/component/resource/spfx/utils/progress-helper.js.map +0 -1
  624. package/build/component/resource/spfx/utils/question-helper.d.ts.map +0 -1
  625. package/build/component/resource/spfx/utils/question-helper.js.map +0 -1
  626. package/build/component/resource/spfx/utils/questions.d.ts.map +0 -1
  627. package/build/component/resource/spfx/utils/questions.js.map +0 -1
  628. package/build/component/resource/spfx/utils/telemetry-helper.d.ts.map +0 -1
  629. package/build/component/resource/spfx/utils/telemetry-helper.js.map +0 -1
  630. package/build/component/resource/spfx/utils/telemetryEvents.d.ts.map +0 -1
  631. package/build/component/resource/spfx/utils/telemetryEvents.js.map +0 -1
  632. package/build/component/resource/spfx/utils/utils.d.ts.map +0 -1
  633. package/build/component/resource/spfx/utils/utils.js.map +0 -1
  634. package/build/component/utils/backupFiles.d.ts +0 -3
  635. package/build/component/utils/backupFiles.d.ts.map +0 -1
  636. package/build/component/utils/backupFiles.js +0 -142
  637. package/build/component/utils/backupFiles.js.map +0 -1
  638. package/build/component/utils/executor.d.ts +0 -12
  639. package/build/component/utils/executor.d.ts.map +0 -1
  640. package/build/component/utils/executor.js +0 -87
  641. package/build/component/utils/executor.js.map +0 -1
  642. package/build/core/dependencyChecker.d.ts +0 -1
  643. package/build/core/dependencyChecker.d.ts.map +0 -1
  644. package/build/core/dependencyChecker.js +0 -2
  645. package/build/core/dependencyChecker.js.map +0 -1
  646. package/build/core/downloadSample.d.ts +0 -9
  647. package/build/core/downloadSample.d.ts.map +0 -1
  648. package/build/core/downloadSample.js +0 -161
  649. package/build/core/downloadSample.js.map +0 -1
  650. package/build/core/middleware/CommonErrorHandlerMW.d.ts +0 -14
  651. package/build/core/middleware/CommonErrorHandlerMW.d.ts.map +0 -1
  652. package/build/core/middleware/CommonErrorHandlerMW.js +0 -63
  653. package/build/core/middleware/CommonErrorHandlerMW.js.map +0 -1
  654. package/build/core/middleware/aadManifestMigration.d.ts +0 -3
  655. package/build/core/middleware/aadManifestMigration.d.ts.map +0 -1
  656. package/build/core/middleware/aadManifestMigration.js +0 -119
  657. package/build/core/middleware/aadManifestMigration.js.map +0 -1
  658. package/build/core/middleware/consolidateLocalRemote.d.ts +0 -5
  659. package/build/core/middleware/consolidateLocalRemote.d.ts.map +0 -1
  660. package/build/core/middleware/consolidateLocalRemote.js +0 -378
  661. package/build/core/middleware/consolidateLocalRemote.js.map +0 -1
  662. package/build/core/middleware/projectMigrator.d.ts +0 -40
  663. package/build/core/middleware/projectMigrator.d.ts.map +0 -1
  664. package/build/core/middleware/projectMigrator.js +0 -1014
  665. package/build/core/middleware/projectMigrator.js.map +0 -1
  666. package/resource/backup-config-change-logs.md +0 -24
  667. package/templates/bicep/azureSql.parameters.json +0 -4
  668. package/templates/bicep/azureSql.provisionDatabase.module.bicep +0 -15
  669. package/templates/bicep/azureSql.provisionDatabase.orchestration.bicep +0 -5
  670. package/templates/bicep/azureSql.provisionServer.module.bicep +0 -44
  671. package/templates/bicep/azureSql.provisionServer.orchestration.bicep +0 -14
  672. package/templates/bicep/identity.provision.module.bicep +0 -15
  673. package/templates/bicep/identity.provision.orchestration.bicep +0 -14
  674. package/templates/bicep/keyVault.provision.module.bicep +0 -57
  675. package/templates/bicep/keyVault.provision.orchestration.bicep +0 -15
  676. package/templates/plugins/resource/apiconnector/package.json +0 -5
  677. package/templates/plugins/resource/apiconnector/sample/footerComment.template +0 -20
  678. package/templates/plugins/resource/apiconnector/sample/headerComment.template +0 -52
  679. package/templates/plugins/resource/apiconnector/sample/js/aad.template +0 -31
  680. package/templates/plugins/resource/apiconnector/sample/js/apikey.template +0 -19
  681. package/templates/plugins/resource/apiconnector/sample/js/basic.template +0 -14
  682. package/templates/plugins/resource/apiconnector/sample/js/cert.template +0 -17
  683. package/templates/plugins/resource/apiconnector/sample/js/custom.template +0 -39
  684. package/templates/plugins/resource/apiconnector/sample/ts/aad.template +0 -36
  685. package/templates/plugins/resource/apiconnector/sample/ts/apikey.template +0 -16
  686. package/templates/plugins/resource/apiconnector/sample/ts/basic.template +0 -14
  687. package/templates/plugins/resource/apiconnector/sample/ts/cert.template +0 -19
  688. package/templates/plugins/resource/apiconnector/sample/ts/custom.template +0 -42
  689. package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +0 -15
  690. package/templates/plugins/resource/identity/bicep/provision.template.bicep +0 -14
  691. package/templates/plugins/resource/identity/parameters.json +0 -12
  692. package/templates/plugins/resource/identity/template.json +0 -28
  693. package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +0 -57
  694. package/templates/plugins/resource/keyvault/bicep/provision.template.bicep +0 -15
  695. package/templates/plugins/resource/simpleauth/SimpleAuth.zip +0 -0
  696. package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +0 -12
  697. package/templates/plugins/resource/simpleauth/bicep/provision.template.bicep +0 -14
  698. package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +0 -62
  699. package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +0 -51
  700. package/templates/plugins/resource/simpleauth/version.txt +0 -2
  701. package/templates/plugins/resource/spfx/solution/README.md +0 -82
  702. package/templates/plugins/resource/spfx/solution/manifest.local.template.json +0 -62
  703. package/templates/plugins/resource/spfx/solution/manifest_multi_env.json +0 -63
  704. package/templates/plugins/resource/spfx/solution/rootREADME.md +0 -13
  705. package/templates/plugins/resource/sql/bicep/newDatabase.orchestration.template.bicep +0 -5
  706. package/templates/plugins/resource/sql/bicep/newDatabaseProvision.template.bicep +0 -15
  707. package/templates/plugins/resource/sql/bicep/parameters.json +0 -4
  708. package/templates/plugins/resource/sql/bicep/provision.template.bicep +0 -14
  709. package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +0 -44
  710. /package/build/component/{resource → generator}/spfx/depsChecker/dependencyChecker.js +0 -0
  711. /package/build/component/generator/{spfxGenerator.d.ts → spfx/spfxGenerator.d.ts} +0 -0
  712. /package/build/component/{resource → generator}/spfx/utils/question-helper.d.ts +0 -0
  713. /package/build/component/{resource → generator}/spfx/utils/question-helper.js +0 -0
  714. /package/build/component/{resource → generator}/spfx/utils/telemetry-helper.d.ts +0 -0
  715. /package/build/component/{resource → generator}/spfx/utils/telemetry-helper.js +0 -0
  716. /package/build/component/{resource → generator}/spfx/utils/telemetryEvents.d.ts +0 -0
  717. /package/build/component/{resource → generator}/spfx/utils/telemetryEvents.js +0 -0
  718. /package/build/component/{resource → generator}/spfx/utils/utils.d.ts +0 -0
  719. /package/build/component/{resource → generator}/spfx/utils/utils.js +0 -0
@@ -1,142 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.backupFiles = void 0;
4
- const tslib_1 = require("tslib");
5
- const teamsfx_api_1 = require("@microsoft/teamsfx-api");
6
- const path_1 = tslib_1.__importDefault(require("path"));
7
- const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
8
- const os = tslib_1.__importStar(require("os"));
9
- const constants_1 = require("../constants");
10
- const localizeUtils_1 = require("../../common/localizeUtils");
11
- const folder_1 = require("../../folder");
12
- const projectMigrator_1 = require("../../core/middleware/projectMigrator");
13
- const globalVars_1 = require("../../core/globalVars");
14
- const windowsPathLengthLimit = 260;
15
- const fileNameLengthLimit = 255;
16
- const configFolder = `.${teamsfx_api_1.ConfigFolderName}/configs`;
17
- const azureParameterFileNameTemplate = `azure.parameters.${teamsfx_api_1.EnvNamePlaceholder}.json`;
18
- const stateFolder = `.${teamsfx_api_1.ConfigFolderName}/states`;
19
- const stateFileNameTemplate = `state.${teamsfx_api_1.EnvNamePlaceholder}.json`;
20
- const userDateFileNameTemplate = `${teamsfx_api_1.EnvNamePlaceholder}.userdata`;
21
- const jsonSuffix = ".json";
22
- const userDataSuffix = ".userdata";
23
- const appSettingsFileName = "appsettings.Development.json";
24
- const reportName = "backup-config-change-logs.md";
25
- async function doesBackupFolderCreatedByTTK(backupPath) {
26
- return ((await fs_extra_1.default.readdir(backupPath)).length === 0 ||
27
- (await fs_extra_1.default.pathExists(path_1.default.join(backupPath, ".fx"))) ||
28
- (await fs_extra_1.default.pathExists(path_1.default.join(backupPath, "aad-manifest-change-logs.md"))) ||
29
- (await fs_extra_1.default.pathExists(path_1.default.join(backupPath, "upgrade-change-logs.md"))));
30
- }
31
- async function getBackupFolder(projectPath) {
32
- const backupName = ".backup";
33
- const backupPath = path_1.default.join(projectPath, backupName);
34
- const teamsfxBackupPath = path_1.default.join(projectPath, `.teamsfx${backupName}`);
35
- if (!(await fs_extra_1.default.pathExists(backupPath)) || (await doesBackupFolderCreatedByTTK(backupPath))) {
36
- return backupPath;
37
- }
38
- return teamsfxBackupPath;
39
- }
40
- async function backupFiles(env, projectPath, isCSharpProject, isVSPlatform, ctx) {
41
- const time = formatDate();
42
- const backupFolder = await getBackupFolder(projectPath);
43
- // state file
44
- const stateFileBackupRes = await backupFxFile(projectPath, env, stateFileNameTemplate, stateFolder, backupFolder, time, jsonSuffix);
45
- if (stateFileBackupRes.isErr()) {
46
- return teamsfx_api_1.err(stateFileBackupRes.error);
47
- }
48
- // user data file
49
- const userDataFileBackupRes = await backupFxFile(projectPath, env, userDateFileNameTemplate, stateFolder, backupFolder, time, userDataSuffix);
50
- if (userDataFileBackupRes.isErr()) {
51
- return teamsfx_api_1.err(userDataFileBackupRes.error);
52
- }
53
- // Azure parameter file
54
- if (env !== "local") {
55
- const azureParameterFileBackupRes = await backupFxFile(projectPath, env, azureParameterFileNameTemplate, configFolder, backupFolder, time, jsonSuffix);
56
- if (azureParameterFileBackupRes.isErr()) {
57
- return teamsfx_api_1.err(azureParameterFileBackupRes.error);
58
- }
59
- }
60
- // Back up appsettings.Development.json
61
- if (env === "local" && isCSharpProject) {
62
- const sourceFilePath = path_1.default.join(projectPath, appSettingsFileName);
63
- const appSettingsBackupRes = await backupSrcFile(sourceFilePath, appSettingsFileName, backupFolder, time, jsonSuffix);
64
- if (appSettingsBackupRes.isErr()) {
65
- return teamsfx_api_1.err(appSettingsBackupRes.error);
66
- }
67
- }
68
- // generate readme.
69
- await generateReport(backupFolder, isVSPlatform, ctx);
70
- // update .gitignore
71
- if (await fs_extra_1.default.pathExists(backupFolder)) {
72
- await projectMigrator_1.addPathToGitignore(projectPath, backupFolder, globalVars_1.TOOLS.logProvider);
73
- }
74
- return teamsfx_api_1.ok(undefined);
75
- }
76
- exports.backupFiles = backupFiles;
77
- async function backupSrcFile(sourceFilePath, sourceFileName, backupFileParentPath, time, suffix) {
78
- try {
79
- const backupFileName = generateBackupFileName(sourceFileName, backupFileParentPath, suffix, time);
80
- const backupFile = path_1.default.join(backupFileParentPath, backupFileName);
81
- await copyFileToBackupFolderIfExists(sourceFilePath, backupFile, backupFileParentPath);
82
- return teamsfx_api_1.ok(undefined);
83
- }
84
- catch (exception) {
85
- const error = new teamsfx_api_1.UserError(constants_1.SolutionSource, constants_1.SolutionError.FailedToBackupFiles, localizeUtils_1.getDefaultString("core.backupFiles.FailedToBackupFiles", sourceFilePath), localizeUtils_1.getLocalizedString("core.backupFiles.FailedToBackupFiles", sourceFilePath));
86
- return teamsfx_api_1.err(error);
87
- }
88
- }
89
- async function backupFxFile(projectPath, env, fileNameTemplate, folder, backupFolder, time, suffix) {
90
- const sourceFileName = fileNameTemplate.replace(teamsfx_api_1.EnvNamePlaceholder, env);
91
- const sourceFilePath = path_1.default.join(path_1.default.join(projectPath, folder), sourceFileName);
92
- const backupFileParentPath = path_1.default.join(backupFolder, folder);
93
- const res = await backupSrcFile(sourceFilePath, sourceFileName, backupFileParentPath, time, suffix);
94
- return res;
95
- }
96
- function generateBackupFileName(sourceFileName, backupFileFolder, suffix, time) {
97
- let fileNamePrefix = sourceFileName.substring(0, sourceFileName.length - suffix.length) + "." + time;
98
- if (os.type() === "Windows_NT" &&
99
- backupFileFolder.length + suffix.length + fileNamePrefix.length + 1 > windowsPathLengthLimit) {
100
- fileNamePrefix = fileNamePrefix.substring(0, windowsPathLengthLimit - 1 - backupFileFolder.length - suffix.length);
101
- }
102
- else if (fileNamePrefix.length + suffix.length > fileNameLengthLimit) {
103
- fileNamePrefix = fileNamePrefix.substring(0, fileNameLengthLimit - suffix.length);
104
- }
105
- return fileNamePrefix + suffix;
106
- }
107
- async function copyFileToBackupFolderIfExists(sourceFile, targetFile, targetFolder) {
108
- if (await fs_extra_1.default.pathExists(sourceFile)) {
109
- await fs_extra_1.default.ensureDir(targetFolder);
110
- await fs_extra_1.default.copyFile(sourceFile, targetFile, fs_extra_1.default.constants.COPYFILE_EXCL);
111
- }
112
- }
113
- function formatDate() {
114
- const date = new Date();
115
- return [
116
- date.getFullYear(),
117
- convertTo2Digits(date.getMonth() + 1),
118
- convertTo2Digits(date.getDate()),
119
- convertTo2Digits(date.getHours()),
120
- convertTo2Digits(date.getMinutes()),
121
- convertTo2Digits(date.getSeconds()),
122
- ].join("");
123
- }
124
- function convertTo2Digits(num) {
125
- return num.toString().padStart(2, "0");
126
- }
127
- async function generateReport(backupFolder, isVSPlatform, ctx) {
128
- try {
129
- const target = path_1.default.join(backupFolder, reportName);
130
- const source = path_1.default.resolve(path_1.default.join(folder_1.getResourceFolder(), reportName));
131
- if (!(await fs_extra_1.default.pathExists(target))) {
132
- await fs_extra_1.default.copyFile(source, target);
133
- if ((await fs_extra_1.default.pathExists(target)) && !!ctx.userInteraction.openFile && isVSPlatform) {
134
- await ctx.userInteraction.openFile(target);
135
- }
136
- }
137
- }
138
- catch (error) {
139
- // do nothing
140
- }
141
- }
142
- //# sourceMappingURL=backupFiles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"backupFiles.js","sourceRoot":"","sources":["../../../src/component/utils/backupFiles.ts"],"names":[],"mappings":";;;;AAAA,wDASgC;AAChC,wDAAwB;AACxB,gEAA0B;AAC1B,+CAAyB;AACzB,4CAA6D;AAC7D,8DAAkF;AAClF,yCAAiD;AACjD,2EAA2E;AAC3E,sDAA8C;AAE9C,MAAM,sBAAsB,GAAG,GAAG,CAAC;AACnC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,MAAM,YAAY,GAAG,IAAI,8BAAgB,UAAU,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AM,EAAE,MAAM,CAAC,CAAC;YAClC,IAAI,CAAC,MAAM,kBAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,QAAQ,IAAI,YAAY,EAAE;gBACnF,MAAM,GAAG,CAAC,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;aAC5C;SACF;KACF;IAAC,OAAO,KAAK,EAAE;QACd,aAAa;KACd;AACH,CAAC"}
@@ -1,12 +0,0 @@
1
- import { FxError, LogProvider, Result, v2 } from "@microsoft/teamsfx-api";
2
- export declare type Thunk<R> = () => Promise<Result<R, FxError>>;
3
- export declare type NamedThunk<R> = {
4
- pluginName: string;
5
- taskName: string;
6
- thunk: Thunk<R>;
7
- };
8
- export declare function executeConcurrently<R>(namedThunks: NamedThunk<R>[], logger: LogProvider, concurrent?: boolean): Promise<v2.FxResult<{
9
- name: string;
10
- result: R;
11
- }[], FxError>>;
12
- //# sourceMappingURL=executor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/component/utils/executor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,WAAW,EACX,MAAM,EAEN,EAAE,EAGH,MAAM,wBAAwB,CAAC;AAIhC,oBAAY,KAAK,CAAC,CAAC,IAAI,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;AAEzD,oBAAY,UAAU,CAAC,CAAC,IAAI;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC;AAEtF,wBAAsB,mBAAmB,CAAC,CAAC,EACzC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,EAC5B,MAAM,EAAE,WAAW,EACnB,UAAU,UAAO,GAChB,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,CAAC,CAAA;CAAE,EAAE,EAAE,OAAO,CAAC,CAAC,CAkF9D"}
@@ -1,87 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.executeConcurrently = void 0;
4
- const teamsfx_api_1 = require("@microsoft/teamsfx-api");
5
- const constants_1 = require("../../common/constants");
6
- const constants_2 = require("../constants");
7
- async function executeConcurrently(namedThunks, logger, concurrent = true) {
8
- let results;
9
- if (concurrent) {
10
- results = await Promise.all(namedThunks.map(async (namedThunk) => {
11
- logger.info(`Running ${namedThunk.pluginName} concurrently`);
12
- try {
13
- return namedThunk.thunk();
14
- }
15
- catch (e) {
16
- if (e instanceof teamsfx_api_1.UserError || e instanceof teamsfx_api_1.SystemError) {
17
- return teamsfx_api_1.err(e);
18
- }
19
- return teamsfx_api_1.err(new teamsfx_api_1.SystemError(constants_2.SolutionSource, "UnknownError", `[SolutionV2.executeConcurrently] unknown error, plugin: ${namedThunk.pluginName}, taskName: ${namedThunk.taskName}, error: ${JSON.stringify(e)}`));
20
- }
21
- }));
22
- }
23
- else {
24
- results = [];
25
- for (const namedThunk of namedThunks) {
26
- logger.info(`Running ${namedThunk.pluginName} concurrently`);
27
- let res;
28
- try {
29
- res = await namedThunk.thunk();
30
- }
31
- catch (e) {
32
- if (e instanceof teamsfx_api_1.UserError || e instanceof teamsfx_api_1.SystemError) {
33
- res = teamsfx_api_1.err(e);
34
- }
35
- else {
36
- res = teamsfx_api_1.err(new teamsfx_api_1.SystemError(constants_2.SolutionSource, "UnknownError", `[SolutionV2.executeConcurrently] unknown error, plugin: ${namedThunk.pluginName}, taskName: ${namedThunk.taskName}, error: ${JSON.stringify(e)}`));
37
- }
38
- }
39
- results.push(res);
40
- }
41
- }
42
- logger === null || logger === void 0 ? void 0 : logger.info(`${`[${constants_1.PluginDisplayName.Solution}] Execute Task summary`.padEnd(64, "-")}`);
43
- let failed = false;
44
- const ret = [];
45
- const errors = [];
46
- for (let i = 0; i < results.length; ++i) {
47
- const name = `${namedThunks[i].pluginName}:${namedThunks[i].taskName}`;
48
- const result = results[i];
49
- logger.info(`${name.padEnd(60, ".")} ${result.isOk() ? "[ok]" : "[failed]"}`);
50
- if (result.isErr()) {
51
- failed = true;
52
- errors.push(result.error);
53
- }
54
- else {
55
- ret.push({ name: `${namedThunks[i].pluginName}`, result: result.value });
56
- }
57
- }
58
- if (logger)
59
- logger === null || logger === void 0 ? void 0 : logger.info(`${`[${constants_1.PluginDisplayName.Solution}] Task overall result`.padEnd(60, ".")}${failed ? "[failed]" : "[ok]"}`);
60
- if (failed) {
61
- if (ret.length === 0) {
62
- return new teamsfx_api_1.v2.FxFailure(mergeFxErrors(errors));
63
- }
64
- else {
65
- return new teamsfx_api_1.v2.FxPartialSuccess(ret, mergeFxErrors(errors));
66
- }
67
- }
68
- return new teamsfx_api_1.v2.FxSuccess(ret);
69
- }
70
- exports.executeConcurrently = executeConcurrently;
71
- function mergeFxErrors(errors) {
72
- if (errors.length === 1) {
73
- return errors[0];
74
- }
75
- let hasSystemError = false;
76
- const errMsgs = [];
77
- for (const err of errors) {
78
- if (err instanceof teamsfx_api_1.SystemError) {
79
- hasSystemError = true;
80
- }
81
- errMsgs.push(`${err.name}:${err.message}`);
82
- }
83
- return hasSystemError
84
- ? new teamsfx_api_1.SystemError(constants_2.SolutionSource, constants_2.SolutionError.FailedToExecuteTasks, errMsgs.join(";"))
85
- : new teamsfx_api_1.UserError(constants_2.SolutionSource, constants_2.SolutionError.FailedToExecuteTasks, errMsgs.join(";"));
86
- }
87
- //# sourceMappingURL=executor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../src/component/utils/executor.ts"],"names":[],"mappings":";;;AAAA,wDAQgC;AAChC,sDAA2D;AAC3D,4CAA6D;AAMtD,KAAK,UAAU,mBAAmB,CACvC,WAA4B,EAC5B,MAAmB,EACnB,UAAU,GAAG,IA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ker.d.ts","sourceRoot":"","sources":["../../src/core/dependencyChecker.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=dependencyChecker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dependencyChecker.js","sourceRoot":"","sources":["../../src/core/dependencyChecker.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- import { ContextV3, FxError, Inputs, Result } from "@microsoft/teamsfx-api";
2
- import AdmZip from "adm-zip";
3
- import { AxiosResponse } from "axios";
4
- import { CoreHookContext } from "./types";
5
- export declare function fetchCodeZip(url: string, sampleId: string): Promise<Result<AxiosResponse<any> | undefined, FxError>>;
6
- export declare function saveFilesRecursively(zip: AdmZip, appFolder: string, dstPath: string): Promise<void>;
7
- export declare function downloadSampleHook(sampleId: string, sampleAppPath: string): Promise<void>;
8
- export declare function downloadSample(inputs: Inputs, ctx?: CoreHookContext, contextV3?: ContextV3): Promise<Result<string, FxError>>;
9
- //# sourceMappingURL=downloadSample.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"downloadSample.d.ts","sourceRoot":"","sources":["../../src/core/downloadSample.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,SAAS,EAET,OAAO,EACP,MAAM,EAIN,MAAM,EACP,MAAM,wBAAwB,CAAC;AAChC,OAAO,MAAM,MAAM,SAAS,CAAC;AAC7B,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAkB7C,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,wBAAsB,YAAY,CAChC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS,EAAE,OAAO,CAAC,CAAC,CA6B1D;AAED,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAcf;AAED,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgB/F;AAED,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,EACd,GAAG,CAAC,EAAE,eAAe,EACrB,SAAS,CAAC,EAAE,SAAS,GACpB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAmFlC"}
@@ -1,161 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.downloadSample = exports.downloadSampleHook = exports.saveFilesRecursively = exports.fetchCodeZip = void 0;
4
- const tslib_1 = require("tslib");
5
- // Copyright (c) Microsoft Corporation.
6
- // Licensed under the MIT license.
7
- const teamsfx_api_1 = require("@microsoft/teamsfx-api");
8
- const adm_zip_1 = tslib_1.__importDefault(require("adm-zip"));
9
- const axios_1 = tslib_1.__importDefault(require("axios"));
10
- const fs = tslib_1.__importStar(require("fs-extra"));
11
- const glob_1 = require("glob");
12
- const path = tslib_1.__importStar(require("path"));
13
- const uuid = tslib_1.__importStar(require("uuid"));
14
- const globalVars_1 = require("./globalVars");
15
- const samples_1 = require("../common/samples");
16
- const telemetry_1 = require("../common/telemetry");
17
- const error_1 = require("./error");
18
- const projectSettingsLoader_1 = require("./middleware/projectSettingsLoader");
19
- const question_1 = require("./question");
20
- async function fetchCodeZip(url, sampleId) {
21
- let retries = 3;
22
- let result = undefined;
23
- const error = new error_1.FetchSampleError(sampleId);
24
- while (retries > 0) {
25
- retries--;
26
- try {
27
- result = await axios_1.default.get(url, {
28
- responseType: "arraybuffer",
29
- });
30
- if (result.status === 200 || result.status === 201) {
31
- return teamsfx_api_1.ok(result);
32
- }
33
- }
34
- catch (e) {
35
- await new Promise((resolve) => setTimeout(resolve, 10000));
36
- if (e.response) {
37
- error.message += `, status code: ${e.response.status}`;
38
- }
39
- else if (e.request) {
40
- if (e.code === "ENOTFOUND") {
41
- error.message += ". Network issue, please check your network connectivity";
42
- }
43
- else {
44
- error.message += `. Request: ${e.request} failed with error message ${e.message}`;
45
- }
46
- }
47
- else {
48
- error.message += `. ${e.message}`;
49
- }
50
- }
51
- }
52
- return teamsfx_api_1.err(error);
53
- }
54
- exports.fetchCodeZip = fetchCodeZip;
55
- async function saveFilesRecursively(zip, appFolder, dstPath) {
56
- await Promise.all(zip
57
- .getEntries()
58
- .filter((entry) => !entry.isDirectory && entry.entryName.includes(`${appFolder}/`))
59
- .map(async (entry) => {
60
- const entryPath = entry.entryName.substring(entry.entryName.indexOf(appFolder) + appFolder.length);
61
- const filePath = path.join(dstPath, entryPath);
62
- await fs.ensureDir(path.dirname(filePath));
63
- await fs.writeFile(filePath, entry.getData());
64
- }));
65
- }
66
- exports.saveFilesRecursively = saveFilesRecursively;
67
- async function downloadSampleHook(sampleId, sampleAppPath) {
68
- // A temporary solution to avoid duplicate componentId
69
- if (sampleId === "todo-list-SPFx") {
70
- const originalId = "c314487b-f51c-474d-823e-a2c3ec82b1ff";
71
- const componentId = uuid.v4();
72
- glob_1.glob.glob(`${sampleAppPath}/**/*.json`, { nodir: true, dot: true }, async (err, files) => {
73
- await Promise.all(files.map(async (file) => {
74
- let content = (await fs.readFile(file)).toString();
75
- const reg = new RegExp(originalId, "g");
76
- content = content.replace(reg, componentId);
77
- await fs.writeFile(file, content);
78
- }));
79
- });
80
- }
81
- }
82
- exports.downloadSampleHook = downloadSampleHook;
83
- async function downloadSample(inputs, ctx, contextV3) {
84
- var _a;
85
- let fxError;
86
- const progress = globalVars_1.TOOLS.ui.createProgressBar("Fetch sample app", 3);
87
- await progress.start();
88
- const telemetryProperties = {
89
- [telemetry_1.TelemetryProperty.Success]: telemetry_1.TelemetrySuccess.Yes,
90
- module: "fx-core",
91
- };
92
- try {
93
- const folder = inputs["folder"];
94
- try {
95
- await fs.ensureDir(folder);
96
- }
97
- catch (e) {
98
- throw new error_1.ProjectFolderInvalidError(folder);
99
- }
100
- const sampleId = inputs[question_1.CoreQuestionNames.Samples];
101
- if (!(sampleId && folder)) {
102
- throw error_1.InvalidInputError(`invalid answer for '${question_1.CoreQuestionNames.Samples}'`, inputs);
103
- }
104
- telemetryProperties[telemetry_1.TelemetryProperty.SampleAppName] = sampleId;
105
- const samples = samples_1.sampleProvider.SampleCollection.samples.filter((sample) => sample.id.toLowerCase() === sampleId.toLowerCase());
106
- if (samples.length === 0) {
107
- throw error_1.InvalidInputError(`invalid sample id: '${sampleId}'`, inputs);
108
- }
109
- const sample = samples[0];
110
- const url = sample.link;
111
- let sampleAppPath = path.resolve(folder, sampleId);
112
- if ((await fs.pathExists(sampleAppPath)) && (await fs.readdir(sampleAppPath)).length > 0) {
113
- let suffix = 1;
114
- while (await fs.pathExists(sampleAppPath)) {
115
- sampleAppPath = `${folder}/${sampleId}_${suffix++}`;
116
- }
117
- }
118
- await progress.next(`Downloading from ${url}`);
119
- const fetchRes = await fetchCodeZip(url, sample.id);
120
- if (fetchRes.isErr()) {
121
- throw fetchRes.error;
122
- }
123
- else if (!fetchRes.value) {
124
- throw new error_1.FetchSampleError(sample.id);
125
- }
126
- await progress.next("Unzipping the sample package");
127
- await saveFilesRecursively(new adm_zip_1.default(fetchRes.value.data), (_a = sample.relativePath) !== null && _a !== void 0 ? _a : sampleId, sampleAppPath);
128
- await downloadSampleHook(sampleId, sampleAppPath);
129
- await progress.next("Update project settings");
130
- const loadInputs = Object.assign(Object.assign({}, inputs), { projectPath: sampleAppPath });
131
- const projectSettingsRes = await projectSettingsLoader_1.loadProjectSettings(loadInputs, true);
132
- if (projectSettingsRes.isOk()) {
133
- const projectSettings = projectSettingsRes.value;
134
- projectSettings.projectId = inputs.projectId ? inputs.projectId : uuid.v4();
135
- projectSettings.isFromSample = true;
136
- inputs.projectId = projectSettings.projectId;
137
- telemetryProperties[telemetry_1.TelemetryProperty.NewProjectId] = projectSettings.projectId;
138
- if (ctx)
139
- ctx.projectSettings = projectSettings;
140
- if (contextV3)
141
- contextV3.projectSetting = projectSettings;
142
- inputs.projectPath = sampleAppPath;
143
- }
144
- else {
145
- telemetryProperties[telemetry_1.TelemetryProperty.NewProjectId] =
146
- "unknown, failed to set projectId in projectSettings.json";
147
- }
148
- await progress.end(true);
149
- telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.DownloadSample, telemetryProperties);
150
- return teamsfx_api_1.ok(sampleAppPath);
151
- }
152
- catch (e) {
153
- fxError = teamsfx_api_1.assembleError(e);
154
- await progress.end(false);
155
- telemetryProperties[telemetry_1.TelemetryProperty.Success] = telemetry_1.TelemetrySuccess.No;
156
- telemetry_1.sendTelemetryErrorEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.DownloadSample, fxError, telemetryProperties);
157
- return teamsfx_api_1.err(fxError);
158
- }
159
- }
160
- exports.downloadSample = downloadSample;
161
- //# sourceMappingURL=downloadSample.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"downloadSample.js","sourceRoot":"","sources":["../../src/core/downloadSample.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAUgC;AAChC,8DAA6B;AAC7B,0DAA6C;AAC7C,qDAA+B;AAC/B,+BAA4B;AAC5B,mDAA6B;AAC7B,mDAA6B;AAC7B,6CAAqC;AACrC,+CAAmD;AACnD,mDAO6B;AAC7B,mCAAyF;AACzF,8EAAyE;AACzE,yCAA+C;AAGxC,KAAK,UAAU,YAAY,CAChC,GAAW,EACX,QAAgB;IAEhB,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,IAAI,MAAM,GAAG,SAAS,CAAC;IACvB,MAAM,KAAK,GAAG,IAAI,wBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC7C,OAAO,OAAO,GAAG,CAAC,EAAE;QAClB,OAAO,EAAE,CAAC;QACV,IAAI;YACF,MAAM,GAAG,MAAM,eAAK,CAAC,GAAG,CAAC,GAAG,EAAE;gBAC5B,YAAY,EAAE,aAAa;aAC5B,CAAC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KACrB;AACH,CAAC;AAvFD,wCAuFC"}
@@ -1,14 +0,0 @@
1
- import { HookContext, Middleware } from "@feathersjs/hooks";
2
- import { FxError, Result } from "@microsoft/teamsfx-api";
3
- export interface ErrorHandleOption {
4
- error?: FxError;
5
- startFn?: (ctx: HookContext) => Promise<Result<any, FxError>>;
6
- endFn?: (ctx: HookContext) => Promise<Result<any, FxError>>;
7
- telemetry?: {
8
- component: string;
9
- eventName?: string;
10
- properties?: Record<string, string>;
11
- };
12
- }
13
- export declare function CommonErrorHandlerMW(option?: ErrorHandleOption): Middleware;
14
- //# sourceMappingURL=CommonErrorHandlerMW.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommonErrorHandlerMW.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/CommonErrorHandlerMW.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAgB,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAsB,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAU7E,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;IAC9D,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;IAC5D,SAAS,CAAC,EAAE;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACrC,CAAC;CACH;AAED,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,iBAAiB,GAAG,UAAU,CA4D3E"}
@@ -1,63 +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.CommonErrorHandlerMW = void 0;
6
- const teamsfx_api_1 = require("@microsoft/teamsfx-api");
7
- const lodash_1 = require("lodash");
8
- const telemetry_1 = require("../../common/telemetry");
9
- const globalVars_1 = require("../globalVars");
10
- function CommonErrorHandlerMW(option) {
11
- return async (ctx, next) => {
12
- try {
13
- if (option === null || option === void 0 ? void 0 : option.startFn) {
14
- await (option === null || option === void 0 ? void 0 : option.startFn(ctx));
15
- }
16
- if (option === null || option === void 0 ? void 0 : option.telemetry) {
17
- const event = option.telemetry.eventName
18
- ? option.telemetry.eventName + "-start"
19
- : lodash_1.kebabCase(ctx.method) + "-start";
20
- if (!option.telemetry.properties) {
21
- option.telemetry.properties = {};
22
- ctx.arguments.push(option.telemetry.properties);
23
- }
24
- telemetry_1.sendTelemetryEvent(option.telemetry.component, event, option.telemetry.properties);
25
- }
26
- await next();
27
- if (option === null || option === void 0 ? void 0 : option.endFn) {
28
- await (option === null || option === void 0 ? void 0 : option.endFn(ctx));
29
- }
30
- if (option === null || option === void 0 ? void 0 : option.telemetry) {
31
- const event = option.telemetry.eventName
32
- ? option.telemetry.eventName
33
- : lodash_1.kebabCase(ctx.method);
34
- const result = ctx.result;
35
- option.telemetry.properties[telemetry_1.TelemetryProperty.Success] = result.isOk()
36
- ? telemetry_1.TelemetrySuccess.Yes
37
- : telemetry_1.TelemetrySuccess.No;
38
- option.telemetry.properties[telemetry_1.TelemetryProperty.AppId] = globalVars_1.globalVars.teamsAppId || "";
39
- result.isOk()
40
- ? telemetry_1.sendTelemetryEvent(option.telemetry.component, event, option.telemetry.properties)
41
- : telemetry_1.sendTelemetryErrorEvent(option.telemetry.component, event, result.error, option.telemetry.properties);
42
- }
43
- }
44
- catch (e) {
45
- const error = (option === null || option === void 0 ? void 0 : option.error) ? option.error : teamsfx_api_1.assembleError(e);
46
- ctx.error = error;
47
- if (option === null || option === void 0 ? void 0 : option.endFn) {
48
- await (option === null || option === void 0 ? void 0 : option.endFn(ctx));
49
- }
50
- ctx.result = teamsfx_api_1.err(error);
51
- if (option === null || option === void 0 ? void 0 : option.telemetry) {
52
- const event = option.telemetry.eventName
53
- ? option.telemetry.eventName
54
- : lodash_1.kebabCase(ctx.method);
55
- option.telemetry.properties[telemetry_1.TelemetryProperty.Success] = telemetry_1.TelemetrySuccess.No;
56
- option.telemetry.properties[telemetry_1.TelemetryProperty.AppId] = globalVars_1.globalVars.teamsAppId || "";
57
- telemetry_1.sendTelemetryErrorEvent(option.telemetry.component, event, error, option.telemetry.properties);
58
- }
59
- }
60
- };
61
- }
62
- exports.CommonErrorHandlerMW = CommonErrorHandlerMW;
63
- //# sourceMappingURL=CommonErrorHandlerMW.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommonErrorHandlerMW.js","sourceRoot":"","sources":["../../../src/core/middleware/CommonErrorHandlerMW.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAGb,wDAA6E;AAC7E,mCAAmC;AACnC,sDAKgC;AAChC,8CAA2C;AAa3C,SAAgB,oBAAoB,CAAC,MAA0B;IAC7D,OAAO,KAAK,EAAE,GAAgB,EAAE,IAAkB,EAAE,EAAE;QACpD,IAAI;YACF,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,EAAE;gBACnB,MAAM,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAC,GAAG,CAAC,CAAA,CAAC;aAC5B;YACD,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,EAAE;gBACrB,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,SAAS;oBACtC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,GAAG,QAAQ;oBACvC,CAAC,CAAC,kBAAS,CAAC,GAAG,CAAC,MAAO,CAAC,GAAG,QAAQ,CAAC;gBACtC,IAAI,C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+0,0 @@
1
- import { Middleware } from "@feathersjs/hooks/lib";
2
- export declare const AadManifestMigrationMW: Middleware;
3
- //# sourceMappingURL=aadManifestMigration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"aadManifestMigration.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/aadManifestMigration.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAgB,MAAM,uBAAuB,CAAC;AA0BjE,eAAO,MAAM,sBAAsB,EAAE,UAapC,CAAC"}