@microsoft/teamsfx 2.2.3-alpha.5a3b8a763.0 → 2.2.3-alpha.952007dba.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 +60 -60
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm2017.mjs +57 -41
- package/dist/index.esm2017.mjs.map +1 -1
- package/dist/index.esm5.js +42 -102
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +99 -95
- package/dist/index.node.cjs.js.map +1 -1
- package/package.json +4 -4
- package/types/teamsfx.d.ts +8 -1
package/dist/index.esm2017.js
CHANGED
@@ -441,8 +441,8 @@ class AppCredential {
|
|
441
441
|
* @remarks
|
442
442
|
* Only works in in server side.
|
443
443
|
*/
|
444
|
-
|
445
|
-
|
444
|
+
getToken(scopes, options) {
|
445
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "AppCredential"), ErrorCode.RuntimeNotSupported));
|
446
446
|
}
|
447
447
|
}
|
448
448
|
|
@@ -462,8 +462,8 @@ class OnBehalfOfUserCredential {
|
|
462
462
|
* @remarks
|
463
463
|
* Can only be used in server side.
|
464
464
|
*/
|
465
|
-
|
466
|
-
|
465
|
+
getToken(scopes, options) {
|
466
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "OnBehalfOfUserCredential"), ErrorCode.RuntimeNotSupported));
|
467
467
|
}
|
468
468
|
/**
|
469
469
|
* Get basic user info from SSO token.
|
@@ -471,7 +471,7 @@ class OnBehalfOfUserCredential {
|
|
471
471
|
* Can only be used in server side.
|
472
472
|
*/
|
473
473
|
getUserInfo() {
|
474
|
-
|
474
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "OnBehalfOfUserCredential"), ErrorCode.RuntimeNotSupported));
|
475
475
|
}
|
476
476
|
}
|
477
477
|
|
@@ -524,7 +524,7 @@ class TeamsUserCredential {
|
|
524
524
|
let result;
|
525
525
|
try {
|
526
526
|
const params = {
|
527
|
-
url: `${this.config.initiateLoginEndpoint}?clientId=${this.config.clientId}&scope=${encodeURI(scopesStr)}&loginHint=${this.loginHint}`,
|
527
|
+
url: `${this.config.initiateLoginEndpoint ? this.config.initiateLoginEndpoint : ""}?clientId=${this.config.clientId ? this.config.clientId : ""}&scope=${encodeURI(scopesStr)}&loginHint=${this.loginHint ? this.loginHint : ""}`,
|
528
528
|
width: loginPageWidth,
|
529
529
|
height: loginPageHeight,
|
530
530
|
};
|
@@ -818,7 +818,7 @@ class MsGraphAuthProvider {
|
|
818
818
|
*
|
819
819
|
*/
|
820
820
|
async getAccessToken() {
|
821
|
-
internalLogger.info(`Get Graph Access token with scopes: '${this.scopes}'`);
|
821
|
+
internalLogger.info(`Get Graph Access token with scopes: '${this.scopes.toString()}'`);
|
822
822
|
let accessToken;
|
823
823
|
if (this.credentialOrTeamsFx.getCredential) {
|
824
824
|
accessToken = await this.credentialOrTeamsFx
|
@@ -968,8 +968,8 @@ function createMicrosoftGraphClientWithCredential(credential, scopes) {
|
|
968
968
|
* @remarks
|
969
969
|
* Only works in in server side.
|
970
970
|
*/
|
971
|
-
|
972
|
-
|
971
|
+
function getTediousConnectionConfig(teamsfx, databaseName) {
|
972
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "DefaultTediousConnectionConfiguration"), ErrorCode.RuntimeNotSupported));
|
973
973
|
}
|
974
974
|
|
975
975
|
// Copyright (c) Microsoft Corporation.
|
@@ -1050,8 +1050,8 @@ class TeamsBotSsoPrompt {
|
|
1050
1050
|
*
|
1051
1051
|
* @returns A `Promise` representing the asynchronous operation.
|
1052
1052
|
*/
|
1053
|
-
|
1054
|
-
|
1053
|
+
beginDialog(dc) {
|
1054
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotSsoPrompt"), ErrorCode.RuntimeNotSupported));
|
1055
1055
|
}
|
1056
1056
|
/**
|
1057
1057
|
* Called when a prompt dialog is the active dialog and the user replied with a new activity.
|
@@ -1069,8 +1069,8 @@ class TeamsBotSsoPrompt {
|
|
1069
1069
|
* @throws {@link ErrorCode|ChannelNotSupported} when bot channel is not MS Teams.
|
1070
1070
|
* @throws {@link ErrorCode|RuntimeNotSupported} when runtime is browser.
|
1071
1071
|
*/
|
1072
|
-
|
1073
|
-
|
1072
|
+
continueDialog(dc) {
|
1073
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotSsoPrompt"), ErrorCode.RuntimeNotSupported));
|
1074
1074
|
}
|
1075
1075
|
}
|
1076
1076
|
|
@@ -1159,8 +1159,8 @@ class BasicAuthProvider {
|
|
1159
1159
|
* @throws {@link ErrorCode|AuthorizationInfoAlreadyExists} - when Authorization header or auth property already exists in request configuration.
|
1160
1160
|
* @throws {@link ErrorCode|RuntimeNotSupported} when runtime is browser.
|
1161
1161
|
*/
|
1162
|
-
|
1163
|
-
|
1162
|
+
AddAuthenticationInfo(config) {
|
1163
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "BasicAuthProvider"), ErrorCode.RuntimeNotSupported));
|
1164
1164
|
}
|
1165
1165
|
}
|
1166
1166
|
|
@@ -1192,8 +1192,8 @@ class ApiKeyProvider {
|
|
1192
1192
|
* @throws {@link ErrorCode|AuthorizationInfoAlreadyExists} - when API key already exists in request header or url query parameter.
|
1193
1193
|
* @throws {@link ErrorCode|RuntimeNotSupported} when runtime is browser.
|
1194
1194
|
*/
|
1195
|
-
|
1196
|
-
|
1195
|
+
AddAuthenticationInfo(config) {
|
1196
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "ApiKeyProvider"), ErrorCode.RuntimeNotSupported));
|
1197
1197
|
}
|
1198
1198
|
}
|
1199
1199
|
/**
|
@@ -1234,8 +1234,8 @@ class CertificateAuthProvider {
|
|
1234
1234
|
* @throws {@link ErrorCode|InvalidParameter} - when custom httpsAgent in the request has duplicate properties with certOption provided in constructor.
|
1235
1235
|
* @throws {@link ErrorCode|RuntimeNotSupported} when runtime is browser.
|
1236
1236
|
*/
|
1237
|
-
|
1238
|
-
|
1237
|
+
AddAuthenticationInfo(config) {
|
1238
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CertificateAuthProvider"), ErrorCode.RuntimeNotSupported));
|
1239
1239
|
}
|
1240
1240
|
}
|
1241
1241
|
/**
|
@@ -1477,7 +1477,7 @@ class ConversationBot$1 {
|
|
1477
1477
|
* @remarks
|
1478
1478
|
* Only work on server side.
|
1479
1479
|
*/
|
1480
|
-
|
1480
|
+
requestHandler(req, res, logic) {
|
1481
1481
|
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "ConversationBot"), ErrorCode.RuntimeNotSupported);
|
1482
1482
|
}
|
1483
1483
|
}
|
@@ -1599,7 +1599,7 @@ class Channel$1 {
|
|
1599
1599
|
* @param onError - an optional error handler that can catch exceptions during adaptive card sending.
|
1600
1600
|
* @returns the response of sending adaptive card message.
|
1601
1601
|
*/
|
1602
|
-
|
1602
|
+
sendAdaptiveCard(card, onError) {
|
1603
1603
|
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Channel"), ErrorCode.RuntimeNotSupported);
|
1604
1604
|
}
|
1605
1605
|
}
|
@@ -1656,7 +1656,7 @@ class Member$1 {
|
|
1656
1656
|
* @param onError - an optional error handler that can catch exceptions during adaptive card sending.
|
1657
1657
|
* @returns the response of sending adaptive card message.
|
1658
1658
|
*/
|
1659
|
-
|
1659
|
+
sendAdaptiveCard(card, onError) {
|
1660
1660
|
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Member"), ErrorCode.RuntimeNotSupported);
|
1661
1661
|
}
|
1662
1662
|
}
|
@@ -1723,7 +1723,7 @@ class TeamsBotInstallation$1 {
|
|
1723
1723
|
*
|
1724
1724
|
* @returns an array of channels if bot is installed into a team, otherwise returns an empty array.
|
1725
1725
|
*/
|
1726
|
-
|
1726
|
+
channels() {
|
1727
1727
|
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported);
|
1728
1728
|
}
|
1729
1729
|
/**
|
@@ -1734,7 +1734,7 @@ class TeamsBotInstallation$1 {
|
|
1734
1734
|
*
|
1735
1735
|
* @returns an array of members from where the bot is installed.
|
1736
1736
|
*/
|
1737
|
-
|
1737
|
+
members() {
|
1738
1738
|
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported);
|
1739
1739
|
}
|
1740
1740
|
/**
|
@@ -1742,7 +1742,7 @@ class TeamsBotInstallation$1 {
|
|
1742
1742
|
*
|
1743
1743
|
* @returns the team details if bot is installed into a team, otherwise returns undefined.
|
1744
1744
|
*/
|
1745
|
-
|
1745
|
+
getTeamDetails() {
|
1746
1746
|
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported);
|
1747
1747
|
}
|
1748
1748
|
}
|
@@ -1799,7 +1799,7 @@ class NotificationBot$1 {
|
|
1799
1799
|
*
|
1800
1800
|
* @returns - an array of {@link TeamsBotInstallation}.
|
1801
1801
|
*/
|
1802
|
-
static
|
1802
|
+
static installations() {
|
1803
1803
|
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "NotificationBot"), ErrorCode.RuntimeNotSupported);
|
1804
1804
|
}
|
1805
1805
|
/**
|
@@ -1815,7 +1815,7 @@ class NotificationBot$1 {
|
|
1815
1815
|
* (personal chat, group chat, Teams channel).
|
1816
1816
|
* @returns the first {@link Member} where predicate is true, and undefined otherwise.
|
1817
1817
|
*/
|
1818
|
-
|
1818
|
+
findMember(predicate, scope) {
|
1819
1819
|
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "NotificationBot"), ErrorCode.RuntimeNotSupported);
|
1820
1820
|
}
|
1821
1821
|
/**
|
@@ -1830,7 +1830,7 @@ class NotificationBot$1 {
|
|
1830
1830
|
* immediately returns that channel. Otherwise, find returns undefined.
|
1831
1831
|
* @returns the first {@link Channel} where predicate is true, and undefined otherwise.
|
1832
1832
|
*/
|
1833
|
-
|
1833
|
+
findChannel(predicate) {
|
1834
1834
|
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "NotificationBot"), ErrorCode.RuntimeNotSupported);
|
1835
1835
|
}
|
1836
1836
|
/**
|
@@ -1844,7 +1844,7 @@ class NotificationBot$1 {
|
|
1844
1844
|
* (personal chat, group chat, Teams channel).
|
1845
1845
|
* @returns an array of {@link Member} where predicate is true, and empty array otherwise.
|
1846
1846
|
*/
|
1847
|
-
|
1847
|
+
findAllMembers(predicate, scope) {
|
1848
1848
|
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "NotificationBot"), ErrorCode.RuntimeNotSupported);
|
1849
1849
|
}
|
1850
1850
|
/**
|
@@ -1857,7 +1857,7 @@ class NotificationBot$1 {
|
|
1857
1857
|
* @param predicate find calls predicate for each channel of the installation.
|
1858
1858
|
* @returns an array of {@link Channel} where predicate is true, and empty array otherwise.
|
1859
1859
|
*/
|
1860
|
-
|
1860
|
+
findAllChannels(predicate) {
|
1861
1861
|
throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "NotificationBot"), ErrorCode.RuntimeNotSupported);
|
1862
1862
|
}
|
1863
1863
|
}
|
@@ -2035,8 +2035,8 @@ class ConversationBot {
|
|
2035
2035
|
* @remarks
|
2036
2036
|
* Only work on server side.
|
2037
2037
|
*/
|
2038
|
-
|
2039
|
-
|
2038
|
+
requestHandler(req, res, logic) {
|
2039
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "ConversationBot"), ErrorCode.RuntimeNotSupported));
|
2040
2040
|
}
|
2041
2041
|
}
|
2042
2042
|
|
@@ -2054,7 +2054,7 @@ class ConversationBot {
|
|
2054
2054
|
* @returns A `Promise` representing the asynchronous operation.
|
2055
2055
|
*/
|
2056
2056
|
function sendMessage(target, text, onError) {
|
2057
|
-
|
2057
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "sendMessage"), ErrorCode.RuntimeNotSupported));
|
2058
2058
|
}
|
2059
2059
|
/**
|
2060
2060
|
* Send an adaptive card message to a notification target.
|
@@ -2069,7 +2069,7 @@ function sendMessage(target, text, onError) {
|
|
2069
2069
|
* @returns A `Promise` representing the asynchronous operation.
|
2070
2070
|
*/
|
2071
2071
|
function sendAdaptiveCard(target, card, onError) {
|
2072
|
-
|
2072
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "sendAdaptiveCard"), ErrorCode.RuntimeNotSupported));
|
2073
2073
|
}
|
2074
2074
|
/**
|
2075
2075
|
* A {@link NotificationTarget} that represents a team channel.
|
@@ -2113,7 +2113,7 @@ class Channel {
|
|
2113
2113
|
* @returns The response of sending message.
|
2114
2114
|
*/
|
2115
2115
|
sendMessage(text, onError) {
|
2116
|
-
|
2116
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Channel"), ErrorCode.RuntimeNotSupported));
|
2117
2117
|
}
|
2118
2118
|
/**
|
2119
2119
|
* Send an adaptive card message.
|
@@ -2126,8 +2126,8 @@ class Channel {
|
|
2126
2126
|
*
|
2127
2127
|
* @returns The response of sending adaptive card message.
|
2128
2128
|
*/
|
2129
|
-
|
2130
|
-
|
2129
|
+
sendAdaptiveCard(card, onError) {
|
2130
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Channel"), ErrorCode.RuntimeNotSupported));
|
2131
2131
|
}
|
2132
2132
|
}
|
2133
2133
|
/**
|
@@ -2172,7 +2172,7 @@ class Member {
|
|
2172
2172
|
* @returns The response of sending message.
|
2173
2173
|
*/
|
2174
2174
|
sendMessage(text, onError) {
|
2175
|
-
|
2175
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Member"), ErrorCode.RuntimeNotSupported));
|
2176
2176
|
}
|
2177
2177
|
/**
|
2178
2178
|
* Send an adaptive card message.
|
@@ -2185,8 +2185,8 @@ class Member {
|
|
2185
2185
|
*
|
2186
2186
|
* @returns The response of sending adaptive card message.
|
2187
2187
|
*/
|
2188
|
-
|
2189
|
-
|
2188
|
+
sendAdaptiveCard(card, onError) {
|
2189
|
+
return Promise.reject(Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Member"), ErrorCode.RuntimeNotSupported)));
|
2190
2190
|
}
|
2191
2191
|
}
|
2192
2192
|
/**
|
@@ -2227,7 +2227,7 @@ class TeamsBotInstallation {
|
|
2227
2227
|
* @returns The response of sending message.
|
2228
2228
|
*/
|
2229
2229
|
sendMessage(text, onError) {
|
2230
|
-
|
2230
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported));
|
2231
2231
|
}
|
2232
2232
|
/**
|
2233
2233
|
* Send an adaptive card message.
|
@@ -2241,7 +2241,7 @@ class TeamsBotInstallation {
|
|
2241
2241
|
* @returns The response of sending adaptive card message.
|
2242
2242
|
*/
|
2243
2243
|
sendAdaptiveCard(card, onError) {
|
2244
|
-
|
2244
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported));
|
2245
2245
|
}
|
2246
2246
|
/**
|
2247
2247
|
* Get channels from this bot installation.
|
@@ -2251,8 +2251,8 @@ class TeamsBotInstallation {
|
|
2251
2251
|
*
|
2252
2252
|
* @returns An array of channels if bot is installed into a team, otherwise returns an empty array.
|
2253
2253
|
*/
|
2254
|
-
|
2255
|
-
|
2254
|
+
channels() {
|
2255
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported));
|
2256
2256
|
}
|
2257
2257
|
/**
|
2258
2258
|
* Get members from this bot installation.
|
@@ -2262,16 +2262,16 @@ class TeamsBotInstallation {
|
|
2262
2262
|
*
|
2263
2263
|
* @returns An array of members from where the bot is installed.
|
2264
2264
|
*/
|
2265
|
-
|
2266
|
-
|
2265
|
+
members() {
|
2266
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported));
|
2267
2267
|
}
|
2268
2268
|
/**
|
2269
2269
|
* Get team details from this bot installation
|
2270
2270
|
*
|
2271
2271
|
* @returns The team details if bot is installed into a team, otherwise returns undefined.
|
2272
2272
|
*/
|
2273
|
-
|
2274
|
-
|
2273
|
+
getTeamDetails() {
|
2274
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported));
|
2275
2275
|
}
|
2276
2276
|
}
|
2277
2277
|
/**
|
@@ -2324,8 +2324,8 @@ class NotificationBot {
|
|
2324
2324
|
*
|
2325
2325
|
* @returns An array of {@link TeamsBotInstallation}.
|
2326
2326
|
*/
|
2327
|
-
static
|
2328
|
-
|
2327
|
+
static installations() {
|
2328
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "NotificationBot"), ErrorCode.RuntimeNotSupported));
|
2329
2329
|
}
|
2330
2330
|
/**
|
2331
2331
|
* Return the first {@link Member} where predicate is true, and undefined otherwise.
|
@@ -2340,8 +2340,8 @@ class NotificationBot {
|
|
2340
2340
|
*
|
2341
2341
|
* @returns The first {@link Member} where predicate is true, and undefined otherwise.
|
2342
2342
|
*/
|
2343
|
-
|
2344
|
-
|
2343
|
+
findMember(predicate, scope) {
|
2344
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "NotificationBot"), ErrorCode.RuntimeNotSupported));
|
2345
2345
|
}
|
2346
2346
|
/**
|
2347
2347
|
* Return the first {@link Channel} where predicate is true, and undefined otherwise.
|
@@ -2356,8 +2356,8 @@ class NotificationBot {
|
|
2356
2356
|
*
|
2357
2357
|
* @returns The first {@link Channel} where predicate is true, and `undefined` otherwise.
|
2358
2358
|
*/
|
2359
|
-
|
2360
|
-
|
2359
|
+
findChannel(predicate) {
|
2360
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "NotificationBot"), ErrorCode.RuntimeNotSupported));
|
2361
2361
|
}
|
2362
2362
|
/**
|
2363
2363
|
* Return all {@link Member} where predicate is true, and empty array otherwise.
|
@@ -2371,8 +2371,8 @@ class NotificationBot {
|
|
2371
2371
|
*
|
2372
2372
|
* @returns An array of {@link Member} where predicate is true, and empty array otherwise.
|
2373
2373
|
*/
|
2374
|
-
|
2375
|
-
|
2374
|
+
findAllMembers(predicate, scope) {
|
2375
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "NotificationBot"), ErrorCode.RuntimeNotSupported));
|
2376
2376
|
}
|
2377
2377
|
/**
|
2378
2378
|
* Return all {@link Channel} where predicate is true, and empty array otherwise.
|
@@ -2385,8 +2385,8 @@ class NotificationBot {
|
|
2385
2385
|
*
|
2386
2386
|
* @returns An array of {@link Channel} where predicate is true, and empty array otherwise.
|
2387
2387
|
*/
|
2388
|
-
|
2389
|
-
|
2388
|
+
findAllChannels(predicate) {
|
2389
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "NotificationBot"), ErrorCode.RuntimeNotSupported));
|
2390
2390
|
}
|
2391
2391
|
}
|
2392
2392
|
/**
|
@@ -2496,7 +2496,7 @@ class CardActionBot {
|
|
2496
2496
|
* Only work on server side.
|
2497
2497
|
*/
|
2498
2498
|
registerHandler(actionHandler) {
|
2499
|
-
|
2499
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CardActionBot"), ErrorCode.RuntimeNotSupported));
|
2500
2500
|
}
|
2501
2501
|
/**
|
2502
2502
|
* Register card action handlers to the bot.
|
@@ -2507,7 +2507,7 @@ class CardActionBot {
|
|
2507
2507
|
* Only work on server side.
|
2508
2508
|
*/
|
2509
2509
|
registerHandlers(actionHandlers) {
|
2510
|
-
|
2510
|
+
return Promise.reject(new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "CardActionBot"), ErrorCode.RuntimeNotSupported));
|
2511
2511
|
}
|
2512
2512
|
}
|
2513
2513
|
|