@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.
@@ -1363,6 +1363,33 @@ class TeamsFx {
1363
1363
  }
1364
1364
  }
1365
1365
 
1366
+ // Copyright (c) Microsoft Corporation.
1367
+ // Licensed under the MIT license.
1368
+ /**
1369
+ * The target type where the notification will be sent to.
1370
+ *
1371
+ * @remarks
1372
+ * - "Channel" means to a team channel. (By default, notification to a team will be sent to its "General" channel.)
1373
+ * - "Group" means to a group chat.
1374
+ * - "Person" means to a personal chat.
1375
+ */
1376
+ var NotificationTargetType;
1377
+ (function (NotificationTargetType) {
1378
+ /**
1379
+ * The notification will be sent to a team channel.
1380
+ * (By default, notification to a team will be sent to its "General" channel.)
1381
+ */
1382
+ NotificationTargetType["Channel"] = "Channel";
1383
+ /**
1384
+ * The notification will be sent to a group chat.
1385
+ */
1386
+ NotificationTargetType["Group"] = "Group";
1387
+ /**
1388
+ * The notification will be sent to a personal chat.
1389
+ */
1390
+ NotificationTargetType["Person"] = "Person";
1391
+ })(NotificationTargetType || (NotificationTargetType = {}));
1392
+
1366
1393
  // Copyright (c) Microsoft Corporation.
1367
1394
  /**
1368
1395
  * Provide utilities for bot conversation, including:
@@ -1455,7 +1482,7 @@ class Channel {
1455
1482
  * @remarks
1456
1483
  * Only work on server side.
1457
1484
  */
1458
- this.type = "Channel";
1485
+ this.type = NotificationTargetType.Channel;
1459
1486
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Channel"), ErrorCode.RuntimeNotSupported);
1460
1487
  }
1461
1488
  /**
@@ -1465,7 +1492,7 @@ class Channel {
1465
1492
  * Only work on server side.
1466
1493
  *
1467
1494
  * @param text - the plain text message.
1468
- * @returns A `Promise` representing the asynchronous operation.
1495
+ * @returns the response of sending message.
1469
1496
  */
1470
1497
  sendMessage(text) {
1471
1498
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Channel"), ErrorCode.RuntimeNotSupported);
@@ -1477,7 +1504,7 @@ class Channel {
1477
1504
  * Only work on server side.
1478
1505
  *
1479
1506
  * @param card - the adaptive card raw JSON.
1480
- * @returns A `Promise` representing the asynchronous operation.
1507
+ * @returns the response of sending adaptive card message.
1481
1508
  */
1482
1509
  sendAdaptiveCard(card) {
1483
1510
  return __awaiter(this, void 0, void 0, function* () {
@@ -1512,7 +1539,7 @@ class Member {
1512
1539
  * @remarks
1513
1540
  * Only work on server side.
1514
1541
  */
1515
- this.type = "Person";
1542
+ this.type = NotificationTargetType.Person;
1516
1543
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Member"), ErrorCode.RuntimeNotSupported);
1517
1544
  }
1518
1545
  /**
@@ -1522,7 +1549,7 @@ class Member {
1522
1549
  * Only work on server side.
1523
1550
  *
1524
1551
  * @param text - the plain text message.
1525
- * @returns A `Promise` representing the asynchronous operation.
1552
+ * @returns the response of sending message.
1526
1553
  */
1527
1554
  sendMessage(text) {
1528
1555
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "Member"), ErrorCode.RuntimeNotSupported);
@@ -1534,7 +1561,7 @@ class Member {
1534
1561
  * Only work on server side.
1535
1562
  *
1536
1563
  * @param card - the adaptive card raw JSON.
1537
- * @returns A `Promise` representing the asynchronous operation.
1564
+ * @returns the response of sending adaptive card message.
1538
1565
  */
1539
1566
  sendAdaptiveCard(card) {
1540
1567
  return __awaiter(this, void 0, void 0, function* () {
@@ -1575,7 +1602,7 @@ class TeamsBotInstallation {
1575
1602
  * Only work on server side.
1576
1603
  *
1577
1604
  * @param text - the plain text message.
1578
- * @returns A `Promise` representing the asynchronous operation.
1605
+ * @returns the response of sending message.
1579
1606
  */
1580
1607
  sendMessage(text) {
1581
1608
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported);
@@ -1587,7 +1614,7 @@ class TeamsBotInstallation {
1587
1614
  * Only work on server side.
1588
1615
  *
1589
1616
  * @param card - the adaptive card raw JSON.
1590
- * @returns A `Promise` representing the asynchronous operation.
1617
+ * @returns the response of sending adaptive card message.
1591
1618
  */
1592
1619
  sendAdaptiveCard(card) {
1593
1620
  throw new ErrorWithCode(formatString(ErrorMessage.BrowserRuntimeNotSupported, "TeamsBotInstallation"), ErrorCode.RuntimeNotSupported);
@@ -1717,5 +1744,5 @@ class CommandBot {
1717
1744
  }
1718
1745
  }
1719
1746
 
1720
- 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 };
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 };
1721
1748
  //# sourceMappingURL=index.esm5.js.map