@satorijs/adapter-lark 3.11.7 → 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 +360 -47
- 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/message.ts +11 -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
package/lib/types/corehr.d.ts
CHANGED
|
@@ -27,11 +27,14 @@ export declare namespace Corehr {
|
|
|
27
27
|
company: Company.Methods;
|
|
28
28
|
costCenter: CostCenter.Methods;
|
|
29
29
|
customOrg: CustomOrg.Methods;
|
|
30
|
+
draft: Draft.Methods;
|
|
30
31
|
approvalGroups: ApprovalGroups.Methods;
|
|
31
32
|
jobFamily: JobFamily.Methods;
|
|
32
33
|
jobLevel: JobLevel.Methods;
|
|
33
34
|
jobGrade: JobGrade.Methods;
|
|
35
|
+
pathway: Pathway.Methods;
|
|
34
36
|
job: Job.Methods;
|
|
37
|
+
position: Position.Methods;
|
|
35
38
|
preHire: PreHire.Methods;
|
|
36
39
|
probation: Probation.Methods;
|
|
37
40
|
jobChange: JobChange.Methods;
|
|
@@ -1329,6 +1332,7 @@ export declare namespace Corehr {
|
|
|
1329
1332
|
namespace Employees {
|
|
1330
1333
|
interface Methods {
|
|
1331
1334
|
jobData: JobData.Methods;
|
|
1335
|
+
internationalAssignment: InternationalAssignment.Methods;
|
|
1332
1336
|
additionalJob: AdditionalJob.Methods;
|
|
1333
1337
|
bp: Bp.Methods;
|
|
1334
1338
|
}
|
|
@@ -1396,6 +1400,214 @@ export declare namespace Corehr {
|
|
|
1396
1400
|
items?: Lark.EmployeeJobData[];
|
|
1397
1401
|
}
|
|
1398
1402
|
}
|
|
1403
|
+
namespace InternationalAssignment {
|
|
1404
|
+
interface Methods {
|
|
1405
|
+
/**
|
|
1406
|
+
* 创建外派信息
|
|
1407
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-international_assignment/create
|
|
1408
|
+
*/
|
|
1409
|
+
create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>;
|
|
1410
|
+
/**
|
|
1411
|
+
* 更新外派信息
|
|
1412
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-international_assignment/patch
|
|
1413
|
+
*/
|
|
1414
|
+
patch(international_assignment_id: string, body: PatchRequest, query?: PatchQuery): Promise<PatchResponse>;
|
|
1415
|
+
/**
|
|
1416
|
+
* 批量查询外派信息
|
|
1417
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-international_assignment/list
|
|
1418
|
+
*/
|
|
1419
|
+
list(query?: ListQuery): Promise<ListResponse>;
|
|
1420
|
+
/**
|
|
1421
|
+
* 删除外派信息
|
|
1422
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-international_assignment/delete
|
|
1423
|
+
*/
|
|
1424
|
+
delete(international_assignment_id: string): Promise<void>;
|
|
1425
|
+
}
|
|
1426
|
+
interface CreateRequest {
|
|
1427
|
+
/** 外派工作地点 ID - 可通过[【批量查询地点】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list)获取 */
|
|
1428
|
+
work_location_id: string;
|
|
1429
|
+
/** 外派任职公司 ID- 可通过[【批量查询公司】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取 */
|
|
1430
|
+
service_company?: string;
|
|
1431
|
+
/** 排班类型- 可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: - object_api_name:job_data - custom_api_name:work_shift */
|
|
1432
|
+
work_shift?: string;
|
|
1433
|
+
/** 周工作时长- 限制两位小数 */
|
|
1434
|
+
weekly_working_hours_v2?: number;
|
|
1435
|
+
/** 工时制度ID- 可通过[【批量查询工时制度】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取 */
|
|
1436
|
+
working_hours_type_id?: string;
|
|
1437
|
+
/** 人员类型ID- 可通过[【批量查询人员类型】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取 */
|
|
1438
|
+
employee_type_id?: string;
|
|
1439
|
+
/** 部门 ID- 可通过[【批量查询部门】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get)获取- 类型与 department_id_type 一致 */
|
|
1440
|
+
department_id?: string;
|
|
1441
|
+
/** 职务 ID- 可通过[【批量查询职务】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取 */
|
|
1442
|
+
job_id?: string;
|
|
1443
|
+
/** 序列 ID- 可通过[【批量查询序列】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取 */
|
|
1444
|
+
job_family_id?: string;
|
|
1445
|
+
/** 职级 ID- 可通过[【批量查询职级】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取 */
|
|
1446
|
+
job_level_id?: string;
|
|
1447
|
+
/** 职等 ID- 可通过[【查询职等】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取 */
|
|
1448
|
+
job_grade_id?: string;
|
|
1449
|
+
/** 薪资类型- 可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: - object_api_name:job_data - custom_api_name:compensation_type */
|
|
1450
|
+
compensation_type?: string;
|
|
1451
|
+
/** 直属上级雇佣 ID- 可通过[【批量查询员工信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取- 类型与 user_id_type 一致 */
|
|
1452
|
+
direct_manager_id?: string;
|
|
1453
|
+
/** 虚线上级雇佣 ID- 可通过[【批量查询员工信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取- 类型与 user_id_type 一致 */
|
|
1454
|
+
dotted_line_manager_id?: string;
|
|
1455
|
+
/** 工作日历 ID- 可通过[【查询工作日历】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取 */
|
|
1456
|
+
work_calendar_id?: string;
|
|
1457
|
+
/** 岗位 ID- 功能灰度中,请联系[技术支持](https://applink.feishu.cn/TLJpeNdW) */
|
|
1458
|
+
position_id?: string;
|
|
1459
|
+
/** 雇佣 ID- 可通过[【批量查询员工信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取- 类型与 user_id_type 一致 */
|
|
1460
|
+
employment_id: string;
|
|
1461
|
+
/** 自定义字段- 请参考[【自定义字段说明】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) */
|
|
1462
|
+
custom_fields?: Lark.ObjectFieldData[];
|
|
1463
|
+
/** 外派原因说明 */
|
|
1464
|
+
international_assignment_reason?: string;
|
|
1465
|
+
/** 备注 */
|
|
1466
|
+
description?: string;
|
|
1467
|
+
/** 预计结束日期- 格式:yyyy-mm-dd */
|
|
1468
|
+
international_assignment_expected_end_date?: string;
|
|
1469
|
+
/** 外派类型- 可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: - object_api_name:international_assignment - custom_api_name:international_assignment_type */
|
|
1470
|
+
international_assignment_type: string;
|
|
1471
|
+
/** 开始日期- 格式:yyyy-mm-dd */
|
|
1472
|
+
effective_time: string;
|
|
1473
|
+
/** 结束日期- 格式:yyyy-mm-dd */
|
|
1474
|
+
expiration_time?: string;
|
|
1475
|
+
}
|
|
1476
|
+
interface CreateQuery {
|
|
1477
|
+
/** 幂等标识,服务端会忽略 client_token 重复的请求 */
|
|
1478
|
+
client_token?: string;
|
|
1479
|
+
/** 用户 ID 类型 */
|
|
1480
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1481
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1482
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1483
|
+
}
|
|
1484
|
+
interface CreateResponse {
|
|
1485
|
+
/** 外派信息 */
|
|
1486
|
+
international_assignment?: Lark.EmployeesInternationalAssignmentResp;
|
|
1487
|
+
}
|
|
1488
|
+
interface PatchRequest {
|
|
1489
|
+
/** 外派工作地点 ID - 可通过[【批量查询地点】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list)获取 */
|
|
1490
|
+
work_location_id?: string;
|
|
1491
|
+
/** 外派任职公司 ID- 可通过[【批量查询公司】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取 */
|
|
1492
|
+
service_company?: string;
|
|
1493
|
+
/** 排班类型- 可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: - object_api_name:job_data - custom_api_name:work_shift */
|
|
1494
|
+
work_shift?: string;
|
|
1495
|
+
/** 周工作时长- 限制两位小数 */
|
|
1496
|
+
weekly_working_hours_v2?: number;
|
|
1497
|
+
/** 工时制度ID- 可通过[【批量查询工时制度】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取 */
|
|
1498
|
+
working_hours_type_id?: string;
|
|
1499
|
+
/** 人员类型ID- 可通过[【批量查询人员类型】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取 */
|
|
1500
|
+
employee_type_id?: string;
|
|
1501
|
+
/** 部门 ID- 可通过[【批量查询部门】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get)获取- 类型与 department_id_type 一致 */
|
|
1502
|
+
department_id?: string;
|
|
1503
|
+
/** 职务 ID- 可通过[【批量查询职务】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取 */
|
|
1504
|
+
job_id?: string;
|
|
1505
|
+
/** 序列 ID- 可通过[【批量查询序列】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取 */
|
|
1506
|
+
job_family_id?: string;
|
|
1507
|
+
/** 职级 ID- 可通过[【批量查询职级】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取 */
|
|
1508
|
+
job_level_id?: string;
|
|
1509
|
+
/** 职等 ID- 可通过[【查询职等】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取 */
|
|
1510
|
+
job_grade_id?: string;
|
|
1511
|
+
/** 薪资类型- 可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: - object_api_name:job_data - custom_api_name:compensation_type */
|
|
1512
|
+
compensation_type?: string;
|
|
1513
|
+
/** 直属上级雇佣 ID- 可通过[【批量查询员工信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取- 类型与 user_id_type 一致 */
|
|
1514
|
+
direct_manager_id?: string;
|
|
1515
|
+
/** 虚线上级雇佣 ID- 可通过[【批量查询员工信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取- 类型与 user_id_type 一致 */
|
|
1516
|
+
dotted_line_manager_id?: string;
|
|
1517
|
+
/** 工作日历 ID- 可通过[【查询工作日历】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取 */
|
|
1518
|
+
work_calendar_id?: string;
|
|
1519
|
+
/** 岗位 ID- 功能灰度中,请联系[技术支持](https://applink.feishu.cn/TLJpeNdW) */
|
|
1520
|
+
position_id?: string;
|
|
1521
|
+
/** 自定义字段- 请参考[【自定义字段说明】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide) */
|
|
1522
|
+
custom_fields?: Lark.ObjectFieldData[];
|
|
1523
|
+
/** 外派原因说明 */
|
|
1524
|
+
international_assignment_reason?: string;
|
|
1525
|
+
/** 备注 */
|
|
1526
|
+
description?: string;
|
|
1527
|
+
/** 预计结束日期- 格式:yyyy-mm-dd */
|
|
1528
|
+
international_assignment_expected_end_date?: string;
|
|
1529
|
+
/** 外派类型- 可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: - object_api_name:international_assignment - custom_api_name:international_assignment_type */
|
|
1530
|
+
international_assignment_type?: string;
|
|
1531
|
+
/** 开始日期- 格式:yyyy-mm-dd */
|
|
1532
|
+
effective_time?: string;
|
|
1533
|
+
/** 结束日期- 格式:yyyy-mm-dd */
|
|
1534
|
+
expiration_time?: string;
|
|
1535
|
+
}
|
|
1536
|
+
interface PatchQuery {
|
|
1537
|
+
/** 幂等标识,服务端会忽略client_token重复的请求 */
|
|
1538
|
+
client_token?: string;
|
|
1539
|
+
/** 用户 ID 类型 */
|
|
1540
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1541
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1542
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1543
|
+
}
|
|
1544
|
+
interface PatchResponse {
|
|
1545
|
+
/** 外派信息 */
|
|
1546
|
+
international_assignment?: Lark.EmployeesInternationalAssignmentResp;
|
|
1547
|
+
}
|
|
1548
|
+
interface ListQuery extends Pagination {
|
|
1549
|
+
/** 用户 ID 类型 */
|
|
1550
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1551
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1552
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1553
|
+
/** 雇佣ID- 可通过[【批量查询员工信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息- 类型必须与 user_id_type 一致 */
|
|
1554
|
+
employment_ids?: string[];
|
|
1555
|
+
/** 外派 ID */
|
|
1556
|
+
international_assignment_ids?: string[];
|
|
1557
|
+
/** 外派开始日期- 范围筛选,格式:yyyy-mm-dd~yyyy-mm-dd */
|
|
1558
|
+
effective_time?: string;
|
|
1559
|
+
/** 外派结束日期- 范围筛选,格式:yyyy-mm-dd~yyyy-mm-dd */
|
|
1560
|
+
expiration_time?: string;
|
|
1561
|
+
/** 雇佣状态- 可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: - object_api_name:employment - custom_api_name:employment_status */
|
|
1562
|
+
employment_status_list?: string[];
|
|
1563
|
+
/** 外派工作地点- 可通过[【批量查询地点】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list)获取- 需要以下权限点之一: - [读取外派地点](corehr:employment.international_assignment.work_location:read) - [读写外派地点](corehr:employment.international_assignment.work_location:write) */
|
|
1564
|
+
work_location_id_list?: string[];
|
|
1565
|
+
/** 外派部门- 可通过[【批量查询部门】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get)获取- 类型与 department_id_type 一致 */
|
|
1566
|
+
department_id_list?: string[];
|
|
1567
|
+
/** 外派直属上级- 可通过[【批量查询员工信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取- 类型与 user_id_type 一致 */
|
|
1568
|
+
direct_manager_id_list?: string[];
|
|
1569
|
+
/** 外派虚线上级- 可通过[【批量查询员工信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取- 类型与 user_id_type 一致 */
|
|
1570
|
+
dotted_line_manager_id_list?: string[];
|
|
1571
|
+
/** 外派岗位- 功能灰度中,请联系[技术支持](https://applink.feishu.cn/TLJpeNdW)- 需要以下权限点之一: - [读取外派岗位](corehr:employment.international_assignment.position:read) - [读写外派岗位](corehr:employment.international_assignment.position:write) */
|
|
1572
|
+
position_id_list?: string[];
|
|
1573
|
+
/** 外派职务- 可通过[【批量查询职务】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取- 需要以下权限点之一: - [读取外派职务](corehr:employment.international_assignment.job:read) - [读写外派职务](corehr:employment.international_assignment.job:write) */
|
|
1574
|
+
job_id_list?: string[];
|
|
1575
|
+
/** 外派序列- 可通过[【批量查询序列】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取 */
|
|
1576
|
+
job_family_id_list?: string[];
|
|
1577
|
+
/** 外派职级- 可通过[【批量查询职级】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取- 需要以下权限点之一: - [读取外派职级](corehr:employment.international_assignment.job_level:read) - [读写外派职级](corehr:employment.international_assignment.job_level:write) */
|
|
1578
|
+
job_level_id_list?: string[];
|
|
1579
|
+
/** 外派职等- 可通过[【查询职等】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取- 需要以下权限点之一: - [读取外派职等](corehr:employment.international_assignment.job_grade:read) - [读写外派职等](corehr:employment.international_assignment.job_grade:write) */
|
|
1580
|
+
job_grade_id_list?: string[];
|
|
1581
|
+
/** 外派工时制度- 可通过[【批量查询工时制度】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取- 需要以下权限点之一: - [读取外派工时制度](corehr:employment.international_assignment.working_hours_type:read) - [读写外派工时制度](corehr:employment.international_assignment.working_hours_type:write) */
|
|
1582
|
+
working_hours_type_id_list?: string[];
|
|
1583
|
+
/** 外派任职公司- 可通过[【批量查询公司】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取- 需要以下权限点之一: - [读取外派公司](corehr:employment.international_assignment.service_company:read) - [读写外派公司](corehr:employment.international_assignment.service_company:write) */
|
|
1584
|
+
service_company_list?: string[];
|
|
1585
|
+
/** 外派周工作时长- 限制两位小数- 需要以下权限点之一: - [读取外派周工作时长](corehr:employment.international_assignment.weekly_working_hours:read) - [读写外派周工作时长](corehr:employment.international_assignment.weekly_working_hours:write) */
|
|
1586
|
+
weekly_working_hours_v2?: number;
|
|
1587
|
+
/** 外派排班类型- 可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: - object_api_name:job_data - custom_api_name:work_shift- 需要以下权限点之一: - [读取外派排班类型](corehr:employment.international_assignment.work_shift:read) - [读写外派排班类型](corehr:employment.international_assignment.work_shift:write) */
|
|
1588
|
+
work_shift_list?: string[];
|
|
1589
|
+
/** 外派薪资类型- 可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: - object_api_name:job_data - custom_api_name:compensation_type- 需要以下权限点之一: - [读取外派薪资类型](corehr:employment.international_assignment.compensation_type:read) - [读写外派薪资类型](corehr:employment.international_assignment.compensation_type:write) */
|
|
1590
|
+
compensation_type_list?: string[];
|
|
1591
|
+
/** 外派预计结束日期- 范围筛选,格式:yyyy-mm-dd~yyyy-mm-dd */
|
|
1592
|
+
international_assignment_expected_end_date?: string;
|
|
1593
|
+
/** 外派状态- 可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: - object_api_name:international_assignment - custom_api_name:international_assignment_status */
|
|
1594
|
+
international_assignment_status_list?: string[];
|
|
1595
|
+
/** 外派类型- 可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: - object_api_name:international_assignment - custom_api_name:international_assignment_type */
|
|
1596
|
+
international_assignment_type_list?: string[];
|
|
1597
|
+
/** 外派工作日历- 可通过[【查询工作日历】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息- 需要以下权限点之一: - [读取外派工作日历](corehr:employment.international_assignment.work_calendar:read) - [读写外派工作日历](corehr:employment.international_assignment.work_calendar:write) */
|
|
1598
|
+
work_calendar_id_list?: string[];
|
|
1599
|
+
}
|
|
1600
|
+
interface ListResponse {
|
|
1601
|
+
/** 外派信息 */
|
|
1602
|
+
items?: Lark.EmployeesInternationalAssignment[];
|
|
1603
|
+
/** 无权限的雇佣ID - 在指定雇佣ID查询时请检查该参数 - 类型与 user_id_type 一致 */
|
|
1604
|
+
no_authority_ids?: string[];
|
|
1605
|
+
/** 翻页 */
|
|
1606
|
+
page_token?: string;
|
|
1607
|
+
/** 是否有更多项 */
|
|
1608
|
+
has_more?: boolean;
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1399
1611
|
namespace AdditionalJob {
|
|
1400
1612
|
interface Methods {
|
|
1401
1613
|
/**
|
|
@@ -2737,8 +2949,34 @@ export declare namespace Corehr {
|
|
|
2737
2949
|
object_api_name: string;
|
|
2738
2950
|
}
|
|
2739
2951
|
}
|
|
2952
|
+
namespace Draft {
|
|
2953
|
+
interface Methods {
|
|
2954
|
+
/**
|
|
2955
|
+
* 根据组织架构调整 ID 查询发起的流程信息
|
|
2956
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/draft/get
|
|
2957
|
+
*/
|
|
2958
|
+
get(draft_id: string, query?: GetQuery): Promise<GetResponse>;
|
|
2959
|
+
}
|
|
2960
|
+
interface GetQuery {
|
|
2961
|
+
/** 用户 ID 类型 */
|
|
2962
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2963
|
+
}
|
|
2964
|
+
interface GetResponse {
|
|
2965
|
+
/** 组织架构调整 ID */
|
|
2966
|
+
draft_id?: string;
|
|
2967
|
+
/** 组织架构调整状态 */
|
|
2968
|
+
draft_status?: '0' | '1' | '2' | '3';
|
|
2969
|
+
/** 组织架构调整流程信息列表 */
|
|
2970
|
+
process_infos?: Lark.ProcessInfo[];
|
|
2971
|
+
}
|
|
2972
|
+
}
|
|
2740
2973
|
namespace ApprovalGroups {
|
|
2741
2974
|
interface Methods {
|
|
2975
|
+
/**
|
|
2976
|
+
* 批量查询岗位调整内容
|
|
2977
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/approval_groups/open_query_position_change_list_by_ids
|
|
2978
|
+
*/
|
|
2979
|
+
openQueryPositionChangeListByIds(body: OpenQueryPositionChangeListByIdsRequest, query?: OpenQueryPositionChangeListByIdsQuery): Promise<OpenQueryPositionChangeListByIdsResponse>;
|
|
2742
2980
|
/**
|
|
2743
2981
|
* 根据流程 ID 查询组织架构调整记录
|
|
2744
2982
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/approval_groups/get
|
|
@@ -2755,6 +2993,24 @@ export declare namespace Corehr {
|
|
|
2755
2993
|
*/
|
|
2756
2994
|
openQueryJobChangeListByIds(body: OpenQueryJobChangeListByIdsRequest, query?: OpenQueryJobChangeListByIdsQuery): Promise<OpenQueryJobChangeListByIdsResponse>;
|
|
2757
2995
|
}
|
|
2996
|
+
interface OpenQueryPositionChangeListByIdsRequest {
|
|
2997
|
+
/** 岗位调整记录 ID List */
|
|
2998
|
+
position_change_ids?: string[];
|
|
2999
|
+
/** 是否返回部门全路径 */
|
|
3000
|
+
need_department_path?: boolean;
|
|
3001
|
+
}
|
|
3002
|
+
interface OpenQueryPositionChangeListByIdsQuery {
|
|
3003
|
+
/** 组织架构调整流程 ID */
|
|
3004
|
+
process_id: string;
|
|
3005
|
+
/** 用户 ID 类型 */
|
|
3006
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3007
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
3008
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
3009
|
+
}
|
|
3010
|
+
interface OpenQueryPositionChangeListByIdsResponse {
|
|
3011
|
+
/** 岗位调整记录信息列表 */
|
|
3012
|
+
position_changes?: Lark.PositionChange[];
|
|
3013
|
+
}
|
|
2758
3014
|
interface GetQuery {
|
|
2759
3015
|
/** 用户 ID 类型 */
|
|
2760
3016
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
@@ -2828,10 +3084,15 @@ export declare namespace Corehr {
|
|
|
2828
3084
|
*/
|
|
2829
3085
|
queryRecentChange(query?: QueryRecentChangeQuery): Promise<QueryRecentChangeResponse>;
|
|
2830
3086
|
/**
|
|
2831
|
-
*
|
|
3087
|
+
* 根据条件批量获取序列信息
|
|
2832
3088
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_family/batch_get
|
|
2833
3089
|
*/
|
|
2834
3090
|
batchGet(body: BatchGetRequest): Promise<BatchGetResponse>;
|
|
3091
|
+
/**
|
|
3092
|
+
* 查询指定时间范围序列版本
|
|
3093
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_family/query_multi_timeline
|
|
3094
|
+
*/
|
|
3095
|
+
queryMultiTimeline(body: QueryMultiTimelineRequest): Promise<QueryMultiTimelineResponse>;
|
|
2835
3096
|
/**
|
|
2836
3097
|
* 删除序列
|
|
2837
3098
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/delete
|
|
@@ -2908,6 +3169,20 @@ export declare namespace Corehr {
|
|
|
2908
3169
|
/** 查询的序列信息 */
|
|
2909
3170
|
items?: Lark.JobFamily[];
|
|
2910
3171
|
}
|
|
3172
|
+
interface QueryMultiTimelineRequest {
|
|
3173
|
+
/** 序列 ID 列表 */
|
|
3174
|
+
job_family_ids: string[];
|
|
3175
|
+
/** 查询开始时间(包含) */
|
|
3176
|
+
start_date?: string;
|
|
3177
|
+
/** 查询结束时间(包含) */
|
|
3178
|
+
end_date?: string;
|
|
3179
|
+
/** 返回数据的字段列表,可选["job_family_name", "code", "active", "parent_job_family_id", "description", "effective_date"] */
|
|
3180
|
+
fields?: string[];
|
|
3181
|
+
}
|
|
3182
|
+
interface QueryMultiTimelineResponse {
|
|
3183
|
+
/** 序列信息 */
|
|
3184
|
+
items?: Lark.JobFamilyTimeline[];
|
|
3185
|
+
}
|
|
2911
3186
|
}
|
|
2912
3187
|
namespace JobLevel {
|
|
2913
3188
|
interface Methods {
|
|
@@ -2937,7 +3212,7 @@ export declare namespace Corehr {
|
|
|
2937
3212
|
*/
|
|
2938
3213
|
queryRecentChange(query?: QueryRecentChangeQuery): Promise<QueryRecentChangeResponse>;
|
|
2939
3214
|
/**
|
|
2940
|
-
*
|
|
3215
|
+
* 根据条件批量获取职级信息
|
|
2941
3216
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_level/batch_get
|
|
2942
3217
|
*/
|
|
2943
3218
|
batchGet(body: BatchGetRequest): Promise<BatchGetResponse>;
|
|
@@ -3109,6 +3384,77 @@ export declare namespace Corehr {
|
|
|
3109
3384
|
deleted_job_grade_ids?: string[];
|
|
3110
3385
|
}
|
|
3111
3386
|
}
|
|
3387
|
+
namespace Pathway {
|
|
3388
|
+
interface Methods {
|
|
3389
|
+
/**
|
|
3390
|
+
* 创建通道
|
|
3391
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pathway/create
|
|
3392
|
+
*/
|
|
3393
|
+
create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>;
|
|
3394
|
+
/**
|
|
3395
|
+
* 更新通道
|
|
3396
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pathway/patch
|
|
3397
|
+
*/
|
|
3398
|
+
patch(pathway_id: string, body: PatchRequest, query?: PatchQuery): Promise<void>;
|
|
3399
|
+
/**
|
|
3400
|
+
* 删除通道
|
|
3401
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pathway/delete
|
|
3402
|
+
*/
|
|
3403
|
+
delete(pathway_id: string): Promise<void>;
|
|
3404
|
+
/**
|
|
3405
|
+
* 启停用通道
|
|
3406
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pathway/active
|
|
3407
|
+
*/
|
|
3408
|
+
active(body: ActiveRequest): Promise<void>;
|
|
3409
|
+
/**
|
|
3410
|
+
* 获取通道信息
|
|
3411
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pathway/batch_get
|
|
3412
|
+
*/
|
|
3413
|
+
batchGet(body: BatchGetRequest): Promise<BatchGetResponse>;
|
|
3414
|
+
}
|
|
3415
|
+
interface CreateRequest {
|
|
3416
|
+
/** 编码 */
|
|
3417
|
+
code?: string;
|
|
3418
|
+
/** 名称 */
|
|
3419
|
+
names: Lark.I18n[];
|
|
3420
|
+
/** 描述 */
|
|
3421
|
+
descriptions?: Lark.I18n[];
|
|
3422
|
+
}
|
|
3423
|
+
interface CreateQuery {
|
|
3424
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
3425
|
+
client_token?: string;
|
|
3426
|
+
}
|
|
3427
|
+
interface CreateResponse {
|
|
3428
|
+
/** 通道ID */
|
|
3429
|
+
pathway_id?: string;
|
|
3430
|
+
}
|
|
3431
|
+
interface PatchRequest {
|
|
3432
|
+
/** 编码 */
|
|
3433
|
+
code?: string;
|
|
3434
|
+
/** 名称 */
|
|
3435
|
+
names?: Lark.I18n[];
|
|
3436
|
+
/** 描述 */
|
|
3437
|
+
descriptions?: Lark.I18n[];
|
|
3438
|
+
}
|
|
3439
|
+
interface PatchQuery {
|
|
3440
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
3441
|
+
client_token?: string;
|
|
3442
|
+
}
|
|
3443
|
+
interface ActiveRequest {
|
|
3444
|
+
/** 通道ID */
|
|
3445
|
+
pathway_id: string;
|
|
3446
|
+
/** 启用停用状态 */
|
|
3447
|
+
active: boolean;
|
|
3448
|
+
}
|
|
3449
|
+
interface BatchGetRequest {
|
|
3450
|
+
/** 通道 ID 列表 */
|
|
3451
|
+
pathway_ids: string[];
|
|
3452
|
+
}
|
|
3453
|
+
interface BatchGetResponse {
|
|
3454
|
+
/** 查询的通道信息 */
|
|
3455
|
+
items?: Lark.Pathway[];
|
|
3456
|
+
}
|
|
3457
|
+
}
|
|
3112
3458
|
namespace Job {
|
|
3113
3459
|
interface Methods {
|
|
3114
3460
|
/**
|
|
@@ -3136,6 +3482,16 @@ export declare namespace Corehr {
|
|
|
3136
3482
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list
|
|
3137
3483
|
*/
|
|
3138
3484
|
list(query?: ListQuery): Paginated<Lark.Job>;
|
|
3485
|
+
/**
|
|
3486
|
+
* 根据条件批量获取职务
|
|
3487
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/batch_get
|
|
3488
|
+
*/
|
|
3489
|
+
batchGet(body: BatchGetRequest, query?: BatchGetQuery): Promise<BatchGetResponse>;
|
|
3490
|
+
/**
|
|
3491
|
+
* 查询指定时间范围职务版本
|
|
3492
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/query_multi_timeline
|
|
3493
|
+
*/
|
|
3494
|
+
queryMultiTimeline(body: QueryMultiTimelineRequest): Promise<QueryMultiTimelineResponse>;
|
|
3139
3495
|
/**
|
|
3140
3496
|
* 查询当前生效信息发生变更的职务
|
|
3141
3497
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/query_recent_change
|
|
@@ -3210,6 +3566,36 @@ export declare namespace Corehr {
|
|
|
3210
3566
|
/** 语言 */
|
|
3211
3567
|
query_language?: string;
|
|
3212
3568
|
}
|
|
3569
|
+
interface BatchGetRequest {
|
|
3570
|
+
/** 职务 ID 列表 */
|
|
3571
|
+
job_ids?: string[];
|
|
3572
|
+
/** 职务 Code 列表 */
|
|
3573
|
+
job_codes?: string[];
|
|
3574
|
+
/** 返回数据的字段列表 */
|
|
3575
|
+
fields?: string[];
|
|
3576
|
+
}
|
|
3577
|
+
interface BatchGetQuery {
|
|
3578
|
+
/** 用户 ID 类型 */
|
|
3579
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3580
|
+
}
|
|
3581
|
+
interface BatchGetResponse {
|
|
3582
|
+
/** 查询的职务信息 */
|
|
3583
|
+
items?: Lark.Job[];
|
|
3584
|
+
}
|
|
3585
|
+
interface QueryMultiTimelineRequest {
|
|
3586
|
+
/** 职务 ID 列表 */
|
|
3587
|
+
job_ids: string[];
|
|
3588
|
+
/** 查询开始时间(包含) */
|
|
3589
|
+
start_date?: string;
|
|
3590
|
+
/** 查询结束时间(包含) */
|
|
3591
|
+
end_date?: string;
|
|
3592
|
+
/** 返回数据的字段列表,可选["job_name", "code", "active", "parent_job", "description", "effective_date", "expiration_date"] */
|
|
3593
|
+
fields?: string[];
|
|
3594
|
+
}
|
|
3595
|
+
interface QueryMultiTimelineResponse {
|
|
3596
|
+
/** 职务信息 */
|
|
3597
|
+
items?: Lark.JobTimeline[];
|
|
3598
|
+
}
|
|
3213
3599
|
interface QueryRecentChangeQuery extends Pagination {
|
|
3214
3600
|
/** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
|
|
3215
3601
|
start_date: string;
|
|
@@ -3227,6 +3613,176 @@ export declare namespace Corehr {
|
|
|
3227
3613
|
deleted_job_ids?: string[];
|
|
3228
3614
|
}
|
|
3229
3615
|
}
|
|
3616
|
+
namespace Position {
|
|
3617
|
+
interface Methods {
|
|
3618
|
+
/**
|
|
3619
|
+
* 创建岗位信息
|
|
3620
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/position/create
|
|
3621
|
+
*/
|
|
3622
|
+
create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>;
|
|
3623
|
+
/**
|
|
3624
|
+
* 更新岗位信息
|
|
3625
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/position/patch
|
|
3626
|
+
*/
|
|
3627
|
+
patch(position_id: string, body: PatchRequest, query?: PatchQuery): Promise<void>;
|
|
3628
|
+
/**
|
|
3629
|
+
* 查询岗位信息
|
|
3630
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/position/query
|
|
3631
|
+
*/
|
|
3632
|
+
query(body: QueryRequest, query?: QueryQuery): Paginated<Lark.Position>;
|
|
3633
|
+
/**
|
|
3634
|
+
* 查询指定时范围内当前版本信息发生变更的岗位
|
|
3635
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/position/query_recent_change
|
|
3636
|
+
*/
|
|
3637
|
+
queryRecentChange(query?: QueryRecentChangeQuery): Promise<QueryRecentChangeResponse>;
|
|
3638
|
+
/**
|
|
3639
|
+
* 启停用岗位
|
|
3640
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/position/active
|
|
3641
|
+
*/
|
|
3642
|
+
active(body: ActiveRequest): Promise<void>;
|
|
3643
|
+
/**
|
|
3644
|
+
* 删除岗位
|
|
3645
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/position/del_position
|
|
3646
|
+
*/
|
|
3647
|
+
delPosition(body: DelPositionRequest): Promise<void>;
|
|
3648
|
+
}
|
|
3649
|
+
interface CreateRequest {
|
|
3650
|
+
/** 编码 */
|
|
3651
|
+
code?: string;
|
|
3652
|
+
/** 名称 */
|
|
3653
|
+
names: Lark.I18n[];
|
|
3654
|
+
/** 描述 */
|
|
3655
|
+
descriptions?: Lark.I18n[];
|
|
3656
|
+
/** 序列 */
|
|
3657
|
+
job_family_ids?: string[];
|
|
3658
|
+
/** 成本中心 */
|
|
3659
|
+
cost_center_id?: string;
|
|
3660
|
+
/** 职务 */
|
|
3661
|
+
job_id: string;
|
|
3662
|
+
/** 职级 */
|
|
3663
|
+
job_level_ids?: string[];
|
|
3664
|
+
/** 人员类型 */
|
|
3665
|
+
employee_type_ids?: string[];
|
|
3666
|
+
/** 职等 */
|
|
3667
|
+
job_grade_ids?: string[];
|
|
3668
|
+
/** 工作地点 */
|
|
3669
|
+
work_location_ids?: string[];
|
|
3670
|
+
/** 工时制度 */
|
|
3671
|
+
working_hours_type_id?: string;
|
|
3672
|
+
/** 部门 */
|
|
3673
|
+
department_id: string;
|
|
3674
|
+
/** 直属上级岗位 */
|
|
3675
|
+
direct_leader_id?: string;
|
|
3676
|
+
/** 虚线上级岗位 */
|
|
3677
|
+
dotted_line_leader_id?: string;
|
|
3678
|
+
/** 是否关键岗位 */
|
|
3679
|
+
is_key_position?: boolean;
|
|
3680
|
+
/** 生效日期 */
|
|
3681
|
+
effective_time: string;
|
|
3682
|
+
/** 自定义字段 */
|
|
3683
|
+
custom_fields?: Lark.CustomFieldData[];
|
|
3684
|
+
}
|
|
3685
|
+
interface CreateQuery {
|
|
3686
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
3687
|
+
client_token?: string;
|
|
3688
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
3689
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
3690
|
+
}
|
|
3691
|
+
interface CreateResponse {
|
|
3692
|
+
/** 岗位ID */
|
|
3693
|
+
position_id?: string;
|
|
3694
|
+
}
|
|
3695
|
+
interface PatchRequest {
|
|
3696
|
+
/** 编码 */
|
|
3697
|
+
code?: string;
|
|
3698
|
+
/** 名称 */
|
|
3699
|
+
names?: Lark.I18n[];
|
|
3700
|
+
/** 描述 */
|
|
3701
|
+
descriptions?: Lark.I18n[];
|
|
3702
|
+
/** 序列 */
|
|
3703
|
+
job_family_ids?: string[];
|
|
3704
|
+
/** 成本中心 */
|
|
3705
|
+
cost_center_id?: string;
|
|
3706
|
+
/** 职务 */
|
|
3707
|
+
job_id?: string;
|
|
3708
|
+
/** 职级 */
|
|
3709
|
+
job_level_ids?: string[];
|
|
3710
|
+
/** 人员类型 */
|
|
3711
|
+
employee_type_ids?: string[];
|
|
3712
|
+
/** 职等 */
|
|
3713
|
+
job_grade_ids?: string[];
|
|
3714
|
+
/** 工作地点 */
|
|
3715
|
+
work_location_ids?: string[];
|
|
3716
|
+
/** 工时制度 */
|
|
3717
|
+
working_hours_type_id?: string;
|
|
3718
|
+
/** 部门 */
|
|
3719
|
+
department_id?: string;
|
|
3720
|
+
/** 直属上级岗位 */
|
|
3721
|
+
direct_leader_id?: string;
|
|
3722
|
+
/** 虚线上级岗位 */
|
|
3723
|
+
dotted_line_leader_id?: string;
|
|
3724
|
+
/** 是否关键岗位 */
|
|
3725
|
+
is_key_position?: boolean;
|
|
3726
|
+
/** 生效日期 */
|
|
3727
|
+
effective_time: string;
|
|
3728
|
+
/** 自定义字段 */
|
|
3729
|
+
custom_fields?: Lark.CustomFieldData[];
|
|
3730
|
+
}
|
|
3731
|
+
interface PatchQuery {
|
|
3732
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
3733
|
+
client_token?: string;
|
|
3734
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
3735
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
3736
|
+
}
|
|
3737
|
+
interface QueryRequest {
|
|
3738
|
+
/** 部门 ID 列表 */
|
|
3739
|
+
department_ids?: string[];
|
|
3740
|
+
/** 生效日期 */
|
|
3741
|
+
effective_time?: string;
|
|
3742
|
+
/** 启停用状态 */
|
|
3743
|
+
active?: boolean;
|
|
3744
|
+
/** 返回数据的字段列表 */
|
|
3745
|
+
fields?: string[];
|
|
3746
|
+
/** 岗位 ID 列表 */
|
|
3747
|
+
position_ids?: string[];
|
|
3748
|
+
/** 岗位 Code 列表 */
|
|
3749
|
+
position_codes?: string[];
|
|
3750
|
+
}
|
|
3751
|
+
interface QueryQuery extends Pagination {
|
|
3752
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
3753
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
3754
|
+
/** 用户 ID 类型 */
|
|
3755
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3756
|
+
}
|
|
3757
|
+
interface QueryRecentChangeQuery extends Pagination {
|
|
3758
|
+
/** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
|
|
3759
|
+
start_date: string;
|
|
3760
|
+
/** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
|
|
3761
|
+
end_date: string;
|
|
3762
|
+
}
|
|
3763
|
+
interface QueryRecentChangeResponse {
|
|
3764
|
+
/** 岗位 ID 列表 */
|
|
3765
|
+
position_ids?: string[];
|
|
3766
|
+
/** 下一页页码 */
|
|
3767
|
+
page_token?: string;
|
|
3768
|
+
/** 是否有下一页 */
|
|
3769
|
+
has_more?: boolean;
|
|
3770
|
+
/** 删除的岗位 ID 列表 */
|
|
3771
|
+
deleted_position_ids?: string[];
|
|
3772
|
+
}
|
|
3773
|
+
interface ActiveRequest {
|
|
3774
|
+
/** 岗位ID */
|
|
3775
|
+
position_id: string;
|
|
3776
|
+
/** 启用停用状态 */
|
|
3777
|
+
active: boolean;
|
|
3778
|
+
/** 生效时间 */
|
|
3779
|
+
effective_time: string;
|
|
3780
|
+
}
|
|
3781
|
+
interface DelPositionRequest {
|
|
3782
|
+
/** 岗位ID */
|
|
3783
|
+
position_id: string;
|
|
3784
|
+
}
|
|
3785
|
+
}
|
|
3230
3786
|
namespace PreHire {
|
|
3231
3787
|
interface Methods {
|
|
3232
3788
|
/**
|
|
@@ -3269,6 +3825,11 @@ export declare namespace Corehr {
|
|
|
3269
3825
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/transit_task
|
|
3270
3826
|
*/
|
|
3271
3827
|
transitTask(pre_hire_id: string, body: TransitTaskRequest): Promise<TransitTaskResponse>;
|
|
3828
|
+
/**
|
|
3829
|
+
* 流转入职任务
|
|
3830
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/transform_onboarding_task
|
|
3831
|
+
*/
|
|
3832
|
+
transformOnboardingTask(body: TransformOnboardingTaskRequest): Promise<TransformOnboardingTaskResponse>;
|
|
3272
3833
|
/**
|
|
3273
3834
|
* 操作员工完成入职
|
|
3274
3835
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/complete
|
|
@@ -3401,6 +3962,22 @@ export declare namespace Corehr {
|
|
|
3401
3962
|
/** 是否成功流转任务 */
|
|
3402
3963
|
success?: boolean;
|
|
3403
3964
|
}
|
|
3965
|
+
interface TransformOnboardingTaskRequest {
|
|
3966
|
+
/** 待入职ID,可从待入职列表接口获取 */
|
|
3967
|
+
pre_hire_id: string;
|
|
3968
|
+
/** 任务的标识ID,入职系统的任务分为预置任务和自定义任务,预置任务的task_code是系统写死的,如职位信息任务的task_code为1,自定义任务的task_code为一串UUID。待入职人员任务的task_code可以通过查询待入职接口获取 */
|
|
3969
|
+
task_code: string;
|
|
3970
|
+
/** 流转类型,描述对任务做何种流转,manual_start_task表示手动开启任务,submit_task表示提交任务,review_task表示审批任务 */
|
|
3971
|
+
transform_type: string;
|
|
3972
|
+
/** 审批结果,approve表示通过,reject表示拒绝,当审批任务时,该字段需要传值,否则报错 */
|
|
3973
|
+
review_decision?: string;
|
|
3974
|
+
/** 审批原因,审批任务时,如果审批通过,审批原因可以不填;如果审批拒绝,审批原因必填 */
|
|
3975
|
+
reason?: string;
|
|
3976
|
+
}
|
|
3977
|
+
interface TransformOnboardingTaskResponse {
|
|
3978
|
+
/** 是否成功流转任务 */
|
|
3979
|
+
success?: boolean;
|
|
3980
|
+
}
|
|
3404
3981
|
interface CompleteResponse {
|
|
3405
3982
|
/** 是否成功完成入职 */
|
|
3406
3983
|
success?: boolean;
|
|
@@ -4584,6 +5161,11 @@ export declare namespace Corehr {
|
|
|
4584
5161
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process/get
|
|
4585
5162
|
*/
|
|
4586
5163
|
get(process_id: string, query?: GetQuery): Promise<GetResponse>;
|
|
5164
|
+
/**
|
|
5165
|
+
* 获取流程数据
|
|
5166
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process/flow_variable_data
|
|
5167
|
+
*/
|
|
5168
|
+
flowVariableData(process_id: string, query?: FlowVariableDataQuery): Promise<FlowVariableDataResponse>;
|
|
4587
5169
|
}
|
|
4588
5170
|
interface ListQuery extends Pagination {
|
|
4589
5171
|
/** 查询流程状态列表。 */
|
|
@@ -4663,6 +5245,20 @@ export declare namespace Corehr {
|
|
|
4663
5245
|
/** 是否最新的「已完成」的更正流程 */
|
|
4664
5246
|
is_last_completed_correct_process?: boolean;
|
|
4665
5247
|
}
|
|
5248
|
+
interface FlowVariableDataQuery {
|
|
5249
|
+
/** 用户 ID 类型 */
|
|
5250
|
+
user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id';
|
|
5251
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
5252
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
5253
|
+
/** 需要查询变量key */
|
|
5254
|
+
variable_keys?: string[];
|
|
5255
|
+
}
|
|
5256
|
+
interface FlowVariableDataResponse {
|
|
5257
|
+
/** 流程数据 */
|
|
5258
|
+
field_variable_values?: Lark.FieldVariableValue[];
|
|
5259
|
+
/** 流程实例id */
|
|
5260
|
+
process_id?: string;
|
|
5261
|
+
}
|
|
4666
5262
|
namespace FormVariableData {
|
|
4667
5263
|
interface Methods {
|
|
4668
5264
|
/**
|