@microsoft/teamsfx-core 1.2.0 → 1.2.2-alpha.eb4575da.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/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 +5 -0
- package/build/common/local/index.d.ts.map +1 -0
- package/build/common/local/index.js +10 -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/{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 +6 -4
- 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 +1 -0
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +1 -0
- package/build/common/permissionInterface.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/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 -6
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/index.d.ts +0 -1
- package/build/core/middleware/index.d.ts.map +1 -1
- package/build/core/middleware/index.js +0 -1
- package/build/core/middleware/index.js.map +1 -1
- package/build/core/middleware/projectMigrator.d.ts.map +1 -1
- package/build/core/middleware/projectMigrator.js +0 -9
- 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/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 +21 -58
- 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/appstudio/constants.d.ts +3 -2
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +12 -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 +16 -8
- 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/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 +28 -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/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.map +1 -1
- package/build/plugins/resource/bot/plugin.js +14 -131
- package/build/plugins/resource/bot/plugin.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 +52 -0
- package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/constants.js +69 -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 +126 -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 +3 -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 +13 -44
- 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 +1 -0
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js +3 -0
- 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 +33 -134
- 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/identity/index.d.ts +0 -1
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +2 -20
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/index.js +1 -6
- 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 +0 -3
- package/build/plugins/resource/simpleauth/plugin.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/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +1 -9
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +26 -58
- package/build/plugins/resource/sql/plugin.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/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 +45 -11
- 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 +2 -2
- 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/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/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 -14
- 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 +81 -96
- package/build/plugins/solution/fx-solution/v2/getQuestions.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.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 +6 -0
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +1 -1
- 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 +6 -7
- package/resource/strings.json +17 -7
- 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/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/sqlProvision.template.bicep +8 -5
- 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/core/middleware/projectUpgrader.d.ts +0 -6
- package/build/core/middleware/projectUpgrader.d.ts.map +0 -1
- package/build/core/middleware/projectUpgrader.js +0 -224
- package/build/core/middleware/projectUpgrader.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,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResourceType = exports.AppSettingsKey = exports.BlazorConfigKey = void 0;
|
|
4
|
-
var BlazorConfigKey;
|
|
5
|
-
(function (BlazorConfigKey) {
|
|
6
|
-
/* Config from solution */
|
|
7
|
-
BlazorConfigKey["resourceGroupName"] = "resourceGroupName";
|
|
8
|
-
BlazorConfigKey["subscriptionId"] = "subscriptionId";
|
|
9
|
-
BlazorConfigKey["resourceNameSuffix"] = "resourceNameSuffix";
|
|
10
|
-
BlazorConfigKey["location"] = "location";
|
|
11
|
-
BlazorConfigKey["credential"] = "credential";
|
|
12
|
-
BlazorConfigKey["teamsAppName"] = "teamsAppName";
|
|
13
|
-
/* Config exported by Blazor plugin */
|
|
14
|
-
BlazorConfigKey["webAppName"] = "webAppName";
|
|
15
|
-
BlazorConfigKey["appServicePlanName"] = "appServicePlanName";
|
|
16
|
-
BlazorConfigKey["webAppEndpoint"] = "webAppEndpoint";
|
|
17
|
-
BlazorConfigKey["webAppDomain"] = "webAppDomain";
|
|
18
|
-
BlazorConfigKey["projectFilePath"] = "projectFilePath";
|
|
19
|
-
BlazorConfigKey["webAppResourceId"] = "webAppResourceId";
|
|
20
|
-
/* Intermediate */
|
|
21
|
-
BlazorConfigKey["site"] = "site";
|
|
22
|
-
})(BlazorConfigKey = exports.BlazorConfigKey || (exports.BlazorConfigKey = {}));
|
|
23
|
-
var AppSettingsKey;
|
|
24
|
-
(function (AppSettingsKey) {
|
|
25
|
-
AppSettingsKey["clientSecret"] = "CLIENT_SECRET";
|
|
26
|
-
AppSettingsKey["clientId"] = "CLIENT_ID";
|
|
27
|
-
AppSettingsKey["oauthHost"] = "OAUTH_AUTHORITY";
|
|
28
|
-
AppSettingsKey["tabAppEndpoint"] = "TAB_APP_ENDPOINT";
|
|
29
|
-
AppSettingsKey["aadMetadataAddress"] = "AAD_METADATA_ADDRESS";
|
|
30
|
-
AppSettingsKey["botId"] = "BOT_ID";
|
|
31
|
-
AppSettingsKey["botPassword"] = "BOT_PASSWORD";
|
|
32
|
-
AppSettingsKey["identifierUri"] = "IDENTIFIER_URI";
|
|
33
|
-
})(AppSettingsKey = exports.AppSettingsKey || (exports.AppSettingsKey = {}));
|
|
34
|
-
var ResourceType;
|
|
35
|
-
(function (ResourceType) {
|
|
36
|
-
ResourceType["webApp"] = "Azure Web App";
|
|
37
|
-
ResourceType["appServicePlan"] = "Azure App Service Plan";
|
|
38
|
-
})(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
|
|
39
|
-
//# sourceMappingURL=enum.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Site } from "@azure/arm-appservice/esm/models/mappers";
|
|
2
|
-
import { WebSiteManagementClient, WebSiteManagementModels } from "@azure/arm-appservice";
|
|
3
|
-
declare type Site = WebSiteManagementModels.Site;
|
|
4
|
-
export declare function generateWebAppName(appName: string, classSuffix: string, identSuffix: string): string;
|
|
5
|
-
export declare function ensureWebApp(client: WebSiteManagementClient, resourceGroupName: string, location: string, webAppName: string, appServiceId: string): Promise<Site>;
|
|
6
|
-
export declare function ensureAppServicePlan(client: WebSiteManagementClient, resourceGroupName: string, appServicePlanName: string, location: string): Promise<string>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=provision.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provision.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/blazor/ops/provision.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,0CAA0C,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAOzF,aAAK,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAC;AAazC,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,MAAM,CAGR;AAED,wBAAsB,YAAY,CAChC,MAAM,EAAE,uBAAuB,EAC/B,iBAAiB,EAAE,MAAM,EACzB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAiBf;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,uBAAuB,EAC/B,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,mBAoBjB"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ensureAppServicePlan = exports.ensureWebApp = exports.generateWebAppName = void 0;
|
|
4
|
-
const constants_1 = require("../constants");
|
|
5
|
-
const azure_client_1 = require("../utils/azure-client");
|
|
6
|
-
const errors_1 = require("../resources/errors");
|
|
7
|
-
const enum_1 = require("../enum");
|
|
8
|
-
function normalize(raw) {
|
|
9
|
-
return raw.replace(constants_1.RegularExpr.allCharToBeSkippedInName, constants_1.Constants.emptyString).toLowerCase();
|
|
10
|
-
}
|
|
11
|
-
function concatName(appName, mergedSuffix) {
|
|
12
|
-
const suffix = normalize(mergedSuffix).substr(0, constants_1.AzureInfo.suffixLenMax);
|
|
13
|
-
const paddingLength = constants_1.AzureInfo.webappNameLenMax - suffix.length;
|
|
14
|
-
const normalizedAppName = normalize(appName).substr(0, paddingLength);
|
|
15
|
-
return normalizedAppName + suffix;
|
|
16
|
-
}
|
|
17
|
-
function generateWebAppName(appName, classSuffix, identSuffix) {
|
|
18
|
-
const mergedSuffix = classSuffix + identSuffix;
|
|
19
|
-
return concatName(appName, mergedSuffix);
|
|
20
|
-
}
|
|
21
|
-
exports.generateWebAppName = generateWebAppName;
|
|
22
|
-
async function ensureWebApp(client, resourceGroupName, location, webAppName, appServiceId) {
|
|
23
|
-
const siteEnvelope = Object.assign(Object.assign({}, constants_1.DefaultProvisionConfigs.webAppConfig(location)), { serverFarmId: appServiceId });
|
|
24
|
-
const site = await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.ProvisionError(enum_1.ResourceType.webApp, error.code), async () => await azure_client_1.AzureLib.ensureWebApp(client, resourceGroupName, webAppName, siteEnvelope));
|
|
25
|
-
if (!site.defaultHostName) {
|
|
26
|
-
// TODO: Logger.error("failToGetWebAppEndpoint");
|
|
27
|
-
throw new errors_1.ProvisionError(enum_1.ResourceType.webApp);
|
|
28
|
-
}
|
|
29
|
-
return site;
|
|
30
|
-
}
|
|
31
|
-
exports.ensureWebApp = ensureWebApp;
|
|
32
|
-
async function ensureAppServicePlan(client, resourceGroupName, appServicePlanName, location) {
|
|
33
|
-
const appServicePlan = await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.ProvisionError(enum_1.ResourceType.appServicePlan, error.code), async () => await azure_client_1.AzureLib.ensureAppServicePlan(client, resourceGroupName, appServicePlanName, constants_1.DefaultProvisionConfigs.appServicePlansConfig(location)));
|
|
34
|
-
const appServicePlanId = appServicePlan.id;
|
|
35
|
-
if (!appServicePlanId) {
|
|
36
|
-
// TODO: Logger.error("failToGetAppServicePlanId");
|
|
37
|
-
throw new errors_1.ProvisionError(enum_1.ResourceType.appServicePlan);
|
|
38
|
-
}
|
|
39
|
-
return appServicePlanId;
|
|
40
|
-
}
|
|
41
|
-
exports.ensureAppServicePlan = ensureAppServicePlan;
|
|
42
|
-
//# sourceMappingURL=provision.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provision.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/blazor/ops/provision.ts"],"names":[],"mappings":";;;AAKA,4CAA0F;AAC1F,wDAAiD;AACjD,gDAA+E;AAC/E,kCAAuC;AAIvC,SAAS,SAAS,CAAC,GAAW;IAC5B,OAAO,GAAG,CAAC,OAAO,CAAC,uBAAW,CAAC,wBAAwB,EAAE,qBAAS,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAAC;AAChG,CAAC;AAED,SAAS,UAAU,CAAC,OAAe,EAAE,YAAoB;IACvD,MAAM,MAAM,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,qBAAS,CAAC,YAAY,CAAC,CAAC;IACzE,MAAM,aAAa,GAAG,qBAAS,CAAC,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IACjE,MAAM,iBAAiB,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC;IACtE,OAAO,iBAAiB,GAAG,MAAM,CAAC;AACpC,CAAC;AAED,SAAgB,kBAAkB,CAChC,OAAe,EACf,WAAmB,EACnB,WAAmB;IAEnB,MAAM,YAAY,GAAW,WAAW,GAAG,WAAW,CAAC;IACvD,OAAO,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;AAC3C,CAAC;AAPD,gDAOC;AAEM,KAAK,UAAU,YAAY,CAChC,MAA+B,EAC/B,iBAAyB,EACzB,QAAgB,EAChB,UAAkB,EAClB,YAAoB;IAEpB,MAAM,YAAY,mCACb,mCAA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import { TeamsFxResult } from "./error-factory";
|
|
3
|
-
import { WebSiteManagementModels } from "@azure/arm-appservice";
|
|
4
|
-
declare type Site = WebSiteManagementModels.Site;
|
|
5
|
-
export interface BlazorPluginConfig {
|
|
6
|
-
resourceGroupName?: string;
|
|
7
|
-
subscriptionId?: string;
|
|
8
|
-
resourceNameSuffix?: string;
|
|
9
|
-
location?: string;
|
|
10
|
-
webAppName?: string;
|
|
11
|
-
appServicePlanName?: string;
|
|
12
|
-
endpoint?: string;
|
|
13
|
-
domain?: string;
|
|
14
|
-
projectFilePath?: string;
|
|
15
|
-
webAppResourceId?: string;
|
|
16
|
-
site?: Site;
|
|
17
|
-
}
|
|
18
|
-
export declare class BlazorPluginImpl {
|
|
19
|
-
config: BlazorPluginConfig;
|
|
20
|
-
private syncConfigFromContext;
|
|
21
|
-
private syncConfigToContext;
|
|
22
|
-
private checkAndGet;
|
|
23
|
-
private isPluginEnabled;
|
|
24
|
-
preProvision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
25
|
-
provision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
26
|
-
postProvision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
27
|
-
collectAppSettings(ctx: PluginContext, site: Site): void;
|
|
28
|
-
collectAppSettingsSelf(site: Site): void;
|
|
29
|
-
collectAppSettingsFromBot(site: Site, botConfig: ReadonlyPluginConfig): void;
|
|
30
|
-
collectAppSettingsFromAAD(site: Site, aadConfig: ReadonlyPluginConfig): void;
|
|
31
|
-
pushAppSettings(site: Site, newName: string, newValue: string, replace?: boolean): void;
|
|
32
|
-
deploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
33
|
-
}
|
|
34
|
-
export {};
|
|
35
|
-
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/blazor/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAA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AS,EAAE,oBAAoB;IAiCrE,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,UAAO,GAAG,IAAI;IAsB9E,MAAM,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;CAwChE"}
|
|
@@ -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,GA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C;QAEF,MAAM,eAAe,GAAG,cAAI,CAAC,OAAO,CAClC,GAAG,CAAC,IAAI,EACR,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,sBAAS,CAAC,eAAe,CAAC,CACzE,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,mBAAm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,EAC9C,IAAI,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,iBAAiB,EACvC,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GACvB,OAAO,CAAC,CAAC,CAAC,CASZ"}
|
|
@@ -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,CAA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AAO,CAAM,EAAE;QACf,eAAM,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,KAAK,CAAC,aAAa,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,EA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AgB,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC;IACvE,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,YAAY,CAC9B,MAA+B,EAC/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"}
|