n8n-nodes-wecom 0.1.20 → 0.1.21
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 +59 -0
- package/dist/nodes/WeCom/resources/mail/allocateMailAdvancedAccount.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/allocateMailAdvancedAccount.js +22 -0
- package/dist/nodes/WeCom/resources/mail/allocateMailAdvancedAccount.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/createMailGroup.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/createMailGroup.js +65 -0
- package/dist/nodes/WeCom/resources/mail/createMailGroup.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/createPublicMailbox.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/createPublicMailbox.js +55 -0
- package/dist/nodes/WeCom/resources/mail/createPublicMailbox.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/deallocateMailAdvancedAccount.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/deallocateMailAdvancedAccount.js +22 -0
- package/dist/nodes/WeCom/resources/mail/deallocateMailAdvancedAccount.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/deleteClientPassword.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/deleteClientPassword.js +34 -0
- package/dist/nodes/WeCom/resources/mail/deleteClientPassword.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/deleteMailGroup.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/deleteMailGroup.js +22 -0
- package/dist/nodes/WeCom/resources/mail/deleteMailGroup.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/deletePublicMailbox.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/deletePublicMailbox.js +22 -0
- package/dist/nodes/WeCom/resources/mail/deletePublicMailbox.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/execute.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/execute.js +283 -0
- package/dist/nodes/WeCom/resources/mail/execute.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/getAppMailbox.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/getAppMailbox.js +22 -0
- package/dist/nodes/WeCom/resources/mail/getAppMailbox.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/getClientPasswordList.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/getClientPasswordList.js +22 -0
- package/dist/nodes/WeCom/resources/mail/getClientPasswordList.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/getMailAdvancedAccountList.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/getMailAdvancedAccountList.js +35 -0
- package/dist/nodes/WeCom/resources/mail/getMailAdvancedAccountList.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/getMailContent.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/getMailContent.js +32 -0
- package/dist/nodes/WeCom/resources/mail/getMailContent.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/getMailGroup.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/getMailGroup.js +22 -0
- package/dist/nodes/WeCom/resources/mail/getMailGroup.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/getMailList.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/getMailList.js +71 -0
- package/dist/nodes/WeCom/resources/mail/getMailList.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/getMailUnreadCount.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/getMailUnreadCount.js +22 -0
- package/dist/nodes/WeCom/resources/mail/getMailUnreadCount.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/getPublicMailbox.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/getPublicMailbox.js +22 -0
- package/dist/nodes/WeCom/resources/mail/getPublicMailbox.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/getUserMailAttribute.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/getUserMailAttribute.js +22 -0
- package/dist/nodes/WeCom/resources/mail/getUserMailAttribute.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/index.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/index.js +222 -0
- package/dist/nodes/WeCom/resources/mail/index.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/searchMailGroup.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/searchMailGroup.js +47 -0
- package/dist/nodes/WeCom/resources/mail/searchMailGroup.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/searchPublicMailbox.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/searchPublicMailbox.js +47 -0
- package/dist/nodes/WeCom/resources/mail/searchPublicMailbox.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/sendMail.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/sendMail.js +68 -0
- package/dist/nodes/WeCom/resources/mail/sendMail.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/sendMeetingMail.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/sendMeetingMail.js +68 -0
- package/dist/nodes/WeCom/resources/mail/sendMeetingMail.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/sendScheduleMail.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/sendScheduleMail.js +68 -0
- package/dist/nodes/WeCom/resources/mail/sendScheduleMail.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/toggleMailboxStatus.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/toggleMailboxStatus.js +44 -0
- package/dist/nodes/WeCom/resources/mail/toggleMailboxStatus.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/updateAppMailbox.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/updateAppMailbox.js +42 -0
- package/dist/nodes/WeCom/resources/mail/updateAppMailbox.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/updateMailGroup.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/updateMailGroup.js +64 -0
- package/dist/nodes/WeCom/resources/mail/updateMailGroup.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/updatePublicMailbox.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/updatePublicMailbox.js +54 -0
- package/dist/nodes/WeCom/resources/mail/updatePublicMailbox.js.map +1 -0
- package/dist/nodes/WeCom/resources/mail/updateUserMailAttribute.d.ts +2 -0
- package/dist/nodes/WeCom/resources/mail/updateUserMailAttribute.js +33 -0
- package/dist/nodes/WeCom/resources/mail/updateUserMailAttribute.js.map +1 -0
- package/dist/nodes/WeComOffice/WeComOffice.node.js +12 -1
- package/dist/nodes/WeComOffice/WeComOffice.node.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.executeMail = executeMail;
|
|
4
|
+
const transport_1 = require("../../shared/transport");
|
|
5
|
+
async function executeMail(operation, items) {
|
|
6
|
+
const returnData = [];
|
|
7
|
+
for (let i = 0; i < items.length; i++) {
|
|
8
|
+
try {
|
|
9
|
+
let response;
|
|
10
|
+
if (operation === 'sendMail') {
|
|
11
|
+
const sender = this.getNodeParameter('sender', i);
|
|
12
|
+
const receiver = this.getNodeParameter('receiver', i);
|
|
13
|
+
const subject = this.getNodeParameter('subject', i);
|
|
14
|
+
const doc_content = this.getNodeParameter('doc_content', i);
|
|
15
|
+
const attachment_list = this.getNodeParameter('attachment_list', i, '[]');
|
|
16
|
+
const body = {
|
|
17
|
+
sender,
|
|
18
|
+
receiver: JSON.parse(receiver),
|
|
19
|
+
subject,
|
|
20
|
+
doc_content: JSON.parse(doc_content),
|
|
21
|
+
};
|
|
22
|
+
if (attachment_list && attachment_list !== '[]') {
|
|
23
|
+
body.attachment_list = JSON.parse(attachment_list);
|
|
24
|
+
}
|
|
25
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/app/compose_send', body);
|
|
26
|
+
}
|
|
27
|
+
else if (operation === 'sendScheduleMail') {
|
|
28
|
+
const sender = this.getNodeParameter('sender', i);
|
|
29
|
+
const receiver = this.getNodeParameter('receiver', i);
|
|
30
|
+
const subject = this.getNodeParameter('subject', i);
|
|
31
|
+
const cal_content = this.getNodeParameter('cal_content', i);
|
|
32
|
+
const attachment_list = this.getNodeParameter('attachment_list', i, '[]');
|
|
33
|
+
const body = {
|
|
34
|
+
sender,
|
|
35
|
+
receiver: JSON.parse(receiver),
|
|
36
|
+
subject,
|
|
37
|
+
cal_content: JSON.parse(cal_content),
|
|
38
|
+
};
|
|
39
|
+
if (attachment_list && attachment_list !== '[]') {
|
|
40
|
+
body.attachment_list = JSON.parse(attachment_list);
|
|
41
|
+
}
|
|
42
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/app/compose_send', body);
|
|
43
|
+
}
|
|
44
|
+
else if (operation === 'sendMeetingMail') {
|
|
45
|
+
const sender = this.getNodeParameter('sender', i);
|
|
46
|
+
const receiver = this.getNodeParameter('receiver', i);
|
|
47
|
+
const subject = this.getNodeParameter('subject', i);
|
|
48
|
+
const meeting_content = this.getNodeParameter('meeting_content', i);
|
|
49
|
+
const attachment_list = this.getNodeParameter('attachment_list', i, '[]');
|
|
50
|
+
const body = {
|
|
51
|
+
sender,
|
|
52
|
+
receiver: JSON.parse(receiver),
|
|
53
|
+
subject,
|
|
54
|
+
meeting_content: JSON.parse(meeting_content),
|
|
55
|
+
};
|
|
56
|
+
if (attachment_list && attachment_list !== '[]') {
|
|
57
|
+
body.attachment_list = JSON.parse(attachment_list);
|
|
58
|
+
}
|
|
59
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/app/compose_send', body);
|
|
60
|
+
}
|
|
61
|
+
else if (operation === 'getMailList') {
|
|
62
|
+
const mailbox = this.getNodeParameter('mailbox', i);
|
|
63
|
+
const begin_time = this.getNodeParameter('begin_time', i);
|
|
64
|
+
const end_time = this.getNodeParameter('end_time', i);
|
|
65
|
+
const limit = this.getNodeParameter('limit', i, 100);
|
|
66
|
+
const cursor = this.getNodeParameter('cursor', i, '');
|
|
67
|
+
const body = {
|
|
68
|
+
mailbox,
|
|
69
|
+
begin_time,
|
|
70
|
+
end_time,
|
|
71
|
+
limit,
|
|
72
|
+
};
|
|
73
|
+
if (cursor)
|
|
74
|
+
body.cursor = cursor;
|
|
75
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/mail/getlist', body);
|
|
76
|
+
}
|
|
77
|
+
else if (operation === 'getMailContent') {
|
|
78
|
+
const mailbox = this.getNodeParameter('mailbox', i);
|
|
79
|
+
const mailid = this.getNodeParameter('mailid', i);
|
|
80
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/mail/get', {
|
|
81
|
+
mailbox,
|
|
82
|
+
mailid,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
else if (operation === 'updateAppMailbox') {
|
|
86
|
+
const mailbox = this.getNodeParameter('mailbox', i);
|
|
87
|
+
const name = this.getNodeParameter('name', i, '');
|
|
88
|
+
const remark = this.getNodeParameter('remark', i, '');
|
|
89
|
+
const body = { mailbox };
|
|
90
|
+
if (name)
|
|
91
|
+
body.name = name;
|
|
92
|
+
if (remark)
|
|
93
|
+
body.remark = remark;
|
|
94
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/app/update', body);
|
|
95
|
+
}
|
|
96
|
+
else if (operation === 'getAppMailbox') {
|
|
97
|
+
const mailbox = this.getNodeParameter('mailbox', i);
|
|
98
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/app/get', { mailbox });
|
|
99
|
+
}
|
|
100
|
+
else if (operation === 'createMailGroup') {
|
|
101
|
+
const groupid = this.getNodeParameter('groupid', i);
|
|
102
|
+
const groupname = this.getNodeParameter('groupname', i);
|
|
103
|
+
const userlist = this.getNodeParameter('userlist', i, '');
|
|
104
|
+
const allow_type = this.getNodeParameter('allow_type', i, 0);
|
|
105
|
+
const body = {
|
|
106
|
+
groupid,
|
|
107
|
+
groupname,
|
|
108
|
+
allow_type,
|
|
109
|
+
};
|
|
110
|
+
if (userlist) {
|
|
111
|
+
body.userlist = userlist.split(',').map((email) => email.trim());
|
|
112
|
+
}
|
|
113
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/group/create', body);
|
|
114
|
+
}
|
|
115
|
+
else if (operation === 'updateMailGroup') {
|
|
116
|
+
const groupid = this.getNodeParameter('groupid', i);
|
|
117
|
+
const groupname = this.getNodeParameter('groupname', i, '');
|
|
118
|
+
const userlist = this.getNodeParameter('userlist', i, '');
|
|
119
|
+
const allow_type = this.getNodeParameter('allow_type', i, 0);
|
|
120
|
+
const body = {
|
|
121
|
+
groupid,
|
|
122
|
+
allow_type,
|
|
123
|
+
};
|
|
124
|
+
if (groupname)
|
|
125
|
+
body.groupname = groupname;
|
|
126
|
+
if (userlist) {
|
|
127
|
+
body.userlist = userlist.split(',').map((email) => email.trim());
|
|
128
|
+
}
|
|
129
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/group/update', body);
|
|
130
|
+
}
|
|
131
|
+
else if (operation === 'deleteMailGroup') {
|
|
132
|
+
const groupid = this.getNodeParameter('groupid', i);
|
|
133
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/group/delete', { groupid });
|
|
134
|
+
}
|
|
135
|
+
else if (operation === 'getMailGroup') {
|
|
136
|
+
const groupid = this.getNodeParameter('groupid', i);
|
|
137
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/group/get', { groupid });
|
|
138
|
+
}
|
|
139
|
+
else if (operation === 'searchMailGroup') {
|
|
140
|
+
const fuzzy_groupid = this.getNodeParameter('fuzzy_groupid', i);
|
|
141
|
+
const limit = this.getNodeParameter('limit', i, 100);
|
|
142
|
+
const cursor = this.getNodeParameter('cursor', i, '');
|
|
143
|
+
const body = {
|
|
144
|
+
fuzzy_groupid,
|
|
145
|
+
limit,
|
|
146
|
+
};
|
|
147
|
+
if (cursor)
|
|
148
|
+
body.cursor = cursor;
|
|
149
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/group/search', body);
|
|
150
|
+
}
|
|
151
|
+
else if (operation === 'createPublicMailbox') {
|
|
152
|
+
const mailbox = this.getNodeParameter('mailbox', i);
|
|
153
|
+
const name = this.getNodeParameter('name', i);
|
|
154
|
+
const admin_list = this.getNodeParameter('admin_list', i, '');
|
|
155
|
+
const member_list = this.getNodeParameter('member_list', i, '');
|
|
156
|
+
const body = {
|
|
157
|
+
mailbox,
|
|
158
|
+
name,
|
|
159
|
+
};
|
|
160
|
+
if (admin_list) {
|
|
161
|
+
body.admin_list = admin_list.split(',').map((email) => email.trim());
|
|
162
|
+
}
|
|
163
|
+
if (member_list) {
|
|
164
|
+
body.member_list = member_list.split(',').map((email) => email.trim());
|
|
165
|
+
}
|
|
166
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/publicmailbox/create', body);
|
|
167
|
+
}
|
|
168
|
+
else if (operation === 'updatePublicMailbox') {
|
|
169
|
+
const mailbox = this.getNodeParameter('mailbox', i);
|
|
170
|
+
const name = this.getNodeParameter('name', i, '');
|
|
171
|
+
const admin_list = this.getNodeParameter('admin_list', i, '');
|
|
172
|
+
const member_list = this.getNodeParameter('member_list', i, '');
|
|
173
|
+
const body = { mailbox };
|
|
174
|
+
if (name)
|
|
175
|
+
body.name = name;
|
|
176
|
+
if (admin_list) {
|
|
177
|
+
body.admin_list = admin_list.split(',').map((email) => email.trim());
|
|
178
|
+
}
|
|
179
|
+
if (member_list) {
|
|
180
|
+
body.member_list = member_list.split(',').map((email) => email.trim());
|
|
181
|
+
}
|
|
182
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/publicmailbox/update', body);
|
|
183
|
+
}
|
|
184
|
+
else if (operation === 'deletePublicMailbox') {
|
|
185
|
+
const mailbox = this.getNodeParameter('mailbox', i);
|
|
186
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/publicmailbox/delete', { mailbox });
|
|
187
|
+
}
|
|
188
|
+
else if (operation === 'getPublicMailbox') {
|
|
189
|
+
const mailbox = this.getNodeParameter('mailbox', i);
|
|
190
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/publicmailbox/get', { mailbox });
|
|
191
|
+
}
|
|
192
|
+
else if (operation === 'searchPublicMailbox') {
|
|
193
|
+
const fuzzy_mailbox = this.getNodeParameter('fuzzy_mailbox', i);
|
|
194
|
+
const limit = this.getNodeParameter('limit', i, 100);
|
|
195
|
+
const cursor = this.getNodeParameter('cursor', i, '');
|
|
196
|
+
const body = {
|
|
197
|
+
fuzzy_mailbox,
|
|
198
|
+
limit,
|
|
199
|
+
};
|
|
200
|
+
if (cursor)
|
|
201
|
+
body.cursor = cursor;
|
|
202
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/publicmailbox/search', body);
|
|
203
|
+
}
|
|
204
|
+
else if (operation === 'getClientPasswordList') {
|
|
205
|
+
const mailbox = this.getNodeParameter('mailbox', i);
|
|
206
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/useroption/list', { mailbox });
|
|
207
|
+
}
|
|
208
|
+
else if (operation === 'deleteClientPassword') {
|
|
209
|
+
const mailbox = this.getNodeParameter('mailbox', i);
|
|
210
|
+
const password_id = this.getNodeParameter('password_id', i);
|
|
211
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/useroption/delete', {
|
|
212
|
+
mailbox,
|
|
213
|
+
password_id,
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
else if (operation === 'allocateMailAdvancedAccount') {
|
|
217
|
+
const mailbox_list = this.getNodeParameter('mailbox_list', i);
|
|
218
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/vip/batchadd', {
|
|
219
|
+
mailbox: mailbox_list.split(',').map((email) => email.trim()),
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
else if (operation === 'deallocateMailAdvancedAccount') {
|
|
223
|
+
const mailbox_list = this.getNodeParameter('mailbox_list', i);
|
|
224
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/vip/batchdel', {
|
|
225
|
+
mailbox: mailbox_list.split(',').map((email) => email.trim()),
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
else if (operation === 'getMailAdvancedAccountList') {
|
|
229
|
+
const limit = this.getNodeParameter('limit', i, 100);
|
|
230
|
+
const cursor = this.getNodeParameter('cursor', i, '');
|
|
231
|
+
const body = { limit };
|
|
232
|
+
if (cursor)
|
|
233
|
+
body.cursor = cursor;
|
|
234
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/vip/list', body);
|
|
235
|
+
}
|
|
236
|
+
else if (operation === 'toggleMailboxStatus') {
|
|
237
|
+
const mailbox = this.getNodeParameter('mailbox', i);
|
|
238
|
+
const operation_type = this.getNodeParameter('operation_type', i);
|
|
239
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/user/option', {
|
|
240
|
+
mailbox,
|
|
241
|
+
operation: operation_type,
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
else if (operation === 'getUserMailAttribute') {
|
|
245
|
+
const mailbox = this.getNodeParameter('mailbox', i);
|
|
246
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/user/get', { mailbox });
|
|
247
|
+
}
|
|
248
|
+
else if (operation === 'updateUserMailAttribute') {
|
|
249
|
+
const mailbox = this.getNodeParameter('mailbox', i);
|
|
250
|
+
const attribute = this.getNodeParameter('attribute', i);
|
|
251
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/user/update', {
|
|
252
|
+
mailbox,
|
|
253
|
+
...JSON.parse(attribute),
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
else if (operation === 'getMailUnreadCount') {
|
|
257
|
+
const mailbox = this.getNodeParameter('mailbox', i);
|
|
258
|
+
response = await transport_1.weComApiRequest.call(this, 'POST', '/cgi-bin/exmail/mail/unread', { mailbox });
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
response = {};
|
|
262
|
+
}
|
|
263
|
+
returnData.push({
|
|
264
|
+
json: response,
|
|
265
|
+
pairedItem: { item: i },
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
catch (error) {
|
|
269
|
+
if (this.continueOnFail()) {
|
|
270
|
+
returnData.push({
|
|
271
|
+
json: {
|
|
272
|
+
error: error.message,
|
|
273
|
+
},
|
|
274
|
+
pairedItem: { item: i },
|
|
275
|
+
});
|
|
276
|
+
continue;
|
|
277
|
+
}
|
|
278
|
+
throw error;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
return returnData;
|
|
282
|
+
}
|
|
283
|
+
//# sourceMappingURL=execute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/mail/execute.ts"],"names":[],"mappings":";;AAGA,kCAyTC;AA3TD,sDAAyD;AAElD,KAAK,UAAU,WAAW,CAEhC,SAAiB,EACjB,KAA2B;IAE3B,MAAM,UAAU,GAAyB,EAAE,CAAC;IAE5C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,IAAI,CAAC;YACJ,IAAI,QAAqB,CAAC;YAG1B,IAAI,SAAS,KAAK,UAAU,EAAE,CAAC;gBAC9B,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAW,CAAC;gBAC5D,MAAM,QAAQ,GAAG,IAA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AAE,EAAE,OAAO,EAAE,CAAC,CAAC;YACjG,CAAC;iBAAM,CAAC;gBACP,QAAQ,GAAG,EAAE,CAAC;YACf,CAAC;YAED,UAAU,CAAC,IAAI,CAAC;gBACf,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;aACvB,CAAC,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC3B,UAAU,CAAC,IAAI,CAAC;oBACf,IAAI,EAAE;wBACL,KAAK,EAAE,KAAK,CAAC,OAAO;qBACpB;oBACD,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;iBACvB,CAAC,CAAC;gBACH,SAAS;YACV,CAAC;YACD,MAAM,KAAK,CAAC;QACb,CAAC;IACF,CAAC;IAED,OAAO,UAAU,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAppMailboxDescription = void 0;
|
|
4
|
+
const showOnlyForGetAppMailbox = {
|
|
5
|
+
resource: ['mail'],
|
|
6
|
+
operation: ['getAppMailbox'],
|
|
7
|
+
};
|
|
8
|
+
exports.getAppMailboxDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: '邮箱地址',
|
|
11
|
+
name: 'mailbox',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForGetAppMailbox,
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: '要查询的应用邮箱地址',
|
|
19
|
+
hint: '邮箱地址',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
//# sourceMappingURL=getAppMailbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAppMailbox.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/mail/getAppMailbox.ts"],"names":[],"mappings":";;;AAEA,MAAM,wBAAwB,GAAG;IAChC,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,eAAe,CAAC;CAC5B,CAAC;AAEW,QAAA,wBAAwB,GAAsB;IAC1D;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,MAAM;KACZ;CACD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getClientPasswordListDescription = void 0;
|
|
4
|
+
const showOnlyForGetClientPasswordList = {
|
|
5
|
+
resource: ['mail'],
|
|
6
|
+
operation: ['getClientPasswordList'],
|
|
7
|
+
};
|
|
8
|
+
exports.getClientPasswordListDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: '邮箱地址',
|
|
11
|
+
name: 'mailbox',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForGetClientPasswordList,
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: '要查询的邮箱地址',
|
|
19
|
+
hint: '邮箱地址',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
//# sourceMappingURL=getClientPasswordList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getClientPasswordList.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/mail/getClientPasswordList.ts"],"names":[],"mappings":";;;AAEA,MAAM,gCAAgC,GAAG;IACxC,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,uBAAuB,CAAC;CACpC,CAAC;AAEW,QAAA,gCAAgC,GAAsB;IAClE;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,gCAAgC;SACtC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,MAAM;KACZ;CACD,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMailAdvancedAccountListDescription = void 0;
|
|
4
|
+
const showOnlyForGetMailAdvancedAccountList = {
|
|
5
|
+
resource: ['mail'],
|
|
6
|
+
operation: ['getMailAdvancedAccountList'],
|
|
7
|
+
};
|
|
8
|
+
exports.getMailAdvancedAccountListDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: '返回数量',
|
|
11
|
+
name: 'limit',
|
|
12
|
+
type: 'number',
|
|
13
|
+
typeOptions: {
|
|
14
|
+
minValue: 1,
|
|
15
|
+
},
|
|
16
|
+
displayOptions: {
|
|
17
|
+
show: showOnlyForGetMailAdvancedAccountList,
|
|
18
|
+
},
|
|
19
|
+
default: 50,
|
|
20
|
+
description: 'Max number of results to return',
|
|
21
|
+
hint: '返回数量',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
displayName: '游标',
|
|
25
|
+
name: 'cursor',
|
|
26
|
+
type: 'string',
|
|
27
|
+
displayOptions: {
|
|
28
|
+
show: showOnlyForGetMailAdvancedAccountList,
|
|
29
|
+
},
|
|
30
|
+
default: '',
|
|
31
|
+
description: '分页游标',
|
|
32
|
+
hint: '分页游标(可选)',
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
//# sourceMappingURL=getMailAdvancedAccountList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMailAdvancedAccountList.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/mail/getMailAdvancedAccountList.ts"],"names":[],"mappings":";;;AAEA,MAAM,qCAAqC,GAAG;IAC7C,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,4BAA4B,CAAC;CACzC,CAAC;AAEW,QAAA,qCAAqC,GAAsB;IACvE;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX;QACD,cAAc,EAAE;YACf,IAAI,EAAE,qCAAqC;SAC3C;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;QAC9C,IAAI,EAAE,MAAM;KACZ;IACD;QACC,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,qCAAqC;SAC3C;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,UAAU;KAChB;CACD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMailContentDescription = void 0;
|
|
4
|
+
const showOnlyForGetMailContent = {
|
|
5
|
+
resource: ['mail'],
|
|
6
|
+
operation: ['getMailContent'],
|
|
7
|
+
};
|
|
8
|
+
exports.getMailContentDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: '邮箱地址',
|
|
11
|
+
name: 'mailbox',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForGetMailContent,
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
hint: '邮箱地址',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: '邮件ID',
|
|
22
|
+
name: 'mailid',
|
|
23
|
+
type: 'string',
|
|
24
|
+
required: true,
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: showOnlyForGetMailContent,
|
|
27
|
+
},
|
|
28
|
+
default: '',
|
|
29
|
+
hint: '邮件ID',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
//# sourceMappingURL=getMailContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMailContent.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/mail/getMailContent.ts"],"names":[],"mappings":";;;AAEA,MAAM,yBAAyB,GAAG;IACjC,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,gBAAgB,CAAC;CAC7B,CAAC;AAEW,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,yBAAyB;SAC/B;QACD,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,MAAM;KACZ;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,yBAAyB;SAC/B;QACD,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,MAAM;KACZ;CACD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMailGroupDescription = void 0;
|
|
4
|
+
const showOnlyForGetMailGroup = {
|
|
5
|
+
resource: ['mail'],
|
|
6
|
+
operation: ['getMailGroup'],
|
|
7
|
+
};
|
|
8
|
+
exports.getMailGroupDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: '群组地址',
|
|
11
|
+
name: 'groupid',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForGetMailGroup,
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: '群组邮箱地址',
|
|
19
|
+
hint: '群组地址',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
//# sourceMappingURL=getMailGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMailGroup.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/mail/getMailGroup.ts"],"names":[],"mappings":";;;AAEA,MAAM,uBAAuB,GAAG;IAC/B,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,cAAc,CAAC;CAC3B,CAAC;AAEW,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,uBAAuB;SAC7B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,MAAM;KACZ;CACD,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMailListDescription = void 0;
|
|
4
|
+
const showOnlyForGetMailList = {
|
|
5
|
+
resource: ['mail'],
|
|
6
|
+
operation: ['getMailList'],
|
|
7
|
+
};
|
|
8
|
+
exports.getMailListDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: '邮箱地址',
|
|
11
|
+
name: 'mailbox',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForGetMailList,
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: '要查询的邮箱地址',
|
|
19
|
+
hint: '邮箱地址',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: '开始时间',
|
|
23
|
+
name: 'begin_time',
|
|
24
|
+
type: 'number',
|
|
25
|
+
required: true,
|
|
26
|
+
displayOptions: {
|
|
27
|
+
show: showOnlyForGetMailList,
|
|
28
|
+
},
|
|
29
|
+
default: 0,
|
|
30
|
+
description: '开始时间戳',
|
|
31
|
+
hint: '开始时间戳',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
displayName: '结束时间',
|
|
35
|
+
name: 'end_time',
|
|
36
|
+
type: 'number',
|
|
37
|
+
required: true,
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: showOnlyForGetMailList,
|
|
40
|
+
},
|
|
41
|
+
default: 0,
|
|
42
|
+
description: '结束时间戳',
|
|
43
|
+
hint: '结束时间戳',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
displayName: '邮件数量',
|
|
47
|
+
name: 'limit',
|
|
48
|
+
type: 'number',
|
|
49
|
+
typeOptions: {
|
|
50
|
+
minValue: 1,
|
|
51
|
+
},
|
|
52
|
+
displayOptions: {
|
|
53
|
+
show: showOnlyForGetMailList,
|
|
54
|
+
},
|
|
55
|
+
default: 50,
|
|
56
|
+
description: 'Max number of results to return',
|
|
57
|
+
hint: '邮件数量',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
displayName: '游标',
|
|
61
|
+
name: 'cursor',
|
|
62
|
+
type: 'string',
|
|
63
|
+
displayOptions: {
|
|
64
|
+
show: showOnlyForGetMailList,
|
|
65
|
+
},
|
|
66
|
+
default: '',
|
|
67
|
+
description: '分页游标',
|
|
68
|
+
hint: '分页游标(可选)',
|
|
69
|
+
},
|
|
70
|
+
];
|
|
71
|
+
//# sourceMappingURL=getMailList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMailList.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/mail/getMailList.ts"],"names":[],"mappings":";;;AAEA,MAAM,sBAAs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AI,EAAE,UAAU;KAChB;CACD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMailUnreadCountDescription = void 0;
|
|
4
|
+
const showOnlyForGetMailUnreadCount = {
|
|
5
|
+
resource: ['mail'],
|
|
6
|
+
operation: ['getMailUnreadCount'],
|
|
7
|
+
};
|
|
8
|
+
exports.getMailUnreadCountDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: '邮箱地址',
|
|
11
|
+
name: 'mailbox',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForGetMailUnreadCount,
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: '要查询的邮箱地址',
|
|
19
|
+
hint: '邮箱地址',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
//# sourceMappingURL=getMailUnreadCount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMailUnreadCount.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/mail/getMailUnreadCount.ts"],"names":[],"mappings":";;;AAEA,MAAM,6BAA6B,GAAG;IACrC,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,oBAAoB,CAAC;CACjC,CAAC;AAEW,QAAA,6BAA6B,GAAsB;IAC/D;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,6BAA6B;SACnC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,MAAM;KACZ;CACD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPublicMailboxDescription = void 0;
|
|
4
|
+
const showOnlyForGetPublicMailbox = {
|
|
5
|
+
resource: ['mail'],
|
|
6
|
+
operation: ['getPublicMailbox'],
|
|
7
|
+
};
|
|
8
|
+
exports.getPublicMailboxDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: '邮箱地址',
|
|
11
|
+
name: 'mailbox',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForGetPublicMailbox,
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: '公共邮箱地址',
|
|
19
|
+
hint: '邮箱地址',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
//# sourceMappingURL=getPublicMailbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPublicMailbox.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/mail/getPublicMailbox.ts"],"names":[],"mappings":";;;AAEA,MAAM,2BAA2B,GAAG;IACnC,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,kBAAkB,CAAC;CAC/B,CAAC;AAEW,QAAA,2BAA2B,GAAsB;IAC7D;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,MAAM;KACZ;CACD,CAAC"}
|