node-easywechat 2.11.2 → 2.12.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/CHANGELOG.md CHANGED
@@ -1,15 +1,24 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
+ ## v2.12.0 (2023-01-04)
5
+
6
+ - Feat: 企业微信新增更新任务卡片消息、更新模版卡片消息两个接口
7
+
8
+ ## v2.11.2 (2022-09-02)
9
+
10
+ ## v2.11.1 (2022-09-02)
11
+
4
12
  ## v2.11.0 (2022-08-22)
5
13
 
14
+ - Feat: 企业微信开放平台新增上传需要转译的文件的相关接口
6
15
  - Feat: 企业微信开放平台新作接口调用许可相关接口
7
16
  - Feat: 企业微信开放平台新作设备管理相关接口
8
17
 
9
- ## v2.10.2, origin/HEAD, origin/2.x (2022-05-25)
18
+ ## v2.10.2 (2022-05-25)
10
19
 
11
20
  - Fix: 生成xml报文时,移除xml声明部分 (#28)
12
- - Fix: 修复Http/Request对象传入xml时解析异常导致无法获取请求参数的问题(#27)
21
+ - Fix: 修复对象传入xml时解析异常导致无法获取请求参数的问题(#27)
13
22
 
14
23
  ## v2.10.1 (2022-05-21)
15
24
 
@@ -4,4 +4,18 @@ import Messenger from './Messenger';
4
4
  export default class MessageClient extends BaseClient {
5
5
  message(message: Message): Messenger;
6
6
  send(data: object): Promise<any>;
7
+ /**
8
+ * 更新任务卡片消息
9
+ * @see https://open.work.weixin.qq.com/api/doc/90000/90135/91579
10
+ * @param data
11
+ * @returns
12
+ */
13
+ updateTaskcard(data: object): Promise<any>;
14
+ /**
15
+ * 更新模版卡片消息
16
+ * @see https://developer.work.weixin.qq.com/document/path/94888
17
+ * @param data
18
+ * @returns
19
+ */
20
+ updateTemplateCard(data: object): Promise<any>;
7
21
  }
@@ -12,5 +12,23 @@ class MessageClient extends BaseClient_1.default {
12
12
  send(data) {
13
13
  return this.httpPostJson('cgi-bin/message/send', data);
14
14
  }
15
+ /**
16
+ * 更新任务卡片消息
17
+ * @see https://open.work.weixin.qq.com/api/doc/90000/90135/91579
18
+ * @param data
19
+ * @returns
20
+ */
21
+ updateTaskcard(data) {
22
+ return this.httpPostJson('cgi-bin/message/update_taskcard', data);
23
+ }
24
+ /**
25
+ * 更新模版卡片消息
26
+ * @see https://developer.work.weixin.qq.com/document/path/94888
27
+ * @param data
28
+ * @returns
29
+ */
30
+ updateTemplateCard(data) {
31
+ return this.httpPostJson('cgi-bin/message/update_template_card', data);
32
+ }
15
33
  }
16
34
  exports.default = MessageClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-easywechat",
3
- "version": "2.11.2",
3
+ "version": "2.12.1",
4
4
  "description": "EasyWechat SDK for Node.js (NOT OFFICIAL)",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -22,14 +22,14 @@
22
22
  "devDependencies": {
23
23
  "@types/node": "^17.0.23",
24
24
  "mocha": "^9.2.2",
25
- "package-release": "^1.0.2",
25
+ "package-release": "^1.0.3",
26
26
  "sinon": "^12.0.1",
27
27
  "typescript": "^4.6.3"
28
28
  },
29
29
  "dependencies": {
30
30
  "axios": "^0.26.1",
31
31
  "form-data": "^4.0.0",
32
- "node-socialite": "^1.2.6",
32
+ "node-socialite": "^1.3.0",
33
33
  "qs": "^6.10.3",
34
34
  "raw-body": "^2.5.1",
35
35
  "xml2js": "^0.4.23"