@microsoft/teamsfx 1.1.2-alpha.062e4a5ea.0 → 1.1.2-alpha.3113a0b87.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.esm2017.js
CHANGED
|
@@ -1353,7 +1353,39 @@ var NotificationTargetType;
|
|
|
1353
1353
|
* The notification will be sent to a personal chat.
|
|
1354
1354
|
*/
|
|
1355
1355
|
NotificationTargetType["Person"] = "Person";
|
|
1356
|
-
})(NotificationTargetType || (NotificationTargetType = {}));
|
|
1356
|
+
})(NotificationTargetType || (NotificationTargetType = {}));
|
|
1357
|
+
/**
|
|
1358
|
+
* Options used to control how the response card will be sent to users.
|
|
1359
|
+
*/
|
|
1360
|
+
var AdaptiveCardResponse;
|
|
1361
|
+
(function (AdaptiveCardResponse) {
|
|
1362
|
+
/**
|
|
1363
|
+
* The response card will be replaced the current one for the interactor who trigger the action.
|
|
1364
|
+
*/
|
|
1365
|
+
AdaptiveCardResponse[AdaptiveCardResponse["ReplaceForInteractor"] = 0] = "ReplaceForInteractor";
|
|
1366
|
+
/**
|
|
1367
|
+
* The response card will be replaced the current one for all users in the chat.
|
|
1368
|
+
*/
|
|
1369
|
+
AdaptiveCardResponse[AdaptiveCardResponse["ReplaceForAll"] = 1] = "ReplaceForAll";
|
|
1370
|
+
/**
|
|
1371
|
+
* The response card will be sent as a new message for all users in the chat.
|
|
1372
|
+
*/
|
|
1373
|
+
AdaptiveCardResponse[AdaptiveCardResponse["NewForAll"] = 2] = "NewForAll";
|
|
1374
|
+
})(AdaptiveCardResponse || (AdaptiveCardResponse = {}));
|
|
1375
|
+
/**
|
|
1376
|
+
* Status code for an `application/vnd.microsoft.error` invoke response.
|
|
1377
|
+
*/
|
|
1378
|
+
var InvokeResponseErrorCode;
|
|
1379
|
+
(function (InvokeResponseErrorCode) {
|
|
1380
|
+
/**
|
|
1381
|
+
* Invalid request.
|
|
1382
|
+
*/
|
|
1383
|
+
InvokeResponseErrorCode[InvokeResponseErrorCode["BadRequest"] = 400] = "BadRequest";
|
|
1384
|
+
/**
|
|
1385
|
+
* Internal server error.
|
|
1386
|
+
*/
|
|
1387
|
+
InvokeResponseErrorCode[InvokeResponseErrorCode["InternalServerError"] = 500] = "InternalServerError";
|
|
1388
|
+
})(InvokeResponseErrorCode || (InvokeResponseErrorCode = {}));
|
|
1357
1389
|
|
|
1358
1390
|
// Copyright (c) Microsoft Corporation.
|
|
1359
1391
|
/**
|
|
@@ -1693,9 +1725,47 @@ class CommandBot {
|
|
|
1693
1725
|
* Only work on server side.
|
|
1694
1726
|
*/
|
|
1695
1727
|
registerCommands(commands) {
|
|
1696
|
-
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "
|
|
1728
|
+
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CommandBot"), ErrorCode.RuntimeNotSupported);
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
/**
|
|
1733
|
+
* A card action bot to respond to adaptive card universal actions.
|
|
1734
|
+
*
|
|
1735
|
+
* @remarks
|
|
1736
|
+
* Only work on server side.
|
|
1737
|
+
*/
|
|
1738
|
+
class CardActionBot {
|
|
1739
|
+
/**
|
|
1740
|
+
* Creates a new instance of the `CardActionBot`.
|
|
1741
|
+
*
|
|
1742
|
+
* @param adapter The bound `BotFrameworkAdapter`.
|
|
1743
|
+
* @param options - initialize options
|
|
1744
|
+
*/
|
|
1745
|
+
constructor(adapter, options) {
|
|
1746
|
+
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CardActionBot"), ErrorCode.RuntimeNotSupported);
|
|
1747
|
+
}
|
|
1748
|
+
/**
|
|
1749
|
+
* Registers a card action handler to the bot.
|
|
1750
|
+
* @param actionHandler A card action handler to be registered.
|
|
1751
|
+
*
|
|
1752
|
+
* @remarks
|
|
1753
|
+
* Only work on server side.
|
|
1754
|
+
*/
|
|
1755
|
+
registerHandler(actionHandler) {
|
|
1756
|
+
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CardActionBot"), ErrorCode.RuntimeNotSupported);
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
* Registers card action handlers to the bot.
|
|
1760
|
+
* @param actionHandlers A set of card action handlers to be registered.
|
|
1761
|
+
*
|
|
1762
|
+
* @remarks
|
|
1763
|
+
* Only work on server side.
|
|
1764
|
+
*/
|
|
1765
|
+
registerHandlers(actionHandlers) {
|
|
1766
|
+
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CardActionBot"), ErrorCode.RuntimeNotSupported);
|
|
1697
1767
|
}
|
|
1698
1768
|
}
|
|
1699
1769
|
|
|
1700
|
-
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 };
|
|
1770
|
+
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 };
|
|
1701
1771
|
//# sourceMappingURL=index.esm2017.js.map
|