@microsoft/teamsfx 1.1.2-alpha.fe09f4739.0 → 1.1.2-rc-hotfix.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 +5 -76
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm2017.mjs +104 -382
- package/dist/index.esm2017.mjs.map +1 -1
- package/dist/index.esm5.js +5 -76
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +106 -390
- package/dist/index.node.cjs.js.map +1 -1
- package/package.json +3 -4
- package/types/teamsfx.d.ts +1 -202
package/dist/index.esm5.js
CHANGED
|
@@ -1278,9 +1278,8 @@ class TeamsFx {
|
|
|
1278
1278
|
this.configuration = new Map();
|
|
1279
1279
|
this.loadFromEnv();
|
|
1280
1280
|
if (customConfig) {
|
|
1281
|
-
const
|
|
1282
|
-
|
|
1283
|
-
const value = myConfig[key];
|
|
1281
|
+
for (const key of Object.keys(customConfig)) {
|
|
1282
|
+
const value = customConfig[key];
|
|
1284
1283
|
if (value) {
|
|
1285
1284
|
this.configuration.set(key, value);
|
|
1286
1285
|
}
|
|
@@ -1389,39 +1388,7 @@ var NotificationTargetType;
|
|
|
1389
1388
|
* The notification will be sent to a personal chat.
|
|
1390
1389
|
*/
|
|
1391
1390
|
NotificationTargetType["Person"] = "Person";
|
|
1392
|
-
})(NotificationTargetType || (NotificationTargetType = {}));
|
|
1393
|
-
/**
|
|
1394
|
-
* Options used to control how the response card will be sent to users.
|
|
1395
|
-
*/
|
|
1396
|
-
var AdaptiveCardResponse;
|
|
1397
|
-
(function (AdaptiveCardResponse) {
|
|
1398
|
-
/**
|
|
1399
|
-
* The response card will be replaced the current one for the interactor who trigger the action.
|
|
1400
|
-
*/
|
|
1401
|
-
AdaptiveCardResponse[AdaptiveCardResponse["ReplaceForInteractor"] = 0] = "ReplaceForInteractor";
|
|
1402
|
-
/**
|
|
1403
|
-
* The response card will be replaced the current one for all users in the chat.
|
|
1404
|
-
*/
|
|
1405
|
-
AdaptiveCardResponse[AdaptiveCardResponse["ReplaceForAll"] = 1] = "ReplaceForAll";
|
|
1406
|
-
/**
|
|
1407
|
-
* The response card will be sent as a new message for all users in the chat.
|
|
1408
|
-
*/
|
|
1409
|
-
AdaptiveCardResponse[AdaptiveCardResponse["NewForAll"] = 2] = "NewForAll";
|
|
1410
|
-
})(AdaptiveCardResponse || (AdaptiveCardResponse = {}));
|
|
1411
|
-
/**
|
|
1412
|
-
* Status code for an `application/vnd.microsoft.error` invoke response.
|
|
1413
|
-
*/
|
|
1414
|
-
var InvokeResponseErrorCode;
|
|
1415
|
-
(function (InvokeResponseErrorCode) {
|
|
1416
|
-
/**
|
|
1417
|
-
* Invalid request.
|
|
1418
|
-
*/
|
|
1419
|
-
InvokeResponseErrorCode[InvokeResponseErrorCode["BadRequest"] = 400] = "BadRequest";
|
|
1420
|
-
/**
|
|
1421
|
-
* Internal server error.
|
|
1422
|
-
*/
|
|
1423
|
-
InvokeResponseErrorCode[InvokeResponseErrorCode["InternalServerError"] = 500] = "InternalServerError";
|
|
1424
|
-
})(InvokeResponseErrorCode || (InvokeResponseErrorCode = {}));
|
|
1391
|
+
})(NotificationTargetType || (NotificationTargetType = {}));
|
|
1425
1392
|
|
|
1426
1393
|
// Copyright (c) Microsoft Corporation.
|
|
1427
1394
|
/**
|
|
@@ -1773,47 +1740,9 @@ class CommandBot {
|
|
|
1773
1740
|
* Only work on server side.
|
|
1774
1741
|
*/
|
|
1775
1742
|
registerCommands(commands) {
|
|
1776
|
-
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
/**
|
|
1781
|
-
* A card action bot to respond to adaptive card universal actions.
|
|
1782
|
-
*
|
|
1783
|
-
* @remarks
|
|
1784
|
-
* Only work on server side.
|
|
1785
|
-
*/
|
|
1786
|
-
class CardActionBot {
|
|
1787
|
-
/**
|
|
1788
|
-
* Creates a new instance of the `CardActionBot`.
|
|
1789
|
-
*
|
|
1790
|
-
* @param adapter The bound `BotFrameworkAdapter`.
|
|
1791
|
-
* @param options - initialize options
|
|
1792
|
-
*/
|
|
1793
|
-
constructor(adapter, options) {
|
|
1794
|
-
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CardActionBot"), ErrorCode.RuntimeNotSupported);
|
|
1795
|
-
}
|
|
1796
|
-
/**
|
|
1797
|
-
* Registers a card action handler to the bot.
|
|
1798
|
-
* @param actionHandler A card action handler to be registered.
|
|
1799
|
-
*
|
|
1800
|
-
* @remarks
|
|
1801
|
-
* Only work on server side.
|
|
1802
|
-
*/
|
|
1803
|
-
registerHandler(actionHandler) {
|
|
1804
|
-
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CardActionBot"), ErrorCode.RuntimeNotSupported);
|
|
1805
|
-
}
|
|
1806
|
-
/**
|
|
1807
|
-
* Registers card action handlers to the bot.
|
|
1808
|
-
* @param actionHandlers A set of card action handlers to be registered.
|
|
1809
|
-
*
|
|
1810
|
-
* @remarks
|
|
1811
|
-
* Only work on server side.
|
|
1812
|
-
*/
|
|
1813
|
-
registerHandlers(actionHandlers) {
|
|
1814
|
-
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CardActionBot"), ErrorCode.RuntimeNotSupported);
|
|
1743
|
+
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CommandnBot"), ErrorCode.RuntimeNotSupported);
|
|
1815
1744
|
}
|
|
1816
1745
|
}
|
|
1817
1746
|
|
|
1818
|
-
export {
|
|
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 };
|
|
1819
1748
|
//# sourceMappingURL=index.esm5.js.map
|