@larksuiteoapi/node-sdk 1.12.0 → 1.13.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/README.md +2 -1
- package/README.zh.md +1 -0
- package/es/index.js +714 -709
- package/lib/index.js +714 -708
- package/package.json +1 -1
- package/types/index.d.ts +37 -8
package/README.md
CHANGED
|
@@ -111,6 +111,7 @@ client.im.message.create({
|
|
|
111
111
|
| appId | app id | string | yes | - |
|
|
112
112
|
| appSecret | app secret | string | yes | - |
|
|
113
113
|
| domain | The domain of the application, divided into Feishu (https://open.feishu.cn), lark (https://open.larksuite.com), others (the complete domain name needs to be passed) | Domain | string | no | Domain.Feishu |
|
|
114
|
+
| httpInstance | The http instance of the sdk sending request。*By default, the sdk uses axios.create() to construct a defaultHttpInstance to make http calls.* | HttpInstance | No | defaultHttpInstance。*It can be imported from sdk and add interceptors on it.* |
|
|
114
115
|
| loggerLevel | Log Level | LoggerLevel | No | info |
|
|
115
116
|
| logger | - | Logger | No | - |
|
|
116
117
|
| cache | Cache | Cache | No | - |
|
|
@@ -369,7 +370,7 @@ const server = new Koa();
|
|
|
369
370
|
const router = new Router();
|
|
370
371
|
server.use(koaBody());
|
|
371
372
|
|
|
372
|
-
|
|
373
|
+
const eventDispatcher = new lark.EventDispatcher({
|
|
373
374
|
encryptKey: 'encryptKey',
|
|
374
375
|
}).register({
|
|
375
376
|
'im.message.receive_v1': async (data) => {
|
package/README.zh.md
CHANGED
|
@@ -110,6 +110,7 @@ client.im.message.create({
|
|
|
110
110
|
| appId | 应用的id | string | 是 | - |
|
|
111
111
|
| appSecret | 应用的密码 | string | 是 | - |
|
|
112
112
|
| domain | 应用的域,分为飞书(https://open.feishu.cn)、lark(https://open.larksuite.com)、其它(需要传递完整的域名) | Domain | string | 否 | Domain.Feishu |
|
|
113
|
+
| httpInstance | sdk发送请求的http实例。*sdk内部默认使用axios.create()构造出一个defaultHttpInstance来进行http调用。*| HttpInstance | 否 | defaultHttpInstance。*可以从sdk中import它,在其上添加interceptors来完成业务需求。* |
|
|
113
114
|
| loggerLevel | 日志级别 | LoggerLevel | 否 | info |
|
|
114
115
|
| logger | - | Logger | 否 | - |
|
|
115
116
|
| cache | 缓存器 | Cache | 否 | - |
|