@larksuiteoapi/node-sdk 1.17.0 → 1.17.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 +8 -0
- package/README.zh.md +8 -0
- package/package.json +1 -1
- package/types/index.d.ts +12 -11
package/README.md
CHANGED
|
@@ -6,6 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
All of these make the overall development experience poor. In order to make the open capability easy to use, we have written this SDK, which integrates all the verbose logic into built-in processing, provides a complete type hints, and provides external semantics. Programming interface to improve coding experience.
|
|
8
8
|
|
|
9
|
+
Here are some official tutorials based on the sdk:
|
|
10
|
+
* [Quickly develop interactive cards](https://open.feishu.cn/document/home/quickly-develop-interactive-cards/introduction)
|
|
11
|
+
* [Quick Start of Personnel and Attendance Management System](https://open.feishu.cn/document/home/quick-start-of-personnel-and-attendance-management-system/overview)
|
|
12
|
+
* [Quick access to Base](https://open.feishu.cn/document/home/quick-access-to-base/preparation)
|
|
13
|
+
* [Department personnel management based on web app](https://open.feishu.cn/document/home/quick-access-to-base/department-personnel-management-based-on-web-app/overview)
|
|
14
|
+
* [Quick access to Contact API](https://open.feishu.cn/document/home/quick-access-to-contact-api/introduction)
|
|
15
|
+
* [Automatic attendance management based on approval](https://open.feishu.cn/document/home/automatic-attendance-management-based-on-approval/introduction)
|
|
16
|
+
|
|
9
17
|
## Concept
|
|
10
18
|
- Development documentation: A reference to the open interface of the open platform, **a must-see for developers, you can use the search function to query documents efficiently**. [More introduction instructions](https://open.feishu.cn/document/) .
|
|
11
19
|
|
package/README.zh.md
CHANGED
|
@@ -5,6 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
凡此种种,都使得整体的开发体验不佳,基于此,为了让开放能力变得易用,我们编写了该SDK,将所有冗长的逻辑内置处理,提供完备的类型系统,对外提供语义化的编程接口,提高编码体验。😙
|
|
7
7
|
|
|
8
|
+
以下是一些基于该sdk的官方教程:
|
|
9
|
+
* [快速开发互动卡片](https://open.feishu.cn/document/home/quickly-develop-interactive-cards/introduction)
|
|
10
|
+
* [快速开发人员及考勤管理系统](https://open.feishu.cn/document/home/quick-start-of-personnel-and-attendance-management-system/overview)
|
|
11
|
+
* [快速接入多维表格](https://open.feishu.cn/document/home/quick-access-to-base/preparation)
|
|
12
|
+
* [基于网页应用实现部门人员管理](https://open.feishu.cn/document/home/quick-access-to-base/department-personnel-management-based-on-web-app/overview)
|
|
13
|
+
* [快速接入通讯录](https://open.feishu.cn/document/home/quick-access-to-contact-api/introduction)
|
|
14
|
+
* [基于审批实现自动考勤管理](https://open.feishu.cn/document/home/automatic-attendance-management-based-on-approval/introduction)
|
|
15
|
+
|
|
8
16
|
## 概念
|
|
9
17
|
- 开发文档:开放平台的开放接口的参考,**开发者必看,可以使用搜索功能,高效的查询文档**。[更多介绍说明](https://open.feishu.cn/document/) 。
|
|
10
18
|
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
|
+
import fs from 'fs';
|
|
14
15
|
|
|
15
16
|
declare const defaultHttpInstance: AxiosInstance;
|
|
16
17
|
|
|
@@ -268,7 +269,7 @@ declare abstract class Client$1 {
|
|
|
268
269
|
*/
|
|
269
270
|
update: (payload?: {
|
|
270
271
|
data: {
|
|
271
|
-
files: Buffer;
|
|
272
|
+
files: Buffer | fs.ReadStream;
|
|
272
273
|
file_type: string;
|
|
273
274
|
file_name: string;
|
|
274
275
|
};
|
|
@@ -1001,7 +1002,7 @@ declare abstract class Client$1 {
|
|
|
1001
1002
|
*/
|
|
1002
1003
|
create: (payload?: {
|
|
1003
1004
|
data: {
|
|
1004
|
-
image_file: Buffer;
|
|
1005
|
+
image_file: Buffer | fs.ReadStream;
|
|
1005
1006
|
image_type: number;
|
|
1006
1007
|
};
|
|
1007
1008
|
}, options?: IRequestOptions$1) => Promise<{
|
|
@@ -3511,7 +3512,7 @@ declare abstract class Client$1 {
|
|
|
3511
3512
|
*/
|
|
3512
3513
|
upload: (payload?: {
|
|
3513
3514
|
data?: {
|
|
3514
|
-
file?: Buffer;
|
|
3515
|
+
file?: Buffer | fs.ReadStream;
|
|
3515
3516
|
};
|
|
3516
3517
|
params: {
|
|
3517
3518
|
file_name: string;
|
|
@@ -6590,7 +6591,7 @@ declare abstract class Client$1 {
|
|
|
6590
6591
|
upload: (payload?: {
|
|
6591
6592
|
data: {
|
|
6592
6593
|
name: string;
|
|
6593
|
-
file: Buffer;
|
|
6594
|
+
file: Buffer | fs.ReadStream;
|
|
6594
6595
|
};
|
|
6595
6596
|
}, options?: IRequestOptions$1) => Promise<{
|
|
6596
6597
|
file_token?: string | undefined;
|
|
@@ -39172,7 +39173,7 @@ declare abstract class Client$1 {
|
|
|
39172
39173
|
parent_node: string;
|
|
39173
39174
|
size: number;
|
|
39174
39175
|
checksum?: string;
|
|
39175
|
-
file: Buffer;
|
|
39176
|
+
file: Buffer | fs.ReadStream;
|
|
39176
39177
|
};
|
|
39177
39178
|
}, options?: IRequestOptions$1) => Promise<{
|
|
39178
39179
|
file_token?: string | undefined;
|
|
@@ -39217,7 +39218,7 @@ declare abstract class Client$1 {
|
|
|
39217
39218
|
seq: number;
|
|
39218
39219
|
size: number;
|
|
39219
39220
|
checksum?: string;
|
|
39220
|
-
file: Buffer;
|
|
39221
|
+
file: Buffer | fs.ReadStream;
|
|
39221
39222
|
};
|
|
39222
39223
|
}, options?: IRequestOptions$1) => Promise<{} | null>;
|
|
39223
39224
|
/**
|
|
@@ -39713,7 +39714,7 @@ declare abstract class Client$1 {
|
|
|
39713
39714
|
size: number;
|
|
39714
39715
|
checksum?: string;
|
|
39715
39716
|
extra?: string;
|
|
39716
|
-
file: Buffer;
|
|
39717
|
+
file: Buffer | fs.ReadStream;
|
|
39717
39718
|
};
|
|
39718
39719
|
}, options?: IRequestOptions$1) => Promise<{
|
|
39719
39720
|
file_token?: string | undefined;
|
|
@@ -39758,7 +39759,7 @@ declare abstract class Client$1 {
|
|
|
39758
39759
|
seq: number;
|
|
39759
39760
|
size: number;
|
|
39760
39761
|
checksum?: string;
|
|
39761
|
-
file: Buffer;
|
|
39762
|
+
file: Buffer | fs.ReadStream;
|
|
39762
39763
|
};
|
|
39763
39764
|
}, options?: IRequestOptions$1) => Promise<{} | null>;
|
|
39764
39765
|
/**
|
|
@@ -47258,7 +47259,7 @@ declare abstract class Client$1 {
|
|
|
47258
47259
|
file_type: "opus" | "mp4" | "pdf" | "doc" | "xls" | "ppt" | "stream";
|
|
47259
47260
|
file_name: string;
|
|
47260
47261
|
duration?: number;
|
|
47261
|
-
file: Buffer;
|
|
47262
|
+
file: Buffer | fs.ReadStream;
|
|
47262
47263
|
};
|
|
47263
47264
|
}, options?: IRequestOptions$1) => Promise<{
|
|
47264
47265
|
file_key?: string | undefined;
|
|
@@ -47300,7 +47301,7 @@ declare abstract class Client$1 {
|
|
|
47300
47301
|
create: (payload?: {
|
|
47301
47302
|
data: {
|
|
47302
47303
|
image_type: "message" | "avatar";
|
|
47303
|
-
image: Buffer;
|
|
47304
|
+
image: Buffer | fs.ReadStream;
|
|
47304
47305
|
};
|
|
47305
47306
|
}, options?: IRequestOptions$1) => Promise<{
|
|
47306
47307
|
image_key?: string | undefined;
|
|
@@ -49482,7 +49483,7 @@ declare abstract class Client$1 {
|
|
|
49482
49483
|
*/
|
|
49483
49484
|
upload: (payload?: {
|
|
49484
49485
|
data: {
|
|
49485
|
-
data: Buffer;
|
|
49486
|
+
data: Buffer | fs.ReadStream;
|
|
49486
49487
|
target_id: string;
|
|
49487
49488
|
target_type: number;
|
|
49488
49489
|
};
|