@satorijs/adapter-lark 3.12.3 → 3.12.5
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 +183 -3
- package/lib/types/apaas.d.ts +45 -0
- package/lib/types/application.d.ts +117 -0
- package/lib/types/approval.d.ts +58 -0
- package/lib/types/bitable.d.ts +51 -0
- package/lib/types/contact.d.ts +17 -0
- package/lib/types/corehr.d.ts +249 -0
- package/lib/types/drive.d.ts +89 -0
- package/lib/types/im.d.ts +26 -1
- package/lib/types/index.d.ts +591 -32
- package/lib/types/minutes.d.ts +13 -0
- package/lib/types/performance.d.ts +27 -0
- package/lib/types/search.d.ts +32 -0
- package/lib/types/security_and_compliance.d.ts +86 -0
- package/lib/types/spark.d.ts +356 -0
- package/lib/types/vc.d.ts +42 -0
- package/package.json +3 -3
- package/src/bot.ts +0 -1
- package/src/types/apaas.ts +60 -0
- package/src/types/application.ts +146 -0
- package/src/types/approval.ts +72 -0
- package/src/types/bitable.ts +67 -0
- package/src/types/contact.ts +23 -0
- package/src/types/corehr.ts +307 -0
- package/src/types/drive.ts +113 -0
- package/src/types/im.ts +32 -1
- package/src/types/index.ts +647 -32
- package/src/types/minutes.ts +17 -0
- package/src/types/performance.ts +34 -0
- package/src/types/search.ts +38 -0
- package/src/types/security_and_compliance.ts +115 -0
- package/src/types/spark.ts +432 -0
- package/src/types/vc.ts +53 -0
- package/src/utils.ts +2 -1
package/src/types/apaas.ts
CHANGED
|
@@ -737,6 +737,7 @@ export namespace Apaas {
|
|
|
737
737
|
export interface Methods {
|
|
738
738
|
table: Table.Methods
|
|
739
739
|
view: View.Methods
|
|
740
|
+
enum: Enum.Methods
|
|
740
741
|
/**
|
|
741
742
|
* 执行SQL
|
|
742
743
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/workspace/sql_commands
|
|
@@ -756,6 +757,16 @@ export namespace Apaas {
|
|
|
756
757
|
|
|
757
758
|
export namespace Table {
|
|
758
759
|
export interface Methods {
|
|
760
|
+
/**
|
|
761
|
+
* 获取工作空间下的数据表列表
|
|
762
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/workspace-table/list
|
|
763
|
+
*/
|
|
764
|
+
list(workspace_id: string, query?: Pagination): Paginated<Lark.WorkspaceDataTable>
|
|
765
|
+
/**
|
|
766
|
+
* 获取数据表详细信息
|
|
767
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/workspace-table/table_get
|
|
768
|
+
*/
|
|
769
|
+
tableGet(workspace_id: string, table_name: string): Promise<TableGetResponse>
|
|
759
770
|
/**
|
|
760
771
|
* 查询数据表数据记录
|
|
761
772
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/workspace-table/records_get
|
|
@@ -783,6 +794,15 @@ export namespace Apaas {
|
|
|
783
794
|
recordsDelete(workspace_id: string, table_name: string, query?: RecordsDeleteQuery): Promise<void>
|
|
784
795
|
}
|
|
785
796
|
|
|
797
|
+
export interface TableGetResponse {
|
|
798
|
+
/** 数据表名,如 student */
|
|
799
|
+
name: string
|
|
800
|
+
/** 数据表描述 */
|
|
801
|
+
description: string
|
|
802
|
+
/** 数据表列 */
|
|
803
|
+
columns: Lark.WorkspaceDataTableColumnInfo[]
|
|
804
|
+
}
|
|
805
|
+
|
|
786
806
|
export interface RecordsGetQuery extends Pagination {
|
|
787
807
|
/**
|
|
788
808
|
* 返回的列,默认为 *,即返回所有列。
|
|
@@ -900,6 +920,34 @@ export namespace Apaas {
|
|
|
900
920
|
items: string
|
|
901
921
|
}
|
|
902
922
|
}
|
|
923
|
+
|
|
924
|
+
export namespace Enum {
|
|
925
|
+
export interface Methods {
|
|
926
|
+
/**
|
|
927
|
+
* 获取工作空间下的自定义枚举列表
|
|
928
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/workspace-enum/list
|
|
929
|
+
*/
|
|
930
|
+
list(workspace_id: string, query?: Pagination): Paginated<Lark.WorkspaceEnum>
|
|
931
|
+
/**
|
|
932
|
+
* 获取自定义枚举详细信息
|
|
933
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/apaas-v1/workspace-enum/enum_get
|
|
934
|
+
*/
|
|
935
|
+
enumGet(workspace_id: string, enum_name: string): Promise<EnumGetResponse>
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
export interface EnumGetResponse {
|
|
939
|
+
/** 枚举名称 */
|
|
940
|
+
name: string
|
|
941
|
+
/** 枚举描述 */
|
|
942
|
+
description: string
|
|
943
|
+
/** 枚举值列表 */
|
|
944
|
+
options: string[]
|
|
945
|
+
/** 创建时间,毫秒时间戳 */
|
|
946
|
+
created_at: string
|
|
947
|
+
/** 创建人 */
|
|
948
|
+
created_by: Lark.WorkspaceUserInfo
|
|
949
|
+
}
|
|
950
|
+
}
|
|
903
951
|
}
|
|
904
952
|
}
|
|
905
953
|
|
|
@@ -1013,6 +1061,12 @@ Internal.define({
|
|
|
1013
1061
|
'/apaas/v1/user_tasks/{task_id}/chat_group': {
|
|
1014
1062
|
POST: 'apaas.userTask.chatGroup',
|
|
1015
1063
|
},
|
|
1064
|
+
'/apaas/v1/workspaces/{workspace_id}/tables': {
|
|
1065
|
+
GET: { name: 'apaas.workspace.table.list', pagination: { argIndex: 1 } },
|
|
1066
|
+
},
|
|
1067
|
+
'/apaas/v1/workspaces/{workspace_id}/tables/{table_name}': {
|
|
1068
|
+
GET: 'apaas.workspace.table.tableGet',
|
|
1069
|
+
},
|
|
1016
1070
|
'/apaas/v1/workspaces/{workspace_id}/tables/{table_name}/records': {
|
|
1017
1071
|
GET: 'apaas.workspace.table.recordsGet',
|
|
1018
1072
|
POST: 'apaas.workspace.table.recordsPost',
|
|
@@ -1025,6 +1079,12 @@ Internal.define({
|
|
|
1025
1079
|
'/apaas/v1/workspaces/{workspace_id}/views/{view_name}/records': {
|
|
1026
1080
|
GET: 'apaas.workspace.view.viewsGet',
|
|
1027
1081
|
},
|
|
1082
|
+
'/apaas/v1/workspaces/{workspace_id}/enums': {
|
|
1083
|
+
GET: { name: 'apaas.workspace.enum.list', pagination: { argIndex: 1 } },
|
|
1084
|
+
},
|
|
1085
|
+
'/apaas/v1/workspaces/{workspace_id}/enums/{enum_name}': {
|
|
1086
|
+
GET: 'apaas.workspace.enum.enumGet',
|
|
1087
|
+
},
|
|
1028
1088
|
'/apaas/v1/workspaces/{workspace_id}/sql_commands': {
|
|
1029
1089
|
POST: 'apaas.workspace.sqlCommands',
|
|
1030
1090
|
},
|
package/src/types/application.ts
CHANGED
|
@@ -9,8 +9,13 @@ declare module '../internal' {
|
|
|
9
9
|
|
|
10
10
|
export namespace Application {
|
|
11
11
|
export interface Methods {
|
|
12
|
+
appAvatar: AppAvatar.Methods
|
|
12
13
|
owner: Owner.Methods
|
|
13
14
|
collaborators: Collaborators.Methods
|
|
15
|
+
base: Base.Methods
|
|
16
|
+
ability: Ability.Methods
|
|
17
|
+
config: Config.Methods
|
|
18
|
+
publish: Publish.Methods
|
|
14
19
|
appVersion: AppVersion.Methods
|
|
15
20
|
scope: Scope.Methods
|
|
16
21
|
contactsRange: ContactsRange.Methods
|
|
@@ -186,6 +191,32 @@ export namespace Application {
|
|
|
186
191
|
app_list?: Lark.Application[]
|
|
187
192
|
}
|
|
188
193
|
|
|
194
|
+
export namespace AppAvatar {
|
|
195
|
+
export interface Methods {
|
|
196
|
+
upload: Upload.Methods
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export namespace Upload {
|
|
200
|
+
export interface Methods {
|
|
201
|
+
/**
|
|
202
|
+
* 上传应用图标
|
|
203
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v7/application-v7/app_avatar-upload/create
|
|
204
|
+
*/
|
|
205
|
+
create(form: CreateForm): Promise<CreateResponse>
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export interface CreateForm {
|
|
209
|
+
/** 图片 */
|
|
210
|
+
avatar: Blob
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface CreateResponse {
|
|
214
|
+
/** 图片 URL,给创建/更新应用使用 */
|
|
215
|
+
url?: string
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
189
220
|
export namespace Owner {
|
|
190
221
|
export interface Methods {
|
|
191
222
|
/**
|
|
@@ -243,6 +274,106 @@ export namespace Application {
|
|
|
243
274
|
}
|
|
244
275
|
}
|
|
245
276
|
|
|
277
|
+
export namespace Base {
|
|
278
|
+
export interface Methods {
|
|
279
|
+
/**
|
|
280
|
+
* 更新应用基础信息配置
|
|
281
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v7/application-v7/application-base/patch
|
|
282
|
+
*/
|
|
283
|
+
patch(app_id: string, body: PatchRequest): Promise<void>
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface PatchRequest {
|
|
287
|
+
/** 应用名称描述多语种 */
|
|
288
|
+
i18ns?: Lark.AppI18nInfo[]
|
|
289
|
+
/** 应用icon图片链接 */
|
|
290
|
+
avatar_url?: string
|
|
291
|
+
/** 应用管理后台url链接 */
|
|
292
|
+
homepage_url?: string
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export namespace Ability {
|
|
297
|
+
export interface Methods {
|
|
298
|
+
/**
|
|
299
|
+
* 更新应用能力配置
|
|
300
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v7/application-v7/application-ability/patch
|
|
301
|
+
*/
|
|
302
|
+
patch(app_id: string, body: PatchRequest): Promise<void>
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export interface PatchRequest {
|
|
306
|
+
/** 网页应用 */
|
|
307
|
+
web_app?: Lark.AppAbilityWeb
|
|
308
|
+
/** 机器人 */
|
|
309
|
+
bot?: Lark.AppAbilityBot
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export namespace Config {
|
|
314
|
+
export interface Methods {
|
|
315
|
+
/**
|
|
316
|
+
* 更新应用开发配置
|
|
317
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v7/application-v7/application-config/patch
|
|
318
|
+
*/
|
|
319
|
+
patch(app_id: string, body: PatchRequest, query?: PatchQuery): Promise<void>
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export interface PatchRequest {
|
|
323
|
+
/** 权限配置 */
|
|
324
|
+
scope?: Lark.AppConfigScope
|
|
325
|
+
/** 事件配置 */
|
|
326
|
+
event?: Lark.AppConfigEvent
|
|
327
|
+
/** 安全配置 */
|
|
328
|
+
security?: Lark.AppConfigSecurity
|
|
329
|
+
/** 可见性范围配置 */
|
|
330
|
+
visibility?: Lark.AppConfigVisibility
|
|
331
|
+
/** 通讯录权限范围配置 */
|
|
332
|
+
contacts?: Lark.AppConfigContactsRange
|
|
333
|
+
/** 事件与回调加密策略 */
|
|
334
|
+
event_and_callback_encrypt_strategy?: Lark.EventAndCallbackEncryptStrategy
|
|
335
|
+
/** 回调配置 */
|
|
336
|
+
callback?: Lark.AppConfigCallback
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export interface PatchQuery {
|
|
340
|
+
/** 部门id 类型 */
|
|
341
|
+
department_id_type?: 'open_department_id' | 'department_id'
|
|
342
|
+
/** open_id 类型 */
|
|
343
|
+
user_id_type?: 'open_id' | 'user_id' | 'union_id'
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export namespace Publish {
|
|
348
|
+
export interface Methods {
|
|
349
|
+
/**
|
|
350
|
+
* 提交发布自建应用
|
|
351
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/application-v7/application-v7/application-publish/create
|
|
352
|
+
*/
|
|
353
|
+
create(app_id: string, body: CreateRequest): Promise<CreateResponse>
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export interface CreateRequest {
|
|
357
|
+
/** 移动端默认能力 */
|
|
358
|
+
mobile_default_ability?: 'gadget' | 'web_app' | 'bot'
|
|
359
|
+
/** PC端默认能力 */
|
|
360
|
+
pc_default_ability?: 'gadget' | 'web_app' | 'bot'
|
|
361
|
+
/** 申请理由 */
|
|
362
|
+
remark: string
|
|
363
|
+
/** 更新描述 */
|
|
364
|
+
changelog: string
|
|
365
|
+
/** 应用版本号 */
|
|
366
|
+
version?: string
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export interface CreateResponse {
|
|
370
|
+
/** 应用版本ID */
|
|
371
|
+
version_id?: string
|
|
372
|
+
/** 应用版本号 */
|
|
373
|
+
version?: string
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
246
377
|
export namespace AppVersion {
|
|
247
378
|
export interface Methods {
|
|
248
379
|
/**
|
|
@@ -678,6 +809,9 @@ export namespace Application {
|
|
|
678
809
|
}
|
|
679
810
|
|
|
680
811
|
Internal.define({
|
|
812
|
+
'/application/v7/app_avatar/upload': {
|
|
813
|
+
POST: { name: 'application.appAvatar.upload.create', multipart: true },
|
|
814
|
+
},
|
|
681
815
|
'/application/v6/applications/{app_id}/owner': {
|
|
682
816
|
PUT: 'application.owner.update',
|
|
683
817
|
},
|
|
@@ -685,6 +819,18 @@ Internal.define({
|
|
|
685
819
|
PUT: 'application.collaborators.update',
|
|
686
820
|
GET: 'application.collaborators.get',
|
|
687
821
|
},
|
|
822
|
+
'/application/v7/applications/{app_id}/base': {
|
|
823
|
+
PATCH: 'application.base.patch',
|
|
824
|
+
},
|
|
825
|
+
'/application/v7/applications/{app_id}/ability': {
|
|
826
|
+
PATCH: 'application.ability.patch',
|
|
827
|
+
},
|
|
828
|
+
'/application/v7/applications/{app_id}/config': {
|
|
829
|
+
PATCH: 'application.config.patch',
|
|
830
|
+
},
|
|
831
|
+
'/application/v7/applications/{app_id}/publish': {
|
|
832
|
+
POST: 'application.publish.create',
|
|
833
|
+
},
|
|
688
834
|
'/application/v6/applications/{app_id}': {
|
|
689
835
|
GET: 'application.get',
|
|
690
836
|
PATCH: 'application.patch',
|
package/src/types/approval.ts
CHANGED
|
@@ -14,6 +14,7 @@ export namespace Approval {
|
|
|
14
14
|
externalApproval: ExternalApproval.Methods
|
|
15
15
|
externalInstance: ExternalInstance.Methods
|
|
16
16
|
externalTask: ExternalTask.Methods
|
|
17
|
+
district: District.Methods
|
|
17
18
|
/**
|
|
18
19
|
* 创建审批定义
|
|
19
20
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/approval/create
|
|
@@ -129,6 +130,11 @@ export namespace Approval {
|
|
|
129
130
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/instance/get
|
|
130
131
|
*/
|
|
131
132
|
get(instance_id: string, query?: GetQuery): Promise<GetResponse>
|
|
133
|
+
/**
|
|
134
|
+
* 批量获取审批实例 ID
|
|
135
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/instance/list
|
|
136
|
+
*/
|
|
137
|
+
list(query?: ListQuery): Paginated<string, 'instance_code_list'>
|
|
132
138
|
/**
|
|
133
139
|
* 退回审批任务
|
|
134
140
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/instance/specified_rollback
|
|
@@ -309,6 +315,15 @@ export namespace Approval {
|
|
|
309
315
|
instance_code: string
|
|
310
316
|
}
|
|
311
317
|
|
|
318
|
+
export interface ListQuery extends Pagination {
|
|
319
|
+
/** 审批定义唯一标识 */
|
|
320
|
+
approval_code: string
|
|
321
|
+
/** 审批实例创建时间区间(毫秒) */
|
|
322
|
+
start_time: string
|
|
323
|
+
/** 审批实例创建时间区间(毫秒) */
|
|
324
|
+
end_time: string
|
|
325
|
+
}
|
|
326
|
+
|
|
312
327
|
export interface SpecifiedRollbackRequest {
|
|
313
328
|
/** 用户ID */
|
|
314
329
|
user_id: string
|
|
@@ -899,6 +914,56 @@ export namespace Approval {
|
|
|
899
914
|
status?: 'PENDING' | 'APPROVED' | 'REJECTED' | 'TRANSFERRED' | 'DONE'
|
|
900
915
|
}
|
|
901
916
|
}
|
|
917
|
+
|
|
918
|
+
export namespace District {
|
|
919
|
+
export interface Methods {
|
|
920
|
+
/**
|
|
921
|
+
* 查询地理库信息
|
|
922
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/district/list
|
|
923
|
+
*/
|
|
924
|
+
list(query?: ListQuery): Promise<ListResponse>
|
|
925
|
+
/**
|
|
926
|
+
* 搜索地理库信息
|
|
927
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/district/search
|
|
928
|
+
*/
|
|
929
|
+
search(body: SearchRequest, query?: SearchQuery): Promise<SearchResponse>
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
export interface ListQuery extends Pagination {
|
|
933
|
+
/** 指定根节点,仅遍历该节点下的数据,默认遍历根节点,返回值内容与list_type 参数有关 */
|
|
934
|
+
root_district_id?: string
|
|
935
|
+
/** 遍历类型,不同的类型内容会有差异 */
|
|
936
|
+
list_type?: 'sub_level' | 'leaf_level'
|
|
937
|
+
/** 返回指定语言的内容,默认返回英文数据 */
|
|
938
|
+
locale?: 'zh-CN' | 'en-US'
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
export interface ListResponse {
|
|
942
|
+
/** 地理库的版本,地理库更新时版本会同步更新,如果应用将地理数据存在本地,需要定时判断版本,在变化以及时更新本地数据 */
|
|
943
|
+
version?: string
|
|
944
|
+
has_more?: boolean
|
|
945
|
+
page_token?: string
|
|
946
|
+
/** 区域列表 */
|
|
947
|
+
items?: Lark.District[]
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
export interface SearchRequest {
|
|
951
|
+
/** 根据ID查询指定区域的信息 */
|
|
952
|
+
district_ids?: string[]
|
|
953
|
+
/** 关键字,用于模糊查询符合条件的地址信息 */
|
|
954
|
+
keyword?: string
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
export interface SearchQuery {
|
|
958
|
+
/** 语言 */
|
|
959
|
+
locale?: 'zh-CN' | 'en-US'
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
export interface SearchResponse {
|
|
963
|
+
/** 区域列表 */
|
|
964
|
+
items?: Lark.District[]
|
|
965
|
+
}
|
|
966
|
+
}
|
|
902
967
|
}
|
|
903
968
|
|
|
904
969
|
Internal.define({
|
|
@@ -910,6 +975,7 @@ Internal.define({
|
|
|
910
975
|
},
|
|
911
976
|
'/approval/v4/instances': {
|
|
912
977
|
POST: 'approval.instance.create',
|
|
978
|
+
GET: { name: 'approval.instance.list', pagination: { argIndex: 0, itemsKey: 'instance_code_list' } },
|
|
913
979
|
},
|
|
914
980
|
'/approval/v4/instances/cancel': {
|
|
915
981
|
POST: 'approval.instance.cancel',
|
|
@@ -984,4 +1050,10 @@ Internal.define({
|
|
|
984
1050
|
'/approval/v4/approvals/{approval_code}/unsubscribe': {
|
|
985
1051
|
POST: 'approval.unsubscribe',
|
|
986
1052
|
},
|
|
1053
|
+
'/approval/v4/districts': {
|
|
1054
|
+
GET: 'approval.district.list',
|
|
1055
|
+
},
|
|
1056
|
+
'/approval/v4/districts/search': {
|
|
1057
|
+
POST: 'approval.district.search',
|
|
1058
|
+
},
|
|
987
1059
|
})
|
package/src/types/bitable.ts
CHANGED
|
@@ -18,6 +18,7 @@ export namespace Bitable {
|
|
|
18
18
|
dashboard: Dashboard.Methods
|
|
19
19
|
role: Role.Methods
|
|
20
20
|
workflow: Workflow.Methods
|
|
21
|
+
blockWorkflow: BlockWorkflow.Methods
|
|
21
22
|
/**
|
|
22
23
|
* 创建多维表格
|
|
23
24
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app/create
|
|
@@ -88,6 +89,7 @@ export namespace Bitable {
|
|
|
88
89
|
view: View.Methods
|
|
89
90
|
record: Record.Methods
|
|
90
91
|
field: Field.Methods
|
|
92
|
+
fieldGroup: FieldGroup.Methods
|
|
91
93
|
form: Form.Methods
|
|
92
94
|
/**
|
|
93
95
|
* 新增一个数据表
|
|
@@ -679,9 +681,34 @@ export namespace Bitable {
|
|
|
679
681
|
}
|
|
680
682
|
}
|
|
681
683
|
|
|
684
|
+
export namespace FieldGroup {
|
|
685
|
+
export interface Methods {
|
|
686
|
+
/**
|
|
687
|
+
* 创建字段编组
|
|
688
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-table-field_group/create
|
|
689
|
+
*/
|
|
690
|
+
create(app_token: string, table_id: string, body: CreateRequest): Promise<CreateResponse>
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
export interface CreateRequest {
|
|
694
|
+
/** 要新增字段编组列表 */
|
|
695
|
+
field_groups: Lark.FieldGroup[]
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
export interface CreateResponse {
|
|
699
|
+
/** 字段编组的内容 */
|
|
700
|
+
field_groups?: string
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
|
|
682
704
|
export namespace Form {
|
|
683
705
|
export interface Methods {
|
|
684
706
|
field: Field.Methods
|
|
707
|
+
/**
|
|
708
|
+
* 升级表单
|
|
709
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-table-form/upgrade
|
|
710
|
+
*/
|
|
711
|
+
upgrade(app_token: string, table_id: string, form_id: string, body: UpgradeRequest): Promise<UpgradeResponse>
|
|
685
712
|
/**
|
|
686
713
|
* 更新表单元数据
|
|
687
714
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-table-form/patch
|
|
@@ -694,6 +721,22 @@ export namespace Bitable {
|
|
|
694
721
|
get(app_token: string, table_id: string, form_id: string): Promise<GetResponse>
|
|
695
722
|
}
|
|
696
723
|
|
|
724
|
+
export interface UpgradeRequest {
|
|
725
|
+
/** 升级后的表单名称 */
|
|
726
|
+
form_name: string
|
|
727
|
+
/**
|
|
728
|
+
* 表单布局模式。可选值
|
|
729
|
+
* - traditional:传统布局
|
|
730
|
+
* - one_question_per_page:一页一题布局:
|
|
731
|
+
*/
|
|
732
|
+
display_mode: Lark.FormDisplayMode
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
export interface UpgradeResponse {
|
|
736
|
+
/** 升级后的表单 */
|
|
737
|
+
form?: Lark.UpgradedForm
|
|
738
|
+
}
|
|
739
|
+
|
|
697
740
|
export interface PatchRequest {
|
|
698
741
|
/** 表单名称 */
|
|
699
742
|
name?: string
|
|
@@ -943,6 +986,21 @@ export namespace Bitable {
|
|
|
943
986
|
status: string
|
|
944
987
|
}
|
|
945
988
|
}
|
|
989
|
+
|
|
990
|
+
export namespace BlockWorkflow {
|
|
991
|
+
export interface Methods {
|
|
992
|
+
/**
|
|
993
|
+
* 列出工作流
|
|
994
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/bitable-v1/app-block_workflow/list
|
|
995
|
+
*/
|
|
996
|
+
list(app_token: string): Promise<ListResponse>
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
export interface ListResponse {
|
|
1000
|
+
/** 工作流列表 */
|
|
1001
|
+
workflows?: Lark.BlockWorkflow[]
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
946
1004
|
}
|
|
947
1005
|
}
|
|
948
1006
|
|
|
@@ -1012,12 +1070,18 @@ Internal.define({
|
|
|
1012
1070
|
PUT: 'bitable.app.table.field.update',
|
|
1013
1071
|
DELETE: 'bitable.app.table.field.delete',
|
|
1014
1072
|
},
|
|
1073
|
+
'/bitable/v1/apps/{app_token}/tables/{table_id}/field_groups': {
|
|
1074
|
+
POST: 'bitable.app.table.fieldGroup.create',
|
|
1075
|
+
},
|
|
1015
1076
|
'/bitable/v1/apps/{app_token}/dashboards/{block_id}/copy': {
|
|
1016
1077
|
POST: 'bitable.app.dashboard.copy',
|
|
1017
1078
|
},
|
|
1018
1079
|
'/bitable/v1/apps/{app_token}/dashboards': {
|
|
1019
1080
|
GET: { name: 'bitable.app.dashboard.list', pagination: { argIndex: 1, itemsKey: 'dashboards' } },
|
|
1020
1081
|
},
|
|
1082
|
+
'/bitable/v1/apps/{app_token}/tables/{table_id}/forms/{form_id}/upgrade': {
|
|
1083
|
+
POST: 'bitable.app.table.form.upgrade',
|
|
1084
|
+
},
|
|
1021
1085
|
'/bitable/v1/apps/{app_token}/tables/{table_id}/forms/{form_id}': {
|
|
1022
1086
|
PATCH: 'bitable.app.table.form.patch',
|
|
1023
1087
|
GET: 'bitable.app.table.form.get',
|
|
@@ -1051,6 +1115,9 @@ Internal.define({
|
|
|
1051
1115
|
'/bitable/v1/apps/{app_token}/workflows/{workflow_id}': {
|
|
1052
1116
|
PUT: 'bitable.app.workflow.update',
|
|
1053
1117
|
},
|
|
1118
|
+
'/bitable/v1/apps/{app_token}/block_workflows': {
|
|
1119
|
+
GET: 'bitable.app.blockWorkflow.list',
|
|
1120
|
+
},
|
|
1054
1121
|
'/bitable/v1/apps/{app_token}/roles': {
|
|
1055
1122
|
POST: 'bitable.app.role.create',
|
|
1056
1123
|
GET: { name: 'bitable.app.role.list', pagination: { argIndex: 1 } },
|
package/src/types/contact.ts
CHANGED
|
@@ -75,6 +75,11 @@ export namespace Contact {
|
|
|
75
75
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/get
|
|
76
76
|
*/
|
|
77
77
|
get(user_id: string, query?: GetQuery): Promise<GetResponse>
|
|
78
|
+
/**
|
|
79
|
+
* 通过 ID 获取用户姓名
|
|
80
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/basic_batch
|
|
81
|
+
*/
|
|
82
|
+
basicBatch(body: BasicBatchRequest, query?: BasicBatchQuery): Promise<BasicBatchResponse>
|
|
78
83
|
/**
|
|
79
84
|
* 批量获取用户信息
|
|
80
85
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/user/batch
|
|
@@ -293,6 +298,21 @@ export namespace Contact {
|
|
|
293
298
|
user?: Lark.User
|
|
294
299
|
}
|
|
295
300
|
|
|
301
|
+
export interface BasicBatchRequest {
|
|
302
|
+
/** 用户ID */
|
|
303
|
+
user_ids: string[]
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export interface BasicBatchQuery {
|
|
307
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
308
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export interface BasicBatchResponse {
|
|
312
|
+
/** 用户信息 */
|
|
313
|
+
users?: Lark.BasicUser[]
|
|
314
|
+
}
|
|
315
|
+
|
|
296
316
|
export interface BatchQuery {
|
|
297
317
|
/** 要查询的用户ID列表 */
|
|
298
318
|
user_ids: string[]
|
|
@@ -1473,6 +1493,9 @@ Internal.define({
|
|
|
1473
1493
|
'/contact/v3/users/{user_id}/update_user_id': {
|
|
1474
1494
|
PATCH: 'contact.user.updateUserId',
|
|
1475
1495
|
},
|
|
1496
|
+
'/contact/v3/users/basic_batch': {
|
|
1497
|
+
POST: 'contact.user.basicBatch',
|
|
1498
|
+
},
|
|
1476
1499
|
'/contact/v3/users/batch': {
|
|
1477
1500
|
GET: 'contact.user.batch',
|
|
1478
1501
|
},
|