@satorijs/adapter-lark 3.11.7 → 3.11.9
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/lib/index.cjs +360 -47
- package/lib/types/aily.d.ts +3 -3
- package/lib/types/apaas.d.ts +38 -28
- package/lib/types/board.d.ts +39 -0
- package/lib/types/calendar.d.ts +55 -0
- package/lib/types/cardkit.d.ts +2 -2
- package/lib/types/compensation.d.ts +400 -0
- package/lib/types/corehr.d.ts +598 -2
- package/lib/types/directory.d.ts +3 -41
- package/lib/types/docx.d.ts +23 -0
- package/lib/types/drive.d.ts +88 -88
- package/lib/types/hire.d.ts +49 -0
- package/lib/types/im.d.ts +1 -1
- package/lib/types/index.d.ts +1008 -40
- package/lib/types/payroll.d.ts +117 -81
- package/lib/types/performance.d.ts +1 -1
- package/lib/types/security_and_compliance.d.ts +254 -1
- package/package.json +1 -1
- package/src/message.ts +11 -1
- package/src/types/aily.ts +3 -3
- package/src/types/apaas.ts +52 -38
- package/src/types/board.ts +53 -2
- package/src/types/calendar.ts +72 -0
- package/src/types/cardkit.ts +2 -2
- package/src/types/compensation.ts +485 -0
- package/src/types/corehr.ts +705 -2
- package/src/types/directory.ts +3 -53
- package/src/types/docx.ts +29 -0
- package/src/types/drive.ts +110 -110
- package/src/types/hire.ts +63 -0
- package/src/types/im.ts +1 -1
- package/src/types/index.ts +1063 -42
- package/src/types/payroll.ts +146 -103
- package/src/types/performance.ts +1 -1
- package/src/types/security_and_compliance.ts +292 -1
package/src/types/directory.ts
CHANGED
|
@@ -24,7 +24,7 @@ export namespace Directory {
|
|
|
24
24
|
*/
|
|
25
25
|
create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* 更新员工信息
|
|
28
28
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/directory-v1/employee/patch
|
|
29
29
|
*/
|
|
30
30
|
patch(employee_id: string, body: PatchRequest, query?: PatchQuery): Promise<void>
|
|
@@ -59,15 +59,10 @@ export namespace Directory {
|
|
|
59
59
|
*/
|
|
60
60
|
filter(body: FilterRequest, query?: FilterQuery): Promise<FilterResponse>
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* 搜索员工信息
|
|
63
63
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/directory-v1/employee/search
|
|
64
64
|
*/
|
|
65
65
|
search(body: SearchRequest, query?: SearchQuery): Promise<SearchResponse>
|
|
66
|
-
/**
|
|
67
|
-
* 转换员工 ID
|
|
68
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/directory-v1/employee/idconvert
|
|
69
|
-
*/
|
|
70
|
-
idconvert(body: IdconvertRequest, query?: IdconvertQuery): Promise<IdconvertResponse>
|
|
71
66
|
}
|
|
72
67
|
|
|
73
68
|
export interface CreateRequest {
|
|
@@ -214,23 +209,6 @@ export namespace Directory {
|
|
|
214
209
|
/** 字段异常信息 */
|
|
215
210
|
abnormals?: Lark.AbnormalRecord[]
|
|
216
211
|
}
|
|
217
|
-
|
|
218
|
-
export interface IdconvertRequest {
|
|
219
|
-
/** 用户ID列表 */
|
|
220
|
-
employee_ids: string[]
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export interface IdconvertQuery {
|
|
224
|
-
/** 员工ID类型 */
|
|
225
|
-
employee_id_type?: 'open_id' | 'union_id' | 'employee_id'
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export interface IdconvertResponse {
|
|
229
|
-
/** id转换结果列表 */
|
|
230
|
-
id_convert_results?: Lark.EmployeeIdConvertResult[]
|
|
231
|
-
/** 异常信息列表 */
|
|
232
|
-
abnormals?: Lark.AbnormalRecord[]
|
|
233
|
-
}
|
|
234
212
|
}
|
|
235
213
|
|
|
236
214
|
export namespace Department {
|
|
@@ -256,7 +234,7 @@ export namespace Directory {
|
|
|
256
234
|
*/
|
|
257
235
|
mget(body: MgetRequest, query?: MgetQuery): Promise<MgetResponse>
|
|
258
236
|
/**
|
|
259
|
-
*
|
|
237
|
+
* 获取部门列表
|
|
260
238
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/directory-v1/department/filter
|
|
261
239
|
*/
|
|
262
240
|
filter(body: FilterRequest, query?: FilterQuery): Promise<FilterResponse>
|
|
@@ -265,11 +243,6 @@ export namespace Directory {
|
|
|
265
243
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/directory-v1/department/search
|
|
266
244
|
*/
|
|
267
245
|
search(body: SearchRequest, query?: SearchQuery): Promise<SearchResponse>
|
|
268
|
-
/**
|
|
269
|
-
* 转换部门 ID
|
|
270
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/directory-v1/department/idconvert
|
|
271
|
-
*/
|
|
272
|
-
idconvert(body: IdconvertRequest, query?: IdconvertQuery): Promise<IdconvertResponse>
|
|
273
246
|
}
|
|
274
247
|
|
|
275
248
|
export interface CreateRequest {
|
|
@@ -376,23 +349,6 @@ export namespace Directory {
|
|
|
376
349
|
/** 字段异常信息 */
|
|
377
350
|
abnormals?: Lark.AbnormalRecord[]
|
|
378
351
|
}
|
|
379
|
-
|
|
380
|
-
export interface IdconvertRequest {
|
|
381
|
-
/** 部门ID列表 */
|
|
382
|
-
department_ids: string[]
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
export interface IdconvertQuery {
|
|
386
|
-
/** 部门ID类型 */
|
|
387
|
-
department_id_type?: 'department_id' | 'open_department_id'
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
export interface IdconvertResponse {
|
|
391
|
-
/** id转换结果列表 */
|
|
392
|
-
id_convert_results?: Lark.DepartmentIdConvertResult[]
|
|
393
|
-
/** 异常信息列表 */
|
|
394
|
-
abnormals?: Lark.AbnormalRecord[]
|
|
395
|
-
}
|
|
396
352
|
}
|
|
397
353
|
|
|
398
354
|
export namespace CollborationShareEntity {
|
|
@@ -530,9 +486,6 @@ Internal.define({
|
|
|
530
486
|
'/directory/v1/employees/search': {
|
|
531
487
|
POST: 'directory.employee.search',
|
|
532
488
|
},
|
|
533
|
-
'/directory/v1/employees/idconvert': {
|
|
534
|
-
POST: 'directory.employee.idconvert',
|
|
535
|
-
},
|
|
536
489
|
'/directory/v1/departments': {
|
|
537
490
|
POST: 'directory.department.create',
|
|
538
491
|
},
|
|
@@ -549,9 +502,6 @@ Internal.define({
|
|
|
549
502
|
'/directory/v1/departments/search': {
|
|
550
503
|
POST: 'directory.department.search',
|
|
551
504
|
},
|
|
552
|
-
'/directory/v1/departments/idconvert': {
|
|
553
|
-
POST: 'directory.department.idconvert',
|
|
554
|
-
},
|
|
555
505
|
'/directory/v1/share_entities': {
|
|
556
506
|
GET: 'directory.collborationShareEntity.list',
|
|
557
507
|
},
|
package/src/types/docx.ts
CHANGED
|
@@ -208,6 +208,11 @@ export namespace Docx {
|
|
|
208
208
|
* @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document/raw_content
|
|
209
209
|
*/
|
|
210
210
|
rawContent(document_id: string, query?: RawContentQuery): Promise<RawContentResponse>
|
|
211
|
+
/**
|
|
212
|
+
* Markdown/HTML 内容转换为文档块
|
|
213
|
+
* @see https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/document-docx/docx-v1/document/convert
|
|
214
|
+
*/
|
|
215
|
+
convert(body: ConvertRequest, query?: ConvertQuery): Promise<ConvertResponse>
|
|
211
216
|
}
|
|
212
217
|
|
|
213
218
|
export interface CreateRequest {
|
|
@@ -246,6 +251,27 @@ export namespace Docx {
|
|
|
246
251
|
content?: string
|
|
247
252
|
}
|
|
248
253
|
|
|
254
|
+
export interface ConvertRequest {
|
|
255
|
+
/** 内容类型 */
|
|
256
|
+
content_type: 'markdown' | 'html'
|
|
257
|
+
/** 文本内容 */
|
|
258
|
+
content: string
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface ConvertQuery {
|
|
262
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
263
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export interface ConvertResponse {
|
|
267
|
+
/** 第一级 Block 对应的临时 ID 列表, index 代表了 Block 的顺序 */
|
|
268
|
+
first_level_block_ids?: string[]
|
|
269
|
+
/** 带有父子关系的 Block 列表 */
|
|
270
|
+
blocks?: Lark.Block[]
|
|
271
|
+
/** 如果要转换的内容中带有图片,这里记录了临时 Block ID 和 Image URL 的对应关系 */
|
|
272
|
+
block_id_to_image_urls?: Lark.BlockIdToImageUrl[]
|
|
273
|
+
}
|
|
274
|
+
|
|
249
275
|
export namespace Block {
|
|
250
276
|
export interface Methods {
|
|
251
277
|
children: Children.Methods
|
|
@@ -531,4 +557,7 @@ Internal.define({
|
|
|
531
557
|
'/docx/v1/documents/{document_id}/blocks/{block_id}/children/batch_delete': {
|
|
532
558
|
DELETE: 'docx.document.block.children.batchDelete',
|
|
533
559
|
},
|
|
560
|
+
'/docx/v1/documents/blocks/convert': {
|
|
561
|
+
POST: 'docx.document.convert',
|
|
562
|
+
},
|
|
534
563
|
})
|
package/src/types/drive.ts
CHANGED
|
@@ -958,104 +958,41 @@ export namespace Drive {
|
|
|
958
958
|
|
|
959
959
|
export namespace Member {
|
|
960
960
|
export interface Methods {
|
|
961
|
+
/**
|
|
962
|
+
* 增加协作者权限
|
|
963
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/create
|
|
964
|
+
*/
|
|
965
|
+
create(token: string, body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>
|
|
961
966
|
/**
|
|
962
967
|
* 批量增加协作者权限
|
|
963
968
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/batch_create
|
|
964
969
|
*/
|
|
965
970
|
batchCreate(token: string, body: BatchCreateRequest, query?: BatchCreateQuery): Promise<BatchCreateResponse>
|
|
966
971
|
/**
|
|
967
|
-
*
|
|
968
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/
|
|
969
|
-
*/
|
|
970
|
-
transferOwner(token: string, body: TransferOwnerRequest, query?: TransferOwnerQuery): Promise<void>
|
|
971
|
-
/**
|
|
972
|
-
* 判断当前用户是否有某权限
|
|
973
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/auth
|
|
972
|
+
* 更新协作者权限
|
|
973
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/update
|
|
974
974
|
*/
|
|
975
|
-
|
|
975
|
+
update(token: string, member_id: string, body: UpdateRequest, query?: UpdateQuery): Promise<UpdateResponse>
|
|
976
976
|
/**
|
|
977
|
-
*
|
|
977
|
+
* 获取云文档协作者
|
|
978
978
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/list
|
|
979
979
|
*/
|
|
980
980
|
list(token: string, query?: ListQuery): Promise<ListResponse>
|
|
981
981
|
/**
|
|
982
|
-
*
|
|
983
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/
|
|
982
|
+
* 移除云文档协作者权限
|
|
983
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/delete
|
|
984
984
|
*/
|
|
985
|
-
|
|
985
|
+
delete(token: string, member_id: string, body: DeleteRequest, query?: DeleteQuery): Promise<void>
|
|
986
986
|
/**
|
|
987
|
-
*
|
|
988
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/
|
|
987
|
+
* 转移云文档所有者
|
|
988
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/transfer_owner
|
|
989
989
|
*/
|
|
990
|
-
|
|
990
|
+
transferOwner(token: string, body: TransferOwnerRequest, query?: TransferOwnerQuery): Promise<void>
|
|
991
991
|
/**
|
|
992
|
-
*
|
|
993
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/
|
|
992
|
+
* 判断用户云文档权限
|
|
993
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-member/auth
|
|
994
994
|
*/
|
|
995
|
-
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
export interface BatchCreateRequest {
|
|
999
|
-
/** 协作者列表 */
|
|
1000
|
-
members: Lark.BaseMember[]
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
export interface BatchCreateQuery {
|
|
1004
|
-
/** 文件的类型 */
|
|
1005
|
-
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'folder' | 'mindnote' | 'minutes' | 'slides'
|
|
1006
|
-
/** 添加权限后是否通知对方 */
|
|
1007
|
-
need_notification?: boolean
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
export interface BatchCreateResponse {
|
|
1011
|
-
/** 协作者列表 */
|
|
1012
|
-
members?: Lark.BaseMember[]
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
export interface TransferOwnerRequest {
|
|
1016
|
-
/** 文档拥有者的ID类型 */
|
|
1017
|
-
member_type: 'email' | 'openid' | 'userid'
|
|
1018
|
-
/** 文档拥有者的ID,与文档拥有者的ID类型需要对应 */
|
|
1019
|
-
member_id: string
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
export interface TransferOwnerQuery {
|
|
1023
|
-
/** 文件类型,需要与文件的 token 相匹配 */
|
|
1024
|
-
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides' | 'folder'
|
|
1025
|
-
/** 是否需要通知新 Owner */
|
|
1026
|
-
need_notification?: boolean
|
|
1027
|
-
/** 转移后是否需要移除原 Owner 的权限 */
|
|
1028
|
-
remove_old_owner?: boolean
|
|
1029
|
-
/** 仅当内容不在共享文件夹中,此参数才会生效。如果设为false,系统会将该内容移至新所有者的个人空间根文件夹。如果设为 true,则留在原位置。 */
|
|
1030
|
-
stay_put?: boolean
|
|
1031
|
-
/** 仅当 remove_old_owner = false 时,此参数才会生效 保留原文件所有者指定的权限角色 */
|
|
1032
|
-
old_owner_perm?: string
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
export interface AuthQuery {
|
|
1036
|
-
/** 文件类型,需要与文件的 token 相匹配 */
|
|
1037
|
-
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides'
|
|
1038
|
-
/** 需要判断的权限 */
|
|
1039
|
-
action: 'view' | 'edit' | 'share' | 'comment' | 'export' | 'copy' | 'print' | 'manage_public'
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
export interface AuthResponse {
|
|
1043
|
-
/** 是否有权限 */
|
|
1044
|
-
auth_result: boolean
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
export interface ListQuery {
|
|
1048
|
-
/** 文件类型,需要与文件的 token 相匹配 */
|
|
1049
|
-
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides'
|
|
1050
|
-
/** 指定返回的协作者字段信息,如无指定则默认不返回**可选值有:** - `name`:协作者名- `type`:协作者类型- `avatar`:头像- `external_label`:外部标签**注意:** - 你可以使用特殊值`*`指定返回目前支持的所有字段- 你可以使用`,`分隔若干个你想指定返回的字段,如:`name,avatar`- 按需指定返回字段接口性能更好 */
|
|
1051
|
-
fields?: string
|
|
1052
|
-
/** 协作者的权限角色类型 */
|
|
1053
|
-
perm_type?: 'container' | 'single_page'
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
export interface ListResponse {
|
|
1057
|
-
/** 返回的列表数据 */
|
|
1058
|
-
items?: Lark.Member[]
|
|
995
|
+
auth(token: string, query?: AuthQuery): Promise<AuthResponse>
|
|
1059
996
|
}
|
|
1060
997
|
|
|
1061
998
|
export interface CreateRequest {
|
|
@@ -1083,6 +1020,23 @@ export namespace Drive {
|
|
|
1083
1020
|
member?: Lark.BaseMember
|
|
1084
1021
|
}
|
|
1085
1022
|
|
|
1023
|
+
export interface BatchCreateRequest {
|
|
1024
|
+
/** 协作者列表 */
|
|
1025
|
+
members: Lark.BaseMember[]
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
export interface BatchCreateQuery {
|
|
1029
|
+
/** 文件的类型 */
|
|
1030
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'folder' | 'mindnote' | 'minutes' | 'slides'
|
|
1031
|
+
/** 添加权限后是否通知对方 */
|
|
1032
|
+
need_notification?: boolean
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
export interface BatchCreateResponse {
|
|
1036
|
+
/** 协作者列表 */
|
|
1037
|
+
members?: Lark.BaseMember[]
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1086
1040
|
export interface UpdateRequest {
|
|
1087
1041
|
/** 协作者ID类型 */
|
|
1088
1042
|
member_type: 'email' | 'openid' | 'unionid' | 'openchat' | 'opendepartmentid' | 'userid' | 'groupid' | 'wikispaceid'
|
|
@@ -1106,6 +1060,20 @@ export namespace Drive {
|
|
|
1106
1060
|
member?: Lark.BaseMember
|
|
1107
1061
|
}
|
|
1108
1062
|
|
|
1063
|
+
export interface ListQuery {
|
|
1064
|
+
/** 文件类型,需要与文件的 token 相匹配 */
|
|
1065
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides'
|
|
1066
|
+
/** 指定返回的协作者字段信息,如无指定则默认不返回**可选值有:** - `name`:协作者名- `type`:协作者类型- `avatar`:头像- `external_label`:外部标签**注意:** - 你可以使用特殊值`*`指定返回目前支持的所有字段- 你可以使用`,`分隔若干个你想指定返回的字段,如:`name,avatar`- 按需指定返回字段接口性能更好 */
|
|
1067
|
+
fields?: string
|
|
1068
|
+
/** 协作者的权限角色类型 */
|
|
1069
|
+
perm_type?: 'container' | 'single_page'
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
export interface ListResponse {
|
|
1073
|
+
/** 返回的列表数据 */
|
|
1074
|
+
items?: Lark.Member[]
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1109
1077
|
export interface DeleteRequest {
|
|
1110
1078
|
/** 协作者类型 */
|
|
1111
1079
|
type?: 'user' | 'chat' | 'department' | 'group' | 'wiki_space_member' | 'wiki_space_viewer' | 'wiki_space_editor'
|
|
@@ -1119,31 +1087,53 @@ export namespace Drive {
|
|
|
1119
1087
|
/** 权限成员类型,放于query参数中,如:`?member_type=openid` */
|
|
1120
1088
|
member_type: 'email' | 'openid' | 'openchat' | 'opendepartmentid' | 'userid' | 'unionid' | 'groupid' | 'wikispaceid'
|
|
1121
1089
|
}
|
|
1090
|
+
|
|
1091
|
+
export interface TransferOwnerRequest {
|
|
1092
|
+
/** 文档拥有者的ID类型 */
|
|
1093
|
+
member_type: 'email' | 'openid' | 'userid'
|
|
1094
|
+
/** 文档拥有者的ID,与文档拥有者的ID类型需要对应 */
|
|
1095
|
+
member_id: string
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
export interface TransferOwnerQuery {
|
|
1099
|
+
/** 文件类型,需要与文件的 token 相匹配 */
|
|
1100
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides' | 'folder'
|
|
1101
|
+
/** 是否需要通知新 Owner */
|
|
1102
|
+
need_notification?: boolean
|
|
1103
|
+
/** 转移后是否需要移除原 Owner 的权限 */
|
|
1104
|
+
remove_old_owner?: boolean
|
|
1105
|
+
/** 仅当内容不在共享文件夹中,此参数才会生效。如果设为false,系统会将该内容移至新所有者的个人空间根文件夹。如果设为 true,则留在原位置。 */
|
|
1106
|
+
stay_put?: boolean
|
|
1107
|
+
/** 仅当 remove_old_owner = false 时,此参数才会生效 保留原文件所有者指定的权限角色 */
|
|
1108
|
+
old_owner_perm?: string
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
export interface AuthQuery {
|
|
1112
|
+
/** 文件类型,需要与文件的 token 相匹配 */
|
|
1113
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides'
|
|
1114
|
+
/** 需要判断的权限 */
|
|
1115
|
+
action: 'view' | 'edit' | 'share' | 'comment' | 'export' | 'copy' | 'print' | 'manage_public'
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
export interface AuthResponse {
|
|
1119
|
+
/** 是否有权限 */
|
|
1120
|
+
auth_result: boolean
|
|
1121
|
+
}
|
|
1122
1122
|
}
|
|
1123
1123
|
|
|
1124
1124
|
export namespace Public {
|
|
1125
1125
|
export interface Methods {
|
|
1126
1126
|
password: Password.Methods
|
|
1127
|
-
/**
|
|
1128
|
-
* 获取云文档权限设置
|
|
1129
|
-
* @see https://open.feishu.cn/document/ukTMukTMukTM/uIzNzUjLyczM14iM3MTN/drive-v2/permission-public/get
|
|
1130
|
-
*/
|
|
1131
|
-
get(token: string, query?: GetQuery): Promise<GetResponse>
|
|
1132
1127
|
/**
|
|
1133
1128
|
* 更新云文档权限设置
|
|
1134
1129
|
* @see https://open.feishu.cn/document/ukTMukTMukTM/uIzNzUjLyczM14iM3MTN/drive-v2/permission-public/patch
|
|
1135
1130
|
*/
|
|
1136
1131
|
patch(token: string, body: PatchRequest, query?: PatchQuery): Promise<PatchResponse>
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
export interface GetResponse {
|
|
1145
|
-
/** 返回的文档公共设置 */
|
|
1146
|
-
permission_public?: Lark.PermissionPublic
|
|
1132
|
+
/**
|
|
1133
|
+
* 获取云文档权限设置
|
|
1134
|
+
* @see https://open.feishu.cn/document/ukTMukTMukTM/uIzNzUjLyczM14iM3MTN/drive-v2/permission-public/get
|
|
1135
|
+
*/
|
|
1136
|
+
get(token: string, query?: GetQuery): Promise<GetResponse>
|
|
1147
1137
|
}
|
|
1148
1138
|
|
|
1149
1139
|
export interface PatchRequest {
|
|
@@ -1173,20 +1163,30 @@ export namespace Drive {
|
|
|
1173
1163
|
permission_public?: Lark.PermissionPublic
|
|
1174
1164
|
}
|
|
1175
1165
|
|
|
1166
|
+
export interface GetQuery {
|
|
1167
|
+
/** 文件类型,需要与文件的 token 相匹配 */
|
|
1168
|
+
type: 'doc' | 'sheet' | 'file' | 'wiki' | 'bitable' | 'docx' | 'mindnote' | 'minutes' | 'slides'
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
export interface GetResponse {
|
|
1172
|
+
/** 返回的文档公共设置 */
|
|
1173
|
+
permission_public?: Lark.PermissionPublic
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
1176
|
export namespace Password {
|
|
1177
1177
|
export interface Methods {
|
|
1178
1178
|
/**
|
|
1179
|
-
*
|
|
1179
|
+
* 启用云文档密码
|
|
1180
1180
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-public-password/create
|
|
1181
1181
|
*/
|
|
1182
1182
|
create(token: string, query?: CreateQuery): Promise<CreateResponse>
|
|
1183
1183
|
/**
|
|
1184
|
-
*
|
|
1184
|
+
* 刷新云文档密码
|
|
1185
1185
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-public-password/update
|
|
1186
1186
|
*/
|
|
1187
1187
|
update(token: string, query?: UpdateQuery): Promise<UpdateResponse>
|
|
1188
1188
|
/**
|
|
1189
|
-
*
|
|
1189
|
+
* 停用云文档密码
|
|
1190
1190
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/drive-v1/permission-public-password/delete
|
|
1191
1191
|
*/
|
|
1192
1192
|
delete(token: string, query?: DeleteQuery): Promise<void>
|
|
@@ -1320,32 +1320,32 @@ Internal.define({
|
|
|
1320
1320
|
'/drive/v1/files/{file_token}/delete_subscribe': {
|
|
1321
1321
|
DELETE: 'drive.file.deleteSubscribe',
|
|
1322
1322
|
},
|
|
1323
|
+
'/drive/v1/permissions/{token}/members': {
|
|
1324
|
+
POST: 'drive.permission.member.create',
|
|
1325
|
+
GET: 'drive.permission.member.list',
|
|
1326
|
+
},
|
|
1323
1327
|
'/drive/v1/permissions/{token}/members/batch_create': {
|
|
1324
1328
|
POST: 'drive.permission.member.batchCreate',
|
|
1325
1329
|
},
|
|
1330
|
+
'/drive/v1/permissions/{token}/members/{member_id}': {
|
|
1331
|
+
PUT: 'drive.permission.member.update',
|
|
1332
|
+
DELETE: 'drive.permission.member.delete',
|
|
1333
|
+
},
|
|
1326
1334
|
'/drive/v1/permissions/{token}/members/transfer_owner': {
|
|
1327
1335
|
POST: 'drive.permission.member.transferOwner',
|
|
1328
1336
|
},
|
|
1329
1337
|
'/drive/v1/permissions/{token}/members/auth': {
|
|
1330
1338
|
GET: 'drive.permission.member.auth',
|
|
1331
1339
|
},
|
|
1332
|
-
'/drive/
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
},
|
|
1336
|
-
'/drive/v1/permissions/{token}/members/{member_id}': {
|
|
1337
|
-
PUT: 'drive.permission.member.update',
|
|
1338
|
-
DELETE: 'drive.permission.member.delete',
|
|
1340
|
+
'/drive/v2/permissions/{token}/public': {
|
|
1341
|
+
PATCH: 'drive.permission.public.patch',
|
|
1342
|
+
GET: 'drive.permission.public.get',
|
|
1339
1343
|
},
|
|
1340
1344
|
'/drive/v1/permissions/{token}/public/password': {
|
|
1341
1345
|
POST: 'drive.permission.public.password.create',
|
|
1342
1346
|
PUT: 'drive.permission.public.password.update',
|
|
1343
1347
|
DELETE: 'drive.permission.public.password.delete',
|
|
1344
1348
|
},
|
|
1345
|
-
'/drive/v2/permissions/{token}/public': {
|
|
1346
|
-
GET: 'drive.permission.public.get',
|
|
1347
|
-
PATCH: 'drive.permission.public.patch',
|
|
1348
|
-
},
|
|
1349
1349
|
'/drive/v1/files/{file_token}/comments': {
|
|
1350
1350
|
GET: { name: 'drive.file.comment.list', pagination: { argIndex: 1 } },
|
|
1351
1351
|
POST: 'drive.file.comment.create',
|
package/src/types/hire.ts
CHANGED
|
@@ -9,6 +9,7 @@ declare module '../internal' {
|
|
|
9
9
|
|
|
10
10
|
export namespace Hire {
|
|
11
11
|
export interface Methods {
|
|
12
|
+
portalApplySchema: PortalApplySchema.Methods
|
|
12
13
|
location: Location.Methods
|
|
13
14
|
role: Role.Methods
|
|
14
15
|
userRole: UserRole.Methods
|
|
@@ -28,6 +29,7 @@ export namespace Hire {
|
|
|
28
29
|
interviewRoundType: InterviewRoundType.Methods
|
|
29
30
|
interviewRegistrationSchema: InterviewRegistrationSchema.Methods
|
|
30
31
|
interviewer: Interviewer.Methods
|
|
32
|
+
offerApprovalTemplate: OfferApprovalTemplate.Methods
|
|
31
33
|
offerCustomField: OfferCustomField.Methods
|
|
32
34
|
offerApplicationForm: OfferApplicationForm.Methods
|
|
33
35
|
referral: Referral.Methods
|
|
@@ -78,6 +80,16 @@ export namespace Hire {
|
|
|
78
80
|
offerSchema: OfferSchema.Methods
|
|
79
81
|
}
|
|
80
82
|
|
|
83
|
+
export namespace PortalApplySchema {
|
|
84
|
+
export interface Methods {
|
|
85
|
+
/**
|
|
86
|
+
* 获取申请表模板列表
|
|
87
|
+
* @see https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/portal_apply_schema/list
|
|
88
|
+
*/
|
|
89
|
+
list(query?: Pagination): Paginated<Lark.RegistrationSchema>
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
81
93
|
export namespace Location {
|
|
82
94
|
export interface Methods {
|
|
83
95
|
/**
|
|
@@ -1238,6 +1250,21 @@ export namespace Hire {
|
|
|
1238
1250
|
}
|
|
1239
1251
|
}
|
|
1240
1252
|
|
|
1253
|
+
export namespace OfferApprovalTemplate {
|
|
1254
|
+
export interface Methods {
|
|
1255
|
+
/**
|
|
1256
|
+
* 获取 Offer 审批流列表
|
|
1257
|
+
* @see https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/offer_approval_template/list
|
|
1258
|
+
*/
|
|
1259
|
+
list(query?: ListQuery): Paginated<Lark.OfferApprovalTemplate>
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
export interface ListQuery extends Pagination {
|
|
1263
|
+
/** 此次调用中使用的部门 ID 的类型 */
|
|
1264
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_admin_department_id'
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1241
1268
|
export namespace OfferCustomField {
|
|
1242
1269
|
export interface Methods {
|
|
1243
1270
|
/**
|
|
@@ -3461,6 +3488,11 @@ export namespace Hire {
|
|
|
3461
3488
|
* @see https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/background_check_order/list
|
|
3462
3489
|
*/
|
|
3463
3490
|
list(query?: ListQuery): Paginated<Lark.BackgroundCheckOrder>
|
|
3491
|
+
/**
|
|
3492
|
+
* 查询背调信息列表
|
|
3493
|
+
* @see https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/background_check_order/batch_query
|
|
3494
|
+
*/
|
|
3495
|
+
batchQuery(body: BatchQueryRequest, query?: BatchQueryQuery): Paginated<Lark.BackgroundCheckOrder>
|
|
3464
3496
|
}
|
|
3465
3497
|
|
|
3466
3498
|
export interface ListQuery extends Pagination {
|
|
@@ -3473,6 +3505,28 @@ export namespace Hire {
|
|
|
3473
3505
|
/** 最晚更新时间,毫秒级时间戳 */
|
|
3474
3506
|
update_end_time?: string
|
|
3475
3507
|
}
|
|
3508
|
+
|
|
3509
|
+
export interface BatchQueryRequest {
|
|
3510
|
+
/** 背调订单 ID 列表 */
|
|
3511
|
+
background_check_order_id_list?: string[]
|
|
3512
|
+
/** 最早更新时间,毫秒级时间戳 */
|
|
3513
|
+
update_start_time?: string
|
|
3514
|
+
/** 最晚更新时间,毫秒级时间戳 */
|
|
3515
|
+
update_end_time?: string
|
|
3516
|
+
/** 最早创建时间,毫秒级时间戳 */
|
|
3517
|
+
begin_start_time?: string
|
|
3518
|
+
/** 最晚创建时间,毫秒级时间戳 */
|
|
3519
|
+
begin_end_time?: string
|
|
3520
|
+
/** 投递 ID */
|
|
3521
|
+
application_id?: string
|
|
3522
|
+
/** 订单状态 */
|
|
3523
|
+
order_status?: '2' | '3' | '4' | '5' | '6' | '8' | '9'
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
export interface BatchQueryQuery extends Pagination {
|
|
3527
|
+
/** 用户 ID 类型 */
|
|
3528
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
3529
|
+
}
|
|
3476
3530
|
}
|
|
3477
3531
|
|
|
3478
3532
|
export namespace TripartiteAgreement {
|
|
@@ -4349,6 +4403,9 @@ export namespace Hire {
|
|
|
4349
4403
|
}
|
|
4350
4404
|
|
|
4351
4405
|
Internal.define({
|
|
4406
|
+
'/hire/v1/portal_apply_schemas': {
|
|
4407
|
+
GET: { name: 'hire.portalApplySchema.list', pagination: { argIndex: 0 } },
|
|
4408
|
+
},
|
|
4352
4409
|
'/hire/v1/locations/query': {
|
|
4353
4410
|
POST: { name: 'hire.location.query', pagination: { argIndex: 1 } },
|
|
4354
4411
|
},
|
|
@@ -4453,6 +4510,9 @@ Internal.define({
|
|
|
4453
4510
|
'/hire/v1/interviewers/{interviewer_id}': {
|
|
4454
4511
|
PATCH: 'hire.interviewer.patch',
|
|
4455
4512
|
},
|
|
4513
|
+
'/hire/v1/offer_approval_templates': {
|
|
4514
|
+
GET: { name: 'hire.offerApprovalTemplate.list', pagination: { argIndex: 0 } },
|
|
4515
|
+
},
|
|
4456
4516
|
'/hire/v1/offer_custom_fields/{offer_custom_field_id}': {
|
|
4457
4517
|
PUT: 'hire.offerCustomField.update',
|
|
4458
4518
|
},
|
|
@@ -4701,6 +4761,9 @@ Internal.define({
|
|
|
4701
4761
|
'/hire/v1/background_check_orders': {
|
|
4702
4762
|
GET: { name: 'hire.backgroundCheckOrder.list', pagination: { argIndex: 0 } },
|
|
4703
4763
|
},
|
|
4764
|
+
'/hire/v1/background_check_orders/batch_query': {
|
|
4765
|
+
POST: { name: 'hire.backgroundCheckOrder.batchQuery', pagination: { argIndex: 1 } },
|
|
4766
|
+
},
|
|
4704
4767
|
'/hire/v1/tripartite_agreements': {
|
|
4705
4768
|
POST: 'hire.tripartiteAgreement.create',
|
|
4706
4769
|
GET: { name: 'hire.tripartiteAgreement.list', pagination: { argIndex: 0 } },
|
package/src/types/im.ts
CHANGED
|
@@ -94,7 +94,7 @@ export namespace Im {
|
|
|
94
94
|
*/
|
|
95
95
|
urgentPhone(message_id: string, body: UrgentPhoneRequest, query?: UrgentPhoneQuery): Promise<UrgentPhoneResponse>
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* 更新已发送的消息卡片
|
|
98
98
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/message/patch
|
|
99
99
|
*/
|
|
100
100
|
patch(message_id: string, body: PatchRequest): Promise<void>
|