@microsoft/teamsfx-core 1.3.0 → 1.3.1-alpha.c8083c82.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/constants.d.ts +9 -0
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +11 -1
- package/build/common/constants.js.map +1 -1
- package/build/common/deps-checker/depsLogger.d.ts +10 -0
- package/build/common/deps-checker/depsLogger.d.ts.map +1 -1
- package/build/common/deps-checker/depsLogger.js +26 -0
- package/build/common/deps-checker/depsLogger.js.map +1 -1
- package/build/common/deps-checker/depsManager.d.ts +7 -4
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +17 -10
- package/build/common/deps-checker/depsManager.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +2 -0
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/local/constants.d.ts +0 -42
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +1 -43
- package/build/common/local/constants.js.map +1 -1
- package/build/common/local/localCertificateManager.d.ts +2 -1
- package/build/common/local/localCertificateManager.d.ts.map +1 -1
- package/build/common/local/localCertificateManager.js +24 -15
- package/build/common/local/localCertificateManager.js.map +1 -1
- package/build/common/local/localEnvManager.d.ts +2 -1
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +5 -4
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/common/local/localEnvProvider.js +1 -1
- package/build/common/local/localSettingsHelper.d.ts.map +1 -1
- package/build/common/local/localSettingsHelper.js +17 -16
- package/build/common/local/localSettingsHelper.js.map +1 -1
- package/build/common/local/portChecker.d.ts +2 -2
- package/build/common/local/portChecker.d.ts.map +1 -1
- package/build/common/local/portChecker.js +18 -5
- package/build/common/local/portChecker.js.map +1 -1
- package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/local/projectSettingsHelper.js +3 -3
- package/build/common/local/projectSettingsHelper.js.map +1 -1
- package/build/common/local/taskDefinition.d.ts +0 -7
- package/build/common/local/taskDefinition.d.ts.map +1 -1
- package/build/common/local/taskDefinition.js +1 -51
- package/build/common/local/taskDefinition.js.map +1 -1
- package/build/common/localSettingsConstants.d.ts +2 -6
- package/build/common/localSettingsConstants.d.ts.map +1 -1
- package/build/common/localSettingsConstants.js +3 -7
- package/build/common/localSettingsConstants.js.map +1 -1
- package/build/common/localSettingsProvider.d.ts +3 -3
- package/build/common/localSettingsProvider.d.ts.map +1 -1
- package/build/common/localSettingsProvider.js +15 -14
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/permissionInterface.d.ts +1 -3
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +0 -2
- package/build/common/permissionInterface.js.map +1 -1
- package/build/common/projectSettingsValidator.d.ts +0 -1
- package/build/common/projectSettingsValidator.d.ts.map +1 -1
- package/build/common/projectSettingsValidator.js +2 -16
- package/build/common/projectSettingsValidator.js.map +1 -1
- package/build/common/telemetry.d.ts +3 -1
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +2 -0
- package/build/common/telemetry.js.map +1 -1
- package/build/common/template-utils/templatesActions.js +2 -2
- package/build/common/template-utils/templatesUtils.d.ts +2 -1
- package/build/common/template-utils/templatesUtils.d.ts.map +1 -1
- package/build/common/template-utils/templatesUtils.js +25 -7
- package/build/common/template-utils/templatesUtils.js.map +1 -1
- package/build/common/templates-config.json +2 -2
- package/build/common/tools.d.ts +0 -4
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +1 -8
- package/build/common/tools.js.map +1 -1
- package/build/core/downloadSample.js +1 -1
- package/build/core/downloadSample.js.map +1 -1
- package/build/core/environment.d.ts +4 -4
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +23 -2
- package/build/core/environment.js.map +1 -1
- package/build/core/error.d.ts +5 -0
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +15 -1
- package/build/core/error.js.map +1 -1
- package/build/core/index.d.ts +9 -18
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +151 -262
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/CommonErrorHandlerMW.d.ts.map +1 -1
- package/build/core/middleware/CommonErrorHandlerMW.js +3 -0
- package/build/core/middleware/CommonErrorHandlerMW.js.map +1 -1
- package/build/core/middleware/envInfoLoader.d.ts.map +1 -1
- package/build/core/middleware/envInfoLoader.js +2 -1
- package/build/core/middleware/envInfoLoader.js.map +1 -1
- package/build/core/middleware/envInfoWriter.js +5 -6
- package/build/core/middleware/envInfoWriter.js.map +1 -1
- package/build/core/middleware/localSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/localSettingsLoader.js +27 -22
- package/build/core/middleware/localSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectMigrator.d.ts.map +1 -1
- package/build/core/middleware/projectMigrator.js +2 -6
- package/build/core/middleware/projectMigrator.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.d.ts +1 -0
- package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +8 -4
- package/build/core/middleware/projectSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectSettingsWriter.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsWriter.js +6 -4
- package/build/core/middleware/projectSettingsWriter.js.map +1 -1
- package/build/core/middleware/questionModel.d.ts +6 -8
- package/build/core/middleware/questionModel.d.ts.map +1 -1
- package/build/core/middleware/questionModel.js +20 -44
- package/build/core/middleware/questionModel.js.map +1 -1
- package/build/core/middleware/solutionLoader.d.ts.map +1 -1
- package/build/core/middleware/solutionLoader.js +5 -3
- package/build/core/middleware/solutionLoader.js.map +1 -1
- package/build/core/middleware/solutionLoaderV3.js +3 -2
- package/build/core/middleware/solutionLoaderV3.js.map +1 -1
- package/build/core/pvm/broker.d.ts +24 -0
- package/build/core/pvm/broker.d.ts.map +1 -0
- package/build/core/pvm/broker.js +93 -0
- package/build/core/pvm/broker.js.map +1 -0
- package/build/core/pvm/constant.d.ts +11 -0
- package/build/core/pvm/constant.d.ts.map +1 -0
- package/build/core/pvm/constant.js +14 -0
- package/build/core/pvm/constant.js.map +1 -0
- package/build/core/pvm/depot.d.ts +43 -0
- package/build/core/pvm/depot.d.ts.map +1 -0
- package/build/core/pvm/depot.js +243 -0
- package/build/core/pvm/depot.js.map +1 -0
- package/build/core/pvm/pvm.d.ts +49 -0
- package/build/core/pvm/pvm.d.ts.map +1 -0
- package/build/core/pvm/pvm.js +82 -0
- package/build/core/pvm/pvm.js.map +1 -0
- package/build/core/pvm/type.d.ts +11 -0
- package/build/core/pvm/type.d.ts.map +1 -0
- package/build/{plugins/resource/apim/interfaces/IApimResource.js → core/pvm/type.js} +1 -1
- package/build/core/pvm/type.js.map +1 -0
- package/build/core/pvm/utility.d.ts +2 -0
- package/build/core/pvm/utility.d.ts.map +1 -0
- package/build/core/pvm/utility.js +10 -0
- package/build/core/pvm/utility.js.map +1 -0
- package/build/core/tools.d.ts +1 -2
- package/build/core/tools.d.ts.map +1 -1
- package/build/core/tools.js +1 -25
- package/build/core/tools.js.map +1 -1
- package/build/core/utils.d.ts +4 -0
- package/build/core/utils.d.ts.map +1 -0
- package/build/core/utils.js +14 -0
- package/build/core/utils.js.map +1 -0
- package/build/plugins/resource/aad/aadAppClient.d.ts +8 -8
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +29 -29
- package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
- package/build/plugins/resource/aad/index.d.ts +1 -0
- package/build/plugins/resource/aad/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/index.js +6 -1
- package/build/plugins/resource/aad/index.js.map +1 -1
- package/build/plugins/resource/aad/plugin.d.ts +4 -3
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +13 -13
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/common.d.ts +6 -4
- package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/common.js +60 -21
- package/build/plugins/resource/aad/utils/common.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts +9 -1
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +204 -0
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/aad/utils/telemetry.d.ts +0 -1
- package/build/plugins/resource/aad/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/telemetry.js +10 -17
- package/build/plugins/resource/aad/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/aad/utils/tokenProvider.d.ts +6 -2
- package/build/plugins/resource/aad/utils/tokenProvider.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/tokenProvider.js +11 -11
- package/build/plugins/resource/aad/utils/tokenProvider.js.map +1 -1
- package/build/plugins/resource/aad/v2/index.d.ts +10 -11
- package/build/plugins/resource/aad/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/aad/v2/index.js.map +1 -1
- package/build/plugins/resource/aad/v3/index.d.ts +20 -0
- package/build/plugins/resource/aad/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/aad/v3/index.js +213 -0
- package/build/plugins/resource/aad/v3/index.js.map +1 -0
- package/build/plugins/resource/apim/answer.d.ts +0 -6
- package/build/plugins/resource/apim/answer.d.ts.map +1 -1
- package/build/plugins/resource/apim/answer.js +6 -45
- package/build/plugins/resource/apim/answer.js.map +1 -1
- package/build/plugins/resource/apim/config.d.ts +5 -19
- package/build/plugins/resource/apim/config.d.ts.map +1 -1
- package/build/plugins/resource/apim/config.js +9 -35
- package/build/plugins/resource/apim/config.js.map +1 -1
- package/build/plugins/resource/apim/constants.d.ts +1 -30
- package/build/plugins/resource/apim/constants.d.ts.map +1 -1
- package/build/plugins/resource/apim/constants.js +37 -74
- package/build/plugins/resource/apim/constants.js.map +1 -1
- package/build/plugins/resource/apim/error.d.ts +0 -1
- package/build/plugins/resource/apim/error.d.ts.map +1 -1
- package/build/plugins/resource/apim/error.js +1 -6
- package/build/plugins/resource/apim/error.js.map +1 -1
- package/build/plugins/resource/apim/factory.d.ts +12 -12
- package/build/plugins/resource/apim/factory.d.ts.map +1 -1
- package/build/plugins/resource/apim/factory.js +38 -42
- package/build/plugins/resource/apim/factory.js.map +1 -1
- package/build/plugins/resource/apim/index.d.ts +1 -1
- package/build/plugins/resource/apim/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/index.js +17 -39
- package/build/plugins/resource/apim/index.js.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.d.ts +2 -3
- package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.js +2 -3
- package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.d.ts +7 -13
- package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.js +17 -32
- package/build/plugins/resource/apim/managers/questionManager.js.map +1 -1
- package/build/plugins/resource/apim/questions/cliQuestion.d.ts +0 -8
- package/build/plugins/resource/apim/questions/cliQuestion.d.ts.map +1 -1
- package/build/plugins/resource/apim/questions/cliQuestion.js +1 -33
- package/build/plugins/resource/apim/questions/cliQuestion.js.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts +8 -14
- package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.js +39 -79
- package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
- package/build/plugins/resource/apim/services/apimService.d.ts +1 -12
- package/build/plugins/resource/apim/services/apimService.d.ts.map +1 -1
- package/build/plugins/resource/apim/services/apimService.js +0 -112
- package/build/plugins/resource/apim/services/apimService.js.map +1 -1
- package/build/plugins/resource/apim/utils/commonUtils.d.ts +1 -1
- package/build/plugins/resource/apim/utils/commonUtils.js +3 -3
- package/build/plugins/resource/apim/utils/namingRules.d.ts +0 -4
- package/build/plugins/resource/apim/utils/namingRules.d.ts.map +1 -1
- package/build/plugins/resource/apim/utils/namingRules.js +0 -32
- package/build/plugins/resource/apim/utils/namingRules.js.map +1 -1
- package/build/plugins/resource/apim/utils/progressBar.d.ts +2 -2
- package/build/plugins/resource/apim/utils/progressBar.d.ts.map +1 -1
- package/build/plugins/resource/apim/utils/progressBar.js +3 -3
- package/build/plugins/resource/apim/utils/progressBar.js.map +1 -1
- package/build/plugins/resource/apim/utils/telemetry.d.ts +2 -2
- package/build/plugins/resource/apim/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/apim/utils/telemetry.js +4 -5
- package/build/plugins/resource/apim/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/apim/v2/index.d.ts +3 -5
- package/build/plugins/resource/apim/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/v2/index.js +0 -6
- package/build/plugins/resource/apim/v2/index.js.map +1 -1
- package/build/plugins/resource/apim/v3/index.d.ts +15 -0
- package/build/plugins/resource/apim/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/apim/v3/index.js +192 -0
- package/build/plugins/resource/apim/v3/index.js.map +1 -0
- package/build/plugins/resource/appstudio/appStudio.d.ts +3 -0
- package/build/plugins/resource/appstudio/appStudio.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/appStudio.js +3 -0
- package/build/plugins/resource/appstudio/appStudio.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +4 -0
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +45 -1
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/errors.d.ts +4 -0
- package/build/plugins/resource/appstudio/errors.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/errors.js +4 -0
- package/build/plugins/resource/appstudio/errors.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts +3 -27
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.js +46 -13
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +3 -0
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +52 -14
- package/build/plugins/resource/appstudio/plugin.js.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.d.ts +8 -4
- package/build/plugins/resource/appstudio/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.js +13 -12
- package/build/plugins/resource/appstudio/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.d.ts +3 -3
- package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts +6 -26
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.js +37 -3
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/plugin.d.ts +8 -0
- package/build/plugins/resource/appstudio/v3/plugin.d.ts.map +1 -0
- package/build/plugins/resource/appstudio/v3/plugin.js +70 -0
- package/build/plugins/resource/appstudio/v3/plugin.js.map +1 -0
- package/build/plugins/resource/bot/dotnet/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/dotnet/plugin.js +1 -1
- package/build/plugins/resource/bot/dotnet/plugin.js.map +1 -1
- package/build/plugins/resource/bot/enums/programmingLanguage.d.ts +2 -1
- package/build/plugins/resource/bot/enums/programmingLanguage.d.ts.map +1 -1
- package/build/plugins/resource/bot/enums/programmingLanguage.js +1 -0
- package/build/plugins/resource/bot/enums/programmingLanguage.js.map +1 -1
- package/build/plugins/resource/bot/index.js +3 -2
- package/build/plugins/resource/bot/index.js.map +1 -1
- package/build/plugins/resource/bot/v2/index.d.ts +3 -3
- package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/constants.d.ts +5 -0
- package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/constants.js +7 -1
- package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/enum.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/enum.js +2 -0
- package/build/plugins/resource/frontend/dotnet/enum.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/ops/deploy.js +18 -3
- package/build/plugins/resource/frontend/dotnet/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/ops/scaffold.d.ts +6 -0
- package/build/plugins/resource/frontend/dotnet/ops/scaffold.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/ops/scaffold.js +55 -0
- package/build/plugins/resource/frontend/dotnet/ops/scaffold.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +1 -3
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/plugin.js +38 -19
- package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts +23 -6
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/resources/messages.js +26 -7
- package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/resources/steps.d.ts +3 -0
- package/build/plugins/resource/frontend/dotnet/resources/steps.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/steps.js +16 -0
- package/build/plugins/resource/frontend/dotnet/resources/steps.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/templateInfo.d.ts +19 -0
- package/build/plugins/resource/frontend/dotnet/resources/templateInfo.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/templateInfo.js +42 -0
- package/build/plugins/resource/frontend/dotnet/resources/templateInfo.js.map +1 -0
- package/build/plugins/resource/frontend/index.d.ts +0 -1
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +4 -6
- package/build/plugins/resource/frontend/index.js.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +25 -24
- package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.d.ts +0 -10
- package/build/plugins/resource/frontend/ops/scaffold.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +15 -14
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/resources/steps.d.ts +7 -0
- package/build/plugins/resource/frontend/resources/steps.d.ts.map +1 -0
- package/build/plugins/resource/frontend/resources/steps.js +41 -0
- package/build/plugins/resource/frontend/resources/steps.js.map +1 -0
- package/build/plugins/resource/frontend/resources/templateInfo.d.ts +4 -3
- package/build/plugins/resource/frontend/resources/templateInfo.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.js +8 -7
- package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts +9 -35
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js +9 -82
- package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/frontend/v2/index.d.ts +2 -3
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js +3 -4
- package/build/plugins/resource/frontend/v2/index.js.map +1 -1
- package/build/plugins/resource/frontend/v3/index.d.ts +15 -2
- package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v3/index.js +268 -2
- package/build/plugins/resource/frontend/v3/index.js.map +1 -1
- package/build/plugins/resource/function/index.d.ts +1 -0
- package/build/plugins/resource/function/index.d.ts.map +1 -1
- package/build/plugins/resource/function/index.js +1 -0
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/function/ops/deploy.d.ts +1 -2
- package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/function/ops/deploy.js +1 -1
- package/build/plugins/resource/function/ops/deploy.js.map +1 -1
- package/build/plugins/resource/function/plugin.js +2 -2
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/function/resources/errors.d.ts +22 -1
- package/build/plugins/resource/function/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/function/resources/errors.js +32 -32
- package/build/plugins/resource/function/resources/errors.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +2 -2
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js +3 -3
- package/build/plugins/resource/function/utils/depsChecker/funcHelper.js.map +1 -1
- package/build/plugins/resource/function/v2/index.d.ts +3 -3
- package/build/plugins/resource/function/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/function/v2/index.js.map +1 -1
- package/build/plugins/resource/function/v3/error.d.ts +26 -0
- package/build/plugins/resource/function/v3/error.d.ts.map +1 -0
- package/build/plugins/resource/function/v3/error.js +69 -0
- package/build/plugins/resource/function/v3/error.js.map +1 -0
- package/build/plugins/resource/function/v3/index.d.ts +30 -0
- package/build/plugins/resource/function/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/function/v3/index.js +388 -0
- package/build/plugins/resource/function/v3/index.js.map +1 -0
- package/build/plugins/resource/identity/index.d.ts +1 -0
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +1 -0
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/identity/v2/index.d.ts +3 -3
- package/build/plugins/resource/identity/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/v2/index.js.map +1 -1
- package/build/plugins/resource/identity/v3/index.d.ts +12 -0
- package/build/plugins/resource/identity/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/identity/v3/index.js +89 -0
- package/build/plugins/resource/identity/v3/index.js.map +1 -0
- package/build/plugins/resource/keyvault/index.d.ts +1 -0
- package/build/plugins/resource/keyvault/index.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/index.js +1 -0
- package/build/plugins/resource/keyvault/index.js.map +1 -1
- package/build/plugins/resource/keyvault/v3/index.d.ts +10 -0
- package/build/plugins/resource/keyvault/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/keyvault/v3/index.js +90 -0
- package/build/plugins/resource/keyvault/v3/index.js.map +1 -0
- package/build/plugins/resource/localdebug/constants.d.ts +0 -1
- package/build/plugins/resource/localdebug/constants.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/constants.js +0 -1
- package/build/plugins/resource/localdebug/constants.js.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.js +1 -4
- package/build/plugins/resource/localdebug/v2/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.js +2 -2
- 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.map +1 -1
- package/build/plugins/resource/sql/constants.d.ts +0 -3
- package/build/plugins/resource/sql/constants.d.ts.map +1 -1
- package/build/plugins/resource/sql/constants.js +0 -3
- package/build/plugins/resource/sql/constants.js.map +1 -1
- package/build/plugins/resource/sql/errors.d.ts +0 -16
- package/build/plugins/resource/sql/errors.d.ts.map +1 -1
- package/build/plugins/resource/sql/errors.js +0 -16
- package/build/plugins/resource/sql/errors.js.map +1 -1
- package/build/plugins/resource/sql/index.d.ts +1 -0
- package/build/plugins/resource/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +2 -1
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/managementClient.d.ts +5 -10
- package/build/plugins/resource/sql/managementClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/managementClient.js +17 -65
- package/build/plugins/resource/sql/managementClient.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts +2 -3
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +15 -69
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts +3 -4
- package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/sqlClient.js +6 -7
- package/build/plugins/resource/sql/sqlClient.js.map +1 -1
- package/build/plugins/resource/sql/utils/dialogUtils.d.ts +2 -8
- package/build/plugins/resource/sql/utils/dialogUtils.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/dialogUtils.js +3 -11
- package/build/plugins/resource/sql/utils/dialogUtils.js.map +1 -1
- package/build/plugins/resource/sql/utils/message.d.ts +0 -10
- package/build/plugins/resource/sql/utils/message.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/message.js +0 -10
- package/build/plugins/resource/sql/utils/message.js.map +1 -1
- package/build/plugins/resource/sql/utils/telemetryUtils.d.ts +3 -3
- package/build/plugins/resource/sql/utils/telemetryUtils.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/telemetryUtils.js +6 -7
- package/build/plugins/resource/sql/utils/telemetryUtils.js.map +1 -1
- package/build/plugins/resource/sql/v2/index.d.ts +4 -4
- package/build/plugins/resource/sql/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/v2/index.js.map +1 -1
- package/build/plugins/resource/sql/v3/index.d.ts +25 -0
- package/build/plugins/resource/sql/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/sql/v3/index.js +297 -0
- package/build/plugins/resource/sql/v3/index.js.map +1 -0
- package/build/plugins/resource/utils4v2.d.ts +16 -20
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +9 -33
- package/build/plugins/resource/utils4v2.js.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +5 -4
- package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +3 -4
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +117 -73
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +0 -7
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +2 -4
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +3 -5
- package/build/plugins/solution/fx-solution/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 -7
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.js +18 -1
- package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/tasks.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/tasks.js +2 -4
- package/build/plugins/solution/fx-solution/debug/util/tasks.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.d.ts +2 -0
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.js +145 -0
- package/build/plugins/solution/fx-solution/debug/util/tasksNext.js.map +1 -0
- package/build/plugins/solution/fx-solution/solution.d.ts +2 -1
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +33 -14
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.d.ts +3 -0
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.js +19 -0
- package/build/plugins/solution/fx-solution/utils/solutionSettingsHelper.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/checkPermission.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/checkPermission.js +32 -14
- package/build/plugins/solution/fx-solution/v2/checkPermission.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.js +11 -6
- package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +31 -10
- 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 +4 -5
- 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 +32 -25
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/grantPermission.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/grantPermission.js +33 -15
- 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 +20 -10
- package/build/plugins/solution/fx-solution/v2/listCollaborator.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.d.ts +2 -3
- package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js +98 -130
- package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js +0 -5
- 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 +8 -8
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/solution.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/solution.js +0 -2
- package/build/plugins/solution/fx-solution/v2/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.d.ts +4 -4
- package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +14 -16
- package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addFeature.d.ts +25 -0
- package/build/plugins/solution/fx-solution/v3/addFeature.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/addFeature.js +115 -0
- package/build/plugins/solution/fx-solution/v3/addFeature.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts +7 -9
- package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/constants.js +9 -11
- package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/deploy.js +15 -18
- package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/error.d.ts +1 -7
- package/build/plugins/solution/fx-solution/v3/error.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/error.js +0 -14
- package/build/plugins/solution/fx-solution/v3/error.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts +8 -3
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.js +150 -110
- package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/publish.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v3/publish.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/publish.js +1 -1
- package/build/plugins/solution/fx-solution/v3/publish.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/solution.d.ts +14 -24
- package/build/plugins/solution/fx-solution/v3/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/solution.js +75 -19
- package/build/plugins/solution/fx-solution/v3/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.d.ts +5 -0
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.js +10 -0
- package/build/plugins/solution/fx-solution/v3/solutionGlobalVars.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/userTask.d.ts +4 -3
- package/build/plugins/solution/fx-solution/v3/userTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/userTask.js +111 -5
- package/build/plugins/solution/fx-solution/v3/userTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/utils.d.ts +1 -2
- package/build/plugins/solution/fx-solution/v3/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/utils.js +0 -13
- package/build/plugins/solution/fx-solution/v3/utils.js.map +1 -1
- package/build/plugins/solution/spfx-solution/addFeature.d.ts +5 -0
- package/build/plugins/solution/spfx-solution/addFeature.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/addFeature.js +38 -0
- package/build/plugins/solution/spfx-solution/addFeature.js.map +1 -0
- package/build/plugins/solution/spfx-solution/solution.d.ts +3 -10
- package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/spfx-solution/solution.js +4 -11
- package/build/plugins/solution/spfx-solution/solution.js.map +1 -1
- package/build/plugins/solution/utils/questions.d.ts +5 -11
- package/build/plugins/solution/utils/questions.d.ts.map +1 -1
- package/build/plugins/solution/utils/questions.js +9 -62
- package/build/plugins/solution/utils/questions.js.map +1 -1
- package/package.json +11 -5
- package/resource/strings.json +28 -1
- package/templates/plugins/resource/bot/bot-msgext.js.default.zip +0 -0
- package/templates/plugins/resource/bot/bot-msgext.ts.default.zip +0 -0
- package/templates/plugins/resource/bot/bot.js.default.zip +0 -0
- package/templates/plugins/resource/bot/bot.ts.default.zip +0 -0
- package/templates/plugins/resource/bot/msgext.js.default.zip +0 -0
- package/templates/plugins/resource/bot/msgext.ts.default.zip +0 -0
- package/templates/plugins/resource/frontend/tab.js.default.zip +0 -0
- package/templates/plugins/resource/frontend/tab.ts.default.zip +0 -0
- package/templates/plugins/resource/function/function-base.js.default.zip +0 -0
- package/templates/plugins/resource/function/function-base.ts.default.zip +0 -0
- package/templates/plugins/resource/function/function-triggers.js.HTTPTrigger.zip +0 -0
- package/templates/plugins/resource/function/function-triggers.ts.HTTPTrigger.zip +0 -0
- package/templates/plugins/solution/{main.bicep → mainConfig.bicep} +0 -12
- package/templates/plugins/solution/mainProvision.bicep +10 -0
- package/build/core/middleware/projectSettingsLoaderV3.d.ts +0 -4
- package/build/core/middleware/projectSettingsLoaderV3.d.ts.map +0 -1
- package/build/core/middleware/projectSettingsLoaderV3.js +0 -49
- package/build/core/middleware/projectSettingsLoaderV3.js.map +0 -1
- package/build/plugins/resource/apim/interfaces/IApimResource.d.ts +0 -5
- package/build/plugins/resource/apim/interfaces/IApimResource.d.ts.map +0 -1
- package/build/plugins/resource/apim/interfaces/IApimResource.js.map +0 -1
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts +0 -15
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js +0 -149
- package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js.map +0 -1
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts +0 -8
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js +0 -95
- package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js.map +0 -1
- package/build/plugins/solution/fx-solution/v2/listAllCollaborators.d.ts +0 -5
- package/build/plugins/solution/fx-solution/v2/listAllCollaborators.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v2/listAllCollaborators.js +0 -118
- package/build/plugins/solution/fx-solution/v2/listAllCollaborators.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts +0 -4
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/addModule.js +0 -58
- package/build/plugins/solution/fx-solution/v3/addModule.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts +0 -29
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/addResource.js +0 -233
- package/build/plugins/solution/fx-solution/v3/addResource.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/init.d.ts +0 -4
- package/build/plugins/solution/fx-solution/v3/init.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/init.js +0 -44
- package/build/plugins/solution/fx-solution/v3/init.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts +0 -4
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js +0 -108
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +0 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +0 -22
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +0 -1
- package/build/plugins/solution/fx-solution/v3/scaffold.js +0 -219
- package/build/plugins/solution/fx-solution/v3/scaffold.js.map +0 -1
- package/build/plugins/solution/spfx-solution/addModule.d.ts +0 -3
- package/build/plugins/solution/spfx-solution/addModule.d.ts.map +0 -1
- package/build/plugins/solution/spfx-solution/addModule.js +0 -29
- package/build/plugins/solution/spfx-solution/addModule.js.map +0 -1
- package/build/plugins/solution/spfx-solution/init.d.ts +0 -4
- package/build/plugins/solution/spfx-solution/init.d.ts.map +0 -1
- package/build/plugins/solution/spfx-solution/init.js +0 -52
- package/build/plugins/solution/spfx-solution/init.js.map +0 -1
- package/build/plugins/solution/spfx-solution/scaffold.d.ts +0 -5
- package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +0 -1
- package/build/plugins/solution/spfx-solution/scaffold.js +0 -69
- package/build/plugins/solution/spfx-solution/scaffold.js.map +0 -1
|
@@ -4,37 +4,34 @@ exports.CliQuestionManager = exports.VscQuestionManager = void 0;
|
|
|
4
4
|
// Copyright (c) Microsoft Corporation.
|
|
5
5
|
// Licensed under the MIT license.
|
|
6
6
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
|
+
const constants_1 = require("../../../solution/fx-solution/v3/constants");
|
|
7
8
|
const error_1 = require("../error");
|
|
8
|
-
const config_1 = require("../config");
|
|
9
9
|
class VscQuestionManager {
|
|
10
|
-
constructor(
|
|
11
|
-
this.apimServiceQuestion = apimServiceQuestion;
|
|
10
|
+
constructor(openApiDocumentQuestion, apiPrefixQuestion, apiVersionQuestion, newApiVersionQuestion, existingOpenApiDocumentFunc) {
|
|
12
11
|
this.openApiDocumentQuestion = openApiDocumentQuestion;
|
|
13
12
|
this.apiPrefixQuestion = apiPrefixQuestion;
|
|
14
13
|
this.apiVersionQuestion = apiVersionQuestion;
|
|
15
14
|
this.newApiVersionQuestion = newApiVersionQuestion;
|
|
16
15
|
this.existingOpenApiDocumentFunc = existingOpenApiDocumentFunc;
|
|
16
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
17
17
|
}
|
|
18
18
|
async callFunc(func, ctx) {
|
|
19
19
|
throw error_1.BuildError(error_1.NotImplemented);
|
|
20
20
|
}
|
|
21
|
-
async
|
|
22
|
-
const rootNode = new teamsfx_api_1.QTreeNode({
|
|
23
|
-
type: "group",
|
|
24
|
-
});
|
|
25
|
-
return rootNode;
|
|
26
|
-
}
|
|
27
|
-
async deploy(ctx, apimConfig) {
|
|
21
|
+
async deploy(projectPath, envInfo, apimConfig) {
|
|
28
22
|
const rootNode = new teamsfx_api_1.QTreeNode({
|
|
29
23
|
type: "group",
|
|
30
24
|
});
|
|
31
25
|
let documentNode;
|
|
32
26
|
if (!apimConfig.apiDocumentPath) {
|
|
33
|
-
const documentPathQuestion = this.openApiDocumentQuestion.getQuestion(
|
|
27
|
+
const documentPathQuestion = this.openApiDocumentQuestion.getQuestion(projectPath);
|
|
34
28
|
documentNode = new teamsfx_api_1.QTreeNode(documentPathQuestion);
|
|
35
29
|
}
|
|
36
30
|
else {
|
|
37
|
-
const
|
|
31
|
+
const apimState = envInfo.state.get
|
|
32
|
+
? envInfo.state.get(constants_1.BuiltInFeaturePluginNames.apim)
|
|
33
|
+
: envInfo.state[constants_1.BuiltInFeaturePluginNames.apim];
|
|
34
|
+
const documentPathFunc = this.existingOpenApiDocumentFunc.getQuestion(projectPath, envInfo.envName, apimState);
|
|
38
35
|
documentNode = new teamsfx_api_1.QTreeNode(documentPathFunc);
|
|
39
36
|
}
|
|
40
37
|
rootNode.addChild(documentNode);
|
|
@@ -43,7 +40,7 @@ class VscQuestionManager {
|
|
|
43
40
|
const apiPrefixQuestionNode = new teamsfx_api_1.QTreeNode(apiPrefixQuestion);
|
|
44
41
|
documentNode.addChild(apiPrefixQuestionNode);
|
|
45
42
|
}
|
|
46
|
-
const versionQuestion = this.apiVersionQuestion.getQuestion(
|
|
43
|
+
const versionQuestion = this.apiVersionQuestion.getQuestion(envInfo);
|
|
47
44
|
const versionQuestionNode = new teamsfx_api_1.QTreeNode(versionQuestion);
|
|
48
45
|
documentNode.addChild(versionQuestionNode);
|
|
49
46
|
const newVersionQuestion = this.newApiVersionQuestion.getQuestion();
|
|
@@ -55,35 +52,23 @@ class VscQuestionManager {
|
|
|
55
52
|
}
|
|
56
53
|
exports.VscQuestionManager = VscQuestionManager;
|
|
57
54
|
class CliQuestionManager {
|
|
58
|
-
constructor(
|
|
59
|
-
this.apimServiceNameQuestion = apimServiceNameQuestion;
|
|
60
|
-
this.apimResourceGroupQuestion = apimResourceGroupQuestion;
|
|
55
|
+
constructor(openApiDocumentQuestion, apiPrefixQuestion, apiVersionQuestion) {
|
|
61
56
|
this.openApiDocumentQuestion = openApiDocumentQuestion;
|
|
62
57
|
this.apiPrefixQuestion = apiPrefixQuestion;
|
|
63
58
|
this.apiVersionQuestion = apiVersionQuestion;
|
|
59
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
64
60
|
}
|
|
65
61
|
async callFunc(func, ctx) {
|
|
66
62
|
throw error_1.BuildError(error_1.NotImplemented);
|
|
67
63
|
}
|
|
68
|
-
async
|
|
64
|
+
async deploy(projectPath, envInfo, apimConfig) {
|
|
69
65
|
const rootNode = new teamsfx_api_1.QTreeNode({
|
|
70
66
|
type: "group",
|
|
71
67
|
});
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
type: "group",
|
|
77
|
-
});
|
|
78
|
-
const apimConfig = new config_1.ApimPluginConfig(ctx.config, ctx.envInfo.envName);
|
|
79
|
-
if (!apimConfig.apiDocumentPath) {
|
|
80
|
-
const openApiDocumentQuestion = this.openApiDocumentQuestion.getQuestion();
|
|
81
|
-
rootNode.addChild(new teamsfx_api_1.QTreeNode(openApiDocumentQuestion));
|
|
82
|
-
}
|
|
83
|
-
if (!apimConfig.apiPrefix) {
|
|
84
|
-
const apiPrefixQuestion = this.apiPrefixQuestion.getQuestion();
|
|
85
|
-
rootNode.addChild(new teamsfx_api_1.QTreeNode(apiPrefixQuestion));
|
|
86
|
-
}
|
|
68
|
+
const openApiDocumentQuestion = this.openApiDocumentQuestion.getQuestion();
|
|
69
|
+
rootNode.addChild(new teamsfx_api_1.QTreeNode(openApiDocumentQuestion));
|
|
70
|
+
const apiPrefixQuestion = this.apiPrefixQuestion.getQuestion();
|
|
71
|
+
rootNode.addChild(new teamsfx_api_1.QTreeNode(apiPrefixQuestion));
|
|
87
72
|
const apiVersionQuestion = this.apiVersionQuestion.getQuestion();
|
|
88
73
|
rootNode.addChild(new teamsfx_api_1.QTreeNode(apiVersionQuestion));
|
|
89
74
|
return rootNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questionManager.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/managers/questionManager.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"questionManager.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/managers/questionManager.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAAqF;AACrF,0EAAuF;AAEvF,oCAAsD;AAWtD,MAAa,kBAAkB;IAO7B,YACE,uBAAuD,EACvD,iBAA2C,EAC3C,kBAA6C,EAC7C,qBAAmD,EACnD,2BAA+D;QAE/D,IAAI,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;QACvD,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;QAC/D,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,IAAU,EAAE,GAAkB;QAC3C,MAAM,kBAAU,CAAC,sBAAc,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,MAAM,CACV,WAAoB,EACpB,OAAgC,EAChC,UAA8B;QAE9B,MAAM,QAAQ,GAAG,IAAI,uBAAS,CAAC;YAC7B,IAAI,EAAE,OAAO;SACd,CAAC,CAAC;QAEH,IAAI,YAAuB,CAAC;QAC5B,IAAI,CAAC,UAAW,CAAC,eAAe,EAAE;YAChC,MAAM,oBAAoB,GAAG,IAAI,CAAC,uBAAuB,CAAC,WAAW,CAAC,WAAY,CAAC,CAAC;YACpF,YAAY,GAAG,IAAI,uBAAS,CAAC,oBAAoB,CAAC,CAAC;SACpD;aAAM;YACL,MAAM,SAAS,GAAG,OAAQ,CA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BAAwC,EACxC,kBAA0C;QAE1C,IAAI,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;QACvD,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,IAAU,EAAE,GAAkB;QAC3C,MAAM,kBAAU,CAAC,sBAAc,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,MAAM,CACV,WAAoB,EACpB,OAAgC,EAChC,UAA8B;QAE9B,MAAM,QAAQ,GAAG,IAAI,uBAAS,CAAC;YAC7B,IAAI,EAAE,OAAO;SACd,CAAC,CAAC;QAEH,MAAM,uBAAuB,GAAG,IAAI,CAAC,uBAAuB,CAAC,WAAW,EAAE,CAAC;QAC3E,QAAQ,CAAC,QAAQ,CAAC,IAAI,uBAAS,CAAC,uBAAuB,CAAC,CAAC,CAAC;QAC1D,MAAM,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,CAAC;QAC/D,QAAQ,CAAC,QAAQ,CAAC,IAAI,uBAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC;QACpD,MAAM,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC;QACjE,QAAQ,CAAC,QAAQ,CAAC,IAAI,uBAAS,CAAC,kBAAkB,CAAC,CAAC,CAAC;QACrD,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AApCD,gDAoCC"}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { LogProvider, TextInputQuestion, TelemetryReporter } from "@microsoft/teamsfx-api";
|
|
2
2
|
import { BaseQuestionService, IQuestionService } from "./question";
|
|
3
|
-
export declare class ApimServiceNameQuestion extends BaseQuestionService implements IQuestionService {
|
|
4
|
-
constructor(telemetryReporter?: TelemetryReporter, logger?: LogProvider);
|
|
5
|
-
getQuestion(): TextInputQuestion;
|
|
6
|
-
}
|
|
7
|
-
export declare class ApimResourceGroupQuestion extends BaseQuestionService implements IQuestionService {
|
|
8
|
-
constructor(telemetryReporter?: TelemetryReporter, logger?: LogProvider);
|
|
9
|
-
getQuestion(): TextInputQuestion;
|
|
10
|
-
}
|
|
11
3
|
export declare class OpenApiDocumentQuestion extends BaseQuestionService implements IQuestionService {
|
|
12
4
|
constructor(telemetryReporter?: TelemetryReporter, logger?: LogProvider);
|
|
13
5
|
getQuestion(): TextInputQuestion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cliQuestion.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/questions/cliQuestion.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"cliQuestion.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/questions/cliQuestion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAU,MAAM,wBAAwB,CAAC;AAGnG,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnE,qBAAa,uBAAwB,SAAQ,mBAAoB,YAAW,gBAAgB;gBAC9E,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,WAAW;IAIhE,WAAW,IAAI,iBAAiB;CAQxC;AAED,qBAAa,iBAAkB,SAAQ,mBAAoB,YAAW,gBAAgB;gBACxE,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,WAAW;IAIhE,WAAW,IAAI,iBAAiB;CAYxC;AAGD,qBAAa,aAAc,SAAQ,mBAAoB,YAAW,gBAAgB;gBACpE,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,WAAW;IAIhE,WAAW,IAAI,iBAAiB;CAYxC;AAED,qBAAa,kBAAmB,SAAQ,mBAAoB,YAAW,gBAAgB;gBACzE,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,WAAW;IAIhE,WAAW,IAAI,iBAAiB;CAYxC"}
|
|
@@ -1,41 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApiVersionQuestion = exports.ApiIdQuestion = exports.ApiPrefixQuestion = exports.OpenApiDocumentQuestion =
|
|
3
|
+
exports.ApiVersionQuestion = exports.ApiIdQuestion = exports.ApiPrefixQuestion = exports.OpenApiDocumentQuestion = void 0;
|
|
4
4
|
const constants_1 = require("../constants");
|
|
5
5
|
const namingRules_1 = require("../utils/namingRules");
|
|
6
6
|
const question_1 = require("./question");
|
|
7
|
-
class ApimServiceNameQuestion extends question_1.BaseQuestionService {
|
|
8
|
-
constructor(telemetryReporter, logger) {
|
|
9
|
-
super(telemetryReporter, logger);
|
|
10
|
-
}
|
|
11
|
-
getQuestion() {
|
|
12
|
-
return {
|
|
13
|
-
type: "text",
|
|
14
|
-
name: constants_1.QuestionConstants.CLI.ApimServiceName.questionName,
|
|
15
|
-
title: constants_1.QuestionConstants.CLI.ApimServiceName.description,
|
|
16
|
-
validation: {
|
|
17
|
-
validFunc: (input, previousInputs) => namingRules_1.NamingRules.validate(input, namingRules_1.NamingRules.apimServiceName),
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.ApimServiceNameQuestion = ApimServiceNameQuestion;
|
|
23
|
-
class ApimResourceGroupQuestion extends question_1.BaseQuestionService {
|
|
24
|
-
constructor(telemetryReporter, logger) {
|
|
25
|
-
super(telemetryReporter, logger);
|
|
26
|
-
}
|
|
27
|
-
getQuestion() {
|
|
28
|
-
return {
|
|
29
|
-
type: "text",
|
|
30
|
-
name: constants_1.QuestionConstants.CLI.ApimResourceGroup.questionName,
|
|
31
|
-
title: constants_1.QuestionConstants.CLI.ApimResourceGroup.description,
|
|
32
|
-
validation: {
|
|
33
|
-
validFunc: (input, previousInputs) => namingRules_1.NamingRules.validate(input, namingRules_1.NamingRules.resourceGroupName),
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.ApimResourceGroupQuestion = ApimResourceGroupQuestion;
|
|
39
7
|
class OpenApiDocumentQuestion extends question_1.BaseQuestionService {
|
|
40
8
|
constructor(telemetryReporter, logger) {
|
|
41
9
|
super(telemetryReporter, logger);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cliQuestion.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/questions/cliQuestion.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cliQuestion.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/questions/cliQuestion.ts"],"names":[],"mappings":";;;AAGA,4CAAiD;AACjD,sDAAmD;AACnD,yCAAmE;AAEnE,MAAa,uBAAwB,SAAQ,8BAAmB;IAC9D,YAAY,iBAAqC,EAAE,MAAoB;QACrE,KAAK,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC;IAEM,WAAW;QAChB,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,6BAAiB,CAAC,GAAG,CAAC,eAAe,CAAC,YAAY;YACxD,KAAK,EAAE,6BAAiB,CAAC,GAAG,CAAC,eAAe,CAAC,WAAW;YACxD,2EAA2E;SAC5E,CAAC;IACJ,CAAC;CACF;AAbD,0DAaC;AAED,MAAa,iBAAkB,SAAQ,8BAAmB;IACxD,YAAY,iBAAqC,EAAE,MAAoB;QACrE,KAAK,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC;IAEM,WAAW;QAChB,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,6BAAiB,CAAC,GAAG,CAAC,SAAS,CAAC,YAAY;YAClD,KAA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AAC;gBACpE,QAAQ,EAAE,IAAI;aACf;SACF,CAAC;IACJ,CAAC;CACF;AAjBD,gDAiBC"}
|
|
@@ -1,33 +1,27 @@
|
|
|
1
|
-
import { LogProvider,
|
|
1
|
+
import { EnvInfo, FuncQuestion, Json, LogProvider, PluginConfig, SingleSelectQuestion, TelemetryReporter, TextInputQuestion, v3, ValidationSchema } from "@microsoft/teamsfx-api";
|
|
2
2
|
import { ApimService } from "../services/apimService";
|
|
3
|
+
import { Lazy } from "../utils/commonUtils";
|
|
3
4
|
import { OpenApiProcessor } from "../utils/openApiProcessor";
|
|
4
5
|
import { BaseQuestionService, IQuestionService } from "./question";
|
|
5
|
-
|
|
6
|
-
export declare class ApimServiceQuestion extends BaseQuestionService implements IQuestionService {
|
|
7
|
-
private readonly lazyApimService;
|
|
8
|
-
constructor(lazyApimService: Lazy<ApimService>, telemetryReporter?: TelemetryReporter, logger?: LogProvider);
|
|
9
|
-
getQuestion(): SingleSelectQuestion;
|
|
10
|
-
private getDynamicOptions;
|
|
11
|
-
}
|
|
12
|
-
export declare class OpenApiDocumentQuestion extends BaseQuestionService implements IQuestionService {
|
|
6
|
+
export declare class OpenApiDocumentQuestion extends BaseQuestionService {
|
|
13
7
|
private readonly openApiProcessor;
|
|
14
8
|
constructor(openApiProcessor: OpenApiProcessor, telemetryReporter?: TelemetryReporter, logger?: LogProvider);
|
|
15
|
-
getQuestion(
|
|
9
|
+
getQuestion(projectPath: string): SingleSelectQuestion;
|
|
16
10
|
private getDynamicOptions;
|
|
17
11
|
}
|
|
18
|
-
export declare class ExistingOpenApiDocumentFunc extends BaseQuestionService
|
|
12
|
+
export declare class ExistingOpenApiDocumentFunc extends BaseQuestionService {
|
|
19
13
|
private readonly openApiProcessor;
|
|
20
14
|
constructor(openApiProcessor: OpenApiProcessor, telemetryReporter?: TelemetryReporter, logger?: LogProvider);
|
|
21
|
-
getQuestion(
|
|
15
|
+
getQuestion(projectPath: string, envName: string, apimState: PluginConfig | Json): FuncQuestion;
|
|
22
16
|
}
|
|
23
17
|
export declare class ApiPrefixQuestion extends BaseQuestionService implements IQuestionService {
|
|
24
18
|
constructor(telemetryReporter?: TelemetryReporter, logger?: LogProvider);
|
|
25
19
|
getQuestion(): TextInputQuestion;
|
|
26
20
|
}
|
|
27
|
-
export declare class ApiVersionQuestion extends BaseQuestionService
|
|
21
|
+
export declare class ApiVersionQuestion extends BaseQuestionService {
|
|
28
22
|
private readonly lazyApimService;
|
|
29
23
|
constructor(lazyApimService: Lazy<ApimService>, telemetryReporter?: TelemetryReporter, logger?: LogProvider);
|
|
30
|
-
getQuestion(
|
|
24
|
+
getQuestion(envInfo: EnvInfo | v3.EnvInfoV3): SingleSelectQuestion;
|
|
31
25
|
private getDynamicOptions;
|
|
32
26
|
}
|
|
33
27
|
export declare class NewApiVersionQuestion extends BaseQuestionService implements IQuestionService {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vscodeQuestion.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/questions/vscodeQuestion.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vscodeQuestion.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/questions/vscodeQuestion.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,YAAY,EAEZ,IAAI,EACJ,WAAW,EAEX,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,EAAE,EACF,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAOhC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAoC,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnE,qBAAa,uBAAwB,SAAQ,mBAAmB;IAC9D,OAAO,CAAC,QAAQ,CAA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{ value: true });
|
|
3
|
-
exports.NewApiVersionQuestion = exports.ApiVersionQuestion = exports.ApiPrefixQuestion = exports.ExistingOpenApiDocumentFunc = exports.OpenApiDocumentQuestion =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const error_1 = require("../error");
|
|
7
|
-
const constants_1 = require("../constants");
|
|
8
|
-
const config_1 = require("../config");
|
|
3
|
+
exports.NewApiVersionQuestion = exports.ApiVersionQuestion = exports.ApiPrefixQuestion = exports.ExistingOpenApiDocumentFunc = exports.OpenApiDocumentQuestion = void 0;
|
|
4
|
+
const tools_1 = require("../../../../common/tools");
|
|
5
|
+
const constants_1 = require("../../../solution/fx-solution/v3/constants");
|
|
9
6
|
const answer_1 = require("../answer");
|
|
7
|
+
const config_1 = require("../config");
|
|
8
|
+
const constants_2 = require("../constants");
|
|
9
|
+
const error_1 = require("../error");
|
|
10
|
+
const commonUtils_1 = require("../utils/commonUtils");
|
|
10
11
|
const namingRules_1 = require("../utils/namingRules");
|
|
11
12
|
const question_1 = require("./question");
|
|
12
|
-
const commonUtils_1 = require("../utils/commonUtils");
|
|
13
|
-
const tools_1 = require("../../../../common/tools");
|
|
14
|
-
class ApimServiceQuestion extends question_1.BaseQuestionService {
|
|
15
|
-
constructor(lazyApimService, telemetryReporter, logger) {
|
|
16
|
-
super(telemetryReporter, logger);
|
|
17
|
-
this.lazyApimService = lazyApimService;
|
|
18
|
-
}
|
|
19
|
-
getQuestion() {
|
|
20
|
-
return {
|
|
21
|
-
type: "singleSelect",
|
|
22
|
-
name: constants_1.QuestionConstants.VSCode.Apim.questionName,
|
|
23
|
-
title: constants_1.QuestionConstants.VSCode.Apim.description,
|
|
24
|
-
staticOptions: [
|
|
25
|
-
{
|
|
26
|
-
id: constants_1.QuestionConstants.VSCode.Apim.createNewApimOption,
|
|
27
|
-
label: constants_1.QuestionConstants.VSCode.Apim.createNewApimOption,
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
dynamicOptions: async (inputs) => {
|
|
31
|
-
return this.getDynamicOptions();
|
|
32
|
-
},
|
|
33
|
-
returnObject: true,
|
|
34
|
-
skipSingleOption: false,
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
async getDynamicOptions() {
|
|
38
|
-
const apimService = await this.lazyApimService.getValue();
|
|
39
|
-
const apimServiceList = await apimService.listService();
|
|
40
|
-
const existingOptions = apimServiceList.map((apimService) => {
|
|
41
|
-
return {
|
|
42
|
-
id: apimService.serviceName,
|
|
43
|
-
label: apimService.serviceName,
|
|
44
|
-
description: apimService.resourceGroupName,
|
|
45
|
-
data: apimService,
|
|
46
|
-
};
|
|
47
|
-
});
|
|
48
|
-
const newOption = {
|
|
49
|
-
id: constants_1.QuestionConstants.VSCode.Apim.createNewApimOption,
|
|
50
|
-
label: constants_1.QuestionConstants.VSCode.Apim.createNewApimOption,
|
|
51
|
-
};
|
|
52
|
-
return [newOption, ...existingOptions];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.ApimServiceQuestion = ApimServiceQuestion;
|
|
56
13
|
class OpenApiDocumentQuestion extends question_1.BaseQuestionService {
|
|
57
14
|
constructor(openApiProcessor, telemetryReporter, logger) {
|
|
58
15
|
super(telemetryReporter, logger);
|
|
59
16
|
this.openApiProcessor = openApiProcessor;
|
|
60
17
|
}
|
|
61
|
-
getQuestion(
|
|
18
|
+
getQuestion(projectPath) {
|
|
62
19
|
return {
|
|
63
20
|
type: "singleSelect",
|
|
64
|
-
name:
|
|
65
|
-
title:
|
|
21
|
+
name: constants_2.QuestionConstants.VSCode.OpenApiDocument.questionName,
|
|
22
|
+
title: constants_2.QuestionConstants.VSCode.OpenApiDocument.description,
|
|
66
23
|
staticOptions: [],
|
|
67
24
|
dynamicOptions: async (inputs) => {
|
|
68
|
-
return this.getDynamicOptions(
|
|
25
|
+
return this.getDynamicOptions(projectPath);
|
|
69
26
|
},
|
|
70
27
|
returnObject: true,
|
|
71
28
|
skipSingleOption: false,
|
|
72
29
|
};
|
|
73
30
|
}
|
|
74
31
|
async getDynamicOptions(root) {
|
|
75
|
-
const filePath2OpenApiMap = await this.openApiProcessor.listOpenApiDocument(root,
|
|
32
|
+
const filePath2OpenApiMap = await this.openApiProcessor.listOpenApiDocument(root, constants_2.QuestionConstants.VSCode.OpenApiDocument.excludeFolders, constants_2.QuestionConstants.VSCode.OpenApiDocument.openApiDocumentFileExtensions);
|
|
76
33
|
if (filePath2OpenApiMap.size === 0) {
|
|
77
34
|
throw error_1.BuildError(error_1.NoValidOpenApiDocument);
|
|
78
35
|
}
|
|
@@ -87,14 +44,14 @@ class ExistingOpenApiDocumentFunc extends question_1.BaseQuestionService {
|
|
|
87
44
|
super(telemetryReporter, logger);
|
|
88
45
|
this.openApiProcessor = openApiProcessor;
|
|
89
46
|
}
|
|
90
|
-
getQuestion(
|
|
47
|
+
getQuestion(projectPath, envName, apimState) {
|
|
91
48
|
return {
|
|
92
49
|
type: "func",
|
|
93
|
-
name:
|
|
50
|
+
name: constants_2.QuestionConstants.VSCode.ExistingOpenApiDocument.questionName,
|
|
94
51
|
func: async (inputs) => {
|
|
95
|
-
const apimConfig = new config_1.ApimPluginConfig(
|
|
96
|
-
const openApiDocumentPath = apimConfig.checkAndGet(
|
|
97
|
-
const openApiDocument = await this.openApiProcessor.loadOpenApiDocument(openApiDocumentPath,
|
|
52
|
+
const apimConfig = new config_1.ApimPluginConfig(apimState, envName);
|
|
53
|
+
const openApiDocumentPath = apimConfig.checkAndGet(constants_2.ApimPluginConfigKeys.apiDocumentPath);
|
|
54
|
+
const openApiDocument = await this.openApiProcessor.loadOpenApiDocument(openApiDocumentPath, projectPath);
|
|
98
55
|
return { id: openApiDocumentPath, label: openApiDocumentPath, data: openApiDocument };
|
|
99
56
|
},
|
|
100
57
|
};
|
|
@@ -108,9 +65,9 @@ class ApiPrefixQuestion extends question_1.BaseQuestionService {
|
|
|
108
65
|
getQuestion() {
|
|
109
66
|
return {
|
|
110
67
|
type: "text",
|
|
111
|
-
name:
|
|
112
|
-
title:
|
|
113
|
-
prompt:
|
|
68
|
+
name: constants_2.QuestionConstants.VSCode.ApiPrefix.questionName,
|
|
69
|
+
title: constants_2.QuestionConstants.VSCode.ApiPrefix.description,
|
|
70
|
+
prompt: constants_2.QuestionConstants.VSCode.ApiPrefix.prompt,
|
|
114
71
|
default: async (inputs) => {
|
|
115
72
|
var _a, _b;
|
|
116
73
|
const apiTitle = (_b = (_a = answer_1.buildAnswer(inputs)) === null || _a === void 0 ? void 0 : _a.openApiDocumentSpec) === null || _b === void 0 ? void 0 : _b.info.title;
|
|
@@ -118,7 +75,7 @@ class ApiPrefixQuestion extends question_1.BaseQuestionService {
|
|
|
118
75
|
if (apiTitle) {
|
|
119
76
|
apiPrefix = namingRules_1.NamingRules.apiPrefix.sanitize(apiTitle);
|
|
120
77
|
}
|
|
121
|
-
return apiPrefix ? apiPrefix :
|
|
78
|
+
return apiPrefix ? apiPrefix : constants_2.ApimDefaultValues.apiPrefix;
|
|
122
79
|
},
|
|
123
80
|
validation: {
|
|
124
81
|
validFunc: (input, previousInputs) => namingRules_1.NamingRules.validate(input, namingRules_1.NamingRules.apiPrefix),
|
|
@@ -132,29 +89,32 @@ class ApiVersionQuestion extends question_1.BaseQuestionService {
|
|
|
132
89
|
super(telemetryReporter, logger);
|
|
133
90
|
this.lazyApimService = lazyApimService;
|
|
134
91
|
}
|
|
135
|
-
getQuestion(
|
|
92
|
+
getQuestion(envInfo) {
|
|
136
93
|
return {
|
|
137
94
|
type: "singleSelect",
|
|
138
|
-
name:
|
|
139
|
-
title:
|
|
95
|
+
name: constants_2.QuestionConstants.VSCode.ApiVersion.questionName,
|
|
96
|
+
title: constants_2.QuestionConstants.VSCode.ApiVersion.description,
|
|
140
97
|
staticOptions: [],
|
|
141
98
|
dynamicOptions: async (inputs) => {
|
|
142
|
-
return this.getDynamicOptions(inputs,
|
|
99
|
+
return this.getDynamicOptions(inputs, envInfo);
|
|
143
100
|
},
|
|
144
101
|
returnObject: true,
|
|
145
102
|
skipSingleOption: false,
|
|
146
103
|
};
|
|
147
104
|
}
|
|
148
|
-
async getDynamicOptions(inputs,
|
|
105
|
+
async getDynamicOptions(inputs, envInfo) {
|
|
149
106
|
var _a, _b;
|
|
150
107
|
const apimService = await this.lazyApimService.getValue();
|
|
151
|
-
const
|
|
152
|
-
|
|
108
|
+
const apimState = envInfo.state.get
|
|
109
|
+
? envInfo.state.get(constants_1.BuiltInFeaturePluginNames.apim)
|
|
110
|
+
: envInfo.state[constants_1.BuiltInFeaturePluginNames.apim];
|
|
111
|
+
const apimConfig = new config_1.ApimPluginConfig(apimState, envInfo.envName);
|
|
112
|
+
const solutionConfig = new config_1.SolutionConfig(envInfo);
|
|
153
113
|
const answer = answer_1.buildAnswer(inputs);
|
|
154
|
-
const apimServiceResourceId = apimConfig.checkAndGet(
|
|
114
|
+
const apimServiceResourceId = apimConfig.checkAndGet(constants_2.ApimPluginConfigKeys.serviceResourceId);
|
|
155
115
|
const resourceGroupName = tools_1.getResourceGroupNameFromResourceId(apimServiceResourceId);
|
|
156
116
|
const serviceName = commonUtils_1.getApimServiceNameFromResourceId(apimServiceResourceId);
|
|
157
|
-
const apiPrefix = (_a = answer.apiPrefix) !== null && _a !== void 0 ? _a : apimConfig.checkAndGet(
|
|
117
|
+
const apiPrefix = (_a = answer.apiPrefix) !== null && _a !== void 0 ? _a : apimConfig.checkAndGet(constants_2.ApimPluginConfigKeys.apiPrefix);
|
|
158
118
|
const versionSetId = (_b = apimConfig.versionSetId) !== null && _b !== void 0 ? _b : namingRules_1.NamingRules.versionSetId.sanitize(apiPrefix, solutionConfig.resourceNameSuffix);
|
|
159
119
|
const apiContracts = await apimService.listApi(resourceGroupName, serviceName, versionSetId);
|
|
160
120
|
const existingApiVersionOptions = apiContracts.map((api) => {
|
|
@@ -168,8 +128,8 @@ class ApiVersionQuestion extends question_1.BaseQuestionService {
|
|
|
168
128
|
return result;
|
|
169
129
|
});
|
|
170
130
|
const createNewApiVersionOption = {
|
|
171
|
-
id:
|
|
172
|
-
label:
|
|
131
|
+
id: constants_2.QuestionConstants.VSCode.ApiVersion.createNewApiVersionOption,
|
|
132
|
+
label: constants_2.QuestionConstants.VSCode.ApiVersion.createNewApiVersionOption,
|
|
173
133
|
};
|
|
174
134
|
return [createNewApiVersionOption, ...existingApiVersionOptions];
|
|
175
135
|
}
|
|
@@ -181,14 +141,14 @@ class NewApiVersionQuestion extends question_1.BaseQuestionService {
|
|
|
181
141
|
}
|
|
182
142
|
condition() {
|
|
183
143
|
return {
|
|
184
|
-
equals:
|
|
144
|
+
equals: constants_2.QuestionConstants.VSCode.ApiVersion.createNewApiVersionOption,
|
|
185
145
|
};
|
|
186
146
|
}
|
|
187
147
|
getQuestion() {
|
|
188
148
|
return {
|
|
189
149
|
type: "text",
|
|
190
|
-
name:
|
|
191
|
-
title:
|
|
150
|
+
name: constants_2.QuestionConstants.VSCode.NewApiVersion.questionName,
|
|
151
|
+
title: constants_2.QuestionConstants.VSCode.NewApiVersion.description,
|
|
192
152
|
default: async (inputs) => {
|
|
193
153
|
var _a, _b;
|
|
194
154
|
const apiVersion = (_b = (_a = answer_1.buildAnswer(inputs)) === null || _a === void 0 ? void 0 : _a.openApiDocumentSpec) === null || _b === void 0 ? void 0 : _b.info.version;
|
|
@@ -196,7 +156,7 @@ class NewApiVersionQuestion extends question_1.BaseQuestionService {
|
|
|
196
156
|
if (apiVersion) {
|
|
197
157
|
versionIdentity = namingRules_1.NamingRules.versionIdentity.sanitize(apiVersion);
|
|
198
158
|
}
|
|
199
|
-
return versionIdentity ? versionIdentity :
|
|
159
|
+
return versionIdentity ? versionIdentity : constants_2.ApimDefaultValues.apiVersion;
|
|
200
160
|
},
|
|
201
161
|
validation: {
|
|
202
162
|
validFunc: (input, previousInputs) => namingRules_1.NamingRules.validate(input, namingRules_1.NamingRules.versionIdentity),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vscodeQuestion.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/questions/vscodeQuestion.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"vscodeQuestion.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/questions/vscodeQuestion.ts"],"names":[],"mappings":";;;AAgBA,oDAA8E;AAC9E,0EAAuF;AACvF,sCAAwC;AACxC,sCAA6D;AAC7D,4CAA0F;AAC1F,oCAA8D;AAE9D,sDAA8E;AAC9E,sDAAmD;AAEnD,yCAAmE;AAEnE,MAAa,uBAAwB,SAAQ,8BAAmB;IAG9D,YACE,gBAAkC,EAClC,iBAAqC,EACrC,MAAoB;QAEpB,KAAK,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC3C,CAAC;IAEM,WAAW,CAAC,WAAmB;QACpC,OAAO;YACL,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,6BAAiB,CAAC,MAAM,CAAC,eAAe,CAAC,YAAY;YAC3D,KAAK,EAAE,6BAAiB,CAAC,MAAM,CAAC,eAAe,CAAC,WAAW;YAC3D,aAAa,EAAE,EAAE;YACjB,cAAc,EAAE,KAAK,EAAE,MAAc,EAAyB,EAAE;gBAC9D,OAAO,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;YAC7C,CAAC;YACD,YAAY,EAAE,IAAI;YAClB,gBAAgB,EAAE,KAAK;SACxB,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,iBAAiB,CAAC,IAAY;QAC1C,MAAM,mBAAmB,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CACzE,IAAI,EACJ,6BAAiB,CAAC,MAAM,CAAC,eAAe,CAAC,cAAc,EACvD,6BAAiB,CAAC,MAAM,CAAC,eAAe,CAAC,6BAA6B,CACvE,CAAC;QAEF,IAAI,mBAAmB,CAAC,IAAI,KAAK,CAAC,EAAE;YAClC,MAAM,kBAAU,CAAC,8BAAsB,CAAC,CAAC;SAC1C;QAED,MAAM,MAAM,GAAiB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O,CAAC;gBAC1E,IAAI,eAAmC,CAAC;gBACxC,IAAI,UAAU,EAAE;oBACd,eAAe,GAAG,yBAAW,CAAC,eAAe,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;iBACpE;gBAED,OAAO,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,6BAAiB,CAAC,UAAU,CAAC;YAC1E,CAAC;YACD,UAAU,EAAE;gBACV,SAAS,EAAE,CAAC,KAAa,EAAE,cAAuB,EAAsB,EAAE,CACxE,yBAAW,CAAC,QAAQ,CAAC,KAAe,EAAE,yBAAW,CAAC,eAAe,CAAC;aACrE;SACF,CAAC;IACJ,CAAC;CACF;AA/BD,sDA+BC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { ApiManagementClient } from "@azure/arm-apimanagement";
|
|
2
|
-
import { ApiContract, ApiManagementServiceResource, ApiVersionSetContract, ApiVersionSetGetHeaders
|
|
2
|
+
import { ApiContract, ApiManagementServiceResource, ApiVersionSetContract, ApiVersionSetGetHeaders } from "@azure/arm-apimanagement/src/models";
|
|
3
3
|
import { OpenApiSchemaVersion } from "../constants";
|
|
4
|
-
import { IApimServiceResource } from "../interfaces/IApimResource";
|
|
5
4
|
import { LogProvider, TelemetryReporter } from "@microsoft/teamsfx-api";
|
|
6
5
|
import { TokenCredentialsBase } from "@azure/ms-rest-nodeauth";
|
|
7
6
|
import { OpenAPI } from "openapi-types";
|
|
8
7
|
import { Providers } from "@azure/arm-resources";
|
|
9
|
-
import { Provider } from "@azure/arm-resources/esm/models";
|
|
10
8
|
export declare class ApimService {
|
|
11
9
|
private readonly subscriptionId;
|
|
12
10
|
private readonly apimClient;
|
|
@@ -15,15 +13,7 @@ export declare class ApimService {
|
|
|
15
13
|
private readonly credential;
|
|
16
14
|
private readonly resourceProviderClient;
|
|
17
15
|
constructor(apimClient: ApiManagementClient, resourceProviderClient: Providers, credential: TokenCredentialsBase, subscriptionId: string, telemetryReporter?: TelemetryReporter, logger?: LogProvider);
|
|
18
|
-
getRegisteredResourceProvider(): Promise<Provider | undefined>;
|
|
19
|
-
ensureResourceProvider(): Promise<void>;
|
|
20
|
-
createService(resourceGroupName: string, serviceName: string, location: string, userId: string): Promise<void>;
|
|
21
16
|
getService(resourceGroupName: string, serviceName: string): Promise<ApiManagementServiceResource | undefined>;
|
|
22
|
-
listService(): Promise<Array<IApimServiceResource>>;
|
|
23
|
-
createProduct(resourceGroupName: string, serviceName: string, productId: string, productDisplayName?: string): Promise<void>;
|
|
24
|
-
getProduct(resourceGroupName: string, serviceName: string, productId: string): Promise<ProductContract | undefined>;
|
|
25
|
-
createOrUpdateOAuthService(resourceGroupName: string, serviceName: string, oAuthServerId: string, tenantId: string, clientId: string, clientSecret: string, scope: string, oAuthServerDisplayName?: string): Promise<void>;
|
|
26
|
-
getOAuthServer(resourceGroupName: string, serviceName: string, oAuthServerId: string): Promise<(AuthorizationServerContract & AuthorizationServerGetHeaders) | undefined>;
|
|
27
17
|
getApi(resourceGroupName: string, serviceName: string, apiId: string): Promise<ApiContract | undefined>;
|
|
28
18
|
listApi(resourceGroupName: string, serviceName: string, versionSetId?: string): Promise<ApiContract[]>;
|
|
29
19
|
importApi(resourceGroupName: string, serviceName: string, apiId: string, apiPath: string, version: string, versionSetId: string, oAuthServerId: string, schemaVersion: OpenApiSchemaVersion, spec: OpenAPI.Document): Promise<void>;
|
|
@@ -33,7 +23,6 @@ export declare class ApimService {
|
|
|
33
23
|
addApiToProduct(resourceGroupName: string, serviceName: string, productId: string, apiId: string): Promise<void>;
|
|
34
24
|
getUserId(): Promise<string>;
|
|
35
25
|
private execute;
|
|
36
|
-
private convertApimServiceResource;
|
|
37
26
|
private generateVersionSetResourceId;
|
|
38
27
|
}
|
|
39
28
|
//# sourceMappingURL=apimService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apimService.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/services/apimService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACL,WAAW,EAEX,4BAA4B,EAC5B,qBAAqB,EACrB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"apimService.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/services/apimService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACL,WAAW,EAEX,4BAA4B,EAC5B,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAML,oBAAoB,EACrB,MAAM,cAAc,CAAC;AAItB,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;IACxC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAsB;IACjD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAgC;IAClE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IACjD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAClD,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAY;gBAGjD,UAAU,EAAE,mBAAmB,EAC/B,sBAAsB,EAAE,SAAS,EACjC,UAAU,EAAE,oBAAoB,EAChC,cAAc,EAAE,MAAM,EACtB,iBAAiB,CAAC,EAAE,iBAAiB,EACrC,MAAM,CAAC,EAAE,WAAW;IAUT,UAAU,CACrB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,4BAA4B,GAAG,SAAS,CAAC;IAWvC,MAAM,CACjB,iBAAiB,EAA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