@pipedream/microsoft_outlook 1.0.1 → 1.0.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/actions/create-contact/create-contact.mjs +1 -1
- package/actions/create-draft-email/create-draft-email.mjs +13 -1
- package/actions/find-contacts/find-contacts.mjs +1 -1
- package/actions/list-contacts/list-contacts.mjs +1 -1
- package/actions/send-email/send-email.mjs +13 -1
- package/actions/update-contact/update-contact.mjs +1 -1
- package/microsoft_outlook.app.mjs +37 -0
- package/package.json +1 -1
- package/sources/new-contact/new-contact.mjs +1 -1
- package/sources/new-email/new-email.mjs +1 -1
|
@@ -3,7 +3,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "microsoft_outlook-create-contact",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.6",
|
|
7
7
|
name: "Create Contact",
|
|
8
8
|
description: "Add a contact to the root Contacts folder, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-post-contacts)",
|
|
9
9
|
props: {
|
|
@@ -3,7 +3,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "microsoft_outlook-create-draft-email",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.6",
|
|
7
7
|
name: "Create Draft Email",
|
|
8
8
|
description: "Create a draft email, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-post-messages)",
|
|
9
9
|
props: {
|
|
@@ -14,6 +14,18 @@ export default {
|
|
|
14
14
|
"recipients",
|
|
15
15
|
],
|
|
16
16
|
},
|
|
17
|
+
ccRecipients: {
|
|
18
|
+
propDefinition: [
|
|
19
|
+
microsoftOutlook,
|
|
20
|
+
"ccRecipients",
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
bccRecipients: {
|
|
24
|
+
propDefinition: [
|
|
25
|
+
microsoftOutlook,
|
|
26
|
+
"bccRecipients",
|
|
27
|
+
],
|
|
28
|
+
},
|
|
17
29
|
subject: {
|
|
18
30
|
propDefinition: [
|
|
19
31
|
microsoftOutlook,
|
|
@@ -3,7 +3,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "microsoft_outlook-find-contacts",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.6",
|
|
7
7
|
name: "Find Contacts",
|
|
8
8
|
description: "Finds contacts with given search string",
|
|
9
9
|
props: {
|
|
@@ -3,7 +3,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "microsoft_outlook-list-contacts",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.6",
|
|
7
7
|
name: "List Contacts",
|
|
8
8
|
description: "Get a contact collection from the default contacts folder, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-list-contacts)",
|
|
9
9
|
props: {
|
|
@@ -3,7 +3,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "microsoft_outlook-send-email",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.7",
|
|
7
7
|
name: "Send Email",
|
|
8
8
|
description: "Send an email to one or multiple recipients, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-sendmail)",
|
|
9
9
|
props: {
|
|
@@ -14,6 +14,18 @@ export default {
|
|
|
14
14
|
"recipients",
|
|
15
15
|
],
|
|
16
16
|
},
|
|
17
|
+
ccRecipients: {
|
|
18
|
+
propDefinition: [
|
|
19
|
+
microsoftOutlook,
|
|
20
|
+
"ccRecipients",
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
bccRecipients: {
|
|
24
|
+
propDefinition: [
|
|
25
|
+
microsoftOutlook,
|
|
26
|
+
"bccRecipients",
|
|
27
|
+
],
|
|
28
|
+
},
|
|
17
29
|
subject: {
|
|
18
30
|
propDefinition: [
|
|
19
31
|
microsoftOutlook,
|
|
@@ -3,7 +3,7 @@ import microsoftOutlook from "../../microsoft_outlook.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "microsoft_outlook-update-contact",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.6",
|
|
7
7
|
name: "Update Contact",
|
|
8
8
|
description: "Add a contact to the root Contacts folder, [See the docs](https://docs.microsoft.com/en-us/graph/api/user-post-contacts)",
|
|
9
9
|
props: {
|
|
@@ -13,6 +13,18 @@ export default {
|
|
|
13
13
|
description: "Array of email addresses",
|
|
14
14
|
type: "string[]",
|
|
15
15
|
},
|
|
16
|
+
ccRecipients: {
|
|
17
|
+
label: "CC Recipients",
|
|
18
|
+
description: "Array of email addresses",
|
|
19
|
+
type: "string[]",
|
|
20
|
+
optional: true,
|
|
21
|
+
},
|
|
22
|
+
bccRecipients: {
|
|
23
|
+
label: "BCC Recipients",
|
|
24
|
+
description: "Array of email addresses",
|
|
25
|
+
type: "string[]",
|
|
26
|
+
optional: true,
|
|
27
|
+
},
|
|
16
28
|
subject: {
|
|
17
29
|
label: "Subject",
|
|
18
30
|
description: "Subject of the email",
|
|
@@ -138,6 +150,8 @@ export default {
|
|
|
138
150
|
},
|
|
139
151
|
prepareMessageBody(self) {
|
|
140
152
|
const toRecipients = [];
|
|
153
|
+
const ccRecipients = [];
|
|
154
|
+
const bccRecipients = [];
|
|
141
155
|
for (const address of self.recipients) {
|
|
142
156
|
toRecipients.push({
|
|
143
157
|
emailAddress: {
|
|
@@ -145,6 +159,25 @@ export default {
|
|
|
145
159
|
},
|
|
146
160
|
});
|
|
147
161
|
}
|
|
162
|
+
for (const address of self.ccRecipients) {
|
|
163
|
+
if (address.trim() !== "") {
|
|
164
|
+
ccRecipients.push({
|
|
165
|
+
emailAddress: {
|
|
166
|
+
address,
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
for (const address of self.bccRecipients) {
|
|
172
|
+
if (address.trim() !== "") {
|
|
173
|
+
bccRecipients.push({
|
|
174
|
+
emailAddress: {
|
|
175
|
+
address,
|
|
176
|
+
},
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
148
181
|
const attachments = [];
|
|
149
182
|
for (let i = 0; self.files && i < self.files.length; i++) {
|
|
150
183
|
attachments.push({
|
|
@@ -167,6 +200,10 @@ export default {
|
|
|
167
200
|
toRecipients,
|
|
168
201
|
attachments,
|
|
169
202
|
};
|
|
203
|
+
|
|
204
|
+
if (ccRecipients.length > 0) message.ccRecipients = ccRecipients;
|
|
205
|
+
if (bccRecipients.length > 0) message.bccRecipients = bccRecipients;
|
|
206
|
+
|
|
170
207
|
return message;
|
|
171
208
|
},
|
|
172
209
|
async sendEmail({ ...args } = {}) {
|
package/package.json
CHANGED