@pipedream/microsoft_outlook 1.0.1 → 1.0.3
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 +42 -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.7",
|
|
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.7",
|
|
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.7",
|
|
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.7",
|
|
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.8",
|
|
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.7",
|
|
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: {
|
|
@@ -12,11 +12,28 @@ export default {
|
|
|
12
12
|
label: "Recipients",
|
|
13
13
|
description: "Array of email addresses",
|
|
14
14
|
type: "string[]",
|
|
15
|
+
optional: true,
|
|
16
|
+
default: [],
|
|
17
|
+
},
|
|
18
|
+
ccRecipients: {
|
|
19
|
+
label: "CC Recipients",
|
|
20
|
+
description: "Array of email addresses",
|
|
21
|
+
type: "string[]",
|
|
22
|
+
optional: true,
|
|
23
|
+
default: [],
|
|
24
|
+
},
|
|
25
|
+
bccRecipients: {
|
|
26
|
+
label: "BCC Recipients",
|
|
27
|
+
description: "Array of email addresses",
|
|
28
|
+
type: "string[]",
|
|
29
|
+
optional: true,
|
|
30
|
+
default: [],
|
|
15
31
|
},
|
|
16
32
|
subject: {
|
|
17
33
|
label: "Subject",
|
|
18
34
|
description: "Subject of the email",
|
|
19
35
|
type: "string",
|
|
36
|
+
optional: true,
|
|
20
37
|
},
|
|
21
38
|
contentType: {
|
|
22
39
|
label: "Content Type",
|
|
@@ -138,6 +155,8 @@ export default {
|
|
|
138
155
|
},
|
|
139
156
|
prepareMessageBody(self) {
|
|
140
157
|
const toRecipients = [];
|
|
158
|
+
const ccRecipients = [];
|
|
159
|
+
const bccRecipients = [];
|
|
141
160
|
for (const address of self.recipients) {
|
|
142
161
|
toRecipients.push({
|
|
143
162
|
emailAddress: {
|
|
@@ -145,6 +164,25 @@ export default {
|
|
|
145
164
|
},
|
|
146
165
|
});
|
|
147
166
|
}
|
|
167
|
+
for (const address of self.ccRecipients) {
|
|
168
|
+
if (address.trim() !== "") {
|
|
169
|
+
ccRecipients.push({
|
|
170
|
+
emailAddress: {
|
|
171
|
+
address,
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
for (const address of self.bccRecipients) {
|
|
177
|
+
if (address.trim() !== "") {
|
|
178
|
+
bccRecipients.push({
|
|
179
|
+
emailAddress: {
|
|
180
|
+
address,
|
|
181
|
+
},
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
148
186
|
const attachments = [];
|
|
149
187
|
for (let i = 0; self.files && i < self.files.length; i++) {
|
|
150
188
|
attachments.push({
|
|
@@ -167,6 +205,10 @@ export default {
|
|
|
167
205
|
toRecipients,
|
|
168
206
|
attachments,
|
|
169
207
|
};
|
|
208
|
+
|
|
209
|
+
if (ccRecipients.length > 0) message.ccRecipients = ccRecipients;
|
|
210
|
+
if (bccRecipients.length > 0) message.bccRecipients = bccRecipients;
|
|
211
|
+
|
|
170
212
|
return message;
|
|
171
213
|
},
|
|
172
214
|
async sendEmail({ ...args } = {}) {
|
package/package.json
CHANGED