@microsoft/teamsfx 1.2.1-alpha.311dfaffe.0 → 1.2.1-alpha.34026982f.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.
@@ -1522,9 +1522,10 @@ class BotSsoExecutionDialog {
1522
1522
  *
1523
1523
  * @param target - the notification target.
1524
1524
  * @param text - the plain text message.
1525
+ * @param onError - an optional error handler that can catch exceptions during message sending.
1525
1526
  * @returns A `Promise` representing the asynchronous operation.
1526
1527
  */
1527
- function sendMessage(target, text) {
1528
+ function sendMessage(target, text, onError) {
1528
1529
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "sendMessage"), ErrorCode.RuntimeNotSupported);
1529
1530
  }
1530
1531
  /**
@@ -1535,9 +1536,10 @@ function sendMessage(target, text) {
1535
1536
  *
1536
1537
  * @param target - the notification target.
1537
1538
  * @param card - the adaptive card raw JSON.
1539
+ * @param onError - an optional error handler that can catch exceptions during adaptive card sending.
1538
1540
  * @returns A `Promise` representing the asynchronous operation.
1539
1541
  */
1540
- function sendAdaptiveCard(target, card) {
1542
+ function sendAdaptiveCard(target, card, onError) {
1541
1543
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "sendAdaptiveCard"), ErrorCode.RuntimeNotSupported);
1542
1544
  }
1543
1545
  /**
@@ -1577,9 +1579,10 @@ class Channel {
1577
1579
  * Only work on server side.
1578
1580
  *
1579
1581
  * @param text - the plain text message.
1582
+ * @param onError - an optional error handler that can catch exceptions during message sending.
1580
1583
  * @returns the response of sending message.
1581
1584
  */
1582
- sendMessage(text) {
1585
+ sendMessage(text, onError) {
1583
1586
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Channel"), ErrorCode.RuntimeNotSupported);
1584
1587
  }
1585
1588
  /**
@@ -1589,9 +1592,10 @@ class Channel {
1589
1592
  * Only work on server side.
1590
1593
  *
1591
1594
  * @param card - the adaptive card raw JSON.
1595
+ * @param onError - an optional error handler that can catch exceptions during adaptive card sending.
1592
1596
  * @returns the response of sending adaptive card message.
1593
1597
  */
1594
- async sendAdaptiveCard(card) {
1598
+ async sendAdaptiveCard(card, onError) {
1595
1599
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Channel"), ErrorCode.RuntimeNotSupported);
1596
1600
  }
1597
1601
  }
@@ -1632,9 +1636,10 @@ class Member {
1632
1636
  * Only work on server side.
1633
1637
  *
1634
1638
  * @param text - the plain text message.
1639
+ * @param onError - an optional error handler that can catch exceptions during message sending.
1635
1640
  * @returns the response of sending message.
1636
1641
  */
1637
- sendMessage(text) {
1642
+ sendMessage(text, onError) {
1638
1643
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Member"), ErrorCode.RuntimeNotSupported);
1639
1644
  }
1640
1645
  /**
@@ -1644,9 +1649,10 @@ class Member {
1644
1649
  * Only work on server side.
1645
1650
  *
1646
1651
  * @param card - the adaptive card raw JSON.
1652
+ * @param onError - an optional error handler that can catch exceptions during adaptive card sending.
1647
1653
  * @returns the response of sending adaptive card message.
1648
1654
  */
1649
- async sendAdaptiveCard(card) {
1655
+ async sendAdaptiveCard(card, onError) {
1650
1656
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Member"), ErrorCode.RuntimeNotSupported);
1651
1657
  }
1652
1658
  }
@@ -1683,9 +1689,10 @@ class TeamsBotInstallation {
1683
1689
  * Only work on server side.
1684
1690
  *
1685
1691
  * @param text - the plain text message.
1692
+ * @param onError - an optional error handler that can catch exceptions during message sending.
1686
1693
  * @returns the response of sending message.
1687
1694
  */
1688
- sendMessage(text) {
1695
+ sendMessage(text, onError) {
1689
1696
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported);
1690
1697
  }
1691
1698
  /**
@@ -1695,9 +1702,10 @@ class TeamsBotInstallation {
1695
1702
  * Only work on server side.
1696
1703
  *
1697
1704
  * @param card - the adaptive card raw JSON.
1705
+ * @param onError - an optional error handler that can catch exceptions during adaptive card sending.
1698
1706
  * @returns the response of sending adaptive card message.
1699
1707
  */
1700
- sendAdaptiveCard(card) {
1708
+ sendAdaptiveCard(card, onError) {
1701
1709
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported);
1702
1710
  }
1703
1711
  /**