n8n-nodes-wecom 0.1.1
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/LICENSE.md +19 -0
- package/README.md +89 -0
- package/dist/credentials/WeComApi.credentials.d.ts +10 -0
- package/dist/credentials/WeComApi.credentials.js +58 -0
- package/dist/credentials/WeComApi.credentials.js.map +1 -0
- package/dist/icons/wecom.dark.png +0 -0
- package/dist/icons/wecom.png +0 -0
- package/dist/nodes/WeCom/WeCom.node.d.ts +15 -0
- package/dist/nodes/WeCom/WeCom.node.js +156 -0
- package/dist/nodes/WeCom/WeCom.node.js.map +1 -0
- package/dist/nodes/WeCom/WeCom.node.json +19 -0
- package/dist/nodes/WeCom/resources/contact/convertToOpenid.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/convertToOpenid.js +24 -0
- package/dist/nodes/WeCom/resources/contact/convertToOpenid.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/convertToUserid.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/convertToUserid.js +21 -0
- package/dist/nodes/WeCom/resources/contact/convertToUserid.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/execute.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/execute.js +89 -0
- package/dist/nodes/WeCom/resources/contact/execute.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/getDepartment.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/getDepartment.js +23 -0
- package/dist/nodes/WeCom/resources/contact/getDepartment.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/getTag.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/getTag.js +24 -0
- package/dist/nodes/WeCom/resources/contact/getTag.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/getTagList.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/getTagList.js +34 -0
- package/dist/nodes/WeCom/resources/contact/getTagList.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/getUser.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/getUser.js +24 -0
- package/dist/nodes/WeCom/resources/contact/getUser.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/index.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/index.js +93 -0
- package/dist/nodes/WeCom/resources/contact/index.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/listUserIds.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/listUserIds.js +35 -0
- package/dist/nodes/WeCom/resources/contact/listUserIds.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/listUsers.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/listUsers.js +34 -0
- package/dist/nodes/WeCom/resources/contact/listUsers.js.map +1 -0
- package/dist/nodes/WeCom/resources/contact/listUsersDetail.d.ts +2 -0
- package/dist/nodes/WeCom/resources/contact/listUsersDetail.js +34 -0
- package/dist/nodes/WeCom/resources/contact/listUsersDetail.js.map +1 -0
- package/dist/nodes/WeCom/resources/material/execute.d.ts +2 -0
- package/dist/nodes/WeCom/resources/material/execute.js +129 -0
- package/dist/nodes/WeCom/resources/material/execute.js.map +1 -0
- package/dist/nodes/WeCom/resources/material/getPermanent.d.ts +2 -0
- package/dist/nodes/WeCom/resources/material/getPermanent.js +31 -0
- package/dist/nodes/WeCom/resources/material/getPermanent.js.map +1 -0
- package/dist/nodes/WeCom/resources/material/getTemp.d.ts +2 -0
- package/dist/nodes/WeCom/resources/material/getTemp.js +31 -0
- package/dist/nodes/WeCom/resources/material/getTemp.js.map +1 -0
- package/dist/nodes/WeCom/resources/material/index.d.ts +2 -0
- package/dist/nodes/WeCom/resources/material/index.js +52 -0
- package/dist/nodes/WeCom/resources/material/index.js.map +1 -0
- package/dist/nodes/WeCom/resources/material/uploadPermanent.d.ts +2 -0
- package/dist/nodes/WeCom/resources/material/uploadPermanent.js +49 -0
- package/dist/nodes/WeCom/resources/material/uploadPermanent.js.map +1 -0
- package/dist/nodes/WeCom/resources/material/uploadTemp.d.ts +2 -0
- package/dist/nodes/WeCom/resources/material/uploadTemp.js +49 -0
- package/dist/nodes/WeCom/resources/material/uploadTemp.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/commonFields.d.ts +7 -0
- package/dist/nodes/WeCom/resources/message/commonFields.js +155 -0
- package/dist/nodes/WeCom/resources/message/commonFields.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/execute.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/execute.js +615 -0
- package/dist/nodes/WeCom/resources/message/execute.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/index.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/index.js +133 -0
- package/dist/nodes/WeCom/resources/message/index.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/recallMessage.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/recallMessage.js +21 -0
- package/dist/nodes/WeCom/resources/message/recallMessage.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/sendFile.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/sendFile.js +62 -0
- package/dist/nodes/WeCom/resources/message/sendFile.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/sendImage.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/sendImage.js +62 -0
- package/dist/nodes/WeCom/resources/message/sendImage.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/sendMarkdown.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/sendMarkdown.js +26 -0
- package/dist/nodes/WeCom/resources/message/sendMarkdown.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/sendMiniprogramNotice.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/sendMiniprogramNotice.js +138 -0
- package/dist/nodes/WeCom/resources/message/sendMiniprogramNotice.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/sendMpNews.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/sendMpNews.js +122 -0
- package/dist/nodes/WeCom/resources/message/sendMpNews.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/sendNews.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/sendNews.js +101 -0
- package/dist/nodes/WeCom/resources/message/sendNews.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/sendTaskCard.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/sendTaskCard.js +160 -0
- package/dist/nodes/WeCom/resources/message/sendTaskCard.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/sendTemplateCard.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/sendTemplateCard.js +298 -0
- package/dist/nodes/WeCom/resources/message/sendTemplateCard.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/sendText.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/sendText.js +69 -0
- package/dist/nodes/WeCom/resources/message/sendText.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/sendTextCard.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/sendTextCard.js +91 -0
- package/dist/nodes/WeCom/resources/message/sendTextCard.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/sendVideo.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/sendVideo.js +126 -0
- package/dist/nodes/WeCom/resources/message/sendVideo.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/sendVoice.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/sendVoice.js +103 -0
- package/dist/nodes/WeCom/resources/message/sendVoice.js.map +1 -0
- package/dist/nodes/WeCom/resources/message/updateTemplateCard.d.ts +2 -0
- package/dist/nodes/WeCom/resources/message/updateTemplateCard.js +286 -0
- package/dist/nodes/WeCom/resources/message/updateTemplateCard.js.map +1 -0
- package/dist/nodes/WeCom/shared/transport.d.ts +6 -0
- package/dist/nodes/WeCom/shared/transport.js +150 -0
- package/dist/nodes/WeCom/shared/transport.js.map +1 -0
- package/dist/nodes/WeCom/shared/types.d.ts +21 -0
- package/dist/nodes/WeCom/shared/types.js +3 -0
- package/dist/nodes/WeCom/shared/types.js.map +1 -0
- package/dist/package.json +56 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +56 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.messageDescription = void 0;
|
|
4
|
+
const sendText_1 = require("./sendText");
|
|
5
|
+
const sendMarkdown_1 = require("./sendMarkdown");
|
|
6
|
+
const sendImage_1 = require("./sendImage");
|
|
7
|
+
const sendFile_1 = require("./sendFile");
|
|
8
|
+
const sendVoice_1 = require("./sendVoice");
|
|
9
|
+
const sendVideo_1 = require("./sendVideo");
|
|
10
|
+
const sendTextCard_1 = require("./sendTextCard");
|
|
11
|
+
const sendNews_1 = require("./sendNews");
|
|
12
|
+
const sendMpNews_1 = require("./sendMpNews");
|
|
13
|
+
const sendMiniprogramNotice_1 = require("./sendMiniprogramNotice");
|
|
14
|
+
const sendTaskCard_1 = require("./sendTaskCard");
|
|
15
|
+
const sendTemplateCard_1 = require("./sendTemplateCard");
|
|
16
|
+
const updateTemplateCard_1 = require("./updateTemplateCard");
|
|
17
|
+
const recallMessage_1 = require("./recallMessage");
|
|
18
|
+
const showOnlyForMessage = {
|
|
19
|
+
resource: ['message'],
|
|
20
|
+
};
|
|
21
|
+
exports.messageDescription = [
|
|
22
|
+
{
|
|
23
|
+
displayName: '操作',
|
|
24
|
+
name: 'operation',
|
|
25
|
+
type: 'options',
|
|
26
|
+
noDataExpression: true,
|
|
27
|
+
displayOptions: {
|
|
28
|
+
show: showOnlyForMessage,
|
|
29
|
+
},
|
|
30
|
+
options: [
|
|
31
|
+
{
|
|
32
|
+
name: '发送 Markdown 消息',
|
|
33
|
+
value: 'sendMarkdown',
|
|
34
|
+
action: '发送 Markdown 消息',
|
|
35
|
+
description: '发送 Markdown 格式的消息',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: '发送任务卡片消息',
|
|
39
|
+
value: 'sendTaskCard',
|
|
40
|
+
action: '发送任务卡片消息',
|
|
41
|
+
description: '发送任务卡片类型的消息',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: '发送图文消息',
|
|
45
|
+
value: 'sendNews',
|
|
46
|
+
action: '发送图文消息',
|
|
47
|
+
description: '发送图文消息(news类型)',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: '发送图文消息(Mpnews)',
|
|
51
|
+
value: 'sendMpNews',
|
|
52
|
+
action: 'Mpnews',
|
|
53
|
+
description: '发送图文消息(mpnews类型)',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: '发送图片消息',
|
|
57
|
+
value: 'sendImage',
|
|
58
|
+
action: '发送图片消息',
|
|
59
|
+
description: '发送图片类型的消息',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: '发送小程序通知消息',
|
|
63
|
+
value: 'sendMiniprogramNotice',
|
|
64
|
+
action: '发送小程序通知消息',
|
|
65
|
+
description: '发送小程序通知类型的消息',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: '发送文件消息',
|
|
69
|
+
value: 'sendFile',
|
|
70
|
+
action: '发送文件消息',
|
|
71
|
+
description: '发送文件类型的消息',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: '发送文本卡片消息',
|
|
75
|
+
value: 'sendTextCard',
|
|
76
|
+
action: '发送文本卡片消息',
|
|
77
|
+
description: '发送文本卡片类型的消息',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: '发送文本消息',
|
|
81
|
+
value: 'sendText',
|
|
82
|
+
action: '发送文本消息',
|
|
83
|
+
description: '发送文本类型的消息',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: '发送模板卡片消息',
|
|
87
|
+
value: 'sendTemplateCard',
|
|
88
|
+
action: '发送模板卡片消息',
|
|
89
|
+
description: '发送模板卡片类型的消息',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: '发送视频消息',
|
|
93
|
+
value: 'sendVideo',
|
|
94
|
+
action: '发送视频消息',
|
|
95
|
+
description: '发送视频类型的消息',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: '发送语音消息',
|
|
99
|
+
value: 'sendVoice',
|
|
100
|
+
action: '发送语音消息',
|
|
101
|
+
description: '发送语音类型的消息',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: '撤回应用消息',
|
|
105
|
+
value: 'recallMessage',
|
|
106
|
+
action: '撤回应用消息',
|
|
107
|
+
description: '撤回已发送的应用消息',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: '更新模板卡片消息',
|
|
111
|
+
value: 'updateTemplateCard',
|
|
112
|
+
action: '更新模板卡片消息',
|
|
113
|
+
description: '更新已发送的模板卡片消息内容',
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
default: 'sendText',
|
|
117
|
+
},
|
|
118
|
+
...sendText_1.sendTextDescription,
|
|
119
|
+
...sendMarkdown_1.sendMarkdownDescription,
|
|
120
|
+
...sendImage_1.sendImageDescription,
|
|
121
|
+
...sendVoice_1.sendVoiceDescription,
|
|
122
|
+
...sendVideo_1.sendVideoDescription,
|
|
123
|
+
...sendFile_1.sendFileDescription,
|
|
124
|
+
...sendTextCard_1.sendTextCardDescription,
|
|
125
|
+
...sendNews_1.sendNewsDescription,
|
|
126
|
+
...sendMpNews_1.sendMpNewsDescription,
|
|
127
|
+
...sendMiniprogramNotice_1.sendMiniprogramNoticeDescription,
|
|
128
|
+
...sendTaskCard_1.sendTaskCardDescription,
|
|
129
|
+
...sendTemplateCard_1.sendTemplateCardDescription,
|
|
130
|
+
...recallMessage_1.recallMessageDescription,
|
|
131
|
+
...updateTemplateCard_1.updateTemplateCardDescription,
|
|
132
|
+
];
|
|
133
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/message/index.ts"],"names":[],"mappings":";;;AACA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Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.recallMessageDescription = void 0;
|
|
4
|
+
const showOnlyRecallMessage = {
|
|
5
|
+
resource: ['message'],
|
|
6
|
+
operation: ['recallMessage'],
|
|
7
|
+
};
|
|
8
|
+
exports.recallMessageDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Msgid',
|
|
11
|
+
name: 'msgid',
|
|
12
|
+
type: 'string',
|
|
13
|
+
required: true,
|
|
14
|
+
default: '',
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: showOnlyRecallMessage,
|
|
17
|
+
},
|
|
18
|
+
description: '消息 ID。从发送消息接口返回的 msgid',
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=recallMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recallMessage.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/message/recallMessage.ts"],"names":[],"mappings":";;;AAEA,MAAM,qBAAqB,GAAG;IAC7B,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,SAAS,EAAE,CAAC,eAAe,CAAC;CAC5B,CAAC;AAEW,QAAA,wBAAwB,GAAsB;IAC1D;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,qBAAqB;SAC3B;QACD,WAAW,EAAE,wBAAwB;KACrC;CACD,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendFileDescription = void 0;
|
|
4
|
+
const commonFields_1 = require("./commonFields");
|
|
5
|
+
const showOnlySendFile = {
|
|
6
|
+
resource: ['message'],
|
|
7
|
+
operation: ['sendFile'],
|
|
8
|
+
};
|
|
9
|
+
exports.sendFileDescription = [
|
|
10
|
+
...(0, commonFields_1.getRecipientFields)('sendFile'),
|
|
11
|
+
{
|
|
12
|
+
displayName: '文件来源',
|
|
13
|
+
name: 'fileSource',
|
|
14
|
+
type: 'options',
|
|
15
|
+
required: true,
|
|
16
|
+
default: 'mediaId',
|
|
17
|
+
displayOptions: {
|
|
18
|
+
show: showOnlySendFile,
|
|
19
|
+
},
|
|
20
|
+
options: [
|
|
21
|
+
{
|
|
22
|
+
name: 'Media ID',
|
|
23
|
+
value: 'mediaId',
|
|
24
|
+
description: '使用已上传的 Media ID',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: '上传文件',
|
|
28
|
+
value: 'upload',
|
|
29
|
+
description: '从输入数据中上传文件',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Media ID',
|
|
35
|
+
name: 'media_id',
|
|
36
|
+
type: 'string',
|
|
37
|
+
default: '',
|
|
38
|
+
required: true,
|
|
39
|
+
displayOptions: {
|
|
40
|
+
show: {
|
|
41
|
+
...showOnlySendFile,
|
|
42
|
+
fileSource: ['mediaId'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
description: '文件ID,可以调用上传临时素材接口获取',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: '输入数据字段名',
|
|
49
|
+
name: 'binaryPropertyName',
|
|
50
|
+
type: 'string',
|
|
51
|
+
default: 'data',
|
|
52
|
+
required: true,
|
|
53
|
+
displayOptions: {
|
|
54
|
+
show: {
|
|
55
|
+
...showOnlySendFile,
|
|
56
|
+
fileSource: ['upload'],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
description: '包含文件数据的二进制属性名称',
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
//# sourceMappingURL=sendFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendFile.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/message/sendFile.ts"],"names":[],"mappings":";;;AACA,iDAAoD;AAEpD,MAAM,gBAAgB,GAAG;IACxB,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,SAAS,EAAE,CAAC,UAAU,CAAC;CACvB,CAAC;AAEW,QAAA,mBAAmB,GAAsB;IACrD,GAAG,IAAA,iCAAkB,EAAC,UAAU,CAAC;IACjC;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,SAAS;QAClB,cAAc,EAAE;YACf,IAAI,EAAE,gBAAgB;SACtB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,iBAAiB;aAC9B;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,YAAY;aACzB;SACD;KACD;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,gBAAgB;gBACnB,UAAU,EAAE,CAAC,SAAS,CAAC;aACvB;SACD;QACD,WAAW,EAAE,qBAAqB;KAClC;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,gBAAgB;gBACnB,UAAU,EAAE,CAAC,QAAQ,CAAC;aACtB;SACD;QACD,WAAW,EAAE,gBAAgB;KAC7B;CACD,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendImageDescription = void 0;
|
|
4
|
+
const commonFields_1 = require("./commonFields");
|
|
5
|
+
const showOnlySendImage = {
|
|
6
|
+
resource: ['message'],
|
|
7
|
+
operation: ['sendImage'],
|
|
8
|
+
};
|
|
9
|
+
exports.sendImageDescription = [
|
|
10
|
+
...(0, commonFields_1.getRecipientFields)('sendImage'),
|
|
11
|
+
{
|
|
12
|
+
displayName: '图片来源',
|
|
13
|
+
name: 'imageSource',
|
|
14
|
+
type: 'options',
|
|
15
|
+
required: true,
|
|
16
|
+
default: 'mediaId',
|
|
17
|
+
displayOptions: {
|
|
18
|
+
show: showOnlySendImage,
|
|
19
|
+
},
|
|
20
|
+
options: [
|
|
21
|
+
{
|
|
22
|
+
name: 'Media ID',
|
|
23
|
+
value: 'mediaId',
|
|
24
|
+
description: '使用已上传的 Media ID',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: '上传文件',
|
|
28
|
+
value: 'upload',
|
|
29
|
+
description: '从输入数据中上传图片文件',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Media ID',
|
|
35
|
+
name: 'media_id',
|
|
36
|
+
type: 'string',
|
|
37
|
+
default: '',
|
|
38
|
+
required: true,
|
|
39
|
+
displayOptions: {
|
|
40
|
+
show: {
|
|
41
|
+
...showOnlySendImage,
|
|
42
|
+
imageSource: ['mediaId'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
description: '图片媒体文件ID,可以调用上传临时素材接口获取',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: '输入数据字段名',
|
|
49
|
+
name: 'binaryPropertyName',
|
|
50
|
+
type: 'string',
|
|
51
|
+
default: 'data',
|
|
52
|
+
required: true,
|
|
53
|
+
displayOptions: {
|
|
54
|
+
show: {
|
|
55
|
+
...showOnlySendImage,
|
|
56
|
+
imageSource: ['upload'],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
description: '包含图片文件数据的二进制属性名称',
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
//# sourceMappingURL=sendImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendImage.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/message/sendImage.ts"],"names":[],"mappings":";;;AACA,iDAAoD;AAEpD,MAAM,iBAAiB,GAAG;IACzB,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,SAAS,EAAE,CAAC,WAAW,CAAC;CACxB,CAAC;AAEW,QAAA,oBAAoB,GAAsB;IACtD,GAAG,IAAA,iCAAkB,EAAC,WAAW,CAAC;IAClC;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,SAAS;QAClB,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,iBAAiB;aAC9B;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,cAAc;aAC3B;SACD;KACD;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,iBAAiB;gBACpB,WAAW,EAAE,CAAC,SAAS,CAAC;aACxB;SACD;QACD,WAAW,EAAE,yBAAyB;KACtC;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,iBAAiB;gBACpB,WAAW,EAAE,CAAC,QAAQ,CAAC;aACvB;SACD;QACD,WAAW,EAAE,kBAAkB;KAC/B;CACD,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendMarkdownDescription = void 0;
|
|
4
|
+
const commonFields_1 = require("./commonFields");
|
|
5
|
+
const showOnlySendMarkdown = {
|
|
6
|
+
resource: ['message'],
|
|
7
|
+
operation: ['sendMarkdown'],
|
|
8
|
+
};
|
|
9
|
+
exports.sendMarkdownDescription = [
|
|
10
|
+
...(0, commonFields_1.getRecipientFields)('sendMarkdown'),
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Markdown 内容',
|
|
13
|
+
name: 'content',
|
|
14
|
+
type: 'string',
|
|
15
|
+
typeOptions: {
|
|
16
|
+
rows: 6,
|
|
17
|
+
},
|
|
18
|
+
required: true,
|
|
19
|
+
default: '',
|
|
20
|
+
displayOptions: {
|
|
21
|
+
show: showOnlySendMarkdown,
|
|
22
|
+
},
|
|
23
|
+
description: 'Markdown 格式的消息内容,最长不超过2048个字节,必须是utf8编码',
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
//# sourceMappingURL=sendMarkdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendMarkdown.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/message/sendMarkdown.ts"],"names":[],"mappings":";;;AACA,iDAAoD;AAEpD,MAAM,oBAAoB,GAAG;IAC5B,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,SAAS,EAAE,CAAC,cAAc,CAAC;CAC3B,CAAC;AAEW,QAAA,uBAAuB,GAAsB;IACzD,GAAG,IAAA,iCAAkB,EAAC,cAAc,CAAC;IACrC;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,IAAI,EAAE,CAAC;SACP;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,oBAAoB;SAC1B;QACD,WAAW,EAAE,yCAAyC;KACtD;CACD,CAAC"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendMiniprogramNoticeDescription = void 0;
|
|
4
|
+
const commonFields_1 = require("./commonFields");
|
|
5
|
+
const showOnlySendMiniprogramNotice = {
|
|
6
|
+
resource: ['message'],
|
|
7
|
+
operation: ['sendMiniprogramNotice'],
|
|
8
|
+
};
|
|
9
|
+
exports.sendMiniprogramNoticeDescription = [
|
|
10
|
+
...(0, commonFields_1.getRecipientFields)('sendMiniprogramNotice'),
|
|
11
|
+
{
|
|
12
|
+
displayName: '小程序Appid',
|
|
13
|
+
name: 'appid',
|
|
14
|
+
type: 'string',
|
|
15
|
+
required: true,
|
|
16
|
+
default: '',
|
|
17
|
+
displayOptions: {
|
|
18
|
+
show: showOnlySendMiniprogramNotice,
|
|
19
|
+
},
|
|
20
|
+
description: '小程序appid,必须是与当前应用关联的小程序',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
displayName: '小程序Page路径',
|
|
24
|
+
name: 'page',
|
|
25
|
+
type: 'string',
|
|
26
|
+
default: '',
|
|
27
|
+
displayOptions: {
|
|
28
|
+
show: showOnlySendMiniprogramNotice,
|
|
29
|
+
},
|
|
30
|
+
description: '点击消息卡片后的小程序页面,最长1024字节,仅限本小程序内的页面。该字段不填则消息点击后不跳转。',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: '消息标题',
|
|
34
|
+
name: 'title',
|
|
35
|
+
type: 'string',
|
|
36
|
+
required: true,
|
|
37
|
+
default: '',
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: showOnlySendMiniprogramNotice,
|
|
40
|
+
},
|
|
41
|
+
description: '消息标题,长度限制4-12个汉字(支持ID转译)',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
displayName: '消息描述',
|
|
45
|
+
name: 'description',
|
|
46
|
+
type: 'string',
|
|
47
|
+
typeOptions: {
|
|
48
|
+
rows: 2,
|
|
49
|
+
},
|
|
50
|
+
default: '',
|
|
51
|
+
displayOptions: {
|
|
52
|
+
show: showOnlySendMiniprogramNotice,
|
|
53
|
+
},
|
|
54
|
+
description: '消息描述,长度限制4-12个汉字(支持ID转译)',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: '是否放大第一个Content_item',
|
|
58
|
+
name: 'emphasis_first_item',
|
|
59
|
+
type: 'boolean',
|
|
60
|
+
default: false,
|
|
61
|
+
displayOptions: {
|
|
62
|
+
show: showOnlySendMiniprogramNotice,
|
|
63
|
+
},
|
|
64
|
+
description: 'Whether to emphasize the first content item',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
displayName: '消息内容键值对',
|
|
68
|
+
name: 'content_items',
|
|
69
|
+
type: 'fixedCollection',
|
|
70
|
+
typeOptions: {
|
|
71
|
+
multipleValues: true,
|
|
72
|
+
},
|
|
73
|
+
required: true,
|
|
74
|
+
default: {},
|
|
75
|
+
placeholder: '添加内容项',
|
|
76
|
+
displayOptions: {
|
|
77
|
+
show: showOnlySendMiniprogramNotice,
|
|
78
|
+
},
|
|
79
|
+
description: '消息内容键值对,最多允许10个item',
|
|
80
|
+
options: [
|
|
81
|
+
{
|
|
82
|
+
displayName: '内容项',
|
|
83
|
+
name: 'item',
|
|
84
|
+
values: [
|
|
85
|
+
{
|
|
86
|
+
displayName: '长度10个汉字以内',
|
|
87
|
+
name: 'key',
|
|
88
|
+
type: 'string',
|
|
89
|
+
required: true,
|
|
90
|
+
default: '',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
displayName: '长度30个汉字以内',
|
|
94
|
+
name: 'value',
|
|
95
|
+
type: 'string',
|
|
96
|
+
required: true,
|
|
97
|
+
default: '',
|
|
98
|
+
description: '长度30个汉字以内(支持ID转译)',
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
displayName: '是否开启ID转译',
|
|
106
|
+
name: 'enable_id_trans',
|
|
107
|
+
type: 'boolean',
|
|
108
|
+
default: false,
|
|
109
|
+
displayOptions: {
|
|
110
|
+
show: showOnlySendMiniprogramNotice,
|
|
111
|
+
},
|
|
112
|
+
description: 'Whether to enable ID translation. 0 means no, 1 means yes, default is 0.',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
displayName: '是否开启重复消息检查',
|
|
116
|
+
name: 'enable_duplicate_check',
|
|
117
|
+
type: 'boolean',
|
|
118
|
+
default: false,
|
|
119
|
+
displayOptions: {
|
|
120
|
+
show: showOnlySendMiniprogramNotice,
|
|
121
|
+
},
|
|
122
|
+
description: 'Whether to enable duplicate message check. 0 means no, 1 means yes, default is 0.',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
displayName: '重复消息检查时间',
|
|
126
|
+
name: 'duplicate_check_interval',
|
|
127
|
+
type: 'number',
|
|
128
|
+
default: 1800,
|
|
129
|
+
displayOptions: {
|
|
130
|
+
show: {
|
|
131
|
+
...showOnlySendMiniprogramNotice,
|
|
132
|
+
enable_duplicate_check: [true],
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
description: '表示是否重复消息检查的时间间隔,默认1800s,最大不超过4小时',
|
|
136
|
+
},
|
|
137
|
+
];
|
|
138
|
+
//# sourceMappingURL=sendMiniprogramNotice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendMiniprogramNotice.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/message/sendMiniprogramNotice.ts"],"names":[],"mappings":";;;AACA,iDAAoD;AAEpD,MAAM,6BAA6B,GAAG;IACrC,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,S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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendMpNewsDescription = void 0;
|
|
4
|
+
const commonFields_1 = require("./commonFields");
|
|
5
|
+
const showOnlySendMpNews = {
|
|
6
|
+
resource: ['message'],
|
|
7
|
+
operation: ['sendMpNews'],
|
|
8
|
+
};
|
|
9
|
+
exports.sendMpNewsDescription = [
|
|
10
|
+
...(0, commonFields_1.getRecipientFields)('sendMpNews'),
|
|
11
|
+
{
|
|
12
|
+
displayName: '图文列表',
|
|
13
|
+
name: 'articles',
|
|
14
|
+
type: 'fixedCollection',
|
|
15
|
+
typeOptions: {
|
|
16
|
+
multipleValues: true,
|
|
17
|
+
},
|
|
18
|
+
required: true,
|
|
19
|
+
default: {},
|
|
20
|
+
placeholder: '添加图文',
|
|
21
|
+
displayOptions: {
|
|
22
|
+
show: showOnlySendMpNews,
|
|
23
|
+
},
|
|
24
|
+
description: 'Mpnews类型的图文消息,一个图文消息支持1到8条图文',
|
|
25
|
+
options: [
|
|
26
|
+
{
|
|
27
|
+
displayName: '图文',
|
|
28
|
+
name: 'article',
|
|
29
|
+
values: [
|
|
30
|
+
{
|
|
31
|
+
displayName: '作者',
|
|
32
|
+
name: 'author',
|
|
33
|
+
type: 'string',
|
|
34
|
+
default: '',
|
|
35
|
+
description: '图文消息的作者,不超过64个字节',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
displayName: '图文消息点击\'阅读原文\'之后的页面链接',
|
|
39
|
+
name: 'content_source_url',
|
|
40
|
+
type: 'string',
|
|
41
|
+
default: '',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
displayName: '图文消息的内容',
|
|
45
|
+
name: 'content',
|
|
46
|
+
type: 'string',
|
|
47
|
+
required: true,
|
|
48
|
+
default: '',
|
|
49
|
+
description: '图文消息的内容,支持html标签,不超过666 K个字节',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: '图文消息的描述',
|
|
53
|
+
name: 'digest',
|
|
54
|
+
type: 'string',
|
|
55
|
+
default: '',
|
|
56
|
+
description: '图文消息的描述,不超过512个字节,超过会自动截断',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
displayName: '图文消息缩略图的Media_id',
|
|
60
|
+
name: 'thumb_media_id',
|
|
61
|
+
type: 'string',
|
|
62
|
+
required: true,
|
|
63
|
+
default: '',
|
|
64
|
+
description: '图文消息缩略图的media_id,可以在上传多媒体文件接口中获得。此处thumb_media_id即上传接口返回的media_id',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
displayName: '标题',
|
|
68
|
+
name: 'title',
|
|
69
|
+
type: 'string',
|
|
70
|
+
required: true,
|
|
71
|
+
default: '',
|
|
72
|
+
description: '标题,不超过128个字节,超过会自动截断',
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
displayName: '安全保密消息',
|
|
80
|
+
name: 'safe',
|
|
81
|
+
type: 'boolean',
|
|
82
|
+
default: false,
|
|
83
|
+
displayOptions: {
|
|
84
|
+
show: showOnlySendMpNews,
|
|
85
|
+
},
|
|
86
|
+
description: 'Whether this is a confidential message. 0 means no, 1 means yes, default is 0.',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
displayName: '是否开启ID转译',
|
|
90
|
+
name: 'enable_id_trans',
|
|
91
|
+
type: 'boolean',
|
|
92
|
+
default: false,
|
|
93
|
+
displayOptions: {
|
|
94
|
+
show: showOnlySendMpNews,
|
|
95
|
+
},
|
|
96
|
+
description: 'Whether to enable ID translation. 0 means no, 1 means yes, default is 0.',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
displayName: '是否开启重复消息检查',
|
|
100
|
+
name: 'enable_duplicate_check',
|
|
101
|
+
type: 'boolean',
|
|
102
|
+
default: false,
|
|
103
|
+
displayOptions: {
|
|
104
|
+
show: showOnlySendMpNews,
|
|
105
|
+
},
|
|
106
|
+
description: 'Whether to enable duplicate message check. 0 means no, 1 means yes, default is 0.',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
displayName: '重复消息检查时间',
|
|
110
|
+
name: 'duplicate_check_interval',
|
|
111
|
+
type: 'number',
|
|
112
|
+
default: 1800,
|
|
113
|
+
displayOptions: {
|
|
114
|
+
show: {
|
|
115
|
+
...showOnlySendMpNews,
|
|
116
|
+
enable_duplicate_check: [true],
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
description: '表示是否重复消息检查的时间间隔,默认1800s,最大不超过4小时',
|
|
120
|
+
},
|
|
121
|
+
];
|
|
122
|
+
//# sourceMappingURL=sendMpNews.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendMpNews.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/message/sendMpNews.ts"],"names":[],"mappings":";;;AACA,iDAAoD;AAEpD,MAAM,kBAAkB,GAAG;IAC1B,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,SAAS,EAAE,CAAC,YAAY,CAAC;CACzB,CAAC;AAEW,QAAA,qBAAqB,GAAsB;IACvD,GAAG,IAAA,iCAAkB,EAAC,YAAY,CAAC;IACnC;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;SACpB;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,MAAM;QACnB,cAAc,EAAE;YACf,IAAI,EAAE,kBAAkB;SACxB;QACD,WAAW,EAAE,8BAA8B;QAC3C,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,IAAI;gBACjB,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE;oBACP;wBACC,WAAW,EAAE,IAAI;wBACjB,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,kBA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