@microsoft/teamsfx 1.2.1-alpha.39751981b.0 → 1.2.1-alpha.68dc011f1.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.
@@ -1563,9 +1563,10 @@ class BotSsoExecutionDialog {
1563
1563
  *
1564
1564
  * @param target - the notification target.
1565
1565
  * @param text - the plain text message.
1566
+ * @param onError - an optional error handler that can catch exceptions during message sending.
1566
1567
  * @returns A `Promise` representing the asynchronous operation.
1567
1568
  */
1568
- function sendMessage(target, text) {
1569
+ function sendMessage(target, text, onError) {
1569
1570
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "sendMessage"), ErrorCode.RuntimeNotSupported);
1570
1571
  }
1571
1572
  /**
@@ -1576,9 +1577,10 @@ function sendMessage(target, text) {
1576
1577
  *
1577
1578
  * @param target - the notification target.
1578
1579
  * @param card - the adaptive card raw JSON.
1580
+ * @param onError - an optional error handler that can catch exceptions during adaptive card sending.
1579
1581
  * @returns A `Promise` representing the asynchronous operation.
1580
1582
  */
1581
- function sendAdaptiveCard(target, card) {
1583
+ function sendAdaptiveCard(target, card, onError) {
1582
1584
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "sendAdaptiveCard"), ErrorCode.RuntimeNotSupported);
1583
1585
  }
1584
1586
  /**
@@ -1618,9 +1620,10 @@ class Channel {
1618
1620
  * Only work on server side.
1619
1621
  *
1620
1622
  * @param text - the plain text message.
1623
+ * @param onError - an optional error handler that can catch exceptions during message sending.
1621
1624
  * @returns the response of sending message.
1622
1625
  */
1623
- sendMessage(text) {
1626
+ sendMessage(text, onError) {
1624
1627
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Channel"), ErrorCode.RuntimeNotSupported);
1625
1628
  }
1626
1629
  /**
@@ -1630,9 +1633,10 @@ class Channel {
1630
1633
  * Only work on server side.
1631
1634
  *
1632
1635
  * @param card - the adaptive card raw JSON.
1636
+ * @param onError - an optional error handler that can catch exceptions during adaptive card sending.
1633
1637
  * @returns the response of sending adaptive card message.
1634
1638
  */
1635
- sendAdaptiveCard(card) {
1639
+ sendAdaptiveCard(card, onError) {
1636
1640
  return __awaiter(this, void 0, void 0, function* () {
1637
1641
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Channel"), ErrorCode.RuntimeNotSupported);
1638
1642
  });
@@ -1675,9 +1679,10 @@ class Member {
1675
1679
  * Only work on server side.
1676
1680
  *
1677
1681
  * @param text - the plain text message.
1682
+ * @param onError - an optional error handler that can catch exceptions during message sending.
1678
1683
  * @returns the response of sending message.
1679
1684
  */
1680
- sendMessage(text) {
1685
+ sendMessage(text, onError) {
1681
1686
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Member"), ErrorCode.RuntimeNotSupported);
1682
1687
  }
1683
1688
  /**
@@ -1687,9 +1692,10 @@ class Member {
1687
1692
  * Only work on server side.
1688
1693
  *
1689
1694
  * @param card - the adaptive card raw JSON.
1695
+ * @param onError - an optional error handler that can catch exceptions during adaptive card sending.
1690
1696
  * @returns the response of sending adaptive card message.
1691
1697
  */
1692
- sendAdaptiveCard(card) {
1698
+ sendAdaptiveCard(card, onError) {
1693
1699
  return __awaiter(this, void 0, void 0, function* () {
1694
1700
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Member"), ErrorCode.RuntimeNotSupported);
1695
1701
  });
@@ -1728,9 +1734,10 @@ class TeamsBotInstallation {
1728
1734
  * Only work on server side.
1729
1735
  *
1730
1736
  * @param text - the plain text message.
1737
+ * @param onError - an optional error handler that can catch exceptions during message sending.
1731
1738
  * @returns the response of sending message.
1732
1739
  */
1733
- sendMessage(text) {
1740
+ sendMessage(text, onError) {
1734
1741
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported);
1735
1742
  }
1736
1743
  /**
@@ -1740,9 +1747,10 @@ class TeamsBotInstallation {
1740
1747
  * Only work on server side.
1741
1748
  *
1742
1749
  * @param card - the adaptive card raw JSON.
1750
+ * @param onError - an optional error handler that can catch exceptions during adaptive card sending.
1743
1751
  * @returns the response of sending adaptive card message.
1744
1752
  */
1745
- sendAdaptiveCard(card) {
1753
+ sendAdaptiveCard(card, onError) {
1746
1754
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported);
1747
1755
  }
1748
1756
  /**