@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
package/src/types/corehr.ts
CHANGED
|
@@ -29,17 +29,24 @@ export namespace Corehr {
|
|
|
29
29
|
company: Company.Methods
|
|
30
30
|
costCenter: CostCenter.Methods
|
|
31
31
|
customOrg: CustomOrg.Methods
|
|
32
|
+
draft: Draft.Methods
|
|
32
33
|
approvalGroups: ApprovalGroups.Methods
|
|
33
34
|
jobFamily: JobFamily.Methods
|
|
34
35
|
jobLevel: JobLevel.Methods
|
|
35
36
|
jobGrade: JobGrade.Methods
|
|
37
|
+
pathway: Pathway.Methods
|
|
36
38
|
job: Job.Methods
|
|
39
|
+
position: Position.Methods
|
|
37
40
|
preHire: PreHire.Methods
|
|
38
41
|
probation: Probation.Methods
|
|
39
42
|
jobChange: JobChange.Methods
|
|
40
43
|
transferType: TransferType.Methods
|
|
41
44
|
transferReason: TransferReason.Methods
|
|
42
45
|
offboarding: Offboarding.Methods
|
|
46
|
+
signatureFile: SignatureFile.Methods
|
|
47
|
+
signatureNode: SignatureNode.Methods
|
|
48
|
+
signatureTemplate: SignatureTemplate.Methods
|
|
49
|
+
signatureTemplateInfoWithThumbnail: SignatureTemplateInfoWithThumbnail.Methods
|
|
43
50
|
contract: Contract.Methods
|
|
44
51
|
workforcePlanDetailRow: WorkforcePlanDetailRow.Methods
|
|
45
52
|
reportDetailRow: ReportDetailRow.Methods
|
|
@@ -82,7 +89,10 @@ export namespace Corehr {
|
|
|
82
89
|
}
|
|
83
90
|
|
|
84
91
|
export interface QueryQuery {
|
|
85
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* 所属对象 apiname,支持一个或多个
|
|
94
|
+
* 当前数量限制为 20 个
|
|
95
|
+
*/
|
|
86
96
|
object_api_name_list: string[]
|
|
87
97
|
}
|
|
88
98
|
|
|
@@ -125,9 +135,9 @@ export namespace Corehr {
|
|
|
125
135
|
}
|
|
126
136
|
|
|
127
137
|
export interface AddEnumOptionRequest {
|
|
128
|
-
/** 所属对象 API name,可通过[获取飞书人事对象列表](/
|
|
138
|
+
/** 所属对象 API name,可通过[获取飞书人事对象列表](https://open.feishu.cn/document/server-docs/corehr-v1/basic-infomation/custom_field/list_object_api_name)接口中返回的 `object_api_name` 字段获取 */
|
|
129
139
|
object_api_name: string
|
|
130
|
-
/** 枚举字段 API name,可通过[获取自定义字段列表](/
|
|
140
|
+
/** 枚举字段 API name,可通过[获取自定义字段列表](https://open.feishu.cn/document/server-docs/corehr-v1/basic-infomation/custom_field/query)接口中返回的 `custom_api_name` 字段获取 */
|
|
131
141
|
enum_field_api_name: string
|
|
132
142
|
/** 新增枚举选项列表 */
|
|
133
143
|
enum_field_options: Lark.EnumFieldOption[]
|
|
@@ -146,9 +156,9 @@ export namespace Corehr {
|
|
|
146
156
|
}
|
|
147
157
|
|
|
148
158
|
export interface EditEnumOptionRequest {
|
|
149
|
-
/** 所属对象 API name,可通过[获取飞书人事对象列表](/
|
|
159
|
+
/** 所属对象 API name,可通过[获取飞书人事对象列表](https://open.feishu.cn/document/server-docs/corehr-v1/basic-infomation/custom_field/list_object_api_name)接口中返回的 `object_api_name` 字段获取 */
|
|
150
160
|
object_api_name: string
|
|
151
|
-
/** 枚举字段 API name,可通过[获取自定义字段列表](/
|
|
161
|
+
/** 枚举字段 API name,可通过[获取自定义字段列表](https://open.feishu.cn/document/server-docs/corehr-v1/basic-infomation/custom_field/query)接口中返回的 `custom_api_name` 字段获取 */
|
|
152
162
|
enum_field_api_name: string
|
|
153
163
|
/** 枚举选项 */
|
|
154
164
|
enum_field_option: Lark.EnumFieldOption
|
|
@@ -261,7 +271,7 @@ export namespace Corehr {
|
|
|
261
271
|
}
|
|
262
272
|
|
|
263
273
|
export interface SearchRequest {
|
|
264
|
-
/** 国家/地区 ID 列表,可从[批量查询地点](/
|
|
274
|
+
/** 国家/地区 ID 列表,可从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.country_region_id`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.country_region_id` 等字段中获取 */
|
|
265
275
|
country_region_id_list?: string[]
|
|
266
276
|
/** 状态列表 */
|
|
267
277
|
status_list?: SearchRequestStatus[]
|
|
@@ -311,9 +321,9 @@ export namespace Corehr {
|
|
|
311
321
|
}
|
|
312
322
|
|
|
313
323
|
export interface SearchRequest {
|
|
314
|
-
/** 省份/主要行政区 ID 列表,可通过[查询省份/主要行政区信息](/
|
|
324
|
+
/** 省份/主要行政区 ID 列表,可通过[查询省份/主要行政区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search)接口列举,或从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.region_id`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.region_id` 等字段中获取 */
|
|
315
325
|
country_region_subdivision_id_list?: string[]
|
|
316
|
-
/** 城市 ID 列表,可从[批量查询地点](/
|
|
326
|
+
/** 城市 ID 列表,可从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.city_id_v2`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.city_id_v2` 等字段中获取 */
|
|
317
327
|
city_id_list?: string[]
|
|
318
328
|
/** 状态列表 */
|
|
319
329
|
status_list?: SearchRequestStatus[]
|
|
@@ -337,9 +347,9 @@ export namespace Corehr {
|
|
|
337
347
|
}
|
|
338
348
|
|
|
339
349
|
export interface SearchRequest {
|
|
340
|
-
/** 所属城市 ID 列表,可通过[查询城市信息](/
|
|
350
|
+
/** 所属城市 ID 列表,可通过[查询城市信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-city/search)接口列举,或从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.city_v2_id`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.city_v2_id` 等字段中获取 */
|
|
341
351
|
city_id_list?: string[]
|
|
342
|
-
/** 区/县 ID 列表,可从[批量查询地点](/
|
|
352
|
+
/** 区/县 ID 列表,可从[批量查询地点](https://open.feishu.cn/document/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.district_id_v2`、[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.district_id_v2` 等字段中获取 */
|
|
343
353
|
district_id_list?: string[]
|
|
344
354
|
/** 状态列表 */
|
|
345
355
|
status_list?: SearchRequestStatus[]
|
|
@@ -363,9 +373,9 @@ export namespace Corehr {
|
|
|
363
373
|
}
|
|
364
374
|
|
|
365
375
|
export interface SearchRequest {
|
|
366
|
-
/** 国籍 ID 列表,可从[搜索员工信息](/
|
|
376
|
+
/** 国籍 ID 列表,可从[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)接口返回的 `person_info.nationality_id_v2` 等字段中获取 */
|
|
367
377
|
nationality_id_list?: string[]
|
|
368
|
-
/** 国家/地区 ID 列表,可通过[查询国家/地区信息](/
|
|
378
|
+
/** 国家/地区 ID 列表,可通过[查询国家/地区信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口列举 */
|
|
369
379
|
country_region_id_list?: string[]
|
|
370
380
|
/** 状态列表 */
|
|
371
381
|
status_list?: SearchRequestStatus[]
|
|
@@ -389,7 +399,7 @@ export namespace Corehr {
|
|
|
389
399
|
}
|
|
390
400
|
|
|
391
401
|
export interface SearchRequest {
|
|
392
|
-
/** 银行 ID 列表,可通过[搜索员工信息](/
|
|
402
|
+
/** 银行 ID 列表,可通过[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)、[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_id_v2` 字段获取 */
|
|
393
403
|
bank_id_list?: string[]
|
|
394
404
|
/** 银行名称列表,支持对银行名称精确搜索 */
|
|
395
405
|
bank_name_list?: string[]
|
|
@@ -419,9 +429,9 @@ export namespace Corehr {
|
|
|
419
429
|
}
|
|
420
430
|
|
|
421
431
|
export interface SearchRequest {
|
|
422
|
-
/** 银行 ID 列表,可通过[查询银行信息](/
|
|
432
|
+
/** 银行 ID 列表,可通过[查询银行信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-bank/search)列举,或从[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)、[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_id_v2` 字段中获取 */
|
|
423
433
|
bank_id_list?: string[]
|
|
424
|
-
/** 支行 ID 列表,可通过[搜索员工信息](/
|
|
434
|
+
/** 支行 ID 列表,可通过[搜索员工信息](https://open.feishu.cn/document/server-docs/corehr-v1/employee/search)、[批量查询员工信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_branch_id_v2` 字段获取 */
|
|
425
435
|
bank_branch_id_list?: string[]
|
|
426
436
|
/** 支行名称列表,支持对支行名称精确搜索 */
|
|
427
437
|
bank_branch_name_list?: string[]
|
|
@@ -453,7 +463,7 @@ export namespace Corehr {
|
|
|
453
463
|
}
|
|
454
464
|
|
|
455
465
|
export interface SearchRequest {
|
|
456
|
-
/** 货币 ID 列表,可通过[批量查询薪资方案](/
|
|
466
|
+
/** 货币 ID 列表,可通过[批量查询薪资方案](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/plan/list)、[批量查询员工薪资档案](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/archive/query)等接口返回的 `currency_id` 字段获取 */
|
|
457
467
|
currency_id_list?: string[]
|
|
458
468
|
/** 状态列表 */
|
|
459
469
|
status_list?: SearchRequestStatus[]
|
|
@@ -862,37 +872,98 @@ export namespace Corehr {
|
|
|
862
872
|
additional_national_id_number_list?: string[]
|
|
863
873
|
/** 公民身份类型列表,精确匹配查询 */
|
|
864
874
|
citizenship_status_list?: string[]
|
|
865
|
-
/**
|
|
875
|
+
/**
|
|
876
|
+
* 成本中心 ID 列表
|
|
877
|
+
* - 可通过 [【搜索成本中心信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/search) 获取
|
|
878
|
+
*/
|
|
866
879
|
cost_center_id_list?: string[]
|
|
867
|
-
/**
|
|
880
|
+
/**
|
|
881
|
+
* 任职公司 ID 列表
|
|
882
|
+
* - [【批量查询公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取
|
|
883
|
+
*/
|
|
868
884
|
service_company_list?: string[]
|
|
869
|
-
/**
|
|
885
|
+
/**
|
|
886
|
+
* 任职公司 ID 列表(含下级)
|
|
887
|
+
* - [【批量查询公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取
|
|
888
|
+
*/
|
|
870
889
|
service_company_list_include_sub?: string[]
|
|
871
|
-
/**
|
|
890
|
+
/**
|
|
891
|
+
* 序列 ID 列表
|
|
892
|
+
* - [【批量查询序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取
|
|
893
|
+
*/
|
|
872
894
|
job_family_id_list?: string[]
|
|
873
|
-
/**
|
|
895
|
+
/**
|
|
896
|
+
* 序列 ID 列表(含下级)
|
|
897
|
+
* - [【批量查询序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取
|
|
898
|
+
*/
|
|
874
899
|
job_family_id_list_include_sub?: string[]
|
|
875
|
-
/**
|
|
900
|
+
/**
|
|
901
|
+
* 职级 ID 列表
|
|
902
|
+
* - 可通过[【批量查询职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取
|
|
903
|
+
* - 需要有字段读取权限
|
|
904
|
+
*/
|
|
876
905
|
job_level_id_list?: string[]
|
|
877
|
-
/**
|
|
906
|
+
/**
|
|
907
|
+
* 职等 ID 列表
|
|
908
|
+
* - 可通过[【查询职等】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取
|
|
909
|
+
* - 需要有字段读取权限
|
|
910
|
+
*/
|
|
878
911
|
job_grade_id_list?: string[]
|
|
879
|
-
/**
|
|
912
|
+
/**
|
|
913
|
+
* 职务 ID 列表
|
|
914
|
+
* - 可通过[【批量查询职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取
|
|
915
|
+
* - 需要有字段读取权限
|
|
916
|
+
*/
|
|
880
917
|
job_id_list?: string[]
|
|
881
|
-
/**
|
|
918
|
+
/**
|
|
919
|
+
* 岗位 ID 列表
|
|
920
|
+
* - 功能灰度中,如有需求请联系[技术支持](https://applink.feishu.cn/TLJpeNdW)
|
|
921
|
+
* - 需要有字段读取权限
|
|
922
|
+
*/
|
|
882
923
|
position_id_list?: string[]
|
|
883
|
-
/**
|
|
924
|
+
/**
|
|
925
|
+
* 岗位 ID 列表(含下级)
|
|
926
|
+
* - 功能灰度中,如有需求请联系[技术支持](https://applink.feishu.cn/TLJpeNdW)
|
|
927
|
+
* - 需要有字段读取权限
|
|
928
|
+
*/
|
|
884
929
|
position_id_list_include_sub?: string[]
|
|
885
|
-
/**
|
|
930
|
+
/**
|
|
931
|
+
* 工时制度 ID 列表
|
|
932
|
+
* - 可通过[【批量查询工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取
|
|
933
|
+
* - 需要有字段读取权限
|
|
934
|
+
*/
|
|
886
935
|
working_hours_type_id_list?: string[]
|
|
887
|
-
/**
|
|
936
|
+
/**
|
|
937
|
+
* 国籍 ID 列表
|
|
938
|
+
* - 可通过[【查询国籍信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-nationality/search)获取
|
|
939
|
+
* - 需要有字段读取权限
|
|
940
|
+
*/
|
|
888
941
|
nationality_id_list?: string[]
|
|
889
|
-
/**
|
|
942
|
+
/**
|
|
943
|
+
* 员工所属薪资组 ID 列表
|
|
944
|
+
* - 可通过 [【获取薪资组基本信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/paygroup/list) 获取
|
|
945
|
+
* - 需要有字段读取权限
|
|
946
|
+
*/
|
|
890
947
|
pay_group_id_list?: string[]
|
|
891
|
-
/**
|
|
948
|
+
/**
|
|
949
|
+
* 员工所属外派薪资组 ID 列表
|
|
950
|
+
* - 可通过 [【获取薪资组基本信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/payroll-v1/paygroup/list) 获取
|
|
951
|
+
* - 需要有字段读取权限
|
|
952
|
+
*/
|
|
892
953
|
assignment_pay_group_id_list?: string[]
|
|
893
|
-
/**
|
|
954
|
+
/**
|
|
955
|
+
* 员工当前合同类型列表
|
|
956
|
+
* - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)查询
|
|
957
|
+
* - object_api_name:contract
|
|
958
|
+
* - custom_api_name:contract_type
|
|
959
|
+
* - 需要有字段读取权限
|
|
960
|
+
*/
|
|
894
961
|
contract_type_list?: string[]
|
|
895
|
-
/**
|
|
962
|
+
/**
|
|
963
|
+
* 员工当前所属薪资方案 ID 列表
|
|
964
|
+
* - 可通过[【批量查询薪资方案】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/compensation-v1/plan/list)获取
|
|
965
|
+
* - 需要有字段读取权限
|
|
966
|
+
*/
|
|
896
967
|
archive_cpst_plan_id_list?: string[]
|
|
897
968
|
}
|
|
898
969
|
|
|
@@ -917,7 +988,11 @@ export namespace Corehr {
|
|
|
917
988
|
export interface CreateQuery {
|
|
918
989
|
/** 幂等标识,服务端会忽略client_token重复的请求 */
|
|
919
990
|
client_token?: string
|
|
920
|
-
/**
|
|
991
|
+
/**
|
|
992
|
+
* 是否为离职重聘:
|
|
993
|
+
* false: 否,系统直接标为非离职重聘人员,不再做重复判断"
|
|
994
|
+
* true: 是,要求rehire_employment_id
|
|
995
|
+
*/
|
|
921
996
|
rehire?: boolean
|
|
922
997
|
/** 离职重聘员工雇佣ID, rehire */
|
|
923
998
|
rehire_employment_id?: string
|
|
@@ -1408,7 +1483,11 @@ export namespace Corehr {
|
|
|
1408
1483
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
1409
1484
|
/** 此次调用中使用的部门 ID 类型 */
|
|
1410
1485
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
1411
|
-
/**
|
|
1486
|
+
/**
|
|
1487
|
+
* 是否强校验。值为 true 时,会对入参进行业务校验,并产生异动记录、发送异动事件。
|
|
1488
|
+
* - 默认值:false
|
|
1489
|
+
* - 仅在新增任职版本时生效,当 version_id 不为空时该字段不生效
|
|
1490
|
+
*/
|
|
1412
1491
|
strict_verify?: string
|
|
1413
1492
|
}
|
|
1414
1493
|
|
|
@@ -1449,6 +1528,7 @@ export namespace Corehr {
|
|
|
1449
1528
|
export namespace Employees {
|
|
1450
1529
|
export interface Methods {
|
|
1451
1530
|
jobData: JobData.Methods
|
|
1531
|
+
internationalAssignment: InternationalAssignment.Methods
|
|
1452
1532
|
additionalJob: AdditionalJob.Methods
|
|
1453
1533
|
bp: Bp.Methods
|
|
1454
1534
|
}
|
|
@@ -1480,9 +1560,19 @@ export namespace Corehr {
|
|
|
1480
1560
|
department_id?: string
|
|
1481
1561
|
/** 员工雇佣 ID 列表 */
|
|
1482
1562
|
employment_ids?: string[]
|
|
1483
|
-
/**
|
|
1563
|
+
/**
|
|
1564
|
+
* 是否仅查询主职
|
|
1565
|
+
* - true:仅返回 primary_job_data 为 true 的任职记录
|
|
1566
|
+
* - false:仅返回 primary_job_data 为 false 的任职记录
|
|
1567
|
+
* - 不传:返回全部
|
|
1568
|
+
*/
|
|
1484
1569
|
primary_job_data?: boolean
|
|
1485
|
-
/**
|
|
1570
|
+
/**
|
|
1571
|
+
* 任职原因
|
|
1572
|
+
* - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
1573
|
+
* - object_api_name:job_data
|
|
1574
|
+
* - custom_api_name:assignment_start_reason
|
|
1575
|
+
*/
|
|
1486
1576
|
assignment_start_reasons?: string[]
|
|
1487
1577
|
}
|
|
1488
1578
|
|
|
@@ -1504,9 +1594,19 @@ export namespace Corehr {
|
|
|
1504
1594
|
effective_date_end?: string
|
|
1505
1595
|
/** 查看数据日期,默认为今天 */
|
|
1506
1596
|
data_date?: string
|
|
1507
|
-
/**
|
|
1597
|
+
/**
|
|
1598
|
+
* 是否仅查询主职
|
|
1599
|
+
* - true:仅返回 primary_job_data 为 true 的任职记录
|
|
1600
|
+
* - false:仅返回 primary_job_data 为 false 的任职记录
|
|
1601
|
+
* - 不传:返回全部
|
|
1602
|
+
*/
|
|
1508
1603
|
primary_job_data?: boolean
|
|
1509
|
-
/**
|
|
1604
|
+
/**
|
|
1605
|
+
* 任职原因
|
|
1606
|
+
* - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
1607
|
+
* - object_api_name:job_data
|
|
1608
|
+
* - custom_api_name:assignment_start_reason
|
|
1609
|
+
*/
|
|
1510
1610
|
assignment_start_reasons?: string[]
|
|
1511
1611
|
}
|
|
1512
1612
|
|
|
@@ -1523,6 +1623,484 @@ export namespace Corehr {
|
|
|
1523
1623
|
}
|
|
1524
1624
|
}
|
|
1525
1625
|
|
|
1626
|
+
export namespace InternationalAssignment {
|
|
1627
|
+
export interface Methods {
|
|
1628
|
+
/**
|
|
1629
|
+
* 创建外派信息
|
|
1630
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-international_assignment/create
|
|
1631
|
+
*/
|
|
1632
|
+
create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>
|
|
1633
|
+
/**
|
|
1634
|
+
* 更新外派信息
|
|
1635
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-international_assignment/patch
|
|
1636
|
+
*/
|
|
1637
|
+
patch(international_assignment_id: string, body: PatchRequest, query?: PatchQuery): Promise<PatchResponse>
|
|
1638
|
+
/**
|
|
1639
|
+
* 批量查询外派信息
|
|
1640
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-international_assignment/list
|
|
1641
|
+
*/
|
|
1642
|
+
list(query?: ListQuery): Promise<ListResponse>
|
|
1643
|
+
/**
|
|
1644
|
+
* 删除外派信息
|
|
1645
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-international_assignment/delete
|
|
1646
|
+
*/
|
|
1647
|
+
delete(international_assignment_id: string): Promise<void>
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
export interface CreateRequest {
|
|
1651
|
+
/**
|
|
1652
|
+
* 外派工作地点 ID
|
|
1653
|
+
* - 可通过[【批量查询地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list)获取
|
|
1654
|
+
*/
|
|
1655
|
+
work_location_id: string
|
|
1656
|
+
/**
|
|
1657
|
+
* 外派任职公司 ID
|
|
1658
|
+
* - 可通过[【批量查询公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取
|
|
1659
|
+
*/
|
|
1660
|
+
service_company?: string
|
|
1661
|
+
/**
|
|
1662
|
+
* 排班类型
|
|
1663
|
+
* - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
1664
|
+
* - object_api_name:job_data
|
|
1665
|
+
* - custom_api_name:work_shift
|
|
1666
|
+
*/
|
|
1667
|
+
work_shift?: string
|
|
1668
|
+
/**
|
|
1669
|
+
* 周工作时长
|
|
1670
|
+
* - 限制两位小数
|
|
1671
|
+
*/
|
|
1672
|
+
weekly_working_hours_v2?: number
|
|
1673
|
+
/**
|
|
1674
|
+
* 工时制度ID
|
|
1675
|
+
* - 可通过[【批量查询工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取
|
|
1676
|
+
*/
|
|
1677
|
+
working_hours_type_id?: string
|
|
1678
|
+
/**
|
|
1679
|
+
* 人员类型ID
|
|
1680
|
+
* - 可通过[【批量查询人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取
|
|
1681
|
+
*/
|
|
1682
|
+
employee_type_id?: string
|
|
1683
|
+
/**
|
|
1684
|
+
* 部门 ID
|
|
1685
|
+
* - 可通过[【批量查询部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get)获取
|
|
1686
|
+
* - 类型与 department_id_type 一致
|
|
1687
|
+
*/
|
|
1688
|
+
department_id?: string
|
|
1689
|
+
/**
|
|
1690
|
+
* 职务 ID
|
|
1691
|
+
* - 可通过[【批量查询职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取
|
|
1692
|
+
*/
|
|
1693
|
+
job_id?: string
|
|
1694
|
+
/**
|
|
1695
|
+
* 序列 ID
|
|
1696
|
+
* - 可通过[【批量查询序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取
|
|
1697
|
+
*/
|
|
1698
|
+
job_family_id?: string
|
|
1699
|
+
/**
|
|
1700
|
+
* 职级 ID
|
|
1701
|
+
* - 可通过[【批量查询职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取
|
|
1702
|
+
*/
|
|
1703
|
+
job_level_id?: string
|
|
1704
|
+
/**
|
|
1705
|
+
* 职等 ID
|
|
1706
|
+
* - 可通过[【查询职等】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取
|
|
1707
|
+
*/
|
|
1708
|
+
job_grade_id?: string
|
|
1709
|
+
/**
|
|
1710
|
+
* 薪资类型
|
|
1711
|
+
* - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
1712
|
+
* - object_api_name:job_data
|
|
1713
|
+
* - custom_api_name:compensation_type
|
|
1714
|
+
*/
|
|
1715
|
+
compensation_type?: string
|
|
1716
|
+
/**
|
|
1717
|
+
* 直属上级雇佣 ID
|
|
1718
|
+
* - 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取
|
|
1719
|
+
* - 类型与 user_id_type 一致
|
|
1720
|
+
*/
|
|
1721
|
+
direct_manager_id?: string
|
|
1722
|
+
/**
|
|
1723
|
+
* 虚线上级雇佣 ID
|
|
1724
|
+
* - 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取
|
|
1725
|
+
* - 类型与 user_id_type 一致
|
|
1726
|
+
*/
|
|
1727
|
+
dotted_line_manager_id?: string
|
|
1728
|
+
/**
|
|
1729
|
+
* 工作日历 ID
|
|
1730
|
+
* - 可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取
|
|
1731
|
+
*/
|
|
1732
|
+
work_calendar_id?: string
|
|
1733
|
+
/**
|
|
1734
|
+
* 岗位 ID
|
|
1735
|
+
* - 功能灰度中,请联系[技术支持](https://applink.feishu.cn/TLJpeNdW)
|
|
1736
|
+
*/
|
|
1737
|
+
position_id?: string
|
|
1738
|
+
/**
|
|
1739
|
+
* 雇佣 ID
|
|
1740
|
+
* - 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取
|
|
1741
|
+
* - 类型与 user_id_type 一致
|
|
1742
|
+
*/
|
|
1743
|
+
employment_id: string
|
|
1744
|
+
/**
|
|
1745
|
+
* 自定义字段
|
|
1746
|
+
* - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)
|
|
1747
|
+
*/
|
|
1748
|
+
custom_fields?: Lark.ObjectFieldData[]
|
|
1749
|
+
/** 外派原因说明 */
|
|
1750
|
+
international_assignment_reason?: string
|
|
1751
|
+
/** 备注 */
|
|
1752
|
+
description?: string
|
|
1753
|
+
/**
|
|
1754
|
+
* 预计结束日期
|
|
1755
|
+
* - 格式:yyyy-mm-dd
|
|
1756
|
+
*/
|
|
1757
|
+
international_assignment_expected_end_date?: string
|
|
1758
|
+
/**
|
|
1759
|
+
* 外派类型
|
|
1760
|
+
* - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
1761
|
+
* - object_api_name:international_assignment
|
|
1762
|
+
* - custom_api_name:international_assignment_type
|
|
1763
|
+
*/
|
|
1764
|
+
international_assignment_type: string
|
|
1765
|
+
/**
|
|
1766
|
+
* 开始日期
|
|
1767
|
+
* - 格式:yyyy-mm-dd
|
|
1768
|
+
*/
|
|
1769
|
+
effective_time: string
|
|
1770
|
+
/**
|
|
1771
|
+
* 结束日期
|
|
1772
|
+
* - 格式:yyyy-mm-dd
|
|
1773
|
+
*/
|
|
1774
|
+
expiration_time?: string
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
export interface CreateQuery {
|
|
1778
|
+
/** 幂等标识,服务端会忽略 client_token 重复的请求 */
|
|
1779
|
+
client_token?: string
|
|
1780
|
+
/** 用户 ID 类型 */
|
|
1781
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
1782
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1783
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
export interface CreateResponse {
|
|
1787
|
+
/** 外派信息 */
|
|
1788
|
+
international_assignment?: Lark.EmployeesInternationalAssignmentResp
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
export interface PatchRequest {
|
|
1792
|
+
/**
|
|
1793
|
+
* 外派工作地点 ID
|
|
1794
|
+
* - 可通过[【批量查询地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list)获取
|
|
1795
|
+
*/
|
|
1796
|
+
work_location_id?: string
|
|
1797
|
+
/**
|
|
1798
|
+
* 外派任职公司 ID
|
|
1799
|
+
* - 可通过[【批量查询公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取
|
|
1800
|
+
*/
|
|
1801
|
+
service_company?: string
|
|
1802
|
+
/**
|
|
1803
|
+
* 排班类型
|
|
1804
|
+
* - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
1805
|
+
* - object_api_name:job_data
|
|
1806
|
+
* - custom_api_name:work_shift
|
|
1807
|
+
*/
|
|
1808
|
+
work_shift?: string
|
|
1809
|
+
/**
|
|
1810
|
+
* 周工作时长
|
|
1811
|
+
* - 限制两位小数
|
|
1812
|
+
*/
|
|
1813
|
+
weekly_working_hours_v2?: number
|
|
1814
|
+
/**
|
|
1815
|
+
* 工时制度ID
|
|
1816
|
+
* - 可通过[【批量查询工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取
|
|
1817
|
+
*/
|
|
1818
|
+
working_hours_type_id?: string
|
|
1819
|
+
/**
|
|
1820
|
+
* 人员类型ID
|
|
1821
|
+
* - 可通过[【批量查询人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取
|
|
1822
|
+
*/
|
|
1823
|
+
employee_type_id?: string
|
|
1824
|
+
/**
|
|
1825
|
+
* 部门 ID
|
|
1826
|
+
* - 可通过[【批量查询部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get)获取
|
|
1827
|
+
* - 类型与 department_id_type 一致
|
|
1828
|
+
*/
|
|
1829
|
+
department_id?: string
|
|
1830
|
+
/**
|
|
1831
|
+
* 职务 ID
|
|
1832
|
+
* - 可通过[【批量查询职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取
|
|
1833
|
+
*/
|
|
1834
|
+
job_id?: string
|
|
1835
|
+
/**
|
|
1836
|
+
* 序列 ID
|
|
1837
|
+
* - 可通过[【批量查询序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取
|
|
1838
|
+
*/
|
|
1839
|
+
job_family_id?: string
|
|
1840
|
+
/**
|
|
1841
|
+
* 职级 ID
|
|
1842
|
+
* - 可通过[【批量查询职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取
|
|
1843
|
+
*/
|
|
1844
|
+
job_level_id?: string
|
|
1845
|
+
/**
|
|
1846
|
+
* 职等 ID
|
|
1847
|
+
* - 可通过[【查询职等】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取
|
|
1848
|
+
*/
|
|
1849
|
+
job_grade_id?: string
|
|
1850
|
+
/**
|
|
1851
|
+
* 薪资类型
|
|
1852
|
+
* - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
1853
|
+
* - object_api_name:job_data
|
|
1854
|
+
* - custom_api_name:compensation_type
|
|
1855
|
+
*/
|
|
1856
|
+
compensation_type?: string
|
|
1857
|
+
/**
|
|
1858
|
+
* 直属上级雇佣 ID
|
|
1859
|
+
* - 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取
|
|
1860
|
+
* - 类型与 user_id_type 一致
|
|
1861
|
+
*/
|
|
1862
|
+
direct_manager_id?: string
|
|
1863
|
+
/**
|
|
1864
|
+
* 虚线上级雇佣 ID
|
|
1865
|
+
* - 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取
|
|
1866
|
+
* - 类型与 user_id_type 一致
|
|
1867
|
+
*/
|
|
1868
|
+
dotted_line_manager_id?: string
|
|
1869
|
+
/**
|
|
1870
|
+
* 工作日历 ID
|
|
1871
|
+
* - 可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取
|
|
1872
|
+
*/
|
|
1873
|
+
work_calendar_id?: string
|
|
1874
|
+
/**
|
|
1875
|
+
* 岗位 ID
|
|
1876
|
+
* - 功能灰度中,请联系[技术支持](https://applink.feishu.cn/TLJpeNdW)
|
|
1877
|
+
*/
|
|
1878
|
+
position_id?: string
|
|
1879
|
+
/**
|
|
1880
|
+
* 自定义字段
|
|
1881
|
+
* - 请参考[【自定义字段说明】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom-fields-guide)
|
|
1882
|
+
*/
|
|
1883
|
+
custom_fields?: Lark.ObjectFieldData[]
|
|
1884
|
+
/** 外派原因说明 */
|
|
1885
|
+
international_assignment_reason?: string
|
|
1886
|
+
/** 备注 */
|
|
1887
|
+
description?: string
|
|
1888
|
+
/**
|
|
1889
|
+
* 预计结束日期
|
|
1890
|
+
* - 格式:yyyy-mm-dd
|
|
1891
|
+
*/
|
|
1892
|
+
international_assignment_expected_end_date?: string
|
|
1893
|
+
/**
|
|
1894
|
+
* 外派类型
|
|
1895
|
+
* - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
1896
|
+
* - object_api_name:international_assignment
|
|
1897
|
+
* - custom_api_name:international_assignment_type
|
|
1898
|
+
*/
|
|
1899
|
+
international_assignment_type?: string
|
|
1900
|
+
/**
|
|
1901
|
+
* 开始日期
|
|
1902
|
+
* - 格式:yyyy-mm-dd
|
|
1903
|
+
*/
|
|
1904
|
+
effective_time?: string
|
|
1905
|
+
/**
|
|
1906
|
+
* 结束日期
|
|
1907
|
+
* - 格式:yyyy-mm-dd
|
|
1908
|
+
*/
|
|
1909
|
+
expiration_time?: string
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
export interface PatchQuery {
|
|
1913
|
+
/** 幂等标识,服务端会忽略client_token重复的请求 */
|
|
1914
|
+
client_token?: string
|
|
1915
|
+
/** 用户 ID 类型 */
|
|
1916
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
1917
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1918
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
export interface PatchResponse {
|
|
1922
|
+
/** 外派信息 */
|
|
1923
|
+
international_assignment?: Lark.EmployeesInternationalAssignmentResp
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
export interface ListQuery extends Pagination {
|
|
1927
|
+
/** 用户 ID 类型 */
|
|
1928
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
1929
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1930
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
1931
|
+
/**
|
|
1932
|
+
* 雇佣ID
|
|
1933
|
+
* - 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息
|
|
1934
|
+
* - 类型必须与 user_id_type 一致
|
|
1935
|
+
*/
|
|
1936
|
+
employment_ids?: string[]
|
|
1937
|
+
/** 外派 ID */
|
|
1938
|
+
international_assignment_ids?: string[]
|
|
1939
|
+
/**
|
|
1940
|
+
* 外派开始日期
|
|
1941
|
+
* - 范围筛选,格式:yyyy-mm-dd~yyyy-mm-dd
|
|
1942
|
+
*/
|
|
1943
|
+
effective_time?: string
|
|
1944
|
+
/**
|
|
1945
|
+
* 外派结束日期
|
|
1946
|
+
* - 范围筛选,格式:yyyy-mm-dd~yyyy-mm-dd
|
|
1947
|
+
*/
|
|
1948
|
+
expiration_time?: string
|
|
1949
|
+
/**
|
|
1950
|
+
* 雇佣状态
|
|
1951
|
+
* - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
1952
|
+
* - object_api_name:employment
|
|
1953
|
+
* - custom_api_name:employment_status
|
|
1954
|
+
*/
|
|
1955
|
+
employment_status_list?: string[]
|
|
1956
|
+
/**
|
|
1957
|
+
* 外派工作地点
|
|
1958
|
+
* - 可通过[【批量查询地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list)获取
|
|
1959
|
+
* - 需要以下权限点之一:
|
|
1960
|
+
* - [读取外派地点](corehr:employment.international_assignment.work_location:read)
|
|
1961
|
+
* - [读写外派地点](corehr:employment.international_assignment.work_location:write)
|
|
1962
|
+
*/
|
|
1963
|
+
work_location_id_list?: string[]
|
|
1964
|
+
/**
|
|
1965
|
+
* 外派部门
|
|
1966
|
+
* - 可通过[【批量查询部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get)获取
|
|
1967
|
+
* - 类型与 department_id_type 一致
|
|
1968
|
+
*/
|
|
1969
|
+
department_id_list?: string[]
|
|
1970
|
+
/**
|
|
1971
|
+
* 外派直属上级
|
|
1972
|
+
* - 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取
|
|
1973
|
+
* - 类型与 user_id_type 一致
|
|
1974
|
+
*/
|
|
1975
|
+
direct_manager_id_list?: string[]
|
|
1976
|
+
/**
|
|
1977
|
+
* 外派虚线上级
|
|
1978
|
+
* - 可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取
|
|
1979
|
+
* - 类型与 user_id_type 一致
|
|
1980
|
+
*/
|
|
1981
|
+
dotted_line_manager_id_list?: string[]
|
|
1982
|
+
/**
|
|
1983
|
+
* 外派岗位
|
|
1984
|
+
* - 功能灰度中,请联系[技术支持](https://applink.feishu.cn/TLJpeNdW)
|
|
1985
|
+
* - 需要以下权限点之一:
|
|
1986
|
+
* - [读取外派岗位](corehr:employment.international_assignment.position:read)
|
|
1987
|
+
* - [读写外派岗位](corehr:employment.international_assignment.position:write)
|
|
1988
|
+
*/
|
|
1989
|
+
position_id_list?: string[]
|
|
1990
|
+
/**
|
|
1991
|
+
* 外派职务
|
|
1992
|
+
* - 可通过[【批量查询职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取
|
|
1993
|
+
* - 需要以下权限点之一:
|
|
1994
|
+
* - [读取外派职务](corehr:employment.international_assignment.job:read)
|
|
1995
|
+
* - [读写外派职务](corehr:employment.international_assignment.job:write)
|
|
1996
|
+
*/
|
|
1997
|
+
job_id_list?: string[]
|
|
1998
|
+
/**
|
|
1999
|
+
* 外派序列
|
|
2000
|
+
* - 可通过[【批量查询序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取
|
|
2001
|
+
*/
|
|
2002
|
+
job_family_id_list?: string[]
|
|
2003
|
+
/**
|
|
2004
|
+
* 外派职级
|
|
2005
|
+
* - 可通过[【批量查询职级】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取
|
|
2006
|
+
* - 需要以下权限点之一:
|
|
2007
|
+
* - [读取外派职级](corehr:employment.international_assignment.job_level:read)
|
|
2008
|
+
* - [读写外派职级](corehr:employment.international_assignment.job_level:write)
|
|
2009
|
+
*/
|
|
2010
|
+
job_level_id_list?: string[]
|
|
2011
|
+
/**
|
|
2012
|
+
* 外派职等
|
|
2013
|
+
* - 可通过[【查询职等】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取
|
|
2014
|
+
* - 需要以下权限点之一:
|
|
2015
|
+
* - [读取外派职等](corehr:employment.international_assignment.job_grade:read)
|
|
2016
|
+
* - [读写外派职等](corehr:employment.international_assignment.job_grade:write)
|
|
2017
|
+
*/
|
|
2018
|
+
job_grade_id_list?: string[]
|
|
2019
|
+
/**
|
|
2020
|
+
* 外派工时制度
|
|
2021
|
+
* - 可通过[【批量查询工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取
|
|
2022
|
+
* - 需要以下权限点之一:
|
|
2023
|
+
* - [读取外派工时制度](corehr:employment.international_assignment.working_hours_type:read)
|
|
2024
|
+
* - [读写外派工时制度](corehr:employment.international_assignment.working_hours_type:write)
|
|
2025
|
+
*/
|
|
2026
|
+
working_hours_type_id_list?: string[]
|
|
2027
|
+
/**
|
|
2028
|
+
* 外派任职公司
|
|
2029
|
+
* - 可通过[【批量查询公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取
|
|
2030
|
+
* - 需要以下权限点之一:
|
|
2031
|
+
* - [读取外派公司](corehr:employment.international_assignment.service_company:read)
|
|
2032
|
+
* - [读写外派公司](corehr:employment.international_assignment.service_company:write)
|
|
2033
|
+
*/
|
|
2034
|
+
service_company_list?: string[]
|
|
2035
|
+
/**
|
|
2036
|
+
* 外派周工作时长
|
|
2037
|
+
* - 限制两位小数
|
|
2038
|
+
* - 需要以下权限点之一:
|
|
2039
|
+
* - [读取外派周工作时长](corehr:employment.international_assignment.weekly_working_hours:read)
|
|
2040
|
+
* - [读写外派周工作时长](corehr:employment.international_assignment.weekly_working_hours:write)
|
|
2041
|
+
*/
|
|
2042
|
+
weekly_working_hours_v2?: number
|
|
2043
|
+
/**
|
|
2044
|
+
* 外派排班类型
|
|
2045
|
+
* - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
2046
|
+
* - object_api_name:job_data
|
|
2047
|
+
* - custom_api_name:work_shift
|
|
2048
|
+
* - 需要以下权限点之一:
|
|
2049
|
+
* - [读取外派排班类型](corehr:employment.international_assignment.work_shift:read)
|
|
2050
|
+
* - [读写外派排班类型](corehr:employment.international_assignment.work_shift:write)
|
|
2051
|
+
*/
|
|
2052
|
+
work_shift_list?: string[]
|
|
2053
|
+
/**
|
|
2054
|
+
* 外派薪资类型
|
|
2055
|
+
* - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
2056
|
+
* - object_api_name:job_data
|
|
2057
|
+
* - custom_api_name:compensation_type
|
|
2058
|
+
* - 需要以下权限点之一:
|
|
2059
|
+
* - [读取外派薪资类型](corehr:employment.international_assignment.compensation_type:read)
|
|
2060
|
+
* - [读写外派薪资类型](corehr:employment.international_assignment.compensation_type:write)
|
|
2061
|
+
*/
|
|
2062
|
+
compensation_type_list?: string[]
|
|
2063
|
+
/**
|
|
2064
|
+
* 外派预计结束日期
|
|
2065
|
+
* - 范围筛选,格式:yyyy-mm-dd~yyyy-mm-dd
|
|
2066
|
+
*/
|
|
2067
|
+
international_assignment_expected_end_date?: string
|
|
2068
|
+
/**
|
|
2069
|
+
* 外派状态
|
|
2070
|
+
* - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
2071
|
+
* - object_api_name:international_assignment
|
|
2072
|
+
* - custom_api_name:international_assignment_status
|
|
2073
|
+
*/
|
|
2074
|
+
international_assignment_status_list?: string[]
|
|
2075
|
+
/**
|
|
2076
|
+
* 外派类型
|
|
2077
|
+
* - 可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
2078
|
+
* - object_api_name:international_assignment
|
|
2079
|
+
* - custom_api_name:international_assignment_type
|
|
2080
|
+
*/
|
|
2081
|
+
international_assignment_type_list?: string[]
|
|
2082
|
+
/**
|
|
2083
|
+
* 外派工作日历
|
|
2084
|
+
* - 可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息
|
|
2085
|
+
* - 需要以下权限点之一:
|
|
2086
|
+
* - [读取外派工作日历](corehr:employment.international_assignment.work_calendar:read)
|
|
2087
|
+
* - [读写外派工作日历](corehr:employment.international_assignment.work_calendar:write)
|
|
2088
|
+
*/
|
|
2089
|
+
work_calendar_id_list?: string[]
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
export interface ListResponse {
|
|
2093
|
+
/** 外派信息 */
|
|
2094
|
+
items?: Lark.EmployeesInternationalAssignment[]
|
|
2095
|
+
/** 无权限的雇佣ID - 在指定雇佣ID查询时请检查该参数 - 类型与 user_id_type 一致 */
|
|
2096
|
+
no_authority_ids?: string[]
|
|
2097
|
+
/** 翻页 */
|
|
2098
|
+
page_token?: string
|
|
2099
|
+
/** 是否有更多项 */
|
|
2100
|
+
has_more?: boolean
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
|
|
1526
2104
|
export namespace AdditionalJob {
|
|
1527
2105
|
export interface Methods {
|
|
1528
2106
|
/**
|
|
@@ -1548,39 +2126,47 @@ export namespace Corehr {
|
|
|
1548
2126
|
}
|
|
1549
2127
|
|
|
1550
2128
|
export interface CreateRequest {
|
|
1551
|
-
/** 人员类型 ID,可通过[【批量查询人员类型】](/
|
|
2129
|
+
/** 人员类型 ID,可通过[【批量查询人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取 */
|
|
1552
2130
|
employee_type_id: string
|
|
1553
|
-
/** 工时制度 ID,可通过[【批量查询工时制度】](/
|
|
2131
|
+
/** 工时制度 ID,可通过[【批量查询工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取详细信息 */
|
|
1554
2132
|
working_hours_type_id?: string
|
|
1555
|
-
/** 工作地点 ID,可通过[【批量查询地点】](/
|
|
2133
|
+
/** 工作地点 ID,可通过[【批量查询地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list)获取详细信息 */
|
|
1556
2134
|
work_location_id?: string
|
|
1557
|
-
/** 部门 ID,可通过[【批量查询部门】](/
|
|
2135
|
+
/** 部门 ID,可通过[【批量查询部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get)获取详细信息;类型与department_id_type一致 */
|
|
1558
2136
|
department_id: string
|
|
1559
|
-
/** 职务 ID,可通过[【批量查询职务】](/
|
|
2137
|
+
/** 职务 ID,可通过[【批量查询职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取详细信息 */
|
|
1560
2138
|
job_id?: string
|
|
1561
|
-
/** 职级 ID,可通过[【批量查询职级】](/
|
|
2139
|
+
/** 职级 ID,可通过[【批量查询职级】](https://open.feishu.cn/document//uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取详细信息 */
|
|
1562
2140
|
job_level_id?: string
|
|
1563
|
-
/** 序列 ID,可通过[【批量查询序列】](/
|
|
2141
|
+
/** 序列 ID,可通过[【批量查询序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取详细信息 */
|
|
1564
2142
|
job_family_id?: string
|
|
1565
|
-
/** 雇佣 ID,可通过[【批量查询员工信息】](/
|
|
2143
|
+
/** 雇佣 ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致 */
|
|
1566
2144
|
employment_id: string
|
|
1567
2145
|
/** 兼职开始日期 */
|
|
1568
2146
|
start_date: string
|
|
1569
2147
|
/** 兼职结束日期,不可清空 */
|
|
1570
2148
|
end_date?: string
|
|
1571
|
-
/** 直属上级的雇佣ID,可通过[【批量查询员工信息】](/
|
|
2149
|
+
/** 直属上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致 */
|
|
1572
2150
|
direct_manager_id?: string
|
|
1573
|
-
/** 虚线上级的雇佣ID,可通过[【批量查询员工信息】](/
|
|
2151
|
+
/** 虚线上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致 */
|
|
1574
2152
|
dotted_line_manager_id?: string
|
|
1575
|
-
/**
|
|
2153
|
+
/**
|
|
2154
|
+
* 排班类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
2155
|
+
* - object_api_name = "job_data"
|
|
2156
|
+
* - custom_api_name = "work_shift"
|
|
2157
|
+
*/
|
|
1576
2158
|
work_shift?: Lark.Enum
|
|
1577
|
-
/**
|
|
2159
|
+
/**
|
|
2160
|
+
* 薪资类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
2161
|
+
* - object_api_name = "job_data"
|
|
2162
|
+
* - custom_api_name = "compensation_type"
|
|
2163
|
+
*/
|
|
1578
2164
|
compensation_type?: Lark.Enum
|
|
1579
|
-
/** 任职公司,可通过[【批量查询公司】](/
|
|
2165
|
+
/** 任职公司,可通过[【批量查询公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取详细信息 */
|
|
1580
2166
|
service_company?: string
|
|
1581
2167
|
/** 周工作时长【0~168】 */
|
|
1582
2168
|
weekly_working_hours?: string
|
|
1583
|
-
/** 工作日历ID,可通过[【查询工作日历】](/
|
|
2169
|
+
/** 工作日历ID,可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息 */
|
|
1584
2170
|
work_calendar_id?: string
|
|
1585
2171
|
/** 岗位 ID */
|
|
1586
2172
|
position_id?: string
|
|
@@ -1602,37 +2188,45 @@ export namespace Corehr {
|
|
|
1602
2188
|
}
|
|
1603
2189
|
|
|
1604
2190
|
export interface PatchRequest {
|
|
1605
|
-
/** 人员类型 ID,可通过[【批量查询人员类型】](/
|
|
2191
|
+
/** 人员类型 ID,可通过[【批量查询人员类型】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取 */
|
|
1606
2192
|
employee_type_id?: string
|
|
1607
|
-
/** 工时制度 ID,可通过[【批量查询工时制度】](/
|
|
2193
|
+
/** 工时制度 ID,可通过[【批量查询工时制度】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取详细信息 */
|
|
1608
2194
|
working_hours_type_id?: string
|
|
1609
|
-
/** 工作地点 ID,可通过[【批量查询地点】](/
|
|
2195
|
+
/** 工作地点 ID,可通过[【批量查询地点】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list)获取详细信息 */
|
|
1610
2196
|
work_location_id?: string
|
|
1611
|
-
/** 部门 ID,可通过[【批量查询部门】](/
|
|
2197
|
+
/** 部门 ID,可通过[【批量查询部门】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get)获取详细信息;类型与department_id_type一致 */
|
|
1612
2198
|
department_id?: string
|
|
1613
|
-
/** 职务 ID,可通过[【批量查询职务】](/
|
|
2199
|
+
/** 职务 ID,可通过[【批量查询职务】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取详细信息 */
|
|
1614
2200
|
job_id?: string
|
|
1615
|
-
/** 职级 ID,可通过[【批量查询职级】](/
|
|
2201
|
+
/** 职级 ID,可通过[【批量查询职级】](https://open.feishu.cn/document//uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取详细信息 */
|
|
1616
2202
|
job_level_id?: string
|
|
1617
|
-
/** 序列 ID,可通过[【批量查询序列】](/
|
|
2203
|
+
/** 序列 ID,可通过[【批量查询序列】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取详细信息 */
|
|
1618
2204
|
job_family_id?: string
|
|
1619
2205
|
/** 兼职开始日期 */
|
|
1620
2206
|
start_date?: string
|
|
1621
2207
|
/** 兼职结束日期,不可清空 */
|
|
1622
2208
|
end_date?: string
|
|
1623
|
-
/** 直属上级的雇佣ID,可通过[【批量查询员工信息】](/
|
|
2209
|
+
/** 直属上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致 */
|
|
1624
2210
|
direct_manager_id?: string
|
|
1625
|
-
/** 虚线上级的雇佣ID,可通过[【批量查询员工信息】](/
|
|
2211
|
+
/** 虚线上级的雇佣ID,可通过[【批量查询员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致 */
|
|
1626
2212
|
dotted_line_manager_id?: string
|
|
1627
|
-
/**
|
|
2213
|
+
/**
|
|
2214
|
+
* 排班类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
2215
|
+
* - object_api_name = "job_data"
|
|
2216
|
+
* - custom_api_name = "work_shift"
|
|
2217
|
+
*/
|
|
1628
2218
|
work_shift?: Lark.Enum
|
|
1629
|
-
/**
|
|
2219
|
+
/**
|
|
2220
|
+
* 薪资类型,可通过[【获取字段详情】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:
|
|
2221
|
+
* - object_api_name = "job_data"
|
|
2222
|
+
* - custom_api_name = "compensation_type"
|
|
2223
|
+
*/
|
|
1630
2224
|
compensation_type?: Lark.Enum
|
|
1631
|
-
/** 任职公司,可通过[【批量查询公司】](/
|
|
2225
|
+
/** 任职公司,可通过[【批量查询公司】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取详细信息 */
|
|
1632
2226
|
service_company?: string
|
|
1633
2227
|
/** 周工作时长【0~168】 */
|
|
1634
2228
|
weekly_working_hours?: string
|
|
1635
|
-
/** 工作日历ID,可通过[【查询工作日历】](/
|
|
2229
|
+
/** 工作日历ID,可通过[【查询工作日历】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息 */
|
|
1636
2230
|
work_calendar_id?: string
|
|
1637
2231
|
/** 岗位 ID */
|
|
1638
2232
|
position_id?: string
|
|
@@ -2150,13 +2744,19 @@ export namespace Corehr {
|
|
|
2150
2744
|
active?: boolean
|
|
2151
2745
|
/** 当通过上级部门 ID 查询时,填写 true 返回所有子部门,填写 false 只返回直接下级部门 */
|
|
2152
2746
|
get_all_children?: boolean
|
|
2153
|
-
/**
|
|
2747
|
+
/**
|
|
2748
|
+
* manager ID 列表
|
|
2749
|
+
* **字段权限要求:按照部门负责人搜索 (corehr:department.manager.search:read)**
|
|
2750
|
+
*/
|
|
2154
2751
|
manager_list?: string[]
|
|
2155
2752
|
/** 部门 ID 列表 */
|
|
2156
2753
|
department_id_list?: string[]
|
|
2157
2754
|
/** 部门名称列表,需精确匹配 */
|
|
2158
2755
|
name_list?: string[]
|
|
2159
|
-
/**
|
|
2756
|
+
/**
|
|
2757
|
+
* 上级部门 ID ,可查询直接下级部门
|
|
2758
|
+
* **字段权限要求:按照上级部门搜索 (corehr:department.organize.search:read) **
|
|
2759
|
+
*/
|
|
2160
2760
|
parent_department_id?: string
|
|
2161
2761
|
/** 部门 code 列表 */
|
|
2162
2762
|
code_list?: string[]
|
|
@@ -2993,8 +3593,37 @@ export namespace Corehr {
|
|
|
2993
3593
|
}
|
|
2994
3594
|
}
|
|
2995
3595
|
|
|
3596
|
+
export namespace Draft {
|
|
3597
|
+
export interface Methods {
|
|
3598
|
+
/**
|
|
3599
|
+
* 根据组织架构调整 ID 查询发起的流程信息
|
|
3600
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/draft/get
|
|
3601
|
+
*/
|
|
3602
|
+
get(draft_id: string, query?: GetQuery): Promise<GetResponse>
|
|
3603
|
+
}
|
|
3604
|
+
|
|
3605
|
+
export interface GetQuery {
|
|
3606
|
+
/** 用户 ID 类型 */
|
|
3607
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
3608
|
+
}
|
|
3609
|
+
|
|
3610
|
+
export interface GetResponse {
|
|
3611
|
+
/** 组织架构调整 ID */
|
|
3612
|
+
draft_id?: string
|
|
3613
|
+
/** 组织架构调整状态 */
|
|
3614
|
+
draft_status?: '0' | '1' | '2' | '3'
|
|
3615
|
+
/** 组织架构调整流程信息列表 */
|
|
3616
|
+
process_infos?: Lark.ProcessInfo[]
|
|
3617
|
+
}
|
|
3618
|
+
}
|
|
3619
|
+
|
|
2996
3620
|
export namespace ApprovalGroups {
|
|
2997
3621
|
export interface Methods {
|
|
3622
|
+
/**
|
|
3623
|
+
* 批量查询岗位调整内容
|
|
3624
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/approval_groups/open_query_position_change_list_by_ids
|
|
3625
|
+
*/
|
|
3626
|
+
openQueryPositionChangeListByIds(body: OpenQueryPositionChangeListByIdsRequest, query?: OpenQueryPositionChangeListByIdsQuery): Promise<OpenQueryPositionChangeListByIdsResponse>
|
|
2998
3627
|
/**
|
|
2999
3628
|
* 根据流程 ID 查询组织架构调整记录
|
|
3000
3629
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/approval_groups/get
|
|
@@ -3012,6 +3641,27 @@ export namespace Corehr {
|
|
|
3012
3641
|
openQueryJobChangeListByIds(body: OpenQueryJobChangeListByIdsRequest, query?: OpenQueryJobChangeListByIdsQuery): Promise<OpenQueryJobChangeListByIdsResponse>
|
|
3013
3642
|
}
|
|
3014
3643
|
|
|
3644
|
+
export interface OpenQueryPositionChangeListByIdsRequest {
|
|
3645
|
+
/** 岗位调整记录 ID List */
|
|
3646
|
+
position_change_ids?: string[]
|
|
3647
|
+
/** 是否返回部门全路径 */
|
|
3648
|
+
need_department_path?: boolean
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3651
|
+
export interface OpenQueryPositionChangeListByIdsQuery {
|
|
3652
|
+
/** 组织架构调整流程 ID */
|
|
3653
|
+
process_id: string
|
|
3654
|
+
/** 用户 ID 类型 */
|
|
3655
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
3656
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
3657
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3660
|
+
export interface OpenQueryPositionChangeListByIdsResponse {
|
|
3661
|
+
/** 岗位调整记录信息列表 */
|
|
3662
|
+
position_changes?: Lark.PositionChange[]
|
|
3663
|
+
}
|
|
3664
|
+
|
|
3015
3665
|
export interface GetQuery {
|
|
3016
3666
|
/** 用户 ID 类型 */
|
|
3017
3667
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
@@ -3093,10 +3743,15 @@ export namespace Corehr {
|
|
|
3093
3743
|
*/
|
|
3094
3744
|
queryRecentChange(query?: QueryRecentChangeQuery): Promise<QueryRecentChangeResponse>
|
|
3095
3745
|
/**
|
|
3096
|
-
*
|
|
3746
|
+
* 根据条件批量获取序列信息
|
|
3097
3747
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_family/batch_get
|
|
3098
3748
|
*/
|
|
3099
3749
|
batchGet(body: BatchGetRequest): Promise<BatchGetResponse>
|
|
3750
|
+
/**
|
|
3751
|
+
* 查询指定时间范围序列版本
|
|
3752
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_family/query_multi_timeline
|
|
3753
|
+
*/
|
|
3754
|
+
queryMultiTimeline(body: QueryMultiTimelineRequest): Promise<QueryMultiTimelineResponse>
|
|
3100
3755
|
/**
|
|
3101
3756
|
* 删除序列
|
|
3102
3757
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/delete
|
|
@@ -3184,6 +3839,22 @@ export namespace Corehr {
|
|
|
3184
3839
|
/** 查询的序列信息 */
|
|
3185
3840
|
items?: Lark.JobFamily[]
|
|
3186
3841
|
}
|
|
3842
|
+
|
|
3843
|
+
export interface QueryMultiTimelineRequest {
|
|
3844
|
+
/** 序列 ID 列表 */
|
|
3845
|
+
job_family_ids: string[]
|
|
3846
|
+
/** 查询开始时间(包含) */
|
|
3847
|
+
start_date?: string
|
|
3848
|
+
/** 查询结束时间(包含) */
|
|
3849
|
+
end_date?: string
|
|
3850
|
+
/** 返回数据的字段列表,可选["job_family_name", "code", "active", "parent_job_family_id", "description", "effective_date"] */
|
|
3851
|
+
fields?: string[]
|
|
3852
|
+
}
|
|
3853
|
+
|
|
3854
|
+
export interface QueryMultiTimelineResponse {
|
|
3855
|
+
/** 序列信息 */
|
|
3856
|
+
items?: Lark.JobFamilyTimeline[]
|
|
3857
|
+
}
|
|
3187
3858
|
}
|
|
3188
3859
|
|
|
3189
3860
|
export namespace JobLevel {
|
|
@@ -3214,7 +3885,7 @@ export namespace Corehr {
|
|
|
3214
3885
|
*/
|
|
3215
3886
|
queryRecentChange(query?: QueryRecentChangeQuery): Promise<QueryRecentChangeResponse>
|
|
3216
3887
|
/**
|
|
3217
|
-
*
|
|
3888
|
+
* 根据条件批量获取职级信息
|
|
3218
3889
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_level/batch_get
|
|
3219
3890
|
*/
|
|
3220
3891
|
batchGet(body: BatchGetRequest): Promise<BatchGetResponse>
|
|
@@ -3407,6 +4078,86 @@ export namespace Corehr {
|
|
|
3407
4078
|
}
|
|
3408
4079
|
}
|
|
3409
4080
|
|
|
4081
|
+
export namespace Pathway {
|
|
4082
|
+
export interface Methods {
|
|
4083
|
+
/**
|
|
4084
|
+
* 创建通道
|
|
4085
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pathway/create
|
|
4086
|
+
*/
|
|
4087
|
+
create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>
|
|
4088
|
+
/**
|
|
4089
|
+
* 更新通道
|
|
4090
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pathway/patch
|
|
4091
|
+
*/
|
|
4092
|
+
patch(pathway_id: string, body: PatchRequest, query?: PatchQuery): Promise<void>
|
|
4093
|
+
/**
|
|
4094
|
+
* 删除通道
|
|
4095
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pathway/delete
|
|
4096
|
+
*/
|
|
4097
|
+
delete(pathway_id: string): Promise<void>
|
|
4098
|
+
/**
|
|
4099
|
+
* 启停用通道
|
|
4100
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pathway/active
|
|
4101
|
+
*/
|
|
4102
|
+
active(body: ActiveRequest): Promise<void>
|
|
4103
|
+
/**
|
|
4104
|
+
* 获取通道信息
|
|
4105
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pathway/batch_get
|
|
4106
|
+
*/
|
|
4107
|
+
batchGet(body: BatchGetRequest): Promise<BatchGetResponse>
|
|
4108
|
+
}
|
|
4109
|
+
|
|
4110
|
+
export interface CreateRequest {
|
|
4111
|
+
/** 编码 */
|
|
4112
|
+
code?: string
|
|
4113
|
+
/** 名称 */
|
|
4114
|
+
names: Lark.I18n[]
|
|
4115
|
+
/** 描述 */
|
|
4116
|
+
descriptions?: Lark.I18n[]
|
|
4117
|
+
}
|
|
4118
|
+
|
|
4119
|
+
export interface CreateQuery {
|
|
4120
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
4121
|
+
client_token?: string
|
|
4122
|
+
}
|
|
4123
|
+
|
|
4124
|
+
export interface CreateResponse {
|
|
4125
|
+
/** 通道ID */
|
|
4126
|
+
pathway_id?: string
|
|
4127
|
+
}
|
|
4128
|
+
|
|
4129
|
+
export interface PatchRequest {
|
|
4130
|
+
/** 编码 */
|
|
4131
|
+
code?: string
|
|
4132
|
+
/** 名称 */
|
|
4133
|
+
names?: Lark.I18n[]
|
|
4134
|
+
/** 描述 */
|
|
4135
|
+
descriptions?: Lark.I18n[]
|
|
4136
|
+
}
|
|
4137
|
+
|
|
4138
|
+
export interface PatchQuery {
|
|
4139
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
4140
|
+
client_token?: string
|
|
4141
|
+
}
|
|
4142
|
+
|
|
4143
|
+
export interface ActiveRequest {
|
|
4144
|
+
/** 通道ID */
|
|
4145
|
+
pathway_id: string
|
|
4146
|
+
/** 启用停用状态 */
|
|
4147
|
+
active: boolean
|
|
4148
|
+
}
|
|
4149
|
+
|
|
4150
|
+
export interface BatchGetRequest {
|
|
4151
|
+
/** 通道 ID 列表 */
|
|
4152
|
+
pathway_ids: string[]
|
|
4153
|
+
}
|
|
4154
|
+
|
|
4155
|
+
export interface BatchGetResponse {
|
|
4156
|
+
/** 查询的通道信息 */
|
|
4157
|
+
items?: Lark.Pathway[]
|
|
4158
|
+
}
|
|
4159
|
+
}
|
|
4160
|
+
|
|
3410
4161
|
export namespace Job {
|
|
3411
4162
|
export interface Methods {
|
|
3412
4163
|
/**
|
|
@@ -3433,88 +4184,301 @@ export namespace Corehr {
|
|
|
3433
4184
|
* 批量查询职务
|
|
3434
4185
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list
|
|
3435
4186
|
*/
|
|
3436
|
-
list(query?: ListQuery): Paginated<Lark.Job>
|
|
4187
|
+
list(query?: ListQuery): Paginated<Lark.Job>
|
|
4188
|
+
/**
|
|
4189
|
+
* 根据条件批量获取职务
|
|
4190
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/batch_get
|
|
4191
|
+
*/
|
|
4192
|
+
batchGet(body: BatchGetRequest, query?: BatchGetQuery): Promise<BatchGetResponse>
|
|
4193
|
+
/**
|
|
4194
|
+
* 查询指定时间范围职务版本
|
|
4195
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/query_multi_timeline
|
|
4196
|
+
*/
|
|
4197
|
+
queryMultiTimeline(body: QueryMultiTimelineRequest): Promise<QueryMultiTimelineResponse>
|
|
4198
|
+
/**
|
|
4199
|
+
* 查询当前生效信息发生变更的职务
|
|
4200
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/query_recent_change
|
|
4201
|
+
*/
|
|
4202
|
+
queryRecentChange(query?: QueryRecentChangeQuery): Promise<QueryRecentChangeResponse>
|
|
4203
|
+
}
|
|
4204
|
+
|
|
4205
|
+
export interface CreateRequest {
|
|
4206
|
+
/** 编码 */
|
|
4207
|
+
code?: string
|
|
4208
|
+
/** 名称 */
|
|
4209
|
+
name: Lark.I18n[]
|
|
4210
|
+
/** 描述 */
|
|
4211
|
+
description?: Lark.I18n[]
|
|
4212
|
+
/** 启用 */
|
|
4213
|
+
active: boolean
|
|
4214
|
+
/** 职务头衔 */
|
|
4215
|
+
job_title?: Lark.I18n[]
|
|
4216
|
+
/** 序列 */
|
|
4217
|
+
job_family_id_list?: string[]
|
|
4218
|
+
/** 职级 */
|
|
4219
|
+
job_level_id_list?: string[]
|
|
4220
|
+
/** 工时制度,引用WorkingHoursType的ID */
|
|
4221
|
+
working_hours_type_id?: string
|
|
4222
|
+
/** 生效时间 */
|
|
4223
|
+
effective_time: string
|
|
4224
|
+
/** 自定义字段 */
|
|
4225
|
+
custom_fields?: Lark.ObjectFieldData[]
|
|
4226
|
+
}
|
|
4227
|
+
|
|
4228
|
+
export interface CreateQuery {
|
|
4229
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
4230
|
+
client_token?: string
|
|
4231
|
+
}
|
|
4232
|
+
|
|
4233
|
+
export interface CreateResponse {
|
|
4234
|
+
job?: Lark.Job
|
|
4235
|
+
}
|
|
4236
|
+
|
|
4237
|
+
export interface PatchRequest {
|
|
4238
|
+
/** 编码 */
|
|
4239
|
+
code?: string
|
|
4240
|
+
/** 名称 */
|
|
4241
|
+
name?: Lark.I18n[]
|
|
4242
|
+
/** 描述 */
|
|
4243
|
+
description?: Lark.I18n[]
|
|
4244
|
+
/** 启用 */
|
|
4245
|
+
active?: boolean
|
|
4246
|
+
/** 职务头衔 */
|
|
4247
|
+
job_title?: Lark.I18n[]
|
|
4248
|
+
/** 序列 */
|
|
4249
|
+
job_family_id_list?: string[]
|
|
4250
|
+
/** 职级 */
|
|
4251
|
+
job_level_id_list?: string[]
|
|
4252
|
+
/** 工时制度,引用WorkingHoursType的ID */
|
|
4253
|
+
working_hours_type_id?: string
|
|
4254
|
+
/** 生效时间 */
|
|
4255
|
+
effective_time?: string
|
|
4256
|
+
/** 自定义字段 */
|
|
4257
|
+
custom_fields?: Lark.ObjectFieldData[]
|
|
4258
|
+
}
|
|
4259
|
+
|
|
4260
|
+
export interface PatchQuery {
|
|
4261
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
4262
|
+
client_token?: string
|
|
4263
|
+
}
|
|
4264
|
+
|
|
4265
|
+
export interface PatchResponse {
|
|
4266
|
+
job?: Lark.Job
|
|
4267
|
+
}
|
|
4268
|
+
|
|
4269
|
+
export interface GetResponse {
|
|
4270
|
+
/** 职务信息 */
|
|
4271
|
+
job?: Lark.Job
|
|
4272
|
+
}
|
|
4273
|
+
|
|
4274
|
+
export interface ListQuery extends Pagination {
|
|
4275
|
+
/** 名称 */
|
|
4276
|
+
name?: string
|
|
4277
|
+
/** 语言 */
|
|
4278
|
+
query_language?: string
|
|
4279
|
+
}
|
|
4280
|
+
|
|
4281
|
+
export interface BatchGetRequest {
|
|
4282
|
+
/** 职务 ID 列表 */
|
|
4283
|
+
job_ids?: string[]
|
|
4284
|
+
/** 职务 Code 列表 */
|
|
4285
|
+
job_codes?: string[]
|
|
4286
|
+
/** 返回数据的字段列表 */
|
|
4287
|
+
fields?: string[]
|
|
4288
|
+
}
|
|
4289
|
+
|
|
4290
|
+
export interface BatchGetQuery {
|
|
4291
|
+
/** 用户 ID 类型 */
|
|
4292
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
4293
|
+
}
|
|
4294
|
+
|
|
4295
|
+
export interface BatchGetResponse {
|
|
4296
|
+
/** 查询的职务信息 */
|
|
4297
|
+
items?: Lark.Job[]
|
|
4298
|
+
}
|
|
4299
|
+
|
|
4300
|
+
export interface QueryMultiTimelineRequest {
|
|
4301
|
+
/** 职务 ID 列表 */
|
|
4302
|
+
job_ids: string[]
|
|
4303
|
+
/** 查询开始时间(包含) */
|
|
4304
|
+
start_date?: string
|
|
4305
|
+
/** 查询结束时间(包含) */
|
|
4306
|
+
end_date?: string
|
|
4307
|
+
/** 返回数据的字段列表,可选["job_name", "code", "active", "parent_job", "description", "effective_date", "expiration_date"] */
|
|
4308
|
+
fields?: string[]
|
|
4309
|
+
}
|
|
4310
|
+
|
|
4311
|
+
export interface QueryMultiTimelineResponse {
|
|
4312
|
+
/** 职务信息 */
|
|
4313
|
+
items?: Lark.JobTimeline[]
|
|
4314
|
+
}
|
|
4315
|
+
|
|
4316
|
+
export interface QueryRecentChangeQuery extends Pagination {
|
|
4317
|
+
/** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
|
|
4318
|
+
start_date: string
|
|
4319
|
+
/** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
|
|
4320
|
+
end_date: string
|
|
4321
|
+
}
|
|
4322
|
+
|
|
4323
|
+
export interface QueryRecentChangeResponse {
|
|
4324
|
+
/** 职务 ID 列表 */
|
|
4325
|
+
job_ids?: string[]
|
|
4326
|
+
/** 下一页页码 */
|
|
4327
|
+
page_token?: string
|
|
4328
|
+
/** 是否有下一页 */
|
|
4329
|
+
has_more?: boolean
|
|
4330
|
+
/** 删除的职务 ID 列表 */
|
|
4331
|
+
deleted_job_ids?: string[]
|
|
4332
|
+
}
|
|
4333
|
+
}
|
|
4334
|
+
|
|
4335
|
+
export namespace Position {
|
|
4336
|
+
export interface Methods {
|
|
4337
|
+
/**
|
|
4338
|
+
* 创建岗位信息
|
|
4339
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/position/create
|
|
4340
|
+
*/
|
|
4341
|
+
create(body: CreateRequest, query?: CreateQuery): Promise<CreateResponse>
|
|
4342
|
+
/**
|
|
4343
|
+
* 更新岗位信息
|
|
4344
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/position/patch
|
|
4345
|
+
*/
|
|
4346
|
+
patch(position_id: string, body: PatchRequest, query?: PatchQuery): Promise<void>
|
|
4347
|
+
/**
|
|
4348
|
+
* 查询岗位信息
|
|
4349
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/position/query
|
|
4350
|
+
*/
|
|
4351
|
+
query(body: QueryRequest, query?: QueryQuery): Paginated<Lark.Position>
|
|
4352
|
+
/**
|
|
4353
|
+
* 查询指定时范围内当前版本信息发生变更的岗位
|
|
4354
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/position/query_recent_change
|
|
4355
|
+
*/
|
|
4356
|
+
queryRecentChange(query?: QueryRecentChangeQuery): Promise<QueryRecentChangeResponse>
|
|
4357
|
+
/**
|
|
4358
|
+
* 启停用岗位
|
|
4359
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/position/active
|
|
4360
|
+
*/
|
|
4361
|
+
active(body: ActiveRequest): Promise<void>
|
|
3437
4362
|
/**
|
|
3438
|
-
*
|
|
3439
|
-
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/
|
|
4363
|
+
* 删除岗位
|
|
4364
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/position/del_position
|
|
3440
4365
|
*/
|
|
3441
|
-
|
|
4366
|
+
delPosition(body: DelPositionRequest): Promise<void>
|
|
3442
4367
|
}
|
|
3443
4368
|
|
|
3444
4369
|
export interface CreateRequest {
|
|
3445
4370
|
/** 编码 */
|
|
3446
4371
|
code?: string
|
|
3447
4372
|
/** 名称 */
|
|
3448
|
-
|
|
4373
|
+
names: Lark.I18n[]
|
|
3449
4374
|
/** 描述 */
|
|
3450
|
-
|
|
3451
|
-
/** 启用 */
|
|
3452
|
-
active: boolean
|
|
3453
|
-
/** 职务头衔 */
|
|
3454
|
-
job_title?: Lark.I18n[]
|
|
4375
|
+
descriptions?: Lark.I18n[]
|
|
3455
4376
|
/** 序列 */
|
|
3456
|
-
|
|
4377
|
+
job_family_ids?: string[]
|
|
4378
|
+
/** 成本中心 */
|
|
4379
|
+
cost_center_id?: string
|
|
4380
|
+
/** 职务 */
|
|
4381
|
+
job_id: string
|
|
3457
4382
|
/** 职级 */
|
|
3458
|
-
|
|
3459
|
-
/**
|
|
4383
|
+
job_level_ids?: string[]
|
|
4384
|
+
/** 人员类型 */
|
|
4385
|
+
employee_type_ids?: string[]
|
|
4386
|
+
/** 职等 */
|
|
4387
|
+
job_grade_ids?: string[]
|
|
4388
|
+
/** 工作地点 */
|
|
4389
|
+
work_location_ids?: string[]
|
|
4390
|
+
/** 工时制度 */
|
|
3460
4391
|
working_hours_type_id?: string
|
|
3461
|
-
/**
|
|
4392
|
+
/** 部门 */
|
|
4393
|
+
department_id: string
|
|
4394
|
+
/** 直属上级岗位 */
|
|
4395
|
+
direct_leader_id?: string
|
|
4396
|
+
/** 虚线上级岗位 */
|
|
4397
|
+
dotted_line_leader_id?: string
|
|
4398
|
+
/** 是否关键岗位 */
|
|
4399
|
+
is_key_position?: boolean
|
|
4400
|
+
/** 生效日期 */
|
|
3462
4401
|
effective_time: string
|
|
3463
4402
|
/** 自定义字段 */
|
|
3464
|
-
custom_fields?: Lark.
|
|
4403
|
+
custom_fields?: Lark.CustomFieldData[]
|
|
3465
4404
|
}
|
|
3466
4405
|
|
|
3467
4406
|
export interface CreateQuery {
|
|
3468
4407
|
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
3469
4408
|
client_token?: string
|
|
4409
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
4410
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
3470
4411
|
}
|
|
3471
4412
|
|
|
3472
4413
|
export interface CreateResponse {
|
|
3473
|
-
|
|
4414
|
+
/** 岗位ID */
|
|
4415
|
+
position_id?: string
|
|
3474
4416
|
}
|
|
3475
4417
|
|
|
3476
4418
|
export interface PatchRequest {
|
|
3477
4419
|
/** 编码 */
|
|
3478
4420
|
code?: string
|
|
3479
4421
|
/** 名称 */
|
|
3480
|
-
|
|
4422
|
+
names?: Lark.I18n[]
|
|
3481
4423
|
/** 描述 */
|
|
3482
|
-
|
|
3483
|
-
/** 启用 */
|
|
3484
|
-
active?: boolean
|
|
3485
|
-
/** 职务头衔 */
|
|
3486
|
-
job_title?: Lark.I18n[]
|
|
4424
|
+
descriptions?: Lark.I18n[]
|
|
3487
4425
|
/** 序列 */
|
|
3488
|
-
|
|
4426
|
+
job_family_ids?: string[]
|
|
4427
|
+
/** 成本中心 */
|
|
4428
|
+
cost_center_id?: string
|
|
4429
|
+
/** 职务 */
|
|
4430
|
+
job_id?: string
|
|
3489
4431
|
/** 职级 */
|
|
3490
|
-
|
|
3491
|
-
/**
|
|
4432
|
+
job_level_ids?: string[]
|
|
4433
|
+
/** 人员类型 */
|
|
4434
|
+
employee_type_ids?: string[]
|
|
4435
|
+
/** 职等 */
|
|
4436
|
+
job_grade_ids?: string[]
|
|
4437
|
+
/** 工作地点 */
|
|
4438
|
+
work_location_ids?: string[]
|
|
4439
|
+
/** 工时制度 */
|
|
3492
4440
|
working_hours_type_id?: string
|
|
3493
|
-
/**
|
|
3494
|
-
|
|
4441
|
+
/** 部门 */
|
|
4442
|
+
department_id?: string
|
|
4443
|
+
/** 直属上级岗位 */
|
|
4444
|
+
direct_leader_id?: string
|
|
4445
|
+
/** 虚线上级岗位 */
|
|
4446
|
+
dotted_line_leader_id?: string
|
|
4447
|
+
/** 是否关键岗位 */
|
|
4448
|
+
is_key_position?: boolean
|
|
4449
|
+
/** 生效日期 */
|
|
4450
|
+
effective_time: string
|
|
3495
4451
|
/** 自定义字段 */
|
|
3496
|
-
custom_fields?: Lark.
|
|
4452
|
+
custom_fields?: Lark.CustomFieldData[]
|
|
3497
4453
|
}
|
|
3498
4454
|
|
|
3499
4455
|
export interface PatchQuery {
|
|
3500
4456
|
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
3501
4457
|
client_token?: string
|
|
4458
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
4459
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
3502
4460
|
}
|
|
3503
4461
|
|
|
3504
|
-
export interface
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
/**
|
|
3510
|
-
|
|
4462
|
+
export interface QueryRequest {
|
|
4463
|
+
/** 部门 ID 列表 */
|
|
4464
|
+
department_ids?: string[]
|
|
4465
|
+
/** 生效日期 */
|
|
4466
|
+
effective_time?: string
|
|
4467
|
+
/** 启停用状态 */
|
|
4468
|
+
active?: boolean
|
|
4469
|
+
/** 返回数据的字段列表 */
|
|
4470
|
+
fields?: string[]
|
|
4471
|
+
/** 岗位 ID 列表 */
|
|
4472
|
+
position_ids?: string[]
|
|
4473
|
+
/** 岗位 Code 列表 */
|
|
4474
|
+
position_codes?: string[]
|
|
3511
4475
|
}
|
|
3512
4476
|
|
|
3513
|
-
export interface
|
|
3514
|
-
/**
|
|
3515
|
-
|
|
3516
|
-
/**
|
|
3517
|
-
|
|
4477
|
+
export interface QueryQuery extends Pagination {
|
|
4478
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
4479
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
4480
|
+
/** 用户 ID 类型 */
|
|
4481
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
3518
4482
|
}
|
|
3519
4483
|
|
|
3520
4484
|
export interface QueryRecentChangeQuery extends Pagination {
|
|
@@ -3525,14 +4489,28 @@ export namespace Corehr {
|
|
|
3525
4489
|
}
|
|
3526
4490
|
|
|
3527
4491
|
export interface QueryRecentChangeResponse {
|
|
3528
|
-
/**
|
|
3529
|
-
|
|
4492
|
+
/** 岗位 ID 列表 */
|
|
4493
|
+
position_ids?: string[]
|
|
3530
4494
|
/** 下一页页码 */
|
|
3531
4495
|
page_token?: string
|
|
3532
4496
|
/** 是否有下一页 */
|
|
3533
4497
|
has_more?: boolean
|
|
3534
|
-
/**
|
|
3535
|
-
|
|
4498
|
+
/** 删除的岗位 ID 列表 */
|
|
4499
|
+
deleted_position_ids?: string[]
|
|
4500
|
+
}
|
|
4501
|
+
|
|
4502
|
+
export interface ActiveRequest {
|
|
4503
|
+
/** 岗位ID */
|
|
4504
|
+
position_id: string
|
|
4505
|
+
/** 启用停用状态 */
|
|
4506
|
+
active: boolean
|
|
4507
|
+
/** 生效时间 */
|
|
4508
|
+
effective_time: string
|
|
4509
|
+
}
|
|
4510
|
+
|
|
4511
|
+
export interface DelPositionRequest {
|
|
4512
|
+
/** 岗位ID */
|
|
4513
|
+
position_id: string
|
|
3536
4514
|
}
|
|
3537
4515
|
}
|
|
3538
4516
|
|
|
@@ -3578,6 +4556,11 @@ export namespace Corehr {
|
|
|
3578
4556
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/transit_task
|
|
3579
4557
|
*/
|
|
3580
4558
|
transitTask(pre_hire_id: string, body: TransitTaskRequest): Promise<TransitTaskResponse>
|
|
4559
|
+
/**
|
|
4560
|
+
* 流转入职任务
|
|
4561
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/transform_onboarding_task
|
|
4562
|
+
*/
|
|
4563
|
+
transformOnboardingTask(body: TransformOnboardingTaskRequest): Promise<TransformOnboardingTaskResponse>
|
|
3581
4564
|
/**
|
|
3582
4565
|
* 操作员工完成入职
|
|
3583
4566
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/complete
|
|
@@ -3644,11 +4627,22 @@ export namespace Corehr {
|
|
|
3644
4627
|
basic_info_update?: Lark.BasicInfoUpdate
|
|
3645
4628
|
/** 更新待入职(prehire)信息 */
|
|
3646
4629
|
offer_info_update?: Lark.OfferInfoUpdate
|
|
3647
|
-
/**
|
|
4630
|
+
/**
|
|
4631
|
+
* 指定需要更新的系统字段,只支持最多下钻一层,格式如下:
|
|
4632
|
+
* - basic_info_update字段:basic_info_update.name(对name整体进行覆盖更新);basic_info_update.emails(对邮箱整体进行更新)
|
|
4633
|
+
* - offer_info_update字段:offer_info_update.onboarding_method
|
|
4634
|
+
* - 招聘ID:ats_application_id
|
|
4635
|
+
*/
|
|
3648
4636
|
standard_update_fields?: string[]
|
|
3649
|
-
/**
|
|
4637
|
+
/**
|
|
4638
|
+
* 指定需要更新的PreHire对象上的自定义字段,格式如下:
|
|
4639
|
+
* - custom_field1__c
|
|
4640
|
+
*/
|
|
3650
4641
|
custom_update_fields?: string[]
|
|
3651
|
-
/**
|
|
4642
|
+
/**
|
|
4643
|
+
* 指定需要更新的Person对象上的自定义字段,格式如下:
|
|
4644
|
+
* - custom_field1__c
|
|
4645
|
+
*/
|
|
3652
4646
|
person_custom_update_fields?: string[]
|
|
3653
4647
|
}
|
|
3654
4648
|
|
|
@@ -3660,7 +4654,18 @@ export namespace Corehr {
|
|
|
3660
4654
|
export interface QueryRequest {
|
|
3661
4655
|
/** 待入职人员 ID 列表;如果该字段非空,则不按照page_size、page_token分页方式查询 */
|
|
3662
4656
|
pre_hire_ids?: string[]
|
|
3663
|
-
/**
|
|
4657
|
+
/**
|
|
4658
|
+
* 返回数据的字段列表,填写方式:
|
|
4659
|
+
* - 为空时只返回 pre_hire_id
|
|
4660
|
+
* - 不为空时按照传入的字段返回数据,格式如下:
|
|
4661
|
+
* - person_info 字段:person_info.gender,person_info.age
|
|
4662
|
+
* - employment_info 字段:employment_info.department
|
|
4663
|
+
* - onboarding_info 字段:onboarding_info.onboarding_date
|
|
4664
|
+
* - probation_info 字段:probation_info.probation_period
|
|
4665
|
+
* - contract_info 字段:contract_info.contract_type
|
|
4666
|
+
* - 如果要返回所有下级,只用传上级结构体名称,例如 person_info
|
|
4667
|
+
* - 返回数据越多,查询接口性能越慢,请按需填写返回字段
|
|
4668
|
+
*/
|
|
3664
4669
|
fields?: string[]
|
|
3665
4670
|
}
|
|
3666
4671
|
|
|
@@ -3704,7 +4709,18 @@ export namespace Corehr {
|
|
|
3704
4709
|
key_word?: string
|
|
3705
4710
|
/** 是否离职重聘 */
|
|
3706
4711
|
rehire?: 'to_be_confirmed' | 'no' | 'yes'
|
|
3707
|
-
/**
|
|
4712
|
+
/**
|
|
4713
|
+
* 返回数据的字段列表,填写方式:
|
|
4714
|
+
* - 为空时只返回 pre_hire_id
|
|
4715
|
+
* - 不为空时按照传入的字段返回数据,格式如下:
|
|
4716
|
+
* - person_info 字段:person_info.gender,person_info.age
|
|
4717
|
+
* - employment_info 字段:employment_info.department
|
|
4718
|
+
* - onboarding_info 字段:onboarding_info.onboarding_date
|
|
4719
|
+
* - probation_info 字段:probation_info.probation_period
|
|
4720
|
+
* - contract_info 字段:contract_info.contract_type
|
|
4721
|
+
* - 如果要返回所有下级,只用传上级结构体名称,例如 person_info
|
|
4722
|
+
* - 返回数据越多,查询接口性能越慢,请按需填写返回字段
|
|
4723
|
+
*/
|
|
3708
4724
|
fields?: string[]
|
|
3709
4725
|
}
|
|
3710
4726
|
|
|
@@ -3725,6 +4741,24 @@ export namespace Corehr {
|
|
|
3725
4741
|
success?: boolean
|
|
3726
4742
|
}
|
|
3727
4743
|
|
|
4744
|
+
export interface TransformOnboardingTaskRequest {
|
|
4745
|
+
/** 待入职ID,可从待入职列表接口获取 */
|
|
4746
|
+
pre_hire_id: string
|
|
4747
|
+
/** 任务的标识ID,入职系统的任务分为预置任务和自定义任务,预置任务的task_code是系统写死的,如职位信息任务的task_code为1,自定义任务的task_code为一串UUID。待入职人员任务的task_code可以通过查询待入职接口获取 */
|
|
4748
|
+
task_code: string
|
|
4749
|
+
/** 流转类型,描述对任务做何种流转,manual_start_task表示手动开启任务,submit_task表示提交任务,review_task表示审批任务 */
|
|
4750
|
+
transform_type: string
|
|
4751
|
+
/** 审批结果,approve表示通过,reject表示拒绝,当审批任务时,该字段需要传值,否则报错 */
|
|
4752
|
+
review_decision?: string
|
|
4753
|
+
/** 审批原因,审批任务时,如果审批通过,审批原因可以不填;如果审批拒绝,审批原因必填 */
|
|
4754
|
+
reason?: string
|
|
4755
|
+
}
|
|
4756
|
+
|
|
4757
|
+
export interface TransformOnboardingTaskResponse {
|
|
4758
|
+
/** 是否成功流转任务 */
|
|
4759
|
+
success?: boolean
|
|
4760
|
+
}
|
|
4761
|
+
|
|
3728
4762
|
export interface CompleteResponse {
|
|
3729
4763
|
/** 是否成功完成入职 */
|
|
3730
4764
|
success?: boolean
|
|
@@ -4259,7 +5293,10 @@ export namespace Corehr {
|
|
|
4259
5293
|
employment_id: string
|
|
4260
5294
|
/** 离职日期 */
|
|
4261
5295
|
offboarding_date: string
|
|
4262
|
-
/**
|
|
5296
|
+
/**
|
|
5297
|
+
* 离职原因,可通过接口
|
|
5298
|
+
* [【查询员工离职原因列表】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/offboarding/query)获取
|
|
5299
|
+
*/
|
|
4263
5300
|
offboarding_reason_unique_identifier: string
|
|
4264
5301
|
/** 离职原因说明,长度限制6000 */
|
|
4265
5302
|
offboarding_reason_explanation?: string
|
|
@@ -4302,6 +5339,194 @@ export namespace Corehr {
|
|
|
4302
5339
|
}
|
|
4303
5340
|
}
|
|
4304
5341
|
|
|
5342
|
+
export namespace SignatureFile {
|
|
5343
|
+
export interface Methods {
|
|
5344
|
+
/**
|
|
5345
|
+
* 终止电子签文件
|
|
5346
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/signature_file/terminate
|
|
5347
|
+
*/
|
|
5348
|
+
terminate(body: TerminateRequest, query?: TerminateQuery): Promise<TerminateResponse>
|
|
5349
|
+
/**
|
|
5350
|
+
* 获取电子签文件列表
|
|
5351
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/signature_file/list
|
|
5352
|
+
*/
|
|
5353
|
+
list(query?: ListQuery): Paginated<Lark.SignatureFile>
|
|
5354
|
+
/**
|
|
5355
|
+
* 查询电子签文件详情
|
|
5356
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/signature_file/query
|
|
5357
|
+
*/
|
|
5358
|
+
query(body: QueryRequest, query?: QueryQuery): Paginated<Lark.SignatureFile>
|
|
5359
|
+
/**
|
|
5360
|
+
* 根据流程获取电子签文件信息
|
|
5361
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/signature_file/list_by_biz_id
|
|
5362
|
+
*/
|
|
5363
|
+
listByBizId(query?: ListByBizIdQuery): Promise<ListByBizIdResponse>
|
|
5364
|
+
/**
|
|
5365
|
+
* 下载电子签文件
|
|
5366
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/signature_file/download
|
|
5367
|
+
*/
|
|
5368
|
+
download(signature_file_id: string): Promise<ArrayBuffer>
|
|
5369
|
+
}
|
|
5370
|
+
|
|
5371
|
+
export interface TerminateRequest {
|
|
5372
|
+
/** 欲终止的电子签文件id列表 */
|
|
5373
|
+
ids: string[]
|
|
5374
|
+
/** 操作人ID */
|
|
5375
|
+
operator: string
|
|
5376
|
+
/** 终止原因 */
|
|
5377
|
+
terminate_reason: string
|
|
5378
|
+
}
|
|
5379
|
+
|
|
5380
|
+
export interface TerminateQuery {
|
|
5381
|
+
/** 用户 ID 类型 */
|
|
5382
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
5383
|
+
}
|
|
5384
|
+
|
|
5385
|
+
export interface TerminateResponse {
|
|
5386
|
+
/** 欲终止的文件总数量 */
|
|
5387
|
+
total_count?: number
|
|
5388
|
+
/** 成功总数量 */
|
|
5389
|
+
success_count?: number
|
|
5390
|
+
/** 失败总数量 */
|
|
5391
|
+
fail_count?: number
|
|
5392
|
+
/** 终止成功的文件id列表 */
|
|
5393
|
+
success_file_id_list?: string[]
|
|
5394
|
+
/** 终止失败的文件id和对应的原因列表 */
|
|
5395
|
+
fail_file_id_and_reasons?: Lark.TerminateSignatureFailIdAndReason[]
|
|
5396
|
+
}
|
|
5397
|
+
|
|
5398
|
+
export interface ListQuery extends Pagination {
|
|
5399
|
+
/** 电子签文件id */
|
|
5400
|
+
signature_file_id?: string
|
|
5401
|
+
/** 电子签文件状态状态,多个状态之间为「或」的关系 */
|
|
5402
|
+
states?: string
|
|
5403
|
+
/** 更新时间早于等于某个时间点,按照东八区时区 */
|
|
5404
|
+
update_time_start?: string
|
|
5405
|
+
/** 更新时间晚于等于某个时间点,按照东八区时区 */
|
|
5406
|
+
update_time_end?: string
|
|
5407
|
+
/** 用户 ID 类型 */
|
|
5408
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
5409
|
+
/** 根据电子签模板id列表筛选电子签文件,返回的电子签文件使用的模板id在该list中 */
|
|
5410
|
+
template_ids?: string
|
|
5411
|
+
}
|
|
5412
|
+
|
|
5413
|
+
export interface QueryRequest {
|
|
5414
|
+
/** 电子签文件状态状态列表,多个状态之间为「或」的关系 */
|
|
5415
|
+
states?: string[]
|
|
5416
|
+
/** 电子签模板ID列表,返回的电子签文件使用的模板id在该list中 */
|
|
5417
|
+
template_ids?: string[]
|
|
5418
|
+
}
|
|
5419
|
+
|
|
5420
|
+
export interface QueryQuery extends Pagination {
|
|
5421
|
+
/** 电子签文件id */
|
|
5422
|
+
signature_file_id?: string
|
|
5423
|
+
/** 更新时间早于等于某个时间点,按照东八区时区 */
|
|
5424
|
+
update_time_start?: string
|
|
5425
|
+
/** 更新时间晚于等于某个时间点,按照东八区时区 */
|
|
5426
|
+
update_time_end?: string
|
|
5427
|
+
/** 用户 ID 类型 */
|
|
5428
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
5429
|
+
}
|
|
5430
|
+
|
|
5431
|
+
export interface ListByBizIdQuery {
|
|
5432
|
+
/** 业务自定义流程ID */
|
|
5433
|
+
biz_process_id: string
|
|
5434
|
+
/** 业务类型,开放平台平应用可以传递"OpenAPI" */
|
|
5435
|
+
biz_type: string
|
|
5436
|
+
/** 用户 ID 类型 */
|
|
5437
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
5438
|
+
/** 是否需要签署链接 */
|
|
5439
|
+
select_sign_url?: boolean
|
|
5440
|
+
}
|
|
5441
|
+
|
|
5442
|
+
export interface ListByBizIdResponse {
|
|
5443
|
+
/** 返回的流程关联的电子签文件列表 */
|
|
5444
|
+
signature_files?: Lark.SignatureFile[]
|
|
5445
|
+
/** 批量签署链接 */
|
|
5446
|
+
batch_sign_url?: string
|
|
5447
|
+
}
|
|
5448
|
+
}
|
|
5449
|
+
|
|
5450
|
+
export namespace SignatureNode {
|
|
5451
|
+
export interface Methods {
|
|
5452
|
+
/**
|
|
5453
|
+
* 获取文件签署节点信息
|
|
5454
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/signature_node/list_by_file_id
|
|
5455
|
+
*/
|
|
5456
|
+
listByFileId(query?: ListByFileIdQuery): Promise<ListByFileIdResponse>
|
|
5457
|
+
}
|
|
5458
|
+
|
|
5459
|
+
export interface ListByFileIdQuery {
|
|
5460
|
+
/** 电子签文件id */
|
|
5461
|
+
file_id: string
|
|
5462
|
+
/** 用户 ID 类型 */
|
|
5463
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
5464
|
+
}
|
|
5465
|
+
|
|
5466
|
+
export interface ListByFileIdResponse {
|
|
5467
|
+
/** 返回的电子签节点列表 */
|
|
5468
|
+
signature_nodes?: Lark.SignatureNode[]
|
|
5469
|
+
}
|
|
5470
|
+
}
|
|
5471
|
+
|
|
5472
|
+
export namespace SignatureTemplate {
|
|
5473
|
+
export interface Methods {
|
|
5474
|
+
/**
|
|
5475
|
+
* 获取电子签模板内容
|
|
5476
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/signature_template/search
|
|
5477
|
+
*/
|
|
5478
|
+
search(query?: SearchQuery): Promise<SearchResponse>
|
|
5479
|
+
}
|
|
5480
|
+
|
|
5481
|
+
export interface SearchQuery {
|
|
5482
|
+
/** 电子签模板ids,用英文逗号分隔;如果不传 则返回所有模版信息(字节线上几百条) */
|
|
5483
|
+
template_ids?: string
|
|
5484
|
+
/** 是否需要自定义字段,如-自定义签署方、合同变更前后公司等 */
|
|
5485
|
+
select_custom_field?: boolean
|
|
5486
|
+
}
|
|
5487
|
+
|
|
5488
|
+
export interface SearchResponse {
|
|
5489
|
+
/** 返回的电子签模板list */
|
|
5490
|
+
signature_templates?: Lark.SignatureTemplate[]
|
|
5491
|
+
}
|
|
5492
|
+
}
|
|
5493
|
+
|
|
5494
|
+
export namespace SignatureTemplateInfoWithThumbnail {
|
|
5495
|
+
export interface Methods {
|
|
5496
|
+
/**
|
|
5497
|
+
* 获取电子签模板列表
|
|
5498
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/signature_template_info_with_thumbnail/list
|
|
5499
|
+
*/
|
|
5500
|
+
list(query?: ListQuery): Promise<ListResponse> & AsyncIterableIterator<Lark.SignatureTemplateInfoWithThumbnail>
|
|
5501
|
+
}
|
|
5502
|
+
|
|
5503
|
+
export interface ListQuery extends Pagination {
|
|
5504
|
+
/** 模版名 */
|
|
5505
|
+
name?: string
|
|
5506
|
+
/** 模板类别;多个类别之间使用英文,分隔 */
|
|
5507
|
+
category_apiname?: string
|
|
5508
|
+
/** 模板用途;多个用途之间使用英文,分隔 */
|
|
5509
|
+
usage_apiname?: string
|
|
5510
|
+
/** 是否停用 */
|
|
5511
|
+
active?: boolean
|
|
5512
|
+
/** 是否需要模板适用区域信息;默认false,不会返回region_info信息 */
|
|
5513
|
+
need_region_info?: boolean
|
|
5514
|
+
/** 电子签适用范围 */
|
|
5515
|
+
applicability_apinames?: string[]
|
|
5516
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
5517
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
5518
|
+
}
|
|
5519
|
+
|
|
5520
|
+
export interface ListResponse {
|
|
5521
|
+
/** 电子签模板缩略图列表 */
|
|
5522
|
+
items?: Lark.SignatureTemplateInfoWithThumbnail[]
|
|
5523
|
+
/** 查询偏移量;下次查询可以从page_token开始查询 */
|
|
5524
|
+
page_token?: number
|
|
5525
|
+
/** 数据总数 */
|
|
5526
|
+
count?: number
|
|
5527
|
+
}
|
|
5528
|
+
}
|
|
5529
|
+
|
|
4305
5530
|
export namespace Contract {
|
|
4306
5531
|
export interface Methods {
|
|
4307
5532
|
/**
|
|
@@ -4608,7 +5833,12 @@ export namespace Corehr {
|
|
|
4608
5833
|
employment_id: string
|
|
4609
5834
|
/** 授予数量 */
|
|
4610
5835
|
granting_quantity: string
|
|
4611
|
-
/**
|
|
5836
|
+
/**
|
|
5837
|
+
* 授予时长单位
|
|
5838
|
+
* 可选值有:
|
|
5839
|
+
* - 1: 天
|
|
5840
|
+
* - 2: 小时
|
|
5841
|
+
*/
|
|
4612
5842
|
granting_unit: number
|
|
4613
5843
|
/** 生效时间 */
|
|
4614
5844
|
effective_date: string
|
|
@@ -4668,7 +5898,12 @@ export namespace Corehr {
|
|
|
4668
5898
|
}
|
|
4669
5899
|
|
|
4670
5900
|
export interface LeaveTypesQuery extends Pagination {
|
|
4671
|
-
/**
|
|
5901
|
+
/**
|
|
5902
|
+
* 假期类型状态(不传则为全部)
|
|
5903
|
+
* 可选值有:
|
|
5904
|
+
* - 1:已启用
|
|
5905
|
+
* - 2:已停用
|
|
5906
|
+
*/
|
|
4672
5907
|
status?: string
|
|
4673
5908
|
/** 用户 ID 类型 */
|
|
4674
5909
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
@@ -4692,7 +5927,19 @@ export namespace Corehr {
|
|
|
4692
5927
|
employment_id_list?: string[]
|
|
4693
5928
|
/** 休假发起人 ID 列表,最大 100 个 */
|
|
4694
5929
|
initiator_id_list?: string[]
|
|
4695
|
-
/**
|
|
5930
|
+
/**
|
|
5931
|
+
* 请假记录的状态
|
|
5932
|
+
* 可选值有:
|
|
5933
|
+
* - 1:已通过
|
|
5934
|
+
* - 2:审批中
|
|
5935
|
+
* - 3:审批中(更正)
|
|
5936
|
+
* - 4:审批中(取消休假)
|
|
5937
|
+
* - 5:审批中(返岗)
|
|
5938
|
+
* - 6:已返岗
|
|
5939
|
+
* - 7:已拒绝
|
|
5940
|
+
* - 8:已取消
|
|
5941
|
+
* - 9:已撤回
|
|
5942
|
+
*/
|
|
4696
5943
|
leave_request_status?: string[]
|
|
4697
5944
|
/** 假期类型 ID 列表,枚举值可通过【获取假期类型列表】接口获取 */
|
|
4698
5945
|
leave_type_id_list?: string[]
|
|
@@ -4991,7 +6238,12 @@ export namespace Corehr {
|
|
|
4991
6238
|
role_id: string
|
|
4992
6239
|
/** 管理范围信息 */
|
|
4993
6240
|
management_scope_list: Lark.ManagementScope[]
|
|
4994
|
-
/**
|
|
6241
|
+
/**
|
|
6242
|
+
* 查找方式
|
|
6243
|
+
* 可选值有:
|
|
6244
|
+
* - 1:只查找指定 部门/工作地点/公司/社保城市,如无授权信息则返回为空
|
|
6245
|
+
* - 2:当指定的 部门/工作地点/公司/社保城市 无授权信息,向上查找第一个授权记录并直接返回
|
|
6246
|
+
*/
|
|
4995
6247
|
search_method: string
|
|
4996
6248
|
/** 页码标识,获取第一页传空,每次查询会返回下一页的page_token */
|
|
4997
6249
|
page_token?: string
|
|
@@ -5021,6 +6273,11 @@ export namespace Corehr {
|
|
|
5021
6273
|
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process/get
|
|
5022
6274
|
*/
|
|
5023
6275
|
get(process_id: string, query?: GetQuery): Promise<GetResponse>
|
|
6276
|
+
/**
|
|
6277
|
+
* 获取流程数据
|
|
6278
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process/flow_variable_data
|
|
6279
|
+
*/
|
|
6280
|
+
flowVariableData(process_id: string, query?: FlowVariableDataQuery): Promise<FlowVariableDataResponse>
|
|
5024
6281
|
}
|
|
5025
6282
|
|
|
5026
6283
|
export interface ListQuery extends Pagination {
|
|
@@ -5106,6 +6363,22 @@ export namespace Corehr {
|
|
|
5106
6363
|
is_last_completed_correct_process?: boolean
|
|
5107
6364
|
}
|
|
5108
6365
|
|
|
6366
|
+
export interface FlowVariableDataQuery {
|
|
6367
|
+
/** 用户 ID 类型 */
|
|
6368
|
+
user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id'
|
|
6369
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
6370
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
6371
|
+
/** 需要查询变量key */
|
|
6372
|
+
variable_keys?: string[]
|
|
6373
|
+
}
|
|
6374
|
+
|
|
6375
|
+
export interface FlowVariableDataResponse {
|
|
6376
|
+
/** 流程数据 */
|
|
6377
|
+
field_variable_values?: Lark.FieldVariableValue[]
|
|
6378
|
+
/** 流程实例id */
|
|
6379
|
+
process_id?: string
|
|
6380
|
+
}
|
|
6381
|
+
|
|
5109
6382
|
export namespace FormVariableData {
|
|
5110
6383
|
export interface Methods {
|
|
5111
6384
|
/**
|
|
@@ -5591,6 +6864,14 @@ Internal.define({
|
|
|
5591
6864
|
'/corehr/v2/employees/job_datas/batch_get': {
|
|
5592
6865
|
POST: 'corehr.employees.jobData.batchGet',
|
|
5593
6866
|
},
|
|
6867
|
+
'/corehr/v2/employees/international_assignments': {
|
|
6868
|
+
POST: 'corehr.employees.internationalAssignment.create',
|
|
6869
|
+
GET: 'corehr.employees.internationalAssignment.list',
|
|
6870
|
+
},
|
|
6871
|
+
'/corehr/v2/employees/international_assignments/{international_assignment_id}': {
|
|
6872
|
+
PATCH: 'corehr.employees.internationalAssignment.patch',
|
|
6873
|
+
DELETE: 'corehr.employees.internationalAssignment.delete',
|
|
6874
|
+
},
|
|
5594
6875
|
'/corehr/v2/employees/additional_jobs': {
|
|
5595
6876
|
POST: 'corehr.employees.additionalJob.create',
|
|
5596
6877
|
},
|
|
@@ -5743,6 +7024,12 @@ Internal.define({
|
|
|
5743
7024
|
'/corehr/v2/custom_orgs/delete_org': {
|
|
5744
7025
|
POST: 'corehr.customOrg.deleteOrg',
|
|
5745
7026
|
},
|
|
7027
|
+
'/corehr/v2/drafts/{draft_id}': {
|
|
7028
|
+
GET: 'corehr.draft.get',
|
|
7029
|
+
},
|
|
7030
|
+
'/corehr/v2/approval_groups/open_query_position_change_list_by_ids': {
|
|
7031
|
+
POST: 'corehr.approvalGroups.openQueryPositionChangeListByIds',
|
|
7032
|
+
},
|
|
5746
7033
|
'/corehr/v2/approval_groups/{process_id}': {
|
|
5747
7034
|
GET: 'corehr.approvalGroups.get',
|
|
5748
7035
|
},
|
|
@@ -5767,6 +7054,9 @@ Internal.define({
|
|
|
5767
7054
|
'/corehr/v2/job_families/batch_get': {
|
|
5768
7055
|
POST: 'corehr.jobFamily.batchGet',
|
|
5769
7056
|
},
|
|
7057
|
+
'/corehr/v2/job_families/query_multi_timeline': {
|
|
7058
|
+
POST: 'corehr.jobFamily.queryMultiTimeline',
|
|
7059
|
+
},
|
|
5770
7060
|
'/corehr/v1/job_levels': {
|
|
5771
7061
|
POST: 'corehr.jobLevel.create',
|
|
5772
7062
|
GET: { name: 'corehr.jobLevel.list', pagination: { argIndex: 0 } },
|
|
@@ -5795,6 +7085,19 @@ Internal.define({
|
|
|
5795
7085
|
'/corehr/v2/job_grades/query_recent_change': {
|
|
5796
7086
|
GET: 'corehr.jobGrade.queryRecentChange',
|
|
5797
7087
|
},
|
|
7088
|
+
'/corehr/v2/pathways': {
|
|
7089
|
+
POST: 'corehr.pathway.create',
|
|
7090
|
+
},
|
|
7091
|
+
'/corehr/v2/pathways/{pathway_id}': {
|
|
7092
|
+
PATCH: 'corehr.pathway.patch',
|
|
7093
|
+
DELETE: 'corehr.pathway.delete',
|
|
7094
|
+
},
|
|
7095
|
+
'/corehr/v2/pathways/active': {
|
|
7096
|
+
POST: 'corehr.pathway.active',
|
|
7097
|
+
},
|
|
7098
|
+
'/corehr/v2/pathways/batch_get': {
|
|
7099
|
+
POST: 'corehr.pathway.batchGet',
|
|
7100
|
+
},
|
|
5798
7101
|
'/corehr/v1/jobs': {
|
|
5799
7102
|
POST: 'corehr.job.create',
|
|
5800
7103
|
},
|
|
@@ -5808,9 +7111,33 @@ Internal.define({
|
|
|
5808
7111
|
'/corehr/v2/jobs': {
|
|
5809
7112
|
GET: { name: 'corehr.job.list', pagination: { argIndex: 0 } },
|
|
5810
7113
|
},
|
|
7114
|
+
'/corehr/v2/jobs/batch_get': {
|
|
7115
|
+
POST: 'corehr.job.batchGet',
|
|
7116
|
+
},
|
|
7117
|
+
'/corehr/v2/jobs/query_multi_timeline': {
|
|
7118
|
+
POST: 'corehr.job.queryMultiTimeline',
|
|
7119
|
+
},
|
|
5811
7120
|
'/corehr/v2/jobs/query_recent_change': {
|
|
5812
7121
|
GET: 'corehr.job.queryRecentChange',
|
|
5813
7122
|
},
|
|
7123
|
+
'/corehr/v2/positions': {
|
|
7124
|
+
POST: 'corehr.position.create',
|
|
7125
|
+
},
|
|
7126
|
+
'/corehr/v2/positions/{position_id}': {
|
|
7127
|
+
PATCH: 'corehr.position.patch',
|
|
7128
|
+
},
|
|
7129
|
+
'/corehr/v2/positions/query': {
|
|
7130
|
+
POST: { name: 'corehr.position.query', pagination: { argIndex: 1 } },
|
|
7131
|
+
},
|
|
7132
|
+
'/corehr/v2/positions/query_recent_change': {
|
|
7133
|
+
GET: 'corehr.position.queryRecentChange',
|
|
7134
|
+
},
|
|
7135
|
+
'/corehr/v2/positions/active': {
|
|
7136
|
+
POST: 'corehr.position.active',
|
|
7137
|
+
},
|
|
7138
|
+
'/corehr/v2/positions/del_position': {
|
|
7139
|
+
POST: 'corehr.position.delPosition',
|
|
7140
|
+
},
|
|
5814
7141
|
'/corehr/v2/pre_hires/withdraw_onboarding': {
|
|
5815
7142
|
POST: 'corehr.preHire.withdrawOnboarding',
|
|
5816
7143
|
},
|
|
@@ -5833,6 +7160,9 @@ Internal.define({
|
|
|
5833
7160
|
'/corehr/v2/pre_hires/{pre_hire_id}/transit_task': {
|
|
5834
7161
|
POST: 'corehr.preHire.transitTask',
|
|
5835
7162
|
},
|
|
7163
|
+
'/corehr/v2/pre_hires/transform_onboarding_task': {
|
|
7164
|
+
POST: 'corehr.preHire.transformOnboardingTask',
|
|
7165
|
+
},
|
|
5836
7166
|
'/corehr/v2/pre_hires/{pre_hire_id}/complete': {
|
|
5837
7167
|
POST: 'corehr.preHire.complete',
|
|
5838
7168
|
},
|
|
@@ -5885,6 +7215,30 @@ Internal.define({
|
|
|
5885
7215
|
'/corehr/v1/offboardings/search': {
|
|
5886
7216
|
POST: { name: 'corehr.offboarding.search', pagination: { argIndex: 1 } },
|
|
5887
7217
|
},
|
|
7218
|
+
'/corehr/v2/signature_files/terminate': {
|
|
7219
|
+
POST: 'corehr.signatureFile.terminate',
|
|
7220
|
+
},
|
|
7221
|
+
'/corehr/v2/signature_files': {
|
|
7222
|
+
GET: { name: 'corehr.signatureFile.list', pagination: { argIndex: 0 } },
|
|
7223
|
+
},
|
|
7224
|
+
'/corehr/v2/signature_files/query': {
|
|
7225
|
+
POST: { name: 'corehr.signatureFile.query', pagination: { argIndex: 1 } },
|
|
7226
|
+
},
|
|
7227
|
+
'/corehr/v2/signature_nodes/list_by_file_id': {
|
|
7228
|
+
GET: 'corehr.signatureNode.listByFileId',
|
|
7229
|
+
},
|
|
7230
|
+
'/corehr/v2/signature_files/list_by_biz_id': {
|
|
7231
|
+
GET: 'corehr.signatureFile.listByBizId',
|
|
7232
|
+
},
|
|
7233
|
+
'/corehr/v2/signature_files/{signature_file_id}/download': {
|
|
7234
|
+
POST: { name: 'corehr.signatureFile.download', type: 'binary' },
|
|
7235
|
+
},
|
|
7236
|
+
'/corehr/v2/signature_templates/search': {
|
|
7237
|
+
GET: 'corehr.signatureTemplate.search',
|
|
7238
|
+
},
|
|
7239
|
+
'/corehr/v2/signature_template_info_with_thumbnails': {
|
|
7240
|
+
GET: { name: 'corehr.signatureTemplateInfoWithThumbnail.list', pagination: { argIndex: 0 } },
|
|
7241
|
+
},
|
|
5888
7242
|
'/corehr/v1/contracts': {
|
|
5889
7243
|
POST: 'corehr.contract.create',
|
|
5890
7244
|
GET: { name: 'corehr.contract.list', pagination: { argIndex: 0 } },
|
|
@@ -5981,6 +7335,9 @@ Internal.define({
|
|
|
5981
7335
|
'/corehr/v2/processes/{process_id}': {
|
|
5982
7336
|
GET: 'corehr.process.get',
|
|
5983
7337
|
},
|
|
7338
|
+
'/corehr/v2/processes/{process_id}/flow_variable_data': {
|
|
7339
|
+
GET: 'corehr.process.flowVariableData',
|
|
7340
|
+
},
|
|
5984
7341
|
'/corehr/v2/processes/{process_id}/form_variable_data': {
|
|
5985
7342
|
GET: 'corehr.process.formVariableData.get',
|
|
5986
7343
|
},
|