@microsoft/teamsfx-core 1.2.1 → 1.2.2-alpha.01a113d2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common/armInterface.d.ts +0 -20
- package/build/common/armInterface.d.ts.map +1 -1
- package/build/common/deps-checker/constant/message.d.ts +0 -1
- package/build/common/deps-checker/constant/message.d.ts.map +1 -1
- package/build/common/deps-checker/constant/message.js +0 -4
- package/build/common/deps-checker/constant/message.js.map +1 -1
- package/build/common/deps-checker/depsChecker.d.ts +1 -0
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.js.map +1 -1
- package/build/common/deps-checker/depsManager.d.ts +2 -1
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +12 -7
- package/build/common/deps-checker/depsManager.js.map +1 -1
- package/build/common/deps-checker/index.d.ts +1 -0
- package/build/common/deps-checker/index.d.ts.map +1 -1
- package/build/common/deps-checker/index.js +1 -0
- package/build/common/deps-checker/index.js.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.js +2 -1
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js +2 -1
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.js +2 -4
- package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts +1 -0
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +9 -1
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/deps-checker/util/extensionInstaller.d.ts +3 -0
- package/build/common/deps-checker/util/extensionInstaller.d.ts.map +1 -0
- package/build/common/deps-checker/util/extensionInstaller.js +47 -0
- package/build/common/deps-checker/util/extensionInstaller.js.map +1 -0
- package/build/common/deps-checker/util/index.d.ts +5 -0
- package/build/common/deps-checker/util/index.d.ts.map +1 -0
- package/build/common/deps-checker/util/index.js +10 -0
- package/build/common/deps-checker/util/index.js.map +1 -0
- package/build/common/index.d.ts +1 -3
- package/build/common/index.d.ts.map +1 -1
- package/build/common/index.js +1 -3
- package/build/common/index.js.map +1 -1
- package/build/common/local/constants.d.ts +5 -0
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +7 -1
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/index.d.ts +6 -0
- package/build/common/local/index.d.ts.map +1 -0
- package/build/common/local/index.js +11 -0
- package/build/common/local/index.js.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util/certificate.d.ts → common/local/localCertificateManager.d.ts} +4 -6
- package/build/common/local/localCertificateManager.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util/certificate.js → common/local/localCertificateManager.js} +37 -47
- package/build/common/local/localCertificateManager.js.map +1 -0
- package/build/common/local/localEnvManager.d.ts +6 -2
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +41 -1
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/common/local/packageJsonHelper.d.ts +1 -0
- package/build/common/local/packageJsonHelper.d.ts.map +1 -1
- package/build/common/local/packageJsonHelper.js +29 -1
- package/build/common/local/packageJsonHelper.js.map +1 -1
- package/build/common/local/portChecker.d.ts.map +1 -1
- package/build/common/local/portChecker.js +18 -48
- package/build/common/local/portChecker.js.map +1 -1
- package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.d.ts +0 -0
- package/build/common/local/process.d.ts.map +1 -0
- package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.js +0 -0
- package/build/common/local/process.js.map +1 -0
- package/build/common/local/projectSettingsHelper.d.ts +5 -5
- package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/local/projectSettingsHelper.js +28 -21
- package/build/common/local/projectSettingsHelper.js.map +1 -1
- package/build/common/local/taskDefinition.d.ts +1 -1
- package/build/common/local/taskDefinition.d.ts.map +1 -1
- package/build/common/local/taskDefinition.js +7 -5
- package/build/common/local/taskDefinition.js.map +1 -1
- package/build/common/localSettingsConstants.d.ts +1 -0
- package/build/common/localSettingsConstants.d.ts.map +1 -1
- package/build/common/localSettingsConstants.js +1 -0
- package/build/common/localSettingsConstants.js.map +1 -1
- package/build/common/localSettingsProvider.d.ts.map +1 -1
- package/build/common/localSettingsProvider.js +1 -0
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/permissionInterface.d.ts +2 -0
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +2 -0
- package/build/common/permissionInterface.js.map +1 -1
- package/build/common/samples-config.json +24 -12
- package/build/common/samples.d.ts +1 -0
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +1 -0
- package/build/common/samples.js.map +1 -1
- package/build/common/telemetry.d.ts +7 -2
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +10 -4
- package/build/common/telemetry.js.map +1 -1
- package/build/common/{templates.d.ts → template-utils/templates.d.ts} +0 -0
- package/build/common/template-utils/templates.d.ts.map +1 -0
- package/build/common/{templates.js → template-utils/templates.js} +1 -1
- package/build/common/template-utils/templates.js.map +1 -0
- package/build/common/{templatesActions.d.ts → template-utils/templatesActions.d.ts} +0 -0
- package/build/common/template-utils/templatesActions.d.ts.map +1 -0
- package/build/common/{templatesActions.js → template-utils/templatesActions.js} +3 -3
- package/build/common/template-utils/templatesActions.js.map +1 -0
- package/build/common/{templatesUtils.d.ts → template-utils/templatesUtils.d.ts} +0 -0
- package/build/common/template-utils/templatesUtils.d.ts.map +1 -0
- package/build/common/{templatesUtils.js → template-utils/templatesUtils.js} +1 -1
- package/build/common/template-utils/templatesUtils.js.map +1 -0
- package/build/common/templates-config.json +1 -1
- package/build/common/tools.d.ts +1 -4
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +41 -12
- package/build/common/tools.js.map +1 -1
- package/build/core/index.d.ts +2 -2
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +14 -3
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/errorHandler.js +2 -1
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/projectMigrator.d.ts.map +1 -1
- package/build/core/middleware/projectMigrator.js +1 -11
- package/build/core/middleware/projectMigrator.js.map +1 -1
- package/build/core/permissionRequest.js +2 -2
- package/build/core/permissionRequest.js.map +1 -1
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +7 -4
- package/build/core/question.js.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.d.ts +2 -2
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +3 -4
- package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
- package/build/plugins/resource/aad/errors.d.ts.map +1 -1
- package/build/plugins/resource/aad/errors.js +1 -2
- package/build/plugins/resource/aad/errors.js.map +1 -1
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts +4 -0
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +33 -46
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/common.d.ts +2 -0
- package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/common.js +14 -14
- package/build/plugins/resource/aad/utils/common.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts +1 -0
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +20 -38
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/aad/v2/index.d.ts +2 -2
- package/build/plugins/resource/aad/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/v2/index.js +2 -1
- package/build/plugins/resource/aad/v2/index.js.map +1 -1
- package/build/plugins/resource/apim/error.d.ts.map +1 -1
- package/build/plugins/resource/apim/error.js +1 -4
- package/build/plugins/resource/apim/error.js.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.js +23 -62
- package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.js +0 -7
- package/build/plugins/resource/apim/managers/questionManager.js.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.js +6 -13
- package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
- package/build/plugins/resource/apim/v2/index.d.ts +2 -2
- package/build/plugins/resource/apim/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/v2/index.js +2 -1
- package/build/plugins/resource/apim/v2/index.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +5 -2
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +82 -11
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts +2 -36
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +1 -31
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.js +18 -10
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +1 -0
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +14 -1
- package/build/plugins/resource/appstudio/plugin.js.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.d.ts +2 -2
- package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.js +2 -1
- package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts +1 -3
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.js +42 -16
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.d.ts.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.js +0 -10
- package/build/plugins/resource/bot/configs/provisionConfig.js.map +1 -1
- package/build/plugins/resource/bot/dotnet/constants.d.ts +5 -0
- package/build/plugins/resource/bot/dotnet/constants.d.ts.map +1 -0
- package/build/plugins/resource/bot/dotnet/constants.js +13 -0
- package/build/plugins/resource/bot/dotnet/constants.js.map +1 -0
- package/build/plugins/resource/bot/dotnet/plugin.d.ts +14 -0
- package/build/plugins/resource/bot/dotnet/plugin.d.ts.map +1 -0
- package/build/plugins/resource/bot/dotnet/plugin.js +62 -0
- package/build/plugins/resource/bot/dotnet/plugin.js.map +1 -0
- package/build/plugins/resource/bot/index.d.ts +5 -0
- package/build/plugins/resource/bot/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/index.js +23 -13
- package/build/plugins/resource/bot/index.js.map +1 -1
- package/build/plugins/resource/bot/interface.d.ts +16 -0
- package/build/plugins/resource/bot/interface.d.ts.map +1 -0
- package/build/plugins/resource/bot/interface.js +5 -0
- package/build/plugins/resource/bot/interface.js.map +1 -0
- package/build/plugins/resource/bot/languageStrategy.d.ts +1 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.js +1 -1
- package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
- package/build/plugins/resource/bot/plugin.d.ts +2 -1
- package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/plugin.js +16 -135
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/bot/v2/index.d.ts +2 -2
- package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/v2/index.js +2 -1
- package/build/plugins/resource/bot/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/configs.d.ts +1 -1
- package/build/plugins/resource/frontend/configs.d.ts.map +1 -1
- package/build/plugins/resource/frontend/configs.js +3 -9
- package/build/plugins/resource/frontend/configs.js.map +1 -1
- package/build/plugins/resource/frontend/constants.d.ts +2 -8
- package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/constants.js +3 -11
- package/build/plugins/resource/frontend/constants.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/constants.d.ts +56 -0
- package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/constants.js +73 -0
- package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/enum.js +39 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts +0 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js +3 -3
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts +0 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js +3 -3
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +34 -0
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js +124 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +35 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/errors.js +10 -22
- package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.d.ts +0 -4
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.js +0 -4
- package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts +6 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js +11 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js.map +1 -0
- package/build/plugins/resource/frontend/index.d.ts +6 -3
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +27 -45
- package/build/plugins/resource/frontend/index.js.map +1 -1
- package/build/plugins/resource/frontend/interface.d.ts +13 -0
- package/build/plugins/resource/frontend/interface.d.ts.map +1 -0
- package/build/plugins/resource/frontend/interface.js +5 -0
- package/build/plugins/resource/frontend/interface.js.map +1 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts +3 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +43 -0
- package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts +3 -3
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +15 -47
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.d.ts +23 -20
- package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.js +31 -67
- package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
- package/build/plugins/resource/frontend/utils/logger.d.ts +3 -1
- package/build/plugins/resource/frontend/utils/logger.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/logger.js +9 -6
- package/build/plugins/resource/frontend/utils/logger.js.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts +0 -8
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js +1 -19
- package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/frontend/v2/index.d.ts +3 -2
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js +5 -1
- package/build/plugins/resource/frontend/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts +15 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js +149 -0
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js.map +1 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts +8 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js +95 -0
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js.map +1 -0
- package/build/plugins/resource/frontend/v3/error.d.ts +23 -0
- package/build/plugins/resource/frontend/v3/error.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/error.js +66 -0
- package/build/plugins/resource/frontend/v3/error.js.map +1 -0
- package/build/plugins/resource/frontend/v3/index.d.ts +3 -0
- package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/frontend/v3/index.js +7 -0
- package/build/plugins/resource/frontend/v3/index.js.map +1 -0
- package/build/plugins/resource/function/index.d.ts +1 -1
- package/build/plugins/resource/function/index.d.ts.map +1 -1
- package/build/plugins/resource/function/index.js +8 -21
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/function/ops/deploy.js +8 -9
- package/build/plugins/resource/function/ops/deploy.js.map +1 -1
- package/build/plugins/resource/function/ops/scaffold.js +1 -1
- package/build/plugins/resource/function/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/function/plugin.d.ts.map +1 -1
- package/build/plugins/resource/function/plugin.js +35 -138
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/function/resources/message.d.ts +0 -1
- package/build/plugins/resource/function/resources/message.d.ts.map +1 -1
- package/build/plugins/resource/function/resources/message.js +0 -1
- package/build/plugins/resource/function/resources/message.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +11 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js +48 -0
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js.map +1 -0
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts +6 -4
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js +15 -8
- package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts +4 -3
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js +5 -4
- package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js.map +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts +1 -1
- package/build/plugins/resource/function/utils/telemetry-helper.d.ts.map +1 -1
- package/build/plugins/resource/function/v2/index.d.ts +2 -2
- package/build/plugins/resource/function/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/function/v2/index.js +2 -1
- package/build/plugins/resource/function/v2/index.js.map +1 -1
- package/build/plugins/resource/identity/index.d.ts +0 -1
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +3 -22
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/identity/v2/index.d.ts +2 -2
- package/build/plugins/resource/identity/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/v2/index.js +2 -1
- package/build/plugins/resource/identity/v2/index.js.map +1 -1
- package/build/plugins/resource/keyvault/plugin.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/plugin.js +1 -2
- package/build/plugins/resource/keyvault/plugin.js.map +1 -1
- package/build/plugins/resource/keyvault/v2/index.d.ts +2 -2
- package/build/plugins/resource/keyvault/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/v2/index.js +2 -1
- package/build/plugins/resource/keyvault/v2/index.js.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.d.ts +2 -2
- package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.js +2 -1
- package/build/plugins/resource/localdebug/v2/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/index.js +6 -11
- package/build/plugins/resource/simpleauth/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.js +2 -7
- package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
- package/build/plugins/resource/simpleauth/v2/index.d.ts +2 -2
- package/build/plugins/resource/simpleauth/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/v2/index.js +2 -1
- package/build/plugins/resource/simpleauth/v2/index.js.map +1 -1
- package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
- package/build/plugins/resource/spfx/plugin.js +14 -9
- package/build/plugins/resource/spfx/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.d.ts +5 -4
- package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.js +5 -4
- package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/spfx/v2/index.d.ts +2 -2
- package/build/plugins/resource/spfx/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/spfx/v2/index.js +2 -1
- package/build/plugins/resource/spfx/v2/index.js.map +1 -1
- package/build/plugins/resource/sql/config.d.ts +1 -0
- package/build/plugins/resource/sql/config.d.ts.map +1 -1
- package/build/plugins/resource/sql/config.js +1 -0
- package/build/plugins/resource/sql/config.js.map +1 -1
- package/build/plugins/resource/sql/constants.d.ts +3 -0
- package/build/plugins/resource/sql/constants.d.ts.map +1 -1
- package/build/plugins/resource/sql/constants.js +3 -0
- package/build/plugins/resource/sql/constants.js.map +1 -1
- package/build/plugins/resource/sql/errors.d.ts +1 -1
- package/build/plugins/resource/sql/errors.d.ts.map +1 -1
- package/build/plugins/resource/sql/errors.js +1 -1
- package/build/plugins/resource/sql/errors.js.map +1 -1
- package/build/plugins/resource/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +11 -11
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/managementClient.js +14 -14
- package/build/plugins/resource/sql/managementClient.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts +3 -0
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +76 -68
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts +2 -2
- package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/sqlClient.js +13 -12
- package/build/plugins/resource/sql/sqlClient.js.map +1 -1
- package/build/plugins/resource/sql/v2/index.d.ts +2 -2
- package/build/plugins/resource/sql/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/v2/index.js +2 -1
- package/build/plugins/resource/sql/v2/index.js.map +1 -1
- package/build/plugins/resource/utils4v2.d.ts +1 -1
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +3 -3
- package/build/plugins/resource/utils4v2.js.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts +3 -3
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +3 -3
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +9 -2
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +44 -13
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts +4 -3
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +11 -10
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +1 -0
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +1 -0
- package/build/plugins/solution/fx-solution/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.d.ts +0 -5
- package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.js +1 -7
- package/build/plugins/solution/fx-solution/debug/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js +6 -4
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +2 -2
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.js +5 -3
- package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts +2 -2
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +32 -22
- package/build/plugins/solution/fx-solution/question.js.map +1 -1
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +15 -15
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts +31 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js +222 -0
- package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/adaptor.js +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/checkPermission.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/checkPermission.js +1 -2
- package/build/plugins/solution/fx-solution/v2/checkPermission.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.js +1 -3
- package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.js +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +196 -122
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +9 -16
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.js +84 -99
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/grantPermission.js +1 -2
- package/build/plugins/solution/fx-solution/v2/grantPermission.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/listCollaborator.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/listCollaborator.js +6 -1
- package/build/plugins/solution/fx-solution/v2/listCollaborator.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/publish.js +1 -1
- package/build/plugins/solution/fx-solution/v2/publish.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.js +16 -2
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.d.ts +3 -3
- package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +7 -5
- package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts +2 -4
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addModule.js +29 -6
- package/build/plugins/solution/fx-solution/v3/addModule.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts +6 -14
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.js +23 -51
- package/build/plugins/solution/fx-solution/v3/addResource.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.d.ts +2 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.js +2 -0
- package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts +1 -3
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/init.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/init.js +9 -0
- package/build/plugins/solution/fx-solution/v3/init.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts +8 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.js +219 -16
- package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js +96 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +8 -13
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.js +30 -52
- package/build/plugins/solution/fx-solution/v3/scaffold.js.map +1 -1
- package/build/plugins/solution/spfx-solution/addModule.d.ts +2 -4
- package/build/plugins/solution/spfx-solution/addModule.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/addModule.js +1 -1
- package/build/plugins/solution/spfx-solution/addModule.js.map +1 -1
- package/build/plugins/solution/spfx-solution/scaffold.d.ts +2 -10
- package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/scaffold.js +3 -39
- package/build/plugins/solution/spfx-solution/scaffold.js.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.d.ts +12 -17
- package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.js +7 -7
- package/build/plugins/solution/spfx-solution/solution.js.map +1 -1
- package/package.json +14 -9
- package/resource/strings.json +23 -8
- package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +1 -0
- package/templates/plugins/resource/apim/bicep/apimProvision.bicep +7 -5
- package/templates/plugins/resource/apim/bicep/config.template.bicep +1 -0
- package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +12 -12
- package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +15 -11
- package/templates/plugins/resource/bot/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/botservice/bicep/botServiceProvision.template.bicep +34 -0
- package/templates/plugins/resource/botservice/bicep/parameters.json +4 -0
- package/templates/plugins/resource/botservice/bicep/provision.template.bicep +13 -0
- package/templates/plugins/resource/frontend/bicep/frontendHostingProvision.bicep +4 -2
- package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -0
- package/templates/plugins/resource/function/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +15 -15
- package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +17 -14
- package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +2 -1
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +9 -7
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +2 -0
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +7 -7
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +9 -6
- package/templates/plugins/resource/sql/bicep/newDatabase.orchestration.template.bicep +5 -0
- package/templates/plugins/resource/sql/bicep/newDatabaseProvision.template.bicep +15 -0
- package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +9 -5
- package/templates/plugins/resource/storage/bicep/azureStorageProvision.bicep +25 -0
- package/templates/plugins/resource/storage/bicep/provision.template.bicep +15 -0
- package/templates/plugins/resource/webapp/bicep/config.template.bicep +10 -0
- package/templates/plugins/resource/webapp/bicep/provision.template.bicep +16 -0
- package/templates/plugins/resource/webapp/bicep/webappConfiguration.template.bicep +74 -0
- package/templates/plugins/resource/webapp/bicep/webappProvision.template.bicep +48 -0
- package/build/common/templates.d.ts.map +0 -1
- package/build/common/templates.js.map +0 -1
- package/build/common/templatesActions.d.ts.map +0 -1
- package/build/common/templatesActions.js.map +0 -1
- package/build/common/templatesUtils.d.ts.map +0 -1
- package/build/common/templatesUtils.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/constants.d.ts +0 -75
- package/build/plugins/resource/frontend/blazor/constants.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/constants.js +0 -98
- package/build/plugins/resource/frontend/blazor/constants.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/enum.js +0 -39
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts +0 -8
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/ops/provision.js +0 -42
- package/build/plugins/resource/frontend/blazor/ops/provision.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.d.ts +0 -35
- package/build/plugins/resource/frontend/blazor/plugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.js +0 -190
- package/build/plugins/resource/frontend/blazor/plugin.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts +0 -41
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts +0 -21
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js +0 -47
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.d.ts +0 -12
- package/build/plugins/resource/frontend/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.js +0 -29
- package/build/plugins/resource/frontend/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts +0 -9
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js +0 -55
- package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts +0 -54
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.js +0 -104
- package/build/plugins/resource/function/utils/depsChecker/checker.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts +0 -84
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/common.js +0 -136
- package/build/plugins/resource/function/utils/depsChecker/common.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts +0 -22
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.js +0 -105
- package/build/plugins/resource/function/utils/depsChecker/cpUtils.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts +0 -53
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js +0 -387
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/errors.d.ts +0 -14
- package/build/plugins/resource/function/utils/depsChecker/errors.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/errors.js +0 -41
- package/build/plugins/resource/function/utils/depsChecker/errors.js.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts +0 -26
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts.map +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js +0 -111
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/certificate.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/certificate.js.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/process.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/debug/util/process.js.map +0 -1
- package/resource/plugins/resource/function/dotnet-install.ps1 +0 -1095
- package/resource/plugins/resource/function/dotnet-install.sh +0 -1222
|
@@ -2,53 +2,20 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.scaffold = exports.getQuestionsForScaffold = exports.SPFxScaffoldPlugin = exports.BlazorScaffoldPlugin = exports.BotScaffoldPlugin =
|
|
5
|
+
exports.scaffold = exports.getQuestionsForScaffold = exports.SPFxScaffoldPlugin = exports.BlazorScaffoldPlugin = exports.BotScaffoldPlugin = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
8
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
9
9
|
const path = tslib_1.__importStar(require("path"));
|
|
10
10
|
const typedi_1 = require("typedi");
|
|
11
|
-
const
|
|
11
|
+
const error_1 = require("../../utils/error");
|
|
12
12
|
const questions_1 = require("../../utils/questions");
|
|
13
|
+
const scaffolding_1 = require("../debug/scaffolding");
|
|
14
|
+
const constants_1 = require("./constants");
|
|
13
15
|
const utils_1 = require("./utils");
|
|
14
|
-
const error_1 = require("../../utils/error");
|
|
15
|
-
let ReactTabScaffoldPlugin = class ReactTabScaffoldPlugin {
|
|
16
|
-
constructor() {
|
|
17
|
-
this.name = constants_1.BuiltInScaffoldPluginNames.tab;
|
|
18
|
-
}
|
|
19
|
-
async getTemplates(ctx, inputs) {
|
|
20
|
-
return teamsfx_api_1.ok([
|
|
21
|
-
{
|
|
22
|
-
name: "ReactTab_JS",
|
|
23
|
-
language: "javascript",
|
|
24
|
-
description: "ReactTab Javascript",
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: "ReactTab_TS",
|
|
28
|
-
language: "typescript",
|
|
29
|
-
description: "ReactTab Typescript",
|
|
30
|
-
},
|
|
31
|
-
]);
|
|
32
|
-
}
|
|
33
|
-
async scaffold(ctx, inputs) {
|
|
34
|
-
ctx.logProvider.info("fx-scaffold-react-tab:scaffold");
|
|
35
|
-
if (!inputs.test)
|
|
36
|
-
await fs_extra_1.default.ensureDir(path.join(inputs.projectPath, "tabs"));
|
|
37
|
-
const solutionSettings = ctx.projectSetting.solutionSettings;
|
|
38
|
-
const module = utils_1.getModule(solutionSettings, inputs.module);
|
|
39
|
-
if (module) {
|
|
40
|
-
module.dir = "tabs";
|
|
41
|
-
module.deployType = "folder";
|
|
42
|
-
}
|
|
43
|
-
return teamsfx_api_1.ok(undefined);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
ReactTabScaffoldPlugin = tslib_1.__decorate([
|
|
47
|
-
typedi_1.Service(constants_1.BuiltInScaffoldPluginNames.tab)
|
|
48
|
-
], ReactTabScaffoldPlugin);
|
|
49
|
-
exports.ReactTabScaffoldPlugin = ReactTabScaffoldPlugin;
|
|
50
16
|
let BotScaffoldPlugin = class BotScaffoldPlugin {
|
|
51
17
|
constructor() {
|
|
18
|
+
this.type = "scaffold";
|
|
52
19
|
this.name = constants_1.BuiltInScaffoldPluginNames.bot;
|
|
53
20
|
}
|
|
54
21
|
async getTemplates(ctx, inputs) {
|
|
@@ -84,6 +51,7 @@ BotScaffoldPlugin = tslib_1.__decorate([
|
|
|
84
51
|
exports.BotScaffoldPlugin = BotScaffoldPlugin;
|
|
85
52
|
let BlazorScaffoldPlugin = class BlazorScaffoldPlugin {
|
|
86
53
|
constructor() {
|
|
54
|
+
this.type = "scaffold";
|
|
87
55
|
this.name = constants_1.BuiltInScaffoldPluginNames.blazor;
|
|
88
56
|
}
|
|
89
57
|
async getTemplates(ctx, inputs) {
|
|
@@ -124,6 +92,7 @@ BlazorScaffoldPlugin = tslib_1.__decorate([
|
|
|
124
92
|
exports.BlazorScaffoldPlugin = BlazorScaffoldPlugin;
|
|
125
93
|
let SPFxScaffoldPlugin = class SPFxScaffoldPlugin {
|
|
126
94
|
constructor() {
|
|
95
|
+
this.type = "scaffold";
|
|
127
96
|
this.name = constants_1.BuiltInScaffoldPluginNames.spfx;
|
|
128
97
|
}
|
|
129
98
|
async getTemplates(ctx, inputs) {
|
|
@@ -209,7 +178,7 @@ async function getQuestionsForScaffold(ctx, inputs) {
|
|
|
209
178
|
return teamsfx_api_1.ok(node);
|
|
210
179
|
}
|
|
211
180
|
exports.getQuestionsForScaffold = getQuestionsForScaffold;
|
|
212
|
-
async function scaffold(ctx, inputs) {
|
|
181
|
+
async function scaffold(ctx, inputs, localSettings) {
|
|
213
182
|
if (!inputs.template) {
|
|
214
183
|
return teamsfx_api_1.err(new error_1.InvalidInputError(inputs));
|
|
215
184
|
}
|
|
@@ -222,19 +191,28 @@ async function scaffold(ctx, inputs) {
|
|
|
222
191
|
const templateName = data.templateName;
|
|
223
192
|
const plugin = typedi_1.Container.get(pluginName);
|
|
224
193
|
const pluginInputs = Object.assign(Object.assign({}, inputs), { template: templateName });
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
194
|
+
// read manifest
|
|
195
|
+
const appStudio = typedi_1.Container.get(constants_1.BuiltInResourcePluginNames.appStudio);
|
|
196
|
+
const manifestRes = await appStudio.loadManifest(ctx, inputs);
|
|
197
|
+
if (manifestRes.isErr()) {
|
|
198
|
+
return teamsfx_api_1.err(manifestRes.error);
|
|
199
|
+
}
|
|
200
|
+
// scaffold
|
|
201
|
+
const manifest = manifestRes.value;
|
|
202
|
+
const contextWithManifest = Object.assign(Object.assign({}, ctx), { appManifest: manifest });
|
|
203
|
+
const scaffoldRes = await plugin.scaffold(contextWithManifest, pluginInputs);
|
|
204
|
+
if (scaffoldRes.isErr()) {
|
|
205
|
+
return teamsfx_api_1.err(scaffoldRes.error);
|
|
206
|
+
}
|
|
207
|
+
// write manifest
|
|
208
|
+
const writeRes = await appStudio.saveManifest(ctx, inputs, manifest);
|
|
209
|
+
if (writeRes.isErr()) {
|
|
210
|
+
return teamsfx_api_1.err(writeRes.error);
|
|
211
|
+
}
|
|
212
|
+
const scaffoldLocalDebugSettingsResult = await scaffolding_1.scaffoldLocalDebugSettings(ctx, inputs, localSettings);
|
|
213
|
+
if (scaffoldLocalDebugSettingsResult.isErr()) {
|
|
214
|
+
return scaffoldLocalDebugSettingsResult;
|
|
215
|
+
}
|
|
238
216
|
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
239
217
|
}
|
|
240
218
|
exports.scaffold = scaffold;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold.js","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v3/scaffold.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAYgC;AAChC,gEAA0B;AAC1B,mDAA6B;AAC7B,mCAA4C;
|
|
1
|
+
{"version":3,"file":"scaffold.js","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v3/scaffold.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAYgC;AAChC,gEAA0B;AAC1B,mDAA6B;AAC7B,mCAA4C;AAE5C,6CAAsD;AACtD,qDAG+B;AAC/B,sDAAkE;AAClE,2CAAqF;AACrF,mCAAoC;AAGpC,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAA9B;QACE,SAAI,GAAe,UAAU,CAAC;QAiC9B,SAAI,GAAG,sCAA0B,CAAC,GAAG,CAAC;IACxC,CAAC;IAjCC,KAAK,CAAC,YAAY,CAChB,GAAe,EACf,MAAc;QAEd,OAAO,gBAAE,CAAC;YACR;gBACE,IAAI,EAAE,cAAc;gBACpB,QAAQ,EAAE,YAAY;gBACtB,WAAW,EAAE,cAAc;aAC5B;YACD;gBACE,IAAI,EAAE,cAAc;gBACpB,QAAQ,EAAE,YAAY;gBACtB,WAAW,E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AAW,EAAE,QAAQ,GACtB,CAAC;IAEF,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAAC;IAC7E,IAAI,WAAW,CAAC,KAAK,EAAE,EAAE;QACvB,OAAO,iBAAG,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;KAC/B;IAED,iBAAiB;IACjB,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IACrE,IAAI,QAAQ,CAAC,KAAK,EAAE,EAAE;QACpB,OAAO,iBAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC5B;IAED,MAAM,gCAAgC,GAAG,MAAM,wCAA0B,CACvE,GAAG,EACH,MAAM,EACN,aAAa,CACd,CAAC;IACF,IAAI,gCAAgC,CAAC,KAAK,EAAE,EAAE;QAC5C,OAAO,gCAAgC,CAAC;KACzC;IACD,OAAO,gBAAE,CAAC,kBAAI,CAAC,CAAC;AAClB,CAAC;AAvDD,4BAuDC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { FxError, Json, Result, v2, Void } from "@microsoft/teamsfx-api";
|
|
2
|
-
export declare function addModule(ctx: v2.Context,
|
|
3
|
-
capabilities?: string[];
|
|
4
|
-
}): Promise<Result<Void, FxError>>;
|
|
1
|
+
import { FxError, Json, Result, v2, v3, Void } from "@microsoft/teamsfx-api";
|
|
2
|
+
export declare function addModule(ctx: v2.Context, inputs: v3.SolutionAddModuleInputs, localSettings?: Json): Promise<Result<Void, FxError>>;
|
|
5
3
|
//# sourceMappingURL=addModule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addModule.d.ts","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/addModule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAM,MAAM,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"addModule.d.ts","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/addModule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAM,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAO,MAAM,wBAAwB,CAAC;AAGtF,wBAAsB,SAAS,CAC7B,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,uBAAuB,EAClC,aAAa,CAAC,EAAE,IAAI,GACnB,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAuBhC"}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.addModule = void 0;
|
|
6
6
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
7
|
const error_1 = require("./error");
|
|
8
|
-
async function addModule(ctx,
|
|
8
|
+
async function addModule(ctx, inputs, localSettings) {
|
|
9
9
|
const solutionSettings = ctx.projectSetting.solutionSettings;
|
|
10
10
|
const module = {
|
|
11
11
|
capabilities: inputs.capabilities || [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addModule.js","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/addModule.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAAsF;AACtF,mCAAqD;AAE9C,KAAK,UAAU,SAAS,CAC7B,GAAe,EACf,
|
|
1
|
+
{"version":3,"file":"addModule.js","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/addModule.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAAsF;AACtF,mCAAqD;AAE9C,KAAK,UAAU,SAAS,CAC7B,GAAe,EACf,MAAkC,EAClC,aAAoB;IAEpB,MAAM,gBAAgB,GAAG,GAAG,CAAC,cAAc,CAAC,gBAAgD,CAAC;IAC7F,MAAM,MAAM,GAAc;QACxB,YAAY,EAAE,MAAM,CAAC,YAAY,IAAI,EAAE;KACxC,CAAC;IACF,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU,CAAC;IACjC,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACtF,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,YAAY,IAAI,EAAE,EAAE;QAC3C,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YACnB,GAAG,CAAC,eAAe,CAAC,WAAW,CAC7B,MAAM,EACN,+CAA+C,EAC/C,KAAK,CACN,CAAC;YACF,OAAO,iBAAG,CAAC,IAAI,kCAA0B,EAAE,CAAC,CAAC;SAC9C;aAAM;YACL,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SACjB;KACF;IACD,gBAAgB,CAAC,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACnD,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAEtC,OAAO,gBAAE,CAAC,kBAAI,CAAC,CAAC;AAClB,CAAC;AA3BD,8BA2BC"}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import { FxError, Inputs,
|
|
1
|
+
import { AppStudioTokenProvider, FxError, Inputs, QTreeNode, Result, v2, v3, Void } from "@microsoft/teamsfx-api";
|
|
2
2
|
export declare function getQuestionsForScaffold(ctx: v2.Context, inputs: v2.InputsWithProjectPath): Promise<Result<QTreeNode | undefined, FxError>>;
|
|
3
|
-
export declare function scaffold(ctx: v2.Context, inputs: v2.InputsWithProjectPath & {
|
|
4
|
-
module?: string;
|
|
5
|
-
template?: OptionItem;
|
|
6
|
-
}): Promise<Result<Void, FxError>>;
|
|
7
|
-
export declare function generateResourceTemplate(ctx: v2.Context, inputs: Inputs): Promise<Result<Json, FxError>>;
|
|
8
3
|
export declare function publishApplication(ctx: v2.Context, inputs: Inputs, envInfo: v2.EnvInfoV2, tokenProvider: AppStudioTokenProvider): Promise<Result<Void, FxError>>;
|
|
9
|
-
export declare function addResource(ctx: v2.Context, inputs:
|
|
10
|
-
module?: string;
|
|
11
|
-
resource?: string;
|
|
12
|
-
}): Promise<Result<Void, FxError>>;
|
|
4
|
+
export declare function addResource(ctx: v2.Context, inputs: v3.SolutionAddResourceInputs): Promise<Result<Void, FxError>>;
|
|
13
5
|
//# sourceMappingURL=scaffold.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/scaffold.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/scaffold.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,sBAAsB,EAEtB,OAAO,EACP,MAAM,EAGN,SAAS,EACT,MAAM,EACN,EAAE,EACF,EAAE,EACF,IAAI,EACL,MAAM,wBAAwB,CAAC;AAKhC,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,qBAAqB,GAC/B,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,CAAC,CAmDjD;AAED,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,EAAE,CAAC,SAAS,EACrB,aAAa,EAAE,sBAAsB,GACpC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAEhC;AAED,wBAAsB,WAAW,CAC/B,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,yBAAyB,GACnC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAEhC"}
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.addResource = exports.publishApplication = exports.
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
5
|
+
exports.addResource = exports.publishApplication = exports.getQuestionsForScaffold = void 0;
|
|
7
6
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
|
-
const typedi_1 =
|
|
7
|
+
const typedi_1 = require("typedi");
|
|
9
8
|
const constants_1 = require("../fx-solution/v3/constants");
|
|
10
|
-
const error_1 = require("../utils/error");
|
|
11
9
|
const questions_1 = require("../utils/questions");
|
|
12
10
|
async function getQuestionsForScaffold(ctx, inputs) {
|
|
13
11
|
const node = new teamsfx_api_1.QTreeNode({ type: "group" });
|
|
@@ -18,7 +16,7 @@ async function getQuestionsForScaffold(ctx, inputs) {
|
|
|
18
16
|
}
|
|
19
17
|
const templateNode = new teamsfx_api_1.QTreeNode(questions_1.selectScaffoldTemplateQuestion);
|
|
20
18
|
const staticOptions = [];
|
|
21
|
-
const spfxPlugin = typedi_1.
|
|
19
|
+
const spfxPlugin = typedi_1.Container.get(constants_1.BuiltInScaffoldPluginNames.spfx);
|
|
22
20
|
const scaffoldPlugins = [spfxPlugin];
|
|
23
21
|
for (const plugin of scaffoldPlugins) {
|
|
24
22
|
const getTemplatesRes = await plugin.getTemplates(ctx, inputs);
|
|
@@ -60,40 +58,6 @@ async function getQuestionsForScaffold(ctx, inputs) {
|
|
|
60
58
|
return teamsfx_api_1.ok(node);
|
|
61
59
|
}
|
|
62
60
|
exports.getQuestionsForScaffold = getQuestionsForScaffold;
|
|
63
|
-
async function scaffold(ctx, inputs) {
|
|
64
|
-
if (!inputs.template) {
|
|
65
|
-
return teamsfx_api_1.err(new error_1.InvalidInputError(inputs));
|
|
66
|
-
}
|
|
67
|
-
const template = inputs.template;
|
|
68
|
-
if (!template.data) {
|
|
69
|
-
return teamsfx_api_1.err(new error_1.InvalidInputError(inputs, "template.data is undefined"));
|
|
70
|
-
}
|
|
71
|
-
const data = template.data;
|
|
72
|
-
const pluginName = data.pluginName;
|
|
73
|
-
const templateName = data.templateName;
|
|
74
|
-
const plugin = typedi_1.default.get(pluginName);
|
|
75
|
-
const pluginInputs = Object.assign(Object.assign({}, inputs), { template: templateName });
|
|
76
|
-
const res = await plugin.scaffold(ctx, pluginInputs);
|
|
77
|
-
if (res.isErr()) {
|
|
78
|
-
return teamsfx_api_1.err(res.error);
|
|
79
|
-
}
|
|
80
|
-
const manifest = [];
|
|
81
|
-
if (res.value) {
|
|
82
|
-
manifest.push(res.value);
|
|
83
|
-
}
|
|
84
|
-
inputs.manifest = manifest;
|
|
85
|
-
pluginInputs.manifest = manifest;
|
|
86
|
-
//TODO
|
|
87
|
-
// //call appstudio.scaffold() API
|
|
88
|
-
// const appstudioPlugin = Container.get<v3.ScaffoldPlugin>(BuiltInResourcePluginNames.AppStudio);
|
|
89
|
-
// await appstudioPlugin.scaffold(ctx, pluginInputs);
|
|
90
|
-
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
91
|
-
}
|
|
92
|
-
exports.scaffold = scaffold;
|
|
93
|
-
async function generateResourceTemplate(ctx, inputs) {
|
|
94
|
-
return teamsfx_api_1.ok({});
|
|
95
|
-
}
|
|
96
|
-
exports.generateResourceTemplate = generateResourceTemplate;
|
|
97
61
|
async function publishApplication(ctx, inputs, envInfo, tokenProvider) {
|
|
98
62
|
return teamsfx_api_1.ok(teamsfx_api_1.Void);
|
|
99
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold.js","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/scaffold.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC
|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@@ -1,22 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { v3 } from "@microsoft/teamsfx-api";
|
|
2
|
+
import { scaffold } from "../fx-solution/v3/scaffold";
|
|
3
|
+
import { addModule } from "./addModule";
|
|
4
|
+
import { getQuestionsForInit, init } from "./init";
|
|
5
|
+
import { addResource, getQuestionsForScaffold, publishApplication } from "./scaffold";
|
|
2
6
|
export declare class TeamsSPFxSolution implements v3.ISolution {
|
|
3
7
|
name: string;
|
|
4
8
|
displayName: string;
|
|
5
|
-
init:
|
|
6
|
-
getQuestionsForInit
|
|
7
|
-
scaffold:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
generateResourceTemplate: (ctx: v2.Context, inputs: Inputs) => Promise<Result<Json, FxError>>;
|
|
13
|
-
publishApplication: (ctx: v2.Context, inputs: Inputs, envInfo: v2.EnvInfoV2, tokenProvider: AppStudioTokenProvider) => Promise<Result<Void, FxError>>;
|
|
14
|
-
addResource: (ctx: v2.Context, inputs: v2.InputsWithProjectPath & {
|
|
15
|
-
module?: string;
|
|
16
|
-
resource?: string;
|
|
17
|
-
}) => Promise<Result<Void, FxError>>;
|
|
18
|
-
addModule: (ctx: v2.Context, localSettings: Json, inputs: v2.InputsWithProjectPath & {
|
|
19
|
-
capabilities?: string[];
|
|
20
|
-
}) => Promise<Result<Void, FxError>>;
|
|
9
|
+
init: typeof init;
|
|
10
|
+
getQuestionsForInit: typeof getQuestionsForInit;
|
|
11
|
+
scaffold: typeof scaffold;
|
|
12
|
+
getQuestionsForScaffold: typeof getQuestionsForScaffold;
|
|
13
|
+
publishApplication: typeof publishApplication;
|
|
14
|
+
addResource: typeof addResource;
|
|
15
|
+
addModule: typeof addModule;
|
|
21
16
|
}
|
|
22
17
|
//# sourceMappingURL=solution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solution.d.ts","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/solution.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"solution.d.ts","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/solution.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,wBAAwB,CAAC;AAI5C,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEtF,qBACa,iBAAkB,YAAW,EAAE,CAAC,SAAS;IACpD,IAAI,SAA6B;IACjC,WAAW,EAAE,MAAM,CAAkC;IAErD,IAAI,cAAQ;IACZ,mBAAmB,6BAAuB;IAE1C,QAAQ,kBAAY;IACpB,uBAAuB,iCAA2B;IAElD,kBAAkB,4BAAsB;IAExC,WAAW,qBAAe;IAE1B,SAAS,mBAAa;CACvB"}
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.TeamsSPFxSolution = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
|
-
const constants_1 = require("../../../common/constants");
|
|
8
|
-
const scaffold_1 = require("./scaffold");
|
|
9
|
-
const init_1 = require("./init");
|
|
10
7
|
const typedi_1 = require("typedi");
|
|
8
|
+
const constants_1 = require("../../../common/constants");
|
|
11
9
|
const constants_2 = require("../fx-solution/v3/constants");
|
|
10
|
+
const scaffold_1 = require("../fx-solution/v3/scaffold");
|
|
12
11
|
const addModule_1 = require("./addModule");
|
|
12
|
+
const init_1 = require("./init");
|
|
13
|
+
const scaffold_2 = require("./scaffold");
|
|
13
14
|
let TeamsSPFxSolution = class TeamsSPFxSolution {
|
|
14
15
|
constructor() {
|
|
15
16
|
this.name = constants_2.BuiltInSolutionNames.spfx;
|
|
@@ -17,10 +18,9 @@ let TeamsSPFxSolution = class TeamsSPFxSolution {
|
|
|
17
18
|
this.init = init_1.init;
|
|
18
19
|
this.getQuestionsForInit = init_1.getQuestionsForInit;
|
|
19
20
|
this.scaffold = scaffold_1.scaffold;
|
|
20
|
-
this.getQuestionsForScaffold =
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
23
|
-
this.addResource = scaffold_1.addResource;
|
|
21
|
+
this.getQuestionsForScaffold = scaffold_2.getQuestionsForScaffold;
|
|
22
|
+
this.publishApplication = scaffold_2.publishApplication;
|
|
23
|
+
this.addResource = scaffold_2.addResource;
|
|
24
24
|
this.addModule = addModule_1.addModule;
|
|
25
25
|
}
|
|
26
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solution.js","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/solution.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;
|
|
1
|
+
{"version":3,"file":"solution.js","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/solution.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAGlC,mCAAiC;AACjC,yDAA8D;AAC9D,2DAAmE;AACnE,yDAAsD;AACtD,2CAAwC;AACxC,iCAAmD;AACnD,yCAAsF;AAGtF,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAA9B;QACE,SAAI,GAAG,gCAAoB,CAAC,IAAI,CAAC;QACjC,gBAAW,GAAW,6BAAiB,CAAC,YAAY,CAAC;QAErD,SAAI,GAAG,WAAI,CAAC;QACZ,wBAAmB,GAAG,0BAAmB,CAAC;QAE1C,aAAQ,GAAG,mBAAQ,CAAC;QACpB,4BAAuB,GAAG,kCAAuB,CAAC;QAElD,uBAAkB,GAAG,6BAAkB,CAAC;QAExC,gBAAW,GAAG,sBAAW,CAAC;QAE1B,cAAS,GAAG,qBAAS,CAAC;IACxB,CAAC;CAAA,CAAA;AAfY,iBAAiB;IAD7B,gBAAO,CAAC,gCAAoB,CAAC,IAAI,CAAC;GACtB,iBAAiB,CAe7B;AAfY,8CAAiB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teamsfx-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2-alpha.01a113d2.0",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"types": "build/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"lint:staged": "lint-staged",
|
|
9
9
|
"lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
10
10
|
"test:bot": "nyc mocha \"tests/plugins/resource/bot/**/*.test.ts\"",
|
|
11
|
-
"test:
|
|
11
|
+
"test:dotnet": "nyc mocha \"tests/plugins/resource/dotnet/**/*.test.ts\"",
|
|
12
12
|
"test:function": "nyc mocha \"tests/plugins/resource/function/**/*.test.ts\"",
|
|
13
13
|
"test:localdebug": "nyc mocha \"tests/plugins/resource/localdebug/**/*.test.ts\"",
|
|
14
14
|
"test:frontend": "nyc mocha \"tests/plugins/resource/frontend/**/*.test.ts\"",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"prepare": "npm run build && node ./scripts/download-templates-zip.js $(git tag --list)",
|
|
39
39
|
"prepublishOnly": "npm run test:unit && npm run build",
|
|
40
40
|
"package": "rimraf build && webpack --mode production --config ./webpack.config.js",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
41
|
+
"check-sensitive": "npx eslint --plugin 'no-secrets' --cache --ignore-pattern 'package.json' --ignore-pattern 'package-lock.json'",
|
|
42
|
+
"precommit": "npm run check-sensitive && lint-staged",
|
|
43
43
|
"install:tabs": "cd tabs && npm install",
|
|
44
|
-
"installAll": "npm run install:
|
|
44
|
+
"installAll": "npm run install:tabs"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@apidevtools/swagger-parser": "^10.0.2",
|
|
@@ -57,7 +57,8 @@
|
|
|
57
57
|
"@azure/storage-blob": "^12.7.0",
|
|
58
58
|
"@dbpiper/timer": "1.0.0-beta.2",
|
|
59
59
|
"@feathersjs/hooks": "^0.6.5",
|
|
60
|
-
"@microsoft/teamsfx-api": "
|
|
60
|
+
"@microsoft/teamsfx-api": "0.13.1-alpha.01a113d2.0",
|
|
61
|
+
"@npmcli/arborist": "^4.2.0",
|
|
61
62
|
"@npmcli/package-json": "^1.0.1",
|
|
62
63
|
"@types/jwt-decode": "3.1.0",
|
|
63
64
|
"@types/proper-lockfile": "^4.1.1",
|
|
@@ -66,6 +67,7 @@
|
|
|
66
67
|
"axios": "^0.21.2",
|
|
67
68
|
"cryptr": "^6.0.2",
|
|
68
69
|
"dateformat": "^4.5.1",
|
|
70
|
+
"detect-port": "^1.3.0",
|
|
69
71
|
"dotenv": "^8.2.0",
|
|
70
72
|
"express": "^4.17.1",
|
|
71
73
|
"fs-extra": "^9.1.0",
|
|
@@ -83,7 +85,7 @@
|
|
|
83
85
|
"md5": "^2.3.0",
|
|
84
86
|
"mime": "^2.5.2",
|
|
85
87
|
"mustache": "^4.2.0",
|
|
86
|
-
"node-forge": "^0.
|
|
88
|
+
"node-forge": "^1.0.0",
|
|
87
89
|
"node-ts-uuid": "^1.0.8",
|
|
88
90
|
"openapi-types": "^7.2.3",
|
|
89
91
|
"proper-lockfile": "^4.1.2",
|
|
@@ -111,6 +113,7 @@
|
|
|
111
113
|
"@types/chai-spies": "^1.0.3",
|
|
112
114
|
"@types/cryptr": "^4.0.1",
|
|
113
115
|
"@types/dateformat": "^3.0.1",
|
|
116
|
+
"@types/detect-port": "^1.3.2",
|
|
114
117
|
"@types/express": "^4.17.9",
|
|
115
118
|
"@types/faker": "^5.5.0",
|
|
116
119
|
"@types/fs-extra": "^9.0.9",
|
|
@@ -127,6 +130,7 @@
|
|
|
127
130
|
"@types/mustache": "^4.1.1",
|
|
128
131
|
"@types/node": "^14.14.21",
|
|
129
132
|
"@types/node-forge": "^0.9.7",
|
|
133
|
+
"@types/proxyquire": "^1.3.28",
|
|
130
134
|
"@types/semver": "^7.3.4",
|
|
131
135
|
"@types/sinon": "^9.0.10",
|
|
132
136
|
"@types/tedious": "^4.0.3",
|
|
@@ -143,6 +147,7 @@
|
|
|
143
147
|
"dotenv": "^8.2.0",
|
|
144
148
|
"eslint": "^7.22.0",
|
|
145
149
|
"eslint-plugin-import": "^2.25.2",
|
|
150
|
+
"eslint-plugin-no-secrets": "^0.8.9",
|
|
146
151
|
"eslint-plugin-prettier": "^4.0.0",
|
|
147
152
|
"faker": "^5.5.2",
|
|
148
153
|
"find-process": "^1.4.4",
|
|
@@ -153,6 +158,7 @@
|
|
|
153
158
|
"mocked-env": "^1.3.5",
|
|
154
159
|
"nyc": "^15.1.0",
|
|
155
160
|
"prettier": "^2.4.1",
|
|
161
|
+
"proxyquire": "^2.1.3",
|
|
156
162
|
"sinon": "^9.2.2",
|
|
157
163
|
"source-map-support": "^0.5.19",
|
|
158
164
|
"tmp": "^0.2.1",
|
|
@@ -160,7 +166,6 @@
|
|
|
160
166
|
"ts-node": "^9.1.1",
|
|
161
167
|
"tslint": "^6.1.3",
|
|
162
168
|
"ttypescript": "^1.5.12",
|
|
163
|
-
"typedoc": "^0.20.35",
|
|
164
169
|
"typescript": "^4.2.3",
|
|
165
170
|
"webpack": "^5.61.0",
|
|
166
171
|
"webpack-cli": "^4.9.1"
|
|
@@ -170,7 +175,7 @@
|
|
|
170
175
|
"resource/**/*",
|
|
171
176
|
"templates/**/*"
|
|
172
177
|
],
|
|
173
|
-
"gitHead": "
|
|
178
|
+
"gitHead": "2e3851154d1fc2984c7612de76409bc4c49edd78",
|
|
174
179
|
"publishConfig": {
|
|
175
180
|
"access": "public"
|
|
176
181
|
},
|
package/resource/strings.json
CHANGED
|
@@ -13,12 +13,22 @@
|
|
|
13
13
|
"FailedToDeployBeforeProvision": "Failed to deploy because the resources have not been provisioned yet. Make sure you do the provision first. Click Get Help to learn more about why you need to provision.",
|
|
14
14
|
"FailedToPublishBeforeProvision": "Failed to publish because the resources have not been provisioned yet. Make sure you do the provision first. Click Get Help to learn more about why you need to provision.",
|
|
15
15
|
"SPFxAskProvisionBeforePublish": "Failed to publish because the teams app has not been provisioned yet. Please provision first. Click Get Help to learn more about why you need to provision.",
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
"addCapability" : {
|
|
17
|
+
"OnlySupportAzure": "Add capability is only supported for project hosted in Azure",
|
|
18
|
+
"ExceedMaxLimit": "Your App reaches maximal limit for Tabs, Bot and Message Extension.",
|
|
19
|
+
"AddCapabilityNotice": "[Teams Toolkit] Capability %s has been successfully added to your project. F5 to local debug the application or trigger 'Teams: Provision in the cloud' to create resources in your Azure subscription for hosting.",
|
|
20
|
+
"AddCapabilitiesNotice": "[Teams Toolkit] Capabilities %s have been successfully added to your project. F5 to local debug the application or trigger 'Teams: Provision in the cloud' to create resources in your Azure subscription for hosting.",
|
|
21
|
+
"AddCapabilityNoticeForCli": "[Teams Toolkit] Capability %s has been successfully added to your project. Run 'teamsfx provision' to create resources in your Azure subscription for hosting.",
|
|
22
|
+
"AddCapabilitiesNoticeForCli": "[Teams Toolkit] Capabilities %s have been successfully added to your project. Run 'teamsfx provision' to create resources in your Azure subscription for hosting."
|
|
23
|
+
},
|
|
24
|
+
"addResource": {
|
|
25
|
+
"OnlySupportAzure": "Add resource is only supported for project hosted in Azure",
|
|
26
|
+
"NotSupportForVSProject": "Add resource is not supported for csharp project",
|
|
27
|
+
"AddResourceNotice": "[Teams Toolkit] Resource \"%s\" has been successfully configured for your project, trigger 'Teams: Provision in the cloud' will create the resource in your Azure subscription.",
|
|
28
|
+
"AddResourceNoticeForCli": "[Teams Toolkit] Resource \"%s\" has been successfully configured for your project, run 'teamsfx provision' will create the resource in your Azure subscription.",
|
|
29
|
+
"AddResourcesNotice": "[Teams Toolkit] Resources \"%s\" have been successfully configured for your project, trigger 'Teams: Provision in the cloud' will create the resources in your Azure subscription.",
|
|
30
|
+
"AddResourcesNoticeForCli": "[Teams Toolkit] Resources \"%s\" have been successfully configured for your project, run 'teamsfx provision' will create the resources in your Azure subscription."
|
|
31
|
+
},
|
|
22
32
|
"CancelProvision": "CancelProvision",
|
|
23
33
|
"AlreadyProvisionNotice": "'%s' is already provisioned in the cloud, will create the teams app again if it has been removed.",
|
|
24
34
|
"NotProvisionedNotice": "'%s' is not provisioned in the cloud yet. Please provision first.",
|
|
@@ -47,14 +57,19 @@
|
|
|
47
57
|
"ProvisionFinishNotice": "[%s] Provison finished!",
|
|
48
58
|
"DeployStartNotice": "[%s] Deployment start.",
|
|
49
59
|
"SelectedPluginsToDeployNotice": "[%s] Selected plugins to deploy: %s",
|
|
50
|
-
"PublishStartNotice": "[%s] Publish start."
|
|
60
|
+
"PublishStartNotice": "[%s] Publish start.",
|
|
61
|
+
"Collaboration": {
|
|
62
|
+
"ListCollaboratorsSuccess": "List M365 Teams App%s owners success, you can view it in Teams Toolkit output window",
|
|
63
|
+
"WithAadApp": "(With AAD App)",
|
|
64
|
+
"FailedToListCollaborators": "Failed to list Teams App owners for the project.\nError details: \n"
|
|
65
|
+
}
|
|
51
66
|
},
|
|
52
67
|
"plugins": {
|
|
53
68
|
"SPFx": {
|
|
54
69
|
"buildNotice": "SharePoint package successfully built at %s.",
|
|
55
70
|
"deployNotice": "SharePoint package %s has been successfully deployed to [%s](%s).",
|
|
56
71
|
"deployFailedNotice": "You don't have permission to upload and deploy package to App Catalog %s, please use site admin account, or you can get your own free Microsoft 365 tenant from [M365 developer program](https://developer.microsoft.com/en-us/microsoft-365/dev-program)",
|
|
57
|
-
"createAppCatalogNotice": "There is no tenant app catalog under %s, you
|
|
72
|
+
"createAppCatalogNotice": "There is no tenant app catalog under %s, do you want to create one?"
|
|
58
73
|
}
|
|
59
74
|
}
|
|
60
75
|
}
|
|
@@ -38,6 +38,7 @@ var scope = '${m365ApplicationIdUri}/.default'
|
|
|
38
38
|
var authorizationEndpoint = uri(m365OauthAuthorityHost, '${m365TenantId}/oauth2/v2.0/authorize')
|
|
39
39
|
var tokenEndpoint = uri(m365OauthAuthorityHost, '${m365TenantId}/oauth2/v2.0/token')
|
|
40
40
|
|
|
41
|
+
//Enables Microsoft Power Platform to access your APIs hosted in Function App
|
|
41
42
|
resource apimServiceAuthServer 'Microsoft.ApiManagement/service/authorizationServers@2020-12-01' = {
|
|
42
43
|
name: '${apimServiceName}/${oauthServerName}'
|
|
43
44
|
properties: {
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
param provisionParameters object
|
|
3
3
|
|
|
4
4
|
var resourceBaseName = provisionParameters['resourceBaseName']
|
|
5
|
-
var apimServiceName = contains(provisionParameters, 'apimServiceName') ? provisionParameters['apimServiceName'] : '${resourceBaseName}'
|
|
6
|
-
var apimServiceSku = contains(provisionParameters, 'apimServiceSku') ? provisionParameters['apimServiceSku'] : 'Consumption'
|
|
7
|
-
var productName = contains(provisionParameters, 'apimProductName') ? provisionParameters['apimProductName'] : '${resourceBaseName}'
|
|
8
|
-
var publisherEmail = provisionParameters['apimPublisherEmail']
|
|
9
|
-
var publisherName = provisionParameters['apimPublisherName']
|
|
5
|
+
var apimServiceName = contains(provisionParameters, 'apimServiceName') ? provisionParameters['apimServiceName'] : '${resourceBaseName}' // Try to read name for APIM Service from parameters
|
|
6
|
+
var apimServiceSku = contains(provisionParameters, 'apimServiceSku') ? provisionParameters['apimServiceSku'] : 'Consumption' // Try to read SKU for APIM Service from parameters
|
|
7
|
+
var productName = contains(provisionParameters, 'apimProductName') ? provisionParameters['apimProductName'] : '${resourceBaseName}' // Try to read name for APIM Product from parameters
|
|
8
|
+
var publisherEmail = provisionParameters['apimPublisherEmail'] // Read publisher email for APIM Service from parameters, this parameter is required
|
|
9
|
+
var publisherName = provisionParameters['apimPublisherName'] // Read publisher name for APIM Service from parameters, this parameter is required
|
|
10
10
|
|
|
11
|
+
// APIM Service that helps manage your APIs
|
|
11
12
|
resource apimService 'Microsoft.ApiManagement/service@2020-12-01' = {
|
|
12
13
|
name: apimServiceName
|
|
13
14
|
location: resourceGroup().location
|
|
@@ -21,6 +22,7 @@ resource apimService 'Microsoft.ApiManagement/service@2020-12-01' = {
|
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
|
|
25
|
+
// Group your APIs, define terms of use and runtime policies
|
|
24
26
|
resource apimServiceProduct 'Microsoft.ApiManagement/service/products@2020-12-01' = {
|
|
25
27
|
parent: apimService
|
|
26
28
|
name: productName
|