@satorijs/adapter-lark 3.10.6 → 3.11.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/lib/content.d.ts +211 -93
- package/lib/index.cjs +2954 -2474
- package/lib/internal.d.ts +4 -4
- package/lib/message.d.ts +2 -3
- package/lib/types/acs.d.ts +212 -172
- package/lib/types/admin.d.ts +331 -291
- package/lib/types/aily.d.ts +331 -216
- package/lib/types/apaas.d.ts +646 -494
- package/lib/types/application.d.ts +559 -458
- package/lib/types/approval.d.ts +826 -791
- package/lib/types/attendance.d.ts +1094 -994
- package/lib/types/auth.d.ts +66 -61
- package/lib/types/authen.d.ts +221 -186
- package/lib/types/baike.d.ts +258 -233
- package/lib/types/base.d.ts +74 -0
- package/lib/types/bitable.d.ts +830 -770
- package/lib/types/board.d.ts +29 -14
- package/lib/types/calendar.d.ts +660 -605
- package/lib/types/cardkit.d.ts +149 -134
- package/lib/types/compensation.d.ts +84 -49
- package/lib/types/contact.d.ts +1279 -1204
- package/lib/types/corehr.d.ts +4982 -4526
- package/lib/types/directory.d.ts +447 -0
- package/lib/types/docs.d.ts +28 -18
- package/lib/types/document_ai.d.ts +347 -252
- package/lib/types/docx.d.ts +428 -383
- package/lib/types/drive.d.ts +1093 -1048
- package/lib/types/ehr.d.ts +66 -51
- package/lib/types/event.d.ts +16 -6
- package/lib/types/helpdesk.d.ts +816 -741
- package/lib/types/hire.d.ts +3955 -3589
- package/lib/types/human_authentication.d.ts +32 -22
- package/lib/types/im.d.ts +1420 -1295
- package/lib/types/index.d.ts +1422 -330
- package/lib/types/lingo.d.ts +279 -249
- package/lib/types/mail.d.ts +1032 -675
- package/lib/types/mdm.d.ts +105 -37
- package/lib/types/minutes.d.ts +73 -26
- package/lib/types/moments.d.ts +23 -13
- package/lib/types/okr.d.ts +266 -225
- package/lib/types/optical_char_recognition.d.ts +22 -12
- package/lib/types/passport.d.ts +58 -48
- package/lib/types/payroll.d.ts +210 -53
- package/lib/types/performance.d.ts +463 -414
- package/lib/types/personal_settings.d.ts +93 -82
- package/lib/types/report.d.ts +79 -58
- package/lib/types/search.d.ts +265 -235
- package/lib/types/security_and_compliance.d.ts +30 -19
- package/lib/types/sheets.d.ts +356 -321
- package/lib/types/speech_to_text.d.ts +44 -34
- package/lib/types/task.d.ts +998 -1087
- package/lib/types/tenant.d.ts +25 -15
- package/lib/types/translation.d.ts +42 -32
- package/lib/types/trust_party.d.ts +81 -0
- package/lib/types/vc.d.ts +1218 -1123
- package/lib/types/verification.d.ts +11 -6
- package/lib/types/wiki.d.ts +270 -235
- package/lib/types/workplace.d.ts +58 -38
- package/lib/utils.d.ts +2 -2
- package/package.json +4 -4
- package/src/bot.ts +15 -15
- package/src/content.ts +230 -107
- package/src/internal.ts +29 -12
- package/src/message.ts +82 -111
- package/src/types/acs.ts +234 -186
- package/src/types/admin.ts +353 -305
- package/src/types/aily.ts +375 -233
- package/src/types/apaas.ts +754 -568
- package/src/types/application.ts +633 -507
- package/src/types/approval.ts +914 -872
- package/src/types/attendance.ts +1226 -1104
- package/src/types/auth.ts +72 -66
- package/src/types/authen.ts +233 -191
- package/src/types/baike.ts +276 -246
- package/src/types/base.ts +93 -0
- package/src/types/bitable.ts +966 -894
- package/src/types/board.ts +34 -16
- package/src/types/calendar.ts +751 -685
- package/src/types/cardkit.ts +164 -146
- package/src/types/compensation.ts +97 -55
- package/src/types/contact.ts +1465 -1375
- package/src/types/corehr.ts +5664 -5077
- package/src/types/directory.ts +569 -0
- package/src/types/docs.ts +31 -19
- package/src/types/document_ai.ts +401 -287
- package/src/types/docx.ts +492 -438
- package/src/types/drive.ts +1266 -1213
- package/src/types/ehr.ts +71 -53
- package/src/types/event.ts +19 -7
- package/src/types/helpdesk.ts +930 -840
- package/src/types/hire.ts +4453 -4019
- package/src/types/human_authentication.ts +35 -23
- package/src/types/im.ts +1626 -1476
- package/src/types/index.ts +1532 -346
- package/src/types/lingo.ts +299 -263
- package/src/types/mail.ts +1231 -779
- package/src/types/mdm.ts +122 -39
- package/src/types/minutes.ts +88 -28
- package/src/types/moments.ts +26 -14
- package/src/types/okr.ts +286 -238
- package/src/types/optical_char_recognition.ts +25 -13
- package/src/types/passport.ts +62 -50
- package/src/types/payroll.ts +254 -57
- package/src/types/performance.ts +528 -467
- package/src/types/personal_settings.ts +101 -89
- package/src/types/report.ts +86 -62
- package/src/types/search.ts +285 -249
- package/src/types/security_and_compliance.ts +33 -21
- package/src/types/sheets.ts +421 -379
- package/src/types/speech_to_text.ts +48 -36
- package/src/types/task.ts +1152 -1260
- package/src/types/tenant.ts +29 -17
- package/src/types/translation.ts +46 -34
- package/src/types/trust_party.ts +110 -0
- package/src/types/vc.ts +1397 -1283
- package/src/types/verification.ts +13 -7
- package/src/types/wiki.ts +293 -251
- package/src/types/workplace.ts +65 -41
- package/src/utils.ts +3 -3
|
@@ -1,116 +1,128 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Internal } from '../internal'
|
|
1
|
+
import * as Lark from '.'
|
|
2
|
+
import { Internal, Paginated, Pagination } from '../internal'
|
|
3
3
|
|
|
4
4
|
declare module '../internal' {
|
|
5
5
|
interface Internal {
|
|
6
|
-
|
|
7
|
-
* 创建系统状态
|
|
8
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/create
|
|
9
|
-
*/
|
|
10
|
-
createPersonalSettingsSystemStatus(body: CreatePersonalSettingsSystemStatusRequest): Promise<CreatePersonalSettingsSystemStatusResponse>
|
|
11
|
-
/**
|
|
12
|
-
* 删除系统状态
|
|
13
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/delete
|
|
14
|
-
*/
|
|
15
|
-
deletePersonalSettingsSystemStatus(system_status_id: string): Promise<void>
|
|
16
|
-
/**
|
|
17
|
-
* 修改系统状态
|
|
18
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/patch
|
|
19
|
-
*/
|
|
20
|
-
patchPersonalSettingsSystemStatus(system_status_id: string, body: PatchPersonalSettingsSystemStatusRequest): Promise<PatchPersonalSettingsSystemStatusResponse>
|
|
21
|
-
/**
|
|
22
|
-
* 获取系统状态
|
|
23
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/list
|
|
24
|
-
*/
|
|
25
|
-
listPersonalSettingsSystemStatus(query?: Pagination): Paginated<SystemStatus>
|
|
26
|
-
/**
|
|
27
|
-
* 批量开启系统状态
|
|
28
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/batch_open
|
|
29
|
-
*/
|
|
30
|
-
batchOpenPersonalSettingsSystemStatus(system_status_id: string, body: BatchOpenPersonalSettingsSystemStatusRequest, query?: BatchOpenPersonalSettingsSystemStatusQuery): Promise<BatchOpenPersonalSettingsSystemStatusResponse>
|
|
31
|
-
/**
|
|
32
|
-
* 批量关闭系统状态
|
|
33
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/batch_close
|
|
34
|
-
*/
|
|
35
|
-
batchClosePersonalSettingsSystemStatus(system_status_id: string, body: BatchClosePersonalSettingsSystemStatusRequest, query?: BatchClosePersonalSettingsSystemStatusQuery): Promise<BatchClosePersonalSettingsSystemStatusResponse>
|
|
6
|
+
personalSettings: PersonalSettings.Methods
|
|
36
7
|
}
|
|
37
8
|
}
|
|
38
9
|
|
|
39
|
-
export
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
i18n_title?: SystemStatusI18nName
|
|
44
|
-
/** 图标 */
|
|
45
|
-
icon_key: 'GeneralDoNotDisturb' | 'GeneralInMeetingBusy' | 'Coffee' | 'GeneralBusinessTrip' | 'GeneralWorkFromHome' | 'StatusEnjoyLife' | 'GeneralTravellingCar' | 'StatusBus' | 'StatusInFlight' | 'Typing' | 'EatingFood' | 'SICK' | 'GeneralSun' | 'GeneralMoonRest' | 'StatusReading' | 'Status_PrivateMessage' | 'StatusFlashOfInspiration' | 'GeneralVacation'
|
|
46
|
-
/** 颜色 */
|
|
47
|
-
color?: 'BLUE' | 'GRAY' | 'INDIGO' | 'WATHET' | 'GREEN' | 'TURQUOISE' | 'YELLOW' | 'LIME' | 'RED' | 'ORANGE' | 'PURPLE' | 'VIOLET' | 'CARMINE'
|
|
48
|
-
/** 优先级,数值越小,客户端展示的优先级越高。不同系统状态的优先级不能一样。 */
|
|
49
|
-
priority?: number
|
|
50
|
-
/** 同步设置 */
|
|
51
|
-
sync_setting?: SystemStatusSyncSetting
|
|
52
|
-
}
|
|
10
|
+
export namespace PersonalSettings {
|
|
11
|
+
export interface Methods {
|
|
12
|
+
systemStatus: SystemStatus.Methods
|
|
13
|
+
}
|
|
53
14
|
|
|
54
|
-
export
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
15
|
+
export namespace SystemStatus {
|
|
16
|
+
export interface Methods {
|
|
17
|
+
/**
|
|
18
|
+
* 创建系统状态
|
|
19
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/create
|
|
20
|
+
*/
|
|
21
|
+
create(body: CreateRequest): Promise<CreateResponse>
|
|
22
|
+
/**
|
|
23
|
+
* 删除系统状态
|
|
24
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/delete
|
|
25
|
+
*/
|
|
26
|
+
delete(system_status_id: string): Promise<void>
|
|
27
|
+
/**
|
|
28
|
+
* 修改系统状态
|
|
29
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/patch
|
|
30
|
+
*/
|
|
31
|
+
patch(system_status_id: string, body: PatchRequest): Promise<PatchResponse>
|
|
32
|
+
/**
|
|
33
|
+
* 获取系统状态
|
|
34
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/list
|
|
35
|
+
*/
|
|
36
|
+
list(query?: Pagination): Paginated<Lark.SystemStatus>
|
|
37
|
+
/**
|
|
38
|
+
* 批量开启系统状态
|
|
39
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/batch_open
|
|
40
|
+
*/
|
|
41
|
+
batchOpen(system_status_id: string, body: BatchOpenRequest, query?: BatchOpenQuery): Promise<BatchOpenResponse>
|
|
42
|
+
/**
|
|
43
|
+
* 批量关闭系统状态
|
|
44
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/batch_close
|
|
45
|
+
*/
|
|
46
|
+
batchClose(system_status_id: string, body: BatchCloseRequest, query?: BatchCloseQuery): Promise<BatchCloseResponse>
|
|
47
|
+
}
|
|
58
48
|
|
|
59
|
-
export interface
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
49
|
+
export interface CreateRequest {
|
|
50
|
+
/** 系统状态名称,名称字符数要在1到20范围内。 */
|
|
51
|
+
title: string
|
|
52
|
+
/** 系统状态国际化名称,名称字符数要在1到20范围内。 */
|
|
53
|
+
i18n_title?: Lark.SystemStatusI18nName
|
|
54
|
+
/** 图标 */
|
|
55
|
+
icon_key: 'GeneralDoNotDisturb' | 'GeneralInMeetingBusy' | 'Coffee' | 'GeneralBusinessTrip' | 'GeneralWorkFromHome' | 'StatusEnjoyLife' | 'GeneralTravellingCar' | 'StatusBus' | 'StatusInFlight' | 'Typing' | 'EatingFood' | 'SICK' | 'GeneralSun' | 'GeneralMoonRest' | 'StatusReading' | 'Status_PrivateMessage' | 'StatusFlashOfInspiration' | 'GeneralVacation'
|
|
56
|
+
/** 颜色 */
|
|
57
|
+
color?: 'BLUE' | 'GRAY' | 'INDIGO' | 'WATHET' | 'GREEN' | 'TURQUOISE' | 'YELLOW' | 'LIME' | 'RED' | 'ORANGE' | 'PURPLE' | 'VIOLET' | 'CARMINE'
|
|
58
|
+
/** 优先级,数值越小,客户端展示的优先级越高。不同系统状态的优先级不能一样。 */
|
|
59
|
+
priority?: number
|
|
60
|
+
/** 同步设置 */
|
|
61
|
+
sync_setting?: Lark.SystemStatusSyncSetting
|
|
62
|
+
}
|
|
65
63
|
|
|
66
|
-
export interface
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
64
|
+
export interface CreateResponse {
|
|
65
|
+
/** 系统状态 */
|
|
66
|
+
system_status?: Lark.SystemStatus
|
|
67
|
+
}
|
|
70
68
|
|
|
71
|
-
export interface
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
export interface PatchRequest {
|
|
70
|
+
/** 系统状态 */
|
|
71
|
+
system_status: Lark.SystemStatus
|
|
72
|
+
/** 需要更新的字段 */
|
|
73
|
+
update_fields: ('TITLE' | 'I18N_TITLE' | 'ICON' | 'COLOR' | 'PRIORITY' | 'SYNC_SETTING')[]
|
|
74
|
+
}
|
|
75
75
|
|
|
76
|
-
export interface
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
76
|
+
export interface PatchResponse {
|
|
77
|
+
/** 系统状态 */
|
|
78
|
+
system_status?: Lark.SystemStatus
|
|
79
|
+
}
|
|
80
80
|
|
|
81
|
-
export interface
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
81
|
+
export interface BatchOpenRequest {
|
|
82
|
+
/** 开启列表 */
|
|
83
|
+
user_list: Lark.SystemStatusUserOpenParam[]
|
|
84
|
+
}
|
|
85
85
|
|
|
86
|
-
export interface
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
86
|
+
export interface BatchOpenQuery {
|
|
87
|
+
/** 用户id类型 open_id/user_id/union_id */
|
|
88
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
89
|
+
}
|
|
90
90
|
|
|
91
|
-
export interface
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
91
|
+
export interface BatchOpenResponse {
|
|
92
|
+
/** 开启结果 */
|
|
93
|
+
result_list: Lark.SystemStatusUserOpenResultEntity[]
|
|
94
|
+
}
|
|
95
95
|
|
|
96
|
-
export interface
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
export interface BatchCloseRequest {
|
|
97
|
+
/** 成员列表 */
|
|
98
|
+
user_list: string[]
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface BatchCloseQuery {
|
|
102
|
+
/** 用户id类型 open_id/user_id/union_id */
|
|
103
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface BatchCloseResponse {
|
|
107
|
+
/** 关闭结果 */
|
|
108
|
+
result_list: Lark.SystemStatusUserCloseResultEntity[]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
99
111
|
}
|
|
100
112
|
|
|
101
113
|
Internal.define({
|
|
102
114
|
'/personal_settings/v1/system_statuses': {
|
|
103
|
-
POST: '
|
|
104
|
-
GET: { name: '
|
|
115
|
+
POST: 'personalSettings.systemStatus.create',
|
|
116
|
+
GET: { name: 'personalSettings.systemStatus.list', pagination: { argIndex: 0 } },
|
|
105
117
|
},
|
|
106
118
|
'/personal_settings/v1/system_statuses/{system_status_id}': {
|
|
107
|
-
DELETE: '
|
|
108
|
-
PATCH: '
|
|
119
|
+
DELETE: 'personalSettings.systemStatus.delete',
|
|
120
|
+
PATCH: 'personalSettings.systemStatus.patch',
|
|
109
121
|
},
|
|
110
122
|
'/personal_settings/v1/system_statuses/{system_status_id}/batch_open': {
|
|
111
|
-
POST: '
|
|
123
|
+
POST: 'personalSettings.systemStatus.batchOpen',
|
|
112
124
|
},
|
|
113
125
|
'/personal_settings/v1/system_statuses/{system_status_id}/batch_close': {
|
|
114
|
-
POST: '
|
|
126
|
+
POST: 'personalSettings.systemStatus.batchClose',
|
|
115
127
|
},
|
|
116
128
|
})
|
package/src/types/report.ts
CHANGED
|
@@ -1,84 +1,108 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Internal } from '../internal'
|
|
1
|
+
import * as Lark from '.'
|
|
2
|
+
import { Internal, Paginated } from '../internal'
|
|
3
3
|
|
|
4
4
|
declare module '../internal' {
|
|
5
5
|
interface Internal {
|
|
6
|
-
|
|
7
|
-
* 查询规则
|
|
8
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule/query
|
|
9
|
-
*/
|
|
10
|
-
queryReportRule(query?: QueryReportRuleQuery): Promise<QueryReportRuleResponse>
|
|
11
|
-
/**
|
|
12
|
-
* 移除规则看板
|
|
13
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule-view/remove
|
|
14
|
-
*/
|
|
15
|
-
removeReportRuleView(rule_id: string, body: RemoveReportRuleViewRequest, query?: RemoveReportRuleViewQuery): Promise<void>
|
|
16
|
-
/**
|
|
17
|
-
* 查询任务
|
|
18
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/task/query
|
|
19
|
-
*/
|
|
20
|
-
queryReportTask(body: QueryReportTaskRequest, query?: QueryReportTaskQuery): Paginated<Task>
|
|
6
|
+
report: Report.Methods
|
|
21
7
|
}
|
|
22
8
|
}
|
|
23
9
|
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
10
|
+
export namespace Report {
|
|
11
|
+
export interface Methods {
|
|
12
|
+
rule: Rule.Methods
|
|
13
|
+
task: Task.Methods
|
|
14
|
+
}
|
|
30
15
|
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
16
|
+
export namespace Rule {
|
|
17
|
+
export interface Methods {
|
|
18
|
+
view: View.Methods
|
|
19
|
+
/**
|
|
20
|
+
* 查询规则
|
|
21
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule/query
|
|
22
|
+
*/
|
|
23
|
+
query(query?: QueryQuery): Promise<QueryResponse>
|
|
24
|
+
}
|
|
39
25
|
|
|
40
|
-
export
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
26
|
+
export const enum QueryQueryIncludeDeleted {
|
|
27
|
+
/** 不包括已删除 */
|
|
28
|
+
Exclude = 0,
|
|
29
|
+
/** 包括已删除 */
|
|
30
|
+
Include = 1,
|
|
31
|
+
}
|
|
44
32
|
|
|
45
|
-
export interface
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
33
|
+
export interface QueryQuery {
|
|
34
|
+
/** 规则名称 */
|
|
35
|
+
rule_name: string
|
|
36
|
+
/** 是否包括已删除,默认未删除 */
|
|
37
|
+
include_deleted?: QueryQueryIncludeDeleted
|
|
38
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
39
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
40
|
+
}
|
|
49
41
|
|
|
50
|
-
export interface
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
export interface QueryResponse {
|
|
43
|
+
/** 规则列表 */
|
|
44
|
+
rules?: Lark.Rule[]
|
|
45
|
+
}
|
|
53
46
|
|
|
54
|
-
export
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
user_id?: string
|
|
63
|
-
/** 分页标识符 */
|
|
64
|
-
page_token: string
|
|
65
|
-
/** 单次分页返回的条数 */
|
|
66
|
-
page_size: number
|
|
67
|
-
}
|
|
47
|
+
export namespace View {
|
|
48
|
+
export interface Methods {
|
|
49
|
+
/**
|
|
50
|
+
* 移除规则看板
|
|
51
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/rule-view/remove
|
|
52
|
+
*/
|
|
53
|
+
remove(rule_id: string, body: RemoveRequest, query?: RemoveQuery): Promise<void>
|
|
54
|
+
}
|
|
68
55
|
|
|
69
|
-
export interface
|
|
70
|
-
|
|
71
|
-
|
|
56
|
+
export interface RemoveRequest {
|
|
57
|
+
/** 列表为空删除规则下全用户视图,列表不为空删除指定用户视图,大小限制200。 */
|
|
58
|
+
user_ids?: string[]
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface RemoveQuery {
|
|
62
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export namespace Task {
|
|
68
|
+
export interface Methods {
|
|
69
|
+
/**
|
|
70
|
+
* 查询任务
|
|
71
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/report/report-v1/task/query
|
|
72
|
+
*/
|
|
73
|
+
query(body: QueryRequest, query?: QueryQuery): Paginated<Lark.Task>
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface QueryRequest {
|
|
77
|
+
/** 提交开始时间时间戳 */
|
|
78
|
+
commit_start_time: number
|
|
79
|
+
/** 提交结束时间时间戳 */
|
|
80
|
+
commit_end_time: number
|
|
81
|
+
/** 汇报规则ID */
|
|
82
|
+
rule_id?: string
|
|
83
|
+
/** 用户ID */
|
|
84
|
+
user_id?: string
|
|
85
|
+
/** 分页标识符 */
|
|
86
|
+
page_token: string
|
|
87
|
+
/** 单次分页返回的条数 */
|
|
88
|
+
page_size: number
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface QueryQuery {
|
|
92
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
93
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
94
|
+
}
|
|
95
|
+
}
|
|
72
96
|
}
|
|
73
97
|
|
|
74
98
|
Internal.define({
|
|
75
99
|
'/report/v1/rules/query': {
|
|
76
|
-
GET: '
|
|
100
|
+
GET: 'report.rule.query',
|
|
77
101
|
},
|
|
78
102
|
'/report/v1/rules/{rule_id}/views/remove': {
|
|
79
|
-
POST: '
|
|
103
|
+
POST: 'report.rule.view.remove',
|
|
80
104
|
},
|
|
81
105
|
'/report/v1/tasks/query': {
|
|
82
|
-
POST: '
|
|
106
|
+
POST: 'report.task.query',
|
|
83
107
|
},
|
|
84
108
|
})
|