@satorijs/adapter-lark 3.11.8 → 3.12.0
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/bot.d.ts +5 -5
- package/lib/http.d.ts +6 -3
- package/lib/index.cjs +634 -261
- package/lib/types/acs.d.ts +4 -1
- package/lib/types/aily.d.ts +3 -3
- package/lib/types/apaas.d.ts +190 -28
- package/lib/types/application.d.ts +20 -4
- package/lib/types/approval.d.ts +0 -13
- package/lib/types/attendance.d.ts +11 -5
- package/lib/types/authen.d.ts +8 -2
- package/lib/types/bitable.d.ts +25 -4
- package/lib/types/board.d.ts +56 -0
- package/lib/types/calendar.d.ts +71 -5
- package/lib/types/cardkit.d.ts +2 -2
- package/lib/types/compensation.d.ts +400 -0
- package/lib/types/contact.d.ts +55 -12
- package/lib/types/corehr.d.ts +1287 -79
- package/lib/types/directory.d.ts +3 -41
- package/lib/types/docx.d.ts +23 -0
- package/lib/types/drive.d.ts +107 -90
- package/lib/types/ehr.d.ts +11 -2
- package/lib/types/helpdesk.d.ts +15 -6
- package/lib/types/hire.d.ts +52 -3
- package/lib/types/human_authentication.d.ts +1 -1
- package/lib/types/im.d.ts +77 -21
- package/lib/types/index.d.ts +1670 -105
- package/lib/types/mail.d.ts +106 -16
- package/lib/types/payroll.d.ts +117 -81
- package/lib/types/performance.d.ts +1 -1
- package/lib/types/search.d.ts +4 -1
- package/lib/types/security_and_compliance.d.ts +254 -1
- package/lib/ws.d.ts +30 -0
- package/package.json +6 -3
- package/src/bot.ts +28 -15
- package/src/http.ts +10 -4
- package/src/types/acs.ts +4 -1
- package/src/types/aily.ts +3 -3
- package/src/types/apaas.ts +237 -38
- package/src/types/application.ts +20 -4
- package/src/types/approval.ts +0 -15
- package/src/types/attendance.ts +11 -5
- package/src/types/authen.ts +8 -2
- package/src/types/bitable.ts +25 -4
- package/src/types/board.ts +75 -2
- package/src/types/calendar.ts +88 -5
- package/src/types/cardkit.ts +2 -2
- package/src/types/compensation.ts +485 -0
- package/src/types/contact.ts +55 -12
- package/src/types/corehr.ts +1480 -123
- package/src/types/directory.ts +3 -53
- package/src/types/docx.ts +29 -0
- package/src/types/drive.ts +129 -112
- package/src/types/ehr.ts +11 -2
- package/src/types/helpdesk.ts +15 -6
- package/src/types/hire.ts +66 -3
- package/src/types/human_authentication.ts +1 -1
- package/src/types/im.ts +77 -21
- package/src/types/index.ts +1751 -107
- package/src/types/mail.ts +106 -16
- package/src/types/payroll.ts +146 -103
- package/src/types/performance.ts +1 -1
- package/src/types/search.ts +4 -1
- package/src/types/security_and_compliance.ts +292 -1
- package/src/ws.ts +183 -0
- package/lib/types/api.d.ts +0 -28510
- package/lib/types/internal.d.ts +0 -21
- package/lib/types/message/content.d.ts +0 -433
- package/lib/types/message/index.d.ts +0 -95
|
@@ -15,10 +15,21 @@ export namespace Compensation {
|
|
|
15
15
|
itemCategory: ItemCategory.Methods
|
|
16
16
|
plan: Plan.Methods
|
|
17
17
|
changeReason: ChangeReason.Methods
|
|
18
|
+
socialInsurance: SocialInsurance.Methods
|
|
19
|
+
socialPlan: SocialPlan.Methods
|
|
20
|
+
socialArchiveAdjustRecord: SocialArchiveAdjustRecord.Methods
|
|
21
|
+
socialArchive: SocialArchive.Methods
|
|
22
|
+
lumpSumPayment: LumpSumPayment.Methods
|
|
23
|
+
recurringPayment: RecurringPayment.Methods
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
export namespace Archive {
|
|
21
27
|
export interface Methods {
|
|
28
|
+
/**
|
|
29
|
+
* 创建薪资档案
|
|
30
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/archive/create
|
|
31
|
+
*/
|
|
32
|
+
create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>
|
|
22
33
|
/**
|
|
23
34
|
* 批量查询员工薪资档案
|
|
24
35
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/archive/query
|
|
@@ -26,6 +37,42 @@ export namespace Compensation {
|
|
|
26
37
|
query(body: QueryRequest, query?: QueryQuery): Paginated<Lark.ArchiveDetail>
|
|
27
38
|
}
|
|
28
39
|
|
|
40
|
+
export interface CreateRequest {
|
|
41
|
+
/** 外部幂等id,表示操作的唯一标识,避免重复发起,格式为标准的UUIDV4, */
|
|
42
|
+
unique_id: string
|
|
43
|
+
/** 操作人ID,具体类型由入参中的 user_id_type 指定,选择应用身份鉴权时,该参数不能为空 */
|
|
44
|
+
operator_id?: string
|
|
45
|
+
/** 员工id,具体类型由入参中的 user_id_type 指定 */
|
|
46
|
+
user_id: string
|
|
47
|
+
/** 生效时间,日期格式 */
|
|
48
|
+
effective_time: string
|
|
49
|
+
/** 币种ID,获取来源https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-currency/search?appId=cli_a63f5fc01866100c */
|
|
50
|
+
currency_id: string
|
|
51
|
+
/** 薪资方案ID,获取来源:https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/plan/list */
|
|
52
|
+
plan_id: string
|
|
53
|
+
/** 薪资方案TID,获取来源:https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/plan/list */
|
|
54
|
+
plan_tid: string
|
|
55
|
+
/** 调薪原因ID,获取来源:https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/change_reason/list */
|
|
56
|
+
change_reason_id: string
|
|
57
|
+
/** 薪资项值集合 */
|
|
58
|
+
item_value_lists: Lark.ArchiveItemValue[]
|
|
59
|
+
/** 调薪说明 */
|
|
60
|
+
description?: string
|
|
61
|
+
/** 更正说明,当员工在当天存在调薪记录时,该字段即为更正调薪的说明 */
|
|
62
|
+
edit_remark?: string
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface CreateQuery {
|
|
66
|
+
user_id_type: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface CreateResponse {
|
|
70
|
+
/** 定调薪任务创建的唯一ID */
|
|
71
|
+
unique_id?: string
|
|
72
|
+
/** 薪档案的TID */
|
|
73
|
+
archive_tid?: string
|
|
74
|
+
}
|
|
75
|
+
|
|
29
76
|
export interface QueryRequest {
|
|
30
77
|
/** 用户ID列表 */
|
|
31
78
|
user_id_list: string[]
|
|
@@ -97,9 +144,405 @@ export namespace Compensation {
|
|
|
97
144
|
list(query?: Pagination): Paginated<Lark.ChangeReason>
|
|
98
145
|
}
|
|
99
146
|
}
|
|
147
|
+
|
|
148
|
+
export namespace SocialInsurance {
|
|
149
|
+
export interface Methods {
|
|
150
|
+
/**
|
|
151
|
+
* 获取险种配置列表
|
|
152
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/social_insurance/list
|
|
153
|
+
*/
|
|
154
|
+
list(): Promise<ListResponse>
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export interface ListResponse {
|
|
158
|
+
/** 险种列表 */
|
|
159
|
+
items?: Lark.SocialInsurance[]
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export namespace SocialPlan {
|
|
164
|
+
export interface Methods {
|
|
165
|
+
/**
|
|
166
|
+
* 根据方案ID和生效日期批量查询参保方案
|
|
167
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/social_plan/query
|
|
168
|
+
*/
|
|
169
|
+
query(body: QueryRequest): Promise<QueryResponse>
|
|
170
|
+
/**
|
|
171
|
+
* 根据生效日期分页查询参保方案
|
|
172
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/social_plan/list
|
|
173
|
+
*/
|
|
174
|
+
list(query?: ListQuery): Paginated<Lark.SocialPlan, 'plans'>
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface QueryRequest {
|
|
178
|
+
/** 参保方案ID列表,最大200 */
|
|
179
|
+
plan_ids: string[]
|
|
180
|
+
/** 生效日期,查询在该日期生效的参保方案数据 */
|
|
181
|
+
effective_date: string
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface QueryResponse {
|
|
185
|
+
/** 方案列表 */
|
|
186
|
+
plans?: Lark.SocialPlan[]
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface ListQuery extends Pagination {
|
|
190
|
+
/** 生效日期,查询在该日期生效的参保方案数据 */
|
|
191
|
+
effective_date: string
|
|
192
|
+
/** 社保方案/公积金方案 */
|
|
193
|
+
insurance_type?: 'social_insurance' | 'provident_fund'
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export namespace SocialArchiveAdjustRecord {
|
|
198
|
+
export interface Methods {
|
|
199
|
+
/**
|
|
200
|
+
* 通过员工ID批量获取社保增减员记录
|
|
201
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/social_archive_adjust_record/query
|
|
202
|
+
*/
|
|
203
|
+
query(body: QueryRequest, query?: QueryQuery): Promise<QueryResponse>
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface QueryRequest {
|
|
207
|
+
/** lark_user_id列表,用户ID列表,获取方式可参考查询参数中的「user_id_type」字段。最大200个。 */
|
|
208
|
+
user_id_list: string[]
|
|
209
|
+
/** 增减员类型, increase: 增员; attrtion: 减员 */
|
|
210
|
+
record_type: 'increase' | 'attrition'
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface QueryQuery {
|
|
214
|
+
/** 用户ID类型 */
|
|
215
|
+
user_id_type: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface QueryResponse {
|
|
219
|
+
/** 待增/减员记录 */
|
|
220
|
+
records?: Lark.SocialArchiveAdjustRecord[]
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export namespace SocialArchive {
|
|
225
|
+
export interface Methods {
|
|
226
|
+
/**
|
|
227
|
+
* 批量获取员工参保档案
|
|
228
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/social_archive/query
|
|
229
|
+
*/
|
|
230
|
+
query(body: QueryRequest, query?: QueryQuery): Promise<QueryResponse>
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export interface QueryRequest {
|
|
234
|
+
/** lark_user_id列表,用户ID列表,获取方式可参考查询参数中的「user_id_type」字段。最大200个。 */
|
|
235
|
+
user_id_list: string[]
|
|
236
|
+
/** 生效日志,查询在该日期生效的社保档案 */
|
|
237
|
+
effective_date: string
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export interface QueryQuery {
|
|
241
|
+
/** 用户ID类型 */
|
|
242
|
+
user_id_type: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface QueryResponse {
|
|
246
|
+
/** 参保档案列表 */
|
|
247
|
+
archives: Lark.SocialArchive[]
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export namespace LumpSumPayment {
|
|
252
|
+
export interface Methods {
|
|
253
|
+
/**
|
|
254
|
+
* 批量创建一次性支付记录
|
|
255
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/lump_sum_payment/batch_create
|
|
256
|
+
*/
|
|
257
|
+
batchCreate(body: BatchCreateRequest, query?: BatchCreateQuery): Promise<BatchCreateResponse>
|
|
258
|
+
/**
|
|
259
|
+
* 批量更正一次性支付记录
|
|
260
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/lump_sum_payment/batch_update
|
|
261
|
+
*/
|
|
262
|
+
batchUpdate(body: BatchUpdateRequest): Promise<BatchUpdateResponse>
|
|
263
|
+
/**
|
|
264
|
+
* 查询一次性支付授予记录
|
|
265
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/lump_sum_payment/query
|
|
266
|
+
*/
|
|
267
|
+
query(body: QueryRequest, query?: QueryQuery): Paginated<Lark.LumpSumPayment, 'records'>
|
|
268
|
+
/**
|
|
269
|
+
* 查询一次性支付授予明细
|
|
270
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/lump_sum_payment/query_detail
|
|
271
|
+
*/
|
|
272
|
+
queryDetail(body: QueryDetailRequest, query?: QueryDetailQuery): Paginated<Lark.LumpSumPaymentDetail, 'records'>
|
|
273
|
+
/**
|
|
274
|
+
* 批量删除一次性支付记录
|
|
275
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/lump_sum_payment/batch_remove
|
|
276
|
+
*/
|
|
277
|
+
batchRemove(body: BatchRemoveRequest): Promise<BatchRemoveResponse>
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export interface BatchCreateRequest {
|
|
281
|
+
/** 要创建的一次性支付信息 */
|
|
282
|
+
records?: Lark.LumpSumPaymentForCreate[]
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export interface BatchCreateQuery {
|
|
286
|
+
/** 用户ID类型 */
|
|
287
|
+
user_id_type: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export interface BatchCreateResponse {
|
|
291
|
+
/** 每条记录的操作结果。对于创建成功的记录,会返回创建后的一次性支付记录id */
|
|
292
|
+
operate_results?: Lark.LumpSumPaymentOperateResult[]
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export interface BatchUpdateRequest {
|
|
296
|
+
/** 要更正的一次性支付记录列表 */
|
|
297
|
+
records?: Lark.LumpSumPaymentForUpdate[]
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export interface BatchUpdateResponse {
|
|
301
|
+
/** 每条记录的操作结果 */
|
|
302
|
+
operate_results?: Lark.LumpSumPaymentOperateResult[]
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export interface QueryRequest {
|
|
306
|
+
/** id属于 */
|
|
307
|
+
ids?: string[]
|
|
308
|
+
/** unique_id属于 */
|
|
309
|
+
unique_ids?: string[]
|
|
310
|
+
/** 员工id属于 */
|
|
311
|
+
user_ids?: string[]
|
|
312
|
+
/** 薪酬项id属于 */
|
|
313
|
+
item_ids?: string[]
|
|
314
|
+
/** 创建时间大于等于(东八区) */
|
|
315
|
+
create_time_gte?: string
|
|
316
|
+
/** 创建时间小于等于(东八区) */
|
|
317
|
+
create_time_lte?: string
|
|
318
|
+
/** 更新时间大于等于(东八区) */
|
|
319
|
+
modify_time_gte?: string
|
|
320
|
+
/** 更新时间小于等于(东八区) */
|
|
321
|
+
modify_time_lte?: string
|
|
322
|
+
/** 合同主体id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/organization-management/company/list 接口进行查询) */
|
|
323
|
+
company_ids?: string[]
|
|
324
|
+
/** 任职公司id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/organization-management/company/list 接口进行查询) */
|
|
325
|
+
service_company_ids?: string[]
|
|
326
|
+
/** 部门id属于(可通过 https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get 接口进行查询) */
|
|
327
|
+
department_ids?: string[]
|
|
328
|
+
/** 序列id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/job-management/job_family/list 接口进行查询) */
|
|
329
|
+
job_family_ids?: string[]
|
|
330
|
+
/** 职级id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/job-management/job_level/list 接口进行查询) */
|
|
331
|
+
job_level_ids?: string[]
|
|
332
|
+
/** 工作地点id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/organization-management/location/list 接口进行查询) */
|
|
333
|
+
work_location_ids?: string[]
|
|
334
|
+
/** 员工类型id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/basic-infomation/employee_type/list 接口进行查询) */
|
|
335
|
+
employee_type_ids?: string[]
|
|
336
|
+
/** 入职日期大于等于 */
|
|
337
|
+
onboard_date_gte?: string
|
|
338
|
+
/** 入职日期小于等于 */
|
|
339
|
+
onboard_date_lte?: string
|
|
340
|
+
/** 离职日期大于等于 */
|
|
341
|
+
offboard_date_gte?: string
|
|
342
|
+
/** 离职日期小于等于 */
|
|
343
|
+
offboard_date_lte?: string
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export interface QueryQuery extends Pagination {
|
|
347
|
+
/** 用户ID类型 */
|
|
348
|
+
user_id_type: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export interface QueryDetailRequest {
|
|
352
|
+
/** id属于 */
|
|
353
|
+
ids?: string[]
|
|
354
|
+
/** 一次性支付记录id */
|
|
355
|
+
record_ids?: string[]
|
|
356
|
+
/** 一次性支付记录unique id */
|
|
357
|
+
record_unique_ids?: string[]
|
|
358
|
+
/** 发放方式 */
|
|
359
|
+
issuance_ways?: ('with_salary' | 'with_cash' | 'with_physical_distribution' | 'with_year_end_bonus')[]
|
|
360
|
+
/** 发放状态 */
|
|
361
|
+
issuance_statuses?: ('to_be_issued' | 'not_issued')[]
|
|
362
|
+
/** 员工id属于 */
|
|
363
|
+
user_ids?: string[]
|
|
364
|
+
/** 薪酬项id属于 */
|
|
365
|
+
item_ids?: string[]
|
|
366
|
+
/** 发放时间大于等于 */
|
|
367
|
+
issuance_date_gte?: string
|
|
368
|
+
/** 发放时间小于等于 */
|
|
369
|
+
issuance_date_lte?: string
|
|
370
|
+
/** 创建时间大于等于(东八区) */
|
|
371
|
+
create_time_gte?: string
|
|
372
|
+
/** 创建时间小于等于(东八区) */
|
|
373
|
+
create_time_lte?: string
|
|
374
|
+
/** 更新时间大于等于(东八区) */
|
|
375
|
+
modify_time_gte?: string
|
|
376
|
+
/** 更新时间小于等于(东八区) */
|
|
377
|
+
modify_time_lte?: string
|
|
378
|
+
/** 合同主体id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/organization-management/company/list 接口进行查询) */
|
|
379
|
+
company_ids?: string[]
|
|
380
|
+
/** 任职公司id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/organization-management/company/list 接口进行查询) */
|
|
381
|
+
service_company_ids?: string[]
|
|
382
|
+
/** 部门id属于(可通过 https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get 接口进行查询) */
|
|
383
|
+
department_ids?: string[]
|
|
384
|
+
/** 序列id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/job-management/job_family/list 接口进行查询) */
|
|
385
|
+
job_family_ids?: string[]
|
|
386
|
+
/** 职级id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/job-management/job_level/list 接口进行查询) */
|
|
387
|
+
job_level_ids?: string[]
|
|
388
|
+
/** 工作地点id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/organization-management/location/list 接口进行查询) */
|
|
389
|
+
work_location_ids?: string[]
|
|
390
|
+
/** 员工类型id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/basic-infomation/employee_type/list 接口进行查询) */
|
|
391
|
+
employee_type_ids?: string[]
|
|
392
|
+
/** 入职日期大于等于 */
|
|
393
|
+
onboard_date_gte?: string
|
|
394
|
+
/** 入职日期小于等于 */
|
|
395
|
+
onboard_date_lte?: string
|
|
396
|
+
/** 离职日期大于等于 */
|
|
397
|
+
offboard_date_gte?: string
|
|
398
|
+
/** 离职日期小于等于 */
|
|
399
|
+
offboard_date_lte?: string
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export interface QueryDetailQuery extends Pagination {
|
|
403
|
+
/** 用户ID类型 */
|
|
404
|
+
user_id_type: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export interface BatchRemoveRequest {
|
|
408
|
+
/** 要删除的一次性支付记录id */
|
|
409
|
+
record_ids?: string[]
|
|
410
|
+
/** 删除原因 */
|
|
411
|
+
reason?: string
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export interface BatchRemoveResponse {
|
|
415
|
+
/** 每条记录的操作结果 */
|
|
416
|
+
operate_results?: Lark.LumpSumPaymentOperateResult[]
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
export namespace RecurringPayment {
|
|
421
|
+
export interface Methods {
|
|
422
|
+
/**
|
|
423
|
+
* 查询经常性支付记录
|
|
424
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/recurring_payment/query
|
|
425
|
+
*/
|
|
426
|
+
query(body: QueryRequest, query?: QueryQuery): Paginated<Lark.RecurringPayment, 'records'>
|
|
427
|
+
/**
|
|
428
|
+
* 批量更正经常性支付记录
|
|
429
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/recurring_payment/batch_update
|
|
430
|
+
*/
|
|
431
|
+
batchUpdate(body: BatchUpdateRequest, query?: BatchUpdateQuery): Promise<BatchUpdateResponse>
|
|
432
|
+
/**
|
|
433
|
+
* 批量删除经常性支付记录
|
|
434
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/recurring_payment/batch_remove
|
|
435
|
+
*/
|
|
436
|
+
batchRemove(body: BatchRemoveRequest): Promise<BatchRemoveResponse>
|
|
437
|
+
/**
|
|
438
|
+
* 批量创建经常性支付记录
|
|
439
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/recurring_payment/batch_create
|
|
440
|
+
*/
|
|
441
|
+
batchCreate(body: BatchCreateRequest, query?: BatchCreateQuery): Promise<BatchCreateResponse>
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export interface QueryRequest {
|
|
445
|
+
/** id属于 */
|
|
446
|
+
ids?: string[]
|
|
447
|
+
/** unique_id属于 */
|
|
448
|
+
unique_ids?: string[]
|
|
449
|
+
/** 员工id属于 */
|
|
450
|
+
user_ids?: string[]
|
|
451
|
+
/** 薪酬项id属于 */
|
|
452
|
+
item_ids?: string[]
|
|
453
|
+
/** 发放开始日期大于等于 */
|
|
454
|
+
start_date_gte?: string
|
|
455
|
+
/** 发放开始日期小于等于 */
|
|
456
|
+
start_date_lte?: string
|
|
457
|
+
/** 发放结束日期大于等于 */
|
|
458
|
+
end_date_gte?: string
|
|
459
|
+
/** 发放结束日期小于等于 */
|
|
460
|
+
end_date_lte?: string
|
|
461
|
+
/** 创建时间大于等于(东八区) */
|
|
462
|
+
create_time_gte?: string
|
|
463
|
+
/** 创建时间小于等于(东八区) */
|
|
464
|
+
create_time_lte?: string
|
|
465
|
+
/** 更新时间大于等于(东八区) */
|
|
466
|
+
modify_time_gte?: string
|
|
467
|
+
/** 更新时间小于等于(东八区) */
|
|
468
|
+
modify_time_lte?: string
|
|
469
|
+
/** 合同主体id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/organization-management/company/list 接口进行查询) */
|
|
470
|
+
company_ids?: string[]
|
|
471
|
+
/** 任职公司id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/organization-management/company/list 接口进行查询) */
|
|
472
|
+
service_company_ids?: string[]
|
|
473
|
+
/** 部门id属于(可通过 https://open.larkoffice.com/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get 接口进行查询) */
|
|
474
|
+
department_ids?: string[]
|
|
475
|
+
/** 序列id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/job-management/job_family/list 接口进行查询) */
|
|
476
|
+
job_family_ids?: string[]
|
|
477
|
+
/** 职级id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/job-management/job_level/list 接口进行查询) */
|
|
478
|
+
job_level_ids?: string[]
|
|
479
|
+
/** 工作地点id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/organization-management/location/list 接口进行查询) */
|
|
480
|
+
work_location_ids?: string[]
|
|
481
|
+
/** 员工类型id属于(可通过 https://open.larkoffice.com/document/server-docs/corehr-v1/basic-infomation/employee_type/list 接口进行查询) */
|
|
482
|
+
employee_type_ids?: string[]
|
|
483
|
+
/** 入职日期大于等于 */
|
|
484
|
+
onboard_date_gte?: string
|
|
485
|
+
/** 入职日期小于等于 */
|
|
486
|
+
onboard_date_lte?: string
|
|
487
|
+
/** 离职日期大于等于 */
|
|
488
|
+
offboard_date_gte?: string
|
|
489
|
+
/** 离职日期小于等于 */
|
|
490
|
+
offboard_date_lte?: string
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
export interface QueryQuery extends Pagination {
|
|
494
|
+
/** 用户ID类型 */
|
|
495
|
+
user_id_type: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export interface BatchUpdateRequest {
|
|
499
|
+
/** 需更正的经常性支付记录 */
|
|
500
|
+
records?: Lark.RecurringPaymentForUpdate[]
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export interface BatchUpdateQuery {
|
|
504
|
+
/** 用户ID类型 */
|
|
505
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export interface BatchUpdateResponse {
|
|
509
|
+
/** 每条记录的操作结果 */
|
|
510
|
+
operate_results?: Lark.RecurringPaymentOperateResult[]
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
export interface BatchRemoveRequest {
|
|
514
|
+
/** 需要删除的记录ID */
|
|
515
|
+
record_ids: string[]
|
|
516
|
+
/** 原因 */
|
|
517
|
+
reason?: string
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
export interface BatchRemoveResponse {
|
|
521
|
+
/** 每条记录的操作结果 */
|
|
522
|
+
operate_results?: Lark.RecurringPaymentOperateResult[]
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export interface BatchCreateRequest {
|
|
526
|
+
/** 要创建的经常性支付记录 */
|
|
527
|
+
records?: Lark.RecurringPaymentForCreate[]
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
export interface BatchCreateQuery {
|
|
531
|
+
/** 用户ID类型 */
|
|
532
|
+
user_id_type: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export interface BatchCreateResponse {
|
|
536
|
+
/** 每条记录的操作结果。对于创建成功的记录,会返回创建后的经常性支付记录id */
|
|
537
|
+
operate_results?: Lark.RecurringPaymentOperateResult[]
|
|
538
|
+
}
|
|
539
|
+
}
|
|
100
540
|
}
|
|
101
541
|
|
|
102
542
|
Internal.define({
|
|
543
|
+
'/compensation/v1/archives': {
|
|
544
|
+
POST: 'compensation.archive.create',
|
|
545
|
+
},
|
|
103
546
|
'/compensation/v1/archives/query': {
|
|
104
547
|
POST: { name: 'compensation.archive.query', pagination: { argIndex: 1 } },
|
|
105
548
|
},
|
|
@@ -118,4 +561,46 @@ Internal.define({
|
|
|
118
561
|
'/compensation/v1/change_reasons': {
|
|
119
562
|
GET: { name: 'compensation.changeReason.list', pagination: { argIndex: 0 } },
|
|
120
563
|
},
|
|
564
|
+
'/compensation/v1/social_insurances': {
|
|
565
|
+
GET: 'compensation.socialInsurance.list',
|
|
566
|
+
},
|
|
567
|
+
'/compensation/v1/social_plans/query': {
|
|
568
|
+
POST: 'compensation.socialPlan.query',
|
|
569
|
+
},
|
|
570
|
+
'/compensation/v1/social_plans': {
|
|
571
|
+
GET: { name: 'compensation.socialPlan.list', pagination: { argIndex: 0, itemsKey: 'plans' } },
|
|
572
|
+
},
|
|
573
|
+
'/compensation/v1/social_archive_adjust_record/query': {
|
|
574
|
+
POST: 'compensation.socialArchiveAdjustRecord.query',
|
|
575
|
+
},
|
|
576
|
+
'/compensation/v1/social_archive/query': {
|
|
577
|
+
POST: 'compensation.socialArchive.query',
|
|
578
|
+
},
|
|
579
|
+
'/compensation/v1/lump_sum_payment/batch_create': {
|
|
580
|
+
POST: 'compensation.lumpSumPayment.batchCreate',
|
|
581
|
+
},
|
|
582
|
+
'/compensation/v1/lump_sum_payment/batch_update': {
|
|
583
|
+
POST: 'compensation.lumpSumPayment.batchUpdate',
|
|
584
|
+
},
|
|
585
|
+
'/compensation/v1/lump_sum_payment/query': {
|
|
586
|
+
POST: { name: 'compensation.lumpSumPayment.query', pagination: { argIndex: 1, itemsKey: 'records' } },
|
|
587
|
+
},
|
|
588
|
+
'/compensation/v1/lump_sum_payment/query_detail': {
|
|
589
|
+
POST: { name: 'compensation.lumpSumPayment.queryDetail', pagination: { argIndex: 1, itemsKey: 'records' } },
|
|
590
|
+
},
|
|
591
|
+
'/compensation/v1/lump_sum_payment/batch_remove': {
|
|
592
|
+
POST: 'compensation.lumpSumPayment.batchRemove',
|
|
593
|
+
},
|
|
594
|
+
'/compensation/v1/recurring_payment/query': {
|
|
595
|
+
POST: { name: 'compensation.recurringPayment.query', pagination: { argIndex: 1, itemsKey: 'records' } },
|
|
596
|
+
},
|
|
597
|
+
'/compensation/v1/recurring_payment/batch_update': {
|
|
598
|
+
POST: 'compensation.recurringPayment.batchUpdate',
|
|
599
|
+
},
|
|
600
|
+
'/compensation/v1/recurring_payment/batch_remove': {
|
|
601
|
+
POST: 'compensation.recurringPayment.batchRemove',
|
|
602
|
+
},
|
|
603
|
+
'/compensation/v1/recurring_payment/batch_create': {
|
|
604
|
+
POST: 'compensation.recurringPayment.batchCreate',
|
|
605
|
+
},
|
|
121
606
|
})
|
package/src/types/contact.ts
CHANGED
|
@@ -181,7 +181,10 @@ export namespace Contact {
|
|
|
181
181
|
export interface CreateQuery {
|
|
182
182
|
/** 此次调用中使用的用户ID的类型 */
|
|
183
183
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
184
|
-
/**
|
|
184
|
+
/**
|
|
185
|
+
* 此次调用中使用的部门ID的类型。
|
|
186
|
+
* 不同 ID 的说明参见[部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)
|
|
187
|
+
*/
|
|
185
188
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
186
189
|
/** 用于幂等判断是否为同一请求,避免重复创建。字符串类型,自行生成。 */
|
|
187
190
|
client_token?: string
|
|
@@ -279,7 +282,10 @@ export namespace Contact {
|
|
|
279
282
|
export interface GetQuery {
|
|
280
283
|
/** 此次调用中使用的用户ID的类型 */
|
|
281
284
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
282
|
-
/**
|
|
285
|
+
/**
|
|
286
|
+
* 此次调用中使用的部门ID的类型
|
|
287
|
+
* 不同 ID 的说明 [部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)
|
|
288
|
+
*/
|
|
283
289
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
284
290
|
}
|
|
285
291
|
|
|
@@ -304,16 +310,32 @@ export namespace Contact {
|
|
|
304
310
|
export interface FindByDepartmentQuery extends Pagination {
|
|
305
311
|
/** 此次调用中使用的用户ID的类型 */
|
|
306
312
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
307
|
-
/**
|
|
313
|
+
/**
|
|
314
|
+
* 此次调用中使用的部门ID的类型
|
|
315
|
+
* 部门ID类型的区别参见[部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)
|
|
316
|
+
*/
|
|
308
317
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
309
|
-
/**
|
|
318
|
+
/**
|
|
319
|
+
* 填写该字段表示获取该部门下用户,必填。根部门的部门ID为0。
|
|
320
|
+
* ID值与查询参数中的department_id_type 对应。
|
|
321
|
+
* 不同 ID 的说明与department_id的获取方式参见 [部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)
|
|
322
|
+
*/
|
|
310
323
|
department_id: string
|
|
311
324
|
}
|
|
312
325
|
|
|
313
326
|
export interface BatchGetIdRequest {
|
|
314
|
-
/**
|
|
327
|
+
/**
|
|
328
|
+
* 要查询的用户邮箱,最多 50 条。
|
|
329
|
+
* 注意,emails与mobiles相互独立,每条用户邮箱返回对应的用户ID。
|
|
330
|
+
* 本接口返回的用户ID数量为emails数量与mobiles数量的和。
|
|
331
|
+
*/
|
|
315
332
|
emails?: string[]
|
|
316
|
-
/**
|
|
333
|
+
/**
|
|
334
|
+
* 要查询的用户手机号,最多 50 条。
|
|
335
|
+
* 注意
|
|
336
|
+
* 1. emails与mobiles相互独立,每条用户手机号返回对应的用户ID。
|
|
337
|
+
* 2. 非中国大陆地区的手机号需要添加以 “+” 开头的国家 / 地区代码。
|
|
338
|
+
*/
|
|
317
339
|
mobiles?: string[]
|
|
318
340
|
/** 查询结果包含离职员工,可查询离职用户的ID */
|
|
319
341
|
include_resigned?: boolean
|
|
@@ -495,7 +517,12 @@ export namespace Contact {
|
|
|
495
517
|
description?: string
|
|
496
518
|
/** 用户组的类型。默认为1表示普通用户组 */
|
|
497
519
|
type?: CreateRequestType
|
|
498
|
-
/**
|
|
520
|
+
/**
|
|
521
|
+
* 自定义用户组ID,可在创建时自定义,不自定义则由系统自动生成,已创建用户组不允许修改 group_id 。
|
|
522
|
+
* 自定义group_id数据校验规则:
|
|
523
|
+
* 最大长度:64 字符
|
|
524
|
+
* 校验规则:数字、大小写字母的组合,不能包含空格
|
|
525
|
+
*/
|
|
499
526
|
group_id?: string
|
|
500
527
|
}
|
|
501
528
|
|
|
@@ -514,7 +541,10 @@ export namespace Contact {
|
|
|
514
541
|
export interface PatchRequest {
|
|
515
542
|
/** 用户组的名字,企业内唯一,最大长度:100 字符 */
|
|
516
543
|
name?: string
|
|
517
|
-
/**
|
|
544
|
+
/**
|
|
545
|
+
* 用户组描述信息
|
|
546
|
+
* 最大长度:500 字
|
|
547
|
+
*/
|
|
518
548
|
description?: string
|
|
519
549
|
}
|
|
520
550
|
|
|
@@ -614,7 +644,11 @@ export namespace Contact {
|
|
|
614
644
|
}
|
|
615
645
|
|
|
616
646
|
export interface SimplelistQuery extends Pagination {
|
|
617
|
-
/**
|
|
647
|
+
/**
|
|
648
|
+
* 欲获取成员ID类型。
|
|
649
|
+
* 当member_type=user时候,member_id_type表示user_id_type,枚举值open_id, union_id和user_id。
|
|
650
|
+
* 当member_type=department时候,member_id_type表示department_id_type,枚举值open_id和department_id。
|
|
651
|
+
*/
|
|
618
652
|
member_id_type?: 'open_id' | 'union_id' | 'user_id' | 'department_id'
|
|
619
653
|
/** 欲获取的用户组成员类型。 */
|
|
620
654
|
member_type?: 'user' | 'department'
|
|
@@ -820,7 +854,10 @@ export namespace Contact {
|
|
|
820
854
|
export interface CreateQuery {
|
|
821
855
|
/** 此次调用中使用的用户ID的类型 */
|
|
822
856
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
823
|
-
/**
|
|
857
|
+
/**
|
|
858
|
+
* 此次调用中使用的部门ID的类型
|
|
859
|
+
* 不同 ID 的说明参见[部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)
|
|
860
|
+
*/
|
|
824
861
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
825
862
|
/** 用于幂等判断是否为同一请求,避免重复创建。字符串类型,自行生成。 */
|
|
826
863
|
client_token?: string
|
|
@@ -915,7 +952,10 @@ export namespace Contact {
|
|
|
915
952
|
export interface GetQuery {
|
|
916
953
|
/** 此次调用中使用的用户ID的类型 */
|
|
917
954
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
918
|
-
/**
|
|
955
|
+
/**
|
|
956
|
+
* 此次调用中使用的部门ID的类型
|
|
957
|
+
* 不同 ID 的说明 [部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)
|
|
958
|
+
*/
|
|
919
959
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
920
960
|
}
|
|
921
961
|
|
|
@@ -940,7 +980,10 @@ export namespace Contact {
|
|
|
940
980
|
export interface ChildrenQuery extends Pagination {
|
|
941
981
|
/** 此次调用中使用的用户ID的类型 */
|
|
942
982
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
943
|
-
/**
|
|
983
|
+
/**
|
|
984
|
+
* 此次调用中使用的部门ID的类型
|
|
985
|
+
* 不同 ID 的说明与department_id的获取方式参见 [部门ID说明](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0)
|
|
986
|
+
*/
|
|
944
987
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
945
988
|
/** 是否递归获取子部门 */
|
|
946
989
|
fetch_child?: boolean
|