@microsoft/teamsfx 1.0.3-alpha.f4587c1d0.0 → 1.1.1-alpha.1b242bc71.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.
@@ -1815,6 +1815,32 @@ class TeamsFx {
1815
1815
 
1816
1816
  // Copyright (c) Microsoft Corporation.
1817
1817
  // Licensed under the MIT license.
1818
+ /**
1819
+ * The target type where the notification will be sent to.
1820
+ *
1821
+ * @remarks
1822
+ * - "Channel" means to a team channel. (By default, notification to a team will be sent to its "General" channel.)
1823
+ * - "Group" means to a group chat.
1824
+ * - "Person" means to a personal chat.
1825
+ */
1826
+ var NotificationTargetType;
1827
+ (function (NotificationTargetType) {
1828
+ /**
1829
+ * The notification will be sent to a team channel.
1830
+ * (By default, notification to a team will be sent to its "General" channel.)
1831
+ */
1832
+ NotificationTargetType["Channel"] = "Channel";
1833
+ /**
1834
+ * The notification will be sent to a group chat.
1835
+ */
1836
+ NotificationTargetType["Group"] = "Group";
1837
+ /**
1838
+ * The notification will be sent to a personal chat.
1839
+ */
1840
+ NotificationTargetType["Person"] = "Person";
1841
+ })(NotificationTargetType || (NotificationTargetType = {}));
1842
+
1843
+ // Copyright (c) Microsoft Corporation.
1818
1844
  /**
1819
1845
  * @internal
1820
1846
  */
@@ -1828,13 +1854,13 @@ function getTargetType(conversationReference) {
1828
1854
  var _a;
1829
1855
  const conversationType = (_a = conversationReference.conversation) === null || _a === void 0 ? void 0 : _a.conversationType;
1830
1856
  if (conversationType === "personal") {
1831
- return "Person";
1857
+ return NotificationTargetType.Person;
1832
1858
  }
1833
1859
  else if (conversationType === "groupChat") {
1834
- return "Group";
1860
+ return NotificationTargetType.Group;
1835
1861
  }
1836
1862
  else if (conversationType === "channel") {
1837
- return "Channel";
1863
+ return NotificationTargetType.Channel;
1838
1864
  }
1839
1865
  else {
1840
1866
  return undefined;
@@ -2207,7 +2233,7 @@ class Channel {
2207
2233
  /**
2208
2234
  * Notification target type. For channel it's always "Channel".
2209
2235
  */
2210
- this.type = "Channel";
2236
+ this.type = NotificationTargetType.Channel;
2211
2237
  this.parent = parent;
2212
2238
  this.info = info;
2213
2239
  }
@@ -2277,7 +2303,7 @@ class Member {
2277
2303
  /**
2278
2304
  * Notification target type. For member it's always "Person".
2279
2305
  */
2280
- this.type = "Person";
2306
+ this.type = NotificationTargetType.Person;
2281
2307
  this.parent = parent;
2282
2308
  this.account = account;
2283
2309
  }
@@ -2749,5 +2775,5 @@ class MessageBuilder {
2749
2775
  }
2750
2776
  }
2751
2777
 
2752
- export { ApiKeyLocation, ApiKeyProvider, AppCredential, BasicAuthProvider, BearerTokenAuthProvider, CertificateAuthProvider, Channel, CommandBot, ConversationBot, ErrorCode, ErrorWithCode, IdentityType, LogLevel, Member, MessageBuilder, MsGraphAuthProvider, NotificationBot, OnBehalfOfUserCredential, TeamsBotInstallation, TeamsBotSsoPrompt, TeamsFx, TeamsUserCredential, createApiClient, createMicrosoftGraphClient, createPemCertOption, createPfxCertOption, getLogLevel, getTediousConnectionConfig, sendAdaptiveCard, sendMessage, setLogFunction, setLogLevel, setLogger };
2778
+ export { ApiKeyLocation, ApiKeyProvider, AppCredential, BasicAuthProvider, BearerTokenAuthProvider, CertificateAuthProvider, Channel, CommandBot, ConversationBot, ErrorCode, ErrorWithCode, IdentityType, LogLevel, Member, MessageBuilder, MsGraphAuthProvider, NotificationBot, NotificationTargetType, OnBehalfOfUserCredential, TeamsBotInstallation, TeamsBotSsoPrompt, TeamsFx, TeamsUserCredential, createApiClient, createMicrosoftGraphClient, createPemCertOption, createPfxCertOption, getLogLevel, getTediousConnectionConfig, sendAdaptiveCard, sendMessage, setLogFunction, setLogLevel, setLogger };
2753
2779
  //# sourceMappingURL=index.esm2017.mjs.map