@microsoft/teamsfx-core 1.2.1 → 1.2.2-alpha.01a113d2.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.
- package/build/common/armInterface.d.ts +0 -20
- package/build/common/armInterface.d.ts.map +1 -1
- package/build/common/deps-checker/constant/message.d.ts +0 -1
- package/build/common/deps-checker/constant/message.d.ts.map +1 -1
- package/build/common/deps-checker/constant/message.js +0 -4
- package/build/common/deps-checker/constant/message.js.map +1 -1
- package/build/common/deps-checker/depsChecker.d.ts +1 -0
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.js.map +1 -1
- package/build/common/deps-checker/depsManager.d.ts +2 -1
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +12 -7
- package/build/common/deps-checker/depsManager.js.map +1 -1
- package/build/common/deps-checker/index.d.ts +1 -0
- package/build/common/deps-checker/index.d.ts.map +1 -1
- package/build/common/deps-checker/index.js +1 -0
- package/build/common/deps-checker/index.js.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.js +2 -1
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js +2 -1
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.js +2 -4
- package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts +1 -0
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +9 -1
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/deps-checker/util/extensionInstaller.d.ts +3 -0
- package/build/common/deps-checker/util/extensionInstaller.d.ts.map +1 -0
- package/build/common/deps-checker/util/extensionInstaller.js +47 -0
- package/build/common/deps-checker/util/extensionInstaller.js.map +1 -0
- package/build/common/deps-checker/util/index.d.ts +5 -0
- package/build/common/deps-checker/util/index.d.ts.map +1 -0
- package/build/common/deps-checker/util/index.js +10 -0
- package/build/common/deps-checker/util/index.js.map +1 -0
- package/build/common/index.d.ts +1 -3
- package/build/common/index.d.ts.map +1 -1
- package/build/common/index.js +1 -3
- package/build/common/index.js.map +1 -1
- package/build/common/local/constants.d.ts +5 -0
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +7 -1
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/index.d.ts +6 -0
- package/build/common/local/index.d.ts.map +1 -0
- package/build/common/local/index.js +11 -0
- package/build/common/local/index.js.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util/certificate.d.ts → common/local/localCertificateManager.d.ts} +4 -6
- package/build/common/local/localCertificateManager.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util/certificate.js → common/local/localCertificateManager.js} +37 -47
- package/build/common/local/localCertificateManager.js.map +1 -0
- package/build/common/local/localEnvManager.d.ts +6 -2
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +41 -1
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/common/local/packageJsonHelper.d.ts +1 -0
- package/build/common/local/packageJsonHelper.d.ts.map +1 -1
- package/build/common/local/packageJsonHelper.js +29 -1
- package/build/common/local/packageJsonHelper.js.map +1 -1
- package/build/common/local/portChecker.d.ts.map +1 -1
- package/build/common/local/portChecker.js +18 -48
- package/build/common/local/portChecker.js.map +1 -1
- package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.d.ts +0 -0
- package/build/common/local/process.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.js +0 -0
- package/build/common/local/process.js.map +1 -0
- package/build/common/local/projectSettingsHelper.d.ts +5 -5
- package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/local/projectSettingsHelper.js +28 -21
- package/build/common/local/projectSettingsHelper.js.map +1 -1
- package/build/common/local/taskDefinition.d.ts +1 -1
- package/build/common/local/taskDefinition.d.ts.map +1 -1
- package/build/common/local/taskDefinition.js +7 -5
- package/build/common/local/taskDefinition.js.map +1 -1
- package/build/common/localSettingsConstants.d.ts +1 -0
- package/build/common/localSettingsConstants.d.ts.map +1 -1
- package/build/common/localSettingsConstants.js +1 -0
- package/build/common/localSettingsConstants.js.map +1 -1
- package/build/common/localSettingsProvider.d.ts.map +1 -1
- package/build/common/localSettingsProvider.js +1 -0
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/permissionInterface.d.ts +2 -0
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +2 -0
- package/build/common/permissionInterface.js.map +1 -1
- package/build/common/samples-config.json +24 -12
- package/build/common/samples.d.ts +1 -0
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +1 -0
- package/build/common/samples.js.map +1 -1
- package/build/common/telemetry.d.ts +7 -2
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +10 -4
- package/build/common/telemetry.js.map +1 -1
- package/build/common/{templates.d.ts → template-utils/templates.d.ts} +0 -0
- package/build/common/template-utils/templates.d.ts.map +1 -0
- package/build/common/{templates.js → template-utils/templates.js} +1 -1
- package/build/common/template-utils/templates.js.map +1 -0
- package/build/common/{templatesActions.d.ts → template-utils/templatesActions.d.ts} +0 -0
- package/build/common/template-utils/templatesActions.d.ts.map +1 -0
- package/build/common/{templatesActions.js → template-utils/templatesActions.js} +3 -3
- package/build/common/template-utils/templatesActions.js.map +1 -0
- package/build/common/{templatesUtils.d.ts → template-utils/templatesUtils.d.ts} +0 -0
- package/build/common/template-utils/templatesUtils.d.ts.map +1 -0
- package/build/common/{templatesUtils.js → template-utils/templatesUtils.js} +1 -1
- package/build/common/template-utils/templatesUtils.js.map +1 -0
- package/build/common/templates-config.json +1 -1
- package/build/common/tools.d.ts +1 -4
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +41 -12
- package/build/common/tools.js.map +1 -1
- package/build/core/index.d.ts +2 -2
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +14 -3
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/errorHandler.js +2 -1
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/projectMigrator.d.ts.map +1 -1
- package/build/core/middleware/projectMigrator.js +1 -11
- package/build/core/middleware/projectMigrator.js.map +1 -1
- package/build/core/permissionRequest.js +2 -2
- package/build/core/permissionRequest.js.map +1 -1
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +7 -4
- package/build/core/question.js.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.d.ts +2 -2
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +3 -4
- package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
- package/build/plugins/resource/aad/errors.d.ts.map +1 -1
- package/build/plugins/resource/aad/errors.js +1 -2
- package/build/plugins/resource/aad/errors.js.map +1 -1
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts +4 -0
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +33 -46
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/common.d.ts +2 -0
- package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/common.js +14 -14
- package/build/plugins/resource/aad/utils/common.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts +1 -0
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +20 -38
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/aad/v2/index.d.ts +2 -2
- package/build/plugins/resource/aad/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/v2/index.js +2 -1
- package/build/plugins/resource/aad/v2/index.js.map +1 -1
- package/build/plugins/resource/apim/error.d.ts.map +1 -1
- package/build/plugins/resource/apim/error.js +1 -4
- package/build/plugins/resource/apim/error.js.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.js +23 -62
- package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.js +0 -7
- package/build/plugins/resource/apim/managers/questionManager.js.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.js +6 -13
- package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
- package/build/plugins/resource/apim/v2/index.d.ts +2 -2
- package/build/plugins/resource/apim/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/v2/index.js +2 -1
- package/build/plugins/resource/apim/v2/index.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +5 -2
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +82 -11
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts +2 -36
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +1 -31
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.js +18 -10
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +1 -0
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +14 -1
- package/build/plugins/resource/appstudio/plugin.js.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.d.ts +2 -2
- package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.js +2 -1
- package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts +1 -3
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.js +42 -16
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.d.ts.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.js +0 -10
- package/build/plugins/resource/bot/configs/provisionConfig.js.map +1 -1
- package/build/plugins/resource/bot/dotnet/constants.d.ts +5 -0
- package/build/plugins/resource/bot/dotnet/constants.d.ts.map +1 -0
- package/build/plugins/resource/bot/dotnet/constants.js +13 -0
- package/build/plugins/resource/bot/dotnet/constants.js.map +1 -0
- package/build/plugins/resource/bot/dotnet/plugin.d.ts +14 -0
- package/build/plugins/resource/bot/dotnet/plugin.d.ts.map +1 -0
- package/build/plugins/resource/bot/dotnet/plugin.js +62 -0
- package/build/plugins/resource/bot/dotnet/plugin.js.map +1 -0
- package/build/plugins/resource/bot/index.d.ts +5 -0
- package/build/plugins/resource/bot/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/index.js +23 -13
- package/build/plugins/resource/bot/index.js.map +1 -1
- package/build/plugins/resource/bot/interface.d.ts +16 -0
- package/build/plugins/resource/bot/interface.d.ts.map +1 -0
- package/build/plugins/resource/bot/interface.js +5 -0
- package/build/plugins/resource/bot/interface.js.map +1 -0
- package/build/plugins/resource/bot/languageStrategy.d.ts +1 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.js +1 -1
- package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
- package/build/plugins/resource/bot/plugin.d.ts +2 -1
- package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/plugin.js +16 -135
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/bot/v2/index.d.ts +2 -2
- package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/v2/index.js +2 -1
- package/build/plugins/resource/bot/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/configs.d.ts +1 -1
- package/build/plugins/resource/frontend/configs.d.ts.map +1 -1
- package/build/plugins/resource/frontend/configs.js +3 -9
- package/build/plugins/resource/frontend/configs.js.map +1 -1
- package/build/plugins/resource/frontend/constants.d.ts +2 -8
- package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/constants.js +3 -11
- package/build/plugins/resource/frontend/constants.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/constants.d.ts +56 -0
- package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/constants.js +73 -0
- package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/enum.js +39 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts +0 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js +3 -3
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts +0 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js +3 -3
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +34 -0
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js +124 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +35 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/errors.js +10 -22
- package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.d.ts +0 -4
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.js +0 -4
- package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts +6 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js +11 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js.map +1 -0
- package/build/plugins/resource/frontend/index.d.ts +6 -3
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +27 -45
- package/build/plugins/resource/frontend/index.js.map +1 -1
- package/build/plugins/resource/frontend/interface.d.ts +13 -0
- package/build/plugins/resource/frontend/interface.d.ts.map +1 -0
- package/build/plugins/resource/frontend/interface.js +5 -0
- package/build/plugins/resource/frontend/interface.js.map +1 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts +3 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +43 -0
- package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts +3 -3
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +15 -47
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.d.ts +23 -20
- package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.js +31 -67
- package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
- package/build/plugins/resource/frontend/utils/logger.d.ts +3 -1
- package/build/plugins/resource/frontend/utils/logger.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/logger.js +9 -6
- package/build/plugins/resource/frontend/utils/logger.js.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts +0 -8
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js +1 -19
- package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/frontend/v2/index.d.ts +3 -2
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js +5 -1
- package/build/plugins/resource/frontend/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts +15 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js +149 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js.map +1 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts +8 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js +95 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js.map +1 -0
- package/build/plugins/resource/frontend/v3/error.d.ts +23 -0
- package/build/plugins/resource/frontend/v3/error.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/error.js +66 -0
- package/build/plugins/resource/frontend/v3/error.js.map +1 -0
- package/build/plugins/resource/frontend/v3/index.d.ts +3 -0
- package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/index.js +7 -0
- package/build/plugins/resource/frontend/v3/index.js.map +1 -0
- package/build/plugins/resource/function/index.d.ts +1 -1
- package/build/plugins/resource/function/index.d.ts.map +1 -1
- package/build/plugins/resource/function/index.js +8 -21
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/function/ops/deploy.js +8 -9
- package/build/plugins/resource/function/ops/deploy.js.map +1 -1
- package/build/plugins/resource/function/ops/scaffold.js +1 -1
- package/build/plugins/resource/function/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/function/plugin.d.ts.map +1 -1
- package/build/plugins/resource/function/plugin.js +35 -138
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/function/resources/message.d.ts +0 -1
- package/build/plugins/resource/function/resources/message.d.ts.map +1 -1
- package/build/plugins/resource/function/resources/message.js +0 -1
- package/build/plugins/resource/function/resources/message.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +11 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js +48 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js.map +1 -0
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts +6 -4
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js +15 -8
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts +4 -3
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js +5 -4
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js.map +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts.map +1 -1
- package/build/plugins/resource/function/v2/index.d.ts +2 -2
- package/build/plugins/resource/function/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/function/v2/index.js +2 -1
- package/build/plugins/resource/function/v2/index.js.map +1 -1
- package/build/plugins/resource/identity/index.d.ts +0 -1
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +3 -22
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/identity/v2/index.d.ts +2 -2
- package/build/plugins/resource/identity/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/v2/index.js +2 -1
- package/build/plugins/resource/identity/v2/index.js.map +1 -1
- package/build/plugins/resource/keyvault/plugin.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/plugin.js +1 -2
- package/build/plugins/resource/keyvault/plugin.js.map +1 -1
- package/build/plugins/resource/keyvault/v2/index.d.ts +2 -2
- package/build/plugins/resource/keyvault/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/v2/index.js +2 -1
- package/build/plugins/resource/keyvault/v2/index.js.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.d.ts +2 -2
- package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.js +2 -1
- package/build/plugins/resource/localdebug/v2/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/index.js +6 -11
- package/build/plugins/resource/simpleauth/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.js +2 -7
- package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
- package/build/plugins/resource/simpleauth/v2/index.d.ts +2 -2
- package/build/plugins/resource/simpleauth/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/v2/index.js +2 -1
- package/build/plugins/resource/simpleauth/v2/index.js.map +1 -1
- package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
- package/build/plugins/resource/spfx/plugin.js +14 -9
- package/build/plugins/resource/spfx/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.d.ts +5 -4
- package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.js +5 -4
- package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/spfx/v2/index.d.ts +2 -2
- package/build/plugins/resource/spfx/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/spfx/v2/index.js +2 -1
- package/build/plugins/resource/spfx/v2/index.js.map +1 -1
- package/build/plugins/resource/sql/config.d.ts +1 -0
- package/build/plugins/resource/sql/config.d.ts.map +1 -1
- package/build/plugins/resource/sql/config.js +1 -0
- package/build/plugins/resource/sql/config.js.map +1 -1
- package/build/plugins/resource/sql/constants.d.ts +3 -0
- package/build/plugins/resource/sql/constants.d.ts.map +1 -1
- package/build/plugins/resource/sql/constants.js +3 -0
- package/build/plugins/resource/sql/constants.js.map +1 -1
- package/build/plugins/resource/sql/errors.d.ts +1 -1
- package/build/plugins/resource/sql/errors.d.ts.map +1 -1
- package/build/plugins/resource/sql/errors.js +1 -1
- package/build/plugins/resource/sql/errors.js.map +1 -1
- package/build/plugins/resource/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +11 -11
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/managementClient.js +14 -14
- package/build/plugins/resource/sql/managementClient.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts +3 -0
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +76 -68
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts +2 -2
- package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/sqlClient.js +13 -12
- package/build/plugins/resource/sql/sqlClient.js.map +1 -1
- package/build/plugins/resource/sql/v2/index.d.ts +2 -2
- package/build/plugins/resource/sql/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/v2/index.js +2 -1
- package/build/plugins/resource/sql/v2/index.js.map +1 -1
- package/build/plugins/resource/utils4v2.d.ts +1 -1
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +3 -3
- package/build/plugins/resource/utils4v2.js.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts +3 -3
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +3 -3
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +9 -2
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +44 -13
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts +4 -3
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +11 -10
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +1 -0
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +1 -0
- package/build/plugins/solution/fx-solution/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.d.ts +0 -5
- package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.js +1 -7
- package/build/plugins/solution/fx-solution/debug/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js +6 -4
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +2 -2
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.js +5 -3
- package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts +2 -2
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +32 -22
- package/build/plugins/solution/fx-solution/question.js.map +1 -1
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +15 -15
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts +31 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js +222 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/adaptor.js +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/checkPermission.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/checkPermission.js +1 -2
- package/build/plugins/solution/fx-solution/v2/checkPermission.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.js +1 -3
- package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.js +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +196 -122
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +9 -16
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.js +84 -99
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/grantPermission.js +1 -2
- package/build/plugins/solution/fx-solution/v2/grantPermission.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/listCollaborator.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/listCollaborator.js +6 -1
- package/build/plugins/solution/fx-solution/v2/listCollaborator.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/publish.js +1 -1
- package/build/plugins/solution/fx-solution/v2/publish.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.js +16 -2
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.d.ts +3 -3
- package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +7 -5
- package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts +2 -4
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addModule.js +29 -6
- package/build/plugins/solution/fx-solution/v3/addModule.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts +6 -14
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.js +23 -51
- package/build/plugins/solution/fx-solution/v3/addResource.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.d.ts +2 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.js +2 -0
- package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts +1 -3
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/init.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/init.js +9 -0
- package/build/plugins/solution/fx-solution/v3/init.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts +8 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.js +219 -16
- package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js +96 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +8 -13
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.js +30 -52
- package/build/plugins/solution/fx-solution/v3/scaffold.js.map +1 -1
- package/build/plugins/solution/spfx-solution/addModule.d.ts +2 -4
- package/build/plugins/solution/spfx-solution/addModule.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/addModule.js +1 -1
- package/build/plugins/solution/spfx-solution/addModule.js.map +1 -1
- package/build/plugins/solution/spfx-solution/scaffold.d.ts +2 -10
- package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/scaffold.js +3 -39
- package/build/plugins/solution/spfx-solution/scaffold.js.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.d.ts +12 -17
- package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.js +7 -7
- package/build/plugins/solution/spfx-solution/solution.js.map +1 -1
- package/package.json +14 -9
- package/resource/strings.json +23 -8
- package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +1 -0
- package/templates/plugins/resource/apim/bicep/apimProvision.bicep +7 -5
- package/templates/plugins/resource/apim/bicep/config.template.bicep +1 -0
- package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +12 -12
- package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +15 -11
- package/templates/plugins/resource/bot/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/botservice/bicep/botServiceProvision.template.bicep +34 -0
- package/templates/plugins/resource/botservice/bicep/parameters.json +4 -0
- package/templates/plugins/resource/botservice/bicep/provision.template.bicep +13 -0
- package/templates/plugins/resource/frontend/bicep/frontendHostingProvision.bicep +4 -2
- package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -0
- package/templates/plugins/resource/function/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +15 -15
- package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +17 -14
- package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +2 -1
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +9 -7
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +7 -7
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +9 -6
- package/templates/plugins/resource/sql/bicep/newDatabase.orchestration.template.bicep +5 -0
- package/templates/plugins/resource/sql/bicep/newDatabaseProvision.template.bicep +15 -0
- package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +9 -5
- package/templates/plugins/resource/storage/bicep/azureStorageProvision.bicep +25 -0
- package/templates/plugins/resource/storage/bicep/provision.template.bicep +15 -0
- package/templates/plugins/resource/webapp/bicep/config.template.bicep +10 -0
- package/templates/plugins/resource/webapp/bicep/provision.template.bicep +16 -0
- package/templates/plugins/resource/webapp/bicep/webappConfiguration.template.bicep +74 -0
- package/templates/plugins/resource/webapp/bicep/webappProvision.template.bicep +48 -0
- package/build/common/templates.d.ts.map +0 -1
- package/build/common/templates.js.map +0 -1
- package/build/common/templatesActions.d.ts.map +0 -1
- package/build/common/templatesActions.js.map +0 -1
- package/build/common/templatesUtils.d.ts.map +0 -1
- package/build/common/templatesUtils.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/constants.d.ts +0 -75
- package/build/plugins/resource/frontend/blazor/constants.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/constants.js +0 -98
- package/build/plugins/resource/frontend/blazor/constants.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/enum.js +0 -39
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts +0 -8
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/ops/provision.js +0 -42
- package/build/plugins/resource/frontend/blazor/ops/provision.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.d.ts +0 -35
- package/build/plugins/resource/frontend/blazor/plugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.js +0 -190
- package/build/plugins/resource/frontend/blazor/plugin.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts +0 -41
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts +0 -21
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js +0 -47
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.d.ts +0 -12
- package/build/plugins/resource/frontend/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.js +0 -29
- package/build/plugins/resource/frontend/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts +0 -9
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js +0 -55
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts +0 -54
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.js +0 -104
- package/build/plugins/resource/function/utils/depsChecker/checker.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts +0 -84
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/common.js +0 -136
- package/build/plugins/resource/function/utils/depsChecker/common.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts +0 -22
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.js +0 -105
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts +0 -53
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js +0 -387
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/errors.d.ts +0 -14
- package/build/plugins/resource/function/utils/depsChecker/errors.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/errors.js +0 -41
- package/build/plugins/resource/function/utils/depsChecker/errors.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts +0 -26
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js +0 -111
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/certificate.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/certificate.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/process.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/process.js.map +0 -1
- package/resource/plugins/resource/function/dotnet-install.ps1 +0 -1095
- package/resource/plugins/resource/function/dotnet-install.sh +0 -1222
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BlazorPluginImpl = 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 constants_1 = require("./constants");
|
|
9
|
-
const messages_1 = require("./resources/messages");
|
|
10
|
-
const uuid_1 = require("uuid");
|
|
11
|
-
const Provision = tslib_1.__importStar(require("./ops/provision"));
|
|
12
|
-
const azure_client_1 = require("./utils/azure-client");
|
|
13
|
-
const enum_1 = require("./enum");
|
|
14
|
-
const errors_1 = require("./resources/errors");
|
|
15
|
-
const Deploy = tslib_1.__importStar(require("./ops/deploy"));
|
|
16
|
-
const logger_1 = require("../utils/logger");
|
|
17
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
18
|
-
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
19
|
-
const __1 = require("../../../..");
|
|
20
|
-
class BlazorPluginImpl {
|
|
21
|
-
constructor() {
|
|
22
|
-
this.config = {};
|
|
23
|
-
}
|
|
24
|
-
syncConfigFromContext(ctx) {
|
|
25
|
-
const solutionConfig = ctx.envInfo.state.get(constants_1.DependentPluginInfo.solutionPluginName);
|
|
26
|
-
this.config.resourceGroupName = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.resourceGroupName);
|
|
27
|
-
this.config.subscriptionId = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.subscriptionId);
|
|
28
|
-
this.config.resourceNameSuffix = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.resourceNameSuffix);
|
|
29
|
-
this.config.location = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.location);
|
|
30
|
-
this.config.webAppName = ctx.config.get(constants_1.BlazorConfigInfo.webAppName);
|
|
31
|
-
this.config.appServicePlanName = ctx.config.get(constants_1.BlazorConfigInfo.appServicePlanName);
|
|
32
|
-
this.config.projectFilePath = ctx.config.get(constants_1.BlazorConfigInfo.projectFilePath);
|
|
33
|
-
// Resource id priors to other configs
|
|
34
|
-
const webAppResourceId = ctx.config.get(enum_1.BlazorConfigKey.webAppResourceId);
|
|
35
|
-
if (webAppResourceId) {
|
|
36
|
-
this.config.webAppResourceId = webAppResourceId;
|
|
37
|
-
this.config.resourceGroupName = __1.getResourceGroupNameFromResourceId(webAppResourceId);
|
|
38
|
-
this.config.webAppName = __1.getSiteNameFromResourceId(webAppResourceId);
|
|
39
|
-
this.config.subscriptionId = __1.getSubscriptionIdFromResourceId(webAppResourceId);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
syncConfigToContext(ctx) {
|
|
43
|
-
Object.entries(this.config)
|
|
44
|
-
.filter((kv) => constants_1.BlazorPluginInfo.persistentConfig.find((x) => x === kv[0] && kv[1]))
|
|
45
|
-
.forEach((kv) => ctx.config.set(kv[0], kv[1]));
|
|
46
|
-
}
|
|
47
|
-
checkAndGet(v, key) {
|
|
48
|
-
if (v) {
|
|
49
|
-
return v;
|
|
50
|
-
}
|
|
51
|
-
throw new errors_1.FetchConfigError(key);
|
|
52
|
-
}
|
|
53
|
-
isPluginEnabled(ctx, plugin) {
|
|
54
|
-
var _a;
|
|
55
|
-
const selectedPlugins = ((_a = ctx.projectSettings) === null || _a === void 0 ? void 0 : _a.solutionSettings)
|
|
56
|
-
.activeResourcePlugins;
|
|
57
|
-
return selectedPlugins.includes(plugin);
|
|
58
|
-
}
|
|
59
|
-
async preProvision(ctx) {
|
|
60
|
-
var _a, _b, _c, _d;
|
|
61
|
-
var _e, _f;
|
|
62
|
-
this.syncConfigFromContext(ctx);
|
|
63
|
-
const teamsAppName = this.checkAndGet((_a = ctx.projectSettings) === null || _a === void 0 ? void 0 : _a.appName, enum_1.BlazorConfigKey.teamsAppName);
|
|
64
|
-
const suffix = (_b = this.config.resourceNameSuffix) !== null && _b !== void 0 ? _b : uuid_1.v4().substr(0, 6);
|
|
65
|
-
(_c = (_e = this.config).webAppName) !== null && _c !== void 0 ? _c : (_e.webAppName = Provision.generateWebAppName(teamsAppName, constants_1.BlazorPluginInfo.alias, suffix));
|
|
66
|
-
(_d = (_f = this.config).appServicePlanName) !== null && _d !== void 0 ? _d : (_f.appServicePlanName = this.config.webAppName);
|
|
67
|
-
this.syncConfigToContext(ctx);
|
|
68
|
-
return teamsfx_api_1.ok(undefined);
|
|
69
|
-
}
|
|
70
|
-
async provision(ctx) {
|
|
71
|
-
var _a;
|
|
72
|
-
logger_1.Logger.info(messages_1.Messages.StartProvision(constants_1.BlazorPluginInfo.displayName));
|
|
73
|
-
// TODO: const progressHandler = await ProgressHelper.startProvisionProgressHandler(ctx);
|
|
74
|
-
this.syncConfigFromContext(ctx);
|
|
75
|
-
const resourceGroupName = this.checkAndGet(this.config.resourceGroupName, enum_1.BlazorConfigKey.resourceGroupName);
|
|
76
|
-
const subscriptionId = this.checkAndGet(this.config.subscriptionId, enum_1.BlazorConfigKey.subscriptionId);
|
|
77
|
-
const location = this.checkAndGet(this.config.location, enum_1.BlazorConfigKey.location);
|
|
78
|
-
const appServicePlanName = this.checkAndGet(this.config.appServicePlanName, enum_1.BlazorConfigKey.appServicePlanName);
|
|
79
|
-
const webAppName = this.checkAndGet(this.config.webAppName, enum_1.BlazorConfigKey.webAppName);
|
|
80
|
-
const credential = this.checkAndGet(await ((_a = ctx.azureAccountProvider) === null || _a === void 0 ? void 0 : _a.getAccountCredentialAsync()), enum_1.BlazorConfigKey.credential);
|
|
81
|
-
const client = azure_client_1.AzureClientFactory.getWebSiteManagementClient(credential, subscriptionId);
|
|
82
|
-
const appServicePlanId = await Provision.ensureAppServicePlan(client, resourceGroupName, appServicePlanName, location);
|
|
83
|
-
const site = await Provision.ensureWebApp(client, resourceGroupName, location, webAppName, appServicePlanId);
|
|
84
|
-
this.config.site = site;
|
|
85
|
-
if (!this.config.endpoint) {
|
|
86
|
-
this.config.endpoint = `https://${site.defaultHostName}`;
|
|
87
|
-
this.config.domain = site.defaultHostName;
|
|
88
|
-
}
|
|
89
|
-
this.syncConfigToContext(ctx);
|
|
90
|
-
// TODO: await ProgressHelper.endProvisionProgress(true);
|
|
91
|
-
logger_1.Logger.info(messages_1.Messages.EndProvision(constants_1.BlazorPluginInfo.displayName));
|
|
92
|
-
return teamsfx_api_1.ok(undefined);
|
|
93
|
-
}
|
|
94
|
-
async postProvision(ctx) {
|
|
95
|
-
var _a;
|
|
96
|
-
if (__1.isArmSupportEnabled()) {
|
|
97
|
-
return teamsfx_api_1.ok(undefined);
|
|
98
|
-
}
|
|
99
|
-
this.syncConfigFromContext(ctx);
|
|
100
|
-
const resourceGroupName = this.checkAndGet(this.config.resourceGroupName, enum_1.BlazorConfigKey.resourceGroupName);
|
|
101
|
-
const subscriptionId = this.checkAndGet(this.config.subscriptionId, enum_1.BlazorConfigKey.subscriptionId);
|
|
102
|
-
const webAppName = this.checkAndGet(this.config.webAppName, enum_1.BlazorConfigKey.webAppName);
|
|
103
|
-
const credential = this.checkAndGet(await ((_a = ctx.azureAccountProvider) === null || _a === void 0 ? void 0 : _a.getAccountCredentialAsync()), enum_1.BlazorConfigKey.credential);
|
|
104
|
-
const site = this.checkAndGet(this.config.site, enum_1.BlazorConfigKey.site);
|
|
105
|
-
this.config.site = undefined;
|
|
106
|
-
const client = azure_client_1.AzureClientFactory.getWebSiteManagementClient(credential, subscriptionId);
|
|
107
|
-
const res = await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.ConfigureWebAppError(error.code), async () => await client.webApps.listApplicationSettings(resourceGroupName, webAppName));
|
|
108
|
-
if (res.properties) {
|
|
109
|
-
Object.entries(res.properties).forEach((kv) => {
|
|
110
|
-
this.pushAppSettings(site, kv[0], kv[1]);
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
this.collectAppSettings(ctx, site);
|
|
114
|
-
await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.ConfigureWebAppError(error.code), async () => await client.webApps.update(resourceGroupName, webAppName, site));
|
|
115
|
-
return teamsfx_api_1.ok(undefined);
|
|
116
|
-
}
|
|
117
|
-
collectAppSettings(ctx, site) {
|
|
118
|
-
this.collectAppSettingsSelf(site);
|
|
119
|
-
const aadConfig = ctx.envInfo.state.get(constants_1.DependentPluginInfo.aadPluginName);
|
|
120
|
-
if (this.isPluginEnabled(ctx, constants_1.DependentPluginInfo.aadPluginName) && aadConfig) {
|
|
121
|
-
this.collectAppSettingsFromAAD(site, aadConfig);
|
|
122
|
-
}
|
|
123
|
-
const botConfig = ctx.envInfo.state.get(constants_1.DependentPluginInfo.botPluginName);
|
|
124
|
-
if (this.isPluginEnabled(ctx, constants_1.DependentPluginInfo.botPluginName) && botConfig) {
|
|
125
|
-
this.collectAppSettingsFromBot(site, botConfig);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
collectAppSettingsSelf(site) {
|
|
129
|
-
const endpoint = this.checkAndGet(this.config.endpoint, enum_1.BlazorConfigKey.webAppEndpoint);
|
|
130
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.tabAppEndpoint, endpoint);
|
|
131
|
-
}
|
|
132
|
-
collectAppSettingsFromBot(site, botConfig) {
|
|
133
|
-
const botId = this.checkAndGet(botConfig.get(constants_1.DependentPluginInfo.botId), constants_1.DependentPluginInfo.botId);
|
|
134
|
-
const botPassword = this.checkAndGet(botConfig.get(constants_1.DependentPluginInfo.botPassword), constants_1.DependentPluginInfo.botPassword);
|
|
135
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.botId, botId);
|
|
136
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.botPassword, botPassword);
|
|
137
|
-
}
|
|
138
|
-
collectAppSettingsFromAAD(site, aadConfig) {
|
|
139
|
-
const clientId = this.checkAndGet(aadConfig.get(constants_1.DependentPluginInfo.clientID), constants_1.DependentPluginInfo.clientID);
|
|
140
|
-
const clientSecret = this.checkAndGet(aadConfig.get(constants_1.DependentPluginInfo.aadClientSecret), constants_1.DependentPluginInfo.aadClientSecret);
|
|
141
|
-
const oauthHost = this.checkAndGet(aadConfig.get(constants_1.DependentPluginInfo.oauthHost), constants_1.DependentPluginInfo.oauthHost);
|
|
142
|
-
const tenantId = this.checkAndGet(aadConfig.get(constants_1.DependentPluginInfo.tenantId), constants_1.DependentPluginInfo.tenantId);
|
|
143
|
-
const applicationIdUris = this.checkAndGet(aadConfig.get(constants_1.DependentPluginInfo.applicationIdUris), constants_1.DependentPluginInfo.applicationIdUris);
|
|
144
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.clientId, clientId);
|
|
145
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.clientSecret, clientSecret);
|
|
146
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.oauthHost, `${oauthHost}/${tenantId}`);
|
|
147
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.identifierUri, applicationIdUris);
|
|
148
|
-
this.pushAppSettings(site, enum_1.AppSettingsKey.aadMetadataAddress, constants_1.AzureInfo.aadMetadataAddress(tenantId));
|
|
149
|
-
}
|
|
150
|
-
pushAppSettings(site, newName, newValue, replace = true) {
|
|
151
|
-
if (!site.siteConfig) {
|
|
152
|
-
site.siteConfig = {};
|
|
153
|
-
}
|
|
154
|
-
if (!site.siteConfig.appSettings) {
|
|
155
|
-
site.siteConfig.appSettings = [];
|
|
156
|
-
}
|
|
157
|
-
const kv = site.siteConfig.appSettings.find((kv) => kv.name === newName);
|
|
158
|
-
if (!kv) {
|
|
159
|
-
site.siteConfig.appSettings.push({
|
|
160
|
-
name: newName,
|
|
161
|
-
value: newValue,
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
else if (replace) {
|
|
165
|
-
kv.value = newValue;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
async deploy(ctx) {
|
|
169
|
-
var _a;
|
|
170
|
-
logger_1.Logger.info(messages_1.Messages.StartDeploy(constants_1.BlazorPluginInfo.displayName));
|
|
171
|
-
this.syncConfigFromContext(ctx);
|
|
172
|
-
const webAppName = this.checkAndGet(this.config.webAppName, enum_1.BlazorConfigKey.webAppName);
|
|
173
|
-
const resourceGroupName = this.checkAndGet(this.config.resourceGroupName, enum_1.BlazorConfigKey.resourceGroupName);
|
|
174
|
-
const subscriptionId = this.checkAndGet(this.config.subscriptionId, enum_1.BlazorConfigKey.subscriptionId);
|
|
175
|
-
const credential = this.checkAndGet(await ((_a = ctx.azureAccountProvider) === null || _a === void 0 ? void 0 : _a.getAccountCredentialAsync()), enum_1.BlazorConfigKey.credential);
|
|
176
|
-
const projectFilePath = path_1.default.resolve(ctx.root, this.checkAndGet(this.config.projectFilePath, enum_1.BlazorConfigKey.projectFilePath));
|
|
177
|
-
await errors_1.runWithErrorCatchAndThrow(new errors_1.ProjectPathError(projectFilePath), async () => await fs_extra_1.default.pathExists(projectFilePath));
|
|
178
|
-
const projectPath = path_1.default.dirname(projectFilePath);
|
|
179
|
-
const framework = await Deploy.getFrameworkVersion(projectFilePath);
|
|
180
|
-
const runtime = constants_1.BlazorPluginInfo.defaultRuntime;
|
|
181
|
-
const client = azure_client_1.AzureClientFactory.getWebSiteManagementClient(credential, subscriptionId);
|
|
182
|
-
await Deploy.build(projectPath, runtime);
|
|
183
|
-
const folderToBeZipped = constants_1.BlazorPathInfo.publishFolderPath(projectPath, framework, runtime);
|
|
184
|
-
await Deploy.zipDeploy(client, resourceGroupName, webAppName, folderToBeZipped);
|
|
185
|
-
logger_1.Logger.info(messages_1.Messages.EndDeploy(constants_1.BlazorPluginInfo.displayName));
|
|
186
|
-
return teamsfx_api_1.ok(undefined);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
exports.BlazorPluginImpl = BlazorPluginImpl;
|
|
190
|
-
//# sourceMappingURL=plugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/blazor/plugin.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAKgC;AAChC,2CAMqB;AACrB,mDAAgD;AAGhD,+BAAkC;AAClC,mEAA6C;AAC7C,uDAA0D;AAE1D,iCAAsE;AACtE,+CAM4B;AAC5B,6DAAuC;AACvC,4CAAyC;AACzC,wDAAwB;AACxB,gEAA0B;AAC1B,mCAKqB;AAuBrB,MAAa,gBAAgB;IAA7B;QACE,WAAM,GAAuB,EAAE,CAAC;IA4RlC,CAAC;IA1RS,qBAAqB,CAAC,GAAkB;QAC9C,MAAM,cAAc,GAAqC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAC5E,+BAAmB,CAAC,kBAAkB,CACvC,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,iBAAiB,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,GAAG,CACjD,+BAAmB,CAAC,iBAAiB,CAC5B,CAAC;QACZ,IAAI,CAAC,MAAM,CAAC,cAAc,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,GAAG,CAAC,+BAAmB,CAAC,cAAc,CAAW,CAAC;QAC/F,IAAI,CAAC,MAAM,CAAC,kBAAkB,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,GAAG,CAClD,+BAAmB,CAAC,kBAAkB,CAC7B,CAAC;QACZ,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,GAAG,CAAC,+BAAmB,CAAC,QAAQ,CAAW,CAAC;QAEnF,IAAI,CAAC,MAAM,CAAC,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,4BAAU,CAAC,UAAU,CAAW,CAAC;QACzE,IA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E,CAAC;QAEF,MAAM,kCAAyB,CAC7B,IAAI,yBAAgB,CAAC,eAAe,CAAC,EACrC,KAAK,IAAI,EAAE,CAAC,MAAM,kBAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CACjD,CAAC;QACF,MAAM,WAAW,GAAG,cAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QAElD,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC;QACpE,MAAM,OAAO,GAAG,4BAAU,CAAC,cAAc,CAAC;QAE1C,MAAM,MAAM,GAAG,iCAAkB,CAAC,0BAA0B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAEzF,MAAM,MAAM,CAAC,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAEzC,MAAM,gBAAgB,GAAG,0BAAQ,CAAC,iBAAiB,CAAC,WAAW,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QACrF,MAAM,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,gBAAgB,CAAC,CAAC;QAEhF,eAAM,CAAC,IAAI,CAAC,mBAAQ,CAAC,SAAS,CAAC,4BAAU,CAAC,WAAW,CAAC,CAAC,CAAC;QACxD,OAAO,gBAAE,CAAC,SAAS,CAAC,CAAC;IACvB,CAAC;CACF;AA7RD,4CA6RC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { FrontendPluginError } from "../../resources/errors";
|
|
2
|
-
export declare enum ErrorType {
|
|
3
|
-
User = 0,
|
|
4
|
-
System = 1
|
|
5
|
-
}
|
|
6
|
-
export declare class BlazorPluginError extends FrontendPluginError {
|
|
7
|
-
innerError?: Error;
|
|
8
|
-
constructor(errorType: ErrorType, code: string, message: string, suggestions: string[], helpLink?: string, innerError?: Error);
|
|
9
|
-
getMessage(): string;
|
|
10
|
-
setInnerError(error: Error): void;
|
|
11
|
-
getInnerError(): Error | undefined;
|
|
12
|
-
}
|
|
13
|
-
export declare class FetchConfigError extends BlazorPluginError {
|
|
14
|
-
constructor(key: string);
|
|
15
|
-
}
|
|
16
|
-
export declare class ProvisionError extends BlazorPluginError {
|
|
17
|
-
constructor(resource: string, innerErrorCode?: string);
|
|
18
|
-
}
|
|
19
|
-
export declare class ConfigureWebAppError extends BlazorPluginError {
|
|
20
|
-
constructor(innerErrorCode?: string);
|
|
21
|
-
}
|
|
22
|
-
export declare class ProjectPathError extends BlazorPluginError {
|
|
23
|
-
constructor(projectFilePath: string);
|
|
24
|
-
}
|
|
25
|
-
export declare class BuildError extends BlazorPluginError {
|
|
26
|
-
constructor(innerError?: Error);
|
|
27
|
-
}
|
|
28
|
-
export declare class ZipError extends BlazorPluginError {
|
|
29
|
-
constructor();
|
|
30
|
-
}
|
|
31
|
-
export declare class PublishCredentialError extends BlazorPluginError {
|
|
32
|
-
constructor();
|
|
33
|
-
}
|
|
34
|
-
export declare class UploadZipError extends BlazorPluginError {
|
|
35
|
-
constructor();
|
|
36
|
-
}
|
|
37
|
-
export declare const UnhandledErrorCode = "UnhandledError";
|
|
38
|
-
export declare const UnhandledErrorMessage = "Unhandled error.";
|
|
39
|
-
export declare function runWithErrorCatchAndThrow<T>(error: BlazorPluginError, fn: () => T | Promise<T>): Promise<T>;
|
|
40
|
-
export declare function runWithErrorCatchAndWrap<T>(wrap: (error: any) => BlazorPluginError, fn: () => T | Promise<T>): Promise<T>;
|
|
41
|
-
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/blazor/resources/errors.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,oBAAY,SAAS;IACnB,IAAI,IAAA;IACJ,MAAM,IAAA;CACP;AAYD,qBAAa,iBAAkB,SAAQ,mBAAmB;IACjD,UAAU,CAAC,EAAE,KAAK,CAAC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@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/blazor/resources/errors.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,+CAA4C;AAC5C,wDAA0D;AAC1D,mDAA6D;AAE7D,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,yCAAI,CAAA;IACJ,6CAAM,CAAA;AACR,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AAED,MAAM,IAAI,GAAG;IACX,QAAQ,EAAE,iCAAiC;IAC3C,WAAW,EAAE,+CAA+C;IAC5D,WAAW,EAAE,gCAAgC;IAC7C,QAAQ,EAAE,6BAA6B;IACvC,YAAY,EAAE,gCAAgC;IAC9C,kBAAkB,EAAE,+DAA+D;IACnF,kBAAkB,EAAE,iEAAiE,8BAAgB,kBAAkB;CACxH,CAAC;AAEF,MAAa,iBAAkB,SAAQ,4BAAmB;IAGxD,YACE,SAAoB,EACpB,IAAY,EACZ,OAAe,EACf,WAAqB,EACrB,QAAiB,EACjB,UAAkB;QAElB,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;QACvD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,UAAU;QACR,OAAO,GAAG,IAAI,CAAC,OAAO,iBAAiB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IACtE,CAAC;IAED,aAAa,CAAC,KAAY;QACxB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CACF;AA1BD,8CA0BC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;IACrD,YAAY,GAAW;QACrB,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,kBAAkB,EAAE,kBAAk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CAAC,CAAC,CAAC,CAAC;QACvB,MAAM,KAAK,CAAC;KACb;AACH,CAAC;AAZD,4DAYC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/blazor/resources/messages.ts"],"names":[],"mappings":"AAGA,qBAAa,QAAQ;IAEnB,MAAM,CAAC,QAAQ,CAAC,aAAa,SAAU,MAAM,YAA8B;IAC3E,MAAM,CAAC,QAAQ,CAAC,WAAW,SAAU,MAAM,YAA0C;IACrF,MAAM,CAAC,QAAQ,CAAC,iBAAiB,SAAU,MAAM,YAAmC;IACpF,MAAM,CAAC,QAAQ,CAAC,eAAe,SAAU,MAAM,YAA+C;IAC9F,MAAM,CAAC,QAAQ,CAAC,cAAc,SAAU,MAAM,YAA+B;IAC7E,MAAM,CAAC,QAAQ,CAAC,YAAY,SAAU,MAAM,YAA2C;IACvF,MAAM,CAAC,QAAQ,CAAC,cAAc,SAAU,MAAM,YAAgC;IAC9E,MAAM,CAAC,QAAQ,CAAC,YAAY,SAAU,MAAM,YAA+B;IAC3E,MAAM,CAAC,QAAQ,CAAC,WAAW,SAAU,MAAM,YAA4B;IACvE,MAAM,CAAC,QAAQ,CAAC,SAAS,SAAU,MAAM,YAAwC;CAClF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/blazor/resources/messages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,MAAa,QAAQ;;AAArB,4BAYC;AAXC,mBAAmB;AACH,sBAAa,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,gBAAgB,IAAI,IAAI,CAAC;AAC3D,oBAAW,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,4BAA4B,IAAI,IAAI,CAAC;AACrE,0BAAiB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,qBAAqB,IAAI,IAAI,CAAC;AACpE,wBAAe,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,iCAAiC,IAAI,IAAI,CAAC;AAC9E,uBAAc,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,iBAAiB,IAAI,IAAI,CAAC;AAC7D,qBAAY,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,6BAA6B,IAAI,IAAI,CAAC;AACvE,uBAAc,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,kBAAkB,IAAI,IAAI,CAAC;AAC9D,qBAAY,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,iBAAiB,IAAI,IAAI,CAAC;AAC3D,oBAAW,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,cAAc,IAAI,IAAI,CAAC;AACvD,kBAAS,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,0BAA0B,IAAI,IAAI,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Providers } from "@azure/arm-resources";
|
|
2
|
-
import { TokenCredentialsBase } from "@azure/ms-rest-nodeauth";
|
|
3
|
-
import { WebSiteManagementClient, WebSiteManagementModels } from "@azure/arm-appservice";
|
|
4
|
-
import { Provider } from "@azure/arm-resources/esm/models";
|
|
5
|
-
export declare class AzureClientFactory {
|
|
6
|
-
static getResourceProviderClient(credentials: TokenCredentialsBase, subscriptionId: string): Providers;
|
|
7
|
-
static getWebSiteManagementClient(credentials: TokenCredentialsBase, subscriptionId: string): WebSiteManagementClient;
|
|
8
|
-
}
|
|
9
|
-
declare type Site = WebSiteManagementModels.Site;
|
|
10
|
-
declare type AppServicePlan = WebSiteManagementModels.AppServicePlan;
|
|
11
|
-
export declare class AzureLib {
|
|
12
|
-
static ensureResource<T>(createFn: () => Promise<T>, findFn?: () => Promise<T | undefined>): Promise<T>;
|
|
13
|
-
static findResourceProvider(client: Providers, namespace: string): Promise<Provider | undefined>;
|
|
14
|
-
static ensureResourceProviders(client: Providers, providerNamespaces: string[]): Promise<Provider[]>;
|
|
15
|
-
static findAppServicePlans(client: WebSiteManagementClient, resourceGroupName: string, appServicePlanName: string): Promise<AppServicePlan | undefined>;
|
|
16
|
-
static ensureAppServicePlan(client: WebSiteManagementClient, resourceGroupName: string, appServicePlanName: string, options: AppServicePlan): Promise<AppServicePlan>;
|
|
17
|
-
static findWebApp(client: WebSiteManagementClient, resourceGroupName: string, webAppName: string): Promise<Site | undefined>;
|
|
18
|
-
static ensureWebApp(client: WebSiteManagementClient, resourceGroupName: string, webAppName: string, siteEnvelope: Site): Promise<Site>;
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=azure-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azure-client.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/blazor/utils/azure-client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAmC,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AACzF,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D,qBAAa,kBAAkB;WACf,yBAAyB,CACrC,WAAW,EAAE,oBAAoB,EACjC,cAAc,EAAE,MAAM,GACrB,SAAS;WAIE,0BAA0B,CACtC,WAAW,EAAE,oBAAoB,EACjC,cAAc,EAAE,MAAM,GACrB,uBAAuB;CAG3B;AAED,aAAK,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAC;AACzC,aAAK,cAAc,GAAG,uBAAuB,CAAC,cAAc,CAAC;AAG7D,qBAAa,QAAQ;WACC,cAAc,CAAC,CAAC,EAClC,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAC1B,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,GACpC,OAAO,CAAC,CAAC,CAAC;WAKO,oBAAoB,CACtC,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC;WAOZ,uBAAuB,CACzC,MAAM,EAAE,SAAS,EACjB,kBAAkB,EAAE,MAAM,EAAE,GAC3B,OAAO,CAAC,QAAQ,EAAE,CAAC;WAWF,mBAAmB,CACrC,MAAM,EAAE,uBAAuB,EAC/B,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,GACzB,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;WAMlB,oBAAoB,CACtC,MAAM,EAAE,uBAAuB,EAC/B,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,cAAc,CAAC;WAON,UAAU,CAC5B,MAAM,EAAE,uBAAuB,EAC/B,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,GAAG,SAAS,CAAC;WAOR,YAAY,CAC9B,MAAM,EAAE,uBAAuB,EAC/B,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,IAAI,GACjB,OAAO,CAAC,IAAI,CAAC;CAMjB"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AzureLib = exports.AzureClientFactory = void 0;
|
|
4
|
-
// Copyright (c) Microsoft Corporation.
|
|
5
|
-
// Licensed under the MIT license.
|
|
6
|
-
const arm_resources_1 = require("@azure/arm-resources");
|
|
7
|
-
const arm_appservice_1 = require("@azure/arm-appservice");
|
|
8
|
-
class AzureClientFactory {
|
|
9
|
-
static getResourceProviderClient(credentials, subscriptionId) {
|
|
10
|
-
return new arm_resources_1.Providers(new arm_resources_1.ResourceManagementClientContext(credentials, subscriptionId));
|
|
11
|
-
}
|
|
12
|
-
static getWebSiteManagementClient(credentials, subscriptionId) {
|
|
13
|
-
return new arm_appservice_1.WebSiteManagementClient(credentials, subscriptionId);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.AzureClientFactory = AzureClientFactory;
|
|
17
|
-
class AzureLib {
|
|
18
|
-
static async ensureResource(createFn, findFn) {
|
|
19
|
-
const _t = await (findFn === null || findFn === void 0 ? void 0 : findFn());
|
|
20
|
-
return _t !== null && _t !== void 0 ? _t : createFn();
|
|
21
|
-
}
|
|
22
|
-
static async findResourceProvider(client, namespace) {
|
|
23
|
-
const provider = await client.get(namespace);
|
|
24
|
-
if (provider.registrationState === "Registered") {
|
|
25
|
-
return provider;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
static async ensureResourceProviders(client, providerNamespaces) {
|
|
29
|
-
return Promise.all(providerNamespaces.map((namespace) => AzureLib.ensureResource(() => client.register(namespace), () => AzureLib.findResourceProvider(client, namespace))));
|
|
30
|
-
}
|
|
31
|
-
static async findAppServicePlans(client, resourceGroupName, appServicePlanName) {
|
|
32
|
-
const appServicePlansRes = await client.appServicePlans.listByResourceGroup(resourceGroupName);
|
|
33
|
-
return appServicePlansRes.find((plan) => plan.name === appServicePlanName);
|
|
34
|
-
}
|
|
35
|
-
static async ensureAppServicePlan(client, resourceGroupName, appServicePlanName, options) {
|
|
36
|
-
return this.ensureResource(() => client.appServicePlans.createOrUpdate(resourceGroupName, appServicePlanName, options), () => this.findAppServicePlans(client, resourceGroupName, appServicePlanName));
|
|
37
|
-
}
|
|
38
|
-
static async findWebApp(client, resourceGroupName, webAppName) {
|
|
39
|
-
const webAppCollection = await client.webApps.listByResourceGroup(resourceGroupName);
|
|
40
|
-
return webAppCollection.find((webApp) => webApp.name === webAppName);
|
|
41
|
-
}
|
|
42
|
-
static async ensureWebApp(client, resourceGroupName, webAppName, siteEnvelope) {
|
|
43
|
-
return this.ensureResource(() => client.webApps.createOrUpdate(resourceGroupName, webAppName, siteEnvelope), () => this.findWebApp(client, resourceGroupName, webAppName));
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.AzureLib = AzureLib;
|
|
47
|
-
//# sourceMappingURL=azure-client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azure-client.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/blazor/utils/azure-client.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAAkF;AAGlF,0DAAyF;AAGzF,MAAa,kBAAkB;IACtB,MAAM,CAAC,yBAAyB,CACrC,WAAiC,EACjC,cAAsB;QAEtB,OAAO,IAAI,yBAAS,CAAC,IAAI,+CAA+B,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC;IACzF,CAAC;IAEM,MAAM,CAAC,0BAA0B,CACtC,WAAiC,EACjC,cAAsB;QAEtB,OAAO,IAAI,wCAAuB,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IAClE,CAAC;CACF;AAdD,gDAcC;AAMD,MAAa,QAAQ;IACZ,MAAM,CAAC,KAAK,CAAC,cAAc,CAChC,QAA0B,EAC1B,MAAqC;QAErC,MAAM,EAAE,GAAkB,MAAM,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,EAAI,CAAA,CAAC;QAC3C,OAAO,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,QAAQ,EAAE,CAAC;IAC1B,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,oBAAoB,CACtC,MAAiB,EACjB,SAAiB;QAEjB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAC7C,IAAI,QAAQ,CAAC,iBAAiB,KAAK,YAAY,EAAE;YAC/C,OAAO,QAAQ,CAAC;SACjB;IACH,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,uBAAuB,CACzC,MAAiB,EACjB,kBAA4B;QAE5B,OAAO,OAAO,CAAC,GAAG,CAChB,kBAAkB,CAA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B,iBAAyB,EACzB,UAAkB,EAClB,YAAkB;QAElB,OAAO,IAAI,CAAC,cAAc,CACxB,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,UAAU,EAAE,YAAY,CAAC,EAChF,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,iBAAiB,EAAE,UAAU,CAAC,CAC7D,CAAC;IACJ,CAAC;CACF;AA7ED,4BA6EC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Providers } from "@azure/arm-resources";
|
|
2
|
-
import { TokenCredentialsBase } from "@azure/ms-rest-nodeauth";
|
|
3
|
-
import { Provider } from "@azure/arm-resources/esm/models";
|
|
4
|
-
export declare class AzureClientFactory {
|
|
5
|
-
static getResourceProviderClient(credentials: TokenCredentialsBase, subscriptionId: string): Providers;
|
|
6
|
-
}
|
|
7
|
-
export declare class AzureLib {
|
|
8
|
-
static ensureResource<T>(createFn: () => Promise<T>, findFn?: () => Promise<T | undefined>): Promise<T>;
|
|
9
|
-
static findResourceProvider(client: Providers, namespace: string): Promise<Provider | undefined>;
|
|
10
|
-
static ensureResourceProviders(client: Providers, providerNamespaces: string[]): Promise<Provider[]>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=azure-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azure-client.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/utils/azure-client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAmC,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D,qBAAa,kBAAkB;WACf,yBAAyB,CACrC,WAAW,EAAE,oBAAoB,EACjC,cAAc,EAAE,MAAM,GACrB,SAAS;CAGb;AAED,qBAAa,QAAQ;WACC,cAAc,CAAC,CAAC,EAClC,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAC1B,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,GACpC,OAAO,CAAC,CAAC,CAAC;WAKO,oBAAoB,CACtC,MAAM,EAAE,SAAS,EACjB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC;WAOZ,uBAAuB,CACzC,MAAM,EAAE,SAAS,EACjB,kBAAkB,EAAE,MAAM,EAAE,GAC3B,OAAO,CAAC,QAAQ,EAAE,CAAC;CAUvB"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AzureLib = exports.AzureClientFactory = void 0;
|
|
4
|
-
// Copyright (c) Microsoft Corporation.
|
|
5
|
-
// Licensed under the MIT license.
|
|
6
|
-
const arm_resources_1 = require("@azure/arm-resources");
|
|
7
|
-
class AzureClientFactory {
|
|
8
|
-
static getResourceProviderClient(credentials, subscriptionId) {
|
|
9
|
-
return new arm_resources_1.Providers(new arm_resources_1.ResourceManagementClientContext(credentials, subscriptionId));
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.AzureClientFactory = AzureClientFactory;
|
|
13
|
-
class AzureLib {
|
|
14
|
-
static async ensureResource(createFn, findFn) {
|
|
15
|
-
const _t = await (findFn === null || findFn === void 0 ? void 0 : findFn());
|
|
16
|
-
return _t !== null && _t !== void 0 ? _t : createFn();
|
|
17
|
-
}
|
|
18
|
-
static async findResourceProvider(client, namespace) {
|
|
19
|
-
const provider = await client.get(namespace);
|
|
20
|
-
if (provider.registrationState === "Registered") {
|
|
21
|
-
return provider;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
static async ensureResourceProviders(client, providerNamespaces) {
|
|
25
|
-
return Promise.all(providerNamespaces.map((namespace) => AzureLib.ensureResource(() => client.register(namespace), () => AzureLib.findResourceProvider(client, namespace))));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.AzureLib = AzureLib;
|
|
29
|
-
//# sourceMappingURL=azure-client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azure-client.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/utils/azure-client.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAAkF;AAKlF,MAAa,kBAAkB;IACtB,MAAM,CAAC,yBAAyB,CACrC,WAAiC,EACjC,cAAsB;QAEtB,OAAO,IAAI,yBAAS,CAAC,IAAI,+CAA+B,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC;IACzF,CAAC;CACF;AAPD,gDAOC;AAED,MAAa,QAAQ;IACZ,MAAM,CAAC,KAAK,CAAC,cAAc,CAChC,QAA0B,EAC1B,MAAqC;QAErC,MAAM,EAAE,GAAkB,MAAM,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,EAAI,CAAA,CAAC;QAC3C,OAAO,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,QAAQ,EAAE,CAAC;IAC1B,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,oBAAoB,CACtC,MAAiB,EACjB,SAAiB;QAEjB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAC7C,IAAI,QAAQ,CAAC,iBAAiB,KAAK,YAAY,EAAE;YAC/C,OAAO,QAAQ,CAAC;SACjB;IACH,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,uBAAuB,CACzC,MAAiB,EACjB,kBAA4B;QAE5B,OAAO,OAAO,CAAC,GAAG,CAChB,kBAAkB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CACnC,QAAQ,CAAC,cAAc,CACrB,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,EAChC,GAAG,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC,MAAM,EAAE,SAAS,CAAC,CACvD,CACF,CACF,CAAC;IACJ,CAAC;CACF;AAhCD,4BAgCC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DotnetChecker } from "./dotnetChecker";
|
|
2
|
-
import { IDepsLogger } from "./checker";
|
|
3
|
-
export declare class BackendExtensionsInstaller {
|
|
4
|
-
private readonly _dotnetChecker;
|
|
5
|
-
private readonly _logger;
|
|
6
|
-
constructor(dotnetChecker: DotnetChecker, logger: IDepsLogger);
|
|
7
|
-
install(backendRoot: string, csprojPath?: string, outputPath?: string): Promise<void>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=backendExtensionsInstall.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backendExtensionsInstall.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAMxC,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgB;IAC/C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAc;gBAE1B,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW;IAKhD,OAAO,CAClB,WAAW,EAAE,MAAM,EACnB,UAAU,GAAE,MAA0B,EACtC,UAAU,GAAE,MAA0B,GACrC,OAAO,CAAC,IAAI,CAAC;CAuDjB"}
|
|
@@ -1,55 +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.BackendExtensionsInstaller = void 0;
|
|
6
|
-
// NOTE:
|
|
7
|
-
// DO NOT EDIT this file in function plugin.
|
|
8
|
-
// The source of truth of this file is in packages/vscode-extension/src/debug/depsChecker.
|
|
9
|
-
// If you need to edit this file, please edit it in the above folder
|
|
10
|
-
// and run the scripts (tools/depsChecker/copyfiles.sh or tools/depsChecker/copyfiles.ps1 according to your OS)
|
|
11
|
-
// to copy you changes to function plugin.
|
|
12
|
-
const common_1 = require("./common");
|
|
13
|
-
const errors_1 = require("./errors");
|
|
14
|
-
const cpUtils_1 = require("./cpUtils");
|
|
15
|
-
// NOTE: change these constants if function plugin scaffold changes
|
|
16
|
-
const defaultOutputPath = "bin";
|
|
17
|
-
const defaultCsprojPath = "extensions.csproj";
|
|
18
|
-
class BackendExtensionsInstaller {
|
|
19
|
-
constructor(dotnetChecker, logger) {
|
|
20
|
-
this._dotnetChecker = dotnetChecker;
|
|
21
|
-
this._logger = logger;
|
|
22
|
-
}
|
|
23
|
-
async install(backendRoot, csprojPath = defaultCsprojPath, outputPath = defaultOutputPath) {
|
|
24
|
-
if (!outputPath) {
|
|
25
|
-
outputPath = defaultOutputPath;
|
|
26
|
-
}
|
|
27
|
-
const dotnetExecPath = await this._dotnetChecker.getDotnetExecPath();
|
|
28
|
-
if (dotnetExecPath === "") {
|
|
29
|
-
await this._logger.printDetailLog();
|
|
30
|
-
this._logger.cleanup();
|
|
31
|
-
await this._logger.error(`Failed to run backend extension install, .NET SDK executable not found`);
|
|
32
|
-
throw new errors_1.BackendExtensionsInstallError("Failed to run backend extension install, .NET SDK executable not found", common_1.defaultHelpLink);
|
|
33
|
-
}
|
|
34
|
-
try {
|
|
35
|
-
const result = await cpUtils_1.cpUtils.tryExecuteCommand(backendRoot, this._logger, { shell: false }, dotnetExecPath, "build", csprojPath, "-o", outputPath, "--ignore-failed-sources");
|
|
36
|
-
if (result.code !== 0) {
|
|
37
|
-
throw new Error(`Failed to run "${dotnetExecPath} build" command. output = ${result.cmdOutput}, err = ${result.cmdOutputIncludingStderr}`);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
catch (error) {
|
|
41
|
-
await this._logger.printDetailLog();
|
|
42
|
-
await this._logger.error(`Failed to run backend extension install: error = '${error}'`);
|
|
43
|
-
if (error.message.includes("NETSDK1045")) {
|
|
44
|
-
// refer to https://docs.microsoft.com/en-us/dotnet/core/tools/sdk-errors/netsdk1045
|
|
45
|
-
throw new errors_1.BackendExtensionsInstallError(`NETSDK1045: The current .NET SDK does not support 'newer version' as a target`, common_1.dotnetNotSupportTargetVersionHelpLink);
|
|
46
|
-
}
|
|
47
|
-
throw new errors_1.BackendExtensionsInstallError(`Failed to run backend extension install: error = '${error}'`, common_1.defaultHelpLink);
|
|
48
|
-
}
|
|
49
|
-
finally {
|
|
50
|
-
this._logger.cleanup();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.BackendExtensionsInstaller = BackendExtensionsInstaller;
|
|
55
|
-
//# sourceMappingURL=backendExtensionsInstall.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backendExtensionsInstall.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,QAAQ;AACR,4CAA4C;AAC5C,0FAA0F;AAC1F,oEAAoE;AACpE,+GAA+G;AAC/G,0CAA0C;AAE1C,qCAAkF;AAElF,qCAAyD;AACzD,uCAAoC;AAGpC,mEAAmE;AACnE,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAChC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAE9C,MAAa,0BAA0B;IAIrC,YAAY,aAA4B,EAAE,MAAmB;QAC3D,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAEM,KAAK,CAAC,OAAO,CAClB,WAAmB,EACnB,aAAqB,iBAAiB,EACtC,aAAqB,iBAAiB;QAEtC,IAAI,CA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,EAAE,CAAC;SACxB;IACH,CAAC;CACF;AApED,gEAoEC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { DepsCheckerEvent } from "./common";
|
|
2
|
-
export interface IDepsChecker {
|
|
3
|
-
isEnabled(): Promise<boolean>;
|
|
4
|
-
isInstalled(): Promise<boolean>;
|
|
5
|
-
install(): Promise<void>;
|
|
6
|
-
getDepsInfo(): Promise<DepsInfo>;
|
|
7
|
-
}
|
|
8
|
-
export interface IDepsAdapter {
|
|
9
|
-
displayLearnMore: (message: string, link: string) => Promise<boolean>;
|
|
10
|
-
displayWarningMessage: (message: string, buttonText: string, action: () => Promise<boolean>) => Promise<boolean>;
|
|
11
|
-
showOutputChannel: () => void;
|
|
12
|
-
hasTeamsfxBackend(): Promise<boolean>;
|
|
13
|
-
hasTeamsfxBot(): Promise<boolean>;
|
|
14
|
-
dotnetCheckerEnabled(): Promise<boolean>;
|
|
15
|
-
funcToolCheckerEnabled(): Promise<boolean>;
|
|
16
|
-
ngrokCheckerEnabled(): Promise<boolean>;
|
|
17
|
-
nodeCheckerEnabled(): Promise<boolean>;
|
|
18
|
-
runWithProgressIndicator(callback: () => Promise<void>): Promise<void>;
|
|
19
|
-
getResourceDir(): string;
|
|
20
|
-
}
|
|
21
|
-
export interface IDepsLogger {
|
|
22
|
-
debug(message: string): Promise<boolean>;
|
|
23
|
-
info(message: string): Promise<boolean>;
|
|
24
|
-
warning(message: string): Promise<boolean>;
|
|
25
|
-
error(message: string): Promise<boolean>;
|
|
26
|
-
printDetailLog(): Promise<void>;
|
|
27
|
-
cleanup(): void;
|
|
28
|
-
}
|
|
29
|
-
export interface IDepsTelemetry {
|
|
30
|
-
sendEvent(eventName: DepsCheckerEvent, properties?: {
|
|
31
|
-
[p: string]: string;
|
|
32
|
-
}, timecost?: number): void;
|
|
33
|
-
sendEventWithDuration(eventName: DepsCheckerEvent, action: () => Promise<void>): Promise<void>;
|
|
34
|
-
sendUserErrorEvent(eventName: DepsCheckerEvent, errorMessage: string): void;
|
|
35
|
-
sendSystemErrorEvent(eventName: DepsCheckerEvent, errorMessage: string, errorStack: string): void;
|
|
36
|
-
}
|
|
37
|
-
export interface DepsInfo {
|
|
38
|
-
name: string;
|
|
39
|
-
installVersion?: string;
|
|
40
|
-
supportedVersions: string[];
|
|
41
|
-
details: Map<string, string>;
|
|
42
|
-
}
|
|
43
|
-
export declare class DepsChecker {
|
|
44
|
-
private readonly _adapter;
|
|
45
|
-
private readonly _logger;
|
|
46
|
-
private readonly _checkers;
|
|
47
|
-
constructor(logger: IDepsLogger, adapter: IDepsAdapter, checkers: Array<IDepsChecker>);
|
|
48
|
-
resolve(): Promise<boolean>;
|
|
49
|
-
private check;
|
|
50
|
-
private generateMsg;
|
|
51
|
-
private handleError;
|
|
52
|
-
static handleErrorWithDisplay(error: Error, adapter: IDepsAdapter): Promise<boolean>;
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=checker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checker.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/checker.ts"],"names":[],"mappings":"AAUA,OAAO,EAAsC,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGhF,MAAM,WAAW,YAAY;IAC3B,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAChC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,WAAW,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,YAAY;IAC3B,gBAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACtE,qBAAqB,EAAE,CACrB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO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