@microsoft/teamsfx-core 1.2.0-rc.1 → 1.2.2-alpha.01e159e5.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/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/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/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 +9 -5
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +29 -17
- 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 +11 -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 -2
- package/build/common/local/constants.d.ts.map +1 -1
- package/build/common/local/constants.js +7 -3
- 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} +35 -48
- 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 +42 -2
- 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 +2 -2
- package/build/common/local/portChecker.d.ts.map +1 -1
- package/build/common/local/portChecker.js +33 -50
- 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 -8
- package/build/common/local/taskDefinition.d.ts.map +1 -1
- package/build/common/local/taskDefinition.js +8 -56
- package/build/common/local/taskDefinition.js.map +1 -1
- package/build/common/localSettingsConstants.d.ts +3 -2
- package/build/common/localSettingsConstants.d.ts.map +1 -1
- package/build/common/localSettingsConstants.js +4 -3
- 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 +14 -12
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/permissionInterface.d.ts +2 -2
- package/build/common/permissionInterface.d.ts.map +1 -1
- package/build/common/permissionInterface.js +2 -2
- package/build/common/permissionInterface.js.map +1 -1
- package/build/common/projectSettingsValidator.d.ts +4 -0
- package/build/common/projectSettingsValidator.d.ts.map +1 -0
- package/build/common/projectSettingsValidator.js +65 -0
- package/build/common/projectSettingsValidator.js.map +1 -0
- 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 +10 -3
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +12 -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} +5 -5
- package/build/common/template-utils/templatesActions.js.map +1 -0
- package/build/common/{templatesUtils.d.ts → template-utils/templatesUtils.d.ts} +2 -1
- package/build/common/template-utils/templatesUtils.d.ts.map +1 -0
- package/build/common/{templatesUtils.js → template-utils/templatesUtils.js} +26 -8
- 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 -8
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +41 -19
- 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 +16 -2
- package/build/core/error.js.map +1 -1
- package/build/core/index.d.ts +2 -3
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +81 -82
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/CommonErrorHandlerMW.d.ts +14 -0
- package/build/core/middleware/CommonErrorHandlerMW.d.ts.map +1 -0
- package/build/core/middleware/CommonErrorHandlerMW.js +55 -0
- package/build/core/middleware/CommonErrorHandlerMW.js.map +1 -0
- 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/errorHandler.js +2 -1
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/index.d.ts +0 -1
- package/build/core/middleware/index.d.ts.map +1 -1
- package/build/core/middleware/index.js +0 -1
- package/build/core/middleware/index.js.map +1 -1
- package/build/core/middleware/localSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/localSettingsLoader.js +26 -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 +3 -17
- 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 +9 -5
- 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.map +1 -1
- package/build/core/middleware/questionModel.js +1 -2
- 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/permissionRequest.js +2 -2
- package/build/core/permissionRequest.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 +50 -0
- package/build/core/pvm/pvm.d.ts.map +1 -0
- package/build/core/pvm/pvm.js +92 -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/question.d.ts.map +1 -1
- package/build/core/question.js +7 -4
- package/build/core/question.js.map +1 -1
- package/build/core/tools.d.ts +1 -2
- package/build/core/tools.d.ts.map +1 -1
- package/build/core/tools.js +3 -31
- 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 +9 -9
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +30 -31
- 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/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/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 +4 -3
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +46 -59
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/common.d.ts +8 -4
- package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/common.js +70 -31
- package/build/plugins/resource/aad/utils/common.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts +10 -1
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +252 -38
- 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 +12 -13
- 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/aad/v3/index.d.ts +24 -0
- package/build/plugins/resource/aad/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/aad/v3/index.js +248 -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 +0 -12
- package/build/plugins/resource/apim/config.d.ts.map +1 -1
- package/build/plugins/resource/apim/config.js +0 -24
- 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 +2 -10
- package/build/plugins/resource/apim/error.js.map +1 -1
- package/build/plugins/resource/apim/factory.d.ts.map +1 -1
- package/build/plugins/resource/apim/factory.js +2 -5
- package/build/plugins/resource/apim/factory.js.map +1 -1
- package/build/plugins/resource/apim/index.d.ts +0 -1
- package/build/plugins/resource/apim/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/index.js +1 -24
- 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 +23 -63
- package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.d.ts +2 -8
- package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.js +2 -28
- 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 +0 -6
- package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.js +7 -56
- 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/v2/index.d.ts +5 -7
- package/build/plugins/resource/apim/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/apim/v2/index.js +2 -7
- package/build/plugins/resource/apim/v2/index.js.map +1 -1
- 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 +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 +27 -11
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +4 -0
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +66 -15
- 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 +5 -5
- 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 +11 -4
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.js +76 -16
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
- package/build/plugins/resource/bot/aadRegistration.d.ts.map +1 -1
- package/build/plugins/resource/bot/aadRegistration.js +5 -4
- package/build/plugins/resource/bot/aadRegistration.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/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.d.ts +5 -0
- package/build/plugins/resource/bot/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/index.js +24 -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 +5 -5
- 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/dotnet/ops/deploy.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js +19 -6
- package/build/plugins/resource/frontend/dotnet/ops/deploy.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +32 -0
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js +132 -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/dotnet/resources/messages.d.ts +24 -0
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/messages.js +33 -0
- package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -0
- 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/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 -4
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +29 -49
- 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 +58 -14
- 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 +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 +27 -58
- 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/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 +9 -8
- 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 +9 -43
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js +9 -100
- package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/frontend/v2/index.d.ts +5 -5
- package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/v2/index.js +5 -4
- 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 +5 -5
- 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 +4 -4
- 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/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 +2 -2
- package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.js +3 -5
- 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 +4 -9
- package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
- package/build/plugins/resource/simpleauth/v2/index.d.ts +4 -4
- 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 -3
- package/build/plugins/resource/sql/constants.d.ts.map +1 -1
- package/build/plugins/resource/sql/constants.js +3 -3
- package/build/plugins/resource/sql/constants.js.map +1 -1
- package/build/plugins/resource/sql/errors.d.ts +1 -17
- package/build/plugins/resource/sql/errors.d.ts.map +1 -1
- package/build/plugins/resource/sql/errors.js +1 -17
- 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.d.ts +0 -4
- package/build/plugins/resource/sql/managementClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/managementClient.js +14 -70
- package/build/plugins/resource/sql/managementClient.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts +4 -2
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +77 -123
- 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/utils/dialogUtils.d.ts +0 -5
- package/build/plugins/resource/sql/utils/dialogUtils.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/dialogUtils.js +1 -7
- 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/v2/index.d.ts +5 -5
- 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 +17 -21
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +12 -36
- 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 +7 -6
- 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 +74 -30
- 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 -17
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +3 -4
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +4 -5
- 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 +19 -10
- 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/debug/util/tasks.js +1 -4
- package/build/plugins/solution/fx-solution/debug/util/tasks.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 +2 -1
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +48 -29
- 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 +32 -15
- 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.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.js +3 -3
- package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +3 -3
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +218 -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 +88 -99
- 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 -16
- 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 +26 -11
- 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 +1 -6
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/publish.js +2 -2
- 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 +23 -9
- 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 +6 -6
- package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/utils.js +16 -16
- 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 +33 -58
- 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 +3 -1
- 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 -1
- package/build/plugins/solution/fx-solution/v3/init.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts +13 -1
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/provision.js +232 -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 +77 -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/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/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/init.js +3 -4
- package/build/plugins/solution/spfx-solution/init.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 +21 -10
- package/resource/strings.json +50 -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/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/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/frontend/tab.js.default.zip +0 -0
- package/templates/plugins/resource/frontend/tab.ts.default.zip +0 -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/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/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/templates/plugins/solution/{main.bicep → mainConfig.bicep} +0 -12
- package/templates/plugins/solution/mainProvision.bicep +10 -0
- package/build/common/templates.d.ts.map +0 -1
- package/build/common/templates.js.map +0 -1
- package/build/common/templatesActions.d.ts.map +0 -1
- package/build/common/templatesActions.js.map +0 -1
- package/build/common/templatesUtils.d.ts.map +0 -1
- package/build/common/templatesUtils.js.map +0 -1
- package/build/core/middleware/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/core/middleware/projectUpgrader.d.ts +0 -6
- package/build/core/middleware/projectUpgrader.d.ts.map +0 -1
- package/build/core/middleware/projectUpgrader.js +0 -224
- package/build/core/middleware/projectUpgrader.js.map +0 -1
- package/build/plugins/resource/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/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/deploy.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/ops/deploy.js.map +0 -1
- 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 +0 -13
- package/build/plugins/resource/frontend/blazor/resources/messages.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.js +0 -20
- 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/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/resource/plugins/resource/function/dotnet-install.ps1 +0 -1095
- package/resource/plugins/resource/function/dotnet-install.sh +0 -1222
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/resource/apim/index.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAagC;AAChC,mCAAqF;AACrF,iDAA8C;AAC9C,qCAAmG;AACnG,2CAUqB;AACrB,uCAAoC;AACpC,qDAAkD;AAClD,qCAAuC;AACvC,kEAAwE;AACxE,mCAAiC;AACjC,gGAAqF;AACrF,gBAAc;AAId,IAAa,UAAU,GAAvB,MAAa,UAAU;IAAvB;QACE,SAAI,GAAG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CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACzE,MAAM,cAAc,GAAG,IAAI,6BAAoB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC7D,MAAM,MAAM,GAAG,oBAAW,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAExC,IAAI,MAAM,CAAC,QAAQ,EAAE;QACnB,MAAM,MAAM,CAAC,QAAQ,CAAC,2BAAe,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;KACrE;IAED,MAAM,CAAC,IAAI,CAAC,2BAAe,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAEhD,MAAM,WAAW,GAAG,MAAM,iBAAO,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAExD,MAAM,WAAW,CAAC,IAAI,CAAC,wBAAY,CAAC,MAAM,EAAE,4BAAgB,CAAC,wBAAY,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;IAC7F,MAAM,WAAW,CAAC,MAAM,CAAC,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;AACzF,CAAC;AAED,kBAAe,IAAI,UAAU,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IApimPluginConfig, IFunctionPluginConfig, ISolutionConfig } from "../config";
|
|
2
2
|
import { ApimService } from "../services/apimService";
|
|
3
3
|
import { OpenApiProcessor } from "../utils/openApiProcessor";
|
|
4
4
|
import { IAnswer } from "../answer";
|
|
@@ -11,8 +11,7 @@ export declare class ApimManager {
|
|
|
11
11
|
private readonly lazyApimService;
|
|
12
12
|
private readonly openApiProcessor;
|
|
13
13
|
constructor(lazyApimService: Lazy<ApimService>, openApiProcessor: OpenApiProcessor, telemetryReporter?: TelemetryReporter, logger?: LogProvider);
|
|
14
|
-
provision(apimConfig: IApimPluginConfig
|
|
15
|
-
postProvision(apimConfig: IApimPluginConfig, ctx: PluginContext, aadConfig: IAadPluginConfig, appName: string): Promise<void>;
|
|
14
|
+
provision(apimConfig: IApimPluginConfig): Promise<void>;
|
|
16
15
|
deploy(apimConfig: IApimPluginConfig, solutionConfig: ISolutionConfig, functionConfig: IFunctionPluginConfig, answer: IAnswer, projectRootPath: string): Promise<void>;
|
|
17
16
|
updateArmTemplates(ctx: PluginContext): Promise<ArmTemplateResult>;
|
|
18
17
|
generateArmTemplates(ctx: PluginContext): Promise<ArmTemplateResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apimManager.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/managers/apimManager.ts"],"names":[],"mappings":"AASA,OAAO,
|
|
1
|
+
{"version":3,"file":"apimManager.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/managers/apimManager.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACvF,OAAO,EAIL,IAAI,EACL,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAQpE,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IACjD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAgC;IAClE,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAoB;IACpD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAmB;gBAGlD,eAAe,EAAE,IAAI,CAAC,WAAW,CAAC,EAClC,gBAAgB,EAAE,gBAAgB,EAClC,iBAAiB,CAAC,EAAE,iBAAiB,EACrC,MAAM,CAAC,EAAE,WAAW;IAQT,SAAS,CAAC,UAAU,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAkBvD,MAAM,CACjB,UAAU,EAAE,iBAAiB,EAC7B,cAAc,EAAE,eAAe,EAC/B,cAAc,EAAE,qBAAqB,EACrC,MAAM,EAAE,OAAO,EACf,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,IAAI,CAAC;IAgEH,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAuBlE,oBAAoB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,iBAAiB,CAAC;CA4ClF"}
|
|
@@ -6,7 +6,6 @@ const tslib_1 = require("tslib");
|
|
|
6
6
|
// Licensed under the MIT license.
|
|
7
7
|
const constants_1 = require("../constants");
|
|
8
8
|
const error_1 = require("../error");
|
|
9
|
-
const config_1 = require("../config");
|
|
10
9
|
const commonUtils_1 = require("../utils/commonUtils");
|
|
11
10
|
const namingRules_1 = require("../utils/namingRules");
|
|
12
11
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
@@ -24,72 +23,35 @@ class ApimManager {
|
|
|
24
23
|
this.logger = logger;
|
|
25
24
|
this.telemetryReporter = telemetryReporter;
|
|
26
25
|
}
|
|
27
|
-
async provision(apimConfig
|
|
28
|
-
var _a, _b, _c;
|
|
26
|
+
async provision(apimConfig) {
|
|
29
27
|
const apimService = await this.lazyApimService.getValue();
|
|
30
28
|
const currentUserId = await apimService.getUserId();
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
: currentUserId;
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
await apimService.ensureResourceProvider();
|
|
44
|
-
const resourceGroupName = (_a = apimConfig.resourceGroupName) !== null && _a !== void 0 ? _a : solutionConfig.resourceGroupName;
|
|
45
|
-
const apimServiceName = (_b = apimConfig.serviceName) !== null && _b !== void 0 ? _b : namingRules_1.NamingRules.apimServiceName.sanitize(appName, solutionConfig.resourceNameSuffix);
|
|
46
|
-
await apimService.createService(resourceGroupName, apimServiceName, solutionConfig.location, currentUserId);
|
|
47
|
-
apimConfig.serviceName = apimServiceName;
|
|
48
|
-
const productId = (_c = apimConfig.productId) !== null && _c !== void 0 ? _c : namingRules_1.NamingRules.productId.sanitize(appName, solutionConfig.resourceNameSuffix);
|
|
49
|
-
await apimService.createProduct(resourceGroupName, apimServiceName, productId);
|
|
50
|
-
apimConfig.productId = productId;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
async postProvision(apimConfig, ctx, aadConfig, appName) {
|
|
54
|
-
var _a, _b;
|
|
55
|
-
if (!tools_1.isArmSupportEnabled()) {
|
|
56
|
-
const solutionConfig = new config_1.SolutionConfig(ctx.envInfo);
|
|
57
|
-
const apimService = await this.lazyApimService.getValue();
|
|
58
|
-
const resourceGroupName = (_a = apimConfig.resourceGroupName) !== null && _a !== void 0 ? _a : solutionConfig.resourceGroupName;
|
|
59
|
-
const apimServiceName = apimConfig.checkAndGet(constants_1.ApimPluginConfigKeys.serviceName);
|
|
60
|
-
const clientId = apimConfig.checkAndGet(constants_1.ApimPluginConfigKeys.apimClientAADClientId);
|
|
61
|
-
const clientSecret = apimConfig.checkAndGet(constants_1.ApimPluginConfigKeys.apimClientAADClientSecret);
|
|
62
|
-
const oAuthServerId = (_b = apimConfig.oAuthServerId) !== null && _b !== void 0 ? _b : namingRules_1.NamingRules.oAuthServerId.sanitize(appName, solutionConfig.resourceNameSuffix);
|
|
63
|
-
const scopeName = `${aadConfig.applicationIdUris}/${constants_1.ApimDefaultValues.enableScopeName}`;
|
|
64
|
-
await apimService.createOrUpdateOAuthService(resourceGroupName, apimServiceName, oAuthServerId, solutionConfig.teamsAppTenantId, clientId, clientSecret, scopeName);
|
|
65
|
-
apimConfig.oAuthServerId = oAuthServerId;
|
|
66
|
-
}
|
|
29
|
+
const apimServiceResource = apimConfig.serviceResourceId
|
|
30
|
+
? await apimService.getService(tools_1.getResourceGroupNameFromResourceId(apimConfig.serviceResourceId), commonUtils_1.getApimServiceNameFromResourceId(apimConfig.serviceResourceId))
|
|
31
|
+
: undefined;
|
|
32
|
+
apimConfig.publisherEmail = (apimServiceResource === null || apimServiceResource === void 0 ? void 0 : apimServiceResource.publisherEmail)
|
|
33
|
+
? apimServiceResource.publisherEmail
|
|
34
|
+
: currentUserId;
|
|
35
|
+
apimConfig.publisherName = (apimServiceResource === null || apimServiceResource === void 0 ? void 0 : apimServiceResource.publisherName)
|
|
36
|
+
? apimServiceResource.publisherName
|
|
37
|
+
: currentUserId;
|
|
67
38
|
}
|
|
68
39
|
async deploy(apimConfig, solutionConfig, functionConfig, answer, projectRootPath) {
|
|
69
|
-
var _a, _b, _c
|
|
40
|
+
var _a, _b, _c;
|
|
70
41
|
const apimService = await this.lazyApimService.getValue();
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
authServerId = commonUtils_1.getAuthServiceNameFromResourceId(authServerResourceId);
|
|
79
|
-
productId = commonUtils_1.getproductNameFromResourceId(apimProductResourceId);
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
resourceGroupName = (_a = apimConfig.resourceGroupName) !== null && _a !== void 0 ? _a : solutionConfig.resourceGroupName;
|
|
83
|
-
apimServiceName = apimConfig.checkAndGet(constants_1.ApimPluginConfigKeys.serviceName);
|
|
84
|
-
authServerId = apimConfig.checkAndGet(constants_1.ApimPluginConfigKeys.oAuthServerId);
|
|
85
|
-
productId = apimConfig.checkAndGet(constants_1.ApimPluginConfigKeys.productId);
|
|
86
|
-
}
|
|
42
|
+
const apimServiceResourceId = apimConfig.checkAndGet(constants_1.ApimPluginConfigKeys.serviceResourceId);
|
|
43
|
+
const apimProductResourceId = apimConfig.checkAndGet(constants_1.ApimPluginConfigKeys.productResourceId);
|
|
44
|
+
const authServerResourceId = apimConfig.checkAndGet(constants_1.ApimPluginConfigKeys.authServerResourceId);
|
|
45
|
+
const resourceGroupName = tools_1.getResourceGroupNameFromResourceId(apimServiceResourceId);
|
|
46
|
+
const apimServiceName = commonUtils_1.getApimServiceNameFromResourceId(apimServiceResourceId);
|
|
47
|
+
const authServerId = commonUtils_1.getAuthServiceNameFromResourceId(authServerResourceId);
|
|
48
|
+
const productId = commonUtils_1.getProductNameFromResourceId(apimProductResourceId);
|
|
87
49
|
const apiPrefix = apimConfig.checkAndGet(constants_1.ApimPluginConfigKeys.apiPrefix);
|
|
88
50
|
const apiDocumentPath = apimConfig.checkAndGet(constants_1.ApimPluginConfigKeys.apiDocumentPath);
|
|
89
51
|
const versionIdentity = error_1.AssertNotEmpty("versionAnswer.versionIdentity", answer.versionIdentity);
|
|
90
|
-
const apiId = (
|
|
91
|
-
const versionSetId = (
|
|
92
|
-
const apiPath = (
|
|
52
|
+
const apiId = (_a = answer.apiId) !== null && _a !== void 0 ? _a : namingRules_1.NamingRules.apiId.sanitize(apiPrefix, versionIdentity, solutionConfig.resourceNameSuffix);
|
|
53
|
+
const versionSetId = (_b = apimConfig.versionSetId) !== null && _b !== void 0 ? _b : namingRules_1.NamingRules.versionSetId.sanitize(apiPrefix, solutionConfig.resourceNameSuffix);
|
|
54
|
+
const apiPath = (_c = apimConfig.apiPath) !== null && _c !== void 0 ? _c : namingRules_1.NamingRules.apiPath.sanitize(apiPrefix, solutionConfig.resourceNameSuffix);
|
|
93
55
|
const openApiDocument = await this.openApiProcessor.loadOpenApiDocument(apiDocumentPath, projectRootPath);
|
|
94
56
|
const spec = this.openApiProcessor.patchOpenApiDocument(openApiDocument.spec, openApiDocument.schemaVersion, functionConfig.functionEndpoint, constants_1.ApimDefaultValues.functionBasePath);
|
|
95
57
|
const versionSetDisplayName = namingRules_1.NamingRules.versionSetDisplayName.sanitize(openApiDocument.spec.info.title);
|
|
@@ -100,8 +62,7 @@ class ApimManager {
|
|
|
100
62
|
await apimService.addApiToProduct(resourceGroupName, apimServiceName, productId, apiId);
|
|
101
63
|
}
|
|
102
64
|
async updateArmTemplates(ctx) {
|
|
103
|
-
const
|
|
104
|
-
const plugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins(azureSolutionSettings).map((p) => new adaptor_1.NamedArmResourcePluginAdaptor(p));
|
|
65
|
+
const plugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins(ctx.projectSettings).map((p) => new adaptor_1.NamedArmResourcePluginAdaptor(p));
|
|
105
66
|
const pluginCtx = { plugins: plugins.map((obj) => obj.name) };
|
|
106
67
|
const bicepTemplateDir = path_1.default.join(folder_1.getTemplatesFolder(), constants_1.ApimPathInfo.BicepTemplateRelativeDir);
|
|
107
68
|
const configModules = await tools_2.generateBicepFromFile(path_1.default.join(bicepTemplateDir, constants_1.ApimPathInfo.ConfigurationModuleFileName), pluginCtx);
|
|
@@ -116,8 +77,7 @@ class ApimManager {
|
|
|
116
77
|
return result;
|
|
117
78
|
}
|
|
118
79
|
async generateArmTemplates(ctx) {
|
|
119
|
-
const
|
|
120
|
-
const plugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins(azureSolutionSettings).map((p) => new adaptor_1.NamedArmResourcePluginAdaptor(p));
|
|
80
|
+
const plugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins(ctx.projectSettings).map((p) => new adaptor_1.NamedArmResourcePluginAdaptor(p));
|
|
121
81
|
const pluginCtx = { plugins: plugins.map((obj) => obj.name) };
|
|
122
82
|
const bicepTemplateDir = path_1.default.join(folder_1.getTemplatesFolder(), constants_1.ApimPathInfo.BicepTemplateRelativeDir);
|
|
123
83
|
const provisionOrchestration = await tools_2.generateBicepFromFile(path_1.default.join(bicepTemplateDir, constants_2.Bicep.ProvisionFileName), pluginCtx);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apimManager.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/managers/apimManager.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,4CAKsB;AACtB,oCAA0C;
|
|
1
|
+
{"version":3,"file":"apimManager.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/managers/apimManager.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,4CAKsB;AACtB,oCAA0C;AAM1C,sDAK8B;AAC9B,sDAAmD;AACnD,wDAAwB;AACxB,4DAAqE;AAErE,qDAA+B;AAC/B,oDAA8E;AAC9E,+CAAwD;AACxD,mGAAsG;AACtG,sEAAyF;AACzF,oDAAiE;AAEjE,MAAa,WAAW;IAMtB,YACE,eAAkC,EAClC,gBAAkC,EAClC,iBAAqC,EACrC,MAAoB;QAEpB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,SAAS,CAAC,UAA6B;QAClD,MAAM,WAAW,GAAgB,MAAM,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC;QACvE,MAAM,aAAa,GAAG,MAAM,WAAW,CAAC,SAAS,EAAE,CAAC;QAEpD,MAAM,mBAAmB,GAAG,UAAU,CAAC,iBAAiB;YACtD,CAAC,CAAC,MAAM,WAAW,CAAC,UAAU,CAC1B,0CAAkC,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAChE,8CAAgC,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAC/D;YACH,CAAC,CAAC,SAAS,CAAC;QACd,UAAU,CAAC,cAAc,GAAG,CAAA,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAE,cAAc;YAC7D,CAAC,CAAC,mBAA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AAE,iBAAK,CAAC,iBAAiB,CAAC,EACpD,SAAS,CACV,CAAC;QACF,MAAM,gBAAgB,GAAG,MAAM,6BAAqB,CAClD,cAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,wBAAY,CAAC,uBAAuB,CAAC,EACjE,SAAS,CACV,CAAC;QACF,MAAM,mBAAmB,GAAG,MAAM,6BAAqB,CACrD,cAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,iBAAK,CAAC,cAAc,CAAC,EACjD,SAAS,CACV,CAAC;QACF,MAAM,aAAa,GAAG,MAAM,6BAAqB,CAC/C,cAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,wBAAY,CAAC,2BAA2B,CAAC,EACrE,SAAS,CACV,CAAC;QACF,MAAM,MAAM,GAAsB;YAChC,SAAS,EAAE;gBACT,aAAa,EAAE,sBAAsB;gBACrC,OAAO,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;aACpC;YACD,aAAa,EAAE;gBACb,aAAa,EAAE,mBAAmB;gBAClC,OAAO,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE;aACjC;YACD,SAAS,EAAE;gBACT,iBAAiB,EAAE,kCAAsB,CAAC,iBAAiB;aAC5D;YACD,UAAU,EAAE,IAAI,CAAC,KAAK,CACpB,MAAM,EAAE,CAAC,QAAQ,CACf,cAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,iBAAK,CAAC,iBAAiB,CAAC,EACpD,0BAAc,CAAC,YAAY,CAC5B,CACF;SACF,CAAC;QAEF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AA7KD,kCA6KC"}
|
|
@@ -4,30 +4,24 @@ import * as VSCode from "../questions/vscodeQuestion";
|
|
|
4
4
|
import * as CLI from "../questions/cliQuestion";
|
|
5
5
|
export interface IQuestionManager {
|
|
6
6
|
callFunc(func: Func, ctx: PluginContext): Promise<any>;
|
|
7
|
-
addResource(ctx: PluginContext, apimConfig?: IApimPluginConfig): Promise<QTreeNode>;
|
|
8
7
|
deploy(ctx: PluginContext, apimConfig?: IApimPluginConfig): Promise<QTreeNode>;
|
|
9
8
|
}
|
|
10
9
|
export declare class VscQuestionManager implements IQuestionManager {
|
|
11
|
-
private readonly apimServiceQuestion;
|
|
12
10
|
private readonly openApiDocumentQuestion;
|
|
13
11
|
private readonly existingOpenApiDocumentFunc;
|
|
14
12
|
private readonly apiPrefixQuestion;
|
|
15
13
|
private readonly apiVersionQuestion;
|
|
16
14
|
private readonly newApiVersionQuestion;
|
|
17
|
-
constructor(
|
|
15
|
+
constructor(openApiDocumentQuestion: VSCode.OpenApiDocumentQuestion, apiPrefixQuestion: VSCode.ApiPrefixQuestion, apiVersionQuestion: VSCode.ApiVersionQuestion, newApiVersionQuestion: VSCode.NewApiVersionQuestion, existingOpenApiDocumentFunc: VSCode.ExistingOpenApiDocumentFunc);
|
|
18
16
|
callFunc(func: Func, ctx: PluginContext): Promise<any>;
|
|
19
|
-
addResource(ctx: PluginContext, apimConfig: IApimPluginConfig): Promise<QTreeNode>;
|
|
20
17
|
deploy(ctx: PluginContext, apimConfig: IApimPluginConfig): Promise<QTreeNode>;
|
|
21
18
|
}
|
|
22
19
|
export declare class CliQuestionManager implements IQuestionManager {
|
|
23
|
-
private readonly apimServiceNameQuestion;
|
|
24
|
-
private readonly apimResourceGroupQuestion;
|
|
25
20
|
private readonly openApiDocumentQuestion;
|
|
26
21
|
private readonly apiPrefixQuestion;
|
|
27
22
|
private readonly apiVersionQuestion;
|
|
28
|
-
constructor(
|
|
23
|
+
constructor(openApiDocumentQuestion: CLI.OpenApiDocumentQuestion, apiPrefixQuestion: CLI.ApiPrefixQuestion, apiVersionQuestion: CLI.ApiVersionQuestion);
|
|
29
24
|
callFunc(func: Func, ctx: PluginContext): Promise<any>;
|
|
30
|
-
addResource(ctx: PluginContext): Promise<QTreeNode>;
|
|
31
25
|
deploy(): Promise<QTreeNode>;
|
|
32
26
|
}
|
|
33
27
|
//# sourceMappingURL=questionManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questionManager.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/managers/questionManager.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,KAAK,GAAG,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"questionManager.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/managers/questionManager.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,KAAK,GAAG,MAAM,0BAA0B,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACvD,MAAM,CAAC,GAAG,EAAE,aAAa,EAAE,UAAU,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CAChF;AAED,qBAAa,kBAAmB,YAAW,gBAAgB;IACzD,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAiC;IACzE,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAqC;IACjF,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAA2B;IAC7D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA4B;IAC/D,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAA+B;gBAGnE,uBAAuB,EAAE,MAAM,CAAC,uBAAuB,EACvD,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,EAC3C,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,EAC7C,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,EACnD,2BAA2B,EAAE,MAAM,CAAC,2BAA2B;IAS3D,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC;IAItD,MAAM,CAAC,GAAG,EAAE,aAAa,EAAE,UAAU,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC;CAiCpF;AAED,qBAAa,kBAAmB,YAAW,gBAAgB;IACzD,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAA8B;IACtE,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAwB;IAC1D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAyB;gBAE1D,uBAAuB,EAAE,GAAG,CAAC,uBAAuB,EACpD,iBAAiB,EAAE,GAAG,CAAC,iBAAiB,EACxC,kBAAkB,EAAE,GAAG,CAAC,kBAAkB;IAOtC,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC;IAItD,MAAM,IAAI,OAAO,CAAC,SAAS,CAAC;CAanC"}
|
|
@@ -5,10 +5,8 @@ exports.CliQuestionManager = exports.VscQuestionManager = void 0;
|
|
|
5
5
|
// Licensed under the MIT license.
|
|
6
6
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
7
|
const error_1 = require("../error");
|
|
8
|
-
const tools_1 = require("../../../../common/tools");
|
|
9
8
|
class VscQuestionManager {
|
|
10
|
-
constructor(
|
|
11
|
-
this.apimServiceQuestion = apimServiceQuestion;
|
|
9
|
+
constructor(openApiDocumentQuestion, apiPrefixQuestion, apiVersionQuestion, newApiVersionQuestion, existingOpenApiDocumentFunc) {
|
|
12
10
|
this.openApiDocumentQuestion = openApiDocumentQuestion;
|
|
13
11
|
this.apiPrefixQuestion = apiPrefixQuestion;
|
|
14
12
|
this.apiVersionQuestion = apiVersionQuestion;
|
|
@@ -18,18 +16,6 @@ class VscQuestionManager {
|
|
|
18
16
|
async callFunc(func, ctx) {
|
|
19
17
|
throw error_1.BuildError(error_1.NotImplemented);
|
|
20
18
|
}
|
|
21
|
-
async addResource(ctx, apimConfig) {
|
|
22
|
-
const rootNode = new teamsfx_api_1.QTreeNode({
|
|
23
|
-
type: "group",
|
|
24
|
-
});
|
|
25
|
-
if (apimConfig.serviceName || tools_1.isArmSupportEnabled()) {
|
|
26
|
-
return rootNode;
|
|
27
|
-
}
|
|
28
|
-
const question = this.apimServiceQuestion.getQuestion();
|
|
29
|
-
const apimServiceNode = new teamsfx_api_1.QTreeNode(question);
|
|
30
|
-
rootNode.addChild(apimServiceNode);
|
|
31
|
-
return rootNode;
|
|
32
|
-
}
|
|
33
19
|
async deploy(ctx, apimConfig) {
|
|
34
20
|
const rootNode = new teamsfx_api_1.QTreeNode({
|
|
35
21
|
type: "group",
|
|
@@ -61,9 +47,7 @@ class VscQuestionManager {
|
|
|
61
47
|
}
|
|
62
48
|
exports.VscQuestionManager = VscQuestionManager;
|
|
63
49
|
class CliQuestionManager {
|
|
64
|
-
constructor(
|
|
65
|
-
this.apimServiceNameQuestion = apimServiceNameQuestion;
|
|
66
|
-
this.apimResourceGroupQuestion = apimResourceGroupQuestion;
|
|
50
|
+
constructor(openApiDocumentQuestion, apiPrefixQuestion, apiVersionQuestion) {
|
|
67
51
|
this.openApiDocumentQuestion = openApiDocumentQuestion;
|
|
68
52
|
this.apiPrefixQuestion = apiPrefixQuestion;
|
|
69
53
|
this.apiVersionQuestion = apiVersionQuestion;
|
|
@@ -71,16 +55,6 @@ class CliQuestionManager {
|
|
|
71
55
|
async callFunc(func, ctx) {
|
|
72
56
|
throw error_1.BuildError(error_1.NotImplemented);
|
|
73
57
|
}
|
|
74
|
-
async addResource(ctx) {
|
|
75
|
-
const rootNode = new teamsfx_api_1.QTreeNode({
|
|
76
|
-
type: "group",
|
|
77
|
-
});
|
|
78
|
-
const apimResourceGroupQuestion = this.apimResourceGroupQuestion.getQuestion();
|
|
79
|
-
rootNode.addChild(new teamsfx_api_1.QTreeNode(apimResourceGroupQuestion));
|
|
80
|
-
const apimServiceNameQuestion = this.apimServiceNameQuestion.getQuestion();
|
|
81
|
-
rootNode.addChild(new teamsfx_api_1.QTreeNode(apimServiceNameQuestion));
|
|
82
|
-
return rootNode;
|
|
83
|
-
}
|
|
84
58
|
async deploy() {
|
|
85
59
|
const rootNode = new teamsfx_api_1.QTreeNode({
|
|
86
60
|
type: "group",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questionManager.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/managers/questionManager.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAAwE;AACxE,oCAAsD;
|
|
1
|
+
{"version":3,"file":"questionManager.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/managers/questionManager.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAAwE;AACxE,oCAAsD;AAUtD,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;IACjE,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,IAAU,EAAE,GAAkB;QAC3C,MAAM,kBAAU,CAAC,sBAAc,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,GAAkB,EAAE,UAA6B;QAC5D,MAAM,QAAQ,GAAG,IAAI,uBAAS,CAAC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ED,MAAa,kBAAkB;IAI7B,YACE,uBAAoD,EACpD,iBAAwC,EACxC,kBAA0C;QAE1C,IAAI,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;QACvD,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,IAAU,EAAE,GAAkB;QAC3C,MAAM,kBAAU,CAAC,sBAAc,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,MAAM;QACV,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;AA/BD,gDA+BC"}
|
|
@@ -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,KAAK,EAAE,6BAAiB,CAAC,GAAG,CAAC,SAAS,CAAC,WAAW;YAClD,qEAAqE;YACrE,UAAU,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}
|
|
@@ -3,12 +3,6 @@ import { ApimService } from "../services/apimService";
|
|
|
3
3
|
import { OpenApiProcessor } from "../utils/openApiProcessor";
|
|
4
4
|
import { BaseQuestionService, IQuestionService } from "./question";
|
|
5
5
|
import { Lazy } from "../utils/commonUtils";
|
|
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
6
|
export declare class OpenApiDocumentQuestion extends BaseQuestionService implements IQuestionService {
|
|
13
7
|
private readonly openApiProcessor;
|
|
14
8
|
constructor(openApiProcessor: OpenApiProcessor, telemetryReporter?: TelemetryReporter, logger?: LogProvider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vscodeQuestion.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/questions/vscodeQuestion.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,WAAW,EAEX,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EAEjB,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG7D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EAAoC,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAG9E,qBAAa,
|
|
1
|
+
{"version":3,"file":"vscodeQuestion.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/questions/vscodeQuestion.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,WAAW,EAEX,oBAAoB,EACpB,aAAa,EACb,YAAY,EACZ,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gChC;AAED,qBAAa,qBAAsB,SAAQ,mBAAoB,YAAW,gBAAgB;gBAC5E,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,WAAW;IAIhE,SAAS,IAAI;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,gBAAgB;IAMnD,WAAW,IAAI,iBAAiB;CAoBxC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NewApiVersionQuestion = exports.ApiVersionQuestion = exports.ApiPrefixQuestion = exports.ExistingOpenApiDocumentFunc = exports.OpenApiDocumentQuestion =
|
|
3
|
+
exports.NewApiVersionQuestion = exports.ApiVersionQuestion = exports.ApiPrefixQuestion = exports.ExistingOpenApiDocumentFunc = exports.OpenApiDocumentQuestion = void 0;
|
|
4
4
|
// Copyright (c) Microsoft Corporation.
|
|
5
5
|
// Licensed under the MIT license.
|
|
6
6
|
const error_1 = require("../error");
|
|
@@ -11,48 +11,6 @@ const namingRules_1 = require("../utils/namingRules");
|
|
|
11
11
|
const question_1 = require("./question");
|
|
12
12
|
const commonUtils_1 = require("../utils/commonUtils");
|
|
13
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
14
|
class OpenApiDocumentQuestion extends question_1.BaseQuestionService {
|
|
57
15
|
constructor(openApiProcessor, telemetryReporter, logger) {
|
|
58
16
|
super(telemetryReporter, logger);
|
|
@@ -146,23 +104,16 @@ class ApiVersionQuestion extends question_1.BaseQuestionService {
|
|
|
146
104
|
};
|
|
147
105
|
}
|
|
148
106
|
async getDynamicOptions(inputs, ctx) {
|
|
149
|
-
var _a, _b
|
|
107
|
+
var _a, _b;
|
|
150
108
|
const apimService = await this.lazyApimService.getValue();
|
|
151
109
|
const apimConfig = new config_1.ApimPluginConfig(ctx.config, ctx.envInfo.envName);
|
|
152
110
|
const solutionConfig = new config_1.SolutionConfig(ctx.envInfo);
|
|
153
111
|
const answer = answer_1.buildAnswer(inputs);
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
resourceGroupName = (_a = apimConfig.resourceGroupName) !== null && _a !== void 0 ? _a : solutionConfig.resourceGroupName;
|
|
162
|
-
serviceName = apimConfig.checkAndGet(constants_1.ApimPluginConfigKeys.serviceName);
|
|
163
|
-
}
|
|
164
|
-
const apiPrefix = (_b = answer.apiPrefix) !== null && _b !== void 0 ? _b : apimConfig.checkAndGet(constants_1.ApimPluginConfigKeys.apiPrefix);
|
|
165
|
-
const versionSetId = (_c = apimConfig.versionSetId) !== null && _c !== void 0 ? _c : namingRules_1.NamingRules.versionSetId.sanitize(apiPrefix, solutionConfig.resourceNameSuffix);
|
|
112
|
+
const apimServiceResourceId = apimConfig.checkAndGet(constants_1.ApimPluginConfigKeys.serviceResourceId);
|
|
113
|
+
const resourceGroupName = tools_1.getResourceGroupNameFromResourceId(apimServiceResourceId);
|
|
114
|
+
const serviceName = commonUtils_1.getApimServiceNameFromResourceId(apimServiceResourceId);
|
|
115
|
+
const apiPrefix = (_a = answer.apiPrefix) !== null && _a !== void 0 ? _a : apimConfig.checkAndGet(constants_1.ApimPluginConfigKeys.apiPrefix);
|
|
116
|
+
const versionSetId = (_b = apimConfig.versionSetId) !== null && _b !== void 0 ? _b : namingRules_1.NamingRules.versionSetId.sanitize(apiPrefix, solutionConfig.resourceNameSuffix);
|
|
166
117
|
const apiContracts = await apimService.listApi(resourceGroupName, serviceName, versionSetId);
|
|
167
118
|
const existingApiVersionOptions = apiContracts.map((api) => {
|
|
168
119
|
var _a, _b, _c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vscodeQuestion.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/questions/vscodeQuestion.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,oCAA8D;AAY9D,4CAA0F;AAC1F,sCAA6D;AAG7D,sCAAwC;AACxC,sDAAmD;AACnD,yCAAmE;AACnE,sDAA8E;AAC9E,
|
|
1
|
+
{"version":3,"file":"vscodeQuestion.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/apim/questions/vscodeQuestion.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,oCAA8D;AAY9D,4CAA0F;AAC1F,sCAA6D;AAG7D,sCAAwC;AACxC,sDAAmD;AACnD,yCAAmE;AACnE,sDAA8E;AAC9E,oDAA8E;AAE9E,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,GAAkB;QACnC,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,GAAG,CAAC,IAAI,CAAC,CAAC;YAC1C,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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