@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/
|
|
1
|
+
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/enum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IAEzB,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAG7B,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IAGrC,IAAI,SAAS;CACd;AAED,oBAAY,cAAc;IACxB,YAAY,kBAAkB;IAC9B,QAAQ,cAAc;IACtB,SAAS,oBAAoB;IAC7B,cAAc,qBAAqB;IACnC,kBAAkB,yBAAyB;IAC3C,KAAK,WAAW;IAChB,WAAW,iBAAiB;IAC5B,aAAa,mBAAmB;CACjC;AAED,oBAAY,YAAY;IACtB,MAAM,kBAAkB;IACxB,cAAc,2BAA2B;CAC1C"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceType = exports.AppSettingsKey = exports.DotnetConfigKey = void 0;
|
|
4
|
+
var DotnetConfigKey;
|
|
5
|
+
(function (DotnetConfigKey) {
|
|
6
|
+
/* Config from solution */
|
|
7
|
+
DotnetConfigKey["resourceGroupName"] = "resourceGroupName";
|
|
8
|
+
DotnetConfigKey["subscriptionId"] = "subscriptionId";
|
|
9
|
+
DotnetConfigKey["resourceNameSuffix"] = "resourceNameSuffix";
|
|
10
|
+
DotnetConfigKey["location"] = "location";
|
|
11
|
+
DotnetConfigKey["credential"] = "credential";
|
|
12
|
+
DotnetConfigKey["teamsAppName"] = "teamsAppName";
|
|
13
|
+
/* Config exported by Dotnet plugin */
|
|
14
|
+
DotnetConfigKey["webAppName"] = "webAppName";
|
|
15
|
+
DotnetConfigKey["appServicePlanName"] = "appServicePlanName";
|
|
16
|
+
DotnetConfigKey["webAppEndpoint"] = "webAppEndpoint";
|
|
17
|
+
DotnetConfigKey["webAppDomain"] = "webAppDomain";
|
|
18
|
+
DotnetConfigKey["projectFilePath"] = "projectFilePath";
|
|
19
|
+
DotnetConfigKey["webAppResourceId"] = "webAppResourceId";
|
|
20
|
+
/* Intermediate */
|
|
21
|
+
DotnetConfigKey["site"] = "site";
|
|
22
|
+
})(DotnetConfigKey = exports.DotnetConfigKey || (exports.DotnetConfigKey = {}));
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/
|
|
1
|
+
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAmBX;AAnBD,WAAY,eAAe;IACzB,0BAA0B;IAC1B,0DAAuC,CAAA;IACvC,oDAAiC,CAAA;IACjC,4DAAyC,CAAA;IACzC,wCAAqB,CAAA;IACrB,4CAAyB,CAAA;IACzB,gDAA6B,CAAA;IAE7B,sCAAsC;IACtC,4CAAyB,CAAA;IACzB,4DAAyC,CAAA;IACzC,oDAAiC,CAAA;IACjC,gDAA6B,CAAA;IAC7B,sDAAmC,CAAA;IACnC,wDAAqC,CAAA;IAErC,kBAAkB;IAClB,gCAAa,CAAA;AACf,CAAC,EAnBW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAmB1B;AAED,IAAY,cASX;AATD,WAAY,cAAc;IACxB,gDAA8B,CAAA;IAC9B,wCAAsB,CAAA;IACtB,+CAA6B,CAAA;IAC7B,qDAAmC,CAAA;IACnC,6DAA2C,CAAA;IAC3C,kCAAgB,CAAA;IAChB,8CAA4B,CAAA;IAC5B,kDAAgC,CAAA;AAClC,CAAC,EATW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QASzB;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,wCAAwB,CAAA;IACxB,yDAAyC,CAAA;AAC3C,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB"}
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-factory.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/
|
|
1
|
+
{"version":3,"file":"error-factory.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/error-factory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,EAA0B,MAAM,wBAAwB,CAAC;AAIjF,oBAAY,aAAa,GAAG,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AAEjD,qBAAa,YAAY;IACvB,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAoB;IAClD,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAwB;IACzD,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAuB;WAEzC,SAAS,CACrB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,GAAG,EAChB,KAAK,CAAC,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO;WAII,WAAW,CACvB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,GAAG,EAChB,KAAK,CAAC,EAAE,MAAM,EACd,SAAS,SAAiB,GACzB,OAAO;CAGX"}
|
|
@@ -14,7 +14,7 @@ class ErrorFactory {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
exports.ErrorFactory = ErrorFactory;
|
|
17
|
-
ErrorFactory.source = constants_1.
|
|
18
|
-
ErrorFactory.issueLink = constants_1.
|
|
19
|
-
ErrorFactory.helpLink = constants_1.
|
|
17
|
+
ErrorFactory.source = constants_1.DotnetPluginInfo.alias;
|
|
18
|
+
ErrorFactory.issueLink = constants_1.DotnetPluginInfo.issueLink;
|
|
19
|
+
ErrorFactory.helpLink = constants_1.DotnetPluginInfo.helpLink;
|
|
20
20
|
//# sourceMappingURL=error-factory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-factory.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/
|
|
1
|
+
{"version":3,"file":"error-factory.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/error-factory.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAAiF;AAEjF,2CAA6D;AAI7D,MAAa,YAAY;IAKhB,MAAM,CAAC,SAAS,CACrB,IAAY,EACZ,OAAe,EACf,UAAgB,EAChB,KAAc,EACd,QAAiB;QAEjB,OAAO,IAAI,uBAAS,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;IAChF,CAAC;IAEM,MAAM,CAAC,WAAW,CACvB,IAAY,EACZ,OAAe,EACf,UAAgB,EAChB,KAAc,EACd,SAAS,GAAG,IAAI,CAAC,SAAS;QAE1B,OAAO,IAAI,yBAAW,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;IACnF,CAAC;;AAvBH,oCAwBC;AAvBiB,mBAAM,GAAW,4BAAU,CAAC,KAAK,CAAC;AAClC,sBAAS,GAAW,4BAAU,CAAC,SAAS,CAAC;AACzC,qBAAQ,GAAW,4BAAU,CAAC,QAAQ,CAAC"}
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/ops/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,SAAS,CAAC;AAW7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAUhE,wBAAsB,mBAAmB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAOlF;AAED,wBAAsB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,iBAMxD;AAED,wBAAsB,WAAW,CAAC,aAAa,EAAE,MAAM,mBAwBtD;AAED,wBAAsB,SAAS,CAC7B,MAAM,EAAE,uBAAuB,EAC/B,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,iBAyCtB"}
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
6
6
|
const path = tslib_1.__importStar(require("path"));
|
|
7
7
|
const adm_zip_1 = tslib_1.__importDefault(require("adm-zip"));
|
|
8
|
-
const templatesUtils_1 = require("../../../../../common/templatesUtils");
|
|
8
|
+
const templatesUtils_1 = require("../../../../../common/template-utils/templatesUtils");
|
|
9
9
|
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
10
10
|
const errors_1 = require("../resources/errors");
|
|
11
11
|
const constants_1 = require("../constants");
|
|
@@ -17,11 +17,11 @@ async function getFrameworkVersion(projectFilePath) {
|
|
|
17
17
|
if (framework === null || framework === void 0 ? void 0 : framework.length) {
|
|
18
18
|
return framework[0].trim();
|
|
19
19
|
}
|
|
20
|
-
return constants_1.
|
|
20
|
+
return constants_1.DotnetPluginInfo.defaultFramework;
|
|
21
21
|
}
|
|
22
22
|
exports.getFrameworkVersion = getFrameworkVersion;
|
|
23
23
|
async function build(path, runtime) {
|
|
24
|
-
const command = constants_1.
|
|
24
|
+
const command = constants_1.DotnetCommands.buildRelease(runtime);
|
|
25
25
|
await errors_1.runWithErrorCatchAndWrap((error) => new errors_1.BuildError(error), async () => await execute_1.execute(command, path));
|
|
26
26
|
}
|
|
27
27
|
exports.build = build;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/ops/deploy.ts"],"names":[],"mappings":";;;;AAAA,gEAA0B;AAC1B,mDAA6B;AAC7B,8DAA6B;AAC7B,wFAA2F;AAC3F,0DAA0B;AAC1B,gDAO6B;AAE7B,4CAKsB;AACtB,6DAA0D;AAC1D,+DAAqE;AAE9D,KAAK,UAAU,mBAAmB,CAAC,eAAuB;IAC/D,MAAM,OAAO,GAAG,MAAM,kBAAE,CAAC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IAC3D,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,uBAAW,CAAC,eAAe,CAAC,CAAC;IAC7D,IAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,EAAE;QACrB,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KAC5B;IACD,OAAO,4BAAU,CAAC,gBAAgB,CAAC;AACrC,CAAC;AAPD,kDAOC;AAEM,KAAK,UAAU,KAAK,CAAC,IAAY,EAAE,OAAe;IACvD,MAAM,OAAO,GAAG,0BAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAC/C,MAAM,iCAAwB,CAC5B,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,mBAAU,CAAC,KAAK,CAAC,EAChC,KAAK,IAAI,EAAE,CAAC,MAAM,iBAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CACzC,CAAC;AACJ,CAAC;AAND,sBAMC;AAEM,KAAK,UAAU,WAAW,CAAC,aAAqB;IACrD,MAAM,GA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C,QAAQ,EAAE,CAAC;IAElC,MAAM,WAAW,GAAG,MAAM,kCAAyB,CACjD,IAAI,+BAAsB,EAAE,EAC5B,KAAK,IAAI,EAAE,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,yBAAyB,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAC1F,CAAC;IACF,MAAM,QAAQ,GAAG,WAAW,CAAC,kBAAkB,CAAC;IAChD,MAAM,QAAQ,GAAG,WAAW,CAAC,kBAAkB,CAAC;IAEhD,IAAI,CAAC,QAAQ,EAAE;QACb,uDAAuD;QACvD,MAAM,IAAI,+BAAsB,EAAE,CAAC;KACpC;IAED,MAAM,kCAAyB,CAC7B,IAAI,uBAAc,EAAE,EACpB,KAAK,IAAI,EAAE,CACT,MAAM,qCAAoB,CACxB,KAAK,IAAI,EAAE,CACT,MAAM,eAAK,CAAC,IAAI,CAAC,qBAAS,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE;QAC/D,OAAO,EAAE;YACP,cAAc,EAAE,0BAA0B;YAC1C,eAAe,EAAE,UAAU;SAC5B;QACD,IAAI,EAAE;YACJ,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;SACnB;QACD,gBAAgB,EAAE,QAAQ;QAC1B,aAAa,EAAE,QAAQ;QACvB,OAAO,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;KACxB,CAAC,EACJ,CAAC,CACF,CACJ,CAAC;AACJ,CAAC;AA7CD,8BA6CC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PluginContext } from "@microsoft/teamsfx-api";
|
|
2
|
+
import { TeamsFxResult } from "./error-factory";
|
|
3
|
+
import { WebSiteManagementModels } from "@azure/arm-appservice";
|
|
4
|
+
import { PluginImpl } from "../interface";
|
|
5
|
+
import { Func } from "@microsoft/teamsfx-api";
|
|
6
|
+
declare type Site = WebSiteManagementModels.Site;
|
|
7
|
+
export interface DotnetPluginConfig {
|
|
8
|
+
resourceGroupName?: string;
|
|
9
|
+
subscriptionId?: string;
|
|
10
|
+
resourceNameSuffix?: string;
|
|
11
|
+
location?: string;
|
|
12
|
+
webAppName?: string;
|
|
13
|
+
appServicePlanName?: string;
|
|
14
|
+
endpoint?: string;
|
|
15
|
+
domain?: string;
|
|
16
|
+
projectFilePath?: string;
|
|
17
|
+
webAppResourceId?: string;
|
|
18
|
+
site?: Site;
|
|
19
|
+
}
|
|
20
|
+
export declare class DotnetPluginImpl implements PluginImpl {
|
|
21
|
+
config: DotnetPluginConfig;
|
|
22
|
+
private syncConfigFromContext;
|
|
23
|
+
private checkAndGet;
|
|
24
|
+
scaffold(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
25
|
+
generateArmTemplates(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
26
|
+
updateArmTemplates(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
27
|
+
localDebug(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
28
|
+
postProvision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
29
|
+
preDeploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
30
|
+
executeUserTask(func: Func, ctx: PluginContext): Promise<TeamsFxResult>;
|
|
31
|
+
deploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EAId,MAAM,wBAAwB,CAAC;AAUhC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAmBhE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE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"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DotnetPluginImpl = 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 azure_client_1 = require("./utils/azure-client");
|
|
11
|
+
const enum_1 = require("./enum");
|
|
12
|
+
const errors_1 = require("./resources/errors");
|
|
13
|
+
const Deploy = tslib_1.__importStar(require("./ops/deploy"));
|
|
14
|
+
const logger_1 = require("../utils/logger");
|
|
15
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
16
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
17
|
+
const folder_1 = require("../../../../folder");
|
|
18
|
+
const tools_1 = require("../../../../common/tools");
|
|
19
|
+
const constants_2 = require("../../../../common/constants");
|
|
20
|
+
const ResourcePluginContainer_1 = require("../../../solution/fx-solution/ResourcePluginContainer");
|
|
21
|
+
const adaptor_1 = require("../../../solution/fx-solution/v2/adaptor");
|
|
22
|
+
class DotnetPluginImpl {
|
|
23
|
+
constructor() {
|
|
24
|
+
this.config = {};
|
|
25
|
+
}
|
|
26
|
+
syncConfigFromContext(ctx) {
|
|
27
|
+
const solutionConfig = ctx.envInfo.state.get(constants_1.DependentPluginInfo.solutionPluginName);
|
|
28
|
+
this.config.resourceGroupName = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.resourceGroupName);
|
|
29
|
+
this.config.subscriptionId = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.subscriptionId);
|
|
30
|
+
this.config.webAppName = ctx.config.get(constants_1.DotnetConfigInfo.webAppName);
|
|
31
|
+
this.config.appServicePlanName = ctx.config.get(constants_1.DotnetConfigInfo.appServicePlanName);
|
|
32
|
+
this.config.projectFilePath = ctx.config.get(constants_1.DotnetConfigInfo.projectFilePath);
|
|
33
|
+
// Resource id priors to other configs
|
|
34
|
+
const webAppResourceId = ctx.config.get(enum_1.DotnetConfigKey.webAppResourceId);
|
|
35
|
+
if (webAppResourceId) {
|
|
36
|
+
this.config.webAppResourceId = webAppResourceId;
|
|
37
|
+
this.config.resourceGroupName = tools_1.getResourceGroupNameFromResourceId(webAppResourceId);
|
|
38
|
+
this.config.webAppName = tools_1.getSiteNameFromResourceId(webAppResourceId);
|
|
39
|
+
this.config.subscriptionId = tools_1.getSubscriptionIdFromResourceId(webAppResourceId);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
checkAndGet(v, key) {
|
|
43
|
+
if (v) {
|
|
44
|
+
return v;
|
|
45
|
+
}
|
|
46
|
+
throw new errors_1.FetchConfigError(key);
|
|
47
|
+
}
|
|
48
|
+
async scaffold(ctx) {
|
|
49
|
+
return teamsfx_api_1.ok(undefined);
|
|
50
|
+
}
|
|
51
|
+
async generateArmTemplates(ctx) {
|
|
52
|
+
const bicepTemplateDirectory = constants_1.DotnetPathInfo.bicepTemplateFolder(folder_1.getTemplatesFolder());
|
|
53
|
+
const provisionTemplateFilePath = path_1.default.join(bicepTemplateDirectory, constants_2.Bicep.ProvisionFileName);
|
|
54
|
+
const provisionWebappTemplateFilePath = path_1.default.join(bicepTemplateDirectory, constants_1.WebappBicepFile.provisionTemplateFileName);
|
|
55
|
+
const configTemplateFilePath = path_1.default.join(bicepTemplateDirectory, constants_2.Bicep.ConfigFileName);
|
|
56
|
+
const configWebappTemplateFilePath = path_1.default.join(bicepTemplateDirectory, constants_1.WebappBicepFile.configurationTemplateFileName);
|
|
57
|
+
const solutionSettings = ctx.projectSettings.solutionSettings;
|
|
58
|
+
const plugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins(solutionSettings).map((p) => new adaptor_1.NamedArmResourcePluginAdaptor(p));
|
|
59
|
+
const pluginCtx = { plugins: plugins.map((obj) => obj.name) };
|
|
60
|
+
const provisionOrchestration = await tools_1.generateBicepFromFile(provisionTemplateFilePath, pluginCtx);
|
|
61
|
+
const provisionModule = await tools_1.generateBicepFromFile(provisionWebappTemplateFilePath, pluginCtx);
|
|
62
|
+
const configOrchestration = await tools_1.generateBicepFromFile(configTemplateFilePath, pluginCtx);
|
|
63
|
+
const configModule = await tools_1.generateBicepFromFile(configWebappTemplateFilePath, pluginCtx);
|
|
64
|
+
const result = {
|
|
65
|
+
Provision: {
|
|
66
|
+
Orchestration: provisionOrchestration,
|
|
67
|
+
Modules: { webapp: provisionModule },
|
|
68
|
+
},
|
|
69
|
+
Configuration: {
|
|
70
|
+
Orchestration: configOrchestration,
|
|
71
|
+
Modules: { webapp: configModule },
|
|
72
|
+
},
|
|
73
|
+
Reference: constants_1.WebappBicep.Reference,
|
|
74
|
+
};
|
|
75
|
+
return teamsfx_api_1.ok(result);
|
|
76
|
+
}
|
|
77
|
+
async updateArmTemplates(ctx) {
|
|
78
|
+
const bicepTemplateDirectory = constants_1.DotnetPathInfo.bicepTemplateFolder(folder_1.getTemplatesFolder());
|
|
79
|
+
const configWebappTemplateFilePath = path_1.default.join(bicepTemplateDirectory, constants_1.WebappBicepFile.configurationTemplateFileName);
|
|
80
|
+
const solutionSettings = ctx.projectSettings.solutionSettings;
|
|
81
|
+
const plugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins(solutionSettings).map((p) => new adaptor_1.NamedArmResourcePluginAdaptor(p));
|
|
82
|
+
const pluginCtx = { plugins: plugins.map((obj) => obj.name) };
|
|
83
|
+
const configModule = await tools_1.generateBicepFromFile(configWebappTemplateFilePath, pluginCtx);
|
|
84
|
+
const result = {
|
|
85
|
+
Reference: constants_1.WebappBicep.Reference,
|
|
86
|
+
Configuration: {
|
|
87
|
+
Modules: { webapp: configModule },
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
return teamsfx_api_1.ok(result);
|
|
91
|
+
}
|
|
92
|
+
async localDebug(ctx) {
|
|
93
|
+
return teamsfx_api_1.ok(undefined);
|
|
94
|
+
}
|
|
95
|
+
async postProvision(ctx) {
|
|
96
|
+
return teamsfx_api_1.ok(undefined);
|
|
97
|
+
}
|
|
98
|
+
async preDeploy(ctx) {
|
|
99
|
+
return teamsfx_api_1.ok(undefined);
|
|
100
|
+
}
|
|
101
|
+
async executeUserTask(func, ctx) {
|
|
102
|
+
return teamsfx_api_1.ok(undefined);
|
|
103
|
+
}
|
|
104
|
+
async deploy(ctx) {
|
|
105
|
+
var _a;
|
|
106
|
+
logger_1.Logger.info(messages_1.Messages.StartDeploy(constants_1.DotnetPluginInfo.displayName));
|
|
107
|
+
this.syncConfigFromContext(ctx);
|
|
108
|
+
const webAppName = this.checkAndGet(this.config.webAppName, enum_1.DotnetConfigKey.webAppName);
|
|
109
|
+
const resourceGroupName = this.checkAndGet(this.config.resourceGroupName, enum_1.DotnetConfigKey.resourceGroupName);
|
|
110
|
+
const subscriptionId = this.checkAndGet(this.config.subscriptionId, enum_1.DotnetConfigKey.subscriptionId);
|
|
111
|
+
const credential = this.checkAndGet(await ((_a = ctx.azureAccountProvider) === null || _a === void 0 ? void 0 : _a.getAccountCredentialAsync()), enum_1.DotnetConfigKey.credential);
|
|
112
|
+
const projectFilePath = path_1.default.resolve(ctx.root, this.checkAndGet(this.config.projectFilePath, enum_1.DotnetConfigKey.projectFilePath));
|
|
113
|
+
await errors_1.runWithErrorCatchAndThrow(new errors_1.ProjectPathError(projectFilePath), async () => await fs_extra_1.default.pathExists(projectFilePath));
|
|
114
|
+
const projectPath = path_1.default.dirname(projectFilePath);
|
|
115
|
+
const framework = await Deploy.getFrameworkVersion(projectFilePath);
|
|
116
|
+
const runtime = constants_1.DotnetPluginInfo.defaultRuntime;
|
|
117
|
+
const client = azure_client_1.AzureClientFactory.getWebSiteManagementClient(credential, subscriptionId);
|
|
118
|
+
await Deploy.build(projectPath, runtime);
|
|
119
|
+
const folderToBeZipped = constants_1.DotnetPathInfo.publishFolderPath(projectPath, framework, runtime);
|
|
120
|
+
await Deploy.zipDeploy(client, resourceGroupName, webAppName, folderToBeZipped);
|
|
121
|
+
logger_1.Logger.info(messages_1.Messages.EndDeploy(constants_1.DotnetPluginInfo.displayName));
|
|
122
|
+
return teamsfx_api_1.ok(undefined);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.DotnetPluginImpl = DotnetPluginImpl;
|
|
126
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/plugin.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAKgC;AAChC,2CAOqB;AACrB,mDAAgD;AAGhD,uDAA0D;AAC1D,iCAAsD;AACtD,+CAAmG;AACnG,6DAAuC;AACvC,4CAAyC;AACzC,wDAAwB;AACxB,gEAA0B;AAC1B,+CAAwD;AACxD,oDAKkC;AAClC,4DAAqD;AACrD,mGAAsG;AACtG,sEAAyF;AA0BzF,MAAa,gBAAgB;IAA7B;QACE,WAAM,GAAuB,EAAE,CAAC;IA8JlC,CAAC;IA5JS,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;QAE/F,IAAI,CAAC,MAAM,CAAC,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,GA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,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;AA/JD,4CA+JC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FrontendPluginError } from "../../resources/errors";
|
|
2
|
+
export declare enum ErrorType {
|
|
3
|
+
User = 0,
|
|
4
|
+
System = 1
|
|
5
|
+
}
|
|
6
|
+
export declare class DotnetPluginError 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 DotnetPluginError {
|
|
14
|
+
constructor(key: string);
|
|
15
|
+
}
|
|
16
|
+
export declare class ProjectPathError extends DotnetPluginError {
|
|
17
|
+
constructor(projectFilePath: string);
|
|
18
|
+
}
|
|
19
|
+
export declare class BuildError extends DotnetPluginError {
|
|
20
|
+
constructor(innerError?: Error);
|
|
21
|
+
}
|
|
22
|
+
export declare class ZipError extends DotnetPluginError {
|
|
23
|
+
constructor();
|
|
24
|
+
}
|
|
25
|
+
export declare class PublishCredentialError extends DotnetPluginError {
|
|
26
|
+
constructor();
|
|
27
|
+
}
|
|
28
|
+
export declare class UploadZipError extends DotnetPluginError {
|
|
29
|
+
constructor();
|
|
30
|
+
}
|
|
31
|
+
export declare const UnhandledErrorCode = "UnhandledError";
|
|
32
|
+
export declare const UnhandledErrorMessage = "Unhandled error.";
|
|
33
|
+
export declare function runWithErrorCatchAndThrow<T>(error: DotnetPluginError, fn: () => T | Promise<T>): Promise<T>;
|
|
34
|
+
export declare function runWithErrorCatchAndWrap<T>(wrap: (error: any) => DotnetPluginError, fn: () => T | Promise<T>): Promise<T>;
|
|
35
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/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;gBAGxB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EAAE,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE,KAAK;IAMpB,UAAU,IAAI,MAAM;IAIpB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAIjC,aAAa,IAAI,KAAK,GAAG,SAAS;CAGnC;AAED,qBAAa,gBAAiB,SAAQ,iBAAiB;gBACzC,GAAG,EAAE,MAAM;CAKxB;AAED,qBAAa,gBAAiB,SAAQ,iBAAiB;gBACzC,eAAe,EAAE,MAAM;CAMpC;AAED,qBAAa,UAAW,SAAQ,iBAAiB;gBACnC,UAAU,CAAC,EAAE,KAAK;CAU/B;AAED,qBAAa,QAAS,SAAQ,iBAAiB;;CAO9C;AAED,qBAAa,sBAAuB,SAAQ,iBAAiB;;CAO5D;AAED,qBAAa,cAAe,SAAQ,iBAAiB;;CAOpD;AAED,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AACnD,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AAExD,wBAAsB,yBAAyB,CAAC,CAAC,EAC/C,KAAK,EAAE,iBAAiB,EACxB,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GACvB,OAAO,CAAC,CAAC,CAAC,CAQZ;AAED,wBAAsB,wBAAwB,CAAC,CAAC,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"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.runWithErrorCatchAndWrap = exports.runWithErrorCatchAndThrow = exports.UnhandledErrorMessage = exports.UnhandledErrorCode = exports.UploadZipError = exports.PublishCredentialError = exports.ZipError = exports.BuildError = exports.ProjectPathError = exports.
|
|
5
|
+
exports.runWithErrorCatchAndWrap = exports.runWithErrorCatchAndThrow = exports.UnhandledErrorMessage = exports.UnhandledErrorCode = exports.UploadZipError = exports.PublishCredentialError = exports.ZipError = exports.BuildError = exports.ProjectPathError = exports.FetchConfigError = exports.DotnetPluginError = exports.ErrorType = void 0;
|
|
6
6
|
const logger_1 = require("../../utils/logger");
|
|
7
7
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
8
|
const errors_1 = require("../../resources/errors");
|
|
@@ -20,7 +20,7 @@ const tips = {
|
|
|
20
20
|
checkFsPermissions: "Check if you have Read/Write permissions to your file system.",
|
|
21
21
|
restoreEnvironment: `If you manually updated configuration files (under directory .${teamsfx_api_1.ConfigFolderName}), recover them.`,
|
|
22
22
|
};
|
|
23
|
-
class
|
|
23
|
+
class DotnetPluginError extends errors_1.FrontendPluginError {
|
|
24
24
|
constructor(errorType, code, message, suggestions, helpLink, innerError) {
|
|
25
25
|
super(errorType, code, message, suggestions, helpLink);
|
|
26
26
|
this.innerError = innerError;
|
|
@@ -35,8 +35,8 @@ class BlazorPluginError extends errors_1.FrontendPluginError {
|
|
|
35
35
|
return this.innerError;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
exports.
|
|
39
|
-
class FetchConfigError extends
|
|
38
|
+
exports.DotnetPluginError = DotnetPluginError;
|
|
39
|
+
class FetchConfigError extends DotnetPluginError {
|
|
40
40
|
constructor(key) {
|
|
41
41
|
super(ErrorType.User, "FetchConfigError", `Failed to find ${key} from configuration`, [
|
|
42
42
|
tips.restoreEnvironment,
|
|
@@ -44,19 +44,7 @@ class FetchConfigError extends BlazorPluginError {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.FetchConfigError = FetchConfigError;
|
|
47
|
-
class
|
|
48
|
-
constructor(resource, innerErrorCode) {
|
|
49
|
-
super(ErrorType.User, "ProvisionError", `Failed to check/create '${resource}' for blazor app${innerErrorCode ? `: ${innerErrorCode}` : ""}.`, [tips.reProvision]);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.ProvisionError = ProvisionError;
|
|
53
|
-
class ConfigureWebAppError extends BlazorPluginError {
|
|
54
|
-
constructor(innerErrorCode) {
|
|
55
|
-
super(ErrorType.User, "ConfigureWebAppError", `Failed to retrieve or update Azure Web App Settings${innerErrorCode ? `: ${innerErrorCode}` : ""}.`, [tips.reProvision]);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.ConfigureWebAppError = ConfigureWebAppError;
|
|
59
|
-
class ProjectPathError extends BlazorPluginError {
|
|
47
|
+
class ProjectPathError extends DotnetPluginError {
|
|
60
48
|
constructor(projectFilePath) {
|
|
61
49
|
super(ErrorType.User, "ProjectPathError", `Failed to find target project ${projectFilePath}.`, [
|
|
62
50
|
tips.checkLog,
|
|
@@ -65,13 +53,13 @@ class ProjectPathError extends BlazorPluginError {
|
|
|
65
53
|
}
|
|
66
54
|
}
|
|
67
55
|
exports.ProjectPathError = ProjectPathError;
|
|
68
|
-
class BuildError extends
|
|
56
|
+
class BuildError extends DotnetPluginError {
|
|
69
57
|
constructor(innerError) {
|
|
70
|
-
super(ErrorType.User, "BuildError", "Failed to build
|
|
58
|
+
super(ErrorType.User, "BuildError", "Failed to build Dotnet project.", [tips.checkLog, tips.reDeploy], undefined, innerError);
|
|
71
59
|
}
|
|
72
60
|
}
|
|
73
61
|
exports.BuildError = BuildError;
|
|
74
|
-
class ZipError extends
|
|
62
|
+
class ZipError extends DotnetPluginError {
|
|
75
63
|
constructor() {
|
|
76
64
|
super(ErrorType.User, "ZipError", "Failed to generate zip package.", [
|
|
77
65
|
tips.checkFsPermissions,
|
|
@@ -80,7 +68,7 @@ class ZipError extends BlazorPluginError {
|
|
|
80
68
|
}
|
|
81
69
|
}
|
|
82
70
|
exports.ZipError = ZipError;
|
|
83
|
-
class PublishCredentialError extends
|
|
71
|
+
class PublishCredentialError extends DotnetPluginError {
|
|
84
72
|
constructor() {
|
|
85
73
|
super(ErrorType.User, "PublishCredentialError", "Failed to retrieve publish credential.", [
|
|
86
74
|
tips.doProvision,
|
|
@@ -89,7 +77,7 @@ class PublishCredentialError extends BlazorPluginError {
|
|
|
89
77
|
}
|
|
90
78
|
}
|
|
91
79
|
exports.PublishCredentialError = PublishCredentialError;
|
|
92
|
-
class UploadZipError extends
|
|
80
|
+
class UploadZipError extends DotnetPluginError {
|
|
93
81
|
constructor() {
|
|
94
82
|
super(ErrorType.User, "UploadZipError", "Failed to upload zip package.", [
|
|
95
83
|
tips.checkNetwork,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/errors.ts"],"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ACF,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KACpC;IAAC,OAAO,CAAM,EAAE;QACf,eAAM,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3B,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACvB,MAAM,KAAK,CAAC;KACb;AACH,CAAC;AAXD,8DAWC;AAEM,KAAK,UAAU,wBAAwB,CAC5C,IAAuC,EACvC,EAAwB;IAExB,IAAI;QACF,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KACpC;IAAC,OAAO,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,10 +1,6 @@
|
|
|
1
1
|
export declare class Messages {
|
|
2
2
|
static readonly StartScaffold: (name: string) => string;
|
|
3
3
|
static readonly EndScaffold: (name: string) => string;
|
|
4
|
-
static readonly StartPreProvision: (name: string) => string;
|
|
5
|
-
static readonly EndPreProvision: (name: string) => string;
|
|
6
|
-
static readonly StartProvision: (name: string) => string;
|
|
7
|
-
static readonly EndProvision: (name: string) => string;
|
|
8
4
|
static readonly StartPreDeploy: (name: string) => string;
|
|
9
5
|
static readonly EndPreDeploy: (name: string) => string;
|
|
10
6
|
static readonly StartDeploy: (name: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/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,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"}
|
|
@@ -9,10 +9,6 @@ exports.Messages = Messages;
|
|
|
9
9
|
// Logging messages
|
|
10
10
|
Messages.StartScaffold = (name) => `Scaffolding '${name}'.`;
|
|
11
11
|
Messages.EndScaffold = (name) => `Successfully scaffolded '${name}'.`;
|
|
12
|
-
Messages.StartPreProvision = (name) => `Pre-provisioning '${name}'.`;
|
|
13
|
-
Messages.EndPreProvision = (name) => `Successfully pre-provisioned '${name}'.`;
|
|
14
|
-
Messages.StartProvision = (name) => `Provisioning '${name}'.`;
|
|
15
|
-
Messages.EndProvision = (name) => `Successfully provisioned '${name}'.`;
|
|
16
12
|
Messages.StartPreDeploy = (name) => `Pre-deploying '${name}'.`;
|
|
17
13
|
Messages.EndPreDeploy = (name) => `Pre-deployed '${name}'.`;
|
|
18
14
|
Messages.StartDeploy = (name) => `Deploying '${name}'.`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/messages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,MAAa,QAAQ;;AAArB,4BAQC;AAPC,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,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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TokenCredentialsBase } from "@azure/ms-rest-nodeauth";
|
|
2
|
+
import { WebSiteManagementClient } from "@azure/arm-appservice";
|
|
3
|
+
export declare class AzureClientFactory {
|
|
4
|
+
static getWebSiteManagementClient(credentials: TokenCredentialsBase, subscriptionId: string): WebSiteManagementClient;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=azure-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azure-client.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/utils/azure-client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,qBAAa,kBAAkB;WACf,0BAA0B,CACtC,WAAW,EAAE,oBAAoB,EACjC,cAAc,EAAE,MAAM,GACrB,uBAAuB;CAG3B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AzureClientFactory = void 0;
|
|
4
|
+
const arm_appservice_1 = require("@azure/arm-appservice");
|
|
5
|
+
class AzureClientFactory {
|
|
6
|
+
static getWebSiteManagementClient(credentials, subscriptionId) {
|
|
7
|
+
return new arm_appservice_1.WebSiteManagementClient(credentials, subscriptionId);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.AzureClientFactory = AzureClientFactory;
|
|
11
|
+
//# sourceMappingURL=azure-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azure-client.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/utils/azure-client.ts"],"names":[],"mappings":";;;AAGA,0DAAgE;AAEhE,MAAa,kBAAkB;IACtB,MAAM,CAAC,0BAA0B,CACtC,WAAiC,EACjC,cAAsB;QAEtB,OAAO,IAAI,wCAAuB,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IAClE,CAAC;CACF;AAPD,gDAOC"}
|
|
@@ -2,22 +2,25 @@ import { FrontendPluginImpl } from "./plugin";
|
|
|
2
2
|
import { Plugin, PluginContext, AzureSolutionSettings, Func } from "@microsoft/teamsfx-api";
|
|
3
3
|
import { TeamsFxResult } from "./error-factory";
|
|
4
4
|
import "./v2";
|
|
5
|
-
import
|
|
5
|
+
import "./v3";
|
|
6
|
+
import { DotnetPluginImpl } from "./dotnet/plugin";
|
|
6
7
|
export declare class FrontendPlugin implements Plugin {
|
|
7
8
|
name: string;
|
|
8
9
|
displayName: string;
|
|
9
10
|
activate(solutionSettings: AzureSolutionSettings): boolean;
|
|
10
11
|
frontendPluginImpl: FrontendPluginImpl;
|
|
11
|
-
|
|
12
|
+
dotnetPluginImpl: DotnetPluginImpl;
|
|
13
|
+
private getImpl;
|
|
12
14
|
private static setContext;
|
|
15
|
+
private static isVsPlatform;
|
|
13
16
|
scaffold(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
14
|
-
preProvision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
15
17
|
provision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
16
18
|
postProvision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
17
19
|
preDeploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
18
20
|
deploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
19
21
|
updateArmTemplates(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
20
22
|
generateArmTemplates(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
23
|
+
localDebug(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
21
24
|
executeUserTask(func: Func, ctx: PluginContext): Promise<TeamsFxResult>;
|
|
22
25
|
private runWithErrorHandling;
|
|
23
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/frontend/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EACL,MAAM,EACN,aAAa,EAIb,qBAAqB,EAErB,IAAI,EACL,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAgB,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAgB9D,OAAO,MAAM,CAAC;AACd,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/frontend/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EACL,MAAM,EACN,aAAa,EAIb,qBAAqB,EAErB,IAAI,EACL,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAgB,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAgB9D,OAAO,MAAM,CAAC;AACd,OAAO,MAAM,CAAC;AACd,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAInD,qBACa,cAAe,YAAW,MAAM;IAC3C,IAAI,SAAkC;IACtC,WAAW,SAAmB;IAC9B,QAAQ,CAAC,gBAAgB,EAAE,qBAAqB,GAAG,OAAO;IAI1D,kBAAkB,qBAA4B;IAC9C,gBAAgB,mBAA0B;IAE1C,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,MAAM,CAAC,UAAU;IAQzB,OAAO,CAAC,MAAM,CAAC,YAAY;IAId,QAAQ,CAAC,GAAG,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