@pipedream/microsoft_teams 0.1.1 → 0.1.2
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/README.md +9 -5
- package/actions/create-channel/create-channel.mjs +1 -1
- package/actions/list-channels/list-channels.mjs +1 -1
- package/actions/list-shifts/list-shifts.mjs +1 -1
- package/actions/send-channel-message/send-channel-message.mjs +9 -1
- package/actions/send-chat-message/send-chat-message.mjs +9 -1
- package/microsoft_teams.app.mjs +11 -0
- package/package.json +1 -1
- package/sources/new-channel/new-channel.mjs +1 -1
- package/sources/new-channel-message/new-channel-message.mjs +1 -1
- package/sources/new-chat/new-chat.mjs +1 -1
- package/sources/new-chat-message/new-chat-message.mjs +1 -1
- package/sources/new-team/new-team.mjs +1 -1
- package/sources/new-team-member/new-team-member.mjs +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
# Overview
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
The Microsoft Teams API on Pipedream allows you to automate tasks, streamline communication, and integrate with other services to enhance the functionality of Teams as a collaboration hub. With this API, you can send messages to channels, orchestrate complex workflows based on Teams events, and manage Teams' settings programmatically.
|
|
4
|
+
|
|
5
|
+
# Example Use Cases
|
|
6
|
+
|
|
7
|
+
- **Automated Daily Stand-up Notifications**: Trigger a workflow that sends a daily message to a designated Teams channel prompting team members to post their stand-up updates. This ensures consistency and regularity in team communication.
|
|
8
|
+
|
|
9
|
+
- **New Lead Alert System**: Connect the Teams API with a CRM app on Pipedream. Each time a new lead is captured in the CRM, the workflow automatically posts a summary to a sales channel in Teams, keeping the sales team instantly informed.
|
|
10
|
+
|
|
11
|
+
- **Incident Management Updates**: Integrate the Teams API with a monitoring tool like Datadog. When an incident is detected, the workflow triggers, creating a new conversation in the relevant Teams channel and tagging on-call staff to coordinate a rapid response.
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
name: "Create Channel",
|
|
6
6
|
description: "Create a new channel in Microsoft Teams. [See the docs here](https://docs.microsoft.com/en-us/graph/api/channel-post?view=graph-rest-1.0&tabs=http)",
|
|
7
7
|
type: "action",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.6",
|
|
9
9
|
props: {
|
|
10
10
|
microsoftTeams,
|
|
11
11
|
teamId: {
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
name: "List Channels",
|
|
6
6
|
description: "Lists all channels in a Microsoft Team. [See the docs here](https://docs.microsoft.com/en-us/graph/api/channel-list?view=graph-rest-1.0&tabs=http)",
|
|
7
7
|
type: "action",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.6",
|
|
9
9
|
props: {
|
|
10
10
|
microsoftTeams,
|
|
11
11
|
teamId: {
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
name: "List Shifts",
|
|
6
6
|
description: "Get the list of shift instances for a team. [See the documentation](https://learn.microsoft.com/en-us/graph/api/schedule-list-shifts?view=graph-rest-1.0&tabs=http)",
|
|
7
7
|
type: "action",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.3",
|
|
9
9
|
props: {
|
|
10
10
|
microsoftTeams,
|
|
11
11
|
teamId: {
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
name: "Send Channel Message",
|
|
6
6
|
description: "Send a message to a team's channel. [See the docs here](https://docs.microsoft.com/en-us/graph/api/channel-post-messages?view=graph-rest-1.0&tabs=http)",
|
|
7
7
|
type: "action",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.6",
|
|
9
9
|
props: {
|
|
10
10
|
microsoftTeams,
|
|
11
11
|
teamId: {
|
|
@@ -29,12 +29,19 @@ export default {
|
|
|
29
29
|
"message",
|
|
30
30
|
],
|
|
31
31
|
},
|
|
32
|
+
contentType: {
|
|
33
|
+
propDefinition: [
|
|
34
|
+
microsoftTeams,
|
|
35
|
+
"contentType",
|
|
36
|
+
],
|
|
37
|
+
},
|
|
32
38
|
},
|
|
33
39
|
async run({ $ }) {
|
|
34
40
|
const {
|
|
35
41
|
teamId,
|
|
36
42
|
channelId,
|
|
37
43
|
message,
|
|
44
|
+
contentType,
|
|
38
45
|
} = this;
|
|
39
46
|
|
|
40
47
|
const response =
|
|
@@ -44,6 +51,7 @@ export default {
|
|
|
44
51
|
content: {
|
|
45
52
|
body: {
|
|
46
53
|
content: message,
|
|
54
|
+
contentType,
|
|
47
55
|
},
|
|
48
56
|
},
|
|
49
57
|
});
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
name: "Send Chat Message",
|
|
6
6
|
description: "Send a message to a team's chat. [See the docs here](https://docs.microsoft.com/en-us/graph/api/chat-post-messages?view=graph-rest-1.0&tabs=http)",
|
|
7
7
|
type: "action",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.6",
|
|
9
9
|
props: {
|
|
10
10
|
microsoftTeams,
|
|
11
11
|
chatId: {
|
|
@@ -20,11 +20,18 @@ export default {
|
|
|
20
20
|
"message",
|
|
21
21
|
],
|
|
22
22
|
},
|
|
23
|
+
contentType: {
|
|
24
|
+
propDefinition: [
|
|
25
|
+
microsoftTeams,
|
|
26
|
+
"contentType",
|
|
27
|
+
],
|
|
28
|
+
},
|
|
23
29
|
},
|
|
24
30
|
async run({ $ }) {
|
|
25
31
|
const {
|
|
26
32
|
chatId,
|
|
27
33
|
message,
|
|
34
|
+
contentType,
|
|
28
35
|
} = this;
|
|
29
36
|
|
|
30
37
|
const response =
|
|
@@ -33,6 +40,7 @@ export default {
|
|
|
33
40
|
content: {
|
|
34
41
|
body: {
|
|
35
42
|
content: message,
|
|
43
|
+
contentType,
|
|
36
44
|
},
|
|
37
45
|
},
|
|
38
46
|
});
|
package/microsoft_teams.app.mjs
CHANGED
|
@@ -96,6 +96,17 @@ export default {
|
|
|
96
96
|
label: "Message",
|
|
97
97
|
description: "Message to be sent",
|
|
98
98
|
},
|
|
99
|
+
contentType: {
|
|
100
|
+
type: "string",
|
|
101
|
+
label: "Content Type",
|
|
102
|
+
description: "Text message or HTML message",
|
|
103
|
+
optional: true,
|
|
104
|
+
default: "text",
|
|
105
|
+
options: [
|
|
106
|
+
"text",
|
|
107
|
+
"html",
|
|
108
|
+
],
|
|
109
|
+
},
|
|
99
110
|
},
|
|
100
111
|
methods: {
|
|
101
112
|
_accessToken() {
|
package/package.json
CHANGED