@microsoft/teamsfx-core 2.0.4-alpha.dc097d3df.0 → 2.0.4-alpha.f35a1d927.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/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/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +2 -1
- package/build/common/featureFlags.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/samples-config-v3.json +2 -8
- package/build/common/samples.d.ts +1 -2
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +15 -6
- package/build/common/samples.js.map +1 -1
- package/build/common/spec-parser/constants.d.ts +12 -0
- package/build/common/spec-parser/constants.d.ts.map +1 -0
- package/build/common/spec-parser/constants.js +18 -0
- package/build/common/spec-parser/constants.js.map +1 -0
- package/build/common/spec-parser/interfaces.d.ts +75 -0
- package/build/common/spec-parser/interfaces.d.ts.map +1 -0
- package/build/common/spec-parser/interfaces.js +40 -0
- package/build/common/spec-parser/interfaces.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 +49 -0
- package/build/common/spec-parser/specFilter.js.map +1 -0
- package/build/common/spec-parser/specParser.d.ts +40 -0
- package/build/common/spec-parser/specParser.d.ts.map +1 -0
- package/build/common/spec-parser/specParser.js +178 -0
- package/build/common/spec-parser/specParser.js.map +1 -0
- package/build/common/spec-parser/specParserError.d.ts +6 -0
- package/build/common/spec-parser/specParserError.d.ts.map +1 -0
- package/build/common/spec-parser/specParserError.js +13 -0
- package/build/common/spec-parser/specParserError.js.map +1 -0
- package/build/common/tools.js +1 -1
- 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.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 +5 -3
- 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 +8 -8
- 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 +2 -9
- package/build/component/configManager/validator.js.map +1 -1
- package/build/component/constants.d.ts +0 -23
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +1 -24
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +10 -0
- 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/driver/aad/error/aadManifestError.d.ts +10 -3
- package/build/component/driver/aad/error/aadManifestError.d.ts.map +1 -1
- package/build/component/driver/aad/error/aadManifestError.js +39 -5
- 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.d.ts.map +1 -1
- package/build/component/driver/aad/utility/aadManifestHelper.js +14 -19
- package/build/component/driver/aad/utility/aadManifestHelper.js.map +1 -1
- package/build/component/driver/aad/utility/buildAadManifest.d.ts.map +1 -1
- package/build/component/driver/aad/utility/buildAadManifest.js +12 -2
- package/build/component/driver/aad/utility/buildAadManifest.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/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/clients/authSvcClient.d.ts +1 -1
- package/build/component/driver/teamsApp/clients/authSvcClient.js +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 +5 -0
- package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/driver/teamsApp/utils/ManifestUtils.js +15 -0
- 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 +6 -0
- 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 +4 -5
- 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/generator/copilotPlugin/generator.d.ts +5 -0
- package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -0
- package/build/component/generator/copilotPlugin/generator.js +63 -0
- package/build/component/generator/copilotPlugin/generator.js.map +1 -0
- package/build/component/generator/copilotPlugin/helper.d.ts +26 -0
- package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -0
- package/build/component/generator/copilotPlugin/helper.js +100 -0
- package/build/component/generator/copilotPlugin/helper.js.map +1 -0
- package/build/component/generator/generator.d.ts.map +1 -1
- package/build/component/generator/generator.js +5 -4
- package/build/component/generator/generator.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/generator.d.ts.map +1 -1
- package/build/component/generator/officeAddin/generator.js +8 -8
- package/build/component/generator/officeAddin/generator.js.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
- package/build/component/generator/officeAddin/helperMethods.js +2 -0
- 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 +2 -4
- package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +1 -1
- package/build/component/generator/spfx/error.d.ts +2 -0
- package/build/component/generator/spfx/error.d.ts.map +1 -1
- package/build/component/generator/spfx/error.js +21 -1
- package/build/component/generator/spfx/error.js.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts +4 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
- package/build/component/generator/spfx/spfxGenerator.js +132 -108
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
- package/build/component/generator/spfx/utils/constants.d.ts.map +1 -1
- package/build/component/generator/spfx/utils/constants.js +1 -0
- package/build/component/generator/spfx/utils/constants.js.map +1 -1
- package/build/component/generator/spfx/utils/telemetryEvents.d.ts +2 -1
- package/build/component/generator/spfx/utils/telemetryEvents.d.ts.map +1 -1
- package/build/component/generator/spfx/utils/telemetryEvents.js +1 -0
- package/build/component/generator/spfx/utils/telemetryEvents.js.map +1 -1
- package/build/component/generator/utils.d.ts +0 -1
- package/build/component/generator/utils.d.ts.map +1 -1
- package/build/component/generator/utils.js +1 -6
- 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/registerService.d.ts +0 -1
- package/build/component/registerService.d.ts.map +1 -1
- package/build/component/registerService.js +0 -1
- package/build/component/registerService.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.js +1 -1
- 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 +4 -4
- 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/core/FxCore.d.ts +5 -1
- 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 +5 -1
- package/build/core/FxCoreImplementV3.d.ts.map +1 -1
- package/build/core/FxCoreImplementV3.js +37 -0
- package/build/core/FxCoreImplementV3.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/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 +3 -0
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +24 -7
- 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 +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -1
- package/build/index.js.map +1 -1
- package/build/question/create.d.ts +4 -13
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +144 -107
- 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 +0 -1
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +2 -1
- package/build/question/questionNames.js.map +1 -1
- package/build/question/util.d.ts +1 -1
- package/build/question/util.d.ts.map +1 -1
- package/build/question/util.js +7 -5
- package/build/question/util.js.map +1 -1
- package/build/ui/visitor.d.ts.map +1 -1
- package/build/ui/visitor.js +24 -3
- package/build/ui/visitor.js.map +1 -1
- package/package.json +10 -7
- package/resource/package.nls.cs.json +30 -56
- package/resource/package.nls.de.json +30 -56
- package/resource/package.nls.es.json +30 -56
- package/resource/package.nls.fr.json +30 -56
- package/resource/package.nls.it.json +30 -56
- package/resource/package.nls.ja.json +30 -56
- package/resource/package.nls.json +10 -3
- package/resource/package.nls.ko.json +30 -56
- package/resource/package.nls.pl.json +30 -56
- package/resource/package.nls.pt-BR.json +31 -57
- package/resource/package.nls.ru.json +34 -60
- package/resource/package.nls.tr.json +31 -57
- package/resource/package.nls.zh-Hans.json +31 -57
- package/resource/package.nls.zh-Hant.json +30 -56
- package/resource/package.nls.zh-cn.json +232 -712
- package/resource/package.nls.zh-tw.json +230 -710
- 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
- package/build/component/generator/officeAddin/question.d.ts +0 -10
- package/build/component/generator/officeAddin/question.d.ts.map +0 -1
- package/build/component/generator/officeAddin/question.js +0 -118
- package/build/component/generator/officeAddin/question.js.map +0 -1
- package/templates/plugins/resource/apim/README.md +0 -92
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
3
2
|
// Copyright (c) Microsoft Corporation.
|
|
4
3
|
// Licensed under the MIT license.
|
|
5
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
5
|
exports.cpUtils = void 0;
|
|
7
6
|
const tslib_1 = require("tslib");
|
|
7
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
8
8
|
const cp = tslib_1.__importStar(require("child_process"));
|
|
9
9
|
const os = tslib_1.__importStar(require("os"));
|
|
10
10
|
var cpUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cpUtils.js","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/cpUtils.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"cpUtils.js","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/cpUtils.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,oDAAoD;AACpD,0DAAoC;AACpC,+CAAyB;AAMzB,IAAiB,OAAO,CAsIvB;AAtID,WAAiB,OAAO;IACf,KAAK,UAAU,cAAc,CAClC,gBAAoC,EACpC,MAA+B,EAC/B,OAAoC,EACpC,OAAe,EACf,GAAG,IAAc;QAEjB,MAAM,MAAM,GAAmB,MAA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EAAE,MAAM,CAAC,CACpE;SACF,CAAC,CAAC;IACL,CAAC;IAPe,mBAAW,cAO1B,CAAA;AACH,CAAC,EAtIgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAsIvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileHelper.d.ts","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/fileHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fileHelper.d.ts","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/fileHelper.ts"],"names":[],"mappings":"AAWA,wBAAsB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAYvE;AAED,wBAAsB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAavF;AAED,wBAAsB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAK5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileHelper.js","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/fileHelper.ts"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"fileHelper.js","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/fileHelper.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC;;GAEG;AACH,qDAA+B;AAC/B,mDAAyD;AACzD,iDAA+C;AAC/C,4CAAgD;AAEzC,KAAK,UAAU,aAAa,CAAC,YAAoB;IACtD,IAAI;QACF,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAC1C,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE;YACzB,MAAM,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;SAC/B;KACF;IAAC,OAAO,KAAc,EAAE;QACvB,MAAM,SAAS,GAAG,KAA0B,CAAC;QAC7C,IAAI,SAAS,CAAC,IAAI,KAAK,QAAQ,EAAE;YAC/B,MAAM,KAAK,CAAC;SACb;KACF;AACH,CAAC;AAZD,sCAYC;AAEM,KAAK,UAAU,aAAa,CAAC,MAAc,EAAE,YAAoB;IACtE,MAAM,aAAa,CAAC,YAAY,CAAC,CAAC;IAClC,sCAAsC;IACtC,IAAI,MAAM,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE;QACrC,MAAM,IAAI,4BAAgB,CAAC,kBAAQ,CAAC,sBAAsB,EAAE,EAAE,4BAAiB,CAAC,CAAC;KAClF;IAED,OAAO,MAAM,EAAE,CAAC,aAAa,CAC3B,MAAM,EACN,YAAY;IACZ,mHAAmH;IACnH,UAAU,CACX,CAAC;AACJ,CAAC;AAbD,sCAaC;AAEM,KAAK,UAAU,MAAM,CAAC,OAAe,EAAE,OAAe;IAC3D,IAAI,MAAM,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;QAChC,MAAM,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;KAC1B;IACD,MAAM,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACpC,CAAC;AALD,wBAKC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featureFlags.d.ts","sourceRoot":"","sources":["../../src/common/featureFlags.ts"],"names":[],"mappings":"AAKA,wBAAgB,oBAAoB,CAAC,eAAe,EAAE,MAAM,EAAE,YAAY,UAAQ,GAAG,OAAO,CAO3F;AAED;;GAEG;AACH,wBAAgB,6BAA6B,IAAI,IAAI,CAMpD;AAED,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C;AAED,wBAAgB,WAAW,IAAI,OAAO,CAErC;AAED,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAED,wBAAgB,mBAAmB,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"featureFlags.d.ts","sourceRoot":"","sources":["../../src/common/featureFlags.ts"],"names":[],"mappings":"AAKA,wBAAgB,oBAAoB,CAAC,eAAe,EAAE,MAAM,EAAE,YAAY,UAAQ,GAAG,OAAO,CAO3F;AAED;;GAEG;AACH,wBAAgB,6BAA6B,IAAI,IAAI,CAMpD;AAED,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C;AAED,wBAAgB,WAAW,IAAI,OAAO,CAErC;AAED,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAED,wBAAgB,mBAAmB,IAAI,OAAO,CAG7C;AAED,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD"}
|
|
@@ -39,7 +39,8 @@ function isVideoFilterEnabled() {
|
|
|
39
39
|
}
|
|
40
40
|
exports.isVideoFilterEnabled = isVideoFilterEnabled;
|
|
41
41
|
function isImportSPFxEnabled() {
|
|
42
|
-
return
|
|
42
|
+
return true;
|
|
43
|
+
//return isFeatureFlagEnabled(FeatureFlagName.ImportSPFx, false);
|
|
43
44
|
}
|
|
44
45
|
exports.isImportSPFxEnabled = isImportSPFxEnabled;
|
|
45
46
|
function isCopilotPluginEnabled() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featureFlags.js","sourceRoot":"","sources":["../../src/common/featureFlags.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,2CAA8C;AAE9C,kFAAkF;AAClF,SAAgB,oBAAoB,CAAC,eAAuB,EAAE,YAAY,GAAG,KAAK;IAChF,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IAC1C,IAAI,IAAI,KAAK,SAAS,EAAE;QACtB,OAAO,YAAY,CAAC,CAAC,2EAA2E;KACjG;SAAM;QACL,OAAO,IAAI,KAAK,GAAG,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,CAAC,6EAA6E;KACpI;AACH,CAAC;AAPD,oDAOC;AAED;;GAEG;AACH,SAAgB,6BAA6B;IAC3C,OAAO,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,"file":"jsonUtils.d.ts","sourceRoot":"","sources":["../../src/common/jsonUtils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAO,OAAO,EAAM,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAIlE,cAAM,SAAS;IACb,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC;IAY1C,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAenE,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC;CAczD;AAED,eAAO,MAAM,SAAS,WAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonUtils.js","sourceRoot":"","sources":["../../src/common/jsonUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jsonUtils.js","sourceRoot":"","sources":["../../src/common/jsonUtils.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAAkE;AAClE,4CAAoG;AACpG,gEAA0B;AAE1B,MAAM,SAAS;IACb,SAAS,CAAC,OAAe;QACvB,IAAI;YACF,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAChC,OAAO,gBAAE,CAAC,GAAG,CAAC,CAAC;SAChB;QAAC,OAAO,CAAM,EAAE;YACf,IAAI,CAAC,CAAC,IAAI,KAAK,aAAa,EAAE;gBAC5B,MAAM,KAAK,GAAG,IAAI,wBAAe,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;gBAC9C,OAAO,iBAAG,CAAC,KAAK,CAAC,CAAC;aACnB;YACD,OAAO,iBAAG,CAAC,IAAI,uBAAc,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;SAC7C;IACH,CAAC;IACD,KAAK,CAAC,YAAY,CAAC,QAAgB;;QACjC,IA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Y,QAAA,SAAS,GAAG,IAAI,SAAS,EAAE,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"baseUrl": "https://github.com/OfficeDev/TeamsFx-Samples/tree/v2.1.0/",
|
|
3
|
-
"defaultPackageLink": "https://github.com/OfficeDev/TeamsFx-Samples/archive/refs/tags/v2.1.0.zip",
|
|
4
|
-
"baseFolderName": "TeamsFx-Samples-2.1.0",
|
|
5
3
|
"samples": [
|
|
6
4
|
{
|
|
7
5
|
"id": "hello-world-tab-with-backend",
|
|
@@ -94,9 +92,7 @@
|
|
|
94
92
|
"time": "5min to run",
|
|
95
93
|
"configuration": "Ready for debug",
|
|
96
94
|
"suggested": false,
|
|
97
|
-
"url": "https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-proactive-messaging-teamsfx"
|
|
98
|
-
"packageLink": "https://github.com/OfficeDev/Microsoft-Teams-Samples/archive/refs/heads/main.zip",
|
|
99
|
-
"relativePath": "Microsoft-Teams-Samples-main/samples/bot-proactive-messaging-teamsfx"
|
|
95
|
+
"url": "https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-proactive-messaging-teamsfx"
|
|
100
96
|
},
|
|
101
97
|
{
|
|
102
98
|
"id": "adaptive-card-notification",
|
|
@@ -211,9 +207,7 @@
|
|
|
211
207
|
"time": "5min to run",
|
|
212
208
|
"configuration": "Ready for debug",
|
|
213
209
|
"suggested": false,
|
|
214
|
-
"url": "https://github.com/OfficeDev/Office-Add-in-samples/tree/main/Samples/outlook-set-signature"
|
|
215
|
-
"packageLink": "https://github.com/OfficeDev/Office-Add-in-samples/archive/refs/heads/main.zip",
|
|
216
|
-
"relativePath": "Office-Add-in-samples-main/Samples/outlook-set-signature"
|
|
210
|
+
"url": "https://github.com/OfficeDev/Office-Add-in-samples/tree/main/Samples/outlook-set-signature"
|
|
217
211
|
},
|
|
218
212
|
{
|
|
219
213
|
"id": "developer-assist-dashboard",
|
|
@@ -6,10 +6,8 @@ export interface SampleInfo {
|
|
|
6
6
|
tags: string[];
|
|
7
7
|
time: string;
|
|
8
8
|
configuration: string;
|
|
9
|
-
link: string;
|
|
10
9
|
suggested: boolean;
|
|
11
10
|
url: string;
|
|
12
|
-
relativePath?: string;
|
|
13
11
|
}
|
|
14
12
|
interface SampleCollection {
|
|
15
13
|
samples: SampleInfo[];
|
|
@@ -19,6 +17,7 @@ declare class SampleProvider {
|
|
|
19
17
|
private sampleConfigs;
|
|
20
18
|
fetchSampleConfig(): Promise<void>;
|
|
21
19
|
get SampleCollection(): SampleCollection;
|
|
20
|
+
private getBaseSampleUrl;
|
|
22
21
|
}
|
|
23
22
|
export declare const sampleProvider: SampleProvider;
|
|
24
23
|
export {};
|
|
@@ -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":"AAgBA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,UAAU,gBAAgB;IACxB,OAAO,EAAE,UAAU,EAAE,CAAC;CACvB;AAED,cAAM,cAAc;IAClB,OAAO,CAAC,gBAAgB,CAA+B;IACvD,OAAO,CAAC,aAAa,CAAM;IAEd,iBAAiB;IAqB9B,IAAW,gBAAgB,IAAI,gBAAgB,CA6B9C;IAED,OAAO,CAAC,gBAAgB;CAUzB;AAED,eAAO,MAAM,cAAc,gBAAuB,CAAC"}
|
package/build/common/samples.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
2
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
5
|
exports.sampleProvider = void 0;
|
|
4
6
|
const tslib_1 = require("tslib");
|
|
@@ -6,6 +8,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");
|
|
11
|
+
const packageJson = require("../../package.json");
|
|
9
12
|
class configInfo {
|
|
10
13
|
}
|
|
11
14
|
configInfo.owner = "OfficeDev";
|
|
@@ -30,7 +33,6 @@ class SampleProvider {
|
|
|
30
33
|
get SampleCollection() {
|
|
31
34
|
var _a;
|
|
32
35
|
const samples = ((_a = this.sampleConfigs) !== null && _a !== void 0 ? _a : samples_config_v3_json_1.default).samples.map((sample) => {
|
|
33
|
-
var _a, _b, _c;
|
|
34
36
|
return {
|
|
35
37
|
id: sample.id,
|
|
36
38
|
title: sample.title,
|
|
@@ -39,12 +41,8 @@ class SampleProvider {
|
|
|
39
41
|
tags: sample.tags,
|
|
40
42
|
time: sample.time,
|
|
41
43
|
configuration: sample.configuration,
|
|
42
|
-
link: (_a = sample.packageLink) !== null && _a !== void 0 ? _a : ((_b = this.sampleConfigs) !== null && _b !== void 0 ? _b : samples_config_v3_json_1.default).defaultPackageLink,
|
|
43
44
|
suggested: sample.suggested,
|
|
44
|
-
url: sample.
|
|
45
|
-
? sample.url
|
|
46
|
-
: `${((_c = this.sampleConfigs) !== null && _c !== void 0 ? _c : samples_config_v3_json_1.default).baseUrl}${sample.id}`,
|
|
47
|
-
relativePath: sample.relativePath,
|
|
45
|
+
url: sample.url ? sample.url : `${this.getBaseSampleUrl()}${sample.id}`,
|
|
48
46
|
};
|
|
49
47
|
});
|
|
50
48
|
// remove video filter sample app if feature flag is disabled.
|
|
@@ -60,6 +58,17 @@ class SampleProvider {
|
|
|
60
58
|
};
|
|
61
59
|
return this.sampleCollection;
|
|
62
60
|
}
|
|
61
|
+
getBaseSampleUrl() {
|
|
62
|
+
var _a;
|
|
63
|
+
const version = packageJson.version;
|
|
64
|
+
if (version.includes("alpha")) {
|
|
65
|
+
return "https://github.com/OfficeDev/TeamsFx-Samples/tree/dev/";
|
|
66
|
+
}
|
|
67
|
+
if (version.includes("rc")) {
|
|
68
|
+
return "https://github.com/OfficeDev/TeamsFx-Samples/tree/v3/";
|
|
69
|
+
}
|
|
70
|
+
return ((_a = this.sampleConfigs) !== null && _a !== void 0 ? _a : samples_config_v3_json_1.default).baseUrl;
|
|
71
|
+
}
|
|
63
72
|
}
|
|
64
73
|
exports.sampleProvider = new SampleProvider();
|
|
65
74
|
//# sourceMappingURL=samples.js.map
|
|
@@ -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":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,0DAA0B;AAC1B,wDAAsE;AACtE,8FAAsD;AACtD,iDAAsD;AACtD,MAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAElD,MAAM,UAAU;;AACE,gBAAK,GAAG,WAAW,CAAC;AACpB,eAAI,GAAG,iBAAiB,CAAC;AACzB,eAAI,GAAG,QAAQ,CAAC;AAChB,eAAI,GAAG,gCAAgC,CAAC;AAmB1D,MAAM,cAAc;IAIX,KAAK,CAAC,iBAAiB;QAC5B,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;QAC/B,IAAI;YACF,MAAM,YAAY,GAAG,MAAM,8BAAsB,CAC/C,KAAK,IAAI,EAAE;gBACT,OAAO,MAAM,eAAK,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AE,CAAC,MAAM,CAAC,EAAE,KAAK,mBAAmB,CAAC,CAAC;YACpF,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;gBAChB,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;aAC1B;SACF;QAED,IAAI,CAAC,gBAAgB,GAAG;YACtB,OAAO;SACR,CAAC;QAEF,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IAEO,gBAAgB;;QACtB,MAAM,OAAO,GAAW,WAAW,CAAC,OAAO,CAAC;QAC5C,IAAI,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;YAC7B,OAAO,wDAAwD,CAAC;SACjE;QACD,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,uDAAuD,CAAC;SAChE;QACD,OAAO,CAAC,MAAA,IAAI,CAAC,aAAa,mCAAI,gCAAc,CAAC,CAAC,OAAO,CAAC;IACxD,CAAC;CACF;AAEY,QAAA,cAAc,GAAG,IAAI,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class ConstantString {
|
|
2
|
+
static readonly CancelledMessage = "Operation cancelled";
|
|
3
|
+
static readonly SpecVersionNotSupported = "OpenAPI version lower than 3.0.0 is not supported";
|
|
4
|
+
static readonly NoServerInformation = "No server information found in the OpenAPI specification file";
|
|
5
|
+
static readonly MultipleServerInformation = "Multiple server information found in the OpenAPI specification file";
|
|
6
|
+
static readonly RemoteRefNotSupported = "Remote reference is not supported: %s";
|
|
7
|
+
static readonly MissingOperationId = "Missing operationId: %s";
|
|
8
|
+
static readonly NoSupportedApi = "No supported API found in the OpenAPI specification file";
|
|
9
|
+
static readonly GetMethod = "get";
|
|
10
|
+
static readonly PostMethod = "post";
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/common/spec-parser/constants.ts"],"names":[],"mappings":"AAIA,qBAAa,cAAc;IACzB,MAAM,CAAC,QAAQ,CAAC,gBAAgB,yBAAyB;IACzD,MAAM,CAAC,QAAQ,CAAC,uBAAuB,uDAAuD;IAC9F,MAAM,CAAC,QAAQ,CAAC,mBAAmB,mEAC+B;IAClE,MAAM,CAAC,QAAQ,CAAC,yBAAyB,yEAC+B;IACxE,MAAM,CAAC,QAAQ,CAAC,qBAAqB,2CAA2C;IAChF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,6BAA6B;IAC/D,MAAM,CAAC,QAAQ,CAAC,cAAc,8DAA8D;IAC5F,MAAM,CAAC,QAAQ,CAAC,SAAS,SAAS;IAClC,MAAM,CAAC,QAAQ,CAAC,UAAU,UAAU;CACrC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT license.
|
|
3
|
+
"use strict";
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ConstantString = void 0;
|
|
6
|
+
class ConstantString {
|
|
7
|
+
}
|
|
8
|
+
exports.ConstantString = ConstantString;
|
|
9
|
+
ConstantString.CancelledMessage = "Operation cancelled";
|
|
10
|
+
ConstantString.SpecVersionNotSupported = "OpenAPI version lower than 3.0.0 is not supported";
|
|
11
|
+
ConstantString.NoServerInformation = "No server information found in the OpenAPI specification file";
|
|
12
|
+
ConstantString.MultipleServerInformation = "Multiple server information found in the OpenAPI specification file";
|
|
13
|
+
ConstantString.RemoteRefNotSupported = "Remote reference is not supported: %s";
|
|
14
|
+
ConstantString.MissingOperationId = "Missing operationId: %s";
|
|
15
|
+
ConstantString.NoSupportedApi = "No supported API found in the OpenAPI specification file";
|
|
16
|
+
ConstantString.GetMethod = "get";
|
|
17
|
+
ConstantString.PostMethod = "post";
|
|
18
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/common/spec-parser/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,MAAa,cAAc;;AAA3B,wCAYC;AAXiB,+BAAgB,GAAG,qBAAqB,CAAC;AACzC,sCAAuB,GAAG,mDAAmD,CAAC;AAC9E,kCAAmB,GACjC,+DAA+D,CAAC;AAClD,wCAAyB,GACvC,qEAAqE,CAAC;AACxD,oCAAqB,GAAG,uCAAuC,CAAC;AAChE,iCAAkB,GAAG,yBAAyB,CAAC;AAC/C,6BAAc,GAAG,0DAA0D,CAAC;AAC5E,wBAAS,GAAG,KAAK,CAAC;AAClB,yBAAU,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An interface that represents the result of validating an OpenAPI specification file.
|
|
3
|
+
*/
|
|
4
|
+
export interface ValidateResult {
|
|
5
|
+
/**
|
|
6
|
+
* The validation status of the OpenAPI specification file.
|
|
7
|
+
*/
|
|
8
|
+
status: ValidationStatus;
|
|
9
|
+
/**
|
|
10
|
+
* An array of warning results generated during validation.
|
|
11
|
+
*/
|
|
12
|
+
warnings: WarningResult[];
|
|
13
|
+
/**
|
|
14
|
+
* An array of error results generated during validation.
|
|
15
|
+
*/
|
|
16
|
+
errors: ErrorResult[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* An interface that represents a warning result generated during validation.
|
|
20
|
+
*/
|
|
21
|
+
export interface WarningResult {
|
|
22
|
+
/**
|
|
23
|
+
* The type of warning.
|
|
24
|
+
*/
|
|
25
|
+
type: WarningType;
|
|
26
|
+
/**
|
|
27
|
+
* The content of the warning.
|
|
28
|
+
*/
|
|
29
|
+
content: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* An interface that represents an error result generated during validation.
|
|
33
|
+
*/
|
|
34
|
+
export interface ErrorResult {
|
|
35
|
+
/**
|
|
36
|
+
* The type of error.
|
|
37
|
+
*/
|
|
38
|
+
type: ErrorType;
|
|
39
|
+
/**
|
|
40
|
+
* The content of the error.
|
|
41
|
+
*/
|
|
42
|
+
content: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* An enum that represents the types of errors that can occur during validation.
|
|
46
|
+
*/
|
|
47
|
+
export declare enum ErrorType {
|
|
48
|
+
SpecNotValid = 0,
|
|
49
|
+
VersionNotSupported = 1,
|
|
50
|
+
RemoteRefNotSupported = 2,
|
|
51
|
+
NoServerInformation = 3,
|
|
52
|
+
MultipleServerInformation = 4,
|
|
53
|
+
NoSupportedApi = 5,
|
|
54
|
+
ListFailed = 6,
|
|
55
|
+
Cancelled = 7,
|
|
56
|
+
Unknown = 8
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* An enum that represents the types of warnings that can occur during validation.
|
|
60
|
+
*/
|
|
61
|
+
export declare enum WarningType {
|
|
62
|
+
AuthNotSupported = 0,
|
|
63
|
+
MethodNotSupported = 1,
|
|
64
|
+
OperationIdMissing = 2,
|
|
65
|
+
Unknown = 3
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* An enum that represents the validation status of an OpenAPI specification file.
|
|
69
|
+
*/
|
|
70
|
+
export declare enum ValidationStatus {
|
|
71
|
+
Valid = 0,
|
|
72
|
+
Warning = 1,
|
|
73
|
+
Error = 2
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/common/spec-parser/interfaces.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,MAAM,EAAE,gBAAgB,CAAC;IAEzB;;OAEG;IACH,QAAQ,EAAE,aAAa,EAAE,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,WAAW,EAAE,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,oBAAY,SAAS;IACnB,YAAY,IAAA;IACZ,mBAAmB,IAAA;IACnB,qBAAqB,IAAA;IACrB,mBAAmB,IAAA;IACnB,yBAAyB,IAAA;IACzB,cAAc,IAAA;IAEd,UAAU,IAAA;IACV,SAAS,IAAA;IACT,OAAO,IAAA;CACR;AAED;;GAEG;AACH,oBAAY,WAAW;IACrB,gBAAgB,IAAA;IAChB,kBAAkB,IAAA;IAClB,kBAAkB,IAAA;IAClB,OAAO,IAAA;CACR;AAED;;GAEG;AACH,oBAAY,gBAAgB;IAC1B,KAAK,IAAA;IACL,OAAO,IAAA;IACP,KAAK,IAAA;CACN"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT license.
|
|
3
|
+
"use strict";
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ValidationStatus = exports.WarningType = exports.ErrorType = void 0;
|
|
6
|
+
/**
|
|
7
|
+
* An enum that represents the types of errors that can occur during validation.
|
|
8
|
+
*/
|
|
9
|
+
var ErrorType;
|
|
10
|
+
(function (ErrorType) {
|
|
11
|
+
ErrorType[ErrorType["SpecNotValid"] = 0] = "SpecNotValid";
|
|
12
|
+
ErrorType[ErrorType["VersionNotSupported"] = 1] = "VersionNotSupported";
|
|
13
|
+
ErrorType[ErrorType["RemoteRefNotSupported"] = 2] = "RemoteRefNotSupported";
|
|
14
|
+
ErrorType[ErrorType["NoServerInformation"] = 3] = "NoServerInformation";
|
|
15
|
+
ErrorType[ErrorType["MultipleServerInformation"] = 4] = "MultipleServerInformation";
|
|
16
|
+
ErrorType[ErrorType["NoSupportedApi"] = 5] = "NoSupportedApi";
|
|
17
|
+
ErrorType[ErrorType["ListFailed"] = 6] = "ListFailed";
|
|
18
|
+
ErrorType[ErrorType["Cancelled"] = 7] = "Cancelled";
|
|
19
|
+
ErrorType[ErrorType["Unknown"] = 8] = "Unknown";
|
|
20
|
+
})(ErrorType = exports.ErrorType || (exports.ErrorType = {}));
|
|
21
|
+
/**
|
|
22
|
+
* An enum that represents the types of warnings that can occur during validation.
|
|
23
|
+
*/
|
|
24
|
+
var WarningType;
|
|
25
|
+
(function (WarningType) {
|
|
26
|
+
WarningType[WarningType["AuthNotSupported"] = 0] = "AuthNotSupported";
|
|
27
|
+
WarningType[WarningType["MethodNotSupported"] = 1] = "MethodNotSupported";
|
|
28
|
+
WarningType[WarningType["OperationIdMissing"] = 2] = "OperationIdMissing";
|
|
29
|
+
WarningType[WarningType["Unknown"] = 3] = "Unknown";
|
|
30
|
+
})(WarningType = exports.WarningType || (exports.WarningType = {}));
|
|
31
|
+
/**
|
|
32
|
+
* An enum that represents the validation status of an OpenAPI specification file.
|
|
33
|
+
*/
|
|
34
|
+
var ValidationStatus;
|
|
35
|
+
(function (ValidationStatus) {
|
|
36
|
+
ValidationStatus[ValidationStatus["Valid"] = 0] = "Valid";
|
|
37
|
+
ValidationStatus[ValidationStatus["Warning"] = 1] = "Warning";
|
|
38
|
+
ValidationStatus[ValidationStatus["Error"] = 2] = "Error";
|
|
39
|
+
})(ValidationStatus = exports.ValidationStatus || (exports.ValidationStatus = {}));
|
|
40
|
+
//# sourceMappingURL=interfaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/common/spec-parser/interfaces.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAoDb;;GAEG;AACH,IAAY,SAWX;AAXD,WAAY,SAAS;IACnB,yDAAY,CAAA;IACZ,uEAAmB,CAAA;IACnB,2EAAqB,CAAA;IACrB,uEAAmB,CAAA;IACnB,mFAAyB,CAAA;IACzB,6DAAc,CAAA;IAEd,qDAAU,CAAA;IACV,mDAAS,CAAA;IACT,+CAAO,CAAA;AACT,CAAC,EAXW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAWpB;AAED;;GAEG;AACH,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,qEAAgB,CAAA;IAChB,yEAAkB,CAAA;IAClB,yEAAkB,CAAA;IAClB,mDAAO,CAAA;AACT,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB;AAED;;GAEG;AACH,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,yDAAK,CAAA;IACL,6DAAO,CAAA;IACP,yDAAK,CAAA;AACP,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specFilter.d.ts","sourceRoot":"","sources":["../../../src/common/spec-parser/specFilter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAK1C,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,EAAE,EAChB,aAAa,EAAE,SAAS,CAAC,QAAQ,GAChC,SAAS,CAAC,QAAQ,CAgCpB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT license.
|
|
3
|
+
"use strict";
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.specFilter = void 0;
|
|
6
|
+
const allMethodNames = ["get", "post", "put", "delete", "patch", "head", "options", "trace"];
|
|
7
|
+
const supportedMethodNames = ["get", "post"];
|
|
8
|
+
function specFilter(filter, unResolveSpec) {
|
|
9
|
+
const newSpec = Object.assign({}, unResolveSpec);
|
|
10
|
+
const newPaths = {};
|
|
11
|
+
for (const filterItem of filter) {
|
|
12
|
+
const [method, path] = filterItem.split(" ");
|
|
13
|
+
const methodName = method.toLowerCase();
|
|
14
|
+
if (!unResolveSpec.paths[path] || !unResolveSpec.paths[path][methodName]) {
|
|
15
|
+
continue;
|
|
16
|
+
}
|
|
17
|
+
if (!newPaths[path]) {
|
|
18
|
+
newPaths[path] = Object.assign({}, unResolveSpec.paths[path]);
|
|
19
|
+
for (const m of allMethodNames) {
|
|
20
|
+
delete newPaths[path][m];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
if (supportedMethodNames.includes(methodName)) {
|
|
24
|
+
newPaths[path][methodName] = unResolveSpec.paths[path][methodName];
|
|
25
|
+
// Add the operationId if missing
|
|
26
|
+
if (!newPaths[path][methodName].operationId) {
|
|
27
|
+
newPaths[path][methodName].operationId = `${methodName}${convertPathToCamelCase(path)}`;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
newSpec.paths = newPaths;
|
|
32
|
+
return newSpec;
|
|
33
|
+
}
|
|
34
|
+
exports.specFilter = specFilter;
|
|
35
|
+
function convertPathToCamelCase(path) {
|
|
36
|
+
const pathSegments = path.split("/");
|
|
37
|
+
const camelCaseSegments = pathSegments.map((segment) => {
|
|
38
|
+
if (segment.startsWith("{")) {
|
|
39
|
+
const name = segment.substring(1, segment.length - 1);
|
|
40
|
+
return name.charAt(0).toUpperCase() + name.slice(1);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
return segment;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
const camelCasePath = camelCaseSegments.join("");
|
|
47
|
+
return camelCasePath.charAt(0).toUpperCase() + camelCasePath.slice(1);
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=specFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specFilter.js","sourceRoot":"","sources":["../../../src/common/spec-parser/specFilter.ts"],"names":[],"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EAAE;gBACnD,QAAQ,CAAC,IAAI,CAAS,CAAC,UAAU,CAAC,CAAC,WAAW,GAAG,GAAG,UAAU,GAAG,sBAAsB,CACtF,IAAI,CACL,EAAE,CAAC;aACL;SACF;KACF;IAED,OAAO,CAAC,KAAK,GAAG,QAAQ,CAAC;IACzB,OAAO,OAAO,CAAC;AACjB,CAAC;AAnCD,gCAmCC;AAED,SAAS,sBAAsB,CAAC,IAAY;IAC1C,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACrC,MAAM,iBAAiB,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QACrD,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;YAC3B,MAAM,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YACtD,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SACrD;aAAM;YACL,OAAO,OAAO,CAAC;SAChB;IACH,CAAC,CAAC,CAAC;IACH,MAAM,aAAa,GAAG,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjD,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import SwaggerParser from "@apidevtools/swagger-parser";
|
|
2
|
+
import { ValidateResult } from "./interfaces";
|
|
3
|
+
/**
|
|
4
|
+
* A class that parses an OpenAPI specification file and provides methods to validate, list, and generate artifacts.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SpecParser {
|
|
7
|
+
readonly specPath: string;
|
|
8
|
+
readonly parser: SwaggerParser;
|
|
9
|
+
private apiMap;
|
|
10
|
+
private spec;
|
|
11
|
+
private unResolveSpec;
|
|
12
|
+
/**
|
|
13
|
+
* Creates a new instance of the SpecParser class.
|
|
14
|
+
* @param path The URL or file path of the OpenAPI specification file. The OpenAPI specification file must have a version of 3.0 or higher.
|
|
15
|
+
*/
|
|
16
|
+
constructor(path: string);
|
|
17
|
+
/**
|
|
18
|
+
* Validates the OpenAPI specification file and returns a validation result.
|
|
19
|
+
*
|
|
20
|
+
* @returns A validation result object that contains information about any errors or warnings in the specification file.
|
|
21
|
+
*/
|
|
22
|
+
validate(): Promise<ValidateResult>;
|
|
23
|
+
/**
|
|
24
|
+
* Lists all the OpenAPI operations in the specification file.
|
|
25
|
+
* @returns A string array that represents the HTTP method and path of each operation, such as ['GET /pets/{petId}', 'GET /user/{userId}']
|
|
26
|
+
* according to copilot plugin spec, only list get and post method without auth
|
|
27
|
+
*/
|
|
28
|
+
list(): Promise<string[]>;
|
|
29
|
+
/**
|
|
30
|
+
* Generates and update artifacts from the OpenAPI specification file. Generate Adaptive Cards, update Teams app manifest, and generate a new OpenAPI specification file.
|
|
31
|
+
* @param manifestPath A file path of the Teams app manifest file to update.
|
|
32
|
+
* @param filter An array of strings that represent the filters to apply when generating the artifacts. If filter is empty, it would process nothing.
|
|
33
|
+
* @param outputSpecPath An optional file path of the new OpenAPI specification file to generate. If not specified or empty, no spec file will be generated.
|
|
34
|
+
* @param adaptiveCardFolder An optional folder path where the Adaptive Card files will be generated. If not specified or empty, Adaptive Card files will not be generated.
|
|
35
|
+
*/
|
|
36
|
+
generate(manifestPath: string, filter: string[], outputSpecPath?: string, adaptiveCardFolder?: string, signal?: AbortSignal): Promise<void>;
|
|
37
|
+
private loadSpec;
|
|
38
|
+
private getAllSupportedApi;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=specParser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specParser.d.ts","sourceRoot":"","sources":["../../../src/common/spec-parser/specParser.ts"],"names":[],"mappings":"AAKA,OAAO,aAAa,MAAM,6BAA6B,CAAC;AAGxD,OAAO,EAGL,cAAc,EAIf,MAAM,cAAc,CAAC;AAMtB;;GAEG;AACH,qBAAa,UAAU;IACrB,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,MAAM,EAAE,aAAa,CAAC;IAEtC,OAAO,CAAC,MAAM,CAA0D;IACxE,OAAO,CAAC,IAAI,CAAiC;IAC7C,OAAO,CAAC,aAAa,CAAiC;IAEtD;;;OAGG;gBACS,IAAI,EAAE,MAAM;IAKxB;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,cAAc,CAAC;IA2FzC;;;;OAIG;IACG,IAAI,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAU/B;;;;;;OAMG;IACG,QAAQ,CACZ,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EAAE,EAChB,cAAc,CAAC,EAAE,MAAM,EACvB,kBAAkB,CAAC,EAAE,MAAM,EAC3B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC;YAeF,QAAQ;YAOR,kBAAkB;CAuBjC"}
|