@larksuiteoapi/node-sdk 1.8.0 → 1.8.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 CHANGED
@@ -399,7 +399,7 @@ If you want to adapt to services written by other libraries, you currently need
399
399
 
400
400
  ```typescript
401
401
  const data = server.getData();
402
- const resule = await dispatcher.invoke(data);
402
+ const result = await dispatcher.invoke(data);
403
403
  server.sendResult(result);
404
404
  ````
405
405
 
@@ -488,4 +488,4 @@ new lark.AESCipher('encrypt key').decrypt('content');
488
488
  MIT
489
489
 
490
490
  ## Contact Us
491
- Click [Server SDK](https://open.feishu.cn/document/ukTMukTMukTM/uETO1YjLxkTN24SM5UjN) in the upper right corner of the page 【Is this document helpful to you? 】Submit feedback
491
+ Click [Server SDK](https://open.feishu.cn/document/ukTMukTMukTM/uETO1YjLxkTN24SM5UjN) in the upper right corner of the page 【Is this document helpful to you? 】Submit feedback
package/README.zh.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # 飞书开放接口SDK
2
2
  [English](https://github.com/larksuite/node-sdk/blob/main/README.md)
3
3
  ## 概述
4
- [飞书开放平台](https://open.feishu.cn/document/ukTMukTMukTM/uITNz4iM1MjLyUzM)提供了一系列服务端的原子api来实现多元化的功能,但在实际编码过程中感受不是很顺畅,原因在于使用这些api完成功能时,需要考虑很多额外的工作,如token的获取及其维护、数据加解密、请求的验签等等;在者,在实际编码过程中,少了函数调用的语义化描述,类型系统的支持,使得心智负担过重。
4
+ [飞书开放平台](https://open.feishu.cn/document/ukTMukTMukTM/uITNz4iM1MjLyUzM)提供了一系列服务端的原子api来实现多元化的功能,但在实际编码过程中感受不是很顺畅,原因在于使用这些api完成功能时,需要考虑很多额外的工作,如token的获取及其维护、数据加解密、请求的验签等等;再者,在实际编码过程中,少了函数调用的语义化描述,类型系统的支持,使得心智负担过重。
5
5
 
6
6
  凡此种种,都使得整体的开发体验不佳,基于此,为了让开放能力变得易用,我们编写了该SDK,将所有冗长的逻辑内置处理,提供完备的类型系统,对外提供语义化的编程接口,提高编码体验。😙
7
7
 
@@ -398,7 +398,7 @@ server.listen(3000);
398
398
 
399
399
  ```typescript
400
400
  const data = server.getData();
401
- const resule = await dispatcher.invoke(data);
401
+ const result = await dispatcher.invoke(data);
402
402
  server.sendResult(result);
403
403
  ```
404
404
 
@@ -487,4 +487,4 @@ new lark.AESCipher('encrypt key').decrypt('content');
487
487
  MIT
488
488
 
489
489
  ## 联系我们
490
- 点击[服务端SDK](https://open.feishu.cn/document/ukTMukTMukTM/uETO1YjLxkTN24SM5UjN) 页面右上角【这篇文档是否对你有帮助?】提交反馈😘
490
+ 点击[服务端SDK](https://open.feishu.cn/document/ukTMukTMukTM/uETO1YjLxkTN24SM5UjN) 页面右上角【这篇文档是否对你有帮助?】提交反馈😘
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larksuiteoapi/node-sdk",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "larksuite open sdk for nodejs",
5
5
  "keywords": [
6
6
  "feishu",
package/types/index.d.ts CHANGED
@@ -7435,7 +7435,7 @@ declare abstract class Client$1 {
7435
7435
  email?: string;
7436
7436
  };
7437
7437
  last_modified_time?: number;
7438
- fields: Map<string, string | boolean | {
7438
+ fields: Record<string, string | boolean | {
7439
7439
  text?: string;
7440
7440
  link?: string;
7441
7441
  } | {
@@ -7488,7 +7488,7 @@ declare abstract class Client$1 {
7488
7488
  email?: string | undefined;
7489
7489
  } | undefined;
7490
7490
  last_modified_time?: number | undefined;
7491
- fields: Map<string, string | boolean | {
7491
+ fields: Record<string, string | boolean | {
7492
7492
  text?: string;
7493
7493
  link?: string;
7494
7494
  } | {
@@ -7573,7 +7573,7 @@ declare abstract class Client$1 {
7573
7573
  email?: string;
7574
7574
  };
7575
7575
  last_modified_time?: number;
7576
- fields: Map<string, string | boolean | {
7576
+ fields: Record<string, string | boolean | {
7577
7577
  text?: string;
7578
7578
  link?: string;
7579
7579
  } | {
@@ -7626,7 +7626,7 @@ declare abstract class Client$1 {
7626
7626
  email?: string | undefined;
7627
7627
  } | undefined;
7628
7628
  last_modified_time?: number | undefined;
7629
- fields: Map<string, string | boolean | {
7629
+ fields: Record<string, string | boolean | {
7630
7630
  text?: string;
7631
7631
  link?: string;
7632
7632
  } | {
@@ -7666,7 +7666,7 @@ declare abstract class Client$1 {
7666
7666
  */
7667
7667
  create: (payload?: {
7668
7668
  data: {
7669
- fields: Map<string, string | boolean | {
7669
+ fields: Record<string, string | boolean | {
7670
7670
  text?: string;
7671
7671
  link?: string;
7672
7672
  } | {
@@ -7718,7 +7718,7 @@ declare abstract class Client$1 {
7718
7718
  email?: string | undefined;
7719
7719
  } | undefined;
7720
7720
  last_modified_time?: number | undefined;
7721
- fields: Map<string, string | boolean | {
7721
+ fields: Record<string, string | boolean | {
7722
7722
  text?: string;
7723
7723
  link?: string;
7724
7724
  } | {
@@ -7813,7 +7813,7 @@ declare abstract class Client$1 {
7813
7813
  email?: string | undefined;
7814
7814
  } | undefined;
7815
7815
  last_modified_time?: number | undefined;
7816
- fields: Map<string, string | boolean | {
7816
+ fields: Record<string, string | boolean | {
7817
7817
  text?: string;
7818
7818
  link?: string;
7819
7819
  } | {
@@ -7876,7 +7876,7 @@ declare abstract class Client$1 {
7876
7876
  email?: string | undefined;
7877
7877
  } | undefined;
7878
7878
  last_modified_time?: number | undefined;
7879
- fields: Map<string, string | boolean | {
7879
+ fields: Record<string, string | boolean | {
7880
7880
  text?: string;
7881
7881
  link?: string;
7882
7882
  } | {
@@ -7954,7 +7954,7 @@ declare abstract class Client$1 {
7954
7954
  email?: string | undefined;
7955
7955
  } | undefined;
7956
7956
  last_modified_time?: number | undefined;
7957
- fields: Map<string, string | boolean | {
7957
+ fields: Record<string, string | boolean | {
7958
7958
  text?: string;
7959
7959
  link?: string;
7960
7960
  } | {
@@ -7994,7 +7994,7 @@ declare abstract class Client$1 {
7994
7994
  */
7995
7995
  update: (payload?: {
7996
7996
  data: {
7997
- fields: Map<string, string | boolean | {
7997
+ fields: Record<string, string | boolean | {
7998
7998
  text?: string;
7999
7999
  link?: string;
8000
8000
  } | {
@@ -8047,7 +8047,7 @@ declare abstract class Client$1 {
8047
8047
  email?: string | undefined;
8048
8048
  } | undefined;
8049
8049
  last_modified_time?: number | undefined;
8050
- fields: Map<string, string | boolean | {
8050
+ fields: Record<string, string | boolean | {
8051
8051
  text?: string;
8052
8052
  link?: string;
8053
8053
  } | {