@microsoft/teamsfx 1.1.2-alpha.062e4a5ea.0 → 1.1.2-alpha.a639d9f2e.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/dist/index.esm2017.js +73 -3
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm2017.mjs +379 -102
- package/dist/index.esm2017.mjs.map +1 -1
- package/dist/index.esm5.js +73 -3
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +387 -104
- package/dist/index.node.cjs.js.map +1 -1
- package/package.json +4 -3
- package/types/teamsfx.d.ts +201 -0
package/dist/index.esm5.js
CHANGED
|
@@ -1388,7 +1388,39 @@ var NotificationTargetType;
|
|
|
1388
1388
|
* The notification will be sent to a personal chat.
|
|
1389
1389
|
*/
|
|
1390
1390
|
NotificationTargetType["Person"] = "Person";
|
|
1391
|
-
})(NotificationTargetType || (NotificationTargetType = {}));
|
|
1391
|
+
})(NotificationTargetType || (NotificationTargetType = {}));
|
|
1392
|
+
/**
|
|
1393
|
+
* Options used to control how the response card will be sent to users.
|
|
1394
|
+
*/
|
|
1395
|
+
var AdaptiveCardResponse;
|
|
1396
|
+
(function (AdaptiveCardResponse) {
|
|
1397
|
+
/**
|
|
1398
|
+
* The response card will be replaced the current one for the interactor who trigger the action.
|
|
1399
|
+
*/
|
|
1400
|
+
AdaptiveCardResponse[AdaptiveCardResponse["ReplaceForInteractor"] = 0] = "ReplaceForInteractor";
|
|
1401
|
+
/**
|
|
1402
|
+
* The response card will be replaced the current one for all users in the chat.
|
|
1403
|
+
*/
|
|
1404
|
+
AdaptiveCardResponse[AdaptiveCardResponse["ReplaceForAll"] = 1] = "ReplaceForAll";
|
|
1405
|
+
/**
|
|
1406
|
+
* The response card will be sent as a new message for all users in the chat.
|
|
1407
|
+
*/
|
|
1408
|
+
AdaptiveCardResponse[AdaptiveCardResponse["NewForAll"] = 2] = "NewForAll";
|
|
1409
|
+
})(AdaptiveCardResponse || (AdaptiveCardResponse = {}));
|
|
1410
|
+
/**
|
|
1411
|
+
* Status code for an `application/vnd.microsoft.error` invoke response.
|
|
1412
|
+
*/
|
|
1413
|
+
var InvokeResponseErrorCode;
|
|
1414
|
+
(function (InvokeResponseErrorCode) {
|
|
1415
|
+
/**
|
|
1416
|
+
* Invalid request.
|
|
1417
|
+
*/
|
|
1418
|
+
InvokeResponseErrorCode[InvokeResponseErrorCode["BadRequest"] = 400] = "BadRequest";
|
|
1419
|
+
/**
|
|
1420
|
+
* Internal server error.
|
|
1421
|
+
*/
|
|
1422
|
+
InvokeResponseErrorCode[InvokeResponseErrorCode["InternalServerError"] = 500] = "InternalServerError";
|
|
1423
|
+
})(InvokeResponseErrorCode || (InvokeResponseErrorCode = {}));
|
|
1392
1424
|
|
|
1393
1425
|
// Copyright (c) Microsoft Corporation.
|
|
1394
1426
|
/**
|
|
@@ -1740,9 +1772,47 @@ class CommandBot {
|
|
|
1740
1772
|
* Only work on server side.
|
|
1741
1773
|
*/
|
|
1742
1774
|
registerCommands(commands) {
|
|
1743
|
-
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "
|
|
1775
|
+
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CommandBot"), ErrorCode.RuntimeNotSupported);
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
/**
|
|
1780
|
+
* A card action bot to respond to adaptive card universal actions.
|
|
1781
|
+
*
|
|
1782
|
+
* @remarks
|
|
1783
|
+
* Only work on server side.
|
|
1784
|
+
*/
|
|
1785
|
+
class CardActionBot {
|
|
1786
|
+
/**
|
|
1787
|
+
* Creates a new instance of the `CardActionBot`.
|
|
1788
|
+
*
|
|
1789
|
+
* @param adapter The bound `BotFrameworkAdapter`.
|
|
1790
|
+
* @param options - initialize options
|
|
1791
|
+
*/
|
|
1792
|
+
constructor(adapter, options) {
|
|
1793
|
+
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CardActionBot"), ErrorCode.RuntimeNotSupported);
|
|
1794
|
+
}
|
|
1795
|
+
/**
|
|
1796
|
+
* Registers a card action handler to the bot.
|
|
1797
|
+
* @param actionHandler A card action handler to be registered.
|
|
1798
|
+
*
|
|
1799
|
+
* @remarks
|
|
1800
|
+
* Only work on server side.
|
|
1801
|
+
*/
|
|
1802
|
+
registerHandler(actionHandler) {
|
|
1803
|
+
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CardActionBot"), ErrorCode.RuntimeNotSupported);
|
|
1804
|
+
}
|
|
1805
|
+
/**
|
|
1806
|
+
* Registers card action handlers to the bot.
|
|
1807
|
+
* @param actionHandlers A set of card action handlers to be registered.
|
|
1808
|
+
*
|
|
1809
|
+
* @remarks
|
|
1810
|
+
* Only work on server side.
|
|
1811
|
+
*/
|
|
1812
|
+
registerHandlers(actionHandlers) {
|
|
1813
|
+
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CardActionBot"), ErrorCode.RuntimeNotSupported);
|
|
1744
1814
|
}
|
|
1745
1815
|
}
|
|
1746
1816
|
|
|
1747
|
-
export { ApiKeyLocation, ApiKeyProvider, AppCredential, BasicAuthProvider, BearerTokenAuthProvider, CertificateAuthProvider, Channel, CommandBot, ConversationBot, ErrorCode, ErrorWithCode, IdentityType, LogLevel, Member, MsGraphAuthProvider, NotificationBot, NotificationTargetType, OnBehalfOfUserCredential, TeamsBotInstallation, TeamsBotSsoPrompt, TeamsFx, TeamsUserCredential, createApiClient, createMicrosoftGraphClient, createPemCertOption, createPfxCertOption, getLogLevel, getTediousConnectionConfig, sendAdaptiveCard, sendMessage, setLogFunction, setLogLevel, setLogger };
|
|
1817
|
+
export { AdaptiveCardResponse, ApiKeyLocation, ApiKeyProvider, AppCredential, BasicAuthProvider, BearerTokenAuthProvider, CardActionBot, CertificateAuthProvider, Channel, CommandBot, ConversationBot, ErrorCode, ErrorWithCode, IdentityType, InvokeResponseErrorCode, LogLevel, Member, MsGraphAuthProvider, NotificationBot, NotificationTargetType, OnBehalfOfUserCredential, TeamsBotInstallation, TeamsBotSsoPrompt, TeamsFx, TeamsUserCredential, createApiClient, createMicrosoftGraphClient, createPemCertOption, createPfxCertOption, getLogLevel, getTediousConnectionConfig, sendAdaptiveCard, sendMessage, setLogFunction, setLogLevel, setLogger };
|
|
1748
1818
|
//# sourceMappingURL=index.esm5.js.map
|