@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,999 +1,1099 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Pagination } from '../internal';
|
|
1
|
+
import * as Lark from '.';
|
|
2
|
+
import { Paginated, Pagination } from '../internal';
|
|
3
3
|
declare module '../internal' {
|
|
4
4
|
interface Internal {
|
|
5
|
-
|
|
6
|
-
* 创建班次
|
|
7
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/create
|
|
8
|
-
*/
|
|
9
|
-
createAttendanceShift(body: CreateAttendanceShiftRequest, query?: CreateAttendanceShiftQuery): Promise<CreateAttendanceShiftResponse>;
|
|
10
|
-
/**
|
|
11
|
-
* 删除班次
|
|
12
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/delete
|
|
13
|
-
*/
|
|
14
|
-
deleteAttendanceShift(shift_id: string): Promise<void>;
|
|
15
|
-
/**
|
|
16
|
-
* 按 ID 查询班次
|
|
17
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/get
|
|
18
|
-
*/
|
|
19
|
-
getAttendanceShift(shift_id: string): Promise<GetAttendanceShiftResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* 按名称查询班次
|
|
22
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/query
|
|
23
|
-
*/
|
|
24
|
-
queryAttendanceShift(query?: QueryAttendanceShiftQuery): Promise<QueryAttendanceShiftResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* 查询所有班次
|
|
27
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/list
|
|
28
|
-
*/
|
|
29
|
-
listAttendanceShift(query?: Pagination): Paginated<Shift, 'shift_list'>;
|
|
30
|
-
/**
|
|
31
|
-
* 创建或修改排班表
|
|
32
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_daily_shift/batch_create
|
|
33
|
-
*/
|
|
34
|
-
batchCreateAttendanceUserDailyShift(body: BatchCreateAttendanceUserDailyShiftRequest, query?: BatchCreateAttendanceUserDailyShiftQuery): Promise<BatchCreateAttendanceUserDailyShiftResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* 查询排班表
|
|
37
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_daily_shift/query
|
|
38
|
-
*/
|
|
39
|
-
queryAttendanceUserDailyShift(body: QueryAttendanceUserDailyShiftRequest, query?: QueryAttendanceUserDailyShiftQuery): Promise<QueryAttendanceUserDailyShiftResponse>;
|
|
40
|
-
/**
|
|
41
|
-
* 创建或修改临时排班
|
|
42
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_daily_shift/batch_create_temp
|
|
43
|
-
*/
|
|
44
|
-
batchCreateTempAttendanceUserDailyShift(body: BatchCreateTempAttendanceUserDailyShiftRequest, query?: BatchCreateTempAttendanceUserDailyShiftQuery): Promise<BatchCreateTempAttendanceUserDailyShiftResponse>;
|
|
45
|
-
/**
|
|
46
|
-
* 查询考勤组下所有成员
|
|
47
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/list_user
|
|
48
|
-
*/
|
|
49
|
-
listUserAttendanceGroup(group_id: string, query?: ListUserAttendanceGroupQuery): Paginated<UserBase, 'users'>;
|
|
50
|
-
/**
|
|
51
|
-
* 创建或修改考勤组
|
|
52
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/create
|
|
53
|
-
*/
|
|
54
|
-
createAttendanceGroup(body: CreateAttendanceGroupRequest, query?: CreateAttendanceGroupQuery): Promise<CreateAttendanceGroupResponse>;
|
|
55
|
-
/**
|
|
56
|
-
* 删除考勤组
|
|
57
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/delete
|
|
58
|
-
*/
|
|
59
|
-
deleteAttendanceGroup(group_id: string): Promise<void>;
|
|
60
|
-
/**
|
|
61
|
-
* 按 ID 查询考勤组
|
|
62
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/get
|
|
63
|
-
*/
|
|
64
|
-
getAttendanceGroup(group_id: string, query?: GetAttendanceGroupQuery): Promise<GetAttendanceGroupResponse>;
|
|
65
|
-
/**
|
|
66
|
-
* 按名称查询考勤组
|
|
67
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/search
|
|
68
|
-
*/
|
|
69
|
-
searchAttendanceGroup(body: SearchAttendanceGroupRequest): Promise<SearchAttendanceGroupResponse>;
|
|
70
|
-
/**
|
|
71
|
-
* 查询所有考勤组
|
|
72
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/list
|
|
73
|
-
*/
|
|
74
|
-
listAttendanceGroup(query?: Pagination): Paginated<GroupMeta, 'group_list'>;
|
|
75
|
-
/**
|
|
76
|
-
* 修改用户人脸识别信息
|
|
77
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_setting/modify
|
|
78
|
-
*/
|
|
79
|
-
modifyAttendanceUserSetting(body: ModifyAttendanceUserSettingRequest, query?: ModifyAttendanceUserSettingQuery): Promise<ModifyAttendanceUserSettingResponse>;
|
|
80
|
-
/**
|
|
81
|
-
* 批量查询用户人脸识别信息
|
|
82
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_setting/query
|
|
83
|
-
*/
|
|
84
|
-
queryAttendanceUserSetting(body: QueryAttendanceUserSettingRequest, query?: QueryAttendanceUserSettingQuery): Promise<QueryAttendanceUserSettingResponse>;
|
|
85
|
-
/**
|
|
86
|
-
* 上传用户人脸识别照片
|
|
87
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/file/upload
|
|
88
|
-
*/
|
|
89
|
-
uploadAttendanceFile(form: UploadAttendanceFileForm, query?: UploadAttendanceFileQuery): Promise<UploadAttendanceFileResponse>;
|
|
90
|
-
/**
|
|
91
|
-
* 下载用户人脸识别照片
|
|
92
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/file/download
|
|
93
|
-
*/
|
|
94
|
-
downloadAttendanceFile(file_id: string): Promise<ArrayBuffer>;
|
|
95
|
-
/**
|
|
96
|
-
* 更新统计设置
|
|
97
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_stats_view/update
|
|
98
|
-
*/
|
|
99
|
-
updateAttendanceUserStatsView(user_stats_view_id: string, body: UpdateAttendanceUserStatsViewRequest, query?: UpdateAttendanceUserStatsViewQuery): Promise<UpdateAttendanceUserStatsViewResponse>;
|
|
100
|
-
/**
|
|
101
|
-
* 查询统计表头
|
|
102
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_stats_field/query
|
|
103
|
-
*/
|
|
104
|
-
queryAttendanceUserStatsField(body: QueryAttendanceUserStatsFieldRequest, query?: QueryAttendanceUserStatsFieldQuery): Promise<QueryAttendanceUserStatsFieldResponse>;
|
|
105
|
-
/**
|
|
106
|
-
* 查询统计设置
|
|
107
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_stats_view/query
|
|
108
|
-
*/
|
|
109
|
-
queryAttendanceUserStatsView(body: QueryAttendanceUserStatsViewRequest, query?: QueryAttendanceUserStatsViewQuery): Promise<QueryAttendanceUserStatsViewResponse>;
|
|
110
|
-
/**
|
|
111
|
-
* 查询统计数据
|
|
112
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_stats_data/query
|
|
113
|
-
*/
|
|
114
|
-
queryAttendanceUserStatsData(body: QueryAttendanceUserStatsDataRequest, query?: QueryAttendanceUserStatsDataQuery): Promise<QueryAttendanceUserStatsDataResponse>;
|
|
115
|
-
/**
|
|
116
|
-
* 获取审批通过数据
|
|
117
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_approval/query
|
|
118
|
-
*/
|
|
119
|
-
queryAttendanceUserApproval(body: QueryAttendanceUserApprovalRequest, query?: QueryAttendanceUserApprovalQuery): Promise<QueryAttendanceUserApprovalResponse>;
|
|
120
|
-
/**
|
|
121
|
-
* 写入审批结果
|
|
122
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_approval/create
|
|
123
|
-
*/
|
|
124
|
-
createAttendanceUserApproval(body: CreateAttendanceUserApprovalRequest, query?: CreateAttendanceUserApprovalQuery): Promise<CreateAttendanceUserApprovalResponse>;
|
|
125
|
-
/**
|
|
126
|
-
* 通知审批状态更新
|
|
127
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/approval_info/process
|
|
128
|
-
*/
|
|
129
|
-
processAttendanceApprovalInfo(body: ProcessAttendanceApprovalInfoRequest): Promise<ProcessAttendanceApprovalInfoResponse>;
|
|
130
|
-
/**
|
|
131
|
-
* 通知补卡审批发起
|
|
132
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task_remedy/create
|
|
133
|
-
*/
|
|
134
|
-
createAttendanceUserTaskRemedy(body: CreateAttendanceUserTaskRemedyRequest, query?: CreateAttendanceUserTaskRemedyQuery): Promise<CreateAttendanceUserTaskRemedyResponse>;
|
|
135
|
-
/**
|
|
136
|
-
* 获取可补卡时间
|
|
137
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task_remedy/query_user_allowed_remedys
|
|
138
|
-
*/
|
|
139
|
-
queryUserAllowedRemedysAttendanceUserTaskRemedy(body: QueryUserAllowedRemedysAttendanceUserTaskRemedyRequest, query?: QueryUserAllowedRemedysAttendanceUserTaskRemedyQuery): Promise<QueryUserAllowedRemedysAttendanceUserTaskRemedyResponse>;
|
|
140
|
-
/**
|
|
141
|
-
* 获取补卡记录
|
|
142
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task_remedy/query
|
|
143
|
-
*/
|
|
144
|
-
queryAttendanceUserTaskRemedy(body: QueryAttendanceUserTaskRemedyRequest, query?: QueryAttendanceUserTaskRemedyQuery): Promise<QueryAttendanceUserTaskRemedyResponse>;
|
|
145
|
-
/**
|
|
146
|
-
* 查询归档报表表头
|
|
147
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/archive_rule/user_stats_fields_query
|
|
148
|
-
*/
|
|
149
|
-
userStatsFieldsQueryAttendanceArchiveRule(body: UserStatsFieldsQueryAttendanceArchiveRuleRequest, query?: UserStatsFieldsQueryAttendanceArchiveRuleQuery): Promise<UserStatsFieldsQueryAttendanceArchiveRuleResponse>;
|
|
150
|
-
/**
|
|
151
|
-
* 写入归档报表结果
|
|
152
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/archive_rule/upload_report
|
|
153
|
-
*/
|
|
154
|
-
uploadReportAttendanceArchiveRule(body: UploadReportAttendanceArchiveRuleRequest, query?: UploadReportAttendanceArchiveRuleQuery): Promise<UploadReportAttendanceArchiveRuleResponse>;
|
|
155
|
-
/**
|
|
156
|
-
* 删除归档报表行数据
|
|
157
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/archive_rule/del_report
|
|
158
|
-
*/
|
|
159
|
-
delReportAttendanceArchiveRule(body: DelReportAttendanceArchiveRuleRequest, query?: DelReportAttendanceArchiveRuleQuery): Promise<void>;
|
|
160
|
-
/**
|
|
161
|
-
* 查询所有归档规则
|
|
162
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/archive_rule/list
|
|
163
|
-
*/
|
|
164
|
-
listAttendanceArchiveRule(query?: Pagination): Paginated<ArchiveReportMeta>;
|
|
165
|
-
/**
|
|
166
|
-
* 导入打卡流水
|
|
167
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_flow/batch_create
|
|
168
|
-
*/
|
|
169
|
-
batchCreateAttendanceUserFlow(body: BatchCreateAttendanceUserFlowRequest, query?: BatchCreateAttendanceUserFlowQuery): Promise<BatchCreateAttendanceUserFlowResponse>;
|
|
170
|
-
/**
|
|
171
|
-
* 查询打卡流水
|
|
172
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_flow/get
|
|
173
|
-
*/
|
|
174
|
-
getAttendanceUserFlow(user_flow_id: string, query?: GetAttendanceUserFlowQuery): Promise<GetAttendanceUserFlowResponse>;
|
|
175
|
-
/**
|
|
176
|
-
* 批量查询打卡流水
|
|
177
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_flow/query
|
|
178
|
-
*/
|
|
179
|
-
queryAttendanceUserFlow(body: QueryAttendanceUserFlowRequest, query?: QueryAttendanceUserFlowQuery): Promise<QueryAttendanceUserFlowResponse>;
|
|
180
|
-
/**
|
|
181
|
-
* 查询打卡结果
|
|
182
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task/query
|
|
183
|
-
*/
|
|
184
|
-
queryAttendanceUserTask(body: QueryAttendanceUserTaskRequest, query?: QueryAttendanceUserTaskQuery): Promise<QueryAttendanceUserTaskResponse>;
|
|
185
|
-
/**
|
|
186
|
-
* 通过过期时间获取发放记录
|
|
187
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/leave_employ_expire_record/get
|
|
188
|
-
*/
|
|
189
|
-
getAttendanceLeaveEmployExpireRecord(leave_id: string, body: GetAttendanceLeaveEmployExpireRecordRequest, query?: GetAttendanceLeaveEmployExpireRecordQuery): Promise<GetAttendanceLeaveEmployExpireRecordResponse>;
|
|
190
|
-
/**
|
|
191
|
-
* 修改发放记录
|
|
192
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/leave_accrual_record/patch
|
|
193
|
-
*/
|
|
194
|
-
patchAttendanceLeaveAccrualRecord(leave_id: string, body: PatchAttendanceLeaveAccrualRecordRequest, query?: PatchAttendanceLeaveAccrualRecordQuery): Promise<PatchAttendanceLeaveAccrualRecordResponse>;
|
|
5
|
+
attendance: Attendance.Methods;
|
|
195
6
|
}
|
|
196
7
|
}
|
|
197
|
-
export
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
8
|
+
export declare namespace Attendance {
|
|
9
|
+
interface Methods {
|
|
10
|
+
shift: Shift.Methods;
|
|
11
|
+
userDailyShift: UserDailyShift.Methods;
|
|
12
|
+
group: Group.Methods;
|
|
13
|
+
userSetting: UserSetting.Methods;
|
|
14
|
+
file: File.Methods;
|
|
15
|
+
userStatsView: UserStatsView.Methods;
|
|
16
|
+
userStatsField: UserStatsField.Methods;
|
|
17
|
+
userStatsData: UserStatsData.Methods;
|
|
18
|
+
userApproval: UserApproval.Methods;
|
|
19
|
+
approvalInfo: ApprovalInfo.Methods;
|
|
20
|
+
userTaskRemedy: UserTaskRemedy.Methods;
|
|
21
|
+
archiveRule: ArchiveRule.Methods;
|
|
22
|
+
userFlow: UserFlow.Methods;
|
|
23
|
+
userTask: UserTask.Methods;
|
|
24
|
+
leaveEmployExpireRecord: LeaveEmployExpireRecord.Methods;
|
|
25
|
+
leaveAccrualRecord: LeaveAccrualRecord.Methods;
|
|
26
|
+
}
|
|
27
|
+
namespace Shift {
|
|
28
|
+
interface Methods {
|
|
29
|
+
/**
|
|
30
|
+
* 创建班次
|
|
31
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/create
|
|
32
|
+
*/
|
|
33
|
+
create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* 删除班次
|
|
36
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/delete
|
|
37
|
+
*/
|
|
38
|
+
delete(shift_id: string): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* 按 ID 查询班次
|
|
41
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/get
|
|
42
|
+
*/
|
|
43
|
+
get(shift_id: string): Promise<GetResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* 按名称查询班次
|
|
46
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/query
|
|
47
|
+
*/
|
|
48
|
+
query(query?: QueryQuery): Promise<QueryResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* 查询所有班次
|
|
51
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/shift/list
|
|
52
|
+
*/
|
|
53
|
+
list(query?: Pagination): Paginated<Lark.Shift, 'shift_list'>;
|
|
54
|
+
}
|
|
55
|
+
interface CreateRequest {
|
|
56
|
+
/** 班次名称 */
|
|
57
|
+
shift_name: string;
|
|
58
|
+
/** 打卡次数 */
|
|
59
|
+
punch_times: number;
|
|
60
|
+
/** 排班组子负责人id列表 */
|
|
61
|
+
sub_shift_leader_ids?: string[];
|
|
62
|
+
/** 是否弹性打卡 */
|
|
63
|
+
is_flexible?: boolean;
|
|
64
|
+
/** 弹性打卡时间,设置【上班最多可晚到】与【下班最多可早走】时间,如果不设置flexible_rule则生效 */
|
|
65
|
+
flexible_minutes?: number;
|
|
66
|
+
/** 弹性打卡时间设置 */
|
|
67
|
+
flexible_rule?: Lark.FlexibleRule[];
|
|
68
|
+
/** 不需要打下班卡 */
|
|
69
|
+
no_need_off?: boolean;
|
|
70
|
+
/** 打卡规则 */
|
|
71
|
+
punch_time_rule: Lark.PunchTimeRule[];
|
|
72
|
+
/** 晚走晚到规则 */
|
|
73
|
+
late_off_late_on_rule?: Lark.LateOffLateOnRule[];
|
|
74
|
+
/** 休息规则 */
|
|
75
|
+
rest_time_rule?: Lark.RestRule[];
|
|
76
|
+
/** 打卡规则 */
|
|
77
|
+
overtime_rule?: Lark.OvertimeRule[];
|
|
78
|
+
/** 日期类型,【是否弹性打卡 = ture】时,不可设置为“休息日” 可选值:1:工作日 2:休息日 示例值:(默认值)1 */
|
|
79
|
+
day_type?: number;
|
|
80
|
+
/** 班外休息规则 */
|
|
81
|
+
overtime_rest_time_rule?: Lark.RestRule[];
|
|
82
|
+
/** 晚到多久记为严重迟到(优先级比原有字段高) */
|
|
83
|
+
late_minutes_as_serious_late?: number;
|
|
84
|
+
/** 半天分割规则 */
|
|
85
|
+
shift_middle_time_rule?: Lark.ShiftMiddleTimeRule;
|
|
86
|
+
/** 应出勤配置 */
|
|
87
|
+
shift_attendance_time_config?: Lark.ShiftAttendanceTimeConfig;
|
|
88
|
+
/** 晚走次日晚到配置规则 */
|
|
89
|
+
late_off_late_on_setting?: Lark.LateOffLateOnSetting;
|
|
90
|
+
/** 班次id(更新班次时需要传递) */
|
|
91
|
+
id?: string;
|
|
92
|
+
/** 休息弹性设置 */
|
|
93
|
+
rest_time_flexible_configs?: Lark.RestTimeFlexibleConfig[];
|
|
94
|
+
}
|
|
95
|
+
interface CreateQuery {
|
|
96
|
+
/** 用户 ID 的类型 不提供则用户相关字段无效 */
|
|
97
|
+
employee_type?: 'employee_id' | 'employee_no';
|
|
98
|
+
}
|
|
99
|
+
interface CreateResponse {
|
|
100
|
+
/** 班次 */
|
|
101
|
+
shift?: Lark.Shift;
|
|
102
|
+
}
|
|
103
|
+
interface GetResponse {
|
|
104
|
+
/** 班次Id */
|
|
105
|
+
shift_id: string;
|
|
106
|
+
/** 班次名称 */
|
|
107
|
+
shift_name: string;
|
|
108
|
+
/** 打卡次数 */
|
|
109
|
+
punch_times: number;
|
|
110
|
+
/** 排班组子负责人id列表 */
|
|
111
|
+
sub_shift_leader_ids?: string[];
|
|
112
|
+
/** 是否弹性打卡 */
|
|
113
|
+
is_flexible?: boolean;
|
|
114
|
+
/** 弹性打卡时间,设置【上班最多可晚到】与【下班最多可早走】时间,如果不设置flexible_rule则生效 */
|
|
115
|
+
flexible_minutes?: number;
|
|
116
|
+
/** 弹性打卡时间设置 */
|
|
117
|
+
flexible_rule?: Lark.FlexibleRule[];
|
|
118
|
+
/** 不需要打下班卡 */
|
|
119
|
+
no_need_off?: boolean;
|
|
120
|
+
/** 打卡规则 */
|
|
121
|
+
punch_time_rule: Lark.PunchTimeRule[];
|
|
122
|
+
/** 晚走晚到规则 */
|
|
123
|
+
late_off_late_on_rule?: Lark.LateOffLateOnRule[];
|
|
124
|
+
/** 休息规则 */
|
|
125
|
+
rest_time_rule?: Lark.RestRule[];
|
|
126
|
+
/** 打卡规则 */
|
|
127
|
+
overtime_rule?: Lark.OvertimeRule[];
|
|
128
|
+
/** 日期类型,【是否弹性打卡 = ture】时,不可设置为“休息日” 可选值:1:工作日 2:休息日 示例值:(默认值)1 */
|
|
129
|
+
day_type?: number;
|
|
130
|
+
/** 班外休息规则 */
|
|
131
|
+
overtime_rest_time_rule?: Lark.RestRule[];
|
|
132
|
+
/** 晚到多久记为严重迟到(优先级比原有字段高) */
|
|
133
|
+
late_minutes_as_serious_late?: number;
|
|
134
|
+
/** 半天分割规则 */
|
|
135
|
+
shift_middle_time_rule?: Lark.ShiftMiddleTimeRule;
|
|
136
|
+
/** 应出勤配置 */
|
|
137
|
+
shift_attendance_time_config?: Lark.ShiftAttendanceTimeConfig;
|
|
138
|
+
/** 晚走次日晚到配置规则 */
|
|
139
|
+
late_off_late_on_setting?: Lark.LateOffLateOnSetting;
|
|
140
|
+
/** 班次id(更新班次时需要传递) */
|
|
141
|
+
id?: string;
|
|
142
|
+
/** 休息弹性设置 */
|
|
143
|
+
rest_time_flexible_configs?: Lark.RestTimeFlexibleConfig[];
|
|
144
|
+
}
|
|
145
|
+
interface QueryQuery {
|
|
146
|
+
/** 班次名称 */
|
|
147
|
+
shift_name: string;
|
|
148
|
+
}
|
|
149
|
+
interface QueryResponse {
|
|
150
|
+
/** 班次Id */
|
|
151
|
+
shift_id: string;
|
|
152
|
+
/** 班次名称 */
|
|
153
|
+
shift_name: string;
|
|
154
|
+
/** 打卡次数 */
|
|
155
|
+
punch_times: number;
|
|
156
|
+
/** 排班组子负责人id列表 */
|
|
157
|
+
sub_shift_leader_ids?: string[];
|
|
158
|
+
/** 是否弹性打卡 */
|
|
159
|
+
is_flexible?: boolean;
|
|
160
|
+
/** 弹性打卡时间,设置【上班最多可晚到】与【下班最多可早走】时间,如果不设置flexible_rule则生效 */
|
|
161
|
+
flexible_minutes?: number;
|
|
162
|
+
/** 弹性打卡时间设置 */
|
|
163
|
+
flexible_rule?: Lark.FlexibleRule[];
|
|
164
|
+
/** 不需要打下班卡 */
|
|
165
|
+
no_need_off?: boolean;
|
|
166
|
+
/** 打卡规则 */
|
|
167
|
+
punch_time_rule: Lark.PunchTimeRule[];
|
|
168
|
+
/** 晚走晚到规则 */
|
|
169
|
+
late_off_late_on_rule?: Lark.LateOffLateOnRule[];
|
|
170
|
+
/** 休息规则 */
|
|
171
|
+
rest_time_rule?: Lark.RestRule[];
|
|
172
|
+
/** 打卡规则 */
|
|
173
|
+
overtime_rule?: Lark.OvertimeRule[];
|
|
174
|
+
/** 日期类型,【是否弹性打卡 = ture】时,不可设置为“休息日” 可选值:1:工作日 2:休息日 示例值:(默认值)1 */
|
|
175
|
+
day_type?: number;
|
|
176
|
+
/** 班外休息规则 */
|
|
177
|
+
overtime_rest_time_rule?: Lark.RestRule[];
|
|
178
|
+
/** 晚到多久记为严重迟到(优先级比原有字段高) */
|
|
179
|
+
late_minutes_as_serious_late?: number;
|
|
180
|
+
/** 半天分割规则 */
|
|
181
|
+
shift_middle_time_rule?: Lark.ShiftMiddleTimeRule;
|
|
182
|
+
/** 应出勤配置 */
|
|
183
|
+
shift_attendance_time_config?: Lark.ShiftAttendanceTimeConfig;
|
|
184
|
+
/** 晚走次日晚到配置规则 */
|
|
185
|
+
late_off_late_on_setting?: Lark.LateOffLateOnSetting;
|
|
186
|
+
/** 班次id(更新班次时需要传递) */
|
|
187
|
+
id?: string;
|
|
188
|
+
/** 休息弹性设置 */
|
|
189
|
+
rest_time_flexible_configs?: Lark.RestTimeFlexibleConfig[];
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
namespace UserDailyShift {
|
|
193
|
+
interface Methods {
|
|
194
|
+
/**
|
|
195
|
+
* 创建或修改排班表
|
|
196
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_daily_shift/batch_create
|
|
197
|
+
*/
|
|
198
|
+
batchCreate(body: BatchCreateRequest, query?: BatchCreateQuery): Promise<BatchCreateResponse>;
|
|
199
|
+
/**
|
|
200
|
+
* 查询排班表
|
|
201
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_daily_shift/query
|
|
202
|
+
*/
|
|
203
|
+
query(body: QueryRequest, query?: QueryQuery): Promise<QueryResponse>;
|
|
204
|
+
/**
|
|
205
|
+
* 创建或修改临时排班
|
|
206
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_daily_shift/batch_create_temp
|
|
207
|
+
*/
|
|
208
|
+
batchCreateTemp(body: BatchCreateTempRequest, query?: BatchCreateTempQuery): Promise<BatchCreateTempResponse>;
|
|
209
|
+
}
|
|
210
|
+
interface BatchCreateRequest {
|
|
211
|
+
/** 班表信息列表 */
|
|
212
|
+
user_daily_shifts: Lark.UserDailyShift[];
|
|
213
|
+
/** 操作人uid,如果您未操作[考勤管理后台“API 接入”流程](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/attendance-development-guidelines),则此字段为必填字段 */
|
|
214
|
+
operator_id?: string;
|
|
215
|
+
}
|
|
216
|
+
interface BatchCreateQuery {
|
|
217
|
+
/** 请求体和响应体中的 user_id 的员工工号类型 */
|
|
218
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
219
|
+
}
|
|
220
|
+
interface BatchCreateResponse {
|
|
221
|
+
/** 班表信息列表 */
|
|
222
|
+
user_daily_shifts?: Lark.UserDailyShift[];
|
|
223
|
+
}
|
|
224
|
+
interface QueryRequest {
|
|
225
|
+
/** employee_no 或 employee_id 列表 */
|
|
226
|
+
user_ids: string[];
|
|
227
|
+
/** 查询的起始工作日 */
|
|
228
|
+
check_date_from: number;
|
|
229
|
+
/** 查询的结束工作日 */
|
|
230
|
+
check_date_to: number;
|
|
231
|
+
}
|
|
232
|
+
interface QueryQuery {
|
|
233
|
+
/** 请求体中的 user_ids 和响应体中的 user_id 的员工工号类型 */
|
|
234
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
235
|
+
}
|
|
236
|
+
interface QueryResponse {
|
|
237
|
+
/** 班表信息列表 */
|
|
238
|
+
user_daily_shifts?: Lark.UserDailyShift[];
|
|
239
|
+
}
|
|
240
|
+
interface BatchCreateTempRequest {
|
|
241
|
+
/** 临时班表信息列表(数量限制50以内) */
|
|
242
|
+
user_tmp_daily_shifts: Lark.UserTmpDailyShift[];
|
|
243
|
+
/** 操作人uid */
|
|
244
|
+
operator_id?: string;
|
|
245
|
+
}
|
|
246
|
+
interface BatchCreateTempQuery {
|
|
247
|
+
/** 请求体和响应体中的 user_id 的员工工号类型 */
|
|
248
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
249
|
+
}
|
|
250
|
+
interface BatchCreateTempResponse {
|
|
251
|
+
/** 临时班表信息列表 */
|
|
252
|
+
user_tmp_daily_shifts?: Lark.UserTmpDailyShift[];
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
namespace Group {
|
|
256
|
+
interface Methods {
|
|
257
|
+
/**
|
|
258
|
+
* 查询考勤组下所有成员
|
|
259
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/list_user
|
|
260
|
+
*/
|
|
261
|
+
listUser(group_id: string, query?: ListUserQuery): Paginated<Lark.UserBase, 'users'>;
|
|
262
|
+
/**
|
|
263
|
+
* 创建或修改考勤组
|
|
264
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/create
|
|
265
|
+
*/
|
|
266
|
+
create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>;
|
|
267
|
+
/**
|
|
268
|
+
* 删除考勤组
|
|
269
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/delete
|
|
270
|
+
*/
|
|
271
|
+
delete(group_id: string): Promise<void>;
|
|
272
|
+
/**
|
|
273
|
+
* 按 ID 查询考勤组
|
|
274
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/get
|
|
275
|
+
*/
|
|
276
|
+
get(group_id: string, query?: GetQuery): Promise<GetResponse>;
|
|
277
|
+
/**
|
|
278
|
+
* 按名称查询考勤组
|
|
279
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/search
|
|
280
|
+
*/
|
|
281
|
+
search(body: SearchRequest): Promise<SearchResponse>;
|
|
282
|
+
/**
|
|
283
|
+
* 查询所有考勤组
|
|
284
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/group/list
|
|
285
|
+
*/
|
|
286
|
+
list(query?: Pagination): Paginated<Lark.GroupMeta, 'group_list'>;
|
|
287
|
+
}
|
|
288
|
+
interface ListUserQuery extends Pagination {
|
|
289
|
+
/** 用户 ID 的类型 */
|
|
290
|
+
employee_type: string;
|
|
291
|
+
/** 部门 ID 的类型 */
|
|
292
|
+
dept_type: string;
|
|
293
|
+
/** 打卡类型 */
|
|
294
|
+
member_clock_type: number;
|
|
295
|
+
}
|
|
296
|
+
interface CreateRequest {
|
|
297
|
+
/** 6921319402260496386 */
|
|
298
|
+
group: Lark.Group;
|
|
299
|
+
/** 操作人uid,如果您未操作[考勤管理后台“API 接入”流程](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/attendance-development-guidelines),则此字段为必填字段 */
|
|
300
|
+
operator_id?: string;
|
|
301
|
+
}
|
|
302
|
+
interface CreateQuery {
|
|
303
|
+
/** 用户 ID 的类型 */
|
|
304
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
305
|
+
/** 部门 ID 的类型 */
|
|
306
|
+
dept_type: 'open_id';
|
|
307
|
+
}
|
|
308
|
+
interface CreateResponse {
|
|
309
|
+
group?: Lark.Group;
|
|
310
|
+
}
|
|
311
|
+
interface GetQuery {
|
|
312
|
+
/** 用户 ID 的类型 */
|
|
313
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
314
|
+
/** 部门 ID 的类型 */
|
|
315
|
+
dept_type: 'open_id';
|
|
316
|
+
}
|
|
317
|
+
interface GetResponse {
|
|
318
|
+
/** 考勤组的Id, 需要从获取用户打卡结果信息的接口中获取groupId,修改考勤组时必填 */
|
|
319
|
+
group_id?: string;
|
|
320
|
+
/** 考勤组名称 */
|
|
321
|
+
group_name: string;
|
|
322
|
+
/** 考勤组时区 */
|
|
323
|
+
time_zone: string;
|
|
324
|
+
/** 参加考勤的部门id列表 */
|
|
325
|
+
bind_dept_ids?: string[];
|
|
326
|
+
/** 无需考勤的部门id列表 */
|
|
327
|
+
except_dept_ids?: string[];
|
|
328
|
+
/** 参加考勤的人员id列表 */
|
|
329
|
+
bind_user_ids?: string[];
|
|
330
|
+
/** 参加考勤的人员id列表 */
|
|
331
|
+
except_user_ids?: string[];
|
|
332
|
+
/** 考勤组主负责人id列表 */
|
|
333
|
+
group_leader_ids: string[];
|
|
334
|
+
/** 考勤组子负责人id列表 */
|
|
335
|
+
sub_group_leader_ids?: string[];
|
|
336
|
+
/** 是否允许外勤打卡 */
|
|
337
|
+
allow_out_punch?: boolean;
|
|
338
|
+
/** 外勤打卡需审批,先审批后打卡(需要允许外勤打卡才能设置生效) */
|
|
339
|
+
out_punch_need_approval?: boolean;
|
|
340
|
+
/** 外勤打卡需审批,先打卡后审批(需要允许外勤打卡才能设置生效) */
|
|
341
|
+
out_punch_need_post_approval?: boolean;
|
|
342
|
+
/** 外勤打卡需填写备注(需要允许外勤打卡才能设置生效) */
|
|
343
|
+
out_punch_need_remark?: boolean;
|
|
344
|
+
/** 外勤打卡需拍照(需要允许外勤打卡才能设置生效) */
|
|
345
|
+
out_punch_need_photo?: boolean;
|
|
346
|
+
/** 外勤打卡允许员工隐藏详细地址(需要允许外勤打卡才能设置生效) */
|
|
347
|
+
out_punch_allowed_hide_addr?: boolean;
|
|
348
|
+
/** 外勤打卡允许微调地址(需要允许外勤打卡才能设置生效) */
|
|
349
|
+
out_punch_allowed_adjust_addr?: boolean;
|
|
350
|
+
/** 微调范围,默认为 50 米 */
|
|
351
|
+
adjust_range?: number;
|
|
352
|
+
/** 是否允许pc打卡 */
|
|
353
|
+
allow_pc_punch?: boolean;
|
|
354
|
+
/** 是否允许补卡 */
|
|
355
|
+
allow_remedy?: boolean;
|
|
356
|
+
/** 补卡次数是否限制(需要允许补卡才能设置生效) */
|
|
357
|
+
remedy_limit?: boolean;
|
|
358
|
+
/** 补卡次数(需要允许补卡才能设置生效) */
|
|
359
|
+
remedy_limit_count?: number;
|
|
360
|
+
/** 补卡时间是否限制(需要允许补卡才能设置生效) */
|
|
361
|
+
remedy_date_limit?: boolean;
|
|
362
|
+
/** 补卡时间,几天内可以发起补卡(需要允许补卡才能设置生效) */
|
|
363
|
+
remedy_date_num?: number;
|
|
364
|
+
/** 允许缺卡补卡(需要允许补卡才能设置生效) */
|
|
365
|
+
allow_remedy_type_lack?: boolean;
|
|
366
|
+
/** 允许迟到补卡(需要允许补卡才能设置生效) */
|
|
367
|
+
allow_remedy_type_late?: boolean;
|
|
368
|
+
/** 允许早退补卡(需要允许补卡才能设置生效) */
|
|
369
|
+
allow_remedy_type_early?: boolean;
|
|
370
|
+
/** 允许正常补卡(需要允许补卡才能设置生效) */
|
|
371
|
+
allow_remedy_type_normal?: boolean;
|
|
372
|
+
/** 是否展示累计时长 */
|
|
373
|
+
show_cumulative_time?: boolean;
|
|
374
|
+
/** 是否展示加班时长 */
|
|
375
|
+
show_over_time?: boolean;
|
|
376
|
+
/** 是否隐藏员工打卡详情 */
|
|
377
|
+
hide_staff_punch_time?: boolean;
|
|
378
|
+
/** 是否开启人脸打卡 */
|
|
379
|
+
face_punch?: boolean;
|
|
380
|
+
/** 人脸打卡规则, 1:每次打卡均需人脸识别 2:疑似需要 */
|
|
381
|
+
face_punch_cfg?: number;
|
|
382
|
+
/** 人脸打卡规则, false:开启活体验证 true:0动作验证,仅在 face_punch_cfg = 1 时有效 */
|
|
383
|
+
face_live_need_action?: boolean;
|
|
384
|
+
/** 脸识别失败时允许普通拍照打卡 */
|
|
385
|
+
face_downgrade?: boolean;
|
|
386
|
+
/** 是否允许替换基准图片 */
|
|
387
|
+
replace_basic_pic?: boolean;
|
|
388
|
+
/** 考勤机信息 */
|
|
389
|
+
machines?: Lark.Machine[];
|
|
390
|
+
/** GPS打卡的地址范围 */
|
|
391
|
+
gps_range?: number;
|
|
392
|
+
/** GPS打卡的地址信息 */
|
|
393
|
+
locations?: Lark.Location[];
|
|
394
|
+
/** 考勤类型 0:固定考勤 2:排班考勤, 3:自由班次 */
|
|
395
|
+
group_type: number;
|
|
396
|
+
/** 固定班次必需填 */
|
|
397
|
+
punch_day_shift_ids: string[];
|
|
398
|
+
free_punch_cfg?: Lark.FreePunchCfg;
|
|
399
|
+
/** 国家日历 id,(0:不根据国家日历休息, 1:中国,2:美国,3:日本,4:印度,5:新加坡),默认 1 */
|
|
400
|
+
calendar_id: number;
|
|
401
|
+
/** 强制需要打卡的日期 */
|
|
402
|
+
need_punch_special_days?: Lark.PunchSpecialDateShift[];
|
|
403
|
+
/** 强制不需要打卡的日期 */
|
|
404
|
+
no_need_punch_special_days?: Lark.PunchSpecialDateShift[];
|
|
405
|
+
/** 自由班次下工作日不打卡是否记为缺卡 */
|
|
406
|
+
work_day_no_punch_as_lack?: boolean;
|
|
407
|
+
/** 补卡周期类型 */
|
|
408
|
+
remedy_period_type?: number;
|
|
409
|
+
/** 补卡自定义周期起始日期 */
|
|
410
|
+
remedy_period_custom_date?: number;
|
|
411
|
+
/** 打卡类型,位运算。1:GPS打卡;2:wifi打卡;4:考勤机打卡;8:IP打卡 */
|
|
412
|
+
punch_type?: number;
|
|
413
|
+
/** 生效时间,精确到秒的时间戳 */
|
|
414
|
+
effect_time?: string;
|
|
415
|
+
/** 固定班次生效时间,精确到秒的时间戳 */
|
|
416
|
+
fixshift_effect_time?: string;
|
|
417
|
+
/** 参加考勤的人员、部门变动生效时间,精确到秒的时间戳 */
|
|
418
|
+
member_effect_time?: string;
|
|
419
|
+
/** 休息日打卡需审批 */
|
|
420
|
+
rest_clockIn_need_approval?: boolean;
|
|
421
|
+
/** 每次打卡均需拍照 */
|
|
422
|
+
clockIn_need_photo?: boolean;
|
|
423
|
+
/** 人员异动打卡设置 */
|
|
424
|
+
member_status_change?: Lark.MemberStatusChange;
|
|
425
|
+
/** 请假离岗或返岗是否需打卡 */
|
|
426
|
+
leave_need_punch?: boolean;
|
|
427
|
+
/** 请假离岗或返岗打卡规则 */
|
|
428
|
+
leave_need_punch_cfg?: Lark.LeaveNeedPunchCfg;
|
|
429
|
+
/** 外出期间是否需打卡 */
|
|
430
|
+
go_out_need_punch?: number;
|
|
431
|
+
/** 外出期间打卡规则 */
|
|
432
|
+
go_out_need_punch_cfg?: Lark.LeaveNeedPunchCfg;
|
|
433
|
+
/** 出差期间是否需打卡 */
|
|
434
|
+
travel_need_punch?: number;
|
|
435
|
+
/** 出差期间打卡规则 */
|
|
436
|
+
travel_need_punch_cfg?: Lark.LeaveNeedPunchCfg;
|
|
437
|
+
/** 需要打卡的人员配置(新) */
|
|
438
|
+
need_punch_members?: Lark.PunchMember[];
|
|
439
|
+
/** 无需打卡的人员配置(新) */
|
|
440
|
+
no_need_punch_members?: Lark.PunchMember[];
|
|
441
|
+
/** 是否直接保存可以自动变更的冲突规则 */
|
|
442
|
+
save_auto_changes?: boolean;
|
|
443
|
+
/** 人员异动开关(人员组织架构变更后是否允许自动调整到该考勤组) */
|
|
444
|
+
org_change_auto_adjust?: boolean;
|
|
445
|
+
/** 默认出勤的部门id列表 */
|
|
446
|
+
bind_default_dept_ids?: string[];
|
|
447
|
+
/** 默认出勤的用户ID列表 */
|
|
448
|
+
bind_default_user_ids?: string[];
|
|
449
|
+
/** 加班打卡规则 */
|
|
450
|
+
overtime_clock_cfg?: Lark.OvertimeClockCfg;
|
|
451
|
+
/** 节假日id,(如果考勤组使用了自定义节假日,请用此参数传入节假日id) */
|
|
452
|
+
new_calendar_id?: string;
|
|
453
|
+
/** 定位不准时是否允许申请打卡 */
|
|
454
|
+
allow_apply_punch?: boolean;
|
|
455
|
+
}
|
|
456
|
+
interface SearchRequest {
|
|
457
|
+
/** 考勤组名称 */
|
|
458
|
+
group_name: string;
|
|
459
|
+
}
|
|
460
|
+
interface SearchResponse {
|
|
461
|
+
/** 考勤组列表 */
|
|
462
|
+
group_list?: Lark.GroupMeta[];
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
namespace UserSetting {
|
|
466
|
+
interface Methods {
|
|
467
|
+
/**
|
|
468
|
+
* 修改用户人脸识别信息
|
|
469
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_setting/modify
|
|
470
|
+
*/
|
|
471
|
+
modify(body: ModifyRequest, query?: ModifyQuery): Promise<ModifyResponse>;
|
|
472
|
+
/**
|
|
473
|
+
* 批量查询用户人脸识别信息
|
|
474
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_setting/query
|
|
475
|
+
*/
|
|
476
|
+
query(body: QueryRequest, query?: QueryQuery): Promise<QueryResponse>;
|
|
477
|
+
}
|
|
478
|
+
interface ModifyRequest {
|
|
479
|
+
/** 用户设置 */
|
|
480
|
+
user_setting?: Lark.UserSetting;
|
|
481
|
+
}
|
|
482
|
+
interface ModifyQuery {
|
|
483
|
+
/** 请求体和响应体中的 user_id 的员工工号类型 */
|
|
484
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
485
|
+
}
|
|
486
|
+
interface ModifyResponse {
|
|
487
|
+
/** 用户设置 */
|
|
488
|
+
user_setting?: Lark.UserSetting;
|
|
489
|
+
}
|
|
490
|
+
interface QueryRequest {
|
|
491
|
+
/** employee_no 或 employee_id 列表 */
|
|
492
|
+
user_ids: string[];
|
|
493
|
+
}
|
|
494
|
+
interface QueryQuery {
|
|
495
|
+
/** 请求体中的 user_ids 和响应体中的 user_id 的员工工号类型 */
|
|
496
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
497
|
+
}
|
|
498
|
+
interface QueryResponse {
|
|
499
|
+
/** 用户设置信息列表 */
|
|
500
|
+
user_settings?: Lark.UserSetting[];
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
namespace File {
|
|
504
|
+
interface Methods {
|
|
505
|
+
/**
|
|
506
|
+
* 上传用户人脸识别照片
|
|
507
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/file/upload
|
|
508
|
+
*/
|
|
509
|
+
upload(form: UploadForm, query?: UploadQuery): Promise<UploadResponse>;
|
|
510
|
+
/**
|
|
511
|
+
* 下载用户人脸识别照片
|
|
512
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/file/download
|
|
513
|
+
*/
|
|
514
|
+
download(file_id: string): Promise<ArrayBuffer>;
|
|
515
|
+
}
|
|
516
|
+
interface UploadForm {
|
|
517
|
+
/** 文件内容 */
|
|
518
|
+
file?: Blob;
|
|
519
|
+
}
|
|
520
|
+
interface UploadQuery {
|
|
521
|
+
/** 带后缀的文件名 */
|
|
522
|
+
file_name: string;
|
|
523
|
+
}
|
|
524
|
+
interface UploadResponse {
|
|
525
|
+
file?: Lark.File;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
namespace UserStatsView {
|
|
529
|
+
interface Methods {
|
|
530
|
+
/**
|
|
531
|
+
* 更新统计设置
|
|
532
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_stats_view/update
|
|
533
|
+
*/
|
|
534
|
+
update(user_stats_view_id: string, body: UpdateRequest, query?: UpdateQuery): Promise<UpdateResponse>;
|
|
535
|
+
/**
|
|
536
|
+
* 查询统计设置
|
|
537
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_stats_view/query
|
|
538
|
+
*/
|
|
539
|
+
query(body: QueryRequest, query?: QueryQuery): Promise<QueryResponse>;
|
|
540
|
+
}
|
|
541
|
+
interface UpdateRequest {
|
|
542
|
+
/** 统计设置 */
|
|
543
|
+
view: Lark.UserStatsView;
|
|
544
|
+
}
|
|
545
|
+
interface UpdateQuery {
|
|
546
|
+
/** 员工工号类型 */
|
|
547
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
548
|
+
}
|
|
549
|
+
interface UpdateResponse {
|
|
550
|
+
/** 视图 */
|
|
551
|
+
view?: Lark.UserStatsView;
|
|
552
|
+
}
|
|
553
|
+
interface QueryRequest {
|
|
554
|
+
/** 语言类型 */
|
|
555
|
+
locale: 'en' | 'ja' | 'zh';
|
|
556
|
+
/** 统计类型 */
|
|
557
|
+
stats_type: 'daily' | 'month';
|
|
558
|
+
/** 查询用户id,同【查询统计数据】、【更新统计设置】user_id */
|
|
559
|
+
user_id?: string;
|
|
560
|
+
}
|
|
561
|
+
interface QueryQuery {
|
|
562
|
+
/** 响应体中的 user_id 的员工工号类型 */
|
|
563
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
564
|
+
}
|
|
565
|
+
interface QueryResponse {
|
|
566
|
+
view?: Lark.UserStatsView;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
namespace UserStatsField {
|
|
570
|
+
interface Methods {
|
|
571
|
+
/**
|
|
572
|
+
* 查询统计表头
|
|
573
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_stats_field/query
|
|
574
|
+
*/
|
|
575
|
+
query(body: QueryRequest, query?: QueryQuery): Promise<QueryResponse>;
|
|
576
|
+
}
|
|
577
|
+
interface QueryRequest {
|
|
578
|
+
/** 语言类型 */
|
|
579
|
+
locale: 'en' | 'ja' | 'zh';
|
|
580
|
+
/** 统计类型 */
|
|
581
|
+
stats_type: 'daily' | 'month';
|
|
582
|
+
/** 开始时间 */
|
|
583
|
+
start_date: number;
|
|
584
|
+
/** 结束时间(时间间隔不超过 40 天) */
|
|
585
|
+
end_date: number;
|
|
586
|
+
}
|
|
587
|
+
interface QueryQuery {
|
|
588
|
+
/** 响应体中的 user_id 的员工工号类型 */
|
|
589
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
590
|
+
}
|
|
591
|
+
interface QueryResponse {
|
|
592
|
+
user_stats_field?: Lark.UserStatsField;
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
namespace UserStatsData {
|
|
596
|
+
interface Methods {
|
|
597
|
+
/**
|
|
598
|
+
* 查询统计数据
|
|
599
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_stats_data/query
|
|
600
|
+
*/
|
|
601
|
+
query(body: QueryRequest, query?: QueryQuery): Promise<QueryResponse>;
|
|
602
|
+
}
|
|
603
|
+
interface QueryRequest {
|
|
604
|
+
/** 语言类型 */
|
|
605
|
+
locale: 'en' | 'ja' | 'zh';
|
|
606
|
+
/** 统计类型 */
|
|
607
|
+
stats_type: 'daily' | 'month';
|
|
608
|
+
/** 开始时间 */
|
|
609
|
+
start_date: number;
|
|
610
|
+
/** 结束时间(时间间隔不超过 40 天) */
|
|
611
|
+
end_date: number;
|
|
612
|
+
/** 查询的用户 ID 列表(用户数量不超过 200) */
|
|
613
|
+
user_ids?: string[];
|
|
614
|
+
/** 是否需要历史数据 */
|
|
615
|
+
need_history?: boolean;
|
|
616
|
+
/** 只展示当前考勤组 */
|
|
617
|
+
current_group_only?: boolean;
|
|
618
|
+
/** 查询用户id,同【更新统计设置】、【查询统计设置】user_id */
|
|
619
|
+
user_id?: string;
|
|
620
|
+
}
|
|
621
|
+
interface QueryQuery {
|
|
622
|
+
/** 请求体中的 user_ids 和响应体中的 user_id 的员工工号类型 */
|
|
623
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
624
|
+
}
|
|
625
|
+
interface QueryResponse {
|
|
626
|
+
/** 用户统计数据 */
|
|
627
|
+
user_datas?: Lark.UserStatsData[];
|
|
628
|
+
/** 无权限获取的用户列表 */
|
|
629
|
+
invalid_user_list?: string[];
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
namespace UserApproval {
|
|
633
|
+
interface Methods {
|
|
634
|
+
/**
|
|
635
|
+
* 获取审批数据
|
|
636
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_approval/query
|
|
637
|
+
*/
|
|
638
|
+
query(body: QueryRequest, query?: QueryQuery): Promise<QueryResponse>;
|
|
639
|
+
/**
|
|
640
|
+
* 写入审批结果
|
|
641
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_approval/create
|
|
642
|
+
*/
|
|
643
|
+
create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>;
|
|
644
|
+
}
|
|
645
|
+
const enum QueryRequestStatus {
|
|
646
|
+
/** 待审批 */
|
|
647
|
+
Todo = 0,
|
|
648
|
+
/** 审批未通过 */
|
|
649
|
+
Rejected = 1,
|
|
650
|
+
/** 审批通过 */
|
|
651
|
+
Approved = 2,
|
|
652
|
+
/** 审批已取消 */
|
|
653
|
+
Canceled = 3,
|
|
654
|
+
/** 已撤回 */
|
|
655
|
+
Reverted = 4
|
|
656
|
+
}
|
|
657
|
+
interface QueryRequest {
|
|
658
|
+
/** employee_no 或 employee_id 列表 */
|
|
659
|
+
user_ids: string[];
|
|
660
|
+
/** 查询的起始工作日 */
|
|
661
|
+
check_date_from: number;
|
|
662
|
+
/** 查询的结束工作日,与 check_date_from 的时间间隔不超过 30 天 */
|
|
663
|
+
check_date_to: number;
|
|
664
|
+
/** 查询依据的时间类型(不填默认依据PeriodTime) */
|
|
665
|
+
check_date_type?: 'PeriodTime' | 'CreateTime' | 'UpdateTime';
|
|
666
|
+
/** 查询状态(不填默认查询已通过状态) */
|
|
667
|
+
status?: QueryRequestStatus;
|
|
668
|
+
/** 查询的起始时间,精确到秒的时间戳 */
|
|
669
|
+
check_time_from?: string;
|
|
670
|
+
/** 查询的结束时间,精确到秒的时间戳 */
|
|
671
|
+
check_time_to?: string;
|
|
672
|
+
}
|
|
673
|
+
interface QueryQuery {
|
|
674
|
+
/** 请求体中的 user_ids 和响应体中的 user_id 的员工工号类型 */
|
|
675
|
+
employee_type: 'employee_id' | 'employee_no' | 'open_id';
|
|
676
|
+
}
|
|
677
|
+
interface QueryResponse {
|
|
678
|
+
/** 审批结果列表 */
|
|
679
|
+
user_approvals?: Lark.UserApproval[];
|
|
680
|
+
}
|
|
681
|
+
interface CreateRequest {
|
|
682
|
+
/** 审批信息 */
|
|
683
|
+
user_approval?: Lark.UserApproval;
|
|
684
|
+
}
|
|
685
|
+
interface CreateQuery {
|
|
686
|
+
/** 请求体和响应体中的 user_id 的员工工号类型 */
|
|
687
|
+
employee_type: 'employee_id' | 'employee_no' | 'open_id';
|
|
688
|
+
}
|
|
689
|
+
interface CreateResponse {
|
|
690
|
+
/** 审批信息 */
|
|
691
|
+
user_approval?: Lark.UserApproval;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
namespace ApprovalInfo {
|
|
695
|
+
interface Methods {
|
|
696
|
+
/**
|
|
697
|
+
* 通知审批状态更新
|
|
698
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/approval_info/process
|
|
699
|
+
*/
|
|
700
|
+
process(body: ProcessRequest): Promise<ProcessResponse>;
|
|
701
|
+
}
|
|
702
|
+
interface ProcessRequest {
|
|
703
|
+
/** 审批实例 ID,获取方式:1)[获取审批通过数据](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_approval/query) 2)[写入审批结果](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_approval/create) 3)[通知补卡审批发起(补卡情况下)](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task_remedy/create) */
|
|
704
|
+
approval_id: string;
|
|
705
|
+
/** 审批类型,leave:请假,out:外出,overtime:加班,trip:出差,remedy:补卡 */
|
|
706
|
+
approval_type: string;
|
|
707
|
+
/** 审批状态,1:不通过,2:通过,4:撤销 */
|
|
708
|
+
status: number;
|
|
709
|
+
}
|
|
710
|
+
interface ProcessResponse {
|
|
711
|
+
/** 审批信息 */
|
|
712
|
+
approval_info?: Lark.ApprovalInfo;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
namespace UserTaskRemedy {
|
|
716
|
+
interface Methods {
|
|
717
|
+
/**
|
|
718
|
+
* 通知补卡审批发起
|
|
719
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task_remedy/create
|
|
720
|
+
*/
|
|
721
|
+
create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>;
|
|
722
|
+
/**
|
|
723
|
+
* 获取可补卡时间
|
|
724
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task_remedy/query_user_allowed_remedys
|
|
725
|
+
*/
|
|
726
|
+
queryUserAllowedRemedys(body: QueryUserAllowedRemedysRequest, query?: QueryUserAllowedRemedysQuery): Promise<QueryUserAllowedRemedysResponse>;
|
|
727
|
+
/**
|
|
728
|
+
* 获取补卡记录
|
|
729
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task_remedy/query
|
|
730
|
+
*/
|
|
731
|
+
query(body: QueryRequest, query?: QueryQuery): Promise<QueryResponse>;
|
|
732
|
+
}
|
|
733
|
+
interface CreateRequest {
|
|
734
|
+
/** 用户工号 */
|
|
735
|
+
user_id: string;
|
|
736
|
+
/** 补卡日期 */
|
|
737
|
+
remedy_date: number;
|
|
738
|
+
/** 第几次上下班,可能值0,1,2 */
|
|
739
|
+
punch_no: number;
|
|
740
|
+
/** 上班/下班,1是上班,2是下班 */
|
|
741
|
+
work_type: number;
|
|
742
|
+
/** 补卡时间 */
|
|
743
|
+
remedy_time: string;
|
|
744
|
+
/** 补卡原因 */
|
|
745
|
+
reason: string;
|
|
746
|
+
/** 补卡时间戳,精确到秒的时间戳 */
|
|
747
|
+
time?: string;
|
|
748
|
+
}
|
|
749
|
+
interface CreateQuery {
|
|
750
|
+
/** 请求体和响应体中的 user_id 的员工工号类型 */
|
|
751
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
752
|
+
}
|
|
753
|
+
interface CreateResponse {
|
|
754
|
+
/** 补卡审批信息 */
|
|
755
|
+
user_remedy?: Lark.UserTaskRemedy;
|
|
756
|
+
}
|
|
757
|
+
interface QueryUserAllowedRemedysRequest {
|
|
758
|
+
/** 用户 ID */
|
|
759
|
+
user_id: string;
|
|
760
|
+
/** 补卡日期 */
|
|
761
|
+
remedy_date: number;
|
|
762
|
+
}
|
|
763
|
+
interface QueryUserAllowedRemedysQuery {
|
|
764
|
+
/** 请求体和响应体中的 user_id 的员工工号类型 */
|
|
765
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
766
|
+
}
|
|
767
|
+
interface QueryUserAllowedRemedysResponse {
|
|
768
|
+
/** 用户可补卡时间 */
|
|
769
|
+
user_allowed_remedys?: Lark.UserAllowedRemedy[];
|
|
770
|
+
}
|
|
771
|
+
const enum QueryRequestStatus {
|
|
772
|
+
/** 待审批 */
|
|
773
|
+
Pending = 0,
|
|
774
|
+
/** 未通过 */
|
|
775
|
+
Rejected = 1,
|
|
776
|
+
/** 已通过 */
|
|
777
|
+
Pass = 2,
|
|
778
|
+
/** 已取消 */
|
|
779
|
+
Cancel = 3,
|
|
780
|
+
/** 已撤回 */
|
|
781
|
+
Withdraw = 4
|
|
782
|
+
}
|
|
783
|
+
interface QueryRequest {
|
|
784
|
+
/** employee_no 或 employee_id 列表 */
|
|
785
|
+
user_ids: string[];
|
|
786
|
+
/** 查询的起始时间,精确到秒的时间戳 */
|
|
787
|
+
check_time_from: string;
|
|
788
|
+
/** 查询的结束时间,精确到秒的时间戳 */
|
|
789
|
+
check_time_to: string;
|
|
790
|
+
/** 查询依据的时间类型(不填默认依据PeriodTime) */
|
|
791
|
+
check_date_type?: 'PeriodTime' | 'CreateTime' | 'UpdateTime';
|
|
792
|
+
/** 查询状态(不填默认查询已通过状态) */
|
|
793
|
+
status?: QueryRequestStatus;
|
|
794
|
+
}
|
|
795
|
+
interface QueryQuery {
|
|
796
|
+
/** 请求体中的 user_ids 和响应体中的 user_id 的员工工号类型 */
|
|
797
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
798
|
+
}
|
|
799
|
+
interface QueryResponse {
|
|
800
|
+
/** 补卡记录列表 */
|
|
801
|
+
user_remedys?: Lark.UserTaskRemedy[];
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
namespace ArchiveRule {
|
|
805
|
+
interface Methods {
|
|
806
|
+
/**
|
|
807
|
+
* 查询归档报表表头
|
|
808
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/archive_rule/user_stats_fields_query
|
|
809
|
+
*/
|
|
810
|
+
userStatsFieldsQuery(body: UserStatsFieldsQueryRequest, query?: UserStatsFieldsQueryQuery): Promise<UserStatsFieldsQueryResponse>;
|
|
811
|
+
/**
|
|
812
|
+
* 写入归档报表结果
|
|
813
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/archive_rule/upload_report
|
|
814
|
+
*/
|
|
815
|
+
uploadReport(body: UploadReportRequest, query?: UploadReportQuery): Promise<UploadReportResponse>;
|
|
816
|
+
/**
|
|
817
|
+
* 删除归档报表行数据
|
|
818
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/archive_rule/del_report
|
|
819
|
+
*/
|
|
820
|
+
delReport(body: DelReportRequest, query?: DelReportQuery): Promise<void>;
|
|
821
|
+
/**
|
|
822
|
+
* 查询所有归档规则
|
|
823
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/archive_rule/list
|
|
824
|
+
*/
|
|
825
|
+
list(query?: Pagination): Paginated<Lark.ArchiveReportMeta>;
|
|
826
|
+
}
|
|
827
|
+
interface UserStatsFieldsQueryRequest {
|
|
828
|
+
/** 语言类型 */
|
|
829
|
+
locale?: string;
|
|
830
|
+
/** 月份 */
|
|
831
|
+
month: string;
|
|
832
|
+
/** 归档规则id */
|
|
833
|
+
archive_rule_id: string;
|
|
834
|
+
/** 操作者id */
|
|
835
|
+
operator_id: string;
|
|
836
|
+
}
|
|
837
|
+
interface UserStatsFieldsQueryQuery {
|
|
838
|
+
/** 用户 ID 的类型 */
|
|
839
|
+
employee_type: string;
|
|
840
|
+
}
|
|
841
|
+
interface UserStatsFieldsQueryResponse {
|
|
842
|
+
/** 统计数据表头 */
|
|
843
|
+
archive_report_fields?: Lark.ArchiveField[];
|
|
844
|
+
}
|
|
845
|
+
interface UploadReportRequest {
|
|
846
|
+
/** 月份 */
|
|
847
|
+
month: string;
|
|
848
|
+
/** 操作者ID */
|
|
849
|
+
operator_id: string;
|
|
850
|
+
/** 归档报表内容(不超过50个) */
|
|
851
|
+
archive_report_datas?: Lark.ArchiveReportData[];
|
|
852
|
+
/** 归档规则id */
|
|
853
|
+
archive_rule_id: string;
|
|
854
|
+
}
|
|
855
|
+
interface UploadReportQuery {
|
|
856
|
+
/** 用户 ID 的类型 */
|
|
857
|
+
employee_type: string;
|
|
858
|
+
}
|
|
859
|
+
interface UploadReportResponse {
|
|
860
|
+
/** 无效的code */
|
|
861
|
+
invalid_code?: string[];
|
|
862
|
+
/** 无效的member_id */
|
|
863
|
+
invalid_member_id?: string[];
|
|
864
|
+
}
|
|
865
|
+
interface DelReportRequest {
|
|
866
|
+
/** 月份 */
|
|
867
|
+
month: string;
|
|
868
|
+
/** 操作者ID */
|
|
869
|
+
operator_id: string;
|
|
870
|
+
/** 归档规则id */
|
|
871
|
+
archive_rule_id: string;
|
|
872
|
+
/** 用户id */
|
|
873
|
+
user_ids?: string[];
|
|
874
|
+
}
|
|
875
|
+
interface DelReportQuery {
|
|
876
|
+
/** 员工工号类型 */
|
|
877
|
+
employee_type: string;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
namespace UserFlow {
|
|
881
|
+
interface Methods {
|
|
882
|
+
/**
|
|
883
|
+
* 导入打卡流水
|
|
884
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_flow/batch_create
|
|
885
|
+
*/
|
|
886
|
+
batchCreate(body: BatchCreateRequest, query?: BatchCreateQuery): Promise<BatchCreateResponse>;
|
|
887
|
+
/**
|
|
888
|
+
* 查询打卡流水
|
|
889
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_flow/get
|
|
890
|
+
*/
|
|
891
|
+
get(user_flow_id: string, query?: GetQuery): Promise<GetResponse>;
|
|
892
|
+
/**
|
|
893
|
+
* 批量查询打卡流水
|
|
894
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_flow/query
|
|
895
|
+
*/
|
|
896
|
+
query(body: QueryRequest, query?: QueryQuery): Promise<QueryResponse>;
|
|
897
|
+
/**
|
|
898
|
+
* 删除打卡流水
|
|
899
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_flow/batch_del
|
|
900
|
+
*/
|
|
901
|
+
batchDel(body: BatchDelRequest): Promise<BatchDelResponse>;
|
|
902
|
+
}
|
|
903
|
+
interface BatchCreateRequest {
|
|
904
|
+
/** 打卡流水记录列表 */
|
|
905
|
+
flow_records: Lark.UserFlow[];
|
|
906
|
+
}
|
|
907
|
+
interface BatchCreateQuery {
|
|
908
|
+
/** 请求体和响应体中的 user_id 和 creator_id 的员工工号类型 */
|
|
909
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
910
|
+
}
|
|
911
|
+
interface BatchCreateResponse {
|
|
912
|
+
/** 打卡流水记录列表 */
|
|
913
|
+
flow_records?: Lark.UserFlow[];
|
|
914
|
+
}
|
|
915
|
+
interface GetQuery {
|
|
916
|
+
/** 响应体中的 user_id 和 creator_id 的员工工号类型 */
|
|
917
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
918
|
+
}
|
|
919
|
+
const enum GetResponseType {
|
|
920
|
+
/** 用户自己打卡 */
|
|
921
|
+
Self = 0,
|
|
922
|
+
/** 管理员修改 */
|
|
923
|
+
ManagerModification = 1,
|
|
924
|
+
/** 用户补卡 */
|
|
925
|
+
Remedy = 2,
|
|
926
|
+
/** 系统自动生成 */
|
|
927
|
+
System = 3,
|
|
928
|
+
/** 下班免打卡 */
|
|
929
|
+
Free = 4,
|
|
930
|
+
/** 考勤机 */
|
|
931
|
+
Machine = 5,
|
|
932
|
+
/** 极速打卡 */
|
|
933
|
+
Quick = 6,
|
|
934
|
+
/** 考勤开放平台导入 */
|
|
935
|
+
Import = 7
|
|
936
|
+
}
|
|
937
|
+
interface GetResponse {
|
|
938
|
+
/** 用户工号 */
|
|
939
|
+
user_id: string;
|
|
940
|
+
/** 记录创建者的工号 */
|
|
941
|
+
creator_id: string;
|
|
942
|
+
/** 打卡位置名称信息 */
|
|
943
|
+
location_name: string;
|
|
944
|
+
/** 打卡时间,精确到秒的时间戳 */
|
|
945
|
+
check_time: string;
|
|
946
|
+
/** 打卡备注 */
|
|
947
|
+
comment: string;
|
|
948
|
+
/** 打卡记录ID */
|
|
949
|
+
record_id?: string;
|
|
950
|
+
/** 打卡wifi ssid */
|
|
951
|
+
ssid?: string;
|
|
952
|
+
/** 打卡wifi MAC地址 */
|
|
953
|
+
bssid?: string;
|
|
954
|
+
/** 是否为外勤打卡 */
|
|
955
|
+
is_field?: boolean;
|
|
956
|
+
/** 是否为wifi打卡 */
|
|
957
|
+
is_wifi?: boolean;
|
|
958
|
+
/** 记录生成方式 */
|
|
959
|
+
type?: GetResponseType;
|
|
960
|
+
/** 打卡照片列表 */
|
|
961
|
+
photo_urls?: string[];
|
|
962
|
+
/** 打卡设备ID */
|
|
963
|
+
device_id?: string;
|
|
964
|
+
/** 打卡结果 */
|
|
965
|
+
check_result?: 'NoNeedCheck' | 'SystemCheck' | 'Normal' | 'Early' | 'Late' | 'SeriousLate' | 'Lack' | 'Invalid' | 'None' | 'Todo';
|
|
966
|
+
/** 用户导入的外部打卡记录ID */
|
|
967
|
+
external_id?: string;
|
|
968
|
+
/** 唯一幂等键 */
|
|
969
|
+
idempotent_id?: string;
|
|
970
|
+
}
|
|
971
|
+
interface QueryRequest {
|
|
972
|
+
/** employee_no 或 employee_id 列表,长度不超过 50 */
|
|
973
|
+
user_ids: string[];
|
|
974
|
+
/** 查询的起始时间,时间戳 */
|
|
975
|
+
check_time_from: string;
|
|
976
|
+
/** 查询的结束时间,时间戳 */
|
|
977
|
+
check_time_to: string;
|
|
978
|
+
}
|
|
979
|
+
interface QueryQuery {
|
|
980
|
+
/** 请求体中的 user_ids 和响应体中的 user_id 的员工工号类型 */
|
|
981
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
982
|
+
/** 由于新入职用户可以复用已离职用户的employee_no/employee_id。如果true,返回employee_no/employee_id对应的所有在职+离职用户数据;如果false,只返回employee_no/employee_id对应的在职或最近一个离职用户数据 */
|
|
983
|
+
include_terminated_user?: boolean;
|
|
984
|
+
}
|
|
985
|
+
interface QueryResponse {
|
|
986
|
+
/** 打卡记录列表 */
|
|
987
|
+
user_flow_results?: Lark.UserFlow[];
|
|
988
|
+
}
|
|
989
|
+
interface BatchDelRequest {
|
|
990
|
+
/** 流水记录ID */
|
|
991
|
+
record_ids: string[];
|
|
992
|
+
}
|
|
993
|
+
interface BatchDelResponse {
|
|
994
|
+
/** 删除成功的流水记录ID列表 */
|
|
995
|
+
success_record_ids?: string[];
|
|
996
|
+
/** 删除失败的流水记录ID列表 */
|
|
997
|
+
fail_record_ids?: string[];
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
namespace UserTask {
|
|
1001
|
+
interface Methods {
|
|
1002
|
+
/**
|
|
1003
|
+
* 查询打卡结果
|
|
1004
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/user_task/query
|
|
1005
|
+
*/
|
|
1006
|
+
query(body: QueryRequest, query?: QueryQuery): Promise<QueryResponse>;
|
|
1007
|
+
}
|
|
1008
|
+
interface QueryRequest {
|
|
1009
|
+
/** employee_no 或 employee_id 列表 */
|
|
1010
|
+
user_ids: string[];
|
|
1011
|
+
/** 查询的起始工作日 */
|
|
1012
|
+
check_date_from: number;
|
|
1013
|
+
/** 查询的结束工作日 */
|
|
1014
|
+
check_date_to: number;
|
|
1015
|
+
/** 是否需要加班班段打卡结果 */
|
|
1016
|
+
need_overtime_result?: boolean;
|
|
1017
|
+
}
|
|
1018
|
+
interface QueryQuery {
|
|
1019
|
+
/** 员工工号类型 */
|
|
1020
|
+
employee_type: 'employee_id' | 'employee_no';
|
|
1021
|
+
/** 是否忽略无效和没有权限的用户。如果 true,则返回有效用户的信息,并告知无效和没有权限的用户信息;如果 false,且 user_ids 中存在无效或没有权限的用户,则返回错误 */
|
|
1022
|
+
ignore_invalid_users?: boolean;
|
|
1023
|
+
/** 由于新入职员工可以复用已离职员工的 employee_no/employee_id,如果 true,则返回 employee_no/employee_id 对应的所有在职 + 离职员工的数据;如果 false,则只返回 employee_no/employee_id 对应的在职或最近一个离职员工的数据 */
|
|
1024
|
+
include_terminated_user?: boolean;
|
|
1025
|
+
}
|
|
1026
|
+
interface QueryResponse {
|
|
1027
|
+
/** 打卡任务列表 */
|
|
1028
|
+
user_task_results?: Lark.UserTask[];
|
|
1029
|
+
/** 无效用户工号列表 */
|
|
1030
|
+
invalid_user_ids?: string[];
|
|
1031
|
+
/** 没有权限用户工号列表 */
|
|
1032
|
+
unauthorized_user_ids?: string[];
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
namespace LeaveEmployExpireRecord {
|
|
1036
|
+
interface Methods {
|
|
1037
|
+
/**
|
|
1038
|
+
* 通过过期时间获取发放记录
|
|
1039
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/leave_employ_expire_record/get
|
|
1040
|
+
*/
|
|
1041
|
+
get(leave_id: string, body: GetRequest, query?: GetQuery): Promise<GetResponse>;
|
|
1042
|
+
}
|
|
1043
|
+
interface GetRequest {
|
|
1044
|
+
/** 员工ID */
|
|
1045
|
+
employment_id: string;
|
|
1046
|
+
/** 假期类型ID */
|
|
1047
|
+
leave_type_id: string;
|
|
1048
|
+
/** 失效最早日期 2023-04-10 格式 */
|
|
1049
|
+
start_expiration_date: string;
|
|
1050
|
+
/** 失效最晚日期 2023-05-10 格式 */
|
|
1051
|
+
end_expiration_date: string;
|
|
1052
|
+
/** 时间偏移,东八区:480 8*60, 如果没有这个参数,默认东八区 */
|
|
1053
|
+
time_offset?: number;
|
|
1054
|
+
}
|
|
1055
|
+
interface GetQuery {
|
|
1056
|
+
/** 用户 ID 类型 */
|
|
1057
|
+
user_id_type?: 'open_id' | 'people_corehr_id' | 'union_id' | 'user_id';
|
|
1058
|
+
}
|
|
1059
|
+
interface GetResponse {
|
|
1060
|
+
/** 员工过期日期的授予记录 */
|
|
1061
|
+
records: Lark.LeaveEmployExpireRecord[];
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
namespace LeaveAccrualRecord {
|
|
1065
|
+
interface Methods {
|
|
1066
|
+
/**
|
|
1067
|
+
* 修改发放记录
|
|
1068
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/attendance-v1/leave_accrual_record/patch
|
|
1069
|
+
*/
|
|
1070
|
+
patch(leave_id: string, body: PatchRequest, query?: PatchQuery): Promise<PatchResponse>;
|
|
1071
|
+
}
|
|
1072
|
+
interface PatchRequest {
|
|
1073
|
+
/** 授予记录的唯一ID */
|
|
1074
|
+
leave_granting_record_id: string;
|
|
1075
|
+
/** 员工ID */
|
|
1076
|
+
employment_id: string;
|
|
1077
|
+
/** 假期类型ID */
|
|
1078
|
+
leave_type_id: string;
|
|
1079
|
+
/** 修改授予记录原因 */
|
|
1080
|
+
reason: Lark.LangText[];
|
|
1081
|
+
/** 时间偏移,东八区:480 8*60 */
|
|
1082
|
+
time_offset?: number;
|
|
1083
|
+
/** 失效日期,格式"2020-01-01" */
|
|
1084
|
+
expiration_date?: string;
|
|
1085
|
+
/** 修改source 余额 */
|
|
1086
|
+
quantity?: string;
|
|
1087
|
+
/** 是否参与清算 */
|
|
1088
|
+
section_type?: number;
|
|
1089
|
+
}
|
|
1090
|
+
interface PatchQuery {
|
|
1091
|
+
/** 用户 ID 类型 */
|
|
1092
|
+
user_id_type?: 'open_id' | 'people_corehr_id' | 'union_id' | 'user_id';
|
|
1093
|
+
}
|
|
1094
|
+
interface PatchResponse {
|
|
1095
|
+
/** 员工过期日期的授予记录 */
|
|
1096
|
+
record: Lark.LeaveAccrualRecord;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
999
1099
|
}
|