@microsoft/teamsfx 1.0.3-alpha.f4587c1d0.0 → 1.1.1-alpha.c34648668.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.
- package/dist/index.esm2017.js +30 -3
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm2017.mjs +32 -6
- package/dist/index.esm2017.mjs.map +1 -1
- package/dist/index.esm5.js +30 -3
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +31 -5
- package/dist/index.node.cjs.js.map +1 -1
- package/package.json +3 -3
- package/types/teamsfx.d.ts +15 -1
package/dist/index.node.cjs.js
CHANGED
|
@@ -1881,6 +1881,32 @@ class TeamsFx {
|
|
|
1881
1881
|
|
|
1882
1882
|
// Copyright (c) Microsoft Corporation.
|
|
1883
1883
|
// Licensed under the MIT license.
|
|
1884
|
+
/**
|
|
1885
|
+
* The target type where the notification will be sent to.
|
|
1886
|
+
*
|
|
1887
|
+
* @remarks
|
|
1888
|
+
* - "Channel" means to a team channel. (By default, notification to a team will be sent to its "General" channel.)
|
|
1889
|
+
* - "Group" means to a group chat.
|
|
1890
|
+
* - "Person" means to a personal chat.
|
|
1891
|
+
*/
|
|
1892
|
+
exports.NotificationTargetType = void 0;
|
|
1893
|
+
(function (NotificationTargetType) {
|
|
1894
|
+
/**
|
|
1895
|
+
* The notification will be sent to a team channel.
|
|
1896
|
+
* (By default, notification to a team will be sent to its "General" channel.)
|
|
1897
|
+
*/
|
|
1898
|
+
NotificationTargetType["Channel"] = "Channel";
|
|
1899
|
+
/**
|
|
1900
|
+
* The notification will be sent to a group chat.
|
|
1901
|
+
*/
|
|
1902
|
+
NotificationTargetType["Group"] = "Group";
|
|
1903
|
+
/**
|
|
1904
|
+
* The notification will be sent to a personal chat.
|
|
1905
|
+
*/
|
|
1906
|
+
NotificationTargetType["Person"] = "Person";
|
|
1907
|
+
})(exports.NotificationTargetType || (exports.NotificationTargetType = {}));
|
|
1908
|
+
|
|
1909
|
+
// Copyright (c) Microsoft Corporation.
|
|
1884
1910
|
/**
|
|
1885
1911
|
* @internal
|
|
1886
1912
|
*/
|
|
@@ -1894,13 +1920,13 @@ function getTargetType(conversationReference) {
|
|
|
1894
1920
|
var _a;
|
|
1895
1921
|
const conversationType = (_a = conversationReference.conversation) === null || _a === void 0 ? void 0 : _a.conversationType;
|
|
1896
1922
|
if (conversationType === "personal") {
|
|
1897
|
-
return
|
|
1923
|
+
return exports.NotificationTargetType.Person;
|
|
1898
1924
|
}
|
|
1899
1925
|
else if (conversationType === "groupChat") {
|
|
1900
|
-
return
|
|
1926
|
+
return exports.NotificationTargetType.Group;
|
|
1901
1927
|
}
|
|
1902
1928
|
else if (conversationType === "channel") {
|
|
1903
|
-
return
|
|
1929
|
+
return exports.NotificationTargetType.Channel;
|
|
1904
1930
|
}
|
|
1905
1931
|
else {
|
|
1906
1932
|
return undefined;
|
|
@@ -2291,7 +2317,7 @@ class Channel {
|
|
|
2291
2317
|
/**
|
|
2292
2318
|
* Notification target type. For channel it's always "Channel".
|
|
2293
2319
|
*/
|
|
2294
|
-
this.type =
|
|
2320
|
+
this.type = exports.NotificationTargetType.Channel;
|
|
2295
2321
|
this.parent = parent;
|
|
2296
2322
|
this.info = info;
|
|
2297
2323
|
}
|
|
@@ -2367,7 +2393,7 @@ class Member {
|
|
|
2367
2393
|
/**
|
|
2368
2394
|
* Notification target type. For member it's always "Person".
|
|
2369
2395
|
*/
|
|
2370
|
-
this.type =
|
|
2396
|
+
this.type = exports.NotificationTargetType.Person;
|
|
2371
2397
|
this.parent = parent;
|
|
2372
2398
|
this.account = account;
|
|
2373
2399
|
}
|