@microsoft/teamsfx-core 2.0.4-alpha.24f52e6c7.0 → 2.0.4-alpha.2fdf2b99b.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/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/dotnetChecker.js +2 -2
- 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 -2
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +7 -7
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/deps-checker/internal/vxTestAppChecker.js +1 -1
- package/build/common/deps-checker/internal/vxTestAppChecker.js.map +1 -1
- package/build/common/deps-checker/util/cpUtils.js +1 -1
- package/build/common/deps-checker/util/cpUtils.js.map +1 -1
- package/build/common/deps-checker/util/fileHelper.d.ts.map +1 -1
- package/build/common/deps-checker/util/fileHelper.js +2 -0
- package/build/common/deps-checker/util/fileHelper.js.map +1 -1
- package/build/common/jsonUtils.d.ts.map +1 -1
- package/build/common/jsonUtils.js +2 -0
- package/build/common/jsonUtils.js.map +1 -1
- package/build/common/local/localCertificateManager.js +1 -1
- package/build/common/local/localCertificateManager.js.map +1 -1
- package/build/common/projectSettingsHelper.js.map +1 -1
- package/build/common/samples-config-v3.json +213 -21
- package/build/common/samples.d.ts +9 -4
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +21 -26
- package/build/common/samples.js.map +1 -1
- package/build/common/spec-parser/adaptiveCardGenerator.d.ts +5 -0
- package/build/common/spec-parser/adaptiveCardGenerator.d.ts.map +1 -0
- package/build/common/spec-parser/adaptiveCardGenerator.js +113 -0
- package/build/common/spec-parser/adaptiveCardGenerator.js.map +1 -0
- package/build/common/spec-parser/constants.d.ts +15 -1
- package/build/common/spec-parser/constants.d.ts.map +1 -1
- package/build/common/spec-parser/constants.js +15 -1
- package/build/common/spec-parser/constants.js.map +1 -1
- package/build/common/spec-parser/interfaces.d.ts +61 -18
- package/build/common/spec-parser/interfaces.d.ts.map +1 -1
- package/build/common/spec-parser/interfaces.js +13 -10
- package/build/common/spec-parser/interfaces.js.map +1 -1
- package/build/common/spec-parser/manifestUpdater.d.ts +5 -0
- package/build/common/spec-parser/manifestUpdater.d.ts.map +1 -0
- package/build/common/spec-parser/manifestUpdater.js +77 -0
- package/build/common/spec-parser/manifestUpdater.js.map +1 -0
- package/build/common/spec-parser/specFilter.d.ts +3 -0
- package/build/common/spec-parser/specFilter.d.ts.map +1 -0
- package/build/common/spec-parser/specFilter.js +47 -0
- package/build/common/spec-parser/specFilter.js.map +1 -0
- package/build/common/spec-parser/specParser.d.ts +9 -4
- package/build/common/spec-parser/specParser.d.ts.map +1 -1
- package/build/common/spec-parser/specParser.js +106 -15
- package/build/common/spec-parser/specParser.js.map +1 -1
- package/build/common/spec-parser/utils.d.ts +7 -0
- package/build/common/spec-parser/utils.d.ts.map +1 -0
- package/build/common/spec-parser/utils.js +79 -0
- package/build/common/spec-parser/utils.js.map +1 -0
- package/build/common/telemetry.d.ts +0 -1
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +2 -11
- package/build/common/telemetry.js.map +1 -1
- package/build/common/tools.js +2 -2
- package/build/common/tools.js.map +1 -1
- package/build/common/utils.d.ts +1 -0
- package/build/common/utils.d.ts.map +1 -1
- package/build/common/utils.js +5 -1
- package/build/common/utils.js.map +1 -1
- package/build/component/configManager/constant.d.ts.map +1 -1
- package/build/component/configManager/constant.js +4 -2
- package/build/component/configManager/constant.js.map +1 -1
- package/build/component/configManager/interface.d.ts +2 -0
- package/build/component/configManager/interface.d.ts.map +1 -1
- package/build/component/configManager/interface.js +2 -3
- package/build/component/configManager/interface.js.map +1 -1
- package/build/component/configManager/lifecycle.d.ts.map +1 -1
- package/build/component/configManager/lifecycle.js +7 -4
- package/build/component/configManager/lifecycle.js.map +1 -1
- package/build/component/configManager/parser.d.ts.map +1 -1
- package/build/component/configManager/parser.js +18 -9
- package/build/component/configManager/parser.js.map +1 -1
- package/build/component/configManager/validator.d.ts +0 -3
- package/build/component/configManager/validator.d.ts.map +1 -1
- package/build/component/configManager/validator.js +3 -10
- package/build/component/configManager/validator.js.map +1 -1
- package/build/component/constants.d.ts +5 -0
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +5 -0
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts +5 -3
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +28 -7
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/coordinator/summary.d.ts.map +1 -1
- package/build/component/coordinator/summary.js +2 -0
- package/build/component/coordinator/summary.js.map +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts +1 -1
- package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
- package/build/component/developerPortalScaffoldUtils.js +4 -4
- package/build/component/developerPortalScaffoldUtils.js.map +1 -1
- package/build/component/driver/aad/create.js.map +1 -1
- package/build/component/driver/aad/error/aadManifestError.js +1 -1
- package/build/component/driver/aad/error/aadManifestError.js.map +1 -1
- package/build/component/driver/aad/interface/AADApplication.js +1 -1
- package/build/component/driver/aad/interface/AADApplication.js.map +1 -1
- package/build/component/driver/aad/interface/AADManifest.js +1 -1
- package/build/component/driver/aad/interface/AADManifest.js.map +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.js +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.js.map +1 -1
- package/build/component/driver/aad/utility/buildAadManifest.js +1 -1
- package/build/component/driver/aad/utility/buildAadManifest.js.map +1 -1
- package/build/component/driver/arm/deployImpl.d.ts +2 -1
- package/build/component/driver/arm/deployImpl.d.ts.map +1 -1
- package/build/component/driver/arm/deployImpl.js +7 -0
- package/build/component/driver/arm/deployImpl.js.map +1 -1
- package/build/component/driver/arm/util/bicepChecker.d.ts.map +1 -1
- package/build/component/driver/arm/util/bicepChecker.js +2 -0
- package/build/component/driver/arm/util/bicepChecker.js.map +1 -1
- package/build/component/driver/arm/validator.d.ts.map +1 -1
- package/build/component/driver/arm/validator.js +3 -3
- package/build/component/driver/arm/validator.js.map +1 -1
- package/build/component/driver/botFramework/createOrUpdateBot.d.ts.map +1 -1
- package/build/component/driver/botFramework/createOrUpdateBot.js +2 -0
- package/build/component/driver/botFramework/createOrUpdateBot.js.map +1 -1
- package/build/component/driver/deploy/spfx/deployDriver.js +2 -2
- package/build/component/driver/deploy/spfx/deployDriver.js.map +1 -1
- package/build/component/driver/devTool/installDriver.js +3 -3
- package/build/component/driver/devTool/installDriver.js.map +1 -1
- package/build/component/driver/interface/buildAndDeployArgs.d.ts +3 -6
- package/build/component/driver/interface/buildAndDeployArgs.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +2 -0
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/driver/teamsApp/appStudio.d.ts.map +1 -1
- package/build/component/driver/teamsApp/appStudio.js +6 -6
- package/build/component/driver/teamsApp/appStudio.js.map +1 -1
- package/build/component/driver/teamsApp/clients/authSvcClient.d.ts +1 -1
- package/build/component/driver/teamsApp/clients/authSvcClient.js +1 -1
- package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
- package/build/component/driver/teamsApp/configure.js +3 -13
- package/build/component/driver/teamsApp/configure.js.map +1 -1
- package/build/component/driver/teamsApp/constants.d.ts +0 -1
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +1 -2
- package/build/component/driver/teamsApp/constants.js.map +1 -1
- package/build/component/driver/teamsApp/create.js +1 -1
- package/build/component/driver/teamsApp/create.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +26 -0
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js +1 -1
- package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/results.d.ts.map +1 -1
- package/build/component/driver/teamsApp/results.js +2 -0
- package/build/component/driver/teamsApp/results.js.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +6 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.js +17 -2
- package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.d.ts +0 -1
- package/build/component/driver/teamsApp/utils/utils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/utils.js +1 -10
- package/build/component/driver/teamsApp/utils/utils.js.map +1 -1
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +7 -1
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validateAppPackage.js +23 -12
- package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
- package/build/component/error/componentError.d.ts +0 -4
- package/build/component/error/componentError.d.ts.map +1 -1
- package/build/component/error/componentError.js +2 -11
- package/build/component/error/componentError.js.map +1 -1
- package/build/component/feature/collaboration.d.ts.map +1 -1
- package/build/component/feature/collaboration.js +25 -15
- package/build/component/feature/collaboration.js.map +1 -1
- package/build/component/feature/createAuthFiles.js.map +1 -1
- package/build/component/generator/copilotPlugin/generator.d.ts +8 -0
- package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -0
- package/build/component/generator/copilotPlugin/generator.js +117 -0
- package/build/component/generator/copilotPlugin/generator.js.map +1 -0
- package/build/component/generator/copilotPlugin/helper.d.ts +28 -0
- package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -0
- package/build/component/generator/copilotPlugin/helper.js +213 -0
- package/build/component/generator/copilotPlugin/helper.js.map +1 -0
- package/build/component/generator/generator.js +2 -2
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +4 -3
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/officeAddin/config/projectProperties.d.ts.map +1 -1
- package/build/component/generator/officeAddin/config/projectProperties.js +2 -0
- package/build/component/generator/officeAddin/config/projectProperties.js.map +1 -1
- package/build/component/generator/officeAddin/config/projectsJsonData.d.ts.map +1 -1
- package/build/component/generator/officeAddin/config/projectsJsonData.js +2 -0
- package/build/component/generator/officeAddin/config/projectsJsonData.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +3 -1
- package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts.map +1 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.js +8 -10
- package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.d.ts +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.d.ts.map +1 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.js +7 -7
- package/build/component/generator/spfx/depsChecker/yoChecker.js.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.js +16 -14
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
- package/build/component/generator/spfx/utils/constants.d.ts +1 -0
- package/build/component/generator/spfx/utils/constants.d.ts.map +1 -1
- package/build/component/generator/spfx/utils/constants.js +2 -0
- package/build/component/generator/spfx/utils/constants.js.map +1 -1
- package/build/component/generator/utils.d.ts +10 -2
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +4 -3
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/migrate.d.ts.map +1 -1
- package/build/component/migrate.js +2 -0
- package/build/component/migrate.js.map +1 -1
- package/build/component/telemetry.d.ts.map +1 -1
- package/build/component/telemetry.js +3 -6
- package/build/component/telemetry.js.map +1 -1
- package/build/component/utils/azureResourceOperation.js +2 -2
- package/build/component/utils/azureResourceOperation.js.map +1 -1
- package/build/component/utils/charsetUtils.d.ts.map +1 -1
- package/build/component/utils/charsetUtils.js +2 -0
- package/build/component/utils/charsetUtils.js.map +1 -1
- package/build/component/utils/common.d.ts.map +1 -1
- package/build/component/utils/common.js +1 -2
- package/build/component/utils/common.js.map +1 -1
- package/build/component/utils/depsChecker/common.d.ts.map +1 -1
- package/build/component/utils/depsChecker/common.js +1 -1
- package/build/component/utils/depsChecker/common.js.map +1 -1
- package/build/component/utils/depsChecker/cpUtils.d.ts.map +1 -1
- package/build/component/utils/depsChecker/cpUtils.js +1 -1
- package/build/component/utils/depsChecker/cpUtils.js.map +1 -1
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +2 -0
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/metadataUtil.d.ts.map +1 -1
- package/build/component/utils/metadataUtil.js +7 -6
- package/build/component/utils/metadataUtil.js.map +1 -1
- package/build/component/utils/pathUtils.d.ts.map +1 -1
- package/build/component/utils/pathUtils.js +2 -0
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils/teamsFxTelemetryReporter.d.ts.map +1 -1
- package/build/component/utils/teamsFxTelemetryReporter.js +3 -6
- package/build/component/utils/teamsFxTelemetryReporter.js.map +1 -1
- package/build/component/utils.js.map +1 -1
- package/build/core/FxCore.d.ts +6 -2
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +9 -0
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCoreImplementV3.d.ts +6 -2
- package/build/core/FxCoreImplementV3.d.ts.map +1 -1
- package/build/core/FxCoreImplementV3.js +50 -1
- package/build/core/FxCoreImplementV3.js.map +1 -1
- package/build/core/collaborator.d.ts +1 -1
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/collaborator.js +18 -12
- package/build/core/collaborator.js.map +1 -1
- package/build/core/error.d.ts +6 -0
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +23 -1
- package/build/core/error.js.map +1 -1
- package/build/core/index.js +1 -0
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/errorHandler.d.ts +2 -0
- package/build/core/middleware/errorHandler.d.ts.map +1 -1
- package/build/core/middleware/errorHandler.js +16 -25
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts +3 -1
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +1 -2
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/projectVersionChecker.js +5 -5
- package/build/core/middleware/projectVersionChecker.js.map +1 -1
- package/build/core/middleware/utils/appYmlGenerator.js.map +1 -1
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.d.ts.map +1 -1
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.js +3 -2
- package/build/core/middleware/utils/debug/appLocalYmlGenerator.js.map +1 -1
- package/build/core/middleware/utils/debug/debugV3MigrationUtils.js.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.d.ts.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +30 -15
- package/build/core/middleware/utils/debug/taskMigrator.js.map +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.js +1 -1
- package/build/core/middleware/utils/v3MigrationUtils.js.map +1 -1
- package/build/error/arm.d.ts.map +1 -1
- package/build/error/arm.js +2 -0
- package/build/error/arm.js.map +1 -1
- package/build/error/azure.d.ts.map +1 -1
- package/build/error/azure.js +2 -0
- package/build/error/azure.js.map +1 -1
- package/build/error/common.d.ts +12 -0
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +150 -18
- package/build/error/common.js.map +1 -1
- package/build/error/deploy.d.ts.map +1 -1
- package/build/error/deploy.js +10 -8
- package/build/error/deploy.js.map +1 -1
- package/build/error/index.d.ts.map +1 -1
- package/build/error/index.js +2 -0
- package/build/error/index.js.map +1 -1
- package/build/error/m365.d.ts.map +1 -1
- package/build/error/m365.js +2 -0
- package/build/error/m365.js.map +1 -1
- package/build/error/script.d.ts.map +1 -1
- package/build/error/script.js +2 -0
- package/build/error/script.js.map +1 -1
- package/build/error/upgrade.d.ts.map +1 -1
- package/build/error/upgrade.js +2 -0
- package/build/error/upgrade.js.map +1 -1
- package/build/error/yml.d.ts.map +1 -1
- package/build/error/yml.js +2 -0
- package/build/error/yml.js.map +1 -1
- package/build/failpoint/index.d.ts.map +1 -1
- package/build/failpoint/index.js +2 -0
- package/build/failpoint/index.js.map +1 -1
- package/build/failpoint/marker.d.ts.map +1 -1
- package/build/failpoint/marker.js +2 -0
- package/build/failpoint/marker.js.map +1 -1
- package/build/failpoint/runtime.d.ts.map +1 -1
- package/build/failpoint/runtime.js +3 -4
- package/build/failpoint/runtime.js.map +1 -1
- package/build/index.d.ts +2 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3 -1
- package/build/index.js.map +1 -1
- package/build/question/create.d.ts +4 -12
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +160 -75
- package/build/question/create.js.map +1 -1
- package/build/question/index.d.ts +2 -0
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +8 -0
- package/build/question/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 +14 -1
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +2 -0
- package/build/question/questionNames.js.map +1 -1
- package/build/question/util.d.ts.map +1 -1
- package/build/question/util.js +2 -2
- package/build/question/util.js.map +1 -1
- package/build/ui/validationUtils.d.ts +12 -0
- package/build/ui/validationUtils.d.ts.map +1 -0
- package/build/ui/validationUtils.js +84 -0
- package/build/ui/validationUtils.js.map +1 -0
- package/build/ui/visitor.d.ts +5 -1
- package/build/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +212 -83
- package/build/ui/visitor.js.map +1 -1
- package/package.json +14 -7
- package/resource/package.nls.json +26 -5
- package/resource/yaml-schema/1.1.1/yaml.schema.json +1468 -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/ts.zip +0 -0
- package/build/component/configManager/diagnostic.d.ts +0 -9
- package/build/component/configManager/diagnostic.d.ts.map +0 -1
- package/build/component/configManager/diagnostic.js +0 -47
- package/build/component/configManager/diagnostic.js.map +0 -1
|
@@ -1,31 +1,51 @@
|
|
|
1
1
|
{
|
|
2
|
-
"baseUrl": "https://github.com/OfficeDev/TeamsFx-Samples/tree/v2.1.0/",
|
|
3
2
|
"samples": [
|
|
4
3
|
{
|
|
5
4
|
"id": "hello-world-tab-with-backend",
|
|
5
|
+
"onboardDate": "2021-11-30",
|
|
6
6
|
"title": "Tab App with Azure Backend",
|
|
7
7
|
"shortDescription": "A Hello World app of Microsoft Teams Tab app which has a backend service",
|
|
8
8
|
"fullDescription": "This is a Hello World app of Microsoft Teams Tab app which accomplishes very simple function like single-sign on. You can run this app locally or deploy it to Microsoft Azure. This app has a Tab frontend and a backend service using Azure Function.",
|
|
9
|
-
"
|
|
9
|
+
"types": [
|
|
10
|
+
"Tab"
|
|
11
|
+
],
|
|
12
|
+
"tags": [
|
|
13
|
+
"Tab",
|
|
14
|
+
"TS",
|
|
15
|
+
"Azure function"
|
|
16
|
+
],
|
|
10
17
|
"time": "5min to run",
|
|
11
18
|
"configuration": "Ready for debug",
|
|
19
|
+
"gifPath": "images/helloWorld-tab-with-backend.gif",
|
|
12
20
|
"suggested": true
|
|
13
21
|
},
|
|
14
22
|
{
|
|
15
23
|
"id": "graph-toolkit-contact-exporter",
|
|
24
|
+
"onboardDate": "2021-11-30",
|
|
16
25
|
"title": "Contact Exporter using Graph Toolkit",
|
|
17
26
|
"shortDescription": "Contact Exporter app of Microsoft Teams Tab app.",
|
|
18
27
|
"fullDescription": "Contact Exporter app can export your teams contact info to Excel files, and it is using Microsoft Graph Toolkit as UI component. This app only has a Tab frontend.",
|
|
19
|
-
"
|
|
28
|
+
"types": [
|
|
29
|
+
"Tab"
|
|
30
|
+
],
|
|
31
|
+
"tags": [
|
|
32
|
+
"Tab",
|
|
33
|
+
"JS"
|
|
34
|
+
],
|
|
20
35
|
"time": "5min to run",
|
|
21
36
|
"configuration": "Ready for debug",
|
|
37
|
+
"gifPath": "images/overview.gif",
|
|
22
38
|
"suggested": true
|
|
23
39
|
},
|
|
24
40
|
{
|
|
25
41
|
"id": "bot-sso",
|
|
42
|
+
"onboardDate": "2021-10-19",
|
|
26
43
|
"title": "Bot App with SSO Enabled",
|
|
27
44
|
"shortDescription": "A Hello World app of Microsoft Teams Bot app with SSO",
|
|
28
45
|
"fullDescription": "This is an extended Hello World app of Microsoft Teams Bot app demonstrating how to integrate with Bot Framework SDK, TeamsFx SDK, and Graph SDK to implement SSO (Single Sign-On) feature that retrieves profile photos for currently signed-in users.",
|
|
46
|
+
"types": [
|
|
47
|
+
"Bot"
|
|
48
|
+
],
|
|
29
49
|
"tags": [
|
|
30
50
|
"Bot",
|
|
31
51
|
"TS",
|
|
@@ -34,13 +54,18 @@
|
|
|
34
54
|
],
|
|
35
55
|
"time": "5min to run",
|
|
36
56
|
"configuration": "Ready for debug",
|
|
57
|
+
"gifPath": "images/preview.gif",
|
|
37
58
|
"suggested": false
|
|
38
59
|
},
|
|
39
60
|
{
|
|
40
61
|
"id": "todo-list-SPFx",
|
|
62
|
+
"onboardDate": "2021-05-06",
|
|
41
63
|
"title": "Todo List with SPFx",
|
|
42
64
|
"shortDescription": "Todo List app hosting on SharePoint",
|
|
43
65
|
"fullDescription": "Todo List with SPFx is a Todo List for individuals to manage his/her personal to-do items. This app is hosted on Sharepoint. There is no requirements to deploy Azure resources.",
|
|
66
|
+
"types": [
|
|
67
|
+
"Tab"
|
|
68
|
+
],
|
|
44
69
|
"tags": [
|
|
45
70
|
"SharePoint",
|
|
46
71
|
"SPFx",
|
|
@@ -48,185 +73,352 @@
|
|
|
48
73
|
],
|
|
49
74
|
"time": "1hr to run",
|
|
50
75
|
"configuration": "Manual configurations required",
|
|
76
|
+
"gifPath": "images/ToDoListCRUD.gif",
|
|
51
77
|
"suggested": false
|
|
52
78
|
},
|
|
53
79
|
{
|
|
54
80
|
"id": "hello-world-in-meeting",
|
|
81
|
+
"onboardDate": "2022-04-08",
|
|
55
82
|
"title": "My First Meeting App",
|
|
56
83
|
"shortDescription": "A template for apps using only in the context of a Teams meeting",
|
|
57
84
|
"fullDescription": "My first meeting app is a simple template to show how to build a tab app that can be installed and used in a meeting, in all of meeting lifecycles: pre-meeting chat, in-meeting, post-meeting chat. This sample contains tab as side panel, meeting chat tab, or meeting details tab. The template also includes simple codes to fetch meeting info and user profile.",
|
|
58
|
-
"
|
|
85
|
+
"types": [
|
|
86
|
+
"Tab"
|
|
87
|
+
],
|
|
88
|
+
"tags": [
|
|
89
|
+
"Meeting extension",
|
|
90
|
+
"JS"
|
|
91
|
+
],
|
|
59
92
|
"time": "30min to run",
|
|
60
93
|
"configuration": "Ready for debug",
|
|
94
|
+
"gifPath": "images/preview.png",
|
|
61
95
|
"suggested": false
|
|
62
96
|
},
|
|
63
97
|
{
|
|
64
98
|
"id": "todo-list-with-Azure-backend-M365",
|
|
99
|
+
"onboardDate": "2021-11-09",
|
|
65
100
|
"title": "Todo List (Works in Teams, Outlook and Office)",
|
|
66
101
|
"shortDescription": "Todo List app that runs across Microsoft 365 including Teams, Outlook and Office",
|
|
67
102
|
"fullDescription": "Todo List app helps to manage personal to do items and also runs across Microsoft 365, including Teams, Outlook and Office. The frontend is a React app and the backend is an Azure Function. You can optionally deploy and host the app in Azure.",
|
|
68
|
-
"
|
|
103
|
+
"types": [
|
|
104
|
+
"Tab"
|
|
105
|
+
],
|
|
106
|
+
"tags": [
|
|
107
|
+
"React",
|
|
108
|
+
"Azure function",
|
|
109
|
+
"JS",
|
|
110
|
+
"Outlook",
|
|
111
|
+
"Office"
|
|
112
|
+
],
|
|
69
113
|
"time": "30min to run",
|
|
70
114
|
"configuration": "Manual configurations required",
|
|
115
|
+
"gifPath": "images/preview.gif",
|
|
71
116
|
"suggested": false
|
|
72
117
|
},
|
|
73
118
|
{
|
|
74
119
|
"id": "NPM-search-connector-M365",
|
|
120
|
+
"onboardDate": "2021-11-09",
|
|
75
121
|
"title": "NPM Search Connector",
|
|
76
122
|
"shortDescription": "Search and Share an NPM Package in Teams and Outlook (Web)",
|
|
77
123
|
"fullDescription": "NPM Search Connector is a Message Extension that runs across Microsoft 365 including Teams and Outlook (Web). It allows you to perform a quick search for a NPM package and insert package details into conversations for easy sharing. The front end is built with Adaptive Cards and the backend is an Azure Bot Service.",
|
|
78
|
-
"
|
|
124
|
+
"types": [
|
|
125
|
+
"Message extension"
|
|
126
|
+
],
|
|
127
|
+
"tags": [
|
|
128
|
+
"Message extension",
|
|
129
|
+
"JS",
|
|
130
|
+
"Outlook"
|
|
131
|
+
],
|
|
79
132
|
"time": "45min to run",
|
|
80
133
|
"configuration": "Manual configurations required",
|
|
134
|
+
"gifPath": "images/preview.gif",
|
|
81
135
|
"suggested": false
|
|
82
136
|
},
|
|
83
137
|
{
|
|
84
138
|
"id": "bot-proactive-messaging-teamsfx",
|
|
139
|
+
"onboardDate": "2022-08-01",
|
|
85
140
|
"title": "Proactive Messaging",
|
|
86
141
|
"shortDescription": "Demonstrates how to send proactive messages to users.",
|
|
87
142
|
"fullDescription": "This is a sample which shows how to save user's conversation reference information to send proactive reminder message using Bots.",
|
|
143
|
+
"types": [
|
|
144
|
+
"Bot"
|
|
145
|
+
],
|
|
88
146
|
"tags": [
|
|
89
147
|
"Bot",
|
|
90
148
|
"JS"
|
|
91
149
|
],
|
|
92
150
|
"time": "5min to run",
|
|
93
151
|
"configuration": "Ready for debug",
|
|
152
|
+
"gifPath": "images/send-proactive-messages.gif",
|
|
94
153
|
"suggested": false,
|
|
95
|
-
"
|
|
154
|
+
"downloadUrl": "https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-proactive-messaging-teamsfx"
|
|
96
155
|
},
|
|
97
156
|
{
|
|
98
157
|
"id": "adaptive-card-notification",
|
|
158
|
+
"onboardDate": "2022-03-28",
|
|
99
159
|
"title": "Adaptive Card Notification",
|
|
100
160
|
"shortDescription": "Demonstrates how to send adaptive card notification to users.",
|
|
101
161
|
"fullDescription": "This is a sample which shows how to send notification with different adaptive cards using Bots.",
|
|
162
|
+
"types": [
|
|
163
|
+
"Bot"
|
|
164
|
+
],
|
|
102
165
|
"tags": [
|
|
103
|
-
"Bot",
|
|
166
|
+
"Bot",
|
|
167
|
+
"TS"
|
|
104
168
|
],
|
|
105
169
|
"time": "5min to run",
|
|
106
170
|
"configuration": "Ready for debug",
|
|
171
|
+
"gifPath": "images/adaptivecard.gif",
|
|
107
172
|
"suggested": false
|
|
108
173
|
},
|
|
109
174
|
{
|
|
110
175
|
"id": "incoming-webhook-notification",
|
|
176
|
+
"onboardDate": "2022-03-31",
|
|
111
177
|
"title": "Incoming Webhook Notification",
|
|
112
178
|
"shortDescription": "Demonstrates how to send notification via Incoming Webhook.",
|
|
113
179
|
"fullDescription": "This is a sample which shows how to send notification via Incoming Webhook in Microsoft Teams channels.",
|
|
180
|
+
"types": [
|
|
181
|
+
"Bot"
|
|
182
|
+
],
|
|
114
183
|
"tags": [
|
|
115
|
-
"Bot",
|
|
184
|
+
"Bot",
|
|
185
|
+
"TS"
|
|
116
186
|
],
|
|
117
187
|
"time": "5min to run",
|
|
118
188
|
"configuration": "Manual configurations required",
|
|
189
|
+
"gifPath": "images/incoming-webhook.gif",
|
|
119
190
|
"suggested": false
|
|
120
191
|
},
|
|
121
192
|
{
|
|
122
193
|
"id": "stocks-update-notification-bot",
|
|
194
|
+
"onboardDate": "2022-08-08",
|
|
123
195
|
"title": "Stocks Update",
|
|
124
196
|
"shortDescription": "Keep up to date with the latest stock price in Microsoft Teams.",
|
|
125
197
|
"fullDescription": "This sample demonstrates how a Notification Bot can be used to call an external API using API Key authentication, on a pre-defined schedule of every 30 seconds, to obtain the latest stock information and render the results as an Adaptive Card.",
|
|
126
|
-
"
|
|
198
|
+
"types": [
|
|
199
|
+
"Bot"
|
|
200
|
+
],
|
|
201
|
+
"tags": [
|
|
202
|
+
"Bot",
|
|
203
|
+
"TS",
|
|
204
|
+
"Azure function",
|
|
205
|
+
"API Key"
|
|
206
|
+
],
|
|
127
207
|
"time": "5min to run",
|
|
128
208
|
"configuration": "Ready for debug",
|
|
209
|
+
"gifPath": "images/app.gif",
|
|
129
210
|
"suggested": false
|
|
130
211
|
},
|
|
131
212
|
{
|
|
132
213
|
"id": "query-org-user-with-message-extension-sso",
|
|
214
|
+
"onboardDate": "2022-09-20",
|
|
133
215
|
"title": "Org User Search Connector",
|
|
134
216
|
"shortDescription": "Query Org User with Message Extension SSO",
|
|
135
217
|
"fullDescription": "This is a simple search-based message extension app demonstrating how to integrate with Bot Framework SDK, TeamsFx SDK and Microsoft Graph API to implement a feature that queries organization's user with single sign on (SSO) capability.",
|
|
136
|
-
"
|
|
218
|
+
"types": [
|
|
219
|
+
"Message extension"
|
|
220
|
+
],
|
|
221
|
+
"tags": [
|
|
222
|
+
"Message extension",
|
|
223
|
+
"SSO"
|
|
224
|
+
],
|
|
137
225
|
"time": "5min to run",
|
|
138
226
|
"configuration": "Ready for debug",
|
|
227
|
+
"gifPath": "images/preview.gif",
|
|
139
228
|
"suggested": false
|
|
140
229
|
},
|
|
141
230
|
{
|
|
142
231
|
"id": "team-central-dashboard",
|
|
232
|
+
"onboardDate": "2022-09-20",
|
|
143
233
|
"title": "Team Central Dashboard",
|
|
144
234
|
"shortDescription": "A single dashboard displaying data chats and content from Microsoft Graph to accelerate team collaboration and personal productivity.",
|
|
145
235
|
"fullDescription": "A single dashboard displaying data chats and content from Microsoft Graph to accelerate team collaboration and personal productivity.",
|
|
146
|
-
"
|
|
236
|
+
"types": [
|
|
237
|
+
"Tab"
|
|
238
|
+
],
|
|
239
|
+
"tags": [
|
|
240
|
+
"Tab",
|
|
241
|
+
"TS",
|
|
242
|
+
"Azure function",
|
|
243
|
+
"SSO"
|
|
244
|
+
],
|
|
147
245
|
"time": "5min to run",
|
|
148
246
|
"configuration": "Ready for debug",
|
|
247
|
+
"gifPath": "images/team-central-dashboard.gif",
|
|
149
248
|
"suggested": false
|
|
150
249
|
},
|
|
151
250
|
{
|
|
152
251
|
"id": "graph-connector-app",
|
|
252
|
+
"onboardDate": "2022-04-18",
|
|
153
253
|
"title": "Graph Connector App",
|
|
154
254
|
"shortDescription": "Showcases how to build custom Graph Connector",
|
|
155
255
|
"fullDescription": "This sample app showcases how to build custom Graph Connector with Azure Functions and query data using Microsoft Graph Client and TeamsFx SDK.",
|
|
156
|
-
"
|
|
256
|
+
"types": [
|
|
257
|
+
"Tab"
|
|
258
|
+
],
|
|
259
|
+
"tags": [
|
|
260
|
+
"Tab",
|
|
261
|
+
"Azure function",
|
|
262
|
+
"TS",
|
|
263
|
+
"SSO"
|
|
264
|
+
],
|
|
157
265
|
"time": "10min to run",
|
|
158
266
|
"configuration": "Manual configurations required",
|
|
267
|
+
"gifPath": "images/graph-connector-app-demo.gif",
|
|
159
268
|
"suggested": false
|
|
160
269
|
},
|
|
161
270
|
{
|
|
162
271
|
"id": "graph-toolkit-one-productivity-hub",
|
|
272
|
+
"onboardDate": "2022-07-27",
|
|
163
273
|
"title": "One Productivity Hub using Graph Toolkit",
|
|
164
274
|
"shortDescription": "Microsoft Teams tab with SSO to view calendar events, to-do tasks and file folders.",
|
|
165
275
|
"fullDescription": "One Productivity Hub sample shows you how to build a tab for viewing your calendar events, to-do tasks and files by using Microsoft Graph Toolkit components and TeamsFx provider. You can run this app locally or deploy it to Microsoft Azure.",
|
|
166
|
-
"
|
|
276
|
+
"types": [
|
|
277
|
+
"Tab"
|
|
278
|
+
],
|
|
279
|
+
"tags": [
|
|
280
|
+
"Tab",
|
|
281
|
+
"JS",
|
|
282
|
+
"SSO"
|
|
283
|
+
],
|
|
167
284
|
"time": "5min to run",
|
|
168
285
|
"configuration": "Ready for debug",
|
|
286
|
+
"gifPath": "images/oneproductivityhub-overview.gif",
|
|
169
287
|
"suggested": false
|
|
170
288
|
},
|
|
171
289
|
{
|
|
172
290
|
"id": "todo-list-with-Azure-backend",
|
|
291
|
+
"onboardDate": "2021-05-06",
|
|
173
292
|
"title": "Todo List with backend on Azure",
|
|
174
293
|
"shortDescription": "Todo List app with Azure Function backend and Azure SQL database",
|
|
175
294
|
"fullDescription": "Todo List provides an easy way to manage to-do items in Teams Client. This app helps enabling task collaboration and management for your team. The frontend is a React app and the backend is hosted on Azure. You will need an Azure subscription to run the app.",
|
|
176
|
-
"
|
|
295
|
+
"types": [
|
|
296
|
+
"Tab"
|
|
297
|
+
],
|
|
298
|
+
"tags": [
|
|
299
|
+
"React",
|
|
300
|
+
"Azure function",
|
|
301
|
+
"Azure SQL",
|
|
302
|
+
"JS",
|
|
303
|
+
"CI/CD"
|
|
304
|
+
],
|
|
177
305
|
"time": "30min to run",
|
|
178
306
|
"configuration": "Manual configurations required",
|
|
307
|
+
"gifPath": "images/ToDoListCRUD.gif",
|
|
179
308
|
"suggested": false
|
|
180
309
|
},
|
|
181
310
|
{
|
|
182
311
|
"id": "share-now",
|
|
312
|
+
"onboardDate": "2021-05-17",
|
|
183
313
|
"title": "Share Now",
|
|
184
314
|
"shortDescription": "Knowledge sharing app contains a Tab and a Message extension",
|
|
185
315
|
"fullDescription": "Share Now promotes the exchange of information between colleagues by enabling users to share content within the Teams environment. Users engage the app to share items of interest, discover new shared content, set preferences, and bookmark favorites for later reading.",
|
|
186
|
-
"
|
|
316
|
+
"types": [
|
|
317
|
+
"Tab",
|
|
318
|
+
"Message extension"
|
|
319
|
+
],
|
|
320
|
+
"tags": [
|
|
321
|
+
"Tab",
|
|
322
|
+
"Message extension",
|
|
323
|
+
"TS"
|
|
324
|
+
],
|
|
187
325
|
"time": "30min to run",
|
|
188
326
|
"configuration": "Ready for debug",
|
|
327
|
+
"gifPath": "images/shareNow.gif",
|
|
189
328
|
"suggested": false
|
|
190
329
|
},
|
|
191
330
|
{
|
|
192
331
|
"id": "hello-world-teams-tab-and-outlook-add-in",
|
|
332
|
+
"onboardDate": "2023-03-02",
|
|
193
333
|
"title": "Hello World Teams Tab and Outlook add-in",
|
|
194
334
|
"shortDescription": "A hello world project that contains both Teams Tab and Outlook add-in capability",
|
|
195
335
|
"fullDescription": "A hello world project that contains both Teams Tab and Outlook add-in capability",
|
|
196
|
-
"
|
|
336
|
+
"types": [
|
|
337
|
+
"Tab"
|
|
338
|
+
],
|
|
339
|
+
"tags": [
|
|
340
|
+
"Tab",
|
|
341
|
+
"Outlook add-in"
|
|
342
|
+
],
|
|
197
343
|
"time": "5min to run",
|
|
198
344
|
"configuration": "Ready for debug",
|
|
345
|
+
"gifPath": "images/preview.png",
|
|
199
346
|
"suggested": false
|
|
200
347
|
},
|
|
201
348
|
{
|
|
202
349
|
"id": "outlook-add-in-set-signature",
|
|
350
|
+
"onboardDate": "2023-05-04",
|
|
203
351
|
"title": "Set signature using Outlook add-in",
|
|
204
352
|
"shortDescription": "An Outlook add-in that sets signature for the user",
|
|
205
353
|
"fullDescription": "An Outlook add-in that sets signature for the user",
|
|
206
|
-
"
|
|
354
|
+
"types": [
|
|
355
|
+
"Tab"
|
|
356
|
+
],
|
|
357
|
+
"tags": [
|
|
358
|
+
"Outlook add-in"
|
|
359
|
+
],
|
|
207
360
|
"time": "5min to run",
|
|
208
361
|
"configuration": "Ready for debug",
|
|
362
|
+
"gifPath": "assets/outlook-set-signature-overview.png",
|
|
209
363
|
"suggested": false,
|
|
210
|
-
"
|
|
364
|
+
"downloadUrl": "https://github.com/OfficeDev/Office-Add-in-samples/tree/main/Samples/outlook-set-signature"
|
|
211
365
|
},
|
|
212
366
|
{
|
|
213
367
|
"id": "developer-assist-dashboard",
|
|
368
|
+
"onboardDate": "2023-03-07",
|
|
214
369
|
"title": "Developer Assist Dashboard",
|
|
215
370
|
"shortDescription": "A dashboard that integrates with Azure DevOps, Github issues and Planner tasks that accelerates developer productivity.",
|
|
216
371
|
"fullDescription": "A dashboard that integrates with Azure DevOps, Github issues and Planner tasks that accelerates developer productivity.",
|
|
217
|
-
"
|
|
372
|
+
"types": [
|
|
373
|
+
"Tab"
|
|
374
|
+
],
|
|
375
|
+
"tags": [
|
|
376
|
+
"Outlook",
|
|
377
|
+
"Office",
|
|
378
|
+
"TS"
|
|
379
|
+
],
|
|
218
380
|
"time": "15min to run",
|
|
219
381
|
"configuration": "Manual configurations required",
|
|
382
|
+
"gifPath": "images/preview.png",
|
|
220
383
|
"suggested": false
|
|
221
384
|
},
|
|
222
385
|
{
|
|
223
386
|
"id": "live-share-dice-roller",
|
|
387
|
+
"onboardDate": "2023-04-27",
|
|
224
388
|
"title": "Dice Roller in meeting",
|
|
225
389
|
"shortDescription": "This sample introduces Microsoft Live Share and Azure Fluid Relay to enable a shared experience between multiple users.",
|
|
226
390
|
"fullDescription": "Microsoft Live Share is a collaboration tool that enables you to share your experience with others in real time. Azure Fluid Relay is a part of this service. The diceroller example is a simple app that allows multiple users to roll a dice and see the results. This sample is a great way to get started with Live Share and Fluid.",
|
|
227
|
-
"
|
|
391
|
+
"types": [
|
|
392
|
+
"Tab"
|
|
393
|
+
],
|
|
394
|
+
"tags": [
|
|
395
|
+
"Live Share",
|
|
396
|
+
"JS",
|
|
397
|
+
"ReactJS",
|
|
398
|
+
"Teams-JS 2.0"
|
|
399
|
+
],
|
|
228
400
|
"time": "5 min to run",
|
|
229
401
|
"configuration": "Manual configurations required",
|
|
402
|
+
"gifPath": "images/preview.gif",
|
|
403
|
+
"suggested": false
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"id": "teams-chef-bot",
|
|
407
|
+
"onboardDate": "2023-06-25",
|
|
408
|
+
"title": "Teams Chef Bot",
|
|
409
|
+
"shortDescription": "Demonstrates how to build bot with Microsoft Teams AI Library.",
|
|
410
|
+
"fullDescription": "This is a conversational bot for Microsoft Teams that impersonates a Chef to help you you cook Teams apps.",
|
|
411
|
+
"types": [
|
|
412
|
+
"Bot"
|
|
413
|
+
],
|
|
414
|
+
"tags": [
|
|
415
|
+
"Bot",
|
|
416
|
+
"TS",
|
|
417
|
+
"GPT"
|
|
418
|
+
],
|
|
419
|
+
"time": "5min to run",
|
|
420
|
+
"configuration": "Manual configurations required",
|
|
421
|
+
"gifPath": "assets/preview.gif",
|
|
230
422
|
"suggested": false
|
|
231
423
|
}
|
|
232
424
|
]
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const SampleConfigTag = "v2.3.0";
|
|
2
|
+
export interface SampleConfig {
|
|
2
3
|
id: string;
|
|
4
|
+
onboardDate: Date;
|
|
3
5
|
title: string;
|
|
4
6
|
shortDescription: string;
|
|
5
7
|
fullDescription: string;
|
|
8
|
+
types: string[];
|
|
6
9
|
tags: string[];
|
|
7
10
|
time: string;
|
|
8
11
|
configuration: string;
|
|
9
12
|
suggested: boolean;
|
|
10
|
-
|
|
13
|
+
gifUrl: string;
|
|
14
|
+
maximumToolkitVersion?: string;
|
|
15
|
+
downloadUrl?: string;
|
|
11
16
|
}
|
|
12
17
|
interface SampleCollection {
|
|
13
|
-
samples:
|
|
18
|
+
samples: SampleConfig[];
|
|
14
19
|
}
|
|
15
20
|
declare class SampleProvider {
|
|
16
21
|
private sampleCollection;
|
|
17
|
-
private
|
|
22
|
+
private samplesConfig;
|
|
18
23
|
fetchSampleConfig(): Promise<void>;
|
|
19
24
|
get SampleCollection(): SampleCollection;
|
|
20
25
|
private getBaseSampleUrl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"samples.d.ts","sourceRoot":"","sources":["../../src/common/samples.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"samples.d.ts","sourceRoot":"","sources":["../../src/common/samples.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,eAAe,WAAW,CAAC;AAExC,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,IAAI,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IAExB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IAEf,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,gBAAgB;IACxB,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,cAAM,cAAc;IAClB,OAAO,CAAC,gBAAgB,CAA+B;IACvD,OAAO,CAAC,aAAa,CAA0D;IAElE,iBAAiB;IAoB9B,IAAW,gBAAgB,IAAI,gBAAgB,CAkC9C;IAED,OAAO,CAAC,gBAAgB;CAUzB;AAED,eAAO,MAAM,cAAc,gBAAuB,CAAC"}
|
package/build/common/samples.js
CHANGED
|
@@ -1,47 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
2
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sampleProvider = void 0;
|
|
5
|
+
exports.sampleProvider = exports.SampleConfigTag = void 0;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
5
7
|
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
6
8
|
const utils_1 = require("../component/generator/utils");
|
|
7
9
|
const samples_config_v3_json_1 = tslib_1.__importDefault(require("./samples-config-v3.json"));
|
|
8
10
|
const featureFlags_1 = require("./featureFlags");
|
|
9
11
|
const packageJson = require("../../package.json");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
configInfo.tree = "v2.2.0";
|
|
15
|
-
configInfo.file = ".config/samples-config-v3.json";
|
|
12
|
+
const SampleConfigOwner = "OfficeDev";
|
|
13
|
+
const SampleConfigRepo = "TeamsFx-Samples";
|
|
14
|
+
const SampleConfigFile = ".config/samples-config-v3.json";
|
|
15
|
+
exports.SampleConfigTag = "v2.3.0";
|
|
16
16
|
class SampleProvider {
|
|
17
17
|
async fetchSampleConfig() {
|
|
18
|
-
this.sampleConfigs = undefined;
|
|
19
18
|
try {
|
|
20
19
|
const fileResponse = await utils_1.sendRequestWithTimeout(async () => {
|
|
21
|
-
return await axios_1.default.get(`https://raw.githubusercontent.com/${
|
|
20
|
+
return await axios_1.default.get(`https://raw.githubusercontent.com/${SampleConfigOwner}/${SampleConfigRepo}/${exports.SampleConfigTag}/${SampleConfigFile}`, { responseType: "json" });
|
|
22
21
|
}, 1000, 3);
|
|
23
22
|
if (fileResponse && fileResponse.data) {
|
|
24
|
-
this.
|
|
23
|
+
this.samplesConfig = fileResponse.data;
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
catch (e) {
|
|
28
|
-
this.
|
|
27
|
+
this.samplesConfig = undefined;
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
get SampleCollection() {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
suggested: sample.suggested,
|
|
43
|
-
url: sample.url ? sample.url : `${this.getBaseSampleUrl()}${sample.id}`,
|
|
44
|
-
};
|
|
31
|
+
const samples = (this.samplesConfig ? this.samplesConfig.samples : samples_config_v3_json_1.default.samples).map((sample) => {
|
|
32
|
+
const isExternal = sample["downloadUrl"] ? true : false;
|
|
33
|
+
let gifUrl = `https://raw.githubusercontent.com/${SampleConfigOwner}/${SampleConfigRepo}/${exports.SampleConfigTag}/${sample["id"]}/${sample["gifPath"]}`;
|
|
34
|
+
if (isExternal) {
|
|
35
|
+
const info = utils_1.parseSampleUrl(sample["downloadUrl"]);
|
|
36
|
+
gifUrl = `https://raw.githubusercontent.com/${info.owner}/${info.repository}/${info.ref}/${info.dir}/${sample["gifPath"]}`;
|
|
37
|
+
}
|
|
38
|
+
return Object.assign(Object.assign({}, sample), { onboardDate: new Date(sample["onboardDate"]), downloadUrl: isExternal
|
|
39
|
+
? sample["downloadUrl"]
|
|
40
|
+
: `${this.getBaseSampleUrl()}${sample["id"]}`, gifUrl: gifUrl });
|
|
45
41
|
});
|
|
46
42
|
// remove video filter sample app if feature flag is disabled.
|
|
47
43
|
if (!featureFlags_1.isVideoFilterEnabled()) {
|
|
@@ -57,7 +53,6 @@ class SampleProvider {
|
|
|
57
53
|
return this.sampleCollection;
|
|
58
54
|
}
|
|
59
55
|
getBaseSampleUrl() {
|
|
60
|
-
var _a;
|
|
61
56
|
const version = packageJson.version;
|
|
62
57
|
if (version.includes("alpha")) {
|
|
63
58
|
return "https://github.com/OfficeDev/TeamsFx-Samples/tree/dev/";
|
|
@@ -65,7 +60,7 @@ class SampleProvider {
|
|
|
65
60
|
if (version.includes("rc")) {
|
|
66
61
|
return "https://github.com/OfficeDev/TeamsFx-Samples/tree/v3/";
|
|
67
62
|
}
|
|
68
|
-
return
|
|
63
|
+
return `https://github.com/${SampleConfigOwner}/${SampleConfigRepo}/tree/${exports.SampleConfigTag}/`;
|
|
69
64
|
}
|
|
70
65
|
}
|
|
71
66
|
exports.sampleProvider = new SampleProvider();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"samples.js","sourceRoot":"","sources":["../../src/common/samples.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"samples.js","sourceRoot":"","sources":["../../src/common/samples.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { OpenAPIV3 } from "openapi-types";
|
|
2
|
+
import { AdaptiveCard, ArrayElement, TextBlockElement } from "./interfaces";
|
|
3
|
+
export declare function generateAdaptiveCard(operationItem: OpenAPIV3.OperationObject): AdaptiveCard;
|
|
4
|
+
export declare function generateCardFromResponse(schema: OpenAPIV3.SchemaObject, name: string, parentArrayName?: string): Array<TextBlockElement | ArrayElement>;
|
|
5
|
+
//# sourceMappingURL=adaptiveCardGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adaptiveCardGenerator.d.ts","sourceRoot":"","sources":["../../../src/common/spec-parser/adaptiveCardGenerator.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAG5E,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,SAAS,CAAC,eAAe,GAAG,YAAY,CAsC3F;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,SAAS,CAAC,YAAY,EAC9B,IAAI,EAAE,MAAM,EACZ,eAAe,SAAK,GACnB,KAAK,CAAC,gBAAgB,GAAG,YAAY,CAAC,CA8ExC"}
|