@microsoft/teamsfx 2.2.3-alpha.2fdf2b99b.0 → 2.2.3-alpha.5925cbfed.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 +162 -113
- package/dist/index.esm2017.js +22 -0
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm2017.mjs +22 -1
- package/dist/index.esm2017.mjs.map +1 -1
- package/dist/index.esm5.js +22 -0
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +22 -1
- package/dist/index.node.cjs.js.map +1 -1
- package/package.json +3 -4
- package/types/teamsfx.d.ts +24 -1
package/dist/index.esm2017.mjs
CHANGED
@@ -740,8 +740,10 @@ class TeamsUserCredential {
|
|
740
740
|
|
741
741
|
// Copyright (c) Microsoft Corporation.
|
742
742
|
const defaultScope = "https://graph.microsoft.com/.default";
|
743
|
+
// eslint-disable-next-line no-secrets/no-secrets
|
743
744
|
/**
|
744
745
|
* Microsoft Graph auth provider for Teams Framework
|
746
|
+
* @deprecated Use `TokenCredentialAuthenticationProvider` from `@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials` instead.
|
745
747
|
*/
|
746
748
|
class MsGraphAuthProvider {
|
747
749
|
constructor(credentialOrTeamsFx, scopes) {
|
@@ -796,6 +798,14 @@ class MsGraphAuthProvider {
|
|
796
798
|
// Copyright (c) Microsoft Corporation.
|
797
799
|
/**
|
798
800
|
* Get Microsoft graph client.
|
801
|
+
* @deprecated Use `TokenCredentialAuthenticationProvider` and `Client.initWithMiddleware` instead.
|
802
|
+
* ```typescript
|
803
|
+
* const authProvider = new TokenCredentialAuthenticationProvider(credential, { scopes: scope });
|
804
|
+
* const graph = Client.initWithMiddleware({
|
805
|
+
* authProvider: authProvider,
|
806
|
+
* });
|
807
|
+
* ```
|
808
|
+
*
|
799
809
|
* @example
|
800
810
|
* Get Microsoft graph client by TokenCredential
|
801
811
|
* ```typescript
|
@@ -853,6 +863,14 @@ function createMicrosoftGraphClient(teamsfx, scopes) {
|
|
853
863
|
// eslint-disable-next-line no-secrets/no-secrets
|
854
864
|
/**
|
855
865
|
* Get Microsoft graph client.
|
866
|
+
* @deprecated Use `TokenCredentialAuthenticationProvider` and `Client.initWithMiddleware` instead.
|
867
|
+
* ```typescript
|
868
|
+
* const authProvider = new TokenCredentialAuthenticationProvider(credential, { scopes: scope });
|
869
|
+
* const graph = Client.initWithMiddleware({
|
870
|
+
* authProvider: authProvider,
|
871
|
+
* });
|
872
|
+
* ```
|
873
|
+
*
|
856
874
|
* @example
|
857
875
|
* Get Microsoft graph client by TokenCredential
|
858
876
|
* ```typescript
|
@@ -1736,6 +1754,8 @@ const ReservedKey = new Set([
|
|
1736
1754
|
]);
|
1737
1755
|
/**
|
1738
1756
|
* A class providing credential and configuration.
|
1757
|
+
* @deprecated Please use {@link TeamsUserCredential}
|
1758
|
+
* in browser environment and {@link OnBehalfOfUserCredential} or {@link AppCredential} in NodeJS.
|
1739
1759
|
*/
|
1740
1760
|
class TeamsFx {
|
1741
1761
|
/**
|
@@ -3926,6 +3946,7 @@ async function executionWithTokenAndConfig(context, authConfig, initiateLoginEnd
|
|
3926
3946
|
}
|
3927
3947
|
/**
|
3928
3948
|
* execution in message extension with SSO token.
|
3949
|
+
* @deprecated Use {@link executionWithTokenAndConfig} instead.
|
3929
3950
|
*
|
3930
3951
|
* @param {TurnContext} context - The context object for the current turn.
|
3931
3952
|
* @param {AuthenticationConfiguration} config - User custom the message extension authentication configuration.
|
@@ -3974,7 +3995,7 @@ async function executionWithToken(context, config, scopes, logic) {
|
|
3974
3995
|
// eslint-disable-next-line no-secrets/no-secrets
|
3975
3996
|
/**
|
3976
3997
|
* Users execute query in message extension with SSO or access token.
|
3977
|
-
*
|
3998
|
+
* @deprecated Use {@link handleMessageExtensionQueryWithSSO} instead.
|
3978
3999
|
*
|
3979
4000
|
* @param {TurnContext} context - The context object for the current turn.
|
3980
4001
|
* @param {AuthenticationConfiguration} config - User custom the message extension authentication configuration.
|