@microsoft/teamsfx-core 3.0.14-alpha.45d3a95504.0 → 3.0.14-alpha.7ffcdb8131.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/client/teamsDevPortalClient.d.ts +7 -2
- package/build/client/teamsDevPortalClient.d.ts.map +1 -1
- package/build/client/teamsDevPortalClient.js +63 -59
- package/build/client/teamsDevPortalClient.js.map +1 -1
- package/build/common/daSpecParser.d.ts +16 -1
- package/build/common/daSpecParser.d.ts.map +1 -1
- package/build/common/daSpecParser.js +34 -21
- package/build/common/daSpecParser.js.map +1 -1
- package/build/common/featureFlags.d.ts +15 -0
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +17 -0
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/fetchHelper.d.ts.map +1 -1
- package/build/common/fetchHelper.js +41 -3
- package/build/common/fetchHelper.js.map +1 -1
- package/build/common/kiotaClient.d.ts +3 -3
- package/build/common/kiotaClient.d.ts.map +1 -1
- package/build/common/kiotaClient.js +10 -10
- package/build/common/kiotaClient.js.map +1 -1
- package/build/common/projectSettingsHelper.d.ts +0 -2
- package/build/common/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/projectSettingsHelper.js +1 -56
- package/build/common/projectSettingsHelper.js.map +1 -1
- package/build/common/telemetry.d.ts +4 -15
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +7 -20
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +9 -2
- package/build/common/tools.d.ts +6 -1
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +13 -8
- package/build/common/tools.js.map +1 -1
- package/build/common/wrappedAxiosClient.d.ts +1 -1
- package/build/common/wrappedAxiosClient.d.ts.map +1 -1
- package/build/common/wrappedAxiosClient.js +7 -8
- package/build/common/wrappedAxiosClient.js.map +1 -1
- package/build/component/coordinator/index.d.ts +4 -0
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +5 -2
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/deps-checker/internal/funcToolChecker.d.ts +6 -0
- package/build/component/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/component/deps-checker/internal/funcToolChecker.js +15 -12
- package/build/component/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/component/deps-checker/internal/nodeChecker.js +1 -1
- package/build/component/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/component/deps-checker/internal/testToolChecker.d.ts +12 -0
- package/build/component/deps-checker/internal/testToolChecker.d.ts.map +1 -1
- package/build/component/deps-checker/internal/testToolChecker.js +23 -14
- package/build/component/deps-checker/internal/testToolChecker.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts +11 -1
- package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +21 -12
- package/build/component/developerPortalScaffoldUtils.js.map +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.d.ts +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.js +7 -4
- package/build/component/driver/aad/utility/aadManifestHelper.js.map +1 -1
- package/build/component/driver/add/addWebPart.d.ts +9 -0
- package/build/component/driver/add/addWebPart.d.ts.map +1 -1
- package/build/component/driver/add/addWebPart.js +13 -7
- package/build/component/driver/add/addWebPart.js.map +1 -1
- package/build/component/driver/arm/util/handleError.d.ts +5 -0
- package/build/component/driver/arm/util/handleError.d.ts.map +1 -1
- package/build/component/driver/arm/util/handleError.js +10 -5
- package/build/component/driver/arm/util/handleError.js.map +1 -1
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.d.ts +8 -1
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.d.ts.map +1 -1
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.js +15 -10
- package/build/component/driver/deploy/azure/azureStaticWebAppGetDeploymentTokenDriver.js.map +1 -1
- package/build/component/driver/devTool/httpClient.d.ts +4 -0
- package/build/component/driver/devTool/httpClient.d.ts.map +1 -1
- package/build/component/driver/devTool/httpClient.js +6 -3
- package/build/component/driver/devTool/httpClient.js.map +1 -1
- package/build/component/driver/m365/acquire.d.ts +13 -1
- package/build/component/driver/m365/acquire.d.ts.map +1 -1
- package/build/component/driver/m365/acquire.js +16 -8
- package/build/component/driver/m365/acquire.js.map +1 -1
- package/build/component/driver/oauth/update.d.ts +6 -0
- package/build/component/driver/oauth/update.d.ts.map +1 -1
- package/build/component/driver/oauth/update.js +8 -4
- package/build/component/driver/oauth/update.js.map +1 -1
- package/build/component/driver/script/scriptDriver.d.ts +6 -0
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +9 -4
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/driver/share/utils.d.ts.map +1 -1
- package/build/component/driver/share/utils.js +9 -7
- package/build/component/driver/share/utils.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts +8 -0
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +114 -13
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/ValidationResult.d.ts +6 -0
- package/build/component/driver/teamsApp/interfaces/ValidationResult.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.d.ts +4 -0
- package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js +8 -5
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/syncManifest.d.ts +16 -3
- package/build/component/driver/teamsApp/syncManifest.d.ts.map +1 -1
- package/build/component/driver/teamsApp/syncManifest.js +28 -18
- package/build/component/driver/teamsApp/syncManifest.js.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.d.ts +4 -0
- package/build/component/driver/teamsApp/teamsappMgr.d.ts.map +1 -1
- package/build/component/driver/teamsApp/teamsappMgr.js +6 -3
- package/build/component/driver/teamsApp/teamsappMgr.js.map +1 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts +2 -0
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js +113 -1
- package/build/component/driver/teamsApp/utils/CopilotGptManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +5 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.js +14 -3
- package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/McpCertVerification.d.ts +4 -0
- package/build/component/driver/teamsApp/utils/McpCertVerification.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/McpCertVerification.js +12 -5
- package/build/component/driver/teamsApp/utils/McpCertVerification.js.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.d.ts +1 -0
- package/build/component/driver/teamsApp/utils/telemetry.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/telemetry.js +1 -0
- package/build/component/driver/teamsApp/utils/telemetry.js.map +1 -1
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +12 -2
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/driver/teamsApp/validateTestCases.d.ts +12 -0
- package/build/component/driver/teamsApp/validateTestCases.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateTestCases.js +17 -8
- package/build/component/driver/teamsApp/validateTestCases.js.map +1 -1
- package/build/component/driver/typeSpec/compile.d.ts +9 -0
- package/build/component/driver/typeSpec/compile.d.ts.map +1 -1
- package/build/component/driver/typeSpec/compile.js +16 -10
- package/build/component/driver/typeSpec/compile.js.map +1 -1
- package/build/component/generator/declarativeAgent/generator.d.ts +8 -0
- package/build/component/generator/declarativeAgent/generator.d.ts.map +1 -1
- package/build/component/generator/declarativeAgent/generator.js +15 -8
- package/build/component/generator/declarativeAgent/generator.js.map +1 -1
- package/build/component/generator/declarativeAgent/helper.d.ts +14 -0
- package/build/component/generator/declarativeAgent/helper.d.ts.map +1 -1
- package/build/component/generator/declarativeAgent/helper.js +32 -20
- package/build/component/generator/declarativeAgent/helper.js.map +1 -1
- package/build/component/generator/defaultGenerator.d.ts.map +1 -1
- package/build/component/generator/defaultGenerator.js +14 -1
- package/build/component/generator/defaultGenerator.js.map +1 -1
- package/build/component/generator/error.d.ts +3 -0
- package/build/component/generator/error.d.ts.map +1 -1
- package/build/component/generator/error.js +7 -1
- package/build/component/generator/error.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts +9 -0
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +16 -8
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/officeAddin/generator.d.ts +12 -0
- package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
- package/build/component/generator/officeAddin/generator.js +53 -3
- package/build/component/generator/officeAddin/generator.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.d.ts +4 -0
- package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +6 -3
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/openApiSpec/customEngineAgentGenerator.d.ts +9 -0
- package/build/component/generator/openApiSpec/customEngineAgentGenerator.d.ts.map +1 -1
- package/build/component/generator/openApiSpec/customEngineAgentGenerator.js +11 -5
- package/build/component/generator/openApiSpec/customEngineAgentGenerator.js.map +1 -1
- package/build/component/generator/openPlugin/authorParser.d.ts +8 -0
- package/build/component/generator/openPlugin/authorParser.d.ts.map +1 -0
- package/build/component/generator/openPlugin/authorParser.js +49 -0
- package/build/component/generator/openPlugin/authorParser.js.map +1 -0
- package/build/component/generator/openPlugin/deterministicId.d.ts +6 -0
- package/build/component/generator/openPlugin/deterministicId.d.ts.map +1 -0
- package/build/component/generator/openPlugin/deterministicId.js +31 -0
- package/build/component/generator/openPlugin/deterministicId.js.map +1 -0
- package/build/component/generator/openPlugin/exporter.d.ts +18 -0
- package/build/component/generator/openPlugin/exporter.d.ts.map +1 -0
- package/build/component/generator/openPlugin/exporter.js +233 -0
- package/build/component/generator/openPlugin/exporter.js.map +1 -0
- package/build/component/generator/openPlugin/iconStrategy.d.ts +8 -0
- package/build/component/generator/openPlugin/iconStrategy.d.ts.map +1 -0
- package/build/component/generator/openPlugin/iconStrategy.js +62 -0
- package/build/component/generator/openPlugin/iconStrategy.js.map +1 -0
- package/build/component/generator/openPlugin/importer.d.ts +25 -0
- package/build/component/generator/openPlugin/importer.d.ts.map +1 -0
- package/build/component/generator/openPlugin/importer.js +140 -0
- package/build/component/generator/openPlugin/importer.js.map +1 -0
- package/build/component/generator/openPlugin/mapper.d.ts +6 -0
- package/build/component/generator/openPlugin/mapper.d.ts.map +1 -0
- package/build/component/generator/openPlugin/mapper.js +141 -0
- package/build/component/generator/openPlugin/mapper.js.map +1 -0
- package/build/component/generator/openPlugin/parser.d.ts +3 -0
- package/build/component/generator/openPlugin/parser.d.ts.map +1 -0
- package/build/component/generator/openPlugin/parser.js +153 -0
- package/build/component/generator/openPlugin/parser.js.map +1 -0
- package/build/component/generator/openPlugin/placeholderPng.d.ts +6 -0
- package/build/component/generator/openPlugin/placeholderPng.d.ts.map +1 -0
- package/build/component/generator/openPlugin/placeholderPng.js +71 -0
- package/build/component/generator/openPlugin/placeholderPng.js.map +1 -0
- package/build/component/generator/openPlugin/textUtils.d.ts +12 -0
- package/build/component/generator/openPlugin/textUtils.d.ts.map +1 -0
- package/build/component/generator/openPlugin/textUtils.js +43 -0
- package/build/component/generator/openPlugin/textUtils.js.map +1 -0
- package/build/component/generator/openPlugin/types.d.ts +128 -0
- package/build/component/generator/openPlugin/types.d.ts.map +1 -0
- package/build/component/generator/openPlugin/types.js.map +1 -0
- package/build/component/generator/spfx/utils/constants.d.ts +1 -1
- package/build/component/generator/spfx/utils/constants.js +1 -1
- package/build/component/generator/templateHelper.d.ts +15 -0
- package/build/component/generator/templateHelper.d.ts.map +1 -1
- package/build/component/generator/templateHelper.js +28 -0
- package/build/component/generator/templateHelper.js.map +1 -1
- package/build/component/generator/templates/metadata/index.d.ts.map +1 -1
- package/build/component/generator/templates/metadata/index.js +12 -5
- package/build/component/generator/templates/metadata/index.js.map +1 -1
- package/build/component/generator/templates/templateNames.d.ts +3 -1
- package/build/component/generator/templates/templateNames.d.ts.map +1 -1
- package/build/component/generator/templates/templateNames.js +3 -0
- package/build/component/generator/templates/templateNames.js.map +1 -1
- package/build/component/generator/utils.js +8 -8
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/generator/v4MetadataSource.d.ts +23 -0
- package/build/component/generator/v4MetadataSource.d.ts.map +1 -0
- package/build/component/generator/v4MetadataSource.js +42 -0
- package/build/component/generator/v4MetadataSource.js.map +1 -0
- package/build/component/generator/v4TemplateBridge.d.ts +40 -0
- package/build/component/generator/v4TemplateBridge.d.ts.map +1 -0
- package/build/component/generator/v4TemplateBridge.js +125 -0
- package/build/component/generator/v4TemplateBridge.js.map +1 -0
- package/build/component/local/localCertificateManager.d.ts +17 -1
- package/build/component/local/localCertificateManager.d.ts.map +1 -1
- package/build/component/local/localCertificateManager.js +48 -31
- package/build/component/local/localCertificateManager.js.map +1 -1
- package/build/component/m365/packageService.d.ts +5 -0
- package/build/component/m365/packageService.d.ts.map +1 -1
- package/build/component/m365/packageService.js +32 -13
- package/build/component/m365/packageService.js.map +1 -1
- package/build/component/middleware/envMW.d.ts.map +1 -1
- package/build/component/middleware/envMW.js +5 -0
- package/build/component/middleware/envMW.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +4 -0
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +7 -4
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/charsetUtils.js +3 -3
- package/build/component/utils/charsetUtils.js.map +1 -1
- package/build/component/utils/fileOperation.d.ts +10 -0
- package/build/component/utils/fileOperation.d.ts.map +1 -1
- package/build/component/utils/fileOperation.js +27 -17
- package/build/component/utils/fileOperation.js.map +1 -1
- package/build/component/utils/metadataGraphPermssion.d.ts +4 -0
- package/build/component/utils/metadataGraphPermssion.d.ts.map +1 -1
- package/build/component/utils/metadataGraphPermssion.js +7 -4
- package/build/component/utils/metadataGraphPermssion.js.map +1 -1
- package/build/component/utils/odrProvider.d.ts +6 -0
- package/build/component/utils/odrProvider.d.ts.map +1 -1
- package/build/component/utils/odrProvider.js +9 -4
- package/build/component/utils/odrProvider.js.map +1 -1
- package/build/core/FxCore.d.ts +46 -4
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.declarativeAgent.d.ts +9 -0
- package/build/core/FxCore.declarativeAgent.d.ts.map +1 -1
- package/build/core/FxCore.declarativeAgent.js +13 -6
- package/build/core/FxCore.declarativeAgent.js.map +1 -1
- package/build/core/FxCore.js +443 -140
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCore.openPlugin.d.ts +29 -0
- package/build/core/FxCore.openPlugin.d.ts.map +1 -0
- package/build/core/FxCore.openPlugin.js +135 -0
- package/build/core/FxCore.openPlugin.js.map +1 -0
- package/build/core/collaborator.d.ts +4 -0
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/collaborator.js +6 -3
- package/build/core/collaborator.js.map +1 -1
- package/build/core/middleware/concurrentLocker.d.ts +9 -0
- package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
- package/build/core/middleware/concurrentLocker.js +14 -11
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/errorHandler.d.ts.map +1 -1
- package/build/core/middleware/errorHandler.js +9 -0
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/fileLocker.d.ts +6 -0
- package/build/core/middleware/fileLocker.d.ts.map +1 -1
- package/build/core/middleware/fileLocker.js +11 -6
- package/build/core/middleware/fileLocker.js.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.d.ts +1 -34
- package/build/core/middleware/utils/v3MigrationUtils.d.ts.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.js +6 -245
- package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
- package/build/error/teamsApp.d.ts +3 -0
- package/build/error/teamsApp.d.ts.map +1 -1
- package/build/error/teamsApp.js +15 -1
- package/build/error/teamsApp.js.map +1 -1
- package/build/question/create.d.ts +8 -1
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +24 -15
- package/build/question/create.js.map +1 -1
- package/build/question/index.d.ts +1 -0
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +3 -0
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/AddSkillInputs.d.ts +10 -0
- package/build/question/inputs/AddSkillInputs.d.ts.map +1 -0
- package/build/question/inputs/AddSkillInputs.js +5 -0
- package/build/question/inputs/AddSkillInputs.js.map +1 -0
- package/build/question/inputs/ExportOpenPluginInputs.d.ts +10 -0
- package/build/question/inputs/ExportOpenPluginInputs.d.ts.map +1 -0
- package/build/question/inputs/ExportOpenPluginInputs.js +5 -0
- package/build/question/inputs/ExportOpenPluginInputs.js.map +1 -0
- package/build/question/inputs/ImportOpenPluginInputs.d.ts +28 -0
- package/build/question/inputs/ImportOpenPluginInputs.d.ts.map +1 -0
- package/build/question/inputs/ImportOpenPluginInputs.js +5 -0
- package/build/question/inputs/ImportOpenPluginInputs.js.map +1 -0
- package/build/question/inputs/index.d.ts +3 -0
- package/build/question/inputs/index.d.ts.map +1 -1
- package/build/question/inputs/index.js +3 -0
- package/build/question/inputs/index.js.map +1 -1
- package/build/question/options/AddSkillOptions.d.ts +4 -0
- package/build/question/options/AddSkillOptions.d.ts.map +1 -0
- package/build/question/options/AddSkillOptions.js +47 -0
- package/build/question/options/AddSkillOptions.js.map +1 -0
- package/build/question/options/ExportOpenPluginOptions.d.ts +4 -0
- package/build/question/options/ExportOpenPluginOptions.d.ts.map +1 -0
- package/build/question/options/ExportOpenPluginOptions.js +29 -0
- package/build/question/options/ExportOpenPluginOptions.js.map +1 -0
- package/build/question/options/ImportOpenPluginOptions.d.ts +4 -0
- package/build/question/options/ImportOpenPluginOptions.d.ts.map +1 -0
- package/build/question/options/ImportOpenPluginOptions.js +54 -0
- package/build/question/options/ImportOpenPluginOptions.js.map +1 -0
- package/build/question/options/index.d.ts +3 -0
- package/build/question/options/index.d.ts.map +1 -1
- package/build/question/options/index.js +3 -0
- package/build/question/options/index.js.map +1 -1
- package/build/question/other.d.ts +1 -0
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +118 -0
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +7 -1
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +6 -0
- package/build/question/questionNames.js.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.d.ts +1 -0
- package/build/question/scaffold/vsc/CapabilityOptions.d.ts.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.js +11 -0
- package/build/question/scaffold/vsc/CapabilityOptions.js.map +1 -1
- package/build/question/scaffold/vsc/rootNode.js +6 -4
- package/build/question/scaffold/vsc/rootNode.js.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts +8 -0
- package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js +17 -11
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js.map +1 -1
- package/build/question/share.d.ts +7 -0
- package/build/question/share.d.ts.map +1 -1
- package/build/question/share.js +7 -3
- package/build/question/share.js.map +1 -1
- package/build/v4/distribution/bundledFloor.d.ts +12 -0
- package/build/v4/distribution/bundledFloor.d.ts.map +1 -0
- package/build/v4/distribution/bundledFloor.js +80 -0
- package/build/v4/distribution/bundledFloor.js.map +1 -0
- package/build/v4/distribution/templateConfig.d.ts +53 -0
- package/build/v4/distribution/templateConfig.d.ts.map +1 -0
- package/build/v4/distribution/templateConfig.js +43 -0
- package/build/v4/distribution/templateConfig.js.map +1 -0
- package/build/v4/distribution/templatePackage.d.ts +29 -0
- package/build/v4/distribution/templatePackage.d.ts.map +1 -0
- package/build/v4/distribution/templatePackage.js +82 -0
- package/build/v4/distribution/templatePackage.js.map +1 -0
- package/build/v4/distribution/templateSource.d.ts +67 -0
- package/build/v4/distribution/templateSource.d.ts.map +1 -0
- package/build/v4/distribution/templateSource.js +220 -0
- package/build/v4/distribution/templateSource.js.map +1 -0
- package/build/v4/distribution/templateSourcePort.d.ts +50 -0
- package/build/v4/distribution/templateSourcePort.d.ts.map +1 -0
- package/build/v4/distribution/templateSourcePort.js +207 -0
- package/build/v4/distribution/templateSourcePort.js.map +1 -0
- package/build/v4/index.d.ts +13 -0
- package/build/v4/index.d.ts.map +1 -0
- package/build/v4/index.js +18 -0
- package/build/v4/index.js.map +1 -0
- package/package.json +17 -78
- package/resource/package.nls.cs.json +42 -15
- package/resource/package.nls.de.json +43 -16
- package/resource/package.nls.es.json +42 -15
- package/resource/package.nls.fr.json +42 -15
- package/resource/package.nls.it.json +43 -16
- package/resource/package.nls.ja.json +42 -15
- package/resource/package.nls.json +34 -13
- package/resource/package.nls.ko.json +42 -15
- package/resource/package.nls.pl.json +43 -16
- package/resource/package.nls.pt-BR.json +42 -15
- package/resource/package.nls.ru.json +43 -16
- package/resource/package.nls.tr.json +44 -17
- package/resource/package.nls.zh-Hans.json +42 -15
- package/resource/package.nls.zh-Hant.json +54 -27
- package/resource/templates/package.nls.cs.json +2 -0
- package/resource/templates/package.nls.de.json +2 -0
- package/resource/templates/package.nls.es.json +2 -0
- package/resource/templates/package.nls.fr.json +2 -0
- package/resource/templates/package.nls.it.json +2 -0
- package/resource/templates/package.nls.ja.json +2 -0
- package/resource/templates/package.nls.json +2 -0
- package/resource/templates/package.nls.ko.json +2 -0
- package/resource/templates/package.nls.pl.json +2 -0
- package/resource/templates/package.nls.pt-BR.json +2 -0
- package/resource/templates/package.nls.ru.json +2 -0
- package/resource/templates/package.nls.tr.json +2 -0
- package/resource/templates/package.nls.zh-Hans.json +2 -0
- package/resource/templates/package.nls.zh-Hant.json +2 -0
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/python.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/metadata/allTemplates.json +8 -0
- package/templates/metadata.zip +0 -0
- package/templates/ui/tdpNode.json +7 -0
- package/templates/ui/wizardNode.json +7 -0
- package/templates/v4/floor.json +3 -0
- package/templates/v4/templates.zip +0 -0
- package/build/core/middleware/projectMigratorV3.d.ts +0 -39
- package/build/core/middleware/projectMigratorV3.d.ts.map +0 -1
- package/build/core/middleware/projectMigratorV3.js +0 -694
- package/build/core/middleware/projectMigratorV3.js.map +0 -1
- package/build/core/middleware/projectVersionChecker.d.ts +0 -3
- package/build/core/middleware/projectVersionChecker.d.ts.map +0 -1
- package/build/core/middleware/projectVersionChecker.js +0 -60
- package/build/core/middleware/projectVersionChecker.js.map +0 -1
- package/build/core/middleware/types.d.ts +0 -9
- package/build/core/middleware/types.d.ts.map +0 -1
- package/build/core/middleware/types.js.map +0 -1
- package/build/core/middleware/utils/MigrationUtils.d.ts +0 -13
- package/build/core/middleware/utils/MigrationUtils.d.ts.map +0 -1
- package/build/core/middleware/utils/MigrationUtils.js +0 -212
- package/build/core/middleware/utils/MigrationUtils.js.map +0 -1
- package/build/core/middleware/utils/appYmlGenerator.d.ts +0 -34
- package/build/core/middleware/utils/appYmlGenerator.d.ts.map +0 -1
- package/build/core/middleware/utils/appYmlGenerator.js +0 -158
- package/build/core/middleware/utils/appYmlGenerator.js.map +0 -1
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts +0 -65
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts.map +0 -1
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.js +0 -61
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.js.map +0 -1
- package/build/core/middleware/utils/debug/constants.d.ts +0 -20
- package/build/core/middleware/utils/debug/constants.d.ts.map +0 -1
- package/build/core/middleware/utils/debug/constants.js +0 -28
- package/build/core/middleware/utils/debug/constants.js.map +0 -1
- package/build/core/middleware/utils/debug/debugMigrationContext.d.ts +0 -14
- package/build/core/middleware/utils/debug/debugMigrationContext.d.ts.map +0 -1
- package/build/core/middleware/utils/debug/debugMigrationContext.js +0 -23
- package/build/core/middleware/utils/debug/debugMigrationContext.js.map +0 -1
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts +0 -37
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.d.ts.map +0 -1
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.js +0 -291
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.js.map +0 -1
- package/build/core/middleware/utils/debug/taskMigrator.d.ts +0 -22
- package/build/core/middleware/utils/debug/taskMigrator.d.ts.map +0 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +0 -935
- package/build/core/middleware/utils/debug/taskMigrator.js.map +0 -1
- package/build/core/middleware/utils/migrationContext.d.ts +0 -32
- package/build/core/middleware/utils/migrationContext.d.ts.map +0 -1
- package/build/core/middleware/utils/migrationContext.js +0 -104
- package/build/core/middleware/utils/migrationContext.js.map +0 -1
- /package/build/{core/middleware → component/generator/openPlugin}/types.js +0 -0
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosResponse } from "axios";
|
|
2
|
+
import { sendTelemetryErrorEvent, sendTelemetryEvent } from "../common/telemetry";
|
|
3
|
+
import { AADApplication } from "../component/driver/aad/interface/AADApplication";
|
|
4
|
+
import { SignInAudience } from "../component/driver/aad/interface/signInAudience";
|
|
2
5
|
import { ApiSecretRegistration, ApiSecretRegistrationUpdate } from "../component/driver/teamsApp/interfaces/ApiSecretRegistration";
|
|
3
6
|
import { AsyncAppValidationDetailsResponse } from "../component/driver/teamsApp/interfaces/AsyncAppValidationDetailsResponse";
|
|
4
7
|
import { AsyncAppValidationResponse } from "../component/driver/teamsApp/interfaces/AsyncAppValidationResponse";
|
|
@@ -10,8 +13,6 @@ import { IValidationResult } from "../component/driver/teamsApp/interfaces/appde
|
|
|
10
13
|
import { AppDefinition } from "../component/driver/teamsApp/interfaces/appdefinitions/appDefinition";
|
|
11
14
|
import { AppUser } from "../component/driver/teamsApp/interfaces/appdefinitions/appUser";
|
|
12
15
|
import { IBotRegistration } from "../component/resource/botService/appStudio/interfaces/IBotRegistration";
|
|
13
|
-
import { SignInAudience } from "../component/driver/aad/interface/signInAudience";
|
|
14
|
-
import { AADApplication } from "../component/driver/aad/interface/AADApplication";
|
|
15
16
|
export declare class TeamsDevPortalClient {
|
|
16
17
|
regionEndpoint?: string;
|
|
17
18
|
setRegionEndpoint(regionEndpoint: string): void;
|
|
@@ -123,5 +124,9 @@ export declare class TeamsDevPortalClient {
|
|
|
123
124
|
wrapResponse(e?: Error, response?: AxiosResponse<any, any>): any;
|
|
124
125
|
wrapException(e: any, apiName: string, name?: string, potentialReason?: string, disPlayMessage?: string, isUserError?: boolean, helpLink?: string): Error;
|
|
125
126
|
}
|
|
127
|
+
export declare const teamsDevPortalClientDeps: {
|
|
128
|
+
sendTelemetryEvent: typeof sendTelemetryEvent;
|
|
129
|
+
sendTelemetryErrorEvent: typeof sendTelemetryErrorEvent;
|
|
130
|
+
};
|
|
126
131
|
export declare const teamsDevPortalClient: TeamsDevPortalClient;
|
|
127
132
|
//# sourceMappingURL=teamsDevPortalClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamsDevPortalClient.d.ts","sourceRoot":"","sources":["../../src/client/teamsDevPortalClient.ts"],"names":[],"mappings":"AAKA,OAAc,EAAE,aAAa,EAAE,aAAa,EA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,IAAI,GAAG,SAAS;IAclE,YAAY,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,GAAG;IAQhE,aAAa,CACX,CAAC,EAAE,GAAG,EACN,OAAO,EAAE,MAAM,EACf,IAAI,SAA4D,EAChE,eAAe,SAA8D,EAC7E,cAAc,CAAC,EAAE,MAAM,EACvB,WAAW,UAAQ,EACnB,QAAQ,CAAC,EAAE,MAAM,GAChB,KAAK;CAgCT;AAED,eAAO,MAAM,wBAAwB;;;CAGpC,CAAC;AAEF,eAAO,MAAM,oBAAoB,sBAA6B,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) Microsoft Corporation.
|
|
3
3
|
// Licensed under the MIT license.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.teamsDevPortalClient = exports.TeamsDevPortalClient = void 0;
|
|
5
|
+
exports.teamsDevPortalClient = exports.teamsDevPortalClientDeps = exports.TeamsDevPortalClient = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
const hooks_1 = require("@feathersjs/hooks");
|
|
8
8
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
@@ -14,19 +14,19 @@ const retryHandler_1 = require("../common/retryHandler");
|
|
|
14
14
|
const telemetry_1 = require("../common/telemetry");
|
|
15
15
|
const wrappedAxiosClient_1 = require("../common/wrappedAxiosClient");
|
|
16
16
|
const commonConstant_1 = require("../component/constant/commonConstant");
|
|
17
|
-
const
|
|
17
|
+
const signInAudienceNotAllowedError_1 = require("../component/driver/aad/error/signInAudienceNotAllowedError");
|
|
18
|
+
const signInAudience_1 = require("../component/driver/aad/interface/signInAudience");
|
|
19
|
+
const constants_2 = require("../component/driver/aad/utility/constants");
|
|
20
|
+
const constants_3 = require("../component/driver/teamsApp/constants");
|
|
18
21
|
const errors_1 = require("../component/driver/teamsApp/errors");
|
|
19
22
|
const ManifestUtils_1 = require("../component/driver/teamsApp/utils/ManifestUtils");
|
|
20
23
|
const IBotRegistration_1 = require("../component/resource/botService/appStudio/interfaces/IBotRegistration");
|
|
21
24
|
const common_1 = require("../component/resource/botService/common");
|
|
22
|
-
const
|
|
25
|
+
const constants_4 = require("../component/resource/botService/constants");
|
|
23
26
|
const errors_2 = require("../component/resource/botService/errors");
|
|
24
27
|
const messages_1 = require("../component/resource/botService/messages");
|
|
25
28
|
const strings_1 = require("../component/resource/botService/strings");
|
|
26
29
|
const teamsApp_1 = require("../error/teamsApp");
|
|
27
|
-
const signInAudience_1 = require("../component/driver/aad/interface/signInAudience");
|
|
28
|
-
const constants_4 = require("../component/driver/aad/utility/constants");
|
|
29
|
-
const signInAudienceNotAllowedError_1 = require("../component/driver/aad/error/signInAudienceNotAllowedError");
|
|
30
30
|
class TeamsDevPortalClient {
|
|
31
31
|
regionEndpoint;
|
|
32
32
|
setRegionEndpoint(regionEndpoint) {
|
|
@@ -84,18 +84,18 @@ class TeamsDevPortalClient {
|
|
|
84
84
|
return app;
|
|
85
85
|
}
|
|
86
86
|
else {
|
|
87
|
-
throw this.wrapException(new Error("cannot create teams app"),
|
|
87
|
+
throw this.wrapException(new Error("cannot create teams app"), constants_3.APP_STUDIO_API_NAMES.CREATE_APP);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
catch (e) {
|
|
91
91
|
if (e.response?.status === 409) {
|
|
92
|
-
throw this.wrapException(e,
|
|
92
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_APP, errors_1.AppStudioError.TeamsAppCreateConflictError.name, errors_1.AppStudioError.TeamsAppCreateConflictError.message()[0], errors_1.AppStudioError.TeamsAppCreateConflictError.message()[1], true, constants_1.HelpLinks.SwitchTenant);
|
|
93
93
|
}
|
|
94
94
|
// Corner case: The provided app ID conflict with an existing published app
|
|
95
95
|
// See Developer Portal PR: 507264
|
|
96
96
|
if (e.response?.status == 422 &&
|
|
97
97
|
e.response?.data.includes("App already exists and published")) {
|
|
98
|
-
throw this.wrapException(e,
|
|
98
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_APP, errors_1.AppStudioError.TeamsAppCreateConflictWithPublishedAppError.name, errors_1.AppStudioError.TeamsAppCreateConflictWithPublishedAppError.message()[0], errors_1.AppStudioError.TeamsAppCreateConflictWithPublishedAppError.message()[1], true);
|
|
99
99
|
}
|
|
100
100
|
// Corner case: App Id must be a GUID
|
|
101
101
|
if (e.response?.status === commonConstant_1.HttpStatusCode.BAD_REQUEST &&
|
|
@@ -106,10 +106,10 @@ class TeamsDevPortalClient {
|
|
|
106
106
|
}
|
|
107
107
|
else {
|
|
108
108
|
const teamsAppId = manifest.value.id;
|
|
109
|
-
throw this.wrapException(e,
|
|
109
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_APP, errors_1.AppStudioError.InvalidTeamsAppIdError.name, errors_1.AppStudioError.InvalidTeamsAppIdError.message(teamsAppId)[0], errors_1.AppStudioError.InvalidTeamsAppIdError.message(teamsAppId)[1], true);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
throw this.wrapException(e,
|
|
112
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_APP);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
async listApps(token) {
|
|
@@ -129,9 +129,9 @@ class TeamsDevPortalClient {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
catch (e) {
|
|
132
|
-
throw this.wrapException(e,
|
|
132
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.LIST_APPS);
|
|
133
133
|
}
|
|
134
|
-
throw this.wrapException(new Error("cannot get the app definitions"),
|
|
134
|
+
throw this.wrapException(new Error("cannot get the app definitions"), constants_3.APP_STUDIO_API_NAMES.LIST_APPS);
|
|
135
135
|
}
|
|
136
136
|
async deleteApp(appStudioToken, teamsAppId) {
|
|
137
137
|
if (!this.regionEndpoint)
|
|
@@ -152,9 +152,9 @@ class TeamsDevPortalClient {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
catch (e) {
|
|
155
|
-
throw this.wrapException(e,
|
|
155
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.DELETE_APP);
|
|
156
156
|
}
|
|
157
|
-
throw this.wrapException(new Error("cannot delete the app: " + teamsAppId),
|
|
157
|
+
throw this.wrapException(new Error("cannot delete the app: " + teamsAppId), constants_3.APP_STUDIO_API_NAMES.DELETE_APP);
|
|
158
158
|
}
|
|
159
159
|
async getApp(token, teamsAppId) {
|
|
160
160
|
let requester;
|
|
@@ -173,9 +173,9 @@ class TeamsDevPortalClient {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
catch (e) {
|
|
176
|
-
throw this.wrapException(e,
|
|
176
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP);
|
|
177
177
|
}
|
|
178
|
-
throw this.wrapException(new Error(`cannot get the app definition with app ID ${teamsAppId}`),
|
|
178
|
+
throw this.wrapException(new Error(`cannot get the app definition with app ID ${teamsAppId}`), constants_3.APP_STUDIO_API_NAMES.GET_APP);
|
|
179
179
|
}
|
|
180
180
|
async getBotId(token, teamsAppId) {
|
|
181
181
|
const app = await this.getApp(token, teamsAppId);
|
|
@@ -195,11 +195,11 @@ class TeamsDevPortalClient {
|
|
|
195
195
|
return response.data;
|
|
196
196
|
}
|
|
197
197
|
else {
|
|
198
|
-
throw this.wrapException(new Error((0, localizeUtils_1.getLocalizedString)("plugins.appstudio.emptyAppPackage", teamsAppId)),
|
|
198
|
+
throw this.wrapException(new Error((0, localizeUtils_1.getLocalizedString)("plugins.appstudio.emptyAppPackage", teamsAppId)), constants_3.APP_STUDIO_API_NAMES.GET_APP_PACKAGE);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
catch (e) {
|
|
202
|
-
throw this.wrapException(e,
|
|
202
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP_PACKAGE);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
@@ -253,21 +253,21 @@ class TeamsDevPortalClient {
|
|
|
253
253
|
}
|
|
254
254
|
catch (e) {
|
|
255
255
|
if (e instanceof teamsApp_1.DeveloperPortalAPIFailedSystemError) {
|
|
256
|
-
throw this.wrapException(this.wrapResponse(undefined, response),
|
|
256
|
+
throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.PUBLISH_APP, errors_1.AppStudioError.TeamsAppPublishConflictError.name, errors_1.AppStudioError.TeamsAppPublishConflictError.message(teamsAppId)[0], errors_1.AppStudioError.TeamsAppPublishConflictError.message(teamsAppId)[1]);
|
|
257
257
|
}
|
|
258
258
|
else {
|
|
259
259
|
throw e;
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
throw this.wrapException(this.wrapResponse(undefined, response),
|
|
263
|
+
throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.PUBLISH_APP);
|
|
264
264
|
}
|
|
265
265
|
else {
|
|
266
266
|
return response.data.id;
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
else {
|
|
270
|
-
throw this.wrapException(this.wrapResponse(new Error("empty response"), response),
|
|
270
|
+
throw this.wrapException(this.wrapResponse(new Error("empty response"), response), constants_3.APP_STUDIO_API_NAMES.PUBLISH_APP, errors_1.AppStudioError.TeamsAppPublishFailedError.name, errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, "POST /api/publishing")[0], errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, "POST /api/publishing")[1]);
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
catch (e) {
|
|
@@ -275,7 +275,7 @@ class TeamsDevPortalClient {
|
|
|
275
275
|
throw e;
|
|
276
276
|
}
|
|
277
277
|
else {
|
|
278
|
-
throw this.wrapException(e,
|
|
278
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.PUBLISH_APP);
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
}
|
|
@@ -299,19 +299,19 @@ class TeamsDevPortalClient {
|
|
|
299
299
|
}));
|
|
300
300
|
}
|
|
301
301
|
else {
|
|
302
|
-
throw this.wrapException(new Error("API failed"),
|
|
302
|
+
throw this.wrapException(new Error("API failed"), constants_3.APP_STUDIO_API_NAMES.GET_PUBLISHED_APP, errors_1.AppStudioError.TeamsAppPublishFailedError.name, errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, `GET /api/publishing/${teamsAppId}`)[0], errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, `GET /api/publishing/${teamsAppId}`)[1]);
|
|
303
303
|
}
|
|
304
304
|
const requestPath = `${response?.request?.method} ${response?.request?.path}`;
|
|
305
305
|
if (response && response.data) {
|
|
306
306
|
if (response.data.error || response.data.errorMessage) {
|
|
307
|
-
throw this.wrapException(this.wrapResponse(undefined, response),
|
|
307
|
+
throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP);
|
|
308
308
|
}
|
|
309
309
|
else {
|
|
310
310
|
return response.data.teamsAppId;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
else {
|
|
314
|
-
throw this.wrapException(new Error("empty response"),
|
|
314
|
+
throw this.wrapException(new Error("empty response"), constants_3.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP, errors_1.AppStudioError.TeamsAppPublishFailedError.name, errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, requestPath)[0], errors_1.AppStudioError.TeamsAppPublishFailedError.message(teamsAppId, requestPath)[1]);
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
catch (error) {
|
|
@@ -319,7 +319,7 @@ class TeamsDevPortalClient {
|
|
|
319
319
|
throw error;
|
|
320
320
|
}
|
|
321
321
|
else {
|
|
322
|
-
throw this.wrapException(error,
|
|
322
|
+
throw this.wrapException(error, constants_3.APP_STUDIO_API_NAMES.UPDATE_PUBLISHED_APP);
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
}
|
|
@@ -364,17 +364,17 @@ class TeamsDevPortalClient {
|
|
|
364
364
|
userList = await this.getUserList(token, teamsAppId);
|
|
365
365
|
}
|
|
366
366
|
catch (error) {
|
|
367
|
-
return
|
|
367
|
+
return constants_3.Constants.PERMISSIONS.noPermission;
|
|
368
368
|
}
|
|
369
369
|
const findUser = userList?.find((user) => user.aadId === userObjectId);
|
|
370
370
|
if (!findUser) {
|
|
371
|
-
return
|
|
371
|
+
return constants_3.Constants.PERMISSIONS.noPermission;
|
|
372
372
|
}
|
|
373
373
|
if (findUser.isAdministrator) {
|
|
374
|
-
return
|
|
374
|
+
return constants_3.Constants.PERMISSIONS.admin;
|
|
375
375
|
}
|
|
376
376
|
else {
|
|
377
|
-
return
|
|
377
|
+
return constants_3.Constants.PERMISSIONS.operative;
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
async removePermission(token, teamsAppId, userToRemove) {
|
|
@@ -396,7 +396,7 @@ class TeamsDevPortalClient {
|
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
catch (err) {
|
|
399
|
-
throw this.wrapException(err,
|
|
399
|
+
throw this.wrapException(err, constants_3.APP_STUDIO_API_NAMES.UPDATE_OWNER);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
async grantPermission(token, teamsAppId, newUser) {
|
|
@@ -412,11 +412,11 @@ class TeamsDevPortalClient {
|
|
|
412
412
|
const response = await retryHandler_1.RetryHandler.Retry(() => requester.post(`/api/appdefinitions/${teamsAppId}/owner`, app));
|
|
413
413
|
globalVars_1.TOOLS.logProvider.debug((0, localizeUtils_1.getLocalizedString)("core.common.ReceiveApiResponse", JSON.stringify(response?.data)));
|
|
414
414
|
if (!response || !response.data || !this.checkUser(response.data, newUser)) {
|
|
415
|
-
throw new Error(
|
|
415
|
+
throw new Error(constants_3.ErrorMessages.GrantPermissionFailed);
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
catch (err) {
|
|
419
|
-
throw this.wrapException(err,
|
|
419
|
+
throw this.wrapException(err, constants_3.APP_STUDIO_API_NAMES.UPDATE_OWNER);
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
/**
|
|
@@ -434,7 +434,7 @@ class TeamsDevPortalClient {
|
|
|
434
434
|
return response?.data;
|
|
435
435
|
}
|
|
436
436
|
catch (e) {
|
|
437
|
-
throw this.wrapException(e,
|
|
437
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.VALIDATE_APP_PACKAGE);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
checkUser(app, newUser) {
|
|
@@ -463,7 +463,7 @@ class TeamsDevPortalClient {
|
|
|
463
463
|
return response?.data;
|
|
464
464
|
}
|
|
465
465
|
catch (e) {
|
|
466
|
-
throw this.wrapException(e,
|
|
466
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.SUBMIT_APP_VALIDATION);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
/**
|
|
@@ -476,7 +476,7 @@ class TeamsDevPortalClient {
|
|
|
476
476
|
return response?.data;
|
|
477
477
|
}
|
|
478
478
|
catch (e) {
|
|
479
|
-
throw this.wrapException(e,
|
|
479
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP_VALIDATION_REQUESTS);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
/**
|
|
@@ -493,7 +493,7 @@ class TeamsDevPortalClient {
|
|
|
493
493
|
return response?.data;
|
|
494
494
|
}
|
|
495
495
|
catch (e) {
|
|
496
|
-
throw this.wrapException(e,
|
|
496
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_APP_VALIDATION_RESULT);
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
async getSideloadingStatus(token) {
|
|
@@ -511,12 +511,12 @@ class TeamsDevPortalClient {
|
|
|
511
511
|
result = response.data?.value?.isSideloadingAllowed;
|
|
512
512
|
}
|
|
513
513
|
if (result !== undefined) {
|
|
514
|
-
|
|
514
|
+
exports.teamsDevPortalClientDeps.sendTelemetryEvent("TeamsDevPortalClient", telemetry_1.TelemetryEvent.CheckSideloading, {
|
|
515
515
|
[telemetry_1.TelemetryProperty.IsSideloadingAllowed]: result.toString() + "",
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
518
|
else {
|
|
519
|
-
|
|
519
|
+
exports.teamsDevPortalClientDeps.sendTelemetryErrorEvent("TeamsDevPortalClient", telemetry_1.TelemetryEvent.CheckSideloading, new teamsfx_api_1.SystemError("M365Account", "UnknownValue", `AppStudio response code: ${response.status}, body: ${response.data}`), {
|
|
520
520
|
[telemetry_1.TelemetryProperty.CheckSideloadingStatusCode]: `${response.status}`,
|
|
521
521
|
[telemetry_1.TelemetryProperty.CheckSideloadingMethod]: "get",
|
|
522
522
|
[telemetry_1.TelemetryProperty.CheckSideloadingUrl]: apiName,
|
|
@@ -525,7 +525,7 @@ class TeamsDevPortalClient {
|
|
|
525
525
|
return result;
|
|
526
526
|
}
|
|
527
527
|
catch (error) {
|
|
528
|
-
|
|
528
|
+
exports.teamsDevPortalClientDeps.sendTelemetryErrorEvent("TeamsDevPortalClient", telemetry_1.TelemetryEvent.CheckSideloading, new teamsApp_1.CheckSideloadingPermissionFailedError(error, error.response?.headers?.[constants_3.Constants.CORRELATION_ID] ?? "", apiName, (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.reason.common", error.response?.data ? `data: ${JSON.stringify(error.response.data)}` : "")), {
|
|
529
529
|
[telemetry_1.TelemetryProperty.CheckSideloadingStatusCode]: `${error?.response?.status}`,
|
|
530
530
|
[telemetry_1.TelemetryProperty.CheckSideloadingMethod]: "get",
|
|
531
531
|
[telemetry_1.TelemetryProperty.CheckSideloadingUrl]: apiName,
|
|
@@ -545,7 +545,7 @@ class TeamsDevPortalClient {
|
|
|
545
545
|
return response?.data;
|
|
546
546
|
}
|
|
547
547
|
catch (e) {
|
|
548
|
-
throw this.wrapException(e,
|
|
548
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_API_KEY);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
/**
|
|
@@ -560,7 +560,7 @@ class TeamsDevPortalClient {
|
|
|
560
560
|
return response?.data;
|
|
561
561
|
}
|
|
562
562
|
catch (e) {
|
|
563
|
-
throw this.wrapException(e,
|
|
563
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_API_KEY);
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
async updateApiKeyRegistration(token, apiKeyRegistration, apiKeyRegistrationId) {
|
|
@@ -570,7 +570,7 @@ class TeamsDevPortalClient {
|
|
|
570
570
|
return response?.data;
|
|
571
571
|
}
|
|
572
572
|
catch (e) {
|
|
573
|
-
throw this.wrapException(e,
|
|
573
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.UPDATE_API_KEY);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
async getOauthRegistrationById(token, oauthRegistrationId) {
|
|
@@ -580,7 +580,7 @@ class TeamsDevPortalClient {
|
|
|
580
580
|
return response?.data;
|
|
581
581
|
}
|
|
582
582
|
catch (e) {
|
|
583
|
-
throw this.wrapException(e,
|
|
583
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.GET_OAUTH);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
async createOauthRegistration(token, oauthRegistration) {
|
|
@@ -590,7 +590,7 @@ class TeamsDevPortalClient {
|
|
|
590
590
|
return response?.data;
|
|
591
591
|
}
|
|
592
592
|
catch (e) {
|
|
593
|
-
throw this.wrapException(e,
|
|
593
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.CREATE_OAUTH);
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
async updateOauthRegistration(token, oauthRegistration, oauthRegistrationId) {
|
|
@@ -600,7 +600,7 @@ class TeamsDevPortalClient {
|
|
|
600
600
|
return response?.data;
|
|
601
601
|
}
|
|
602
602
|
catch (e) {
|
|
603
|
-
throw this.wrapException(e,
|
|
603
|
+
throw this.wrapException(e, constants_3.APP_STUDIO_API_NAMES.UPDATE_OAUTH);
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
606
|
async getBotRegistration(token, botId) {
|
|
@@ -612,11 +612,11 @@ class TeamsDevPortalClient {
|
|
|
612
612
|
}
|
|
613
613
|
else {
|
|
614
614
|
// Defensive code and it should never reach here.
|
|
615
|
-
throw this.wrapException(this.wrapResponse(undefined, response),
|
|
615
|
+
throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.GET_BOT, (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.name.common"), "Failed to get data");
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
catch (e) {
|
|
619
|
-
this.handleBotFrameworkError(e,
|
|
619
|
+
this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.GET_BOT);
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
async listBots(token) {
|
|
@@ -628,11 +628,11 @@ class TeamsDevPortalClient {
|
|
|
628
628
|
}
|
|
629
629
|
else {
|
|
630
630
|
// Defensive code and it should never reach here.
|
|
631
|
-
throw this.wrapException(this.wrapResponse(undefined, response),
|
|
631
|
+
throw this.wrapException(this.wrapResponse(undefined, response), constants_3.APP_STUDIO_API_NAMES.LIST_BOT, (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.name.common"), "Failed to get data");
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
catch (e) {
|
|
635
|
-
this.handleBotFrameworkError(e,
|
|
635
|
+
this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.LIST_BOT);
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
async deleteBot(token, botId) {
|
|
@@ -641,7 +641,7 @@ class TeamsDevPortalClient {
|
|
|
641
641
|
await retryHandler_1.RetryHandler.Retry(() => requester.delete(`/api/botframework/${botId}`));
|
|
642
642
|
}
|
|
643
643
|
catch (e) {
|
|
644
|
-
this.handleBotFrameworkError(e,
|
|
644
|
+
this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.DELETE_BOT);
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
async createBotRegistration(token, registration, checkExistence = true) {
|
|
@@ -660,7 +660,7 @@ class TeamsDevPortalClient {
|
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
catch (e) {
|
|
663
|
-
this.handleBotFrameworkError(e,
|
|
663
|
+
this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.CREATE_BOT);
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
async updateMessageEndpoint(token, botId, endpoint) {
|
|
@@ -683,7 +683,7 @@ class TeamsDevPortalClient {
|
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
catch (e) {
|
|
686
|
-
this.handleBotFrameworkError(e,
|
|
686
|
+
this.handleBotFrameworkError(e, constants_3.APP_STUDIO_API_NAMES.UPDATE_BOT);
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
689
|
async createAADApp(token, displayName, signInAudience = signInAudience_1.SignInAudience.AzureADMyOrg, serviceManagementReference, isMicrosoftUser = false) {
|
|
@@ -701,13 +701,13 @@ class TeamsDevPortalClient {
|
|
|
701
701
|
}
|
|
702
702
|
catch (err) {
|
|
703
703
|
if (axios_1.default.isAxiosError(err) && err.response) {
|
|
704
|
-
if (err.response.data?.error?.code ===
|
|
704
|
+
if (err.response.data?.error?.code === constants_2.aadErrorCode.signInAudienceNotAllowedAsPerAppPolicy) {
|
|
705
705
|
throw new signInAudienceNotAllowedError_1.SignInAudienceNotAllowedError("TeamsDevPortalClient", err.response.data.error?.message, isMicrosoftUser);
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
throw this.wrapException(err,
|
|
708
|
+
throw this.wrapException(err, constants_3.APP_STUDIO_API_NAMES.CREATE_AAD_APP);
|
|
709
709
|
}
|
|
710
|
-
throw this.wrapException(new Error(`Failed to create AAD app: ${displayName}`),
|
|
710
|
+
throw this.wrapException(new Error(`Failed to create AAD app: ${displayName}`), constants_3.APP_STUDIO_API_NAMES.CREATE_AAD_APP);
|
|
711
711
|
}
|
|
712
712
|
handleBotFrameworkError(e, apiName) {
|
|
713
713
|
if (e.response?.status === commonConstant_1.HttpStatusCode.NOTFOUND) {
|
|
@@ -723,7 +723,7 @@ class TeamsDevPortalClient {
|
|
|
723
723
|
throw new errors_2.BotFrameworkConflictResultError();
|
|
724
724
|
}
|
|
725
725
|
else {
|
|
726
|
-
e.teamsfxUrlName =
|
|
726
|
+
e.teamsfxUrlName = constants_4.TeamsFxUrlNames[apiName];
|
|
727
727
|
throw this.wrapException(e, apiName);
|
|
728
728
|
}
|
|
729
729
|
}
|
|
@@ -735,7 +735,7 @@ class TeamsDevPortalClient {
|
|
|
735
735
|
}
|
|
736
736
|
wrapException(e, apiName, name = (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.name.common"), potentialReason = (0, localizeUtils_1.getDefaultString)("error.appstudio.apiFailed.reason.common"), disPlayMessage, isUserError = false, helpLink) {
|
|
737
737
|
e.name = name;
|
|
738
|
-
const correlationId = e.response?.headers?.[
|
|
738
|
+
const correlationId = e.response?.headers?.[constants_3.Constants.CORRELATION_ID];
|
|
739
739
|
let extraData = `${potentialReason} ${e.response?.data ? `data: ${JSON.stringify(e.response.data)}` : ""}`;
|
|
740
740
|
// add status code in extra data if the message does not have it.
|
|
741
741
|
if (!e.message?.toLowerCase().includes("status code") && e.response?.status) {
|
|
@@ -944,5 +944,9 @@ tslib_1.__decorate([
|
|
|
944
944
|
tslib_1.__metadata("design:paramtypes", [String, String, String, String, Object]),
|
|
945
945
|
tslib_1.__metadata("design:returntype", Promise)
|
|
946
946
|
], TeamsDevPortalClient.prototype, "createAADApp", null);
|
|
947
|
+
exports.teamsDevPortalClientDeps = {
|
|
948
|
+
sendTelemetryEvent: telemetry_1.sendTelemetryEvent,
|
|
949
|
+
sendTelemetryErrorEvent: telemetry_1.sendTelemetryErrorEvent,
|
|
950
|
+
};
|
|
947
951
|
exports.teamsDevPortalClient = new TeamsDevPortalClient();
|
|
948
952
|
//# sourceMappingURL=teamsDevPortalClient.js.map
|