@satorijs/adapter-lark 3.11.8 → 3.11.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs +344 -41
- package/lib/types/aily.d.ts +3 -3
- package/lib/types/apaas.d.ts +38 -28
- package/lib/types/board.d.ts +39 -0
- package/lib/types/calendar.d.ts +55 -0
- package/lib/types/cardkit.d.ts +2 -2
- package/lib/types/compensation.d.ts +400 -0
- package/lib/types/corehr.d.ts +598 -2
- package/lib/types/directory.d.ts +3 -41
- package/lib/types/docx.d.ts +23 -0
- package/lib/types/drive.d.ts +88 -88
- package/lib/types/hire.d.ts +49 -0
- package/lib/types/im.d.ts +1 -1
- package/lib/types/index.d.ts +1008 -40
- package/lib/types/payroll.d.ts +117 -81
- package/lib/types/performance.d.ts +1 -1
- package/lib/types/security_and_compliance.d.ts +254 -1
- package/package.json +1 -1
- package/src/types/aily.ts +3 -3
- package/src/types/apaas.ts +52 -38
- package/src/types/board.ts +53 -2
- package/src/types/calendar.ts +72 -0
- package/src/types/cardkit.ts +2 -2
- package/src/types/compensation.ts +485 -0
- package/src/types/corehr.ts +705 -2
- package/src/types/directory.ts +3 -53
- package/src/types/docx.ts +29 -0
- package/src/types/drive.ts +110 -110
- package/src/types/hire.ts +63 -0
- package/src/types/im.ts +1 -1
- package/src/types/index.ts +1063 -42
- package/src/types/payroll.ts +146 -103
- package/src/types/performance.ts +1 -1
- package/src/types/security_and_compliance.ts +292 -1
|
@@ -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
|
})
|