n8n-nodes-wecom 0.1.19 → 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 +118 -16
- 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/{WeCom/WeCom.node.d.ts → WeComBase/WeComBase.node.d.ts} +1 -1
- package/dist/nodes/{WeCom/WeCom.node.js → WeComBase/WeComBase.node.js} +45 -69
- package/dist/nodes/WeComBase/WeComBase.node.js.map +1 -0
- package/dist/nodes/{WeCom/WeCom.node.json → WeComBase/WeComBase.node.json} +4 -5
- package/dist/nodes/WeComOffice/WeComOffice.node.d.ts +5 -0
- package/dist/nodes/WeComOffice/WeComOffice.node.js +89 -0
- package/dist/nodes/WeComOffice/WeComOffice.node.js.map +1 -0
- package/dist/nodes/WeComOffice/WeComOffice.node.json +18 -0
- package/dist/package.json +3 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/dist/nodes/WeCom/WeCom.node.js.map +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateAppMailboxDescription = void 0;
|
|
4
|
+
const showOnlyForUpdateAppMailbox = {
|
|
5
|
+
resource: ['mail'],
|
|
6
|
+
operation: ['updateAppMailbox'],
|
|
7
|
+
};
|
|
8
|
+
exports.updateAppMailboxDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: '邮箱地址',
|
|
11
|
+
name: 'mailbox',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForUpdateAppMailbox,
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: '要更新的应用邮箱地址',
|
|
19
|
+
hint: '邮箱地址',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: '邮箱名称',
|
|
23
|
+
name: 'name',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: showOnlyForUpdateAppMailbox,
|
|
27
|
+
},
|
|
28
|
+
default: '',
|
|
29
|
+
hint: '邮箱名称(可选)',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
displayName: '邮箱描述',
|
|
33
|
+
name: 'remark',
|
|
34
|
+
type: 'string',
|
|
35
|
+
displayOptions: {
|
|
36
|
+
show: showOnlyForUpdateAppMailbox,
|
|
37
|
+
},
|
|
38
|
+
default: '',
|
|
39
|
+
hint: '邮箱描述(可选)',
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
//# sourceMappingURL=updateAppMailbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateAppMailbox.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/mail/updateAppMailbox.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,YAAY;QACzB,IAAI,EAAE,MAAM;KACZ;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;QACD,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,UAAU;KAChB;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,2BAA2B;SACjC;QACD,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,UAAU;KAChB;CACD,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateMailGroupDescription = void 0;
|
|
4
|
+
const showOnlyForUpdateMailGroup = {
|
|
5
|
+
resource: ['mail'],
|
|
6
|
+
operation: ['updateMailGroup'],
|
|
7
|
+
};
|
|
8
|
+
exports.updateMailGroupDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: '群组地址',
|
|
11
|
+
name: 'groupid',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForUpdateMailGroup,
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: '群组邮箱地址',
|
|
19
|
+
hint: '群组地址',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: '群组名称',
|
|
23
|
+
name: 'groupname',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: showOnlyForUpdateMailGroup,
|
|
27
|
+
},
|
|
28
|
+
default: '',
|
|
29
|
+
hint: '群组名称(可选)',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
displayName: '成员列表',
|
|
33
|
+
name: 'userlist',
|
|
34
|
+
type: 'string',
|
|
35
|
+
displayOptions: {
|
|
36
|
+
show: showOnlyForUpdateMailGroup,
|
|
37
|
+
},
|
|
38
|
+
default: '',
|
|
39
|
+
description: '群组成员邮箱列表,用逗号分隔',
|
|
40
|
+
hint: '成员邮箱列表(可选)',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
displayName: '允许外部成员',
|
|
44
|
+
name: 'allow_type',
|
|
45
|
+
type: 'options',
|
|
46
|
+
displayOptions: {
|
|
47
|
+
show: showOnlyForUpdateMailGroup,
|
|
48
|
+
},
|
|
49
|
+
options: [
|
|
50
|
+
{
|
|
51
|
+
name: '仅内部成员',
|
|
52
|
+
value: 0,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: '允许外部成员',
|
|
56
|
+
value: 1,
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
default: 0,
|
|
60
|
+
description: '是否允许外部成员',
|
|
61
|
+
hint: '是否允许外部成员',
|
|
62
|
+
},
|
|
63
|
+
];
|
|
64
|
+
//# sourceMappingURL=updateMailGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateMailGroup.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/mail/updateMailGroup.ts"],"names":[],"mappings":";;;AAEA,MAAM,0BAA0B,GAAG;IAClC,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,iBAAiB,CAAC;CAC9B,CAAC;AAEW,QAAA,0BAA0B,GAAsB;IAC5D;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,0BAA0B;SAChC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,MAAM;KACZ;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,0BAA0B;SAChC;QACD,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,UAAU;KAChB;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,0BAA0B;SAChC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,YAAY;KAClB;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE,0BAA0B;SAChC;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,CAAC;aACR;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,CAAC;aACR;SACD;QACD,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;KAChB;CACD,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updatePublicMailboxDescription = void 0;
|
|
4
|
+
const showOnlyForUpdatePublicMailbox = {
|
|
5
|
+
resource: ['mail'],
|
|
6
|
+
operation: ['updatePublicMailbox'],
|
|
7
|
+
};
|
|
8
|
+
exports.updatePublicMailboxDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: '邮箱地址',
|
|
11
|
+
name: 'mailbox',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForUpdatePublicMailbox,
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: '公共邮箱地址',
|
|
19
|
+
hint: '邮箱地址',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: '邮箱名称',
|
|
23
|
+
name: 'name',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: showOnlyForUpdatePublicMailbox,
|
|
27
|
+
},
|
|
28
|
+
default: '',
|
|
29
|
+
hint: '邮箱名称(可选)',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
displayName: '管理员列表',
|
|
33
|
+
name: 'admin_list',
|
|
34
|
+
type: 'string',
|
|
35
|
+
displayOptions: {
|
|
36
|
+
show: showOnlyForUpdatePublicMailbox,
|
|
37
|
+
},
|
|
38
|
+
default: '',
|
|
39
|
+
description: '管理员邮箱列表,用逗号分隔',
|
|
40
|
+
hint: '管理员邮箱列表(可选)',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
displayName: '成员列表',
|
|
44
|
+
name: 'member_list',
|
|
45
|
+
type: 'string',
|
|
46
|
+
displayOptions: {
|
|
47
|
+
show: showOnlyForUpdatePublicMailbox,
|
|
48
|
+
},
|
|
49
|
+
default: '',
|
|
50
|
+
description: '成员邮箱列表,用逗号分隔',
|
|
51
|
+
hint: '成员邮箱列表(可选)',
|
|
52
|
+
},
|
|
53
|
+
];
|
|
54
|
+
//# sourceMappingURL=updatePublicMailbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatePublicMailbox.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/mail/updatePublicMailbox.ts"],"names":[],"mappings":";;;AAEA,MAAM,8BAA8B,GAAG;IACtC,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,qBAAqB,CAAC;CAClC,CAAC;AAEW,QAAA,8BAA8B,GAAsB;IAChE;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,8BAA8B;SACpC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,MAAM;KACZ;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,8BAA8B;SACpC;QACD,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,UAAU;KAChB;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,8BAA8B;SACpC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,aAAa;KACnB;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE,8BAA8B;SACpC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,YAAY;KAClB;CACD,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateUserMailAttributeDescription = void 0;
|
|
4
|
+
const showOnlyForUpdateUserMailAttribute = {
|
|
5
|
+
resource: ['mail'],
|
|
6
|
+
operation: ['updateUserMailAttribute'],
|
|
7
|
+
};
|
|
8
|
+
exports.updateUserMailAttributeDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: '邮箱地址',
|
|
11
|
+
name: 'mailbox',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForUpdateUserMailAttribute,
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
hint: '邮箱地址',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: '功能属性',
|
|
22
|
+
name: 'attribute',
|
|
23
|
+
type: 'json',
|
|
24
|
+
required: true,
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: showOnlyForUpdateUserMailAttribute,
|
|
27
|
+
},
|
|
28
|
+
default: '{}',
|
|
29
|
+
description: '功能属性设置JSON',
|
|
30
|
+
hint: '功能属性JSON',
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
//# sourceMappingURL=updateUserMailAttribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateUserMailAttribute.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/mail/updateUserMailAttribute.ts"],"names":[],"mappings":";;;AAEA,MAAM,kCAAkC,GAAG;IAC1C,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,SAAS,EAAE,CAAC,yBAAyB,CAAC;CACtC,CAAC;AAEW,QAAA,kCAAkC,GAAsB;IACpE;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,kCAAkC;SACxC;QACD,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,MAAM;KACZ;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,kCAAkC;SACxC;QACD,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,UAAU;KAChB;CACD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class WeComBase implements INodeType {
|
|
3
3
|
description: INodeTypeDescription;
|
|
4
4
|
methods: {
|
|
5
5
|
loadOptions: {
|
|
@@ -1,36 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.WeComBase = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
const execute_7 = require("./resources/wedoc/execute");
|
|
20
|
-
const execute_8 = require("./resources/wefile/execute");
|
|
21
|
-
const transport_1 = require("./shared/transport");
|
|
22
|
-
class WeCom {
|
|
5
|
+
const message_1 = require("../WeCom/resources/message");
|
|
6
|
+
const contact_1 = require("../WeCom/resources/contact");
|
|
7
|
+
const material_1 = require("../WeCom/resources/material");
|
|
8
|
+
const appChat_1 = require("../WeCom/resources/appChat");
|
|
9
|
+
const linkedcorp_1 = require("../WeCom/resources/linkedcorp");
|
|
10
|
+
const pushMessage_1 = require("../WeCom/resources/pushMessage");
|
|
11
|
+
const execute_1 = require("../WeCom/resources/message/execute");
|
|
12
|
+
const execute_2 = require("../WeCom/resources/contact/execute");
|
|
13
|
+
const execute_3 = require("../WeCom/resources/material/execute");
|
|
14
|
+
const execute_4 = require("../WeCom/resources/appChat/execute");
|
|
15
|
+
const execute_5 = require("../WeCom/resources/linkedcorp/execute");
|
|
16
|
+
const execute_6 = require("../WeCom/resources/pushMessage/execute");
|
|
17
|
+
const transport_1 = require("../WeCom/shared/transport");
|
|
18
|
+
class WeComBase {
|
|
23
19
|
constructor() {
|
|
24
20
|
this.description = {
|
|
25
|
-
displayName: '
|
|
26
|
-
name: '
|
|
21
|
+
displayName: '企业微信-基础',
|
|
22
|
+
name: 'weComBase',
|
|
27
23
|
icon: { light: 'file:../../icons/wecom.png', dark: 'file:../../icons/wecom.dark.png' },
|
|
28
24
|
group: ['transform'],
|
|
29
25
|
version: 1,
|
|
30
26
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
31
|
-
description: '
|
|
27
|
+
description: '企业微信基础功能 - 通讯录、应用消息、群聊、消息推送、企业互联、素材',
|
|
32
28
|
defaults: {
|
|
33
|
-
name: '
|
|
29
|
+
name: '企业微信-基础',
|
|
34
30
|
},
|
|
35
31
|
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
36
32
|
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
@@ -46,8 +42,6 @@ class WeCom {
|
|
|
46
42
|
'contact',
|
|
47
43
|
'material',
|
|
48
44
|
'linkedcorp',
|
|
49
|
-
'wedoc',
|
|
50
|
-
'wefile',
|
|
51
45
|
],
|
|
52
46
|
},
|
|
53
47
|
},
|
|
@@ -77,29 +71,24 @@ class WeCom {
|
|
|
77
71
|
noDataExpression: true,
|
|
78
72
|
options: [
|
|
79
73
|
{
|
|
80
|
-
name: '
|
|
81
|
-
value: '
|
|
82
|
-
description: '
|
|
74
|
+
name: '通讯录',
|
|
75
|
+
value: 'contact',
|
|
76
|
+
description: '管理企业通讯录(成员、部门、标签)',
|
|
83
77
|
},
|
|
84
78
|
{
|
|
85
79
|
name: '应用消息',
|
|
86
80
|
value: 'message',
|
|
87
|
-
description: '
|
|
81
|
+
description: '发送各类应用消息(文本、图片、文件等)',
|
|
88
82
|
},
|
|
89
83
|
{
|
|
90
84
|
name: '群聊会话',
|
|
91
85
|
value: 'appChat',
|
|
92
|
-
description: '
|
|
86
|
+
description: '管理群聊会话和发送消息到群聊',
|
|
93
87
|
},
|
|
94
88
|
{
|
|
95
|
-
name: '
|
|
96
|
-
value: '
|
|
97
|
-
description: '
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
name: '素材管理',
|
|
101
|
-
value: 'material',
|
|
102
|
-
description: '上传和管理素材文件',
|
|
89
|
+
name: '消息推送',
|
|
90
|
+
value: 'pushMessage',
|
|
91
|
+
description: '通过群机器人 Webhook 发送消息到群聊',
|
|
103
92
|
},
|
|
104
93
|
{
|
|
105
94
|
name: '企业互联',
|
|
@@ -107,26 +96,19 @@ class WeCom {
|
|
|
107
96
|
description: '企业互联和上下游管理',
|
|
108
97
|
},
|
|
109
98
|
{
|
|
110
|
-
name: '
|
|
111
|
-
value: '
|
|
112
|
-
description: '
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
name: '微盘',
|
|
116
|
-
value: 'wefile',
|
|
117
|
-
description: '管理微盘空间和文件',
|
|
99
|
+
name: '素材管理',
|
|
100
|
+
value: 'material',
|
|
101
|
+
description: '上传和管理素材文件',
|
|
118
102
|
},
|
|
119
103
|
],
|
|
120
|
-
default: '
|
|
104
|
+
default: 'contact',
|
|
121
105
|
},
|
|
122
|
-
...
|
|
106
|
+
...contact_1.contactDescription,
|
|
123
107
|
...message_1.messageDescription,
|
|
124
108
|
...appChat_1.appChatDescription,
|
|
125
|
-
...
|
|
126
|
-
...material_1.materialDescription,
|
|
109
|
+
...pushMessage_1.pushMessageDescription,
|
|
127
110
|
...linkedcorp_1.linkedcorpDescription,
|
|
128
|
-
...
|
|
129
|
-
...wefile_1.wefileDescription,
|
|
111
|
+
...material_1.materialDescription,
|
|
130
112
|
],
|
|
131
113
|
usableAsTool: true,
|
|
132
114
|
};
|
|
@@ -204,32 +186,26 @@ class WeCom {
|
|
|
204
186
|
const resource = this.getNodeParameter('resource', 0);
|
|
205
187
|
const operation = this.getNodeParameter('operation', 0);
|
|
206
188
|
let returnData = [];
|
|
207
|
-
if (resource === '
|
|
208
|
-
returnData = await
|
|
189
|
+
if (resource === 'contact') {
|
|
190
|
+
returnData = await execute_2.executeContact.call(this, operation, items);
|
|
209
191
|
}
|
|
210
192
|
else if (resource === 'message') {
|
|
211
|
-
returnData = await
|
|
193
|
+
returnData = await execute_1.executeMessage.call(this, operation, items);
|
|
212
194
|
}
|
|
213
195
|
else if (resource === 'appChat') {
|
|
214
|
-
returnData = await
|
|
196
|
+
returnData = await execute_4.executeAppChat.call(this, operation, items);
|
|
215
197
|
}
|
|
216
|
-
else if (resource === '
|
|
217
|
-
returnData = await
|
|
218
|
-
}
|
|
219
|
-
else if (resource === 'material') {
|
|
220
|
-
returnData = await execute_4.executeMaterial.call(this, operation, items);
|
|
198
|
+
else if (resource === 'pushMessage') {
|
|
199
|
+
returnData = await execute_6.executePushMessage.call(this, operation, items);
|
|
221
200
|
}
|
|
222
201
|
else if (resource === 'linkedcorp') {
|
|
223
|
-
returnData = await
|
|
224
|
-
}
|
|
225
|
-
else if (resource === 'wedoc') {
|
|
226
|
-
returnData = await execute_7.executeWedoc.call(this, operation, items);
|
|
202
|
+
returnData = await execute_5.executeLinkedcorp.call(this, operation, items);
|
|
227
203
|
}
|
|
228
|
-
else if (resource === '
|
|
229
|
-
returnData = await
|
|
204
|
+
else if (resource === 'material') {
|
|
205
|
+
returnData = await execute_3.executeMaterial.call(this, operation, items);
|
|
230
206
|
}
|
|
231
207
|
return [returnData];
|
|
232
208
|
}
|
|
233
209
|
}
|
|
234
|
-
exports.
|
|
235
|
-
//# sourceMappingURL=
|
|
210
|
+
exports.WeComBase = WeComBase;
|
|
211
|
+
//# sourceMappingURL=WeComBase.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WeComBase.node.js","sourceRoot":"","sources":["../../../nodes/WeComBase/WeComBase.node.ts"],"names":[],"mappings":";;;AAQA,+CAAmD;AACnD,wDAAgE;AAChE,wDAAgE;AAChE,0DAAkE;AAClE,wDAAgE;AAChE,8DAAsE;AACtE,gEAAwE;AACxE,gEAAoE;AACpE,gEAAoE;AACpE,iEAAsE;AACtE,gEAAoE;AACpE,mEAA0E;AAC1E,oEAA4E;AAC5E,yDAA4D;AAE5D,MAAa,SAAS;IAAtB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,WAAW;YAEjB,IAAI,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,IAAI,EAAE,iCAAiC,EAAE;YACtF,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE;gBACT,IAAI,EAAE,SAAS;aACf;YACD,MA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,SAAS,EAAE,CAAC;YAC5B,UAAU,GAAG,MAAM,wBAAc,CAAC,IAAI,CAAC,IAAI,EAAE,SAAmB,EAAE,KAAK,CAAC,CAAC;QAC1E,CAAC;aAAM,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnC,UAAU,GAAG,MAAM,wBAAc,CAAC,IAAI,CAAC,IAAI,EAAE,SAAmB,EAAE,KAAK,CAAC,CAAC;QAC1E,CAAC;aAAM,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnC,UAAU,GAAG,MAAM,wBAAc,CAAC,IAAI,CAAC,IAAI,EAAE,SAAmB,EAAE,KAAK,CAAC,CAAC;QAC1E,CAAC;aAAM,IAAI,QAAQ,KAAK,aAAa,EAAE,CAAC;YACvC,UAAU,GAAG,MAAM,4BAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,SAAmB,EAAE,KAAK,CAAC,CAAC;QAC9E,CAAC;aAAM,IAAI,QAAQ,KAAK,YAAY,EAAE,CAAC;YACtC,UAAU,GAAG,MAAM,2BAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,SAAmB,EAAE,KAAK,CAAC,CAAC;QAC7E,CAAC;aAAM,IAAI,QAAQ,KAAK,UAAU,EAAE,CAAC;YACpC,UAAU,GAAG,MAAM,yBAAe,CAAC,IAAI,CAAC,IAAI,EAAE,SAAmB,EAAE,KAAK,CAAC,CAAC;QAC3E,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AA1OD,8BA0OC"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"node": "n8n-nodes-
|
|
2
|
+
"node": "n8n-nodes-wecom.weComBase",
|
|
3
3
|
"nodeVersion": "1.0",
|
|
4
4
|
"codexVersion": "1.0",
|
|
5
5
|
"categories": ["Communication"],
|
|
6
6
|
"resources": {
|
|
7
7
|
"credentialDocumentation": [
|
|
8
8
|
{
|
|
9
|
-
"url": "https://developer.work.weixin.qq.com/
|
|
9
|
+
"url": "https://developer.work.weixin.qq.com/"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"primaryDocumentation": [
|
|
13
13
|
{
|
|
14
|
-
"url": "https://
|
|
14
|
+
"url": "https://github.com/yourusername/n8n-nodes-wecom"
|
|
15
15
|
}
|
|
16
16
|
]
|
|
17
|
-
}
|
|
18
|
-
"alias": ["企业微信", "WeCom", "Work Weixin"]
|
|
17
|
+
}
|
|
19
18
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class WeComOffice implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WeComOffice = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const wedoc_1 = require("../WeCom/resources/wedoc");
|
|
6
|
+
const wefile_1 = require("../WeCom/resources/wefile");
|
|
7
|
+
const mail_1 = require("../WeCom/resources/mail");
|
|
8
|
+
const execute_1 = require("../WeCom/resources/wedoc/execute");
|
|
9
|
+
const execute_2 = require("../WeCom/resources/wefile/execute");
|
|
10
|
+
const execute_3 = require("../WeCom/resources/mail/execute");
|
|
11
|
+
class WeComOffice {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.description = {
|
|
14
|
+
displayName: '企业微信-办公',
|
|
15
|
+
name: 'weComOffice',
|
|
16
|
+
icon: { light: 'file:../../icons/wecom.png', dark: 'file:../../icons/wecom.dark.png' },
|
|
17
|
+
group: ['transform'],
|
|
18
|
+
version: 1,
|
|
19
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
20
|
+
description: '企业微信办公功能 - 文档、微盘、邮件',
|
|
21
|
+
defaults: {
|
|
22
|
+
name: '企业微信-办公',
|
|
23
|
+
},
|
|
24
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
25
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
26
|
+
credentials: [
|
|
27
|
+
{
|
|
28
|
+
name: 'weComApi',
|
|
29
|
+
required: true,
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
requestDefaults: {
|
|
33
|
+
baseURL: 'https://qyapi.weixin.qq.com',
|
|
34
|
+
headers: {
|
|
35
|
+
Accept: 'application/json',
|
|
36
|
+
'Content-Type': 'application/json',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
properties: [
|
|
40
|
+
{
|
|
41
|
+
displayName: '资源',
|
|
42
|
+
name: 'resource',
|
|
43
|
+
type: 'options',
|
|
44
|
+
noDataExpression: true,
|
|
45
|
+
options: [
|
|
46
|
+
{
|
|
47
|
+
name: '邮件',
|
|
48
|
+
value: 'mail',
|
|
49
|
+
description: '管理企业邮箱(发送邮件、邮件群组、公共邮箱等)',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: '文档',
|
|
53
|
+
value: 'wedoc',
|
|
54
|
+
description: '管理企业微信文档(在线文档、表格、智能表格)',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: '微盘',
|
|
58
|
+
value: 'wefile',
|
|
59
|
+
description: '管理微盘空间和文件',
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
default: 'wedoc',
|
|
63
|
+
},
|
|
64
|
+
...wedoc_1.wedocDescription,
|
|
65
|
+
...wefile_1.wefileDescription,
|
|
66
|
+
...mail_1.mailDescription,
|
|
67
|
+
],
|
|
68
|
+
usableAsTool: true,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
async execute() {
|
|
72
|
+
const items = this.getInputData();
|
|
73
|
+
const resource = this.getNodeParameter('resource', 0);
|
|
74
|
+
const operation = this.getNodeParameter('operation', 0);
|
|
75
|
+
let returnData = [];
|
|
76
|
+
if (resource === 'wedoc') {
|
|
77
|
+
returnData = await execute_1.executeWedoc.call(this, operation, items);
|
|
78
|
+
}
|
|
79
|
+
else if (resource === 'wefile') {
|
|
80
|
+
returnData = await execute_2.executeWefile.call(this, operation, items);
|
|
81
|
+
}
|
|
82
|
+
else if (resource === 'mail') {
|
|
83
|
+
returnData = await execute_3.executeMail.call(this, operation, items);
|
|
84
|
+
}
|
|
85
|
+
return [returnData];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.WeComOffice = WeComOffice;
|
|
89
|
+
//# sourceMappingURL=WeComOffice.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WeComOffice.node.js","sourceRoot":"","sources":["../../../nodes/WeComOffice/WeComOffice.node.ts"],"names":[],"mappings":";;;AAMA,+CAAmD;AACnD,oDAA4D;AAC5D,sDAA8D;AAC9D,kDAA0D;AAC1D,8DAAgE;AAChE,+DAAkE;AAClE,6DAA8D;AAE9D,MAAa,WAAW;IAAxB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,aAAa;YAEnB,IAAI,EAAE,EAAE,KAAK,EAAE,4BAA4B,EAAE,IAAI,EAAE,iCAAiC,EAAE;YACtF,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,qBAAqB;YAClC,QAAQ,EAAE;gBACT,IAAI,EAAE,SAAS;aACf;YACD,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,UAAU;oBAChB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,6BAA6B;gBACtC,OAAO,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AAK,MAAM,EAAE,CAAC;YAChC,UAAU,GAAG,MAAM,qBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,SAAmB,EAAE,KAAK,CAAC,CAAC;QACvE,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AA7ED,kCA6EC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-wecom.weComOffice",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Communication", "Productivity"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"credentialDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://developer.work.weixin.qq.com/"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"primaryDocumentation": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://github.com/yourusername/n8n-nodes-wecom"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-wecom",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "n8n community node for WeCom (WeChat Work) integration. Send messages and manage contacts.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/funcodingdev/n8n-nodes-wecom",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"dist/credentials/WeComReceiveApi.credentials.js"
|
|
43
43
|
],
|
|
44
44
|
"nodes": [
|
|
45
|
-
"dist/nodes/
|
|
45
|
+
"dist/nodes/WeComBase/WeComBase.node.js",
|
|
46
|
+
"dist/nodes/WeComOffice/WeComOffice.node.js",
|
|
46
47
|
"dist/nodes/WeComTrigger/WeComTrigger.node.js"
|
|
47
48
|
]
|
|
48
49
|
},
|