@microsoft/teamsfx-core 3.1.4 → 3.1.5-alpha.3256bba3fe.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/README.md +4 -0
- package/build/common/featureFlags.d.ts +5 -0
- package/build/common/featureFlags.d.ts.map +1 -1
- package/build/common/featureFlags.js +5 -0
- package/build/common/featureFlags.js.map +1 -1
- package/build/common/telemetry.d.ts +2 -1
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +1 -0
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +2 -2
- package/build/common/wrappedAxiosClient.d.ts +5 -0
- package/build/common/wrappedAxiosClient.d.ts.map +1 -1
- package/build/common/wrappedAxiosClient.js +95 -4
- package/build/common/wrappedAxiosClient.js.map +1 -1
- package/build/component/configManager/actionInjector.d.ts +1 -1
- package/build/component/configManager/actionInjector.d.ts.map +1 -1
- package/build/component/configManager/actionInjector.js +2 -2
- package/build/component/configManager/actionInjector.js.map +1 -1
- package/build/component/driver/copilotAgent/publish.d.ts.map +1 -1
- package/build/component/driver/copilotAgent/publish.js +1 -1
- package/build/component/driver/copilotAgent/publish.js.map +1 -1
- package/build/component/driver/dcr/create.d.ts.map +1 -1
- package/build/component/driver/dcr/create.js +47 -14
- package/build/component/driver/dcr/create.js.map +1 -1
- package/build/component/driver/dcr/interface/createDcrArgs.d.ts +4 -1
- package/build/component/driver/dcr/interface/createDcrArgs.d.ts.map +1 -1
- package/build/component/driver/index.d.ts +0 -1
- package/build/component/driver/index.d.ts.map +1 -1
- package/build/component/driver/index.js +0 -1
- package/build/component/driver/index.js.map +1 -1
- package/build/component/driver/m365/acquire.d.ts.map +1 -1
- package/build/component/driver/m365/acquire.js +2 -2
- package/build/component/driver/m365/acquire.js.map +1 -1
- package/build/component/driver/oauth/create.d.ts.map +1 -1
- package/build/component/driver/oauth/create.js +16 -2
- package/build/component/driver/oauth/create.js.map +1 -1
- package/build/component/driver/oauth/error/oauthSupportedAccountTypesUnsupportedCloud.d.ts +5 -0
- package/build/component/driver/oauth/error/oauthSupportedAccountTypesUnsupportedCloud.d.ts.map +1 -0
- package/build/component/driver/oauth/error/oauthSupportedAccountTypesUnsupportedCloud.js +13 -0
- package/build/component/driver/oauth/error/oauthSupportedAccountTypesUnsupportedCloud.js.map +1 -0
- package/build/component/driver/oauth/interface/createOauthArgs.d.ts +1 -0
- package/build/component/driver/oauth/interface/createOauthArgs.d.ts.map +1 -1
- package/build/component/driver/oauth/interface/updateOauthArgs.d.ts +1 -0
- package/build/component/driver/oauth/interface/updateOauthArgs.d.ts.map +1 -1
- package/build/component/driver/oauth/update.d.ts.map +1 -1
- package/build/component/driver/oauth/update.js +26 -4
- package/build/component/driver/oauth/update.js.map +1 -1
- package/build/component/driver/oauth/utility/supportedAccountTypes.d.ts +6 -0
- package/build/component/driver/oauth/utility/supportedAccountTypes.d.ts.map +1 -0
- package/build/component/driver/oauth/utility/supportedAccountTypes.js +31 -0
- package/build/component/driver/oauth/utility/supportedAccountTypes.js.map +1 -0
- package/build/component/driver/teamsApp/constants.d.ts +5 -0
- package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
- package/build/component/driver/teamsApp/constants.js +5 -0
- package/build/component/driver/teamsApp/constants.js.map +1 -1
- package/build/component/driver/teamsApp/interfaces/DcrRegistration.d.ts +5 -2
- package/build/component/driver/teamsApp/interfaces/DcrRegistration.d.ts.map +1 -1
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.d.ts +6 -0
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.d.ts.map +1 -1
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.js +5 -1
- package/build/component/driver/teamsApp/interfaces/OauthRegistration.js.map +1 -1
- package/build/component/generator/generatorProvider.d.ts.map +1 -1
- package/build/component/generator/generatorProvider.js +0 -3
- package/build/component/generator/generatorProvider.js.map +1 -1
- package/build/component/generator/templates/templateNames.d.ts +1 -1
- package/build/component/generator/templates/templateNames.d.ts.map +1 -1
- package/build/component/m365/packageService.d.ts +4 -3
- package/build/component/m365/packageService.d.ts.map +1 -1
- package/build/component/m365/packageService.js +34 -30
- package/build/component/m365/packageService.js.map +1 -1
- package/build/component/m365/serviceConstant.d.ts.map +1 -1
- package/build/component/m365/serviceConstant.js +5 -0
- package/build/component/m365/serviceConstant.js.map +1 -1
- package/build/component/m365/skills/graphSkillFileStore.d.ts +14 -0
- package/build/component/m365/skills/graphSkillFileStore.d.ts.map +1 -0
- package/build/component/m365/skills/graphSkillFileStore.js +164 -0
- package/build/component/m365/skills/graphSkillFileStore.js.map +1 -0
- package/build/component/m365/skills/incrementalSkillUpload.d.ts +6 -0
- package/build/component/m365/skills/incrementalSkillUpload.d.ts.map +1 -0
- package/build/component/m365/skills/incrementalSkillUpload.js +70 -0
- package/build/component/m365/skills/incrementalSkillUpload.js.map +1 -0
- package/build/component/m365/skills/skillDirectoryClient.d.ts +12 -0
- package/build/component/m365/skills/skillDirectoryClient.d.ts.map +1 -0
- package/build/component/m365/skills/skillDirectoryClient.js +150 -0
- package/build/component/m365/skills/skillDirectoryClient.js.map +1 -0
- package/build/component/m365/skills/skillFileSync.d.ts +35 -0
- package/build/component/m365/skills/skillFileSync.d.ts.map +1 -0
- package/build/component/m365/skills/skillFileSync.js +256 -0
- package/build/component/m365/skills/skillFileSync.js.map +1 -0
- package/build/component/m365/skills/skillPackage.d.ts +40 -0
- package/build/component/m365/skills/skillPackage.d.ts.map +1 -0
- package/build/component/m365/skills/skillPackage.js +471 -0
- package/build/component/m365/skills/skillPackage.js.map +1 -0
- package/build/component/m365/skills/skillRequest.d.ts +7 -0
- package/build/component/m365/skills/skillRequest.d.ts.map +1 -0
- package/build/component/m365/skills/skillRequest.js +91 -0
- package/build/component/m365/skills/skillRequest.js.map +1 -0
- package/build/component/utils/mcpAuthScaffolder.d.ts +5 -20
- package/build/component/utils/mcpAuthScaffolder.d.ts.map +1 -1
- package/build/component/utils/mcpAuthScaffolder.js +9 -24
- package/build/component/utils/mcpAuthScaffolder.js.map +1 -1
- package/build/core/FxCore.d.ts +2 -4
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +7 -22
- package/build/core/FxCore.js.map +1 -1
- package/build/question/create.d.ts +0 -6
- package/build/question/create.d.ts.map +1 -1
- package/build/question/create.js +119 -281
- package/build/question/create.js.map +1 -1
- package/build/question/generator.js +0 -2
- package/build/question/generator.js.map +1 -1
- package/build/question/index.d.ts +0 -1
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +0 -3
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/index.d.ts +0 -1
- package/build/question/inputs/index.d.ts.map +1 -1
- package/build/question/inputs/index.js +0 -1
- package/build/question/inputs/index.js.map +1 -1
- package/build/question/options/CreateProjectOptions.d.ts.map +1 -1
- package/build/question/options/CreateProjectOptions.js +0 -1
- package/build/question/options/CreateProjectOptions.js.map +1 -1
- package/build/question/options/index.d.ts +0 -1
- package/build/question/options/index.d.ts.map +1 -1
- package/build/question/options/index.js +0 -1
- package/build/question/options/index.js.map +1 -1
- package/build/question/other.d.ts +0 -1
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +158 -214
- package/build/question/other.js.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.d.ts +0 -1
- package/build/question/scaffold/vsc/CapabilityOptions.d.ts.map +1 -1
- package/build/question/scaffold/vsc/CapabilityOptions.js +0 -9
- package/build/question/scaffold/vsc/CapabilityOptions.js.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.d.ts.map +1 -1
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js +0 -24
- package/build/question/scaffold/vsc/teamsProjectTypeNode.js.map +1 -1
- package/build/v4/mcp/mcpAuthAction.d.ts +0 -1
- package/build/v4/mcp/mcpAuthAction.d.ts.map +1 -1
- package/build/v4/mcp/mcpAuthAction.js +5 -7
- package/build/v4/mcp/mcpAuthAction.js.map +1 -1
- package/build/v4/mcp/mcpAuthScaffold.d.ts.map +1 -1
- package/build/v4/mcp/mcpAuthScaffold.js +4 -12
- package/build/v4/mcp/mcpAuthScaffold.js.map +1 -1
- package/package.json +11 -8
- package/resource/package.nls.cs.json +72 -68
- package/resource/package.nls.de.json +72 -68
- package/resource/package.nls.es.json +72 -68
- package/resource/package.nls.fr.json +72 -68
- package/resource/package.nls.it.json +72 -68
- package/resource/package.nls.ja.json +72 -68
- package/resource/package.nls.json +15 -58
- package/resource/package.nls.ko.json +72 -68
- package/resource/package.nls.pl.json +72 -68
- package/resource/package.nls.pt-BR.json +72 -68
- package/resource/package.nls.ru.json +72 -68
- package/resource/package.nls.tr.json +72 -68
- package/resource/package.nls.zh-Hans.json +72 -68
- package/resource/package.nls.zh-Hant.json +72 -68
- package/resource/yaml-schema/v1.13/yaml.schema.json +71 -33
- package/resource/yaml-schema/yaml.schema.json +71 -33
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/python.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/metadata.zip +0 -0
- package/templates/v4/floor.json +1 -1
- package/templates/v4/templates-metadata.zip +0 -0
- package/templates/v4/templates.zip +0 -0
- package/build/common/treatmentVariables.d.ts +0 -5
- package/build/common/treatmentVariables.d.ts.map +0 -1
- package/build/common/treatmentVariables.js +0 -10
- package/build/common/treatmentVariables.js.map +0 -1
- package/build/component/driver/add/addWebPart.d.ts +0 -12
- package/build/component/driver/add/addWebPart.d.ts.map +0 -1
- package/build/component/driver/add/addWebPart.js +0 -109
- package/build/component/driver/add/addWebPart.js.map +0 -1
- package/build/component/driver/add/error/noConfigurationError.d.ts +0 -5
- package/build/component/driver/add/error/noConfigurationError.d.ts.map +0 -1
- package/build/component/driver/add/error/noConfigurationError.js +0 -22
- package/build/component/driver/add/error/noConfigurationError.js.map +0 -1
- package/build/component/driver/add/interface/AddWebPartArgs.d.ts +0 -27
- package/build/component/driver/add/interface/AddWebPartArgs.d.ts.map +0 -1
- package/build/component/driver/add/interface/AddWebPartArgs.js +0 -5
- package/build/component/driver/add/interface/AddWebPartArgs.js.map +0 -1
- package/build/component/driver/add/utility/constants.d.ts +0 -8
- package/build/component/driver/add/utility/constants.d.ts.map +0 -1
- package/build/component/driver/add/utility/constants.js +0 -14
- package/build/component/driver/add/utility/constants.js.map +0 -1
- package/build/component/generator/spfx/depsChecker/dependencyChecker.d.ts +0 -4
- package/build/component/generator/spfx/depsChecker/dependencyChecker.d.ts.map +0 -1
- package/build/component/generator/spfx/depsChecker/dependencyChecker.js +0 -5
- package/build/component/generator/spfx/depsChecker/dependencyChecker.js.map +0 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts +0 -20
- package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts.map +0 -1
- package/build/component/generator/spfx/depsChecker/generatorChecker.js +0 -129
- package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +0 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.d.ts +0 -20
- package/build/component/generator/spfx/depsChecker/yoChecker.d.ts.map +0 -1
- package/build/component/generator/spfx/depsChecker/yoChecker.js +0 -143
- package/build/component/generator/spfx/depsChecker/yoChecker.js.map +0 -1
- package/build/component/generator/spfx/error.d.ts +0 -15
- package/build/component/generator/spfx/error.d.ts.map +0 -1
- package/build/component/generator/spfx/error.js +0 -124
- package/build/component/generator/spfx/error.js.map +0 -1
- package/build/component/generator/spfx/spfxGenerator.d.ts +0 -30
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +0 -1
- package/build/component/generator/spfx/spfxGenerator.js +0 -684
- package/build/component/generator/spfx/spfxGenerator.js.map +0 -1
- package/build/component/generator/spfx/utils/constants.d.ts +0 -45
- package/build/component/generator/spfx/utils/constants.d.ts.map +0 -1
- package/build/component/generator/spfx/utils/constants.js +0 -56
- package/build/component/generator/spfx/utils/constants.js.map +0 -1
- package/build/component/generator/spfx/utils/progress-helper.d.ts +0 -9
- package/build/component/generator/spfx/utils/progress-helper.d.ts.map +0 -1
- package/build/component/generator/spfx/utils/progress-helper.js +0 -22
- package/build/component/generator/spfx/utils/progress-helper.js.map +0 -1
- package/build/component/generator/spfx/utils/telemetry-helper.d.ts +0 -14
- package/build/component/generator/spfx/utils/telemetry-helper.d.ts.map +0 -1
- package/build/component/generator/spfx/utils/telemetry-helper.js +0 -31
- package/build/component/generator/spfx/utils/telemetry-helper.js.map +0 -1
- package/build/component/generator/spfx/utils/telemetryEvents.d.ts +0 -20
- package/build/component/generator/spfx/utils/telemetryEvents.d.ts.map +0 -1
- package/build/component/generator/spfx/utils/telemetryEvents.js +0 -27
- package/build/component/generator/spfx/utils/telemetryEvents.js.map +0 -1
- package/build/component/generator/spfx/utils/utils.d.ts +0 -19
- package/build/component/generator/spfx/utils/utils.d.ts.map +0 -1
- package/build/component/generator/spfx/utils/utils.js +0 -184
- package/build/component/generator/spfx/utils/utils.js.map +0 -1
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts +0 -20
- package/build/question/inputs/SPFxAddWebpartInputs.d.ts.map +0 -1
- package/build/question/inputs/SPFxAddWebpartInputs.js +0 -5
- package/build/question/inputs/SPFxAddWebpartInputs.js.map +0 -1
- package/build/question/options/SPFxAddWebpartOptions.d.ts +0 -10
- package/build/question/options/SPFxAddWebpartOptions.d.ts.map +0 -1
- package/build/question/options/SPFxAddWebpartOptions.js +0 -50
- package/build/question/options/SPFxAddWebpartOptions.js.map +0 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"environmentFolderPath": {
|
|
11
11
|
"type": "string",
|
|
12
12
|
"description": "The folder path of .env files used for variables and different environments."
|
|
13
|
-
|
|
13
|
+
},
|
|
14
14
|
"version": {
|
|
15
15
|
"type": "string",
|
|
16
16
|
"description": "The version of the yaml file schema",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"additionalProperties": true,
|
|
23
23
|
"properties": {
|
|
24
24
|
"sampleTag": {
|
|
25
|
-
"type": ["number","string","boolean","object","array", "null", "integer"],
|
|
25
|
+
"type": ["number", "string", "boolean", "object", "array", "null", "integer"],
|
|
26
26
|
"description": "A tag for the sample app used to track telemetry events sent by Microsoft 365 Agents Toolkit associated with that sample. Pattern: <sample-repo>:<sample-name>"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -76,16 +76,16 @@
|
|
|
76
76
|
{ "$ref": "#/definitions/spfxDeploy" },
|
|
77
77
|
{ "$ref": "#/definitions/teamsAppCopyAppPackageToSPFx" },
|
|
78
78
|
{ "$ref": "#/definitions/script" },
|
|
79
|
-
{ "$ref": "#/definitions/apiKeyRegister"},
|
|
80
|
-
{ "$ref": "#/definitions/azureStaticWebAppGetDeploymentKey"},
|
|
81
|
-
{ "$ref": "#/definitions/apiKeyUpdate"},
|
|
82
|
-
{ "$ref": "#/definitions/oauthRegister"},
|
|
83
|
-
{ "$ref": "#/definitions/oauthUpdate"},
|
|
84
|
-
{ "$ref": "#/definitions/dcrRegister"},
|
|
85
|
-
{ "$ref": "#/definitions/devChannelCreate"},
|
|
86
|
-
{ "$ref": "#/definitions/devChannelInstallApp"},
|
|
87
|
-
{ "$ref": "#/definitions/typeSpecCompile"},
|
|
88
|
-
{ "$ref": "#/definitions/copilotAgentPublish"}
|
|
79
|
+
{ "$ref": "#/definitions/apiKeyRegister" },
|
|
80
|
+
{ "$ref": "#/definitions/azureStaticWebAppGetDeploymentKey" },
|
|
81
|
+
{ "$ref": "#/definitions/apiKeyUpdate" },
|
|
82
|
+
{ "$ref": "#/definitions/oauthRegister" },
|
|
83
|
+
{ "$ref": "#/definitions/oauthUpdate" },
|
|
84
|
+
{ "$ref": "#/definitions/dcrRegister" },
|
|
85
|
+
{ "$ref": "#/definitions/devChannelCreate" },
|
|
86
|
+
{ "$ref": "#/definitions/devChannelInstallApp" },
|
|
87
|
+
{ "$ref": "#/definitions/typeSpecCompile" },
|
|
88
|
+
{ "$ref": "#/definitions/copilotAgentPublish" }
|
|
89
89
|
]
|
|
90
90
|
}
|
|
91
91
|
},
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"aadAppCreateWithSecret": {
|
|
116
116
|
"type": "object",
|
|
117
117
|
"additionalProperties": false,
|
|
118
|
-
"allOf": [
|
|
118
|
+
"allOf": [{ "$ref": "#/definitions/aadAppCreateBase" }],
|
|
119
119
|
"required": ["with", "writeToEnvironmentFile"],
|
|
120
120
|
"properties": {
|
|
121
121
|
"name": {},
|
|
@@ -144,7 +144,12 @@
|
|
|
144
144
|
"signInAudience": {
|
|
145
145
|
"type": "string",
|
|
146
146
|
"description": "Specifies what Microsoft accounts are supported for the current application.",
|
|
147
|
-
"enum": [
|
|
147
|
+
"enum": [
|
|
148
|
+
"AzureADMyOrg",
|
|
149
|
+
"AzureADMultipleOrgs",
|
|
150
|
+
"AzureADandPersonalMicrosoftAccount",
|
|
151
|
+
"PersonalMicrosoftAccount"
|
|
152
|
+
]
|
|
148
153
|
},
|
|
149
154
|
"serviceManagementReference": {
|
|
150
155
|
"type": "string",
|
|
@@ -197,7 +202,7 @@
|
|
|
197
202
|
},
|
|
198
203
|
"aadAppCreateWithoutSecret": {
|
|
199
204
|
"type": "object",
|
|
200
|
-
"allOf": [
|
|
205
|
+
"allOf": [{ "$ref": "#/definitions/aadAppCreateBase" }],
|
|
201
206
|
"required": ["with", "writeToEnvironmentFile"],
|
|
202
207
|
"additionalProperties": false,
|
|
203
208
|
"properties": {
|
|
@@ -227,7 +232,12 @@
|
|
|
227
232
|
"signInAudience": {
|
|
228
233
|
"type": "string",
|
|
229
234
|
"description": "Specifies what Microsoft accounts are supported for the current application.",
|
|
230
|
-
"enum": [
|
|
235
|
+
"enum": [
|
|
236
|
+
"AzureADMyOrg",
|
|
237
|
+
"AzureADMultipleOrgs",
|
|
238
|
+
"AzureADandPersonalMicrosoftAccount",
|
|
239
|
+
"PersonalMicrosoftAccount"
|
|
240
|
+
]
|
|
231
241
|
},
|
|
232
242
|
"serviceManagementReference": {
|
|
233
243
|
"type": "string",
|
|
@@ -1049,7 +1059,7 @@
|
|
|
1049
1059
|
"$ref": "#/definitions/secretEnvVarName"
|
|
1050
1060
|
}
|
|
1051
1061
|
}
|
|
1052
|
-
}
|
|
1062
|
+
}
|
|
1053
1063
|
}
|
|
1054
1064
|
},
|
|
1055
1065
|
"botframeworkCreate": {
|
|
@@ -1104,7 +1114,10 @@
|
|
|
1104
1114
|
"type": "array",
|
|
1105
1115
|
"description": "the channel(s) to be enabled of the bot",
|
|
1106
1116
|
"items": {
|
|
1107
|
-
"oneOf": [
|
|
1117
|
+
"oneOf": [
|
|
1118
|
+
{ "$ref": "#/definitions/MsTeamsChannel" },
|
|
1119
|
+
{ "$ref": "#/definitions/M365ExtensionsChannel" }
|
|
1120
|
+
]
|
|
1108
1121
|
}
|
|
1109
1122
|
}
|
|
1110
1123
|
}
|
|
@@ -1281,9 +1294,7 @@
|
|
|
1281
1294
|
"type": "object",
|
|
1282
1295
|
"description": "Install Azure Functions Core Tools. This will output environment variable specified by `funcPath` to current environment's .env file.",
|
|
1283
1296
|
"additionalProperties": false,
|
|
1284
|
-
"required": [
|
|
1285
|
-
"version"
|
|
1286
|
-
],
|
|
1297
|
+
"required": ["version"],
|
|
1287
1298
|
"properties": {
|
|
1288
1299
|
"version": {
|
|
1289
1300
|
"oneOf": [
|
|
@@ -1557,7 +1568,7 @@
|
|
|
1557
1568
|
"description": "redirect stdout and stderr to a file"
|
|
1558
1569
|
}
|
|
1559
1570
|
}
|
|
1560
|
-
}
|
|
1571
|
+
}
|
|
1561
1572
|
}
|
|
1562
1573
|
},
|
|
1563
1574
|
"relativePath": {
|
|
@@ -1841,6 +1852,10 @@
|
|
|
1841
1852
|
"type": "string",
|
|
1842
1853
|
"description": "Token exchange method type, can be BasicAuthorizationHeader or PostRequestBody. BasicAuthorizationHeader: token exchange via HTTP headers, PostRequestBody: token exchange via request body. Default is BasicAuthorizationHeader.",
|
|
1843
1854
|
"enum": ["BasicAuthorizationHeader", "PostRequestBody"]
|
|
1855
|
+
},
|
|
1856
|
+
"includePersonalMicrosoftAccounts": {
|
|
1857
|
+
"type": "boolean",
|
|
1858
|
+
"description": "Whether to allow personal Microsoft accounts in addition to work or school accounts. If omitted when registering, only work or school accounts are allowed."
|
|
1844
1859
|
}
|
|
1845
1860
|
}
|
|
1846
1861
|
},
|
|
@@ -1941,6 +1956,10 @@
|
|
|
1941
1956
|
"type": "string",
|
|
1942
1957
|
"description": "Token exchange method type, can be BasicAuthorizationHeader or PostRequestBody. BasicAuthorizationHeader: token exchange via HTTP headers, PostRequestBody: token exchange via request body. Default is BasicAuthorizationHeader.",
|
|
1943
1958
|
"enum": ["BasicAuthorizationHeader", "PostRequestBody"]
|
|
1959
|
+
},
|
|
1960
|
+
"includePersonalMicrosoftAccounts": {
|
|
1961
|
+
"type": "boolean",
|
|
1962
|
+
"description": "Whether to allow personal Microsoft accounts in addition to work or school accounts. If omitted during an update, the existing account support remains unchanged."
|
|
1944
1963
|
}
|
|
1945
1964
|
}
|
|
1946
1965
|
}
|
|
@@ -1949,46 +1968,65 @@
|
|
|
1949
1968
|
"dcrRegister": {
|
|
1950
1969
|
"type": "object",
|
|
1951
1970
|
"additionalProperties": false,
|
|
1952
|
-
"description": "Create a Dynamic Client Registration (DCR) configuration.",
|
|
1971
|
+
"description": "Create a Dynamic Client Registration (DCR) configuration through Teams Graph Service (TGS). Registration is skipped when the mapped configurationId environment variable already has a value.",
|
|
1953
1972
|
"required": ["uses", "with", "writeToEnvironmentFile"],
|
|
1954
1973
|
"properties": {
|
|
1955
1974
|
"uses": {
|
|
1956
1975
|
"type": "string",
|
|
1957
|
-
"description": "Register
|
|
1976
|
+
"description": "Register an OAuth configuration using server-side Dynamic Client Registration.",
|
|
1958
1977
|
"const": "dcr/register"
|
|
1959
1978
|
},
|
|
1960
1979
|
"with": {
|
|
1961
1980
|
"type": "object",
|
|
1962
1981
|
"additionalProperties": false,
|
|
1963
|
-
"description": "
|
|
1964
|
-
"required": ["name"
|
|
1982
|
+
"description": "DCR registration parameters. Supply mcpResourceUrl for protected resource metadata discovery, wellKnownAuthorizationServer to pin authorization-server metadata, or both.",
|
|
1983
|
+
"required": ["name"],
|
|
1984
|
+
"anyOf": [
|
|
1985
|
+
{ "required": ["mcpResourceUrl"] },
|
|
1986
|
+
{ "required": ["wellKnownAuthorizationServer"] }
|
|
1987
|
+
],
|
|
1965
1988
|
"properties": {
|
|
1966
1989
|
"name": {
|
|
1967
1990
|
"type": "string",
|
|
1968
|
-
"description": "
|
|
1991
|
+
"description": "Required client name sent to TGS as clientName for dynamic registration. Maximum 128 characters."
|
|
1969
1992
|
},
|
|
1970
1993
|
"appId": {
|
|
1971
1994
|
"type": "string",
|
|
1972
|
-
"description": "
|
|
1995
|
+
"description": "Microsoft 365 app ID. Required when applicableToApps is SpecificApp; ignored when applicableToApps is AnyApp."
|
|
1996
|
+
},
|
|
1997
|
+
"mcpResourceUrl": {
|
|
1998
|
+
"type": "string",
|
|
1999
|
+
"minLength": 1,
|
|
2000
|
+
"description": "HTTPS URL of the actual MCP endpoint, including its path. Recommended for new configurations. TGS probes this endpoint and RFC 9728 well-known locations for protected resource metadata (PRM) to discover resource and scopes_supported. Unless wellKnownAuthorizationServer is supplied, TGS uses PRM's first authorization_servers entry. This is not the PRM document URL; the OAuth resource indicator comes from PRM's resource, not directly from this endpoint URL. Optional when wellKnownAuthorizationServer is supplied."
|
|
1973
2001
|
},
|
|
1974
2002
|
"wellKnownAuthorizationServer": {
|
|
1975
2003
|
"type": "string",
|
|
1976
|
-
"
|
|
2004
|
+
"minLength": 1,
|
|
2005
|
+
"description": "HTTPS URL of the authorization server's RFC 8414 metadata document, supported for existing configurations and explicit authorization-server selection. Optional when mcpResourceUrl is supplied. When present, this URL takes precedence for authorization-server metadata resolution. An authorization server can serve multiple resources, so this metadata alone cannot identify the intended OAuth resource. Without mcpResourceUrl, supply resource explicitly if the service requires it. If mcpResourceUrl is also supplied, TGS attempts best-effort PRM discovery for resource and scopes; failure of that enrichment does not fail registration."
|
|
2006
|
+
},
|
|
2007
|
+
"resource": {
|
|
2008
|
+
"type": "string",
|
|
2009
|
+
"minLength": 1,
|
|
2010
|
+
"description": "Optional explicit OAuth resource indicator: an absolute URI without a fragment. Overrides PRM's resource value. Omit this field when mcpResourceUrl enables PRM discovery of the intended resource; otherwise supply it explicitly if the service requires a resource indicator. It is not inferred from authorization-server metadata or copied from the MCP endpoint or target URL. If neither an explicit value nor PRM supplies a resource, no resource indicator is sent. TGS sends the selected resource in authorization, token and refresh-token requests."
|
|
1977
2011
|
},
|
|
1978
2012
|
"targetUrlsShouldStartWith": {
|
|
1979
2013
|
"type": "array",
|
|
1980
|
-
"description": "
|
|
2014
|
+
"description": "Required MCP target URL array. TGS requires exactly one valid HTTPS URL; omission, a string, an empty array or multiple entries is rejected. New configurations use the actual MCP endpoint. This field does not set the OAuth resource indicator.",
|
|
1981
2015
|
"items": { "type": "string" }
|
|
1982
2016
|
},
|
|
1983
2017
|
"applicableToApps": {
|
|
1984
2018
|
"type": "string",
|
|
1985
|
-
"description": "
|
|
2019
|
+
"description": "Applications permitted to use this configuration: AnyApp (default), or SpecificApp, which requires appId.",
|
|
1986
2020
|
"enum": ["SpecificApp", "AnyApp"]
|
|
1987
2021
|
},
|
|
1988
2022
|
"targetAudience": {
|
|
1989
2023
|
"type": "string",
|
|
1990
|
-
"description": "
|
|
2024
|
+
"description": "Tenants permitted to use this configuration: HomeTenant (default) or AnyTenant.",
|
|
1991
2025
|
"enum": ["HomeTenant", "AnyTenant"]
|
|
2026
|
+
},
|
|
2027
|
+
"includePersonalMicrosoftAccounts": {
|
|
2028
|
+
"type": "boolean",
|
|
2029
|
+
"description": "Whether to allow personal Microsoft accounts in addition to work or school accounts. If omitted when registering, only work or school accounts are allowed."
|
|
1992
2030
|
}
|
|
1993
2031
|
}
|
|
1994
2032
|
},
|
|
@@ -1999,7 +2037,7 @@
|
|
|
1999
2037
|
"required": ["configurationId"],
|
|
2000
2038
|
"properties": {
|
|
2001
2039
|
"configurationId": {
|
|
2002
|
-
"description": "Required.
|
|
2040
|
+
"description": "Required environment variable name receiving the returned configurationRegistrationId.oAuthConfigId. This is a configuration ID, not an OAuth client ID or resource indicator. An existing value causes this action to skip registration.",
|
|
2003
2041
|
"$ref": "#/definitions/envVarName"
|
|
2004
2042
|
}
|
|
2005
2043
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/templates/metadata.zip
CHANGED
|
Binary file
|
package/templates/v4/floor.json
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"treatmentVariables.d.ts","sourceRoot":"","sources":["../../src/common/treatmentVariables.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.TreatmentVariables = void 0;
|
|
6
|
-
exports.TreatmentVariables = {
|
|
7
|
-
VSCodeConfig: "vscode",
|
|
8
|
-
RaiValidation: "RaiValidation",
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=treatmentVariables.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"treatmentVariables.js","sourceRoot":"","sources":["../../src/common/treatmentVariables.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAErB,QAAA,kBAAkB,GAAG;IAChC,YAAY,EAAE,QAAQ;IACtB,aAAa,EAAE,eAAe;CACtB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FxError, Result } from "@microsoft/teamsfx-api";
|
|
2
|
-
import { DriverContext } from "../interface/commonArgs";
|
|
3
|
-
import { ExecutionResult, StepDriver } from "../interface/stepDriver";
|
|
4
|
-
import { WrapDriverContext } from "../util/wrapUtil";
|
|
5
|
-
import { AddWebPartArgs } from "./interface/AddWebPartArgs";
|
|
6
|
-
export declare class AddWebPartDriver implements StepDriver {
|
|
7
|
-
description: string;
|
|
8
|
-
run(args: AddWebPartArgs, context: DriverContext): Promise<Result<Map<string, string>, FxError>>;
|
|
9
|
-
execute(args: AddWebPartArgs, context: DriverContext): Promise<ExecutionResult>;
|
|
10
|
-
add(args: AddWebPartArgs, context: WrapDriverContext): Promise<Map<string, string>>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=addWebPart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"addWebPart.d.ts","sourceRoot":"","sources":["../../../../src/component/driver/add/addWebPart.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAsB,MAAM,EAAS,MAAM,wBAAwB,CAAC;AAWpF,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D,qBACa,gBAAiB,YAAW,UAAU;IACjD,WAAW,SAAqD;IAGnD,GAAG,CACd,IAAI,EAAE,cAAc,EACpB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC;IAKnC,OAAO,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC;IAS/E,GAAG,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAwFjG"}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.AddWebPartDriver = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const lib_1 = require("@feathersjs/hooks/lib");
|
|
8
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
9
|
-
const fs = tslib_1.__importStar(require("fs-extra"));
|
|
10
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
11
|
-
const typedi_1 = require("typedi");
|
|
12
|
-
const util = tslib_1.__importStar(require("util"));
|
|
13
|
-
const globalVars_1 = require("../../../common/globalVars");
|
|
14
|
-
const localizeUtils_1 = require("../../../common/localizeUtils");
|
|
15
|
-
const constants_1 = require("../../../question/constants");
|
|
16
|
-
const spfxGenerator_1 = require("../../generator/spfx/spfxGenerator");
|
|
17
|
-
const constants_2 = require("../../generator/spfx/utils/constants");
|
|
18
|
-
const common_1 = require("../../utils/common");
|
|
19
|
-
const addStartAndEndTelemetry_1 = require("../middleware/addStartAndEndTelemetry");
|
|
20
|
-
const ManifestUtils_1 = require("../teamsApp/utils/ManifestUtils");
|
|
21
|
-
const wrapUtil_1 = require("../util/wrapUtil");
|
|
22
|
-
const noConfigurationError_1 = require("./error/noConfigurationError");
|
|
23
|
-
const constants_3 = require("./utility/constants");
|
|
24
|
-
let AddWebPartDriver = class AddWebPartDriver {
|
|
25
|
-
description = (0, localizeUtils_1.getLocalizedString)("driver.spfx.add.description");
|
|
26
|
-
async run(args, context) {
|
|
27
|
-
const wrapContext = new wrapUtil_1.WrapDriverContext(context, constants_3.Constants.ActionName, constants_3.Constants.ActionName);
|
|
28
|
-
return (0, common_1.wrapRun)(() => this.add(args, wrapContext), constants_3.Constants.ActionName);
|
|
29
|
-
}
|
|
30
|
-
async execute(args, context) {
|
|
31
|
-
const wrapContext = new wrapUtil_1.WrapDriverContext(context, constants_3.Constants.ActionName, constants_3.Constants.ActionName);
|
|
32
|
-
const res = await this.run(args, wrapContext);
|
|
33
|
-
return {
|
|
34
|
-
result: res,
|
|
35
|
-
summaries: wrapContext.summaries,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
async add(args, context) {
|
|
39
|
-
const webpartName = args.webpartName;
|
|
40
|
-
const framework = args.framework;
|
|
41
|
-
const spfxFolder = args.spfxFolder;
|
|
42
|
-
const manifestPath = args.manifestPath;
|
|
43
|
-
const localManifestPath = args.localManifestPath;
|
|
44
|
-
const spfxPackage = args.spfxPackage;
|
|
45
|
-
const yorcPath = path_1.default.join(spfxFolder, constants_3.Constants.YO_RC_FILE);
|
|
46
|
-
context.logProvider.verbose(`Checking configuration file under ${yorcPath}...`);
|
|
47
|
-
if (!(await fs.pathExists(yorcPath))) {
|
|
48
|
-
throw new noConfigurationError_1.NoConfigurationError();
|
|
49
|
-
}
|
|
50
|
-
context.logProvider.verbose(`Configuration file exists.`);
|
|
51
|
-
const inputs = { platform: context.platform, stage: teamsfx_api_1.Stage.addWebpart };
|
|
52
|
-
inputs[constants_1.QuestionNames.SPFxWebpartName] = webpartName;
|
|
53
|
-
inputs[constants_1.QuestionNames.SPFxFramework] = framework;
|
|
54
|
-
inputs[constants_1.QuestionNames.SPFxFolder] = spfxFolder;
|
|
55
|
-
inputs[constants_1.QuestionNames.ManifestPath] = manifestPath;
|
|
56
|
-
inputs[constants_1.QuestionNames.LocalTeamsAppManifestFilePath] = localManifestPath;
|
|
57
|
-
inputs[constants_1.QuestionNames.SPFxInstallPackage] = spfxPackage;
|
|
58
|
-
context.logProvider.verbose(`Adding web part with Yeoman generator...`);
|
|
59
|
-
context.logProvider.debug(`SPFx web part name: ${webpartName}, SPFx folder: ${spfxFolder}, manifest path: ${manifestPath}, local manifest path: ${localManifestPath}`);
|
|
60
|
-
const SPFxContext = (0, globalVars_1.createContext)();
|
|
61
|
-
const yeomanRes = await spfxGenerator_1.SPFxGenerator.doYeomanScaffold(SPFxContext, inputs, context.projectPath);
|
|
62
|
-
if (yeomanRes.isErr())
|
|
63
|
-
throw yeomanRes.error;
|
|
64
|
-
context.logProvider.verbose(`Succeeded to add web part '${webpartName}'.`);
|
|
65
|
-
const componentId = yeomanRes.value;
|
|
66
|
-
const useNewDevUrl = SPFxContext &&
|
|
67
|
-
SPFxContext.templateVariables &&
|
|
68
|
-
SPFxContext.templateVariables["useNewDevUrl"] == "true";
|
|
69
|
-
const remoteStaticSnippet = {
|
|
70
|
-
entityId: componentId,
|
|
71
|
-
name: webpartName,
|
|
72
|
-
contentUrl: util.format(constants_3.Constants.REMOTE_CONTENT_URL, componentId),
|
|
73
|
-
websiteUrl: constants_2.ManifestTemplate.WEBSITE_URL,
|
|
74
|
-
scopes: ["personal"],
|
|
75
|
-
};
|
|
76
|
-
const localStaticSnippet = {
|
|
77
|
-
entityId: componentId,
|
|
78
|
-
name: webpartName,
|
|
79
|
-
contentUrl: util.format(useNewDevUrl ? constants_3.Constants.LOCAL_CONTENT_URL_NEW : constants_3.Constants.LOCAL_CONTENT_URL, componentId),
|
|
80
|
-
websiteUrl: constants_2.ManifestTemplate.WEBSITE_URL,
|
|
81
|
-
scopes: ["personal"],
|
|
82
|
-
};
|
|
83
|
-
inputs["addManifestPath"] = localManifestPath;
|
|
84
|
-
context.logProvider.verbose(`Exposing web part with component id ${componentId} to local manifest file under ${localManifestPath}...`);
|
|
85
|
-
const localRes = await ManifestUtils_1.manifestUtils.addCapabilities.bind(ManifestUtils_1.manifestUtils)({ ...inputs, projectPath: context.projectPath }, [{ name: "staticTab", snippet: localStaticSnippet }]);
|
|
86
|
-
if (localRes.isErr())
|
|
87
|
-
throw localRes.error;
|
|
88
|
-
context.logProvider.verbose(`Succeeded to update local manifest file.`);
|
|
89
|
-
inputs["addManifestPath"] = manifestPath;
|
|
90
|
-
context.logProvider.verbose(`Exposing web part with component id ${componentId} to remote manifest file under ${manifestPath}...`);
|
|
91
|
-
const remoteRes = await ManifestUtils_1.manifestUtils.addCapabilities.bind(ManifestUtils_1.manifestUtils)({ ...inputs, projectPath: context.projectPath }, [{ name: "staticTab", snippet: remoteStaticSnippet }]);
|
|
92
|
-
if (remoteRes.isErr())
|
|
93
|
-
throw remoteRes.error;
|
|
94
|
-
context.logProvider.verbose(`Succeeded to update remote manifest file.`);
|
|
95
|
-
context.ui?.showMessage("info", (0, localizeUtils_1.getLocalizedString)("driver.spfx.add.successNotice", webpartName), false);
|
|
96
|
-
return new Map();
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
exports.AddWebPartDriver = AddWebPartDriver;
|
|
100
|
-
tslib_1.__decorate([
|
|
101
|
-
(0, lib_1.hooks)([(0, addStartAndEndTelemetry_1.addStartAndEndTelemetry)(constants_3.Constants.ActionName, constants_3.Constants.ActionName)]),
|
|
102
|
-
tslib_1.__metadata("design:type", Function),
|
|
103
|
-
tslib_1.__metadata("design:paramtypes", [Object, Object]),
|
|
104
|
-
tslib_1.__metadata("design:returntype", Promise)
|
|
105
|
-
], AddWebPartDriver.prototype, "run", null);
|
|
106
|
-
exports.AddWebPartDriver = AddWebPartDriver = tslib_1.__decorate([
|
|
107
|
-
(0, typedi_1.Service)(constants_3.Constants.ActionName)
|
|
108
|
-
], AddWebPartDriver);
|
|
109
|
-
//# sourceMappingURL=addWebPart.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"addWebPart.js","sourceRoot":"","sources":["../../../../src/component/driver/add/addWebPart.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,+CAA8C;AAC9C,wDAAoF;AACpF,qDAA+B;AAC/B,wDAAwB;AACxB,mCAAiC;AACjC,mDAA6B;AAC7B,2DAA2D;AAC3D,iEAAmE;AACnE,2DAA4D;AAC5D,sEAAmE;AACnE,oEAAwE;AACxE,+CAA6C;AAG7C,mFAAgF;AAChF,mEAAgE;AAChE,+CAAqD;AACrD,uEAAoE;AAEpE,mDAAgD;AAGzC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,WAAW,GAAG,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AAO,CAAC,WAAW,CAAC,OAAO,CACzB,uCAAuC,WAAW,kCAAkC,YAAY,KAAK,CACtG,CAAC;QACF,MAAM,SAAS,GAAG,MAAM,6BAAa,CAAC,eAAe,CAAC,IAAI,CAAC,6BAAa,CAAC,CACvE,EAAE,GAAG,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,EAC/C,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC,CACtD,CAAC;QACF,IAAI,SAAS,CAAC,KAAK,EAAE;YAAE,MAAM,SAAS,CAAC,KAAK,CAAC;QAC7C,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,2CAA2C,CAAC,CAAC;QAEzE,OAAO,CAAC,EAAE,EAAE,WAAW,CACrB,MAAM,EACN,IAAA,kCAAkB,EAAC,+BAA+B,EAAE,WAAW,CAAC,EAChE,KAAK,CACN,CAAC;QACF,OAAO,IAAI,GAAG,EAAE,CAAC;IACnB,CAAC;CACF,CAAA;AA7GY,4CAAgB;AAId;IADZ,IAAA,WAAK,EAAC,CAAC,IAAA,iDAAuB,EAAC,qBAAS,CAAC,UAAU,EAAE,qBAAS,CAAC,UAAU,CAAC,CAAC,CAAC;;;;2CAO5E;2BAVU,gBAAgB;IAD5B,IAAA,gBAAO,EAAC,qBAAS,CAAC,UAAU,CAAC;GACjB,gBAAgB,CA6G5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"noConfigurationError.d.ts","sourceRoot":"","sources":["../../../../../src/component/driver/add/error/noConfigurationError.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAOnD,qBAAa,oBAAqB,SAAQ,SAAS;;CASlD"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.NoConfigurationError = void 0;
|
|
6
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
|
-
const localizeUtils_1 = require("../../../../common/localizeUtils");
|
|
8
|
-
const constants_1 = require("../utility/constants");
|
|
9
|
-
const errorCode = "NoConfigurationFile";
|
|
10
|
-
const messageKey = "plugins.spfx.error.noConfiguration";
|
|
11
|
-
class NoConfigurationError extends teamsfx_api_1.UserError {
|
|
12
|
-
constructor() {
|
|
13
|
-
super({
|
|
14
|
-
source: constants_1.Constants.ActionName,
|
|
15
|
-
name: errorCode,
|
|
16
|
-
message: (0, localizeUtils_1.getDefaultString)(messageKey),
|
|
17
|
-
displayMessage: (0, localizeUtils_1.getLocalizedString)(messageKey),
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.NoConfigurationError = NoConfigurationError;
|
|
22
|
-
//# sourceMappingURL=noConfigurationError.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"noConfigurationError.js","sourceRoot":"","sources":["../../../../../src/component/driver/add/error/noConfigurationError.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAAmD;AACnD,oEAAwF;AACxF,oDAAiD;AAEjD,MAAM,SAAS,GAAG,qBAAqB,CAAC;AACxC,MAAM,UAAU,GAAG,oCAAoC,CAAC;AAExD,MAAa,oBAAqB,SAAQ,uBAAS;IACjD;QACE,KAAK,CAAC;YACJ,MAAM,EAAE,qBAAS,CAAC,UAAU;YAC5B,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAA,gCAAgB,EAAC,UAAU,CAAC;YACrC,cAAc,EAAE,IAAA,kCAAkB,EAAC,UAAU,CAAC;SAC/C,CAAC,CAAC;IACL,CAAC;CACF;AATD,oDASC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export interface AddWebPartArgs {
|
|
2
|
-
/**
|
|
3
|
-
* Teams app manifest template path
|
|
4
|
-
*/
|
|
5
|
-
manifestPath: string;
|
|
6
|
-
/**
|
|
7
|
-
* Teams app manifest template path for local
|
|
8
|
-
*/
|
|
9
|
-
localManifestPath: string;
|
|
10
|
-
/**
|
|
11
|
-
* Newly added web part name
|
|
12
|
-
*/
|
|
13
|
-
webpartName: string;
|
|
14
|
-
/**
|
|
15
|
-
* Newly added web part framework, only needed for projects that're initially created by SPFx generator interactively
|
|
16
|
-
*/
|
|
17
|
-
framework?: string;
|
|
18
|
-
/**
|
|
19
|
-
* SPFx solution directory
|
|
20
|
-
*/
|
|
21
|
-
spfxFolder: string;
|
|
22
|
-
/**
|
|
23
|
-
* Whether use globally installed SPFx or locally installed SPFx
|
|
24
|
-
*/
|
|
25
|
-
spfxPackage: string;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=AddWebPartArgs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AddWebPartArgs.d.ts","sourceRoot":"","sources":["../../../../../src/component/driver/add/interface/AddWebPartArgs.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AddWebPartArgs.js","sourceRoot":"","sources":["../../../../../src/component/driver/add/interface/AddWebPartArgs.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare class Constants {
|
|
2
|
-
static readonly ActionName = "spfx/add";
|
|
3
|
-
static readonly LOCAL_CONTENT_URL = "https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest=/_layouts/15/TeamsWorkBench.aspx%3Fteams%26personal%26componentId=%s%26forceLocale={locale}%26loadSPFX%3Dtrue%26debugManifestsFile%3Dhttps%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fmanifests.js";
|
|
4
|
-
static readonly LOCAL_CONTENT_URL_NEW = "https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest=/_layouts/15/TeamsWorkBench.aspx%3Fteams%26personal%26componentId=%s%26forceLocale={locale}%26loadSPFX%3Dtrue%26debugManifestsFile%3Dhttps%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fbuild%2Fmanifests.js";
|
|
5
|
-
static readonly REMOTE_CONTENT_URL = "https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest=/_layouts/15/teamshostedapp.aspx%3Fteams%26personal%26componentId=%s%26forceLocale={locale}";
|
|
6
|
-
static readonly YO_RC_FILE = ".yo-rc.json";
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/component/driver/add/utility/constants.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IACpB,MAAM,CAAC,QAAQ,CAAC,UAAU,cAAc;IAExC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,mQACiO;IAClQ,MAAM,CAAC,QAAQ,CAAC,qBAAqB,2QACqO;IAC1Q,MAAM,CAAC,QAAQ,CAAC,kBAAkB,qKACkI;IACpK,MAAM,CAAC,QAAQ,CAAC,UAAU,iBAAiB;CAC5C"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Constants = void 0;
|
|
6
|
-
class Constants {
|
|
7
|
-
static ActionName = "spfx/add";
|
|
8
|
-
static LOCAL_CONTENT_URL = "https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest=/_layouts/15/TeamsWorkBench.aspx%3Fteams%26personal%26componentId=%s%26forceLocale={locale}%26loadSPFX%3Dtrue%26debugManifestsFile%3Dhttps%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fmanifests.js";
|
|
9
|
-
static LOCAL_CONTENT_URL_NEW = "https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest=/_layouts/15/TeamsWorkBench.aspx%3Fteams%26personal%26componentId=%s%26forceLocale={locale}%26loadSPFX%3Dtrue%26debugManifestsFile%3Dhttps%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fbuild%2Fmanifests.js";
|
|
10
|
-
static REMOTE_CONTENT_URL = "https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest=/_layouts/15/teamshostedapp.aspx%3Fteams%26personal%26componentId=%s%26forceLocale={locale}";
|
|
11
|
-
static YO_RC_FILE = ".yo-rc.json";
|
|
12
|
-
}
|
|
13
|
-
exports.Constants = Constants;
|
|
14
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/component/driver/add/utility/constants.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,MAAa,SAAS;IACpB,MAAM,CAAU,UAAU,GAAG,UAAU,CAAC;IAExC,MAAM,CAAU,iBAAiB,GAC/B,+PAA+P,CAAC;IAClQ,MAAM,CAAU,qBAAqB,GACnC,uQAAuQ,CAAC;IAC1Q,MAAM,CAAU,kBAAkB,GAChC,iKAAiK,CAAC;IACpK,MAAM,CAAU,UAAU,GAAG,aAAa,CAAC;;AAT7C,8BAUC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dependencyChecker.d.ts","sourceRoot":"","sources":["../../../../../src/component/generator/spfx/depsChecker/dependencyChecker.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dependencyChecker.js","sourceRoot":"","sources":["../../../../../src/component/generator/spfx/depsChecker/dependencyChecker.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Context, FxError, LogProvider, Result } from "@microsoft/teamsfx-api";
|
|
2
|
-
import { DependencyChecker } from "./dependencyChecker";
|
|
3
|
-
export declare class GeneratorChecker implements DependencyChecker {
|
|
4
|
-
private readonly _logger;
|
|
5
|
-
constructor(logger: LogProvider);
|
|
6
|
-
ensureDependency(ctx: Context, targetVersion: string): Promise<Result<boolean, FxError>>;
|
|
7
|
-
isLatestInstalled(loadedLatestVersion: string | undefined): Promise<boolean>;
|
|
8
|
-
findLocalInstalledVersion(): Promise<string | undefined>;
|
|
9
|
-
install(targetVersion: string): Promise<void>;
|
|
10
|
-
getSpGeneratorPath(): string;
|
|
11
|
-
findGloballyInstalledVersion(timeoutInSeconds?: number, shouldThrowIfNotFind?: boolean): Promise<string | undefined>;
|
|
12
|
-
findLatestVersion(timeoutInSeconds?: number): Promise<string | undefined>;
|
|
13
|
-
private validate;
|
|
14
|
-
private getDefaultInstallPath;
|
|
15
|
-
private getSentinelPath;
|
|
16
|
-
private queryVersion;
|
|
17
|
-
private cleanup;
|
|
18
|
-
private installGenerator;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=generatorChecker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generatorChecker.d.ts","sourceRoot":"","sources":["../../../../../src/component/generator/spfx/depsChecker/generatorChecker.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,OAAO,EAEP,OAAO,EACP,WAAW,EAEX,MAAM,EAGP,MAAM,wBAAwB,CAAC;AAWhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAMxD,qBAAa,gBAAiB,YAAW,iBAAiB;IACxD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAc;gBAE1B,MAAM,EAAE,WAAW;IAIlB,gBAAgB,CAC3B,GAAG,EAAE,OAAO,EACZ,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IA2BvB,iBAAiB,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC;IAU5E,yBAAyB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAUxD,OAAO,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAanD,kBAAkB,IAAI,MAAM;IAatB,4BAA4B,CACvC,gBAAgB,CAAC,EAAE,MAAM,EACzB,oBAAoB,CAAC,EAAE,OAAO,GAC7B,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IASjB,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;YAIxE,QAAQ;IAItB,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,eAAe;YAIT,YAAY;YAeZ,OAAO;YAeP,gBAAgB;CAuB/B"}
|