@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,95 +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.AzureHosting = void 0;
6
- const tslib_1 = require("tslib");
7
- const teamsfx_api_1 = require("@microsoft/teamsfx-api");
8
- const fs = tslib_1.__importStar(require("fs-extra"));
9
- const path_1 = tslib_1.__importDefault(require("path"));
10
- const constants_1 = require("../constants");
11
- const folder_1 = require("../../folder");
12
- const messages_1 = require("./messages");
13
- const utils_1 = require("./utils");
14
- const tools_1 = require("../tools");
15
- class AzureHosting {
16
- constructor() {
17
- this.reference = undefined;
18
- }
19
- getBicepTemplateFolder() {
20
- return path_1.default.join(folder_1.getTemplatesFolder(), "plugins", "resource", "hosting", "bicep", this.hostType);
21
- }
22
- async generateBicep(bicepContext) {
23
- var _a, _b;
24
- // * The order matters.
25
- // * 0: Provision Orchestration, 1: Provision Module, 2: Configuration Orchestration, 3: Configuration Module
26
- const bicepFiles = [constants_1.Bicep.ProvisionFileName, `${this.hostType}Provision.template.bicep`];
27
- if (this.configurable) {
28
- bicepFiles.push(constants_1.Bicep.ConfigFileName);
29
- bicepFiles.push(`${this.hostType}Configuration.template.bicep`);
30
- }
31
- const context = utils_1.getHandlebarContext(bicepContext, this.hostType);
32
- const bicepTemplateDir = this.getBicepTemplateFolder();
33
- const modules = await Promise.all(bicepFiles.map(async (filename) => await tools_1.generateBicepFromFile(path_1.default.join(bicepTemplateDir, filename), context)));
34
- // parameters should be undefined if parameter file does not exist
35
- let parameters;
36
- const parameterFilePath = path_1.default.join(bicepTemplateDir, constants_1.Bicep.ParameterFileName);
37
- if (await fs.pathExists(parameterFilePath)) {
38
- parameters = await fs.readJson(parameterFilePath);
39
- }
40
- (_b = (_a = this.logger) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.call(_a, messages_1.Messages.generateBicep(this.hostType));
41
- return {
42
- Provision: {
43
- Orchestration: modules[0],
44
- Modules: { [context.moduleName]: modules[1] },
45
- },
46
- Configuration: this.configurable
47
- ? {
48
- Orchestration: modules[2],
49
- Modules: {
50
- [context.moduleName]: modules[3],
51
- },
52
- }
53
- : undefined,
54
- Reference: this.reference,
55
- Parameters: parameters,
56
- };
57
- }
58
- async updateBicep(bicepContext) {
59
- var _a, _b, _c, _d;
60
- // * The order matters.
61
- // * 0: Configuration Orchestration, 1: Configuration Module
62
- if (!this.configurable) {
63
- (_b = (_a = this.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, messages_1.Messages.updateBicep(this.hostType));
64
- return {};
65
- }
66
- const bicepFile = `${this.hostType}Configuration.template.bicep`;
67
- const context = utils_1.getHandlebarContext(bicepContext, this.hostType);
68
- const bicepTemplateDir = this.getBicepTemplateFolder();
69
- const module = await tools_1.generateBicepFromFile(path_1.default.join(bicepTemplateDir, bicepFile), context);
70
- (_d = (_c = this.logger) === null || _c === void 0 ? void 0 : _c.info) === null || _d === void 0 ? void 0 : _d.call(_c, messages_1.Messages.updateBicep(this.hostType));
71
- return {
72
- Configuration: {
73
- Modules: { [context.moduleName]: module },
74
- },
75
- Reference: this.reference,
76
- };
77
- }
78
- async configure(ctx) {
79
- return teamsfx_api_1.Void;
80
- }
81
- /**
82
- * deploy to Azure
83
- * @param resourceId Azure resource id
84
- * @param tokenProvider token environment
85
- * @param buffer zip file stream buffer
86
- */
87
- async deploy(resourceId, tokenProvider, buffer) {
88
- return teamsfx_api_1.Void;
89
- }
90
- setLogger(logger) {
91
- this.logger = logger;
92
- }
93
- }
94
- exports.AzureHosting = AzureHosting;
95
- //# sourceMappingURL=azureHosting.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azureHosting.js","sourceRoot":"","sources":["../../../src/common/azure-hosting/azureHosting.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAA+E;AAE/E,qDAA+B;AAC/B,wDAAwB;AACxB,4CAAqC;AACrC,yCAAkD;AAElD,yCAAsC;AACtC,mCAA8C;AAC9C,oCAAiD;AAEjD,MAAsB,YAAY;IAAlC;QAIE,cAAS,GAAQ,SAAS,CAAC;IAoG7B,CAAC;IAjGW,sBAAsB;QAC9B,OAAO,cAAI,CAAC,IAAI,CACd,2BAAkB,EAAE,E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CAAC,EAAE,MAAM,EAAE;aAC3C;YACD,SAAS,EAAE,IAAI,CAAC,SAAS;SACN,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,GAAY;QAC1B,OAAO,kBAAI,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CAAC,UAAkB,EAAE,aAA4B,EAAE,MAAc;QAC3E,OAAO,kBAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,MAAW;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAxGD,oCAwGC"}
@@ -1,17 +0,0 @@
1
- /// <reference types="node" />
2
- import * as appService from "@azure/arm-appservice";
3
- import { AzureUploadConfig, Logger } from "./interfaces";
4
- import { WebAppsListPublishingCredentialsResponse } from "@azure/arm-appservice";
5
- /**
6
- * operate int azure
7
- */
8
- export declare class AzureOperations {
9
- static readonly axiosInstance: import("axios").AxiosInstance;
10
- static listPublishingCredentials(webSiteMgmtClient: appService.WebSiteManagementClient, resourceGroup: string, siteName: string): Promise<WebAppsListPublishingCredentialsResponse>;
11
- static zipDeployPackage(zipDeployEndpoint: string, zipBuffer: Buffer, config: AzureUploadConfig, logger?: Logger): Promise<string>;
12
- static checkDeployStatus(location: string, config: AzureUploadConfig, logger?: Logger): Promise<void>;
13
- static restartWebApp(webSiteMgmtClient: appService.WebSiteManagementClient, resourceGroup: string, siteName: string, logger?: Logger): Promise<void>;
14
- }
15
- export declare function isHttpCodeOkOrCreated(code: number | undefined): boolean;
16
- export declare function isHttpCodeAccepted(code: number | undefined): boolean;
17
- //# sourceMappingURL=azureOps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azureOps.d.ts","sourceRoot":"","sources":["../../../src/common/azure-hosting/azureOps.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AAWpD,OAAO,EAKL,iBAAiB,EACjB,MAAM,EACP,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,wCAAwC,EAAE,MAAM,uBAAuB,CAAC;AAEjF;;GAEG;AACH,qBAAa,eAAe;IAC1B,gBAAuB,aAAa,gCAAkB;WAElC,yBAAyB,CAC3C,iBAAiB,EAAE,UAAU,CAAC,uBAAuB,EACrD,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,wCAAwC,CAAC;WAkBhC,gBAAgB,CAClC,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,iBAAiB,EACzB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,CAAC;WAkBE,iBAAiB,CACnC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,iBAAiB,EACzB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC;WA0BI,aAAa,CAC/B,iBAAiB,EAAE,UAAU,CAAC,uBAAuB,EACrD,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC;CAQjB;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAEvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAEpE"}
@@ -1,94 +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.isHttpCodeAccepted = exports.isHttpCodeOkOrCreated = exports.AzureOperations = void 0;
6
- const tslib_1 = require("tslib");
7
- const axios_1 = tslib_1.__importDefault(require("axios"));
8
- const hostingError_1 = require("./hostingError");
9
- const hostingConstant_1 = require("./hostingConstant");
10
- const tools_1 = require("../tools");
11
- const messages_1 = require("./messages");
12
- /**
13
- * operate int azure
14
- */
15
- class AzureOperations {
16
- static async listPublishingCredentials(webSiteMgmtClient, resourceGroup, siteName) {
17
- let listResponse;
18
- try {
19
- listResponse = await webSiteMgmtClient.webApps.beginListPublishingCredentialsAndWait(resourceGroup, siteName);
20
- }
21
- catch (e) {
22
- throw new hostingError_1.ListPublishingCredentialsError(e);
23
- }
24
- if (!listResponse) {
25
- throw new hostingError_1.ListPublishingCredentialsError();
26
- }
27
- return listResponse;
28
- }
29
- static async zipDeployPackage(zipDeployEndpoint, zipBuffer, config, logger) {
30
- var _a;
31
- let res;
32
- try {
33
- res = await AzureOperations.axiosInstance.post(zipDeployEndpoint, zipBuffer, config);
34
- }
35
- catch (e) {
36
- throw new hostingError_1.ZipDeployError(e);
37
- }
38
- if (!res || !isHttpCodeAccepted(res === null || res === void 0 ? void 0 : res.status)) {
39
- if (res === null || res === void 0 ? void 0 : res.status) {
40
- (_a = logger === null || logger === void 0 ? void 0 : logger.error) === null || _a === void 0 ? void 0 : _a.call(logger, messages_1.Messages.deployFailed(res.status));
41
- }
42
- throw new hostingError_1.ZipDeployError();
43
- }
44
- return res.headers.location;
45
- }
46
- static async checkDeployStatus(location, config, logger) {
47
- var _a;
48
- let res;
49
- for (let i = 0; i < hostingConstant_1.DeployStatusConstant.RETRY_TIMES; ++i) {
50
- try {
51
- res = await AzureOperations.axiosInstance.get(location, config);
52
- }
53
- catch (e) {
54
- throw new hostingError_1.DeployStatusError(e);
55
- }
56
- if (res) {
57
- if (isHttpCodeAccepted(res === null || res === void 0 ? void 0 : res.status)) {
58
- await tools_1.waitSeconds(hostingConstant_1.DeployStatusConstant.BACKOFF_TIME_S);
59
- }
60
- else if (isHttpCodeOkOrCreated(res === null || res === void 0 ? void 0 : res.status)) {
61
- return;
62
- }
63
- else {
64
- if (res.status) {
65
- (_a = logger === null || logger === void 0 ? void 0 : logger.error) === null || _a === void 0 ? void 0 : _a.call(logger, messages_1.Messages.deployFailed(res.status));
66
- }
67
- throw new hostingError_1.DeployStatusError();
68
- }
69
- }
70
- }
71
- throw new hostingError_1.DeployTimeoutError();
72
- }
73
- static async restartWebApp(webSiteMgmtClient, resourceGroup, siteName, logger) {
74
- var _a;
75
- (_a = logger === null || logger === void 0 ? void 0 : logger.info) === null || _a === void 0 ? void 0 : _a.call(logger, messages_1.Messages.restartFunction(siteName));
76
- try {
77
- await webSiteMgmtClient.webApps.restart(resourceGroup, siteName);
78
- }
79
- catch (e) {
80
- throw new hostingError_1.RestartWebAppError(e);
81
- }
82
- }
83
- }
84
- exports.AzureOperations = AzureOperations;
85
- AzureOperations.axiosInstance = axios_1.default.create();
86
- function isHttpCodeOkOrCreated(code) {
87
- return code !== undefined && [200, 201].includes(code);
88
- }
89
- exports.isHttpCodeOkOrCreated = isHttpCodeOkOrCreated;
90
- function isHttpCodeAccepted(code) {
91
- return code === 202;
92
- }
93
- exports.isHttpCodeAccepted = isHttpCodeAccepted;
94
- //# sourceMappingURL=azureOps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"azureOps.js","sourceRoot":"","sources":["../../../src/common/azure-hosting/azureOps.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAGlC,0DAAyC;AACzC,iDAMwB;AACxB,uDAAyD;AACzD,oCAAuC;AASvC,yCAAsC;AAGtC;;GAEG;AACH,MAAa,eAAe;IAGnB,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAC3C,iBAAqD,EACrD,aAAqB,EACrB,QAAgB;QAEhB,IAAI,YAAsD,CAAC;QAC3D,IAAI;YACF,YAAY,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,qCAAqC,CAClF,aAAa,EACb,QAAQ,CACT,CAAC;SACH;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,IAAI,6CAA8B,CAAC,CAAC,CAAC,CAAC;SAC7C;QAED,IAAI,CAAC,YAAY,EAAE;YACjB,MAAM,IAAI,6CAA8B,EAAE,CAAC;SAC5C;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,gBAAgB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- static readonly hostName: string;
4
- static readonly webAppEndpoint: string;
5
- }
6
- export declare class DeployStatusConstant {
7
- static readonly RETRY_TIMES = 120;
8
- static readonly BACKOFF_TIME_S = 10;
9
- }
10
- export declare class AzureOpsConstant {
11
- static TRY_LOGIN_AZURE: () => string;
12
- static CHECK_OUTPUT_LOG_AND_TRY_TO_FIX: () => string;
13
- static RETRY_CURRENT_STEP: () => string;
14
- static FAIL_TO_GET_AZURE_CREDENTIALS: () => [string, string];
15
- static readonly FAIL_TO_UPDATE_MESSAGE_ENDPOINT: (endpoint: string) => [string, string];
16
- static readonly FAIL_TO_PROVISION_SOME_RESOURCE: (resource: string) => [string, string];
17
- static readonly FAIL_TO_LIST_PUBLISHING_CREDENTIALS: () => [string, string];
18
- static readonly FAIL_TO_DO_ZIP_DEPLOY: () => [string, string];
19
- static readonly FAIL_TO_CHECK_DEPLOY_STATUS: () => [string, string];
20
- static readonly CHECK_DEPLOY_STATUS_TIMEOUT: () => [string, string];
21
- static readonly FAIL_TO_RESTART_APP_SERVICE: () => [string, string];
22
- }
23
- export declare class ErrorNameConstant {
24
- static readonly PRECONDITION_ERROR = "PreconditionError";
25
- static readonly MSG_ENDPOINT_UPDATING_ERROR = "MessageEndpointUpdatingError";
26
- static readonly PROVISION_ERROR = "ProvisionError";
27
- static readonly LIST_PUBLISHING_CREDENTIALS_ERROR = "ListPublishingCredentialsError";
28
- static readonly ZIP_DEPLOY_ERROR = "ZipDeployError";
29
- static readonly DEPLOY_STATUS_ERROR = "DeployStatusError";
30
- static readonly DEPLOY_TIMEOUT_ERROR = "DeployTimeoutError";
31
- static readonly RESTART_WEBAPP_ERROR = "RestartWebappError";
32
- }
33
- export declare class AzureOperationCommonConstants {
34
- static readonly msInOneSecond: number;
35
- static readonly zipTimeMSGranularity: number;
36
- static readonly latestTrustMtime: number;
37
- static readonly deployTimeoutInMs: number;
38
- }
39
- export declare class DeployConfigsConstants {
40
- static readonly DEPLOYMENT_FOLDER = ".deployment";
41
- static readonly DEPLOYMENT_INFO_FILE = "deployment.json";
42
- static readonly DEPLOYMENT_ZIP_CACHE_FILE = "deployment.zip";
43
- static readonly FUNC_IGNORE_FILE = ".funcignore";
44
- static readonly GIT_IGNORE_FILE = ".gitignore";
45
- }
46
- //# sourceMappingURL=hostingConstant.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hostingConstant.d.ts","sourceRoot":"","sources":["../../../src/common/azure-hosting/hostingConstant.ts"],"names":[],"mappings":"AAKA,qBAAa,uBAAuB;IAClC,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAiD;IACnF,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAkD;IAClF,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAyD;CAChG;AAED,qBAAa,oBAAoB;IAC/B,gBAAuB,WAAW,OAAO;IACzC,gBAAuB,cAAc,MAAM;CAC5C;AAED,qBAAa,gBAAgB;IAC3B,OAAc,eAAe,eAA2D;IACxF,OAAc,+BAA+B,eACS;IACtD,OAAc,kBAAkB,eAA+D;IAC/F,OAAc,6BAA6B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAGjE;IACF,gBAAuB,+BAA+B,aAAc,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAG3F;IACF,gBAAuB,+BAA+B,aAAc,MAAM,KAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAG3F;IACF,gBAAuB,mCAAmC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAGhF;IACF,gBAAuB,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAGlE;IACF,gBAAuB,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAKxE;IACF,gBAAuB,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAKxE;IACF,gBAAuB,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAGxE;CACH;AAED,qBAAa,iBAAiB;IAC5B,gBAAuB,kBAAkB,uBAAuB;IAChE,gBAAuB,2BAA2B,kCAAkC;IACpF,gBAAuB,eAAe,oBAAoB;IAC1D,gBAAuB,iCAAiC,oCAAoC;IAC5F,gBAAuB,gBAAgB,oBAAoB;IAC3D,gBAAuB,mBAAmB,uBAAuB;IACjE,gBAAuB,oBAAoB,wBAAwB;IACnE,gBAAuB,oBAAoB,wBAAwB;CACpE;AAED,qBAAa,6BAA6B;IACxC,gBAAuB,aAAa,EAAE,MAAM,CAAQ;IACpD,gBAAuB,oBAAoB,EAAE,MAAM,CACD;IAClD,gBAAuB,gBAAgB,EAAE,MAAM,CAAkC;IACjF,gBAAuB,iBAAiB,EAAE,MAAM,CAAkB;CACnE;AAED,qBAAa,sBAAsB;IACjC,gBAAuB,iBAAiB,iBAAiB;IACzD,gBAAuB,oBAAoB,qBAAqB;IAChE,gBAAuB,yBAAyB,oBAAoB;IACpE,gBAAuB,gBAAgB,iBAAiB;IACxD,gBAAuB,eAAe,gBAAgB;CACvD"}
@@ -1,86 +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.DeployConfigsConstants = exports.AzureOperationCommonConstants = exports.ErrorNameConstant = exports.AzureOpsConstant = exports.DeployStatusConstant = exports.AppServiceBicepConstant = void 0;
6
- const localizeUtils_1 = require("../localizeUtils");
7
- class AppServiceBicepConstant {
8
- }
9
- exports.AppServiceBicepConstant = AppServiceBicepConstant;
10
- AppServiceBicepConstant.resourceId = "provisionOutputs.botOutput.value.resourceId";
11
- AppServiceBicepConstant.hostName = "provisionOutputs.botOutput.value.validDomain";
12
- AppServiceBicepConstant.webAppEndpoint = "provisionOutputs.botOutputs.value.botWebAppEndpoint";
13
- class DeployStatusConstant {
14
- }
15
- exports.DeployStatusConstant = DeployStatusConstant;
16
- DeployStatusConstant.RETRY_TIMES = 120; // Timeout: 20 min
17
- DeployStatusConstant.BACKOFF_TIME_S = 10;
18
- class AzureOpsConstant {
19
- }
20
- exports.AzureOpsConstant = AzureOpsConstant;
21
- AzureOpsConstant.TRY_LOGIN_AZURE = () => localizeUtils_1.getLocalizedString("plugin.hosting.LoginToAzure");
22
- AzureOpsConstant.CHECK_OUTPUT_LOG_AND_TRY_TO_FIX = () => localizeUtils_1.getLocalizedString("plugin.hosting.CheckLogAndFix");
23
- AzureOpsConstant.RETRY_CURRENT_STEP = () => localizeUtils_1.getLocalizedString("suggestions.retryTheCurrentStep");
24
- AzureOpsConstant.FAIL_TO_GET_AZURE_CREDENTIALS = () => [
25
- localizeUtils_1.getDefaultString("plugin.hosting.FailRetrieveAzureCredentials"),
26
- localizeUtils_1.getLocalizedString("plugin.hosting.FailRetrieveAzureCredentials"),
27
- ];
28
- AzureOpsConstant.FAIL_TO_UPDATE_MESSAGE_ENDPOINT = (endpoint) => [
29
- localizeUtils_1.getDefaultString("plugin.hosting.FailedUpdateMessageEndpoint", endpoint),
30
- localizeUtils_1.getLocalizedString("plugin.hosting.FailedUpdateMessageEndpoint", endpoint),
31
- ];
32
- AzureOpsConstant.FAIL_TO_PROVISION_SOME_RESOURCE = (resource) => [
33
- localizeUtils_1.getDefaultString("plugin.hosting.FailedToProvision", resource),
34
- localizeUtils_1.getLocalizedString("plugin.hosting.FailedToProvision", resource),
35
- ];
36
- AzureOpsConstant.FAIL_TO_LIST_PUBLISHING_CREDENTIALS = () => [
37
- localizeUtils_1.getDefaultString("plugin.hosting.FailedListPublishingCredentials"),
38
- localizeUtils_1.getLocalizedString("plugin.hosting.FailedListPublishingCredentials"),
39
- ];
40
- AzureOpsConstant.FAIL_TO_DO_ZIP_DEPLOY = () => [
41
- localizeUtils_1.getDefaultString("plugin.hosting.FailedDeployZipFile"),
42
- localizeUtils_1.getLocalizedString("plugin.hosting.FailedDeployZipFile"),
43
- ];
44
- AzureOpsConstant.FAIL_TO_CHECK_DEPLOY_STATUS = () => [
45
- // eslint-disable-next-line no-secrets/no-secrets
46
- localizeUtils_1.getDefaultString("plugin.hosting.FailedCheckDeployStatus"),
47
- // eslint-disable-next-line no-secrets/no-secrets
48
- localizeUtils_1.getLocalizedString("plugin.hosting.FailedCheckDeployStatus"),
49
- ];
50
- AzureOpsConstant.CHECK_DEPLOY_STATUS_TIMEOUT = () => [
51
- // eslint-disable-next-line no-secrets/no-secrets
52
- localizeUtils_1.getDefaultString("plugin.hosting.CheckDeployStatusTimeout"),
53
- // eslint-disable-next-line no-secrets/no-secrets
54
- localizeUtils_1.getLocalizedString("plugin.hosting.CheckDeployStatusTimeout"),
55
- ];
56
- AzureOpsConstant.FAIL_TO_RESTART_APP_SERVICE = () => [
57
- localizeUtils_1.getDefaultString("plugin.hosting.FailedRestartWebApp"),
58
- localizeUtils_1.getLocalizedString("plugin.hosting.FailedRestartWebApp"),
59
- ];
60
- class ErrorNameConstant {
61
- }
62
- exports.ErrorNameConstant = ErrorNameConstant;
63
- ErrorNameConstant.PRECONDITION_ERROR = "PreconditionError";
64
- ErrorNameConstant.MSG_ENDPOINT_UPDATING_ERROR = "MessageEndpointUpdatingError";
65
- ErrorNameConstant.PROVISION_ERROR = "ProvisionError";
66
- ErrorNameConstant.LIST_PUBLISHING_CREDENTIALS_ERROR = "ListPublishingCredentialsError";
67
- ErrorNameConstant.ZIP_DEPLOY_ERROR = "ZipDeployError";
68
- ErrorNameConstant.DEPLOY_STATUS_ERROR = "DeployStatusError";
69
- ErrorNameConstant.DEPLOY_TIMEOUT_ERROR = "DeployTimeoutError";
70
- ErrorNameConstant.RESTART_WEBAPP_ERROR = "RestartWebappError";
71
- class AzureOperationCommonConstants {
72
- }
73
- exports.AzureOperationCommonConstants = AzureOperationCommonConstants;
74
- AzureOperationCommonConstants.msInOneSecond = 1000;
75
- AzureOperationCommonConstants.zipTimeMSGranularity = 2 * AzureOperationCommonConstants.msInOneSecond;
76
- AzureOperationCommonConstants.latestTrustMtime = new Date(2000, 1, 1).getTime();
77
- AzureOperationCommonConstants.deployTimeoutInMs = 10 * 60 * 1000;
78
- class DeployConfigsConstants {
79
- }
80
- exports.DeployConfigsConstants = DeployConfigsConstants;
81
- DeployConfigsConstants.DEPLOYMENT_FOLDER = ".deployment";
82
- DeployConfigsConstants.DEPLOYMENT_INFO_FILE = "deployment.json";
83
- DeployConfigsConstants.DEPLOYMENT_ZIP_CACHE_FILE = "deployment.zip";
84
- DeployConfigsConstants.FUNC_IGNORE_FILE = ".funcignore";
85
- DeployConfigsConstants.GIT_IGNORE_FILE = ".gitignore";
86
- //# sourceMappingURL=hostingConstant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hostingConstant.js","sourceRoot":"","sources":["../../../src/common/azure-hosting/hostingConstant.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,oDAAwE;AAExE,MAAa,uBAAuB;;AAApC,0DAIC;AAHiB,kCAAU,GAAW,6CAA6C,CAAC;AACnE,gCAAQ,GAAW,8CAA8C,CAAC;AAClE,sCAAc,GAAW,qDAAqD,CAAC;AAGjG,MAAa,oBAAoB;;AAAjC,oDAGC;AAFwB,gCAAW,GAAG,GAAG,CAAC,CAAC,kBAAkB;AACrC,mCAAc,GAAG,EAAE,CAAC;AAG7C,MAAa,gBAAgB;;AAA7B,4CAyCC;AAxCe,gCAAe,GAAG,GAAG,EAAE,CAAC,kCAAkB,CAAC,6BAA6B,CAAC,CAAC;AAC1E,gDAA+B,GAAG,GAAG,EAAE,CACnD,kCAAkB,CAAC,+BAA+B,CAAC,CAAC;AACxC,mCAAkB,GAAG,GAAG,EAAE,CAAC,kCAAkB,CAAC,iCAAiC,CAAC,CAAC;AACjF,8CAA6B,GAA2B,GAAG,EAAE,CAAC;IAC1E,gCAAgB,CAAC,6CAA6C,CAAC;IAC/D,kCAAkB,CAAC,6CAA6C,CAAC;CAClE,CAAC;AACqB,gDAA+B,GAAG,CAAC,QAAgB,EAAoB,EAAE,CAAC;IAC/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AAoB,GAAG,oBAAoB,CAAC;AAGrE,MAAa,6BAA6B;;AAA1C,sEAMC;AALwB,2CAAa,GAAW,IAAI,CAAC;AAC7B,kDAAoB,GACzC,CAAC,GAAG,6BAA6B,CAAC,aAAa,CAAC;AAC3B,8CAAgB,GAAW,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;AAC1D,+CAAiB,GAAW,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAGpE,MAAa,sBAAsB;;AAAnC,wDAMC;AALwB,wCAAiB,GAAG,aAAa,CAAC;AAClC,2CAAoB,GAAG,iBAAiB,CAAC;AACzC,gDAAyB,GAAG,gBAAgB,CAAC;AAC7C,uCAAgB,GAAG,aAAa,CAAC;AACjC,sCAAe,GAAG,YAAY,CAAC"}
@@ -1,47 +0,0 @@
1
- export declare type InnerError = HttpError | Error | unknown;
2
- export declare type HttpError = {
3
- response: {
4
- status?: number;
5
- data?: {
6
- errorMessage?: string;
7
- error?: {
8
- code?: string;
9
- message?: string;
10
- };
11
- };
12
- };
13
- };
14
- export declare class CommonHostingError extends Error {
15
- name: string;
16
- details: [string, string];
17
- suggestions: string[];
18
- innerError?: InnerError;
19
- constructor(name: string, details: [string, string], innerError?: InnerError, suggestions?: string[]);
20
- genMessage(): string;
21
- genDisplayMessage(): string;
22
- }
23
- export declare class PreconditionError extends CommonHostingError {
24
- constructor(message: [string, string], suggestions: string[]);
25
- }
26
- export declare class MessageEndpointUpdatingError extends CommonHostingError {
27
- constructor(endpoint: string, innerError?: InnerError);
28
- }
29
- export declare class ProvisionError extends CommonHostingError {
30
- constructor(resource: string, innerError?: InnerError);
31
- }
32
- export declare class ListPublishingCredentialsError extends CommonHostingError {
33
- constructor(innerError?: InnerError);
34
- }
35
- export declare class ZipDeployError extends CommonHostingError {
36
- constructor(innerError?: InnerError);
37
- }
38
- export declare class DeployStatusError extends CommonHostingError {
39
- constructor(innerError?: InnerError);
40
- }
41
- export declare class DeployTimeoutError extends CommonHostingError {
42
- constructor();
43
- }
44
- export declare class RestartWebAppError extends CommonHostingError {
45
- constructor(innerError?: InnerError);
46
- }
47
- //# sourceMappingURL=hostingError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hostingError.d.ts","sourceRoot":"","sources":["../../../src/common/azure-hosting/hostingError.ts"],"names":[],"mappings":"AAMA,oBAAY,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,CAAC;AAErD,oBAAY,SAAS,GAAG;IACtB,QAAQ,EAAE;QACR,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE;YACL,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,KAAK,CAAC,EAAE;gBACN,IAAI,CAAC,EAAE,MAAM,CAAC;gBACd,OAAO,CAAC,EAAE,MAAM,CAAC;aAClB,CAAC;SACH,CAAC;KACH,CAAC;CACH,CAAC;AAEF,qBAAa,kBAAmB,SAAQ,KAAK;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,UAAU,CAAC;gBAG7B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EACzB,UAAU,CAAC,EAAE,UAAU,EACvB,WAAW,CAAC,EAAE,MAAM,EAAE;IAYxB,UAAU,IAAI,MAAM;IAUpB,iBAAiB,IAAI,MAAM;CAU5B;AAED,qBAAa,iBAAkB,SAAQ,kBAAkB;gBAC3C,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE;CAG7D;AAED,qBAAa,4BAA6B,SAAQ,kBAAkB;gBACtD,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,UAAU;CAOtD;AAED,qBAAa,cAAe,SAAQ,kBAAkB;gBACxC,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,UAAU;CAOtD;AAED,qBAAa,8BAA+B,SAAQ,kBAAkB;gBACxD,UAAU,CAAC,EAAE,UAAU;CAOpC;AAED,qBAAa,cAAe,SAAQ,kBAAkB;gBACxC,UAAU,CAAC,EAAE,UAAU;CAGpC;AAED,qBAAa,iBAAkB,SAAQ,kBAAkB;gBAC3C,UAAU,CAAC,EAAE,UAAU;CAOpC;AAED,qBAAa,kBAAmB,SAAQ,kBAAkB;;CAIzD;AAED,qBAAa,kBAAmB,SAAQ,kBAAkB;gBAC5C,UAAU,CAAC,EAAE,UAAU;CAOpC"}
@@ -1,83 +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.RestartWebAppError = exports.DeployTimeoutError = exports.DeployStatusError = exports.ZipDeployError = exports.ListPublishingCredentialsError = exports.ProvisionError = exports.MessageEndpointUpdatingError = exports.PreconditionError = exports.CommonHostingError = void 0;
6
- const localizeUtils_1 = require("../localizeUtils");
7
- const hostingConstant_1 = require("./hostingConstant");
8
- class CommonHostingError extends Error {
9
- constructor(name, details, innerError, suggestions) {
10
- super(details[0]);
11
- this.name = name;
12
- this.details = details;
13
- this.suggestions = suggestions !== null && suggestions !== void 0 ? suggestions : [
14
- hostingConstant_1.AzureOpsConstant.CHECK_OUTPUT_LOG_AND_TRY_TO_FIX(),
15
- hostingConstant_1.AzureOpsConstant.RETRY_CURRENT_STEP(),
16
- ];
17
- this.innerError = innerError;
18
- }
19
- genMessage() {
20
- let msg = `${this.details[0]} `;
21
- if (this.suggestions.length > 0) {
22
- msg += localizeUtils_1.getDefaultString("plugins.common.hosting.ErrorSuggestions", this.suggestions.join(" "));
23
- }
24
- return msg;
25
- }
26
- genDisplayMessage() {
27
- let msg = `${this.details[1]} `;
28
- if (this.suggestions.length > 0) {
29
- msg += localizeUtils_1.getLocalizedString("plugins.common.hosting.ErrorSuggestions", this.suggestions.join(" "));
30
- }
31
- return msg;
32
- }
33
- }
34
- exports.CommonHostingError = CommonHostingError;
35
- class PreconditionError extends CommonHostingError {
36
- constructor(message, suggestions) {
37
- super(hostingConstant_1.ErrorNameConstant.PRECONDITION_ERROR, message, suggestions);
38
- }
39
- }
40
- exports.PreconditionError = PreconditionError;
41
- class MessageEndpointUpdatingError extends CommonHostingError {
42
- constructor(endpoint, innerError) {
43
- super(hostingConstant_1.ErrorNameConstant.MSG_ENDPOINT_UPDATING_ERROR, hostingConstant_1.AzureOpsConstant.FAIL_TO_UPDATE_MESSAGE_ENDPOINT(endpoint), innerError);
44
- }
45
- }
46
- exports.MessageEndpointUpdatingError = MessageEndpointUpdatingError;
47
- class ProvisionError extends CommonHostingError {
48
- constructor(resource, innerError) {
49
- super(hostingConstant_1.ErrorNameConstant.PROVISION_ERROR, hostingConstant_1.AzureOpsConstant.FAIL_TO_PROVISION_SOME_RESOURCE(resource), innerError);
50
- }
51
- }
52
- exports.ProvisionError = ProvisionError;
53
- class ListPublishingCredentialsError extends CommonHostingError {
54
- constructor(innerError) {
55
- super(hostingConstant_1.ErrorNameConstant.LIST_PUBLISHING_CREDENTIALS_ERROR, hostingConstant_1.AzureOpsConstant.FAIL_TO_LIST_PUBLISHING_CREDENTIALS(), innerError);
56
- }
57
- }
58
- exports.ListPublishingCredentialsError = ListPublishingCredentialsError;
59
- class ZipDeployError extends CommonHostingError {
60
- constructor(innerError) {
61
- super(hostingConstant_1.ErrorNameConstant.ZIP_DEPLOY_ERROR, hostingConstant_1.AzureOpsConstant.FAIL_TO_DO_ZIP_DEPLOY(), innerError);
62
- }
63
- }
64
- exports.ZipDeployError = ZipDeployError;
65
- class DeployStatusError extends CommonHostingError {
66
- constructor(innerError) {
67
- super(hostingConstant_1.ErrorNameConstant.DEPLOY_STATUS_ERROR, hostingConstant_1.AzureOpsConstant.FAIL_TO_CHECK_DEPLOY_STATUS(), innerError);
68
- }
69
- }
70
- exports.DeployStatusError = DeployStatusError;
71
- class DeployTimeoutError extends CommonHostingError {
72
- constructor() {
73
- super(hostingConstant_1.ErrorNameConstant.DEPLOY_TIMEOUT_ERROR, hostingConstant_1.AzureOpsConstant.CHECK_DEPLOY_STATUS_TIMEOUT());
74
- }
75
- }
76
- exports.DeployTimeoutError = DeployTimeoutError;
77
- class RestartWebAppError extends CommonHostingError {
78
- constructor(innerError) {
79
- super(hostingConstant_1.ErrorNameConstant.RESTART_WEBAPP_ERROR, hostingConstant_1.AzureOpsConstant.FAIL_TO_RESTART_APP_SERVICE(), innerError);
80
- }
81
- }
82
- exports.RestartWebAppError = RestartWebAppError;
83
- //# sourceMappingURL=hostingError.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hostingError.js","sourceRoot":"","sources":["../../../src/common/azure-hosting/hostingError.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,oDAAwE;AACxE,uDAAwE;AAiBxE,MAAa,kBAAmB,SAAQ,KAAK;IAM3C,YACE,IAAY,EACZ,OAAyB,EACzB,UAAuB,EACvB,WAAsB;QAEtB,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,WAAW,GAAG,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI;YAChC,kCAAgB,CAAC,+BAA+B,EAAE;YAClD,kCAAgB,CAAC,kBAAkB,EAAE;SACtC,CAAC;QACF,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,UAAU;QACR,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;QAChC,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;YAC/B,GAAG,IAAI,gCAAgB,CACrB,yCAAyC,EACzC,IAAI,CAAC,WAA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AK,CAAC,mCAAiB,CAAC,gBAAgB,EAAE,kCAAgB,CAAC,qBAAqB,EAAE,EAAE,UAAU,CAAC,CAAC;IAClG,CAAC;CACF;AAJD,wCAIC;AAED,MAAa,iBAAkB,SAAQ,kBAAkB;IACvD,YAAY,UAAuB;QACjC,KAAK,CACH,mCAAiB,CAAC,mBAAmB,EACrC,kCAAgB,CAAC,2BAA2B,EAAE,EAC9C,UAAU,CACX,CAAC;IACJ,CAAC;CACF;AARD,8CAQC;AAED,MAAa,kBAAmB,SAAQ,kBAAkB;IACxD;QACE,KAAK,CAAC,mCAAiB,CAAC,oBAAoB,EAAE,kCAAgB,CAAC,2BAA2B,EAAE,CAAC,CAAC;IAChG,CAAC;CACF;AAJD,gDAIC;AAED,MAAa,kBAAmB,SAAQ,kBAAkB;IACxD,YAAY,UAAuB;QACjC,KAAK,CACH,mCAAiB,CAAC,oBAAoB,EACtC,kCAAgB,CAAC,2BAA2B,EAAE,EAC9C,UAAU,CACX,CAAC;IACJ,CAAC;CACF;AARD,gDAQC"}
@@ -1,6 +0,0 @@
1
- import { AzureHosting } from "./azureHosting";
2
- import { ServiceType } from "./interfaces";
3
- export declare class AzureHostingFactory {
4
- static createHosting(serviceType: ServiceType): AzureHosting;
5
- }
6
- //# sourceMappingURL=hostingFactory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hostingFactory.d.ts","sourceRoot":"","sources":["../../../src/common/azure-hosting/hostingFactory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAQ3C,qBAAa,mBAAmB;IAC9B,MAAM,CAAC,aAAa,CAAC,WAAW,EAAE,WAAW,GAAG,YAAY;CAO7D"}
@@ -1,22 +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.AzureHostingFactory = void 0;
6
- const azureFunctionHosting_1 = require("./azureFunctionHosting");
7
- const interfaces_1 = require("./interfaces");
8
- const azureAppServiceHosting_1 = require("./azureAppServiceHosting");
9
- const HostingMap = {
10
- [interfaces_1.ServiceType.Functions]: () => new azureFunctionHosting_1.AzureFunctionHosting(),
11
- [interfaces_1.ServiceType.AppService]: () => new azureAppServiceHosting_1.AzureAppServiceHosting(),
12
- };
13
- class AzureHostingFactory {
14
- static createHosting(serviceType) {
15
- if (HostingMap[serviceType] !== undefined) {
16
- return HostingMap[serviceType]();
17
- }
18
- throw new Error(`Host type '${serviceType}' is not supported.`);
19
- }
20
- }
21
- exports.AzureHostingFactory = AzureHostingFactory;
22
- //# sourceMappingURL=hostingFactory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hostingFactory.js","sourceRoot":"","sources":["../../../src/common/azure-hosting/hostingFactory.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iEAA8D;AAE9D,6CAA2C;AAC3C,qEAAkE;AAElE,MAAM,UAAU,GAA0C;IACxD,CAAC,wBAAW,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,2CAAoB,EAAE;IACzD,CAAC,wBAAW,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,+CAAsB,EAAE;CAC7D,CAAC;AAEF,MAAa,mBAAmB;IAC9B,MAAM,CAAC,aAAa,CAAC,WAAwB;QAC3C,IAAI,UAAU,CAAC,WAAW,CAAC,KAAK,SAAS,EAAE;YACzC,OAAO,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;SAClC;QAED,MAAM,IAAI,KAAK,CAAC,cAAc,WAAW,qBAAqB,CAAC,CAAC;IAClE,CAAC;CACF;AARD,kDAQC"}
@@ -1,58 +0,0 @@
1
- export declare enum ServiceType {
2
- AppService = "webapp",
3
- Functions = "function",
4
- BotService = "botservice"
5
- }
6
- export declare type BicepConfigs = string[];
7
- export declare type BicepContext = {
8
- plugins: string[];
9
- configs: BicepConfigs;
10
- moduleNames: {
11
- [key: string]: string;
12
- };
13
- moduleAlias: string;
14
- pluginId: string;
15
- };
16
- export declare type HandlebarsContext = {
17
- plugins: string[];
18
- configs: BicepConfigs;
19
- moduleName: string;
20
- moduleNameCapitalized: string;
21
- moduleAlias: string;
22
- pluginId: string;
23
- };
24
- export declare type AzureUploadConfig = {
25
- headers: {
26
- "Content-Type"?: string;
27
- "Cache-Control"?: string;
28
- Authorization: string;
29
- };
30
- maxContentLength: number;
31
- maxBodyLength: number;
32
- timeout: number;
33
- };
34
- export declare type AzurePublishingCredentials = {
35
- publishingUserName?: string;
36
- publishingPassword?: string;
37
- } & AxiosResponseWithStatusResult;
38
- export declare type AxiosOnlyStatusResult = {
39
- status?: number;
40
- };
41
- export declare type AxiosResponseWithStatusResult = {
42
- _response: {
43
- status: number;
44
- };
45
- };
46
- export declare type AxiosHeaderWithLocation = {
47
- headers: {
48
- location: string;
49
- };
50
- };
51
- export declare type AxiosZipDeployResult = AxiosHeaderWithLocation & AxiosOnlyStatusResult;
52
- export interface Logger {
53
- debug?: (message: string) => void;
54
- info?: (message: string) => void;
55
- warning?: (message: string) => void;
56
- error?: (message: string) => void;
57
- }
58
- //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/common/azure-hosting/interfaces.ts"],"names":[],"mappings":"AAGA,oBAAY,WAAW;IACrB,UAAU,WAAW;IACrB,SAAS,aAAa;IACtB,UAAU,eAAe;CAC1B;AAED,oBAAY,YAAY,GAAG,MAAM,EAAE,CAAC;AAEpC,oBAAY,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,YAAY,CAAC;IACtB,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAA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,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC"}
@@ -1,12 +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.ServiceType = void 0;
6
- var ServiceType;
7
- (function (ServiceType) {
8
- ServiceType["AppService"] = "webapp";
9
- ServiceType["Functions"] = "function";
10
- ServiceType["BotService"] = "botservice";
11
- })(ServiceType = exports.ServiceType || (exports.ServiceType = {}));
12
- //# sourceMappingURL=interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/common/azure-hosting/interfaces.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,qCAAsB,CAAA;IACtB,wCAAyB,CAAA;AAC3B,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB"}