@microsoft/teamsfx 1.0.3-alpha.d3b2c316c.0 → 1.0.3-alpha.dad1471c2.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.
@@ -1328,6 +1328,33 @@ class TeamsFx {
1328
1328
  }
1329
1329
  }
1330
1330
 
1331
+ // Copyright (c) Microsoft Corporation.
1332
+ // Licensed under the MIT license.
1333
+ /**
1334
+ * The target type where the notification will be sent to.
1335
+ *
1336
+ * @remarks
1337
+ * - "Channel" means to a team channel. (By default, notification to a team will be sent to its "General" channel.)
1338
+ * - "Group" means to a group chat.
1339
+ * - "Person" means to a personal chat.
1340
+ */
1341
+ var NotificationTargetType;
1342
+ (function (NotificationTargetType) {
1343
+ /**
1344
+ * The notification will be sent to a team channel.
1345
+ * (By default, notification to a team will be sent to its "General" channel.)
1346
+ */
1347
+ NotificationTargetType["Channel"] = "Channel";
1348
+ /**
1349
+ * The notification will be sent to a group chat.
1350
+ */
1351
+ NotificationTargetType["Group"] = "Group";
1352
+ /**
1353
+ * The notification will be sent to a personal chat.
1354
+ */
1355
+ NotificationTargetType["Person"] = "Person";
1356
+ })(NotificationTargetType || (NotificationTargetType = {}));
1357
+
1331
1358
  // Copyright (c) Microsoft Corporation.
1332
1359
  /**
1333
1360
  * Provide utilities for bot conversation, including:
@@ -1418,7 +1445,7 @@ class Channel {
1418
1445
  * @remarks
1419
1446
  * Only work on server side.
1420
1447
  */
1421
- this.type = "Channel";
1448
+ this.type = NotificationTargetType.Channel;
1422
1449
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Channel"), ErrorCode.RuntimeNotSupported);
1423
1450
  }
1424
1451
  /**
@@ -1428,7 +1455,7 @@ class Channel {
1428
1455
  * Only work on server side.
1429
1456
  *
1430
1457
  * @param text - the plain text message.
1431
- * @returns A `Promise` representing the asynchronous operation.
1458
+ * @returns the response of sending message.
1432
1459
  */
1433
1460
  sendMessage(text) {
1434
1461
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Channel"), ErrorCode.RuntimeNotSupported);
@@ -1440,7 +1467,7 @@ class Channel {
1440
1467
  * Only work on server side.
1441
1468
  *
1442
1469
  * @param card - the adaptive card raw JSON.
1443
- * @returns A `Promise` representing the asynchronous operation.
1470
+ * @returns the response of sending adaptive card message.
1444
1471
  */
1445
1472
  async sendAdaptiveCard(card) {
1446
1473
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Channel"), ErrorCode.RuntimeNotSupported);
@@ -1473,7 +1500,7 @@ class Member {
1473
1500
  * @remarks
1474
1501
  * Only work on server side.
1475
1502
  */
1476
- this.type = "Person";
1503
+ this.type = NotificationTargetType.Person;
1477
1504
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Member"), ErrorCode.RuntimeNotSupported);
1478
1505
  }
1479
1506
  /**
@@ -1483,7 +1510,7 @@ class Member {
1483
1510
  * Only work on server side.
1484
1511
  *
1485
1512
  * @param text - the plain text message.
1486
- * @returns A `Promise` representing the asynchronous operation.
1513
+ * @returns the response of sending message.
1487
1514
  */
1488
1515
  sendMessage(text) {
1489
1516
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Member"), ErrorCode.RuntimeNotSupported);
@@ -1495,7 +1522,7 @@ class Member {
1495
1522
  * Only work on server side.
1496
1523
  *
1497
1524
  * @param card - the adaptive card raw JSON.
1498
- * @returns A `Promise` representing the asynchronous operation.
1525
+ * @returns the response of sending adaptive card message.
1499
1526
  */
1500
1527
  async sendAdaptiveCard(card) {
1501
1528
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Member"), ErrorCode.RuntimeNotSupported);
@@ -1534,7 +1561,7 @@ class TeamsBotInstallation {
1534
1561
  * Only work on server side.
1535
1562
  *
1536
1563
  * @param text - the plain text message.
1537
- * @returns A `Promise` representing the asynchronous operation.
1564
+ * @returns the response of sending message.
1538
1565
  */
1539
1566
  sendMessage(text) {
1540
1567
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported);
@@ -1546,7 +1573,7 @@ class TeamsBotInstallation {
1546
1573
  * Only work on server side.
1547
1574
  *
1548
1575
  * @param card - the adaptive card raw JSON.
1549
- * @returns A `Promise` representing the asynchronous operation.
1576
+ * @returns the response of sending adaptive card message.
1550
1577
  */
1551
1578
  sendAdaptiveCard(card) {
1552
1579
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported);
@@ -1670,5 +1697,5 @@ class CommandBot {
1670
1697
  }
1671
1698
  }
1672
1699
 
1673
- export { ApiKeyLocation, ApiKeyProvider, AppCredential, BasicAuthProvider, BearerTokenAuthProvider, CertificateAuthProvider, Channel, CommandBot, ConversationBot, ErrorCode, ErrorWithCode, IdentityType, LogLevel, Member, MsGraphAuthProvider, NotificationBot, OnBehalfOfUserCredential, TeamsBotInstallation, TeamsBotSsoPrompt, TeamsFx, TeamsUserCredential, createApiClient, createMicrosoftGraphClient, createPemCertOption, createPfxCertOption, getLogLevel, getTediousConnectionConfig, sendAdaptiveCard, sendMessage, setLogFunction, setLogLevel, setLogger };
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 };
1674
1701
  //# sourceMappingURL=index.esm2017.js.map