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,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendNewsDescription = void 0;
|
|
4
|
+
const commonFields_1 = require("./commonFields");
|
|
5
|
+
const showOnlySendNews = {
|
|
6
|
+
resource: ['message'],
|
|
7
|
+
operation: ['sendNews'],
|
|
8
|
+
};
|
|
9
|
+
exports.sendNewsDescription = [
|
|
10
|
+
...(0, commonFields_1.getRecipientFields)('sendNews'),
|
|
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: showOnlySendNews,
|
|
23
|
+
},
|
|
24
|
+
description: '图文消息,一个图文消息支持1到8条图文',
|
|
25
|
+
options: [
|
|
26
|
+
{
|
|
27
|
+
displayName: '图文',
|
|
28
|
+
name: 'article',
|
|
29
|
+
values: [
|
|
30
|
+
{
|
|
31
|
+
displayName: '标题',
|
|
32
|
+
name: 'title',
|
|
33
|
+
type: 'string',
|
|
34
|
+
required: true,
|
|
35
|
+
default: '',
|
|
36
|
+
description: '标题,不超过128个字节,超过会自动截断',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
displayName: '描述',
|
|
40
|
+
name: 'description',
|
|
41
|
+
type: 'string',
|
|
42
|
+
typeOptions: {
|
|
43
|
+
rows: 2,
|
|
44
|
+
},
|
|
45
|
+
default: '',
|
|
46
|
+
description: '描述,不超过512个字节,超过会自动截断',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
displayName: '跳转链接',
|
|
50
|
+
name: 'url',
|
|
51
|
+
type: 'string',
|
|
52
|
+
required: true,
|
|
53
|
+
default: '',
|
|
54
|
+
description: '点击后跳转的链接',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: '图片链接',
|
|
58
|
+
name: 'picurl',
|
|
59
|
+
type: 'string',
|
|
60
|
+
default: '',
|
|
61
|
+
description: '图文消息的图片链接,支持JPG、PNG格式,较好的效果为大图 1068*455,小图150*150',
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
displayName: '是否开启ID转译',
|
|
69
|
+
name: 'enable_id_trans',
|
|
70
|
+
type: 'boolean',
|
|
71
|
+
default: false,
|
|
72
|
+
displayOptions: {
|
|
73
|
+
show: showOnlySendNews,
|
|
74
|
+
},
|
|
75
|
+
description: 'Whether to enable ID translation. 0 means no, 1 means yes, default is 0.',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
displayName: '是否开启重复消息检查',
|
|
79
|
+
name: 'enable_duplicate_check',
|
|
80
|
+
type: 'boolean',
|
|
81
|
+
default: false,
|
|
82
|
+
displayOptions: {
|
|
83
|
+
show: showOnlySendNews,
|
|
84
|
+
},
|
|
85
|
+
description: 'Whether to enable duplicate message check. 0 means no, 1 means yes, default is 0.',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
displayName: '重复消息检查时间',
|
|
89
|
+
name: 'duplicate_check_interval',
|
|
90
|
+
type: 'number',
|
|
91
|
+
default: 1800,
|
|
92
|
+
displayOptions: {
|
|
93
|
+
show: {
|
|
94
|
+
...showOnlySendNews,
|
|
95
|
+
enable_duplicate_check: [true],
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
description: '表示是否重复消息检查的时间间隔,默认1800s,最大不超过4小时',
|
|
99
|
+
},
|
|
100
|
+
];
|
|
101
|
+
//# sourceMappingURL=sendNews.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendNews.js","sourceRoot":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AAE;wBACX,WAAW,EAAE,mDAAmD;qBAChE;iBACD;aACD;SACD;KACD;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACf,IAAI,EAAE,gBAAgB;SACtB;QACD,WAAW,EAAE,0EAA0E;KACvF;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,wBAAwB;QAC9B,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACf,IAAI,EAAE,gBAAgB;SACtB;QACD,WAAW,EAAE,mFAAmF;KAChG;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,0BAA0B;QAChC,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,gBAAgB;gBACnB,sBAAsB,EAAE,CAAC,IAAI,CAAC;aAC9B;SACD;QACD,WAAW,EAAE,kCAAkC;KAC/C;CACD,CAAC"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendTaskCardDescription = void 0;
|
|
4
|
+
const commonFields_1 = require("./commonFields");
|
|
5
|
+
const showOnlySendTaskCard = {
|
|
6
|
+
resource: ['message'],
|
|
7
|
+
operation: ['sendTaskCard'],
|
|
8
|
+
};
|
|
9
|
+
exports.sendTaskCardDescription = [
|
|
10
|
+
...(0, commonFields_1.getRecipientFields)('sendTaskCard'),
|
|
11
|
+
{
|
|
12
|
+
displayName: '标题',
|
|
13
|
+
name: 'title',
|
|
14
|
+
type: 'string',
|
|
15
|
+
required: true,
|
|
16
|
+
default: '',
|
|
17
|
+
displayOptions: {
|
|
18
|
+
show: showOnlySendTaskCard,
|
|
19
|
+
},
|
|
20
|
+
description: '标题,不超过128个字节,超过会自动截断(支持ID转译)',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
displayName: '描述',
|
|
24
|
+
name: 'description',
|
|
25
|
+
type: 'string',
|
|
26
|
+
typeOptions: {
|
|
27
|
+
rows: 4,
|
|
28
|
+
},
|
|
29
|
+
required: true,
|
|
30
|
+
default: '',
|
|
31
|
+
displayOptions: {
|
|
32
|
+
show: showOnlySendTaskCard,
|
|
33
|
+
},
|
|
34
|
+
description: '描述,不超过512个字节,超过会自动截断(支持ID转译)',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
displayName: '跳转链接',
|
|
38
|
+
name: 'url',
|
|
39
|
+
type: 'string',
|
|
40
|
+
default: '',
|
|
41
|
+
displayOptions: {
|
|
42
|
+
show: showOnlySendTaskCard,
|
|
43
|
+
},
|
|
44
|
+
description: '点击后跳转的链接。最长2048字节,请确保包含了协议头(http/https),小程序或者URL必须填写一个',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
displayName: '任务ID',
|
|
48
|
+
name: 'task_id',
|
|
49
|
+
type: 'string',
|
|
50
|
+
required: true,
|
|
51
|
+
default: '',
|
|
52
|
+
displayOptions: {
|
|
53
|
+
show: showOnlySendTaskCard,
|
|
54
|
+
},
|
|
55
|
+
description: '任务 ID,同一个应用发送的任务卡片消息的任务 ID 不能重复,只能由数字、字母和"_-@"组成,最长支持128字节',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
displayName: '按钮列表',
|
|
59
|
+
name: 'buttons',
|
|
60
|
+
type: 'fixedCollection',
|
|
61
|
+
typeOptions: {
|
|
62
|
+
multipleValues: true,
|
|
63
|
+
},
|
|
64
|
+
required: true,
|
|
65
|
+
default: {},
|
|
66
|
+
placeholder: '添加按钮',
|
|
67
|
+
displayOptions: {
|
|
68
|
+
show: showOnlySendTaskCard,
|
|
69
|
+
},
|
|
70
|
+
description: '按钮列表,按钮个数为1~2个',
|
|
71
|
+
options: [
|
|
72
|
+
{
|
|
73
|
+
displayName: '按钮',
|
|
74
|
+
name: 'button',
|
|
75
|
+
values: [
|
|
76
|
+
{
|
|
77
|
+
displayName: '按钮Key值',
|
|
78
|
+
name: 'key',
|
|
79
|
+
type: 'string',
|
|
80
|
+
required: true,
|
|
81
|
+
default: '',
|
|
82
|
+
description: '按钮key值,用户点击后,会产生任务卡片回调事件,回调事件会将本参数作为EventKey返回,只能由数字、字母和\'_-@\'组成,最长支持128字节',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
displayName: '按钮名称',
|
|
86
|
+
name: 'name',
|
|
87
|
+
type: 'string',
|
|
88
|
+
required: true,
|
|
89
|
+
default: '',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
displayName: '按钮字体是否加粗',
|
|
93
|
+
name: 'is_bold',
|
|
94
|
+
type: 'boolean',
|
|
95
|
+
default: false,
|
|
96
|
+
description: 'Whether the button font is bold, default is false',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
displayName: '按钮字体颜色',
|
|
100
|
+
name: 'color',
|
|
101
|
+
type: 'options',
|
|
102
|
+
options: [
|
|
103
|
+
{
|
|
104
|
+
name: '红色',
|
|
105
|
+
value: 'red',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: '蓝色',
|
|
109
|
+
value: 'blue',
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
default: 'blue',
|
|
113
|
+
description: '按钮字体颜色,可选red或者blue,默认为blue',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
displayName: '点击按钮后替换文案',
|
|
117
|
+
name: 'replace_name',
|
|
118
|
+
type: 'string',
|
|
119
|
+
default: '',
|
|
120
|
+
description: '点击按钮后显示的名称,默认为\'已处理\'',
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
displayName: '是否开启ID转译',
|
|
128
|
+
name: 'enable_id_trans',
|
|
129
|
+
type: 'boolean',
|
|
130
|
+
default: false,
|
|
131
|
+
displayOptions: {
|
|
132
|
+
show: showOnlySendTaskCard,
|
|
133
|
+
},
|
|
134
|
+
description: 'Whether to enable ID translation. 0 means no, 1 means yes, default is 0.',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
displayName: '是否开启重复消息检查',
|
|
138
|
+
name: 'enable_duplicate_check',
|
|
139
|
+
type: 'boolean',
|
|
140
|
+
default: false,
|
|
141
|
+
displayOptions: {
|
|
142
|
+
show: showOnlySendTaskCard,
|
|
143
|
+
},
|
|
144
|
+
description: 'Whether to enable duplicate message check. 0 means no, 1 means yes, default is 0.',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
displayName: '重复消息检查时间',
|
|
148
|
+
name: 'duplicate_check_interval',
|
|
149
|
+
type: 'number',
|
|
150
|
+
default: 1800,
|
|
151
|
+
displayOptions: {
|
|
152
|
+
show: {
|
|
153
|
+
...showOnlySendTaskCard,
|
|
154
|
+
enable_duplicate_check: [true],
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
description: '表示是否重复消息检查的时间间隔,默认1800s,最大不超过4小时',
|
|
158
|
+
},
|
|
159
|
+
];
|
|
160
|
+
//# sourceMappingURL=sendTaskCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendTaskCard.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/message/sendTaskCard.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,IAAI;QACjB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EA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BAAoB;gBACvB,sBAAsB,EAAE,CAAC,IAAI,CAAC;aAC9B;SACD;QACD,WAAW,EAAE,kCAAkC;KAC/C;CACD,CAAC"}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendTemplateCardDescription = void 0;
|
|
4
|
+
const commonFields_1 = require("./commonFields");
|
|
5
|
+
const showOnlySendTemplateCard = {
|
|
6
|
+
resource: ['message'],
|
|
7
|
+
operation: ['sendTemplateCard'],
|
|
8
|
+
};
|
|
9
|
+
exports.sendTemplateCardDescription = [
|
|
10
|
+
...(0, commonFields_1.getRecipientFields)('sendTemplateCard'),
|
|
11
|
+
{
|
|
12
|
+
displayName: '模板卡片类型',
|
|
13
|
+
name: 'card_type',
|
|
14
|
+
type: 'options',
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: '图文展示型',
|
|
18
|
+
value: 'news_notice',
|
|
19
|
+
description: '图文展示型模板卡片',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: '多项选择型',
|
|
23
|
+
value: 'multiple_interaction',
|
|
24
|
+
description: '多项选择型模板卡片',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: '投票选择型',
|
|
28
|
+
value: 'vote_interaction',
|
|
29
|
+
description: '投票选择型模板卡片',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: '按钮交互型',
|
|
33
|
+
value: 'button_interaction',
|
|
34
|
+
description: '按钮交互型模板卡片',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: '文本通知型',
|
|
38
|
+
value: 'text_notice',
|
|
39
|
+
description: '文本通知型模板卡片',
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
required: true,
|
|
43
|
+
default: 'text_notice',
|
|
44
|
+
displayOptions: {
|
|
45
|
+
show: showOnlySendTemplateCard,
|
|
46
|
+
},
|
|
47
|
+
description: '选择模板卡片的类型',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
displayName: '模板卡片来源样式信息',
|
|
51
|
+
name: 'source',
|
|
52
|
+
type: 'json',
|
|
53
|
+
default: '{}',
|
|
54
|
+
displayOptions: {
|
|
55
|
+
show: showOnlySendTemplateCard,
|
|
56
|
+
},
|
|
57
|
+
description: '模板卡片来源样式信息,不需要来源样式可不填写,JSON格式。参考文档:https://developer.work.weixin.qq.com/document/path/90236#%E6%A8%A1%E6%9D%BF%E5%8D%A1%E7%89%87%E6%B6%88%E6%81%AF',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
displayName: '一级标题',
|
|
61
|
+
name: 'main_title',
|
|
62
|
+
type: 'json',
|
|
63
|
+
default: '{"title": ""}',
|
|
64
|
+
displayOptions: {
|
|
65
|
+
show: showOnlySendTemplateCard,
|
|
66
|
+
},
|
|
67
|
+
description: '模板卡片的主要内容,包含一级标题和标题辅助信息,JSON格式',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
displayName: '关键数据样式',
|
|
71
|
+
name: 'emphasis_content',
|
|
72
|
+
type: 'json',
|
|
73
|
+
default: '{}',
|
|
74
|
+
displayOptions: {
|
|
75
|
+
show: showOnlySendTemplateCard,
|
|
76
|
+
},
|
|
77
|
+
description: '关键数据样式,JSON格式',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
displayName: '引用文献样式',
|
|
81
|
+
name: 'quote_area',
|
|
82
|
+
type: 'json',
|
|
83
|
+
default: '{}',
|
|
84
|
+
displayOptions: {
|
|
85
|
+
show: showOnlySendTemplateCard,
|
|
86
|
+
},
|
|
87
|
+
description: '引用文献样式,建议不与关键数据共用,JSON格式',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
displayName: '二级普通文本',
|
|
91
|
+
name: 'sub_title_text',
|
|
92
|
+
type: 'string',
|
|
93
|
+
default: '',
|
|
94
|
+
displayOptions: {
|
|
95
|
+
show: showOnlySendTemplateCard,
|
|
96
|
+
},
|
|
97
|
+
description: '二级普通文本,建议不超过160个字,(支持ID转译)',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
displayName: '二级标题+文本列表',
|
|
101
|
+
name: 'horizontal_content_list',
|
|
102
|
+
type: 'json',
|
|
103
|
+
typeOptions: {
|
|
104
|
+
rows: 4,
|
|
105
|
+
},
|
|
106
|
+
default: '[]',
|
|
107
|
+
displayOptions: {
|
|
108
|
+
show: showOnlySendTemplateCard,
|
|
109
|
+
},
|
|
110
|
+
description: '二级标题+文本列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6,JSON数组格式',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
displayName: '跳转指引样式的列表',
|
|
114
|
+
name: 'jump_list',
|
|
115
|
+
type: 'json',
|
|
116
|
+
typeOptions: {
|
|
117
|
+
rows: 4,
|
|
118
|
+
},
|
|
119
|
+
default: '[]',
|
|
120
|
+
displayOptions: {
|
|
121
|
+
show: showOnlySendTemplateCard,
|
|
122
|
+
},
|
|
123
|
+
description: '跳转指引样式的列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过3,JSON数组格式',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
displayName: '整体卡片的点击跳转事件',
|
|
127
|
+
name: 'card_action',
|
|
128
|
+
type: 'json',
|
|
129
|
+
default: '{}',
|
|
130
|
+
displayOptions: {
|
|
131
|
+
show: showOnlySendTemplateCard,
|
|
132
|
+
},
|
|
133
|
+
description: '整体卡片的点击跳转事件,text_notice必填,news_notice不需要,JSON格式',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
displayName: '任务ID',
|
|
137
|
+
name: 'task_id',
|
|
138
|
+
type: 'string',
|
|
139
|
+
default: '',
|
|
140
|
+
displayOptions: {
|
|
141
|
+
show: showOnlySendTemplateCard,
|
|
142
|
+
},
|
|
143
|
+
description: '任务 ID,同一个应用任务 ID 不能重复,只能由数字、字母和"_-@"组成,最长128字节,填了action_menu字段的话本字段必填',
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
displayName: '按钮列表',
|
|
147
|
+
name: 'button_list',
|
|
148
|
+
type: 'json',
|
|
149
|
+
typeOptions: {
|
|
150
|
+
rows: 4,
|
|
151
|
+
},
|
|
152
|
+
default: '[]',
|
|
153
|
+
displayOptions: {
|
|
154
|
+
show: {
|
|
155
|
+
...showOnlySendTemplateCard,
|
|
156
|
+
card_type: ['button_interaction'],
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
description: '按钮交互型卡片的按钮列表,该字段可为空数组,但有数据的话需确认对应字段是否必填,列表长度不超过6,JSON数组格式',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
displayName: '选择题Key值',
|
|
163
|
+
name: 'checkbox_question_key',
|
|
164
|
+
type: 'string',
|
|
165
|
+
default: '',
|
|
166
|
+
displayOptions: {
|
|
167
|
+
show: {
|
|
168
|
+
...showOnlySendTemplateCard,
|
|
169
|
+
card_type: ['vote_interaction', 'multiple_interaction'],
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
description: '选择题key值,用户提交选项后,会产生回调事件,回调事件会将本参数作为EventKey返回,最长支持1024字节',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
displayName: '选择题模式',
|
|
176
|
+
name: 'checkbox_mode',
|
|
177
|
+
type: 'options',
|
|
178
|
+
options: [
|
|
179
|
+
{
|
|
180
|
+
name: '单选',
|
|
181
|
+
value: 'single',
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: '多选',
|
|
185
|
+
value: 'multiple',
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
default: 'single',
|
|
189
|
+
displayOptions: {
|
|
190
|
+
show: {
|
|
191
|
+
...showOnlySendTemplateCard,
|
|
192
|
+
card_type: ['vote_interaction', 'multiple_interaction'],
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
description: '选择题模式,单选为single,多选为multiple,不填默认单选',
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
displayName: '选项列表',
|
|
199
|
+
name: 'option_list',
|
|
200
|
+
type: 'json',
|
|
201
|
+
typeOptions: {
|
|
202
|
+
rows: 4,
|
|
203
|
+
},
|
|
204
|
+
default: '[]',
|
|
205
|
+
displayOptions: {
|
|
206
|
+
show: {
|
|
207
|
+
...showOnlySendTemplateCard,
|
|
208
|
+
card_type: ['vote_interaction', 'multiple_interaction'],
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
required: true,
|
|
212
|
+
description: '选项列表,列表长度不超过10,JSON数组格式。每个选项包含ID和text字段',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
displayName: '提交按钮文案',
|
|
216
|
+
name: 'submit_button_text',
|
|
217
|
+
type: 'string',
|
|
218
|
+
default: '提交',
|
|
219
|
+
displayOptions: {
|
|
220
|
+
show: {
|
|
221
|
+
...showOnlySendTemplateCard,
|
|
222
|
+
card_type: ['vote_interaction', 'multiple_interaction'],
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
description: '提交按钮文案,建议不超过10个字,不填默认为提交',
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
displayName: '提交按钮Key值',
|
|
229
|
+
name: 'submit_button_key',
|
|
230
|
+
type: 'string',
|
|
231
|
+
default: '',
|
|
232
|
+
displayOptions: {
|
|
233
|
+
show: {
|
|
234
|
+
...showOnlySendTemplateCard,
|
|
235
|
+
card_type: ['vote_interaction', 'multiple_interaction'],
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
required: true,
|
|
239
|
+
description: '提交按钮key值,用户提交选项后,会产生回调事件,回调事件会将本参数作为EventKey返回,最长支持1024字节',
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
displayName: '图片样式',
|
|
243
|
+
name: 'image_text_area',
|
|
244
|
+
type: 'json',
|
|
245
|
+
default: '{}',
|
|
246
|
+
displayOptions: {
|
|
247
|
+
show: {
|
|
248
|
+
...showOnlySendTemplateCard,
|
|
249
|
+
card_type: ['news_notice'],
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
description: '左图右文样式,JSON格式',
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
displayName: '卡片右上角更多操作按钮',
|
|
256
|
+
name: 'action_menu',
|
|
257
|
+
type: 'json',
|
|
258
|
+
default: '{}',
|
|
259
|
+
displayOptions: {
|
|
260
|
+
show: showOnlySendTemplateCard,
|
|
261
|
+
},
|
|
262
|
+
description: '卡片右上角更多操作按钮,JSON格式',
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
displayName: '是否开启ID转译',
|
|
266
|
+
name: 'enable_id_trans',
|
|
267
|
+
type: 'boolean',
|
|
268
|
+
default: false,
|
|
269
|
+
displayOptions: {
|
|
270
|
+
show: showOnlySendTemplateCard,
|
|
271
|
+
},
|
|
272
|
+
description: 'Whether to enable ID translation. 0 means no, 1 means yes, default is 0.',
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
displayName: '是否开启重复消息检查',
|
|
276
|
+
name: 'enable_duplicate_check',
|
|
277
|
+
type: 'boolean',
|
|
278
|
+
default: false,
|
|
279
|
+
displayOptions: {
|
|
280
|
+
show: showOnlySendTemplateCard,
|
|
281
|
+
},
|
|
282
|
+
description: 'Whether to enable duplicate message check. 0 means no, 1 means yes, default is 0.',
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
displayName: '重复消息检查时间',
|
|
286
|
+
name: 'duplicate_check_interval',
|
|
287
|
+
type: 'number',
|
|
288
|
+
default: 1800,
|
|
289
|
+
displayOptions: {
|
|
290
|
+
show: {
|
|
291
|
+
...showOnlySendTemplateCard,
|
|
292
|
+
enable_duplicate_check: [true],
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
description: '表示是否重复消息检查的时间间隔,默认1800s,最大不超过4小时',
|
|
296
|
+
},
|
|
297
|
+
];
|
|
298
|
+
//# sourceMappingURL=sendTemplateCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendTemplateCard.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/message/sendTemplateCard.ts"],"names":[],"mappings":";;;AACA,iDAAoD;AAEpD,MAAM,wBAAwB,GAAG;IAChC,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,SAAS,EAAE,CAAC,kBAAkB,CAAC;CAC/B,CAAC;AAEW,QAAA,2BAA2B,GAAsB;IAC7D,GAAG,IAAA,iCAAkB,EAAC,kBAAkB,CAAC;IACzC;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,WAAW;aACxB;YACD;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,sBAAsB;gBAC7B,WAAW,EAAE,WAAW;aACxB;YACD;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EAAE,WAAW;aACxB;YACD;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,oBAAoB;gBAC3B,WAAW,EAAE,WAAW;aACxB;YACD;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,WAAW;aACxB;SACD;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,aAAa;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,WAAW,EAAE,WAAW;KACxB;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,WAAW,EAAE,oJAAoJ;KACjK;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,Y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AoB;KACjC;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,WAAW,EAAE,0EAA0E;KACvF;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,wBAAwB;QAC9B,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,WAAW,EAAE,mFAAmF;KAChG;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,0BAA0B;QAChC,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,wBAAwB;gBAC3B,sBAAsB,EAAE,CAAC,IAAI,CAAC;aAC9B;SACD;QACD,WAAW,EAAE,kCAAkC;KAC/C;CACD,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendTextDescription = void 0;
|
|
4
|
+
const commonFields_1 = require("./commonFields");
|
|
5
|
+
const showOnlySendText = {
|
|
6
|
+
resource: ['message'],
|
|
7
|
+
operation: ['sendText'],
|
|
8
|
+
};
|
|
9
|
+
exports.sendTextDescription = [
|
|
10
|
+
...(0, commonFields_1.getRecipientFields)('sendText'),
|
|
11
|
+
{
|
|
12
|
+
displayName: '消息内容',
|
|
13
|
+
name: 'content',
|
|
14
|
+
type: 'string',
|
|
15
|
+
typeOptions: {
|
|
16
|
+
rows: 4,
|
|
17
|
+
},
|
|
18
|
+
required: true,
|
|
19
|
+
default: '',
|
|
20
|
+
displayOptions: {
|
|
21
|
+
show: showOnlySendText,
|
|
22
|
+
},
|
|
23
|
+
description: '消息内容,最长不超过2048个字节',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
displayName: '安全保密消息',
|
|
27
|
+
name: 'safe',
|
|
28
|
+
type: 'boolean',
|
|
29
|
+
default: false,
|
|
30
|
+
displayOptions: {
|
|
31
|
+
show: showOnlySendText,
|
|
32
|
+
},
|
|
33
|
+
description: 'Whether this is a confidential message. 0 means no, 1 means yes, default is 0.',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: '是否开启ID转译',
|
|
37
|
+
name: 'enable_id_trans',
|
|
38
|
+
type: 'boolean',
|
|
39
|
+
default: false,
|
|
40
|
+
displayOptions: {
|
|
41
|
+
show: showOnlySendText,
|
|
42
|
+
},
|
|
43
|
+
description: 'Whether to enable ID translation. 0 means no, 1 means yes, default is 0.',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
displayName: '是否开启重复消息检查',
|
|
47
|
+
name: 'enable_duplicate_check',
|
|
48
|
+
type: 'boolean',
|
|
49
|
+
default: false,
|
|
50
|
+
displayOptions: {
|
|
51
|
+
show: showOnlySendText,
|
|
52
|
+
},
|
|
53
|
+
description: 'Whether to enable duplicate message check. 0 means no, 1 means yes, default is 0.',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
displayName: '重复消息检查时间',
|
|
57
|
+
name: 'duplicate_check_interval',
|
|
58
|
+
type: 'number',
|
|
59
|
+
default: 1800,
|
|
60
|
+
displayOptions: {
|
|
61
|
+
show: {
|
|
62
|
+
...showOnlySendText,
|
|
63
|
+
enable_duplicate_check: [true],
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
description: '表示是否重复消息检查的时间间隔,默认1800s,最大不超过4小时',
|
|
67
|
+
},
|
|
68
|
+
];
|
|
69
|
+
//# sourceMappingURL=sendText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendText.js","sourceRoot":"","sources":["../../../../../nodes/WeCom/resources/message/sendText.ts"],"names":[],"mappings":";;;AACA,iDAAoD;AAEpD,MAAM,gBAAgB,G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