@satorijs/adapter-lark 3.8.6 → 3.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bot.d.ts +1 -1
- package/lib/content.d.ts +433 -0
- package/lib/http.d.ts +1 -1
- package/lib/index.cjs +2792 -1719
- package/lib/index.d.ts +4 -2
- package/lib/internal.d.ts +37 -0
- package/lib/message.d.ts +2 -0
- package/lib/types/acs.d.ts +177 -0
- package/lib/types/admin.d.ts +270 -0
- package/lib/types/aily.d.ts +221 -0
- package/lib/types/apaas.d.ts +499 -0
- package/lib/types/application.d.ts +406 -0
- package/lib/types/approval.d.ts +779 -0
- package/lib/types/attendance.d.ts +957 -0
- package/lib/types/auth.d.ts +86 -0
- package/lib/types/authen.d.ts +191 -0
- package/lib/types/baike.d.ts +239 -0
- package/lib/types/bitable.d.ts +691 -0
- package/lib/types/board.d.ts +19 -0
- package/lib/types/calendar.d.ts +653 -0
- package/lib/types/cardkit.d.ts +139 -0
- package/lib/types/compensation.d.ts +54 -0
- package/lib/types/contact.d.ts +1137 -0
- package/lib/types/corehr.d.ts +4391 -0
- package/lib/types/docs.d.ts +23 -0
- package/lib/types/document_ai.d.ts +257 -0
- package/lib/types/docx.d.ts +380 -0
- package/lib/types/drive.d.ts +1053 -0
- package/lib/types/ehr.d.ts +32 -0
- package/lib/types/event.d.ts +9 -18
- package/lib/types/helpdesk.d.ts +746 -0
- package/lib/types/hire.d.ts +3150 -0
- package/lib/types/human_authentication.d.ts +27 -0
- package/lib/types/im.d.ts +1300 -0
- package/lib/types/index.d.ts +16432 -34
- package/lib/types/lingo.d.ts +254 -0
- package/lib/types/mail.d.ts +680 -0
- package/lib/types/mdm.d.ts +42 -0
- package/lib/types/minutes.d.ts +31 -0
- package/lib/types/moments.d.ts +18 -0
- package/lib/types/okr.d.ts +205 -0
- package/lib/types/optical_char_recognition.d.ts +17 -0
- package/lib/types/passport.d.ts +45 -0
- package/lib/types/payroll.d.ts +50 -0
- package/lib/types/performance.d.ts +413 -0
- package/lib/types/personal_settings.d.ts +87 -0
- package/lib/types/report.d.ts +57 -0
- package/lib/types/search.d.ts +216 -0
- package/lib/types/security_and_compliance.d.ts +24 -0
- package/lib/types/sheets.d.ts +326 -0
- package/lib/types/speech_to_text.d.ts +39 -0
- package/lib/types/task.d.ts +1153 -0
- package/lib/types/tenant.d.ts +23 -0
- package/lib/types/translation.d.ts +37 -0
- package/lib/types/vc.d.ts +948 -0
- package/lib/types/verification.d.ts +14 -0
- package/lib/types/wiki.d.ts +240 -0
- package/lib/types/workplace.d.ts +43 -0
- package/lib/utils.d.ts +143 -7
- package/package.json +6 -4
- package/src/bot.ts +19 -3
- package/src/{types/message/content.ts → content.ts} +1 -0
- package/src/http.ts +1 -3
- package/src/index.ts +4 -2
- package/src/internal.ts +143 -0
- package/src/message.ts +13 -11
- package/src/types/acs.ts +236 -0
- package/src/types/admin.ts +328 -0
- package/src/types/aily.ts +288 -0
- package/src/types/apaas.ts +646 -0
- package/src/types/application.ts +520 -0
- package/src/types/approval.ts +924 -0
- package/src/types/attendance.ts +1153 -0
- package/src/types/auth.ts +114 -0
- package/src/types/authen.ts +220 -0
- package/src/types/baike.ts +306 -0
- package/src/types/bitable.ts +879 -0
- package/src/types/board.ts +31 -0
- package/src/types/calendar.ts +817 -0
- package/src/types/cardkit.ts +182 -0
- package/src/types/compensation.ts +79 -0
- package/src/types/contact.ts +1411 -0
- package/src/types/corehr.ts +5297 -0
- package/src/types/docs.ts +33 -0
- package/src/types/document_ai.ts +352 -0
- package/src/types/docx.ts +471 -0
- package/src/types/drive.ts +1321 -0
- package/src/types/ehr.ts +43 -0
- package/src/types/event.ts +15 -21
- package/src/types/helpdesk.ts +925 -0
- package/src/types/hire.ts +3918 -0
- package/src/types/human_authentication.ts +38 -0
- package/src/types/im.ts +1605 -0
- package/src/types/index.ts +17754 -39
- package/src/types/lingo.ts +321 -0
- package/src/types/mail.ts +851 -0
- package/src/types/mdm.ts +57 -0
- package/src/types/minutes.ts +46 -0
- package/src/types/moments.ts +28 -0
- package/src/types/okr.ts +261 -0
- package/src/types/optical_char_recognition.ts +27 -0
- package/src/types/passport.ts +61 -0
- package/src/types/payroll.ts +69 -0
- package/src/types/performance.ts +524 -0
- package/src/types/personal_settings.ts +116 -0
- package/src/types/report.ts +77 -0
- package/src/types/search.ts +268 -0
- package/src/types/security_and_compliance.ts +33 -0
- package/src/types/sheets.ts +425 -0
- package/src/types/speech_to_text.ts +54 -0
- package/src/types/task.ts +1464 -0
- package/src/types/tenant.ts +36 -0
- package/src/types/translation.ts +52 -0
- package/src/types/vc.ts +1197 -0
- package/src/types/verification.ts +23 -0
- package/src/types/wiki.ts +313 -0
- package/src/types/workplace.ts +59 -0
- package/src/utils.ts +160 -8
- package/src/types/api.ts +0 -30848
- package/src/types/internal.ts +0 -84
- package/src/types/message/index.ts +0 -97
|
@@ -0,0 +1,4391 @@
|
|
|
1
|
+
import { Address, ApprovalGroup, ApproverInfo, AssessmentForCreate, AssignedOrganizationWithCode, Bank, BankAccount, BankBranch, BasicInfo, BasicInfoUpdate, Bp, BpRoleOrganization, City, Company, Contract, CostCenter, CostCenterVersion, CountryRegion, CountryRegionSubdivision, CpstGrade, CreateTransferInfo, Currency, CustomField, CustomFieldData, DataengineI18n, Department, DepartmentChange, DepartmentCreate, DepartmentHrbp, DepartmentParents, DepartmentTimeline, DepartmentTree, Dependent, District, Education, EducationInfo, Email, EmergencyContact, Employee, EmployeeJobData, EmployeesAdditionalJob, EmployeesAdditionalJobBatchReqDate, EmployeesAdditionalJobWriteResp, EmployeeType, Employment, EmploymentBp, EmploymentCreate, EmploymentLeaveBalance, Enum, EnumFieldOption, FieldVariableValue, FormFieldVariable, HiberarchyCommon, Hrbp, I18n, IdInfo, Job, JobChange, JobData, JobFamily, JobGrade, JobLevel, Language, LeaveGrantingRecord, LeaveRequest, LeaveType, Location, ManagementScope, NationalId, NationalIdType, Nationality, Object, ObjectFieldData, Offboarding, OffboardingReason, OfferInfo, OfferInfoUpdate, OrganizationOpLog, Person, PersonalProfile, PersonInfo, PersonName, Phone, PhoneNumberAndAreaCode, PreHire, PreHireQuery, ProbationInfo, ProbationInfoForSubmit, ProcessAbstractItem, ProcessCcItem, ProcessCommentInfo, ProcessDoneItem, ProcessFormVariableV2, ProcessLink, ProcessSystemDoneItem, ProcessSystemTodoItem, ProcessTodoItem, ProfileSettingCareer, ProfileSettingDataAttachment, ProfileSettingEmploymentInfo, ProfileSettingPersonalInfo, ResidentTax, RoleAuthorization, SecurityGroup, Subdivision, Subregion, SupportCostCenterItem, TimeZone, TransferInfo, TransferReason, TransferType, WkCalendarDate, WkOption, WorkCalendarDetail, WorkExperience, WorkExperienceInfo, WorkforcePlan, WorkforcePlanDetail, WorkforcePlanDetailRow, WorkingHoursType } from '.';
|
|
2
|
+
import { Pagination } from '../internal';
|
|
3
|
+
declare module '../internal' {
|
|
4
|
+
interface Internal {
|
|
5
|
+
/**
|
|
6
|
+
* 获取飞书人事对象列表
|
|
7
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/list_object_api_name
|
|
8
|
+
*/
|
|
9
|
+
listObjectApiNameCorehrV1CustomField(query?: Pagination): Paginated<Object>;
|
|
10
|
+
/**
|
|
11
|
+
* 获取自定义字段列表
|
|
12
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/query
|
|
13
|
+
*/
|
|
14
|
+
queryCorehrV1CustomField(query?: QueryCorehrV1CustomFieldQuery): Promise<QueryCorehrV1CustomFieldResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* 获取字段详情
|
|
17
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param
|
|
18
|
+
*/
|
|
19
|
+
getByParamCorehrV1CustomField(query?: GetByParamCorehrV1CustomFieldQuery): Promise<GetByParamCorehrV1CustomFieldResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* 增加字段枚举值选项
|
|
22
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/common_data-meta_data/add_enum_option
|
|
23
|
+
*/
|
|
24
|
+
addEnumOptionCorehrV1CommonDataMetaData(body: AddEnumOptionCorehrV1CommonDataMetaDataRequest, query?: AddEnumOptionCorehrV1CommonDataMetaDataQuery): Promise<AddEnumOptionCorehrV1CommonDataMetaDataResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* 修改字段枚举值选项
|
|
27
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/common_data-meta_data/edit_enum_option
|
|
28
|
+
*/
|
|
29
|
+
editEnumOptionCorehrV1CommonDataMetaData(body: EditEnumOptionCorehrV1CommonDataMetaDataRequest, query?: EditEnumOptionCorehrV1CommonDataMetaDataQuery): Promise<EditEnumOptionCorehrV1CommonDataMetaDataResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* 查询国家/地区信息
|
|
32
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search
|
|
33
|
+
*/
|
|
34
|
+
searchCorehrV2BasicInfoCountryRegion(body: SearchCorehrV2BasicInfoCountryRegionRequest, query?: Pagination): Paginated<CountryRegion>;
|
|
35
|
+
/**
|
|
36
|
+
* 查询省份/主要行政区信息
|
|
37
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search
|
|
38
|
+
*/
|
|
39
|
+
searchCorehrV2BasicInfoCountryRegionSubdivision(body: SearchCorehrV2BasicInfoCountryRegionSubdivisionRequest, query?: Pagination): Paginated<CountryRegionSubdivision>;
|
|
40
|
+
/**
|
|
41
|
+
* 查询城市信息
|
|
42
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-city/search
|
|
43
|
+
*/
|
|
44
|
+
searchCorehrV2BasicInfoCity(body: SearchCorehrV2BasicInfoCityRequest, query?: Pagination): Paginated<City>;
|
|
45
|
+
/**
|
|
46
|
+
* 查询区/县信息
|
|
47
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-district/search
|
|
48
|
+
*/
|
|
49
|
+
searchCorehrV2BasicInfoDistrict(body: SearchCorehrV2BasicInfoDistrictRequest, query?: Pagination): Paginated<District>;
|
|
50
|
+
/**
|
|
51
|
+
* 查询国籍信息
|
|
52
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-nationality/search
|
|
53
|
+
*/
|
|
54
|
+
searchCorehrV2BasicInfoNationality(body: SearchCorehrV2BasicInfoNationalityRequest, query?: Pagination): Paginated<Nationality>;
|
|
55
|
+
/**
|
|
56
|
+
* 创建国家证件类型
|
|
57
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/create
|
|
58
|
+
*/
|
|
59
|
+
createCorehrV1NationalIdType(body: CreateCorehrV1NationalIdTypeRequest, query?: CreateCorehrV1NationalIdTypeQuery): Promise<CreateCorehrV1NationalIdTypeResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* 删除国家证件类型
|
|
62
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/delete
|
|
63
|
+
*/
|
|
64
|
+
deleteCorehrV1NationalIdType(national_id_type_id: string): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* 更新国家证件类型
|
|
67
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/patch
|
|
68
|
+
*/
|
|
69
|
+
patchCorehrV1NationalIdType(national_id_type_id: string, body: PatchCorehrV1NationalIdTypeRequest, query?: PatchCorehrV1NationalIdTypeQuery): Promise<PatchCorehrV1NationalIdTypeResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* 查询单个国家证件类型
|
|
72
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/get
|
|
73
|
+
*/
|
|
74
|
+
getCorehrV1NationalIdType(national_id_type_id: string): Promise<GetCorehrV1NationalIdTypeResponse>;
|
|
75
|
+
/**
|
|
76
|
+
* 批量查询国家证件类型
|
|
77
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/list
|
|
78
|
+
*/
|
|
79
|
+
listCorehrV1NationalIdType(query?: ListCorehrV1NationalIdTypeQuery): Paginated<NationalIdType>;
|
|
80
|
+
/**
|
|
81
|
+
* 查询银行信息
|
|
82
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-bank/search
|
|
83
|
+
*/
|
|
84
|
+
searchCorehrV2BasicInfoBank(body: SearchCorehrV2BasicInfoBankRequest, query?: Pagination): Paginated<Bank>;
|
|
85
|
+
/**
|
|
86
|
+
* 查询支行信息
|
|
87
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-bank_branch/search
|
|
88
|
+
*/
|
|
89
|
+
searchCorehrV2BasicInfoBankBranch(body: SearchCorehrV2BasicInfoBankBranchRequest, query?: Pagination): Paginated<BankBranch>;
|
|
90
|
+
/**
|
|
91
|
+
* 查询货币信息
|
|
92
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-currency/search
|
|
93
|
+
*/
|
|
94
|
+
searchCorehrV2BasicInfoCurrency(body: SearchCorehrV2BasicInfoCurrencyRequest, query?: Pagination): Paginated<Currency>;
|
|
95
|
+
/**
|
|
96
|
+
* 查询时区信息
|
|
97
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-time_zone/search
|
|
98
|
+
*/
|
|
99
|
+
searchCorehrV2BasicInfoTimeZone(body: SearchCorehrV2BasicInfoTimeZoneRequest, query?: Pagination): Paginated<TimeZone>;
|
|
100
|
+
/**
|
|
101
|
+
* 查询语言信息
|
|
102
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-language/search
|
|
103
|
+
*/
|
|
104
|
+
searchCorehrV2BasicInfoLanguage(body: SearchCorehrV2BasicInfoLanguageRequest, query?: Pagination): Paginated<Language>;
|
|
105
|
+
/**
|
|
106
|
+
* 创建人员类型
|
|
107
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/create
|
|
108
|
+
*/
|
|
109
|
+
createCorehrV1EmployeeType(body: CreateCorehrV1EmployeeTypeRequest, query?: CreateCorehrV1EmployeeTypeQuery): Promise<CreateCorehrV1EmployeeTypeResponse>;
|
|
110
|
+
/**
|
|
111
|
+
* 删除人员类型
|
|
112
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/delete
|
|
113
|
+
*/
|
|
114
|
+
deleteCorehrV1EmployeeType(employee_type_id: string): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* 更新人员类型
|
|
117
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/patch
|
|
118
|
+
*/
|
|
119
|
+
patchCorehrV1EmployeeType(employee_type_id: string, body: PatchCorehrV1EmployeeTypeRequest, query?: PatchCorehrV1EmployeeTypeQuery): Promise<PatchCorehrV1EmployeeTypeResponse>;
|
|
120
|
+
/**
|
|
121
|
+
* 查询单个人员类型
|
|
122
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/get
|
|
123
|
+
*/
|
|
124
|
+
getCorehrV1EmployeeType(employee_type_id: string): Promise<GetCorehrV1EmployeeTypeResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* 批量查询人员类型
|
|
127
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list
|
|
128
|
+
*/
|
|
129
|
+
listCorehrV1EmployeeType(query?: Pagination): Paginated<EmployeeType>;
|
|
130
|
+
/**
|
|
131
|
+
* 创建工时制度
|
|
132
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/create
|
|
133
|
+
*/
|
|
134
|
+
createCorehrV1WorkingHoursType(body: CreateCorehrV1WorkingHoursTypeRequest, query?: CreateCorehrV1WorkingHoursTypeQuery): Promise<CreateCorehrV1WorkingHoursTypeResponse>;
|
|
135
|
+
/**
|
|
136
|
+
* 删除工时制度
|
|
137
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/delete
|
|
138
|
+
*/
|
|
139
|
+
deleteCorehrV1WorkingHoursType(working_hours_type_id: string): Promise<void>;
|
|
140
|
+
/**
|
|
141
|
+
* 更新工时制度
|
|
142
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/patch
|
|
143
|
+
*/
|
|
144
|
+
patchCorehrV1WorkingHoursType(working_hours_type_id: string, body: PatchCorehrV1WorkingHoursTypeRequest, query?: PatchCorehrV1WorkingHoursTypeQuery): Promise<PatchCorehrV1WorkingHoursTypeResponse>;
|
|
145
|
+
/**
|
|
146
|
+
* 查询单个工时制度
|
|
147
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/get
|
|
148
|
+
*/
|
|
149
|
+
getCorehrV1WorkingHoursType(working_hours_type_id: string): Promise<GetCorehrV1WorkingHoursTypeResponse>;
|
|
150
|
+
/**
|
|
151
|
+
* 批量查询工时制度
|
|
152
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list
|
|
153
|
+
*/
|
|
154
|
+
listCorehrV1WorkingHoursType(query?: Pagination): Paginated<WorkingHoursType>;
|
|
155
|
+
/**
|
|
156
|
+
* ID 转换
|
|
157
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/common_data-id/convert
|
|
158
|
+
*/
|
|
159
|
+
convertCorehrV1CommonDataId(body: ConvertCorehrV1CommonDataIdRequest, query?: ConvertCorehrV1CommonDataIdQuery): Promise<ConvertCorehrV1CommonDataIdResponse>;
|
|
160
|
+
/**
|
|
161
|
+
* 批量查询员工信息
|
|
162
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get
|
|
163
|
+
*/
|
|
164
|
+
batchGetCorehrV2Employee(body: BatchGetCorehrV2EmployeeRequest, query?: BatchGetCorehrV2EmployeeQuery): Promise<BatchGetCorehrV2EmployeeResponse>;
|
|
165
|
+
/**
|
|
166
|
+
* 搜索员工信息
|
|
167
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/search
|
|
168
|
+
*/
|
|
169
|
+
searchCorehrV2Employee(body: SearchCorehrV2EmployeeRequest, query?: SearchCorehrV2EmployeeQuery): Paginated<Employee>;
|
|
170
|
+
/**
|
|
171
|
+
* 添加人员
|
|
172
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/create
|
|
173
|
+
*/
|
|
174
|
+
createCorehrV2Employee(body: CreateCorehrV2EmployeeRequest, query?: CreateCorehrV2EmployeeQuery): Promise<CreateCorehrV2EmployeeResponse>;
|
|
175
|
+
/**
|
|
176
|
+
* 创建个人信息
|
|
177
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/person/create
|
|
178
|
+
*/
|
|
179
|
+
createCorehrV2Person(body: CreateCorehrV2PersonRequest, query?: CreateCorehrV2PersonQuery): Promise<CreateCorehrV2PersonResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* 更新个人信息
|
|
182
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/person/patch
|
|
183
|
+
*/
|
|
184
|
+
patchCorehrV2Person(person_id: string, body: PatchCorehrV2PersonRequest, query?: PatchCorehrV2PersonQuery): Promise<PatchCorehrV2PersonResponse>;
|
|
185
|
+
/**
|
|
186
|
+
* 删除个人信息
|
|
187
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/delete
|
|
188
|
+
*/
|
|
189
|
+
deleteCorehrV1Person(person_id: string): Promise<void>;
|
|
190
|
+
/**
|
|
191
|
+
* 上传文件
|
|
192
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/upload
|
|
193
|
+
*/
|
|
194
|
+
uploadCorehrV1Person(form: UploadCorehrV1PersonForm): Promise<UploadCorehrV1PersonResponse>;
|
|
195
|
+
/**
|
|
196
|
+
* 下载文件
|
|
197
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/file/get
|
|
198
|
+
*/
|
|
199
|
+
getCorehrV1File(id: string): Promise<ArrayBuffer>;
|
|
200
|
+
/**
|
|
201
|
+
* 创建雇佣信息
|
|
202
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employment/create
|
|
203
|
+
*/
|
|
204
|
+
createCorehrV1Employment(body: CreateCorehrV1EmploymentRequest, query?: CreateCorehrV1EmploymentQuery): Promise<CreateCorehrV1EmploymentResponse>;
|
|
205
|
+
/**
|
|
206
|
+
* 更新雇佣信息
|
|
207
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employment/patch
|
|
208
|
+
*/
|
|
209
|
+
patchCorehrV1Employment(employment_id: string, body: PatchCorehrV1EmploymentRequest, query?: PatchCorehrV1EmploymentQuery): Promise<PatchCorehrV1EmploymentResponse>;
|
|
210
|
+
/**
|
|
211
|
+
* 删除雇佣信息
|
|
212
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employment/delete
|
|
213
|
+
*/
|
|
214
|
+
deleteCorehrV1Employment(employment_id: string, query?: DeleteCorehrV1EmploymentQuery): Promise<void>;
|
|
215
|
+
/**
|
|
216
|
+
* 创建任职信息
|
|
217
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/create
|
|
218
|
+
*/
|
|
219
|
+
createCorehrV1JobData(body: CreateCorehrV1JobDataRequest, query?: CreateCorehrV1JobDataQuery): Promise<CreateCorehrV1JobDataResponse>;
|
|
220
|
+
/**
|
|
221
|
+
* 删除任职信息
|
|
222
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/delete
|
|
223
|
+
*/
|
|
224
|
+
deleteCorehrV1JobData(job_data_id: string, query?: DeleteCorehrV1JobDataQuery): Promise<void>;
|
|
225
|
+
/**
|
|
226
|
+
* 更新任职信息
|
|
227
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/patch
|
|
228
|
+
*/
|
|
229
|
+
patchCorehrV1JobData(job_data_id: string, body: PatchCorehrV1JobDataRequest, query?: PatchCorehrV1JobDataQuery): Promise<PatchCorehrV1JobDataResponse>;
|
|
230
|
+
/**
|
|
231
|
+
* 获取任职信息列表
|
|
232
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-job_data/query
|
|
233
|
+
*/
|
|
234
|
+
queryCorehrV2EmployeesJobData(body: QueryCorehrV2EmployeesJobDataRequest, query?: QueryCorehrV2EmployeesJobDataQuery): Paginated<EmployeeJobData>;
|
|
235
|
+
/**
|
|
236
|
+
* 批量查询员工任职信息
|
|
237
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-job_data/batch_get
|
|
238
|
+
*/
|
|
239
|
+
batchGetCorehrV2EmployeesJobData(body: BatchGetCorehrV2EmployeesJobDataRequest, query?: BatchGetCorehrV2EmployeesJobDataQuery): Promise<BatchGetCorehrV2EmployeesJobDataResponse>;
|
|
240
|
+
/**
|
|
241
|
+
* 批量查询任职信息
|
|
242
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/list
|
|
243
|
+
*/
|
|
244
|
+
listCorehrV1JobData(query?: ListCorehrV1JobDataQuery): Paginated<JobData>;
|
|
245
|
+
/**
|
|
246
|
+
* 查询单个任职信息
|
|
247
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/get
|
|
248
|
+
*/
|
|
249
|
+
getCorehrV1JobData(job_data_id: string, query?: GetCorehrV1JobDataQuery): Promise<GetCorehrV1JobDataResponse>;
|
|
250
|
+
/**
|
|
251
|
+
* 创建兼职
|
|
252
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-additional_job/create
|
|
253
|
+
*/
|
|
254
|
+
createCorehrV2EmployeesAdditionalJob(body: CreateCorehrV2EmployeesAdditionalJobRequest, query?: CreateCorehrV2EmployeesAdditionalJobQuery): Promise<CreateCorehrV2EmployeesAdditionalJobResponse>;
|
|
255
|
+
/**
|
|
256
|
+
* 更新兼职
|
|
257
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-additional_job/patch
|
|
258
|
+
*/
|
|
259
|
+
patchCorehrV2EmployeesAdditionalJob(additional_job_id: string, body: PatchCorehrV2EmployeesAdditionalJobRequest, query?: PatchCorehrV2EmployeesAdditionalJobQuery): Promise<PatchCorehrV2EmployeesAdditionalJobResponse>;
|
|
260
|
+
/**
|
|
261
|
+
* 删除兼职
|
|
262
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-additional_job/delete
|
|
263
|
+
*/
|
|
264
|
+
deleteCorehrV2EmployeesAdditionalJob(additional_job_id: string): Promise<void>;
|
|
265
|
+
/**
|
|
266
|
+
* 批量查询兼职信息
|
|
267
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-additional_job/batch
|
|
268
|
+
*/
|
|
269
|
+
batchCorehrV2EmployeesAdditionalJob(body: BatchCorehrV2EmployeesAdditionalJobRequest, query?: BatchCorehrV2EmployeesAdditionalJobQuery): Paginated<EmployeesAdditionalJob>;
|
|
270
|
+
/**
|
|
271
|
+
* 批量查询部门操作日志
|
|
272
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/query_operation_logs
|
|
273
|
+
*/
|
|
274
|
+
queryOperationLogsCorehrV2Department(body: QueryOperationLogsCorehrV2DepartmentRequest, query?: QueryOperationLogsCorehrV2DepartmentQuery): Promise<QueryOperationLogsCorehrV2DepartmentResponse> & AsyncIterableIterator<OrganizationOpLog>;
|
|
275
|
+
/**
|
|
276
|
+
* 创建部门
|
|
277
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/create
|
|
278
|
+
*/
|
|
279
|
+
createCorehrV1Department(body: CreateCorehrV1DepartmentRequest, query?: CreateCorehrV1DepartmentQuery): Promise<CreateCorehrV1DepartmentResponse>;
|
|
280
|
+
/**
|
|
281
|
+
* 更新部门
|
|
282
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/patch
|
|
283
|
+
*/
|
|
284
|
+
patchCorehrV2Department(department_id: string, body: PatchCorehrV2DepartmentRequest, query?: PatchCorehrV2DepartmentQuery): Promise<void>;
|
|
285
|
+
/**
|
|
286
|
+
* 获取父部门信息
|
|
287
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/parents
|
|
288
|
+
*/
|
|
289
|
+
parentsCorehrV2Department(body: ParentsCorehrV2DepartmentRequest, query?: ParentsCorehrV2DepartmentQuery): Promise<ParentsCorehrV2DepartmentResponse>;
|
|
290
|
+
/**
|
|
291
|
+
* 批量查询部门
|
|
292
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get
|
|
293
|
+
*/
|
|
294
|
+
batchGetCorehrV2Department(body: BatchGetCorehrV2DepartmentRequest, query?: BatchGetCorehrV2DepartmentQuery): Promise<BatchGetCorehrV2DepartmentResponse>;
|
|
295
|
+
/**
|
|
296
|
+
* 查询指定时间范围内当前生效信息发生变更的部门
|
|
297
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/query_recent_change
|
|
298
|
+
*/
|
|
299
|
+
queryRecentChangeCorehrV2Department(query?: QueryRecentChangeCorehrV2DepartmentQuery): Promise<QueryRecentChangeCorehrV2DepartmentResponse>;
|
|
300
|
+
/**
|
|
301
|
+
* 查询指定生效日期的部门基本信息
|
|
302
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/query_timeline
|
|
303
|
+
*/
|
|
304
|
+
queryTimelineCorehrV2Department(body: QueryTimelineCorehrV2DepartmentRequest, query?: QueryTimelineCorehrV2DepartmentQuery): Promise<QueryTimelineCorehrV2DepartmentResponse>;
|
|
305
|
+
/**
|
|
306
|
+
* 查询指定生效日期的部门架构树
|
|
307
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/tree
|
|
308
|
+
*/
|
|
309
|
+
treeCorehrV2Department(body: TreeCorehrV2DepartmentRequest, query?: TreeCorehrV2DepartmentQuery): Paginated<DepartmentTree>;
|
|
310
|
+
/**
|
|
311
|
+
* 批量查询部门版本信息
|
|
312
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/query_multi_timeline
|
|
313
|
+
*/
|
|
314
|
+
queryMultiTimelineCorehrV2Department(body: QueryMultiTimelineCorehrV2DepartmentRequest, query?: QueryMultiTimelineCorehrV2DepartmentQuery): Paginated<DepartmentTimeline>;
|
|
315
|
+
/**
|
|
316
|
+
* 搜索部门信息
|
|
317
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/search
|
|
318
|
+
*/
|
|
319
|
+
searchCorehrV2Department(body: SearchCorehrV2DepartmentRequest, query?: SearchCorehrV2DepartmentQuery): Paginated<Department>;
|
|
320
|
+
/**
|
|
321
|
+
* 删除部门 V2
|
|
322
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/delete
|
|
323
|
+
*/
|
|
324
|
+
deleteCorehrV2Department(department_id: string, query?: DeleteCorehrV2DepartmentQuery): Promise<void>;
|
|
325
|
+
/**
|
|
326
|
+
* 创建地点
|
|
327
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/create
|
|
328
|
+
*/
|
|
329
|
+
createCorehrV1Location(body: CreateCorehrV1LocationRequest, query?: CreateCorehrV1LocationQuery): Promise<CreateCorehrV1LocationResponse>;
|
|
330
|
+
/**
|
|
331
|
+
* 更新地点
|
|
332
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/location/patch
|
|
333
|
+
*/
|
|
334
|
+
patchCorehrV2Location(location_id: string, body: PatchCorehrV2LocationRequest, query?: PatchCorehrV2LocationQuery): Promise<void>;
|
|
335
|
+
/**
|
|
336
|
+
* 查询单个地点
|
|
337
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/get
|
|
338
|
+
*/
|
|
339
|
+
getCorehrV1Location(location_id: string): Promise<GetCorehrV1LocationResponse>;
|
|
340
|
+
/**
|
|
341
|
+
* 查询当前生效信息发生变更的地点
|
|
342
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/location/query_recent_change
|
|
343
|
+
*/
|
|
344
|
+
queryRecentChangeCorehrV2Location(query?: QueryRecentChangeCorehrV2LocationQuery): Promise<QueryRecentChangeCorehrV2LocationResponse>;
|
|
345
|
+
/**
|
|
346
|
+
* 通过地点 ID 批量获取地点信息
|
|
347
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/location/batch_get
|
|
348
|
+
*/
|
|
349
|
+
batchGetCorehrV2Location(body: BatchGetCorehrV2LocationRequest): Promise<BatchGetCorehrV2LocationResponse>;
|
|
350
|
+
/**
|
|
351
|
+
* 批量分页查询地点信息
|
|
352
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list
|
|
353
|
+
*/
|
|
354
|
+
listCorehrV1Location(query?: Pagination): Paginated<Location>;
|
|
355
|
+
/**
|
|
356
|
+
* 启用/停用地点
|
|
357
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/location/active
|
|
358
|
+
*/
|
|
359
|
+
activeCorehrV2Location(body: ActiveCorehrV2LocationRequest): Promise<void>;
|
|
360
|
+
/**
|
|
361
|
+
* 删除地点
|
|
362
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/delete
|
|
363
|
+
*/
|
|
364
|
+
deleteCorehrV1Location(location_id: string): Promise<void>;
|
|
365
|
+
/**
|
|
366
|
+
* 删除地点地址
|
|
367
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/location-address/delete
|
|
368
|
+
*/
|
|
369
|
+
deleteCorehrV2LocationAddress(location_id: string, address_id: string): Promise<void>;
|
|
370
|
+
/**
|
|
371
|
+
* 更新地点地址
|
|
372
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/location-address/patch
|
|
373
|
+
*/
|
|
374
|
+
patchCorehrV2LocationAddress(location_id: string, address_id: string, body: PatchCorehrV2LocationAddressRequest, query?: PatchCorehrV2LocationAddressQuery): Promise<void>;
|
|
375
|
+
/**
|
|
376
|
+
* 添加地点地址
|
|
377
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/location-address/create
|
|
378
|
+
*/
|
|
379
|
+
createCorehrV2LocationAddress(location_id: string, body: CreateCorehrV2LocationAddressRequest, query?: CreateCorehrV2LocationAddressQuery): Promise<CreateCorehrV2LocationAddressResponse>;
|
|
380
|
+
/**
|
|
381
|
+
* 创建公司
|
|
382
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/create
|
|
383
|
+
*/
|
|
384
|
+
createCorehrV1Company(body: CreateCorehrV1CompanyRequest, query?: CreateCorehrV1CompanyQuery): Promise<CreateCorehrV1CompanyResponse>;
|
|
385
|
+
/**
|
|
386
|
+
* 更新公司
|
|
387
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/patch
|
|
388
|
+
*/
|
|
389
|
+
patchCorehrV1Company(company_id: string, body: PatchCorehrV1CompanyRequest, query?: PatchCorehrV1CompanyQuery): Promise<PatchCorehrV1CompanyResponse>;
|
|
390
|
+
/**
|
|
391
|
+
* 启用/停用公司
|
|
392
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/company/active
|
|
393
|
+
*/
|
|
394
|
+
activeCorehrV2Company(body: ActiveCorehrV2CompanyRequest): Promise<void>;
|
|
395
|
+
/**
|
|
396
|
+
* 查询单个公司
|
|
397
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/get
|
|
398
|
+
*/
|
|
399
|
+
getCorehrV1Company(company_id: string): Promise<GetCorehrV1CompanyResponse>;
|
|
400
|
+
/**
|
|
401
|
+
* 批量查询公司
|
|
402
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list
|
|
403
|
+
*/
|
|
404
|
+
listCorehrV1Company(query?: Pagination): Paginated<Company>;
|
|
405
|
+
/**
|
|
406
|
+
* 查询指定时间范围内当前生效信息发生变更的公司
|
|
407
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/company/query_recent_change
|
|
408
|
+
*/
|
|
409
|
+
queryRecentChangeCorehrV2Company(query?: QueryRecentChangeCorehrV2CompanyQuery): Promise<QueryRecentChangeCorehrV2CompanyResponse>;
|
|
410
|
+
/**
|
|
411
|
+
* 通过公司 ID 批量获取公司信息
|
|
412
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/company/batch_get
|
|
413
|
+
*/
|
|
414
|
+
batchGetCorehrV2Company(body: BatchGetCorehrV2CompanyRequest): Promise<BatchGetCorehrV2CompanyResponse>;
|
|
415
|
+
/**
|
|
416
|
+
* 删除公司
|
|
417
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/delete
|
|
418
|
+
*/
|
|
419
|
+
deleteCorehrV1Company(company_id: string): Promise<void>;
|
|
420
|
+
/**
|
|
421
|
+
* 创建成本中心
|
|
422
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/create
|
|
423
|
+
*/
|
|
424
|
+
createCorehrV2CostCenter(body: CreateCorehrV2CostCenterRequest, query?: CreateCorehrV2CostCenterQuery): Promise<CreateCorehrV2CostCenterResponse>;
|
|
425
|
+
/**
|
|
426
|
+
* 启用 / 停用成本中心
|
|
427
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/patch
|
|
428
|
+
*/
|
|
429
|
+
patchCorehrV2CostCenter(cost_center_id: string, body: PatchCorehrV2CostCenterRequest, query?: PatchCorehrV2CostCenterQuery): Promise<PatchCorehrV2CostCenterResponse>;
|
|
430
|
+
/**
|
|
431
|
+
* 查询当前生效信息发生变更的成本中心
|
|
432
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/query_recent_change
|
|
433
|
+
*/
|
|
434
|
+
queryRecentChangeCorehrV2CostCenter(query?: QueryRecentChangeCorehrV2CostCenterQuery): Promise<QueryRecentChangeCorehrV2CostCenterResponse>;
|
|
435
|
+
/**
|
|
436
|
+
* 搜索成本中心信息
|
|
437
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/search
|
|
438
|
+
*/
|
|
439
|
+
searchCorehrV2CostCenter(body: SearchCorehrV2CostCenterRequest, query?: SearchCorehrV2CostCenterQuery): Paginated<CostCenterVersion>;
|
|
440
|
+
/**
|
|
441
|
+
* 删除成本中心
|
|
442
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/delete
|
|
443
|
+
*/
|
|
444
|
+
deleteCorehrV2CostCenter(cost_center_id: string, body: DeleteCorehrV2CostCenterRequest): Promise<void>;
|
|
445
|
+
/**
|
|
446
|
+
* 创建成本中心版本
|
|
447
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center-version/create
|
|
448
|
+
*/
|
|
449
|
+
createCorehrV2CostCenterVersion(cost_center_id: string, body: CreateCorehrV2CostCenterVersionRequest, query?: CreateCorehrV2CostCenterVersionQuery): Promise<CreateCorehrV2CostCenterVersionResponse>;
|
|
450
|
+
/**
|
|
451
|
+
* 更正成本中心版本
|
|
452
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center-version/patch
|
|
453
|
+
*/
|
|
454
|
+
patchCorehrV2CostCenterVersion(cost_center_id: string, version_id: string, body: PatchCorehrV2CostCenterVersionRequest, query?: PatchCorehrV2CostCenterVersionQuery): Promise<PatchCorehrV2CostCenterVersionResponse>;
|
|
455
|
+
/**
|
|
456
|
+
* 撤销成本中心版本
|
|
457
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center-version/delete
|
|
458
|
+
*/
|
|
459
|
+
deleteCorehrV2CostCenterVersion(cost_center_id: string, version_id: string, body: DeleteCorehrV2CostCenterVersionRequest): Promise<void>;
|
|
460
|
+
/**
|
|
461
|
+
* 根据流程 ID 查询组织架构调整记录
|
|
462
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/approval_groups/get
|
|
463
|
+
*/
|
|
464
|
+
getCorehrV2ApprovalGroups(process_id: string, query?: GetCorehrV2ApprovalGroupsQuery): Promise<GetCorehrV2ApprovalGroupsResponse>;
|
|
465
|
+
/**
|
|
466
|
+
* 批量查询部门调整内容
|
|
467
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/approval_groups/open_query_department_change_list_by_ids
|
|
468
|
+
*/
|
|
469
|
+
openQueryDepartmentChangeListByIdsCorehrV2ApprovalGroups(body: OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsRequest, query?: OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsQuery): Promise<OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsResponse>;
|
|
470
|
+
/**
|
|
471
|
+
* 批量查询人员调整内容
|
|
472
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/approval_groups/open_query_job_change_list_by_ids
|
|
473
|
+
*/
|
|
474
|
+
openQueryJobChangeListByIdsCorehrV2ApprovalGroups(body: OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsRequest, query?: OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsQuery): Promise<OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsResponse>;
|
|
475
|
+
/**
|
|
476
|
+
* 创建序列
|
|
477
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/create
|
|
478
|
+
*/
|
|
479
|
+
createCorehrV1JobFamily(body: CreateCorehrV1JobFamilyRequest, query?: CreateCorehrV1JobFamilyQuery): Promise<CreateCorehrV1JobFamilyResponse>;
|
|
480
|
+
/**
|
|
481
|
+
* 更新序列
|
|
482
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/patch
|
|
483
|
+
*/
|
|
484
|
+
patchCorehrV1JobFamily(job_family_id: string, body: PatchCorehrV1JobFamilyRequest, query?: PatchCorehrV1JobFamilyQuery): Promise<PatchCorehrV1JobFamilyResponse>;
|
|
485
|
+
/**
|
|
486
|
+
* 查询单个序列
|
|
487
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get
|
|
488
|
+
*/
|
|
489
|
+
getCorehrV1JobFamily(job_family_id: string): Promise<GetCorehrV1JobFamilyResponse>;
|
|
490
|
+
/**
|
|
491
|
+
* 批量查询序列
|
|
492
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list
|
|
493
|
+
*/
|
|
494
|
+
listCorehrV1JobFamily(query?: Pagination): Paginated<JobFamily>;
|
|
495
|
+
/**
|
|
496
|
+
* 查询当前生效信息发生变更的序列
|
|
497
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_family/query_recent_change
|
|
498
|
+
*/
|
|
499
|
+
queryRecentChangeCorehrV2JobFamily(query?: QueryRecentChangeCorehrV2JobFamilyQuery): Promise<QueryRecentChangeCorehrV2JobFamilyResponse>;
|
|
500
|
+
/**
|
|
501
|
+
* 通过序列 ID 批量获取序列信息
|
|
502
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_family/batch_get
|
|
503
|
+
*/
|
|
504
|
+
batchGetCorehrV2JobFamily(body: BatchGetCorehrV2JobFamilyRequest): Promise<BatchGetCorehrV2JobFamilyResponse>;
|
|
505
|
+
/**
|
|
506
|
+
* 删除序列
|
|
507
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/delete
|
|
508
|
+
*/
|
|
509
|
+
deleteCorehrV1JobFamily(job_family_id: string): Promise<void>;
|
|
510
|
+
/**
|
|
511
|
+
* 新建职级
|
|
512
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/create
|
|
513
|
+
*/
|
|
514
|
+
createCorehrV1JobLevel(body: CreateCorehrV1JobLevelRequest, query?: CreateCorehrV1JobLevelQuery): Promise<CreateCorehrV1JobLevelResponse>;
|
|
515
|
+
/**
|
|
516
|
+
* 更新单个职级
|
|
517
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/patch
|
|
518
|
+
*/
|
|
519
|
+
patchCorehrV1JobLevel(job_level_id: string, body: PatchCorehrV1JobLevelRequest, query?: PatchCorehrV1JobLevelQuery): Promise<PatchCorehrV1JobLevelResponse>;
|
|
520
|
+
/**
|
|
521
|
+
* 查询单个职级
|
|
522
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/get
|
|
523
|
+
*/
|
|
524
|
+
getCorehrV1JobLevel(job_level_id: string): Promise<GetCorehrV1JobLevelResponse>;
|
|
525
|
+
/**
|
|
526
|
+
* 批量查询职级
|
|
527
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list
|
|
528
|
+
*/
|
|
529
|
+
listCorehrV1JobLevel(query?: Pagination): Paginated<JobLevel>;
|
|
530
|
+
/**
|
|
531
|
+
* 查询当前生效信息发生变更的职级
|
|
532
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_level/query_recent_change
|
|
533
|
+
*/
|
|
534
|
+
queryRecentChangeCorehrV2JobLevel(query?: QueryRecentChangeCorehrV2JobLevelQuery): Promise<QueryRecentChangeCorehrV2JobLevelResponse>;
|
|
535
|
+
/**
|
|
536
|
+
* 通过职级 ID 批量获取职级信息
|
|
537
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_level/batch_get
|
|
538
|
+
*/
|
|
539
|
+
batchGetCorehrV2JobLevel(body: BatchGetCorehrV2JobLevelRequest): Promise<BatchGetCorehrV2JobLevelResponse>;
|
|
540
|
+
/**
|
|
541
|
+
* 删除职级
|
|
542
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/delete
|
|
543
|
+
*/
|
|
544
|
+
deleteCorehrV1JobLevel(job_level_id: string): Promise<void>;
|
|
545
|
+
/**
|
|
546
|
+
* 创建职等
|
|
547
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/create
|
|
548
|
+
*/
|
|
549
|
+
createCorehrV2JobGrade(body: CreateCorehrV2JobGradeRequest, query?: CreateCorehrV2JobGradeQuery): Promise<CreateCorehrV2JobGradeResponse>;
|
|
550
|
+
/**
|
|
551
|
+
* 更新职等
|
|
552
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/patch
|
|
553
|
+
*/
|
|
554
|
+
patchCorehrV2JobGrade(job_grade_id: string, body: PatchCorehrV2JobGradeRequest, query?: PatchCorehrV2JobGradeQuery): Promise<void>;
|
|
555
|
+
/**
|
|
556
|
+
* 查询职等
|
|
557
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query
|
|
558
|
+
*/
|
|
559
|
+
queryCorehrV2JobGrade(body: QueryCorehrV2JobGradeRequest, query?: Pagination): Paginated<JobGrade>;
|
|
560
|
+
/**
|
|
561
|
+
* 查询当前生效信息发生变更的职等
|
|
562
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query_recent_change
|
|
563
|
+
*/
|
|
564
|
+
queryRecentChangeCorehrV2JobGrade(query?: QueryRecentChangeCorehrV2JobGradeQuery): Promise<QueryRecentChangeCorehrV2JobGradeResponse>;
|
|
565
|
+
/**
|
|
566
|
+
* 删除职等
|
|
567
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/delete
|
|
568
|
+
*/
|
|
569
|
+
deleteCorehrV2JobGrade(job_grade_id: string): Promise<void>;
|
|
570
|
+
/**
|
|
571
|
+
* 创建职务
|
|
572
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/create
|
|
573
|
+
*/
|
|
574
|
+
createCorehrV1Job(body: CreateCorehrV1JobRequest, query?: CreateCorehrV1JobQuery): Promise<CreateCorehrV1JobResponse>;
|
|
575
|
+
/**
|
|
576
|
+
* 删除职务
|
|
577
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/delete
|
|
578
|
+
*/
|
|
579
|
+
deleteCorehrV1Job(job_id: string): Promise<void>;
|
|
580
|
+
/**
|
|
581
|
+
* 更新职务
|
|
582
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/patch
|
|
583
|
+
*/
|
|
584
|
+
patchCorehrV1Job(job_id: string, body: PatchCorehrV1JobRequest, query?: PatchCorehrV1JobQuery): Promise<PatchCorehrV1JobResponse>;
|
|
585
|
+
/**
|
|
586
|
+
* 查询单个职务
|
|
587
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/get
|
|
588
|
+
*/
|
|
589
|
+
getCorehrV2Job(job_id: string): Promise<GetCorehrV2JobResponse>;
|
|
590
|
+
/**
|
|
591
|
+
* 批量查询职务
|
|
592
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list
|
|
593
|
+
*/
|
|
594
|
+
listCorehrV2Job(query?: ListCorehrV2JobQuery): Paginated<Job>;
|
|
595
|
+
/**
|
|
596
|
+
* 撤销入职
|
|
597
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/withdraw_onboarding
|
|
598
|
+
*/
|
|
599
|
+
withdrawOnboardingCorehrV2PreHire(body: WithdrawOnboardingCorehrV2PreHireRequest): Promise<WithdrawOnboardingCorehrV2PreHireResponse>;
|
|
600
|
+
/**
|
|
601
|
+
* 恢复入职
|
|
602
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/restore_flow_instance
|
|
603
|
+
*/
|
|
604
|
+
restoreFlowInstanceCorehrV2PreHire(body: RestoreFlowInstanceCorehrV2PreHireRequest): Promise<RestoreFlowInstanceCorehrV2PreHireResponse>;
|
|
605
|
+
/**
|
|
606
|
+
* 直接创建待入职
|
|
607
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/create
|
|
608
|
+
*/
|
|
609
|
+
createCorehrV2PreHire(body: CreateCorehrV2PreHireRequest): Promise<CreateCorehrV2PreHireResponse>;
|
|
610
|
+
/**
|
|
611
|
+
* 更新待入职信息
|
|
612
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/patch
|
|
613
|
+
*/
|
|
614
|
+
patchCorehrV2PreHire(pre_hire_id: string, body: PatchCorehrV2PreHireRequest): Promise<PatchCorehrV2PreHireResponse>;
|
|
615
|
+
/**
|
|
616
|
+
* 删除待入职信息
|
|
617
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/delete
|
|
618
|
+
*/
|
|
619
|
+
deleteCorehrV2PreHire(pre_hire_id: string): Promise<void>;
|
|
620
|
+
/**
|
|
621
|
+
* 查询待入职信息
|
|
622
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/query
|
|
623
|
+
*/
|
|
624
|
+
queryCorehrV2PreHire(body: QueryCorehrV2PreHireRequest, query?: QueryCorehrV2PreHireQuery): Paginated<PreHire>;
|
|
625
|
+
/**
|
|
626
|
+
* 查询单个待入职信息
|
|
627
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/pre_hire/get
|
|
628
|
+
*/
|
|
629
|
+
getCorehrV1PreHire(pre_hire_id: string): Promise<GetCorehrV1PreHireResponse>;
|
|
630
|
+
/**
|
|
631
|
+
* 批量查询待入职信息
|
|
632
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/pre_hire/list
|
|
633
|
+
*/
|
|
634
|
+
listCorehrV1PreHire(query?: ListCorehrV1PreHireQuery): Paginated<PreHireQuery>;
|
|
635
|
+
/**
|
|
636
|
+
* 搜索待入职信息
|
|
637
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/search
|
|
638
|
+
*/
|
|
639
|
+
searchCorehrV2PreHire(body: SearchCorehrV2PreHireRequest, query?: SearchCorehrV2PreHireQuery): Paginated<PreHire>;
|
|
640
|
+
/**
|
|
641
|
+
* 流转入职任务
|
|
642
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/transit_task
|
|
643
|
+
*/
|
|
644
|
+
transitTaskCorehrV2PreHire(pre_hire_id: string, body: TransitTaskCorehrV2PreHireRequest): Promise<TransitTaskCorehrV2PreHireResponse>;
|
|
645
|
+
/**
|
|
646
|
+
* 操作员工完成入职
|
|
647
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/complete
|
|
648
|
+
*/
|
|
649
|
+
completeCorehrV2PreHire(pre_hire_id: string): Promise<CompleteCorehrV2PreHireResponse>;
|
|
650
|
+
/**
|
|
651
|
+
* 删除待入职(不推荐)
|
|
652
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/pre_hire/delete
|
|
653
|
+
*/
|
|
654
|
+
deleteCorehrV1PreHire(pre_hire_id: string): Promise<void>;
|
|
655
|
+
/**
|
|
656
|
+
* 更新待入职信息(不推荐)
|
|
657
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/pre_hire/patch
|
|
658
|
+
*/
|
|
659
|
+
patchCorehrV1PreHire(pre_hire_id: string, body: PatchCorehrV1PreHireRequest, query?: PatchCorehrV1PreHireQuery): Promise<PatchCorehrV1PreHireResponse>;
|
|
660
|
+
/**
|
|
661
|
+
* 新增试用期考核信息
|
|
662
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation-assessment/create
|
|
663
|
+
*/
|
|
664
|
+
createCorehrV2ProbationAssessment(body: CreateCorehrV2ProbationAssessmentRequest, query?: CreateCorehrV2ProbationAssessmentQuery): Promise<CreateCorehrV2ProbationAssessmentResponse>;
|
|
665
|
+
/**
|
|
666
|
+
* 启用/停用试用期考核功能
|
|
667
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation/enable_disable_assessment
|
|
668
|
+
*/
|
|
669
|
+
enableDisableAssessmentCorehrV2Probation(body: EnableDisableAssessmentCorehrV2ProbationRequest): Promise<void>;
|
|
670
|
+
/**
|
|
671
|
+
* 更新试用期考核信息
|
|
672
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation-assessment/patch
|
|
673
|
+
*/
|
|
674
|
+
patchCorehrV2ProbationAssessment(assessment_id: string, body: PatchCorehrV2ProbationAssessmentRequest, query?: PatchCorehrV2ProbationAssessmentQuery): Promise<void>;
|
|
675
|
+
/**
|
|
676
|
+
* 搜索试用期信息
|
|
677
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation/search
|
|
678
|
+
*/
|
|
679
|
+
searchCorehrV2Probation(body: SearchCorehrV2ProbationRequest, query?: SearchCorehrV2ProbationQuery): Paginated<ProbationInfo>;
|
|
680
|
+
/**
|
|
681
|
+
* 删除试用期考核信息
|
|
682
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation-assessment/delete
|
|
683
|
+
*/
|
|
684
|
+
deleteCorehrV2ProbationAssessment(assessment_id: string): Promise<void>;
|
|
685
|
+
/**
|
|
686
|
+
* 发起转正
|
|
687
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation/submit
|
|
688
|
+
*/
|
|
689
|
+
submitCorehrV2Probation(body: SubmitCorehrV2ProbationRequest, query?: SubmitCorehrV2ProbationQuery): Promise<SubmitCorehrV2ProbationResponse>;
|
|
690
|
+
/**
|
|
691
|
+
* 撤销转正
|
|
692
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation/withdraw
|
|
693
|
+
*/
|
|
694
|
+
withdrawCorehrV2Probation(body: WithdrawCorehrV2ProbationRequest, query?: WithdrawCorehrV2ProbationQuery): Promise<void>;
|
|
695
|
+
/**
|
|
696
|
+
* 发起员工异动
|
|
697
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_change/create
|
|
698
|
+
*/
|
|
699
|
+
createCorehrV2JobChange(body: CreateCorehrV2JobChangeRequest, query?: CreateCorehrV2JobChangeQuery): Promise<CreateCorehrV2JobChangeResponse>;
|
|
700
|
+
/**
|
|
701
|
+
* 获取异动类型列表
|
|
702
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/transfer_type/query
|
|
703
|
+
*/
|
|
704
|
+
queryCorehrV1TransferType(query?: QueryCorehrV1TransferTypeQuery): Promise<QueryCorehrV1TransferTypeResponse>;
|
|
705
|
+
/**
|
|
706
|
+
* 获取异动原因列表
|
|
707
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/transfer_reason/query
|
|
708
|
+
*/
|
|
709
|
+
queryCorehrV1TransferReason(query?: QueryCorehrV1TransferReasonQuery): Promise<QueryCorehrV1TransferReasonResponse>;
|
|
710
|
+
/**
|
|
711
|
+
* 搜索员工异动信息
|
|
712
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_change/search
|
|
713
|
+
*/
|
|
714
|
+
searchCorehrV2JobChange(body: SearchCorehrV2JobChangeRequest, query?: SearchCorehrV2JobChangeQuery): Paginated<JobChange>;
|
|
715
|
+
/**
|
|
716
|
+
* 撤销异动
|
|
717
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_change/revoke
|
|
718
|
+
*/
|
|
719
|
+
revokeCorehrV2JobChange(job_change_id: string, body: RevokeCorehrV2JobChangeRequest, query?: RevokeCorehrV2JobChangeQuery): Promise<void>;
|
|
720
|
+
/**
|
|
721
|
+
* 发起员工异动(不推荐)
|
|
722
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_change/create
|
|
723
|
+
*/
|
|
724
|
+
createCorehrV1JobChange(body: CreateCorehrV1JobChangeRequest, query?: CreateCorehrV1JobChangeQuery): Promise<CreateCorehrV1JobChangeResponse>;
|
|
725
|
+
/**
|
|
726
|
+
* 查询员工离职原因列表
|
|
727
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/offboarding/query
|
|
728
|
+
*/
|
|
729
|
+
queryCorehrV1Offboarding(body: QueryCorehrV1OffboardingRequest): Promise<QueryCorehrV1OffboardingResponse>;
|
|
730
|
+
/**
|
|
731
|
+
* 操作员工离职
|
|
732
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/offboarding/submit_v2
|
|
733
|
+
*/
|
|
734
|
+
submitV2CorehrV2Offboarding(body: SubmitV2CorehrV2OffboardingRequest, query?: SubmitV2CorehrV2OffboardingQuery): Promise<SubmitV2CorehrV2OffboardingResponse>;
|
|
735
|
+
/**
|
|
736
|
+
* 编辑离职信息
|
|
737
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/offboarding/edit
|
|
738
|
+
*/
|
|
739
|
+
editCorehrV2Offboarding(body: EditCorehrV2OffboardingRequest, query?: EditCorehrV2OffboardingQuery): Promise<EditCorehrV2OffboardingResponse>;
|
|
740
|
+
/**
|
|
741
|
+
* 撤销离职
|
|
742
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/offboarding/revoke
|
|
743
|
+
*/
|
|
744
|
+
revokeCorehrV2Offboarding(body: RevokeCorehrV2OffboardingRequest, query?: RevokeCorehrV2OffboardingQuery): Promise<void>;
|
|
745
|
+
/**
|
|
746
|
+
* 搜索离职信息
|
|
747
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/offboarding/search
|
|
748
|
+
*/
|
|
749
|
+
searchCorehrV1Offboarding(body: SearchCorehrV1OffboardingRequest, query?: SearchCorehrV1OffboardingQuery): Paginated<Offboarding>;
|
|
750
|
+
/**
|
|
751
|
+
* 新建合同
|
|
752
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/create
|
|
753
|
+
*/
|
|
754
|
+
createCorehrV1Contract(body: CreateCorehrV1ContractRequest, query?: CreateCorehrV1ContractQuery): Promise<CreateCorehrV1ContractResponse>;
|
|
755
|
+
/**
|
|
756
|
+
* 更新合同
|
|
757
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/patch
|
|
758
|
+
*/
|
|
759
|
+
patchCorehrV1Contract(contract_id: string, body: PatchCorehrV1ContractRequest, query?: PatchCorehrV1ContractQuery): Promise<PatchCorehrV1ContractResponse>;
|
|
760
|
+
/**
|
|
761
|
+
* 删除合同
|
|
762
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/delete
|
|
763
|
+
*/
|
|
764
|
+
deleteCorehrV1Contract(contract_id: string): Promise<void>;
|
|
765
|
+
/**
|
|
766
|
+
* 查询单个合同
|
|
767
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/get
|
|
768
|
+
*/
|
|
769
|
+
getCorehrV1Contract(contract_id: string): Promise<GetCorehrV1ContractResponse>;
|
|
770
|
+
/**
|
|
771
|
+
* 批量查询合同
|
|
772
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/list
|
|
773
|
+
*/
|
|
774
|
+
listCorehrV1Contract(query?: Pagination): Paginated<Contract>;
|
|
775
|
+
/**
|
|
776
|
+
* 搜索合同
|
|
777
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/contract/search
|
|
778
|
+
*/
|
|
779
|
+
searchCorehrV2Contract(body: SearchCorehrV2ContractRequest, query?: SearchCorehrV2ContractQuery): Paginated<Contract>;
|
|
780
|
+
/**
|
|
781
|
+
* 批量创建/更新明细行
|
|
782
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/workforce_plan_detail_row/batchSave
|
|
783
|
+
*/
|
|
784
|
+
batchSaveCorehrV2WorkforcePlanDetailRow(body: BatchSaveCorehrV2WorkforcePlanDetailRowRequest): Promise<void>;
|
|
785
|
+
/**
|
|
786
|
+
* 批量删除明细行
|
|
787
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/workforce_plan_detail_row/batchDelete
|
|
788
|
+
*/
|
|
789
|
+
batchDeleteCorehrV2WorkforcePlanDetailRow(body: BatchDeleteCorehrV2WorkforcePlanDetailRowRequest): Promise<void>;
|
|
790
|
+
/**
|
|
791
|
+
* 批量创建/更新填报行
|
|
792
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/report_detail_row/batchSave
|
|
793
|
+
*/
|
|
794
|
+
batchSaveCorehrV2ReportDetailRow(body: BatchSaveCorehrV2ReportDetailRowRequest): Promise<void>;
|
|
795
|
+
/**
|
|
796
|
+
* 批量删除填报行
|
|
797
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/report_detail_row/batchDelete
|
|
798
|
+
*/
|
|
799
|
+
batchDeleteCorehrV2ReportDetailRow(body: BatchDeleteCorehrV2ReportDetailRowRequest): Promise<void>;
|
|
800
|
+
/**
|
|
801
|
+
* 查询编制规划方案
|
|
802
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/workforce_plan/list
|
|
803
|
+
*/
|
|
804
|
+
listCorehrV2WorkforcePlan(query?: ListCorehrV2WorkforcePlanQuery): Promise<ListCorehrV2WorkforcePlanResponse>;
|
|
805
|
+
/**
|
|
806
|
+
* 查询编制规划明细信息
|
|
807
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/workforce_plan_detail/batch
|
|
808
|
+
*/
|
|
809
|
+
batchCorehrV2WorkforcePlanDetail(body: BatchCorehrV2WorkforcePlanDetailRequest, query?: Pagination): Promise<BatchCorehrV2WorkforcePlanDetailResponse>;
|
|
810
|
+
/**
|
|
811
|
+
* 创建假期发放记录
|
|
812
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave_granting_record/create
|
|
813
|
+
*/
|
|
814
|
+
createCorehrV1LeaveGrantingRecord(body: CreateCorehrV1LeaveGrantingRecordRequest, query?: CreateCorehrV1LeaveGrantingRecordQuery): Promise<CreateCorehrV1LeaveGrantingRecordResponse>;
|
|
815
|
+
/**
|
|
816
|
+
* 删除假期发放记录
|
|
817
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave_granting_record/delete
|
|
818
|
+
*/
|
|
819
|
+
deleteCorehrV1LeaveGrantingRecord(leave_granting_record_id: string): Promise<void>;
|
|
820
|
+
/**
|
|
821
|
+
* 获取假期类型列表
|
|
822
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/leave_types
|
|
823
|
+
*/
|
|
824
|
+
leaveTypesCorehrV1Leave(query?: LeaveTypesCorehrV1LeaveQuery): Paginated<LeaveType, 'leave_type_list'>;
|
|
825
|
+
/**
|
|
826
|
+
* 批量查询员工假期余额
|
|
827
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/leave_balances
|
|
828
|
+
*/
|
|
829
|
+
leaveBalancesCorehrV1Leave(query?: LeaveBalancesCorehrV1LeaveQuery): Paginated<EmploymentLeaveBalance, 'employment_leave_balance_list'>;
|
|
830
|
+
/**
|
|
831
|
+
* 批量查询员工请假记录
|
|
832
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/leave_request_history
|
|
833
|
+
*/
|
|
834
|
+
leaveRequestHistoryCorehrV1Leave(query?: LeaveRequestHistoryCorehrV1LeaveQuery): Paginated<LeaveRequest, 'leave_request_list'>;
|
|
835
|
+
/**
|
|
836
|
+
* 获取工作日历
|
|
837
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar
|
|
838
|
+
*/
|
|
839
|
+
workCalendarCorehrV1Leave(body: WorkCalendarCorehrV1LeaveRequest): Promise<WorkCalendarCorehrV1LeaveResponse>;
|
|
840
|
+
/**
|
|
841
|
+
* 根据适用条件获取工作日历 ID
|
|
842
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/calendar_by_scope
|
|
843
|
+
*/
|
|
844
|
+
calendarByScopeCorehrV1Leave(query?: CalendarByScopeCorehrV1LeaveQuery): Promise<CalendarByScopeCorehrV1LeaveResponse>;
|
|
845
|
+
/**
|
|
846
|
+
* 获取工作日历日期详情
|
|
847
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar_date
|
|
848
|
+
*/
|
|
849
|
+
workCalendarDateCorehrV1Leave(body: WorkCalendarDateCorehrV1LeaveRequest): Promise<WorkCalendarDateCorehrV1LeaveResponse>;
|
|
850
|
+
/**
|
|
851
|
+
* 批量查询用户授权
|
|
852
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/authorization/query
|
|
853
|
+
*/
|
|
854
|
+
queryCorehrV1Authorization(query?: QueryCorehrV1AuthorizationQuery): Paginated<RoleAuthorization>;
|
|
855
|
+
/**
|
|
856
|
+
* 查询单个用户授权
|
|
857
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/authorization/get_by_param
|
|
858
|
+
*/
|
|
859
|
+
getByParamCorehrV1Authorization(query?: GetByParamCorehrV1AuthorizationQuery): Promise<GetByParamCorehrV1AuthorizationResponse>;
|
|
860
|
+
/**
|
|
861
|
+
* 批量获取角色列表
|
|
862
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/security_group/list
|
|
863
|
+
*/
|
|
864
|
+
listCorehrV1SecurityGroup(query?: Pagination): Paginated<SecurityGroup>;
|
|
865
|
+
/**
|
|
866
|
+
* 为用户授权角色
|
|
867
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/authorization/add_role_assign
|
|
868
|
+
*/
|
|
869
|
+
addRoleAssignCorehrV1Authorization(body: AddRoleAssignCorehrV1AuthorizationRequest, query?: AddRoleAssignCorehrV1AuthorizationQuery): Promise<AddRoleAssignCorehrV1AuthorizationResponse>;
|
|
870
|
+
/**
|
|
871
|
+
* 更新用户被授权的数据范围
|
|
872
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/authorization/update_role_assign
|
|
873
|
+
*/
|
|
874
|
+
updateRoleAssignCorehrV1Authorization(body: UpdateRoleAssignCorehrV1AuthorizationRequest, query?: UpdateRoleAssignCorehrV1AuthorizationQuery): Promise<UpdateRoleAssignCorehrV1AuthorizationResponse>;
|
|
875
|
+
/**
|
|
876
|
+
* 移除用户被授权的角色
|
|
877
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/authorization/remove_role_assign
|
|
878
|
+
*/
|
|
879
|
+
removeRoleAssignCorehrV1Authorization(query?: RemoveRoleAssignCorehrV1AuthorizationQuery): Promise<RemoveRoleAssignCorehrV1AuthorizationResponse>;
|
|
880
|
+
/**
|
|
881
|
+
* 查询员工 HRBP / 属地 BP
|
|
882
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-bp/batch_get
|
|
883
|
+
*/
|
|
884
|
+
batchGetCorehrV2EmployeesBp(body: BatchGetCorehrV2EmployeesBpRequest, query?: BatchGetCorehrV2EmployeesBpQuery): Promise<BatchGetCorehrV2EmployeesBpResponse>;
|
|
885
|
+
/**
|
|
886
|
+
* 查询部门 HRBP
|
|
887
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/bp/get_by_department
|
|
888
|
+
*/
|
|
889
|
+
getByDepartmentCorehrV2Bp(body: GetByDepartmentCorehrV2BpRequest, query?: GetByDepartmentCorehrV2BpQuery): Promise<GetByDepartmentCorehrV2BpResponse>;
|
|
890
|
+
/**
|
|
891
|
+
* 查询部门 / 地点的 HRBP / 属地 BP
|
|
892
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/security_group/query
|
|
893
|
+
*/
|
|
894
|
+
queryCorehrV1SecurityGroup(body: QueryCorehrV1SecurityGroupRequest, query?: QueryCorehrV1SecurityGroupQuery): Promise<QueryCorehrV1SecurityGroupResponse>;
|
|
895
|
+
/**
|
|
896
|
+
* 获取 HRBP 列表
|
|
897
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/bp/list
|
|
898
|
+
*/
|
|
899
|
+
listCorehrV2Bp(query?: ListCorehrV2BpQuery): Paginated<Bp>;
|
|
900
|
+
/**
|
|
901
|
+
* 获取组织类角色授权列表
|
|
902
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/assigned_user/search
|
|
903
|
+
*/
|
|
904
|
+
searchCorehrV1AssignedUser(body: SearchCorehrV1AssignedUserRequest, query?: SearchCorehrV1AssignedUserQuery): Paginated<RoleAuthorization>;
|
|
905
|
+
/**
|
|
906
|
+
* 查询流程实例列表
|
|
907
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process/list
|
|
908
|
+
*/
|
|
909
|
+
listCorehrV2Process(query?: ListCorehrV2ProcessQuery): Paginated<string, 'process_ids'>;
|
|
910
|
+
/**
|
|
911
|
+
* 获取单个流程详情
|
|
912
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process/get
|
|
913
|
+
*/
|
|
914
|
+
getCorehrV2Process(process_id: string, query?: GetCorehrV2ProcessQuery): Promise<GetCorehrV2ProcessResponse>;
|
|
915
|
+
/**
|
|
916
|
+
* 获取流程表单数据
|
|
917
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process-form_variable_data/get
|
|
918
|
+
*/
|
|
919
|
+
getCorehrV2ProcessFormVariableData(process_id: string, query?: GetCorehrV2ProcessFormVariableDataQuery): Promise<GetCorehrV2ProcessFormVariableDataResponse>;
|
|
920
|
+
/**
|
|
921
|
+
* 撤销流程
|
|
922
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process_revoke/update
|
|
923
|
+
*/
|
|
924
|
+
updateCorehrV2ProcessRevoke(process_id: string, body: UpdateCorehrV2ProcessRevokeRequest, query?: UpdateCorehrV2ProcessRevokeQuery): Promise<void>;
|
|
925
|
+
/**
|
|
926
|
+
* 撤回流程
|
|
927
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process_withdraw/update
|
|
928
|
+
*/
|
|
929
|
+
updateCorehrV2ProcessWithdraw(process_id: string, body: UpdateCorehrV2ProcessWithdrawRequest, query?: UpdateCorehrV2ProcessWithdrawQuery): Promise<void>;
|
|
930
|
+
/**
|
|
931
|
+
* 获取指定人员审批任务列表
|
|
932
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/approver/list
|
|
933
|
+
*/
|
|
934
|
+
listCorehrV2Approver(query?: ListCorehrV2ApproverQuery): Paginated<ApproverInfo, 'approver_list'>;
|
|
935
|
+
/**
|
|
936
|
+
* 通过/拒绝审批任务
|
|
937
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process-approver/update
|
|
938
|
+
*/
|
|
939
|
+
updateCorehrV2ProcessApprover(process_id: string, approver_id: string, body: UpdateCorehrV2ProcessApproverRequest, query?: UpdateCorehrV2ProcessApproverQuery): Promise<UpdateCorehrV2ProcessApproverResponse>;
|
|
940
|
+
/**
|
|
941
|
+
* 加签审批任务
|
|
942
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process-extra/update
|
|
943
|
+
*/
|
|
944
|
+
updateCorehrV2ProcessExtra(process_id: string, body: UpdateCorehrV2ProcessExtraRequest, query?: UpdateCorehrV2ProcessExtraQuery): Promise<void>;
|
|
945
|
+
/**
|
|
946
|
+
* 转交审批任务
|
|
947
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process-transfer/update
|
|
948
|
+
*/
|
|
949
|
+
updateCorehrV2ProcessTransfer(process_id: string, body: UpdateCorehrV2ProcessTransferRequest, query?: UpdateCorehrV2ProcessTransferQuery): Promise<void>;
|
|
950
|
+
/**
|
|
951
|
+
* 获取员工薪资标准
|
|
952
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/compensation_standard/match
|
|
953
|
+
*/
|
|
954
|
+
matchCorehrV1CompensationStandard(query?: MatchCorehrV1CompensationStandardQuery): Promise<MatchCorehrV1CompensationStandardResponse>;
|
|
955
|
+
/**
|
|
956
|
+
* 获取流程表单数据
|
|
957
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/process-form_variable_data/get
|
|
958
|
+
*/
|
|
959
|
+
getCorehrV1ProcessFormVariableData(process_id: string): Promise<GetCorehrV1ProcessFormVariableDataResponse>;
|
|
960
|
+
/**
|
|
961
|
+
* 批量查询城市/区域信息
|
|
962
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/subregion/list
|
|
963
|
+
*/
|
|
964
|
+
listCorehrV1Subregion(query?: ListCorehrV1SubregionQuery): Paginated<Subregion>;
|
|
965
|
+
/**
|
|
966
|
+
* 查询单条城市/区域信息
|
|
967
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/subregion/get
|
|
968
|
+
*/
|
|
969
|
+
getCorehrV1Subregion(subregion_id: string): Promise<GetCorehrV1SubregionResponse>;
|
|
970
|
+
/**
|
|
971
|
+
* 批量查询省份/行政区信息
|
|
972
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/subdivision/list
|
|
973
|
+
*/
|
|
974
|
+
listCorehrV1Subdivision(query?: ListCorehrV1SubdivisionQuery): Paginated<Subdivision>;
|
|
975
|
+
/**
|
|
976
|
+
* 查询单条省份/行政区信息
|
|
977
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/subdivision/get
|
|
978
|
+
*/
|
|
979
|
+
getCorehrV1Subdivision(subdivision_id: string): Promise<GetCorehrV1SubdivisionResponse>;
|
|
980
|
+
/**
|
|
981
|
+
* 批量查询国家/地区信息
|
|
982
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/country_region/list
|
|
983
|
+
*/
|
|
984
|
+
listCorehrV1CountryRegion(query?: Pagination): Paginated<CountryRegion>;
|
|
985
|
+
/**
|
|
986
|
+
* 查询单条国家/地区信息
|
|
987
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/country_region/get
|
|
988
|
+
*/
|
|
989
|
+
getCorehrV1CountryRegion(country_region_id: string): Promise<GetCorehrV1CountryRegionResponse>;
|
|
990
|
+
/**
|
|
991
|
+
* 批量查询货币信息
|
|
992
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/currency/list
|
|
993
|
+
*/
|
|
994
|
+
listCorehrV1Currency(query?: Pagination): Paginated<Currency>;
|
|
995
|
+
/**
|
|
996
|
+
* 查询单个货币信息
|
|
997
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/currency/get
|
|
998
|
+
*/
|
|
999
|
+
getCorehrV1Currency(currency_id: string): Promise<GetCorehrV1CurrencyResponse>;
|
|
1000
|
+
/**
|
|
1001
|
+
* 查询单个职务
|
|
1002
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/get
|
|
1003
|
+
*/
|
|
1004
|
+
getCorehrV1Job(job_id: string): Promise<GetCorehrV1JobResponse>;
|
|
1005
|
+
/**
|
|
1006
|
+
* 删除部门
|
|
1007
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/delete
|
|
1008
|
+
*/
|
|
1009
|
+
deleteCorehrV1Department(department_id: string): Promise<void>;
|
|
1010
|
+
/**
|
|
1011
|
+
* 更新部门
|
|
1012
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/patch
|
|
1013
|
+
*/
|
|
1014
|
+
patchCorehrV1Department(department_id: string, body: PatchCorehrV1DepartmentRequest, query?: PatchCorehrV1DepartmentQuery): Promise<PatchCorehrV1DepartmentResponse>;
|
|
1015
|
+
/**
|
|
1016
|
+
* 查询单个部门
|
|
1017
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/get
|
|
1018
|
+
*/
|
|
1019
|
+
getCorehrV1Department(department_id: string, query?: GetCorehrV1DepartmentQuery): Promise<GetCorehrV1DepartmentResponse>;
|
|
1020
|
+
/**
|
|
1021
|
+
* 批量查询职务
|
|
1022
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/list
|
|
1023
|
+
*/
|
|
1024
|
+
listCorehrV1Job(query?: ListCorehrV1JobQuery): Paginated<Job>;
|
|
1025
|
+
/**
|
|
1026
|
+
* 批量查询部门
|
|
1027
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/list
|
|
1028
|
+
*/
|
|
1029
|
+
listCorehrV1Department(query?: ListCorehrV1DepartmentQuery): Paginated<Department>;
|
|
1030
|
+
/**
|
|
1031
|
+
* 更新个人信息
|
|
1032
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/patch
|
|
1033
|
+
*/
|
|
1034
|
+
patchCorehrV1Person(person_id: string, body: PatchCorehrV1PersonRequest, query?: PatchCorehrV1PersonQuery): Promise<PatchCorehrV1PersonResponse>;
|
|
1035
|
+
/**
|
|
1036
|
+
* 创建个人信息
|
|
1037
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/create
|
|
1038
|
+
*/
|
|
1039
|
+
createCorehrV1Person(body: CreateCorehrV1PersonRequest, query?: CreateCorehrV1PersonQuery): Promise<CreateCorehrV1PersonResponse>;
|
|
1040
|
+
/**
|
|
1041
|
+
* 查询单个个人信息
|
|
1042
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/get
|
|
1043
|
+
*/
|
|
1044
|
+
getCorehrV1Person(person_id: string, query?: GetCorehrV1PersonQuery): Promise<GetCorehrV1PersonResponse>;
|
|
1045
|
+
/**
|
|
1046
|
+
* 操作员工离职
|
|
1047
|
+
* @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/offboarding/submit
|
|
1048
|
+
*/
|
|
1049
|
+
submitCorehrV1Offboarding(body: SubmitCorehrV1OffboardingRequest, query?: SubmitCorehrV1OffboardingQuery): Promise<SubmitCorehrV1OffboardingResponse>;
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
export interface QueryCorehrV1CustomFieldQuery {
|
|
1053
|
+
/** 所属对象 apiname,支持一个或多个当前数量限制为 20 个 */
|
|
1054
|
+
object_api_name_list: string[];
|
|
1055
|
+
}
|
|
1056
|
+
export interface GetByParamCorehrV1CustomFieldQuery {
|
|
1057
|
+
/** 所属对象 apiname */
|
|
1058
|
+
object_api_name: string;
|
|
1059
|
+
/** 自定义字段 apiname */
|
|
1060
|
+
custom_api_name: string;
|
|
1061
|
+
}
|
|
1062
|
+
export interface AddEnumOptionCorehrV1CommonDataMetaDataRequest {
|
|
1063
|
+
/** 所属对象 API name,可通过[获取飞书人事对象列表](/ssl:ttdoc/server-docs/corehr-v1/basic-infomation/custom_field/list_object_api_name)接口中返回的 `object_api_name` 字段获取 */
|
|
1064
|
+
object_api_name: string;
|
|
1065
|
+
/** 枚举字段 API name,可通过[获取自定义字段列表](/ssl:ttdoc/server-docs/corehr-v1/basic-infomation/custom_field/query)接口中返回的 `custom_api_name` 字段获取 */
|
|
1066
|
+
enum_field_api_name: string;
|
|
1067
|
+
/** 新增枚举选项列表 */
|
|
1068
|
+
enum_field_options: EnumFieldOption[];
|
|
1069
|
+
}
|
|
1070
|
+
export interface AddEnumOptionCorehrV1CommonDataMetaDataQuery {
|
|
1071
|
+
/** 根据 client_token 是否一致来判断是否为同一请求 */
|
|
1072
|
+
client_token?: string;
|
|
1073
|
+
}
|
|
1074
|
+
export interface EditEnumOptionCorehrV1CommonDataMetaDataRequest {
|
|
1075
|
+
/** 所属对象 API name,可通过[获取飞书人事对象列表](/ssl:ttdoc/server-docs/corehr-v1/basic-infomation/custom_field/list_object_api_name)接口中返回的 `object_api_name` 字段获取 */
|
|
1076
|
+
object_api_name: string;
|
|
1077
|
+
/** 枚举字段 API name,可通过[获取自定义字段列表](/ssl:ttdoc/server-docs/corehr-v1/basic-infomation/custom_field/query)接口中返回的 `custom_api_name` 字段获取 */
|
|
1078
|
+
enum_field_api_name: string;
|
|
1079
|
+
/** 枚举选项 */
|
|
1080
|
+
enum_field_option: EnumFieldOption;
|
|
1081
|
+
}
|
|
1082
|
+
export interface EditEnumOptionCorehrV1CommonDataMetaDataQuery {
|
|
1083
|
+
/** 根据 client_token 是否一致来判断是否为同一请求 */
|
|
1084
|
+
client_token?: string;
|
|
1085
|
+
}
|
|
1086
|
+
export interface SearchCorehrV2BasicInfoCountryRegionRequest {
|
|
1087
|
+
/** 国家/地区 ID 列表,可从[批量查询地点](/ssl:ttdoc/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.country_region_id`、[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.country_region_id` 等字段中获取 */
|
|
1088
|
+
country_region_id_list?: string[];
|
|
1089
|
+
/** 状态列表 */
|
|
1090
|
+
status_list?: (1 | 0)[];
|
|
1091
|
+
}
|
|
1092
|
+
export interface SearchCorehrV2BasicInfoCountryRegionSubdivisionRequest {
|
|
1093
|
+
/** 国家/地区 ID 列表,可通过【查询国家/地区信息】接口获取 */
|
|
1094
|
+
country_region_id_list?: string[];
|
|
1095
|
+
/** 省份/行政区 ID 列表 */
|
|
1096
|
+
country_region_subdivision_id_list?: string[];
|
|
1097
|
+
/** 状态列表 */
|
|
1098
|
+
status_list?: (1 | 0)[];
|
|
1099
|
+
}
|
|
1100
|
+
export interface SearchCorehrV2BasicInfoCityRequest {
|
|
1101
|
+
/** 省份/主要行政区 ID 列表,可通过[查询省份/主要行政区信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search)接口列举,或从[批量查询地点](/ssl:ttdoc/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.region_id`、[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.region_id` 等字段中获取 */
|
|
1102
|
+
country_region_subdivision_id_list?: string[];
|
|
1103
|
+
/** 城市 ID 列表,可从[批量查询地点](/ssl:ttdoc/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.city_id_v2`、[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.city_id_v2` 等字段中获取 */
|
|
1104
|
+
city_id_list?: string[];
|
|
1105
|
+
/** 状态列表 */
|
|
1106
|
+
status_list?: (1 | 0)[];
|
|
1107
|
+
}
|
|
1108
|
+
export interface SearchCorehrV2BasicInfoDistrictRequest {
|
|
1109
|
+
/** 所属城市 ID 列表,可通过[查询城市信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-city/search)接口列举,或从[批量查询地点](/ssl:ttdoc/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.city_v2_id`、[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.city_v2_id` 等字段中获取 */
|
|
1110
|
+
city_id_list?: string[];
|
|
1111
|
+
/** 区/县 ID 列表,可从[批量查询地点](/ssl:ttdoc/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.district_id_v2`、[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.district_id_v2` 等字段中获取 */
|
|
1112
|
+
district_id_list?: string[];
|
|
1113
|
+
/** 状态列表 */
|
|
1114
|
+
status_list?: (1 | 0)[];
|
|
1115
|
+
}
|
|
1116
|
+
export interface SearchCorehrV2BasicInfoNationalityRequest {
|
|
1117
|
+
/** 国籍 ID 列表,可从[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.nationality_id_v2` 等字段中获取 */
|
|
1118
|
+
nationality_id_list?: string[];
|
|
1119
|
+
/** 国家/地区 ID 列表,可通过[查询国家/地区信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口列举 */
|
|
1120
|
+
country_region_id_list?: string[];
|
|
1121
|
+
/** 状态列表 */
|
|
1122
|
+
status_list?: (1 | 0)[];
|
|
1123
|
+
}
|
|
1124
|
+
export interface CreateCorehrV1NationalIdTypeRequest {
|
|
1125
|
+
/** 国家 / 地区 */
|
|
1126
|
+
country_region_id: string;
|
|
1127
|
+
/** 名称 */
|
|
1128
|
+
name: I18n[];
|
|
1129
|
+
/** 启用 */
|
|
1130
|
+
active: boolean;
|
|
1131
|
+
/** 校验规则 */
|
|
1132
|
+
validation_rule: string;
|
|
1133
|
+
/** 校验规则描述 */
|
|
1134
|
+
validation_rule_description?: I18n[];
|
|
1135
|
+
/** 编码 */
|
|
1136
|
+
code: string;
|
|
1137
|
+
/** 证件类型 */
|
|
1138
|
+
identification_type: Enum;
|
|
1139
|
+
/** 自定义字段 */
|
|
1140
|
+
custom_fields?: ObjectFieldData[];
|
|
1141
|
+
}
|
|
1142
|
+
export interface CreateCorehrV1NationalIdTypeQuery {
|
|
1143
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
1144
|
+
client_token?: string;
|
|
1145
|
+
}
|
|
1146
|
+
export interface PatchCorehrV1NationalIdTypeRequest {
|
|
1147
|
+
/** 国家 / 地区 */
|
|
1148
|
+
country_region_id?: string;
|
|
1149
|
+
/** 名称 */
|
|
1150
|
+
name?: I18n[];
|
|
1151
|
+
/** 启用 */
|
|
1152
|
+
active?: boolean;
|
|
1153
|
+
/** 校验规则 */
|
|
1154
|
+
validation_rule?: string;
|
|
1155
|
+
/** 校验规则描述 */
|
|
1156
|
+
validation_rule_description?: I18n[];
|
|
1157
|
+
/** 编码 */
|
|
1158
|
+
code?: string;
|
|
1159
|
+
/** 证件类型 */
|
|
1160
|
+
identification_type?: Enum;
|
|
1161
|
+
/** 自定义字段 */
|
|
1162
|
+
custom_fields?: ObjectFieldData[];
|
|
1163
|
+
}
|
|
1164
|
+
export interface PatchCorehrV1NationalIdTypeQuery {
|
|
1165
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
1166
|
+
client_token?: string;
|
|
1167
|
+
}
|
|
1168
|
+
export interface ListCorehrV1NationalIdTypeQuery extends Pagination {
|
|
1169
|
+
/** 证件类型 */
|
|
1170
|
+
identification_type?: string;
|
|
1171
|
+
/** 证件类型编码 */
|
|
1172
|
+
code?: string;
|
|
1173
|
+
/** 国家地区ID */
|
|
1174
|
+
country_region_id?: string;
|
|
1175
|
+
}
|
|
1176
|
+
export interface SearchCorehrV2BasicInfoBankRequest {
|
|
1177
|
+
/** 银行 ID 列表,可通过[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)、[批量查询员工信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_id_v2` 字段获取 */
|
|
1178
|
+
bank_id_list?: string[];
|
|
1179
|
+
/** 银行名称列表,支持对银行名称精确搜索 */
|
|
1180
|
+
bank_name_list?: string[];
|
|
1181
|
+
/** 状态列表 */
|
|
1182
|
+
status_list?: (1 | 0)[];
|
|
1183
|
+
/** 最早更新时间 */
|
|
1184
|
+
update_start_time?: string;
|
|
1185
|
+
/** 最晚更新时间 */
|
|
1186
|
+
update_end_time?: string;
|
|
1187
|
+
}
|
|
1188
|
+
export interface SearchCorehrV2BasicInfoBankBranchRequest {
|
|
1189
|
+
/** 银行 ID 列表,可通过[查询银行信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-bank/search)列举,或从[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)、[批量查询员工信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_id_v2` 字段中获取 */
|
|
1190
|
+
bank_id_list?: string[];
|
|
1191
|
+
/** 支行 ID 列表,可通过[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)、[批量查询员工信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_branch_id_v2` 字段获取 */
|
|
1192
|
+
bank_branch_id_list?: string[];
|
|
1193
|
+
/** 支行名称列表,支持对支行名称精确搜索 */
|
|
1194
|
+
bank_branch_name_list?: string[];
|
|
1195
|
+
/** 金融分支机构编码(联行号)列表,支持对金融分支机构编码精确搜索 */
|
|
1196
|
+
code_list?: string[];
|
|
1197
|
+
/** 状态列表 */
|
|
1198
|
+
status_list?: (1 | 0)[];
|
|
1199
|
+
/** 最早更新时间 */
|
|
1200
|
+
update_start_time?: string;
|
|
1201
|
+
/** 最晚更新时间 */
|
|
1202
|
+
update_end_time?: string;
|
|
1203
|
+
}
|
|
1204
|
+
export interface SearchCorehrV2BasicInfoCurrencyRequest {
|
|
1205
|
+
/** 货币 ID 列表,可通过[批量查询薪资方案](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/compensation-v1/plan/list)、[批量查询员工薪资档案](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/compensation-v1/archive/query)等接口返回的 `currency_id` 字段获取 */
|
|
1206
|
+
currency_id_list?: string[];
|
|
1207
|
+
/** 状态列表 */
|
|
1208
|
+
status_list?: (1 | 0)[];
|
|
1209
|
+
}
|
|
1210
|
+
export interface SearchCorehrV2BasicInfoTimeZoneRequest {
|
|
1211
|
+
/** 时区 ID 列表 */
|
|
1212
|
+
time_zone_id_list?: string[];
|
|
1213
|
+
/** 状态列表 */
|
|
1214
|
+
status_list?: (1 | 0)[];
|
|
1215
|
+
}
|
|
1216
|
+
export interface SearchCorehrV2BasicInfoLanguageRequest {
|
|
1217
|
+
/** 语言 ID 列表 */
|
|
1218
|
+
language_id_list?: string[];
|
|
1219
|
+
/** 状态列表 */
|
|
1220
|
+
status_list?: (1 | 0)[];
|
|
1221
|
+
}
|
|
1222
|
+
export interface CreateCorehrV1EmployeeTypeRequest {
|
|
1223
|
+
/** 名称 */
|
|
1224
|
+
name: I18n[];
|
|
1225
|
+
/** 默认雇员类型 */
|
|
1226
|
+
default_employee_type: boolean;
|
|
1227
|
+
/** 启用 */
|
|
1228
|
+
active: boolean;
|
|
1229
|
+
/** 编码 */
|
|
1230
|
+
code?: string;
|
|
1231
|
+
/** 自定义字段 */
|
|
1232
|
+
custom_fields?: ObjectFieldData[];
|
|
1233
|
+
}
|
|
1234
|
+
export interface CreateCorehrV1EmployeeTypeQuery {
|
|
1235
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
1236
|
+
client_token?: string;
|
|
1237
|
+
}
|
|
1238
|
+
export interface PatchCorehrV1EmployeeTypeRequest {
|
|
1239
|
+
/** 名称 */
|
|
1240
|
+
name?: I18n[];
|
|
1241
|
+
/** 默认雇员类型 */
|
|
1242
|
+
default_employee_type?: boolean;
|
|
1243
|
+
/** 启用 */
|
|
1244
|
+
active?: boolean;
|
|
1245
|
+
/** 编码 */
|
|
1246
|
+
code?: string;
|
|
1247
|
+
/** 自定义字段 */
|
|
1248
|
+
custom_fields?: ObjectFieldData[];
|
|
1249
|
+
}
|
|
1250
|
+
export interface PatchCorehrV1EmployeeTypeQuery {
|
|
1251
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
1252
|
+
client_token?: string;
|
|
1253
|
+
}
|
|
1254
|
+
export interface CreateCorehrV1WorkingHoursTypeRequest {
|
|
1255
|
+
/** 编码 */
|
|
1256
|
+
code?: string;
|
|
1257
|
+
/** 名称 */
|
|
1258
|
+
name: I18n[];
|
|
1259
|
+
/** 国家/地区 */
|
|
1260
|
+
country_region_id_list?: string[];
|
|
1261
|
+
/** 职务默认值 */
|
|
1262
|
+
default_for_job: boolean;
|
|
1263
|
+
/** 启用 */
|
|
1264
|
+
active: boolean;
|
|
1265
|
+
/** 自定义字段 */
|
|
1266
|
+
custom_fields?: ObjectFieldData[];
|
|
1267
|
+
}
|
|
1268
|
+
export interface CreateCorehrV1WorkingHoursTypeQuery {
|
|
1269
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
1270
|
+
client_token?: string;
|
|
1271
|
+
}
|
|
1272
|
+
export interface PatchCorehrV1WorkingHoursTypeRequest {
|
|
1273
|
+
/** 编码 */
|
|
1274
|
+
code?: string;
|
|
1275
|
+
/** 名称 */
|
|
1276
|
+
name?: I18n[];
|
|
1277
|
+
/** 国家/地区 */
|
|
1278
|
+
country_region_id_list?: string[];
|
|
1279
|
+
/** 职务默认值 */
|
|
1280
|
+
default_for_job?: boolean;
|
|
1281
|
+
/** 启用 */
|
|
1282
|
+
active?: boolean;
|
|
1283
|
+
/** 自定义字段 */
|
|
1284
|
+
custom_fields?: ObjectFieldData[];
|
|
1285
|
+
}
|
|
1286
|
+
export interface PatchCorehrV1WorkingHoursTypeQuery {
|
|
1287
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
1288
|
+
client_token?: string;
|
|
1289
|
+
}
|
|
1290
|
+
export interface ConvertCorehrV1CommonDataIdRequest {
|
|
1291
|
+
/** ID 列表(最多传入 100 个 ID,ID 长度限制 50 个字符) */
|
|
1292
|
+
ids: string[];
|
|
1293
|
+
}
|
|
1294
|
+
export interface ConvertCorehrV1CommonDataIdQuery {
|
|
1295
|
+
/** ID 转换类型 */
|
|
1296
|
+
id_transform_type: 1 | 2 | 3 | 4;
|
|
1297
|
+
/** 要转换的ID类型 */
|
|
1298
|
+
id_type: 'user_id' | 'department_id' | 'job_level_id' | 'job_family_id' | 'employee_type_id';
|
|
1299
|
+
/** 用户 ID 类型 */
|
|
1300
|
+
feishu_user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
1301
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1302
|
+
feishu_department_id_type?: 'open_department_id' | 'department_id';
|
|
1303
|
+
}
|
|
1304
|
+
export interface BatchGetCorehrV2EmployeeRequest {
|
|
1305
|
+
/** 返回数据的字段列表,填写方式:为空时默认仅返回 ID */
|
|
1306
|
+
fields?: string[];
|
|
1307
|
+
/** 雇佣 ID 列表 */
|
|
1308
|
+
employment_ids?: string[];
|
|
1309
|
+
/** 个人信息 ID 列表,employment_ids参数有值时该参数不生效 */
|
|
1310
|
+
person_ids?: string[];
|
|
1311
|
+
/** 主工作邮箱列表 */
|
|
1312
|
+
work_emails?: string[];
|
|
1313
|
+
}
|
|
1314
|
+
export interface BatchGetCorehrV2EmployeeQuery {
|
|
1315
|
+
/** 用户 ID 类型 */
|
|
1316
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1317
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1318
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1319
|
+
}
|
|
1320
|
+
export interface SearchCorehrV2EmployeeRequest {
|
|
1321
|
+
/** 返回数据的字段列表,填写方式:为空时默认仅返回 ID */
|
|
1322
|
+
fields?: string[];
|
|
1323
|
+
/** 雇佣 ID 列表 */
|
|
1324
|
+
employment_id_list?: string[];
|
|
1325
|
+
/** 工号列表 */
|
|
1326
|
+
employee_number_list?: string[];
|
|
1327
|
+
/** 邮箱,精确匹配查询 */
|
|
1328
|
+
work_email?: string;
|
|
1329
|
+
/** 个人电话,精确匹配查询 */
|
|
1330
|
+
phone_number?: string;
|
|
1331
|
+
/** 搜索关键字,支持对邮箱、工号和姓名的模糊匹配 */
|
|
1332
|
+
key_word?: string;
|
|
1333
|
+
/** 雇佣状态 */
|
|
1334
|
+
employment_status?: 'hired' | 'terminated';
|
|
1335
|
+
/** 人员类型 ID */
|
|
1336
|
+
employee_type_id?: string;
|
|
1337
|
+
/** 部门 ID,根据员工主职的直接部门查询,可以通过【查询部门】API 获取 部门 ID */
|
|
1338
|
+
department_id_list?: string[];
|
|
1339
|
+
/** 直接上级的雇佣 ID,根据员工主职的直接上级查询 */
|
|
1340
|
+
direct_manager_id_list?: string[];
|
|
1341
|
+
/** 虚线上级的雇佣 ID,根据员工主职的虚线上级查询 */
|
|
1342
|
+
dotted_line_manager_id_list?: string[];
|
|
1343
|
+
/** 转正式员工日期-搜索范围开始 */
|
|
1344
|
+
regular_employee_start_date_start?: string;
|
|
1345
|
+
/** 转正式员工日期-搜索范围结束 */
|
|
1346
|
+
regular_employee_start_date_end?: string;
|
|
1347
|
+
/** 入职日期-搜索范围开始,需要与搜索范围结束一同使用 */
|
|
1348
|
+
effective_time_start?: string;
|
|
1349
|
+
/** 入职日期-搜索范围结束 */
|
|
1350
|
+
effective_time_end?: string;
|
|
1351
|
+
/** 工作地点 ID 列表,查询属于该工作地点及下级工作地点的员工 */
|
|
1352
|
+
work_location_id_list_include_sub?: string[];
|
|
1353
|
+
/** 常用英文全名精确搜索 */
|
|
1354
|
+
preferred_english_full_name_list?: string[];
|
|
1355
|
+
/** 常用本地全名精确搜索 */
|
|
1356
|
+
preferred_local_full_name_list?: string[];
|
|
1357
|
+
/** 居民身份证件号码精确搜索 */
|
|
1358
|
+
national_id_number_list?: string[];
|
|
1359
|
+
/** 个人电话列表,精确匹配查询 */
|
|
1360
|
+
phone_number_list?: string[];
|
|
1361
|
+
/** 工作邮箱地址列表,精确匹配查询 */
|
|
1362
|
+
email_address_list?: string[];
|
|
1363
|
+
/** 部门 ID 列表,查询属于该部门及下级部门的员工 */
|
|
1364
|
+
department_id_list_include_sub?: string[];
|
|
1365
|
+
/** 其他国籍ID列表,精准匹配查询 */
|
|
1366
|
+
additional_national_id_number_list?: string[];
|
|
1367
|
+
/** 公民身份类型列表,精确匹配查询 */
|
|
1368
|
+
citizenship_status_list?: string[];
|
|
1369
|
+
/** 成本中心 ID 列表- 可通过 [【搜索成本中心信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/search) 获取 */
|
|
1370
|
+
cost_center_id_list?: string[];
|
|
1371
|
+
/** 任职公司 ID 列表- [【批量查询公司】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取 */
|
|
1372
|
+
service_company_list?: string[];
|
|
1373
|
+
/** 任职公司 ID 列表(含下级)- [【批量查询公司】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取 */
|
|
1374
|
+
service_company_list_include_sub?: string[];
|
|
1375
|
+
/** 序列 ID 列表 - [【批量查询序列】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取 */
|
|
1376
|
+
job_family_id_list?: string[];
|
|
1377
|
+
/** 序列 ID 列表(含下级) - [【批量查询序列】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取 */
|
|
1378
|
+
job_family_id_list_include_sub?: string[];
|
|
1379
|
+
/** 职级 ID 列表- 可通过[【批量查询职级】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取- 需要有字段读取权限 */
|
|
1380
|
+
job_level_id_list?: string[];
|
|
1381
|
+
/** 职等 ID 列表- 可通过[【查询职等】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query)获取- 需要有字段读取权限 */
|
|
1382
|
+
job_grade_id_list?: string[];
|
|
1383
|
+
/** 职务 ID 列表- 可通过[【批量查询职务】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取- 需要有字段读取权限 */
|
|
1384
|
+
job_id_list?: string[];
|
|
1385
|
+
/** 岗位 ID 列表 - 功能灰度中,如有需求请联系[技术支持](https://applink.feishu.cn/TLJpeNdW) - 需要有字段读取权限 */
|
|
1386
|
+
position_id_list?: string[];
|
|
1387
|
+
/** 岗位 ID 列表(含下级) - 功能灰度中,如有需求请联系[技术支持](https://applink.feishu.cn/TLJpeNdW) - 需要有字段读取权限 */
|
|
1388
|
+
position_id_list_include_sub?: string[];
|
|
1389
|
+
/** 工时制度 ID 列表- 可通过[【批量查询工时制度】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取- 需要有字段读取权限 */
|
|
1390
|
+
working_hours_type_id_list?: string[];
|
|
1391
|
+
/** 国籍 ID 列表- 可通过[【查询国籍信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-nationality/search)获取- 需要有字段读取权限 */
|
|
1392
|
+
nationality_id_list?: string[];
|
|
1393
|
+
/** 员工所属薪资组 ID 列表 - 可通过 [【获取薪资组基本信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/payroll-v1/paygroup/list) 获取 - 需要有字段读取权限 */
|
|
1394
|
+
pay_group_id_list?: string[];
|
|
1395
|
+
/** 员工所属外派薪资组 ID 列表- 可通过 [【获取薪资组基本信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/payroll-v1/paygroup/list) 获取- 需要有字段读取权限 */
|
|
1396
|
+
assignment_pay_group_id_list?: string[];
|
|
1397
|
+
/** 员工当前合同类型列表- 可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)查询 - object_api_name:contract - custom_api_name:contract_type- 需要有字段读取权限 */
|
|
1398
|
+
contract_type_list?: string[];
|
|
1399
|
+
/** 员工当前所属薪资方案 ID 列表- 可通过[【批量查询薪资方案】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/compensation-v1/plan/list)获取- 需要有字段读取权限 */
|
|
1400
|
+
archive_cpst_plan_id_list?: string[];
|
|
1401
|
+
}
|
|
1402
|
+
export interface SearchCorehrV2EmployeeQuery extends Pagination {
|
|
1403
|
+
/** 用户 ID 类型 */
|
|
1404
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1405
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1406
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1407
|
+
}
|
|
1408
|
+
export interface CreateCorehrV2EmployeeRequest {
|
|
1409
|
+
/** 个人信息 */
|
|
1410
|
+
personal_info?: ProfileSettingPersonalInfo;
|
|
1411
|
+
/** 工作信息 */
|
|
1412
|
+
employment_info?: ProfileSettingEmploymentInfo;
|
|
1413
|
+
/** 履历信息 */
|
|
1414
|
+
career?: ProfileSettingCareer;
|
|
1415
|
+
/** 资料附件 */
|
|
1416
|
+
data_attachment?: ProfileSettingDataAttachment;
|
|
1417
|
+
}
|
|
1418
|
+
export interface CreateCorehrV2EmployeeQuery {
|
|
1419
|
+
/** 幂等标识,服务端会忽略client_token重复的请求 */
|
|
1420
|
+
client_token?: string;
|
|
1421
|
+
/** 是否为离职重聘:false: 否,系统直接标为非离职重聘人员,不再做重复判断"true: 是,要求rehire_employment_id */
|
|
1422
|
+
rehire?: boolean;
|
|
1423
|
+
/** 离职重聘员工雇佣ID, rehire */
|
|
1424
|
+
rehire_employment_id?: string;
|
|
1425
|
+
/** 是否强制提交,超编等场景需要用户确认影响才能提交 */
|
|
1426
|
+
force_submit?: boolean;
|
|
1427
|
+
/** 是否忽略工时制度自动生成规则 */
|
|
1428
|
+
ignore_working_hours_type_rule?: boolean;
|
|
1429
|
+
}
|
|
1430
|
+
export interface CreateCorehrV2PersonRequest {
|
|
1431
|
+
/** 姓名列表 */
|
|
1432
|
+
name_list: PersonName[];
|
|
1433
|
+
/** -| 性别,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:gender - object_api_name:person */
|
|
1434
|
+
gender?: Enum;
|
|
1435
|
+
/** 出生日期 */
|
|
1436
|
+
date_of_birth?: string;
|
|
1437
|
+
/** 国籍 ID,可通过【查询国籍信息】接口查询 */
|
|
1438
|
+
nationality_id_v2?: string;
|
|
1439
|
+
/** -| 民族 / 种族,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:ethnicity_race - object_api_name:person */
|
|
1440
|
+
race?: Enum;
|
|
1441
|
+
/** -| 婚姻状况,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:marital_status - object_api_name:person */
|
|
1442
|
+
marital_status?: Enum;
|
|
1443
|
+
/** 电话列表,只有当满足下面所有条件时,电话在个人信息页才可见 */
|
|
1444
|
+
phone_list?: Phone[];
|
|
1445
|
+
/** 地址列表 */
|
|
1446
|
+
address_list?: Address[];
|
|
1447
|
+
/** 邮箱列表 */
|
|
1448
|
+
email_list?: Email[];
|
|
1449
|
+
/** 工作经历列表 */
|
|
1450
|
+
work_experience_list?: WorkExperienceInfo[];
|
|
1451
|
+
/** 教育经历列表 */
|
|
1452
|
+
education_list?: Education[];
|
|
1453
|
+
/** 银行账户 */
|
|
1454
|
+
bank_account_list?: BankAccount[];
|
|
1455
|
+
/** 证件 */
|
|
1456
|
+
national_id_list?: NationalId[];
|
|
1457
|
+
/** 家庭成员列表 */
|
|
1458
|
+
dependent_list?: Dependent[];
|
|
1459
|
+
/** 紧急联系人列表 */
|
|
1460
|
+
emergency_contact_list?: EmergencyContact[];
|
|
1461
|
+
/** 参加工作日期 */
|
|
1462
|
+
date_entered_workforce?: string;
|
|
1463
|
+
/** 头像资源的 ID */
|
|
1464
|
+
profile_image_id?: string;
|
|
1465
|
+
/** 个人资料附件 */
|
|
1466
|
+
personal_profile?: PersonalProfile[];
|
|
1467
|
+
/** 籍贯 ID */
|
|
1468
|
+
native_region?: string;
|
|
1469
|
+
/** 户口类型,枚举值可通过文档【飞书人事枚举常量】户口类型(hukou_type)枚举定义部分获得 */
|
|
1470
|
+
hukou_type?: Enum;
|
|
1471
|
+
/** 户口所在地 */
|
|
1472
|
+
hukou_location?: string;
|
|
1473
|
+
/** 政治面貌,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:political_affiliation - object_api_name:person_info_chn */
|
|
1474
|
+
political_affiliations?: Enum[];
|
|
1475
|
+
/** 人才 ID */
|
|
1476
|
+
talent_id?: string;
|
|
1477
|
+
/** 自定义字段 */
|
|
1478
|
+
custom_fields?: CustomFieldData[];
|
|
1479
|
+
/** 出生国家/地区 */
|
|
1480
|
+
born_country_region?: string;
|
|
1481
|
+
/** 是否残疾 */
|
|
1482
|
+
is_disabled?: boolean;
|
|
1483
|
+
/** 残疾证号 */
|
|
1484
|
+
disable_card_number?: string;
|
|
1485
|
+
/** 是否烈属 */
|
|
1486
|
+
is_martyr_family?: boolean;
|
|
1487
|
+
/** 烈属证号 */
|
|
1488
|
+
martyr_card_number?: string;
|
|
1489
|
+
/** 是否孤老 */
|
|
1490
|
+
is_old_alone?: boolean;
|
|
1491
|
+
/** 居民身份信息 */
|
|
1492
|
+
resident_taxes?: ResidentTax[];
|
|
1493
|
+
/** 首次入境日期 */
|
|
1494
|
+
first_entry_time?: string;
|
|
1495
|
+
/** 预计离境日期 */
|
|
1496
|
+
leave_time?: string;
|
|
1497
|
+
}
|
|
1498
|
+
export interface CreateCorehrV2PersonQuery {
|
|
1499
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
1500
|
+
client_token?: string;
|
|
1501
|
+
}
|
|
1502
|
+
export interface PatchCorehrV2PersonRequest {
|
|
1503
|
+
/** 姓名列表 */
|
|
1504
|
+
name_list?: PersonName[];
|
|
1505
|
+
/** -| 性别,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:gender - object_api_name:person */
|
|
1506
|
+
gender?: Enum;
|
|
1507
|
+
/** 出生日期 */
|
|
1508
|
+
date_of_birth?: string;
|
|
1509
|
+
/** 国籍 ID,可通过【查询国籍信息】接口查询 */
|
|
1510
|
+
nationality_id_v2?: string;
|
|
1511
|
+
/** -| 民族 / 种族,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:ethnicity_race - object_api_name:person */
|
|
1512
|
+
race?: Enum;
|
|
1513
|
+
/** -| 婚姻状况,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:marital_status - object_api_name:person */
|
|
1514
|
+
marital_status?: Enum;
|
|
1515
|
+
/** 电话列表,只有当满足下面所有条件时,电话在个人信息页才可见 */
|
|
1516
|
+
phone_list?: Phone[];
|
|
1517
|
+
/** 地址列表 */
|
|
1518
|
+
address_list?: Address[];
|
|
1519
|
+
/** 邮箱列表 */
|
|
1520
|
+
email_list?: Email[];
|
|
1521
|
+
/** 工作经历列表 */
|
|
1522
|
+
work_experience_list?: WorkExperienceInfo[];
|
|
1523
|
+
/** 教育经历列表 */
|
|
1524
|
+
education_list?: Education[];
|
|
1525
|
+
/** 银行账户 */
|
|
1526
|
+
bank_account_list?: BankAccount[];
|
|
1527
|
+
/** 证件 */
|
|
1528
|
+
national_id_list?: NationalId[];
|
|
1529
|
+
/** 家庭成员列表 */
|
|
1530
|
+
dependent_list?: Dependent[];
|
|
1531
|
+
/** 紧急联系人列表 */
|
|
1532
|
+
emergency_contact_list?: EmergencyContact[];
|
|
1533
|
+
/** 参加工作日期 */
|
|
1534
|
+
date_entered_workforce?: string;
|
|
1535
|
+
/** 头像资源的 ID */
|
|
1536
|
+
profile_image_id?: string;
|
|
1537
|
+
/** 个人资料附件 */
|
|
1538
|
+
personal_profile?: PersonalProfile[];
|
|
1539
|
+
/** 籍贯 ID */
|
|
1540
|
+
native_region?: string;
|
|
1541
|
+
/** 户口类型,枚举值可通过文档【飞书人事枚举常量】户口类型(hukou_type)枚举定义部分获得 */
|
|
1542
|
+
hukou_type?: Enum;
|
|
1543
|
+
/** 户口所在地 */
|
|
1544
|
+
hukou_location?: string;
|
|
1545
|
+
/** 政治面貌,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:political_affiliation - object_api_name:person_info_chn */
|
|
1546
|
+
political_affiliations?: Enum[];
|
|
1547
|
+
/** 人才 ID */
|
|
1548
|
+
talent_id?: string;
|
|
1549
|
+
/** 自定义字段 */
|
|
1550
|
+
custom_fields?: CustomFieldData[];
|
|
1551
|
+
/** 出生国家/地区 */
|
|
1552
|
+
born_country_region?: string;
|
|
1553
|
+
/** 是否残疾 */
|
|
1554
|
+
is_disabled?: boolean;
|
|
1555
|
+
/** 残疾证号 */
|
|
1556
|
+
disable_card_number?: string;
|
|
1557
|
+
/** 是否烈属 */
|
|
1558
|
+
is_martyr_family?: boolean;
|
|
1559
|
+
/** 烈属证号 */
|
|
1560
|
+
martyr_card_number?: string;
|
|
1561
|
+
/** 是否孤老 */
|
|
1562
|
+
is_old_alone?: boolean;
|
|
1563
|
+
/** 居民身份信息 */
|
|
1564
|
+
resident_taxes?: ResidentTax[];
|
|
1565
|
+
/** 首次入境日期 */
|
|
1566
|
+
first_entry_time?: string;
|
|
1567
|
+
/** 预计离境日期 */
|
|
1568
|
+
leave_time?: string;
|
|
1569
|
+
}
|
|
1570
|
+
export interface PatchCorehrV2PersonQuery {
|
|
1571
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
1572
|
+
client_token?: string;
|
|
1573
|
+
/** 根据no_need_query判断更新后是否做查询请求并返回个人信息 */
|
|
1574
|
+
no_need_query?: boolean;
|
|
1575
|
+
}
|
|
1576
|
+
export interface UploadCorehrV1PersonForm {
|
|
1577
|
+
/** 文件二进制内容 */
|
|
1578
|
+
file_content: Blob;
|
|
1579
|
+
/** 文件名称 */
|
|
1580
|
+
file_name: string;
|
|
1581
|
+
}
|
|
1582
|
+
export interface CreateCorehrV1EmploymentRequest {
|
|
1583
|
+
/** 资历起算日期 */
|
|
1584
|
+
seniority_date?: string;
|
|
1585
|
+
/** 员工编号 */
|
|
1586
|
+
employee_number?: string;
|
|
1587
|
+
/** 入职日期 */
|
|
1588
|
+
effective_time: string;
|
|
1589
|
+
/** 离职日期 */
|
|
1590
|
+
expiration_time?: string;
|
|
1591
|
+
/** 雇佣类型 */
|
|
1592
|
+
employment_type: Enum;
|
|
1593
|
+
/** 人员信息,引用Person的ID */
|
|
1594
|
+
person_id: string;
|
|
1595
|
+
/** 是否是主雇佣信息 */
|
|
1596
|
+
primary_employment: boolean;
|
|
1597
|
+
/** 雇员状态 */
|
|
1598
|
+
employment_status: Enum;
|
|
1599
|
+
/** 自定义字段 */
|
|
1600
|
+
custom_fields?: ObjectFieldData[];
|
|
1601
|
+
/** 工作邮箱列表 */
|
|
1602
|
+
work_email_list?: Email[];
|
|
1603
|
+
/** 离职原因 */
|
|
1604
|
+
reason_for_offboarding?: Enum;
|
|
1605
|
+
/** 招聘应用 ID */
|
|
1606
|
+
ats_application_id?: string;
|
|
1607
|
+
/** 是否离职重聘 */
|
|
1608
|
+
rehire?: Enum;
|
|
1609
|
+
/** 历史雇佣信息 ID */
|
|
1610
|
+
rehire_employment_id?: string;
|
|
1611
|
+
}
|
|
1612
|
+
export interface CreateCorehrV1EmploymentQuery {
|
|
1613
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
1614
|
+
client_token?: string;
|
|
1615
|
+
}
|
|
1616
|
+
export interface PatchCorehrV1EmploymentRequest {
|
|
1617
|
+
/** 资历起算日期 */
|
|
1618
|
+
seniority_date?: string;
|
|
1619
|
+
/** 员工编号 */
|
|
1620
|
+
employee_number?: string;
|
|
1621
|
+
/** 雇佣类型 */
|
|
1622
|
+
employment_type?: Enum;
|
|
1623
|
+
/** 人员信息,引用Person的ID */
|
|
1624
|
+
person_id?: string;
|
|
1625
|
+
/** 是否是主雇佣信息 */
|
|
1626
|
+
primary_employment?: boolean;
|
|
1627
|
+
/** 自定义字段 */
|
|
1628
|
+
custom_fields?: ObjectFieldData[];
|
|
1629
|
+
/** 工作邮箱列表 */
|
|
1630
|
+
work_email_list?: Email[];
|
|
1631
|
+
/** 离职原因 */
|
|
1632
|
+
reason_for_offboarding?: Enum;
|
|
1633
|
+
/** 招聘应用 ID */
|
|
1634
|
+
ats_application_id?: string;
|
|
1635
|
+
}
|
|
1636
|
+
export interface PatchCorehrV1EmploymentQuery {
|
|
1637
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
1638
|
+
client_token?: string;
|
|
1639
|
+
/** 用户 ID 类型 */
|
|
1640
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1641
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1642
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1643
|
+
}
|
|
1644
|
+
export interface DeleteCorehrV1EmploymentQuery {
|
|
1645
|
+
/** 用户 ID 类型 */
|
|
1646
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1647
|
+
}
|
|
1648
|
+
export interface CreateCorehrV1JobDataRequest {
|
|
1649
|
+
/** 级别 */
|
|
1650
|
+
job_level_id?: string;
|
|
1651
|
+
/** 职等ID */
|
|
1652
|
+
job_grade_id?: string;
|
|
1653
|
+
/** 雇员类型 */
|
|
1654
|
+
employee_type_id: string;
|
|
1655
|
+
/** 工时制度 */
|
|
1656
|
+
working_hours_type_id?: string;
|
|
1657
|
+
/** 工作地点 */
|
|
1658
|
+
work_location_id?: string;
|
|
1659
|
+
/** 部门 */
|
|
1660
|
+
department_id: string;
|
|
1661
|
+
/** 职务 */
|
|
1662
|
+
job_id?: string;
|
|
1663
|
+
/** 试用期开始日期 */
|
|
1664
|
+
probation_start_date?: string;
|
|
1665
|
+
/** 试用期 */
|
|
1666
|
+
probation_end_date?: string;
|
|
1667
|
+
/** 主任职 */
|
|
1668
|
+
primary_job_data: boolean;
|
|
1669
|
+
/** Employment ID */
|
|
1670
|
+
employment_id: string;
|
|
1671
|
+
/** 生效时间 */
|
|
1672
|
+
effective_time: string;
|
|
1673
|
+
/** 失效时间 */
|
|
1674
|
+
expiration_time?: string;
|
|
1675
|
+
/** 职务分类 ID */
|
|
1676
|
+
job_family_id?: string;
|
|
1677
|
+
/** 任职原因 */
|
|
1678
|
+
assignment_start_reason: Enum;
|
|
1679
|
+
/** 试用期结束日期 */
|
|
1680
|
+
probation_expected_end_date?: string;
|
|
1681
|
+
/** 实线主管 */
|
|
1682
|
+
direct_manager_id?: string;
|
|
1683
|
+
/** 虚线主管 */
|
|
1684
|
+
dotted_line_manager_id_list?: string[];
|
|
1685
|
+
/** 第二实线主管 */
|
|
1686
|
+
second_direct_manager_id?: string;
|
|
1687
|
+
/** 成本中心分摊信息 */
|
|
1688
|
+
cost_center_rate?: SupportCostCenterItem[];
|
|
1689
|
+
/** 排班类型 */
|
|
1690
|
+
work_shift?: Enum;
|
|
1691
|
+
/** 薪资类型 */
|
|
1692
|
+
compensation_type?: Enum;
|
|
1693
|
+
/** 任职公司 */
|
|
1694
|
+
service_company?: string;
|
|
1695
|
+
}
|
|
1696
|
+
export interface CreateCorehrV1JobDataQuery {
|
|
1697
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
1698
|
+
client_token?: string;
|
|
1699
|
+
/** 用户 ID 类型 */
|
|
1700
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1701
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1702
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1703
|
+
}
|
|
1704
|
+
export interface DeleteCorehrV1JobDataQuery {
|
|
1705
|
+
/** 需要删除的任职记录版本 ID */
|
|
1706
|
+
version_id?: string;
|
|
1707
|
+
}
|
|
1708
|
+
export interface PatchCorehrV1JobDataRequest {
|
|
1709
|
+
/** 任职记录版本 ID */
|
|
1710
|
+
version_id?: string;
|
|
1711
|
+
/** 级别 */
|
|
1712
|
+
job_level_id?: string;
|
|
1713
|
+
/** 职等ID */
|
|
1714
|
+
job_grade_id?: string;
|
|
1715
|
+
/** 雇员类型 */
|
|
1716
|
+
employee_type_id?: string;
|
|
1717
|
+
/** 工时制度 */
|
|
1718
|
+
working_hours_type_id?: string;
|
|
1719
|
+
/** 工作地点 */
|
|
1720
|
+
work_location_id?: string;
|
|
1721
|
+
/** 部门 */
|
|
1722
|
+
department_id?: string;
|
|
1723
|
+
/** 职务 */
|
|
1724
|
+
job_id?: string;
|
|
1725
|
+
/** 试用期开始日期 */
|
|
1726
|
+
probation_start_date?: string;
|
|
1727
|
+
/** 试用期 */
|
|
1728
|
+
probation_end_date?: string;
|
|
1729
|
+
/** 主任职 */
|
|
1730
|
+
primary_job_data?: boolean;
|
|
1731
|
+
/** 生效时间 */
|
|
1732
|
+
effective_time?: string;
|
|
1733
|
+
/** 失效时间 */
|
|
1734
|
+
expiration_time?: string;
|
|
1735
|
+
/** 职务分类 ID */
|
|
1736
|
+
job_family_id?: string;
|
|
1737
|
+
/** 任职原因 */
|
|
1738
|
+
assignment_start_reason?: Enum;
|
|
1739
|
+
/** 试用期结束日期 */
|
|
1740
|
+
probation_expected_end_date?: string;
|
|
1741
|
+
/** 实线主管 */
|
|
1742
|
+
direct_manager_id?: string;
|
|
1743
|
+
/** 虚线主管 */
|
|
1744
|
+
dotted_line_manager_id_list?: string[];
|
|
1745
|
+
/** 第二实线主管 */
|
|
1746
|
+
second_direct_manager_id?: string;
|
|
1747
|
+
/** 成本中心分摊信息 */
|
|
1748
|
+
cost_center_rate?: SupportCostCenterItem[];
|
|
1749
|
+
/** 排班类型 */
|
|
1750
|
+
work_shift?: Enum;
|
|
1751
|
+
/** 薪资类型 */
|
|
1752
|
+
compensation_type?: Enum;
|
|
1753
|
+
/** 任职公司 */
|
|
1754
|
+
service_company?: string;
|
|
1755
|
+
}
|
|
1756
|
+
export interface PatchCorehrV1JobDataQuery {
|
|
1757
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
1758
|
+
client_token?: string;
|
|
1759
|
+
/** 用户 ID 类型 */
|
|
1760
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1761
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1762
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1763
|
+
/** 是否强校验。值为 true 时,会对入参进行业务校验,并产生异动记录、发送异动事件。- 默认值:false- 仅在新增任职版本时生效,当 version_id 不为空时该字段不生效 */
|
|
1764
|
+
strict_verify?: string;
|
|
1765
|
+
}
|
|
1766
|
+
export interface QueryCorehrV2EmployeesJobDataRequest {
|
|
1767
|
+
/** 是否获取所有任职记录,true 为获取员工所有版本的任职记录,false 为仅获取当前生效的任职记录,默认为 false */
|
|
1768
|
+
get_all_version?: boolean;
|
|
1769
|
+
/** 查看数据日期 */
|
|
1770
|
+
data_date?: string;
|
|
1771
|
+
/** 生效日期 - 搜索范围开始 */
|
|
1772
|
+
effective_date_start?: string;
|
|
1773
|
+
/** 生效日期 - 搜索范围结束 */
|
|
1774
|
+
effective_date_end?: string;
|
|
1775
|
+
/** 部门 ID */
|
|
1776
|
+
department_id?: string;
|
|
1777
|
+
/** 员工雇佣 ID 列表 */
|
|
1778
|
+
employment_ids?: string[];
|
|
1779
|
+
/** 是否仅查询主职- true:仅返回 primary_job_data 为 true 的任职记录- false:仅返回 primary_job_data 为 false 的任职记录- 不传:返回全部 */
|
|
1780
|
+
primary_job_data?: boolean;
|
|
1781
|
+
/** 任职原因- 可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: - object_api_name:job_data - custom_api_name:assignment_start_reason */
|
|
1782
|
+
assignment_start_reasons?: string[];
|
|
1783
|
+
}
|
|
1784
|
+
export interface QueryCorehrV2EmployeesJobDataQuery extends Pagination {
|
|
1785
|
+
/** 用户 ID 类型 */
|
|
1786
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1787
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1788
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1789
|
+
}
|
|
1790
|
+
export interface BatchGetCorehrV2EmployeesJobDataRequest {
|
|
1791
|
+
/** 员工雇佣 ID 列表 */
|
|
1792
|
+
employment_ids: string[];
|
|
1793
|
+
/** 是否获取所有任职记录,true 为获取员工所有版本的任职记录,false 为仅获取当前生效的任职记录,默认为 false */
|
|
1794
|
+
get_all_version?: boolean;
|
|
1795
|
+
/** 生效日期 - 搜索范围开始 */
|
|
1796
|
+
effective_date_start?: string;
|
|
1797
|
+
/** 生效日期 - 搜索范围结束 */
|
|
1798
|
+
effective_date_end?: string;
|
|
1799
|
+
/** 查看数据日期,默认为今天 */
|
|
1800
|
+
data_date?: string;
|
|
1801
|
+
/** 是否仅查询主职- true:仅返回 primary_job_data 为 true 的任职记录- false:仅返回 primary_job_data 为 false 的任职记录- 不传:返回全部 */
|
|
1802
|
+
primary_job_data?: boolean;
|
|
1803
|
+
/** 任职原因- 可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下: - object_api_name:job_data - custom_api_name:assignment_start_reason */
|
|
1804
|
+
assignment_start_reasons?: string[];
|
|
1805
|
+
}
|
|
1806
|
+
export interface BatchGetCorehrV2EmployeesJobDataQuery {
|
|
1807
|
+
/** 用户 ID 类型 */
|
|
1808
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1809
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1810
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1811
|
+
}
|
|
1812
|
+
export interface ListCorehrV1JobDataQuery extends Pagination {
|
|
1813
|
+
/** 雇佣 ID */
|
|
1814
|
+
employment_id?: string;
|
|
1815
|
+
/** 任职信息 ID 列表,最大 100 个(不传则默认查询全部任职信息) */
|
|
1816
|
+
job_data_id_list?: string[];
|
|
1817
|
+
/** 部门 ID */
|
|
1818
|
+
department_id?: string;
|
|
1819
|
+
/** 职务 ID */
|
|
1820
|
+
job_id?: string;
|
|
1821
|
+
/** 是否获取所有任职记录,true 为获取员工所有版本的任职记录,false 为仅获取当前生效的任职记录,默认为 false */
|
|
1822
|
+
get_all_version?: boolean;
|
|
1823
|
+
/** 用户 ID 类型 */
|
|
1824
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1825
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1826
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1827
|
+
}
|
|
1828
|
+
export interface GetCorehrV1JobDataQuery {
|
|
1829
|
+
/** 用户 ID 类型 */
|
|
1830
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1831
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1832
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1833
|
+
}
|
|
1834
|
+
export interface CreateCorehrV2EmployeesAdditionalJobRequest {
|
|
1835
|
+
/** 人员类型 ID,可通过[【批量查询人员类型】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取 */
|
|
1836
|
+
employee_type_id: string;
|
|
1837
|
+
/** 工时制度 ID,可通过[【批量查询工时制度】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取详细信息 */
|
|
1838
|
+
working_hours_type_id?: string;
|
|
1839
|
+
/** 工作地点 ID,可通过[【批量查询地点】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list)获取详细信息 */
|
|
1840
|
+
work_location_id?: string;
|
|
1841
|
+
/** 部门 ID,可通过[【批量查询部门】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get)获取详细信息;类型与department_id_type一致 */
|
|
1842
|
+
department_id: string;
|
|
1843
|
+
/** 职务 ID,可通过[【批量查询职务】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取详细信息 */
|
|
1844
|
+
job_id?: string;
|
|
1845
|
+
/** 职级 ID,可通过[【批量查询职级】](/ssl:ttdoc//uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取详细信息 */
|
|
1846
|
+
job_level_id?: string;
|
|
1847
|
+
/** 序列 ID,可通过[【批量查询序列】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取详细信息 */
|
|
1848
|
+
job_family_id?: string;
|
|
1849
|
+
/** 雇佣 ID,可通过[【批量查询员工信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致 */
|
|
1850
|
+
employment_id: string;
|
|
1851
|
+
/** 兼职开始日期 */
|
|
1852
|
+
start_date: string;
|
|
1853
|
+
/** 兼职结束日期,不可清空 */
|
|
1854
|
+
end_date?: string;
|
|
1855
|
+
/** 直属上级的雇佣ID,可通过[【批量查询员工信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致 */
|
|
1856
|
+
direct_manager_id?: string;
|
|
1857
|
+
/** 虚线上级的雇佣ID,可通过[【批量查询员工信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致 */
|
|
1858
|
+
dotted_line_manager_id?: string;
|
|
1859
|
+
/** 排班类型,可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:- object_api_name = "job_data"- custom_api_name = "work_shift" */
|
|
1860
|
+
work_shift?: Enum;
|
|
1861
|
+
/** 薪资类型,可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:- object_api_name = "job_data"- custom_api_name = "compensation_type" */
|
|
1862
|
+
compensation_type?: Enum;
|
|
1863
|
+
/** 任职公司,可通过[【批量查询公司】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取详细信息 */
|
|
1864
|
+
service_company?: string;
|
|
1865
|
+
/** 周工作时长【0~168】 */
|
|
1866
|
+
weekly_working_hours?: string;
|
|
1867
|
+
/** 工作日历ID,可通过[【查询工作日历】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息 */
|
|
1868
|
+
work_calendar_id?: string;
|
|
1869
|
+
/** 岗位 ID */
|
|
1870
|
+
position_id?: string;
|
|
1871
|
+
/** 人员子类型 ID */
|
|
1872
|
+
employee_subtype_id?: string;
|
|
1873
|
+
}
|
|
1874
|
+
export interface CreateCorehrV2EmployeesAdditionalJobQuery {
|
|
1875
|
+
/** 操作的唯一标识,用于幂等校验。请求成功时,重复的client_token不会再创建、变更数据。 */
|
|
1876
|
+
client_token?: string;
|
|
1877
|
+
/** 用户 ID 类型 */
|
|
1878
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1879
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1880
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1881
|
+
}
|
|
1882
|
+
export interface PatchCorehrV2EmployeesAdditionalJobRequest {
|
|
1883
|
+
/** 人员类型 ID,可通过[【批量查询人员类型】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取 */
|
|
1884
|
+
employee_type_id?: string;
|
|
1885
|
+
/** 工时制度 ID,可通过[【批量查询工时制度】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取详细信息 */
|
|
1886
|
+
working_hours_type_id?: string;
|
|
1887
|
+
/** 工作地点 ID,可通过[【批量查询地点】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list)获取详细信息 */
|
|
1888
|
+
work_location_id?: string;
|
|
1889
|
+
/** 部门 ID,可通过[【批量查询部门】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get)获取详细信息;类型与department_id_type一致 */
|
|
1890
|
+
department_id?: string;
|
|
1891
|
+
/** 职务 ID,可通过[【批量查询职务】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list)获取详细信息 */
|
|
1892
|
+
job_id?: string;
|
|
1893
|
+
/** 职级 ID,可通过[【批量查询职级】](/ssl:ttdoc//uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list)获取详细信息 */
|
|
1894
|
+
job_level_id?: string;
|
|
1895
|
+
/** 序列 ID,可通过[【批量查询序列】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list)获取详细信息 */
|
|
1896
|
+
job_family_id?: string;
|
|
1897
|
+
/** 兼职开始日期 */
|
|
1898
|
+
start_date?: string;
|
|
1899
|
+
/** 兼职结束日期,不可清空 */
|
|
1900
|
+
end_date?: string;
|
|
1901
|
+
/** 直属上级的雇佣ID,可通过[【批量查询员工信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致 */
|
|
1902
|
+
direct_manager_id?: string;
|
|
1903
|
+
/** 虚线上级的雇佣ID,可通过[【批量查询员工信息】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)获取详细信息;类型与user_id_type一致 */
|
|
1904
|
+
dotted_line_manager_id?: string;
|
|
1905
|
+
/** 排班类型,可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:- object_api_name = "job_data"- custom_api_name = "work_shift" */
|
|
1906
|
+
work_shift?: Enum;
|
|
1907
|
+
/** 薪资类型,可通过[【获取字段详情】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param)接口查询,查询参数如下:- object_api_name = "job_data"- custom_api_name = "compensation_type" */
|
|
1908
|
+
compensation_type?: Enum;
|
|
1909
|
+
/** 任职公司,可通过[【批量查询公司】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list)获取详细信息 */
|
|
1910
|
+
service_company?: string;
|
|
1911
|
+
/** 周工作时长【0~168】 */
|
|
1912
|
+
weekly_working_hours?: string;
|
|
1913
|
+
/** 工作日历ID,可通过[【查询工作日历】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar)获取详细信息 */
|
|
1914
|
+
work_calendar_id?: string;
|
|
1915
|
+
/** 岗位 ID */
|
|
1916
|
+
position_id?: string;
|
|
1917
|
+
/** 人员子类型 ID */
|
|
1918
|
+
employee_subtype_id?: string;
|
|
1919
|
+
}
|
|
1920
|
+
export interface PatchCorehrV2EmployeesAdditionalJobQuery {
|
|
1921
|
+
/** 根据 client_token 是否一致来判断是否为同一请求 */
|
|
1922
|
+
client_token?: string;
|
|
1923
|
+
/** 用户 ID 类型 */
|
|
1924
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1925
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1926
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1927
|
+
}
|
|
1928
|
+
export interface BatchCorehrV2EmployeesAdditionalJobRequest {
|
|
1929
|
+
/** 雇佣 ID */
|
|
1930
|
+
employment_ids?: string[];
|
|
1931
|
+
/** 兼职 ID */
|
|
1932
|
+
additional_job_ids?: string[];
|
|
1933
|
+
/** 开始日期 */
|
|
1934
|
+
start_date?: EmployeesAdditionalJobBatchReqDate;
|
|
1935
|
+
/** 结束日期 */
|
|
1936
|
+
end_date?: EmployeesAdditionalJobBatchReqDate;
|
|
1937
|
+
/** 查看数据日期,默认当天 */
|
|
1938
|
+
data_date?: string;
|
|
1939
|
+
/** 仅查询 【data_date】日期生效中的 */
|
|
1940
|
+
is_effective?: boolean;
|
|
1941
|
+
}
|
|
1942
|
+
export interface BatchCorehrV2EmployeesAdditionalJobQuery extends Pagination {
|
|
1943
|
+
/** 用户 ID 类型 */
|
|
1944
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1945
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1946
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1947
|
+
}
|
|
1948
|
+
export interface QueryOperationLogsCorehrV2DepartmentRequest {
|
|
1949
|
+
/** 部门ID列表 */
|
|
1950
|
+
department_ids: string[];
|
|
1951
|
+
/** 查询的起始操作日期,格式 "YYYY-MM-DD",不带时分秒,包含start_date传入的时间,系统会以start_date的00:00:00为开始时间进行查询 */
|
|
1952
|
+
start_date: string;
|
|
1953
|
+
/** 查询的截止操作日期,格式 "YYYY-MM-DD",不带时分秒,包含end_date传入的时间,系统会以end_date的23:59:59为截止时间进行查询。查询截止日期应大于起始日期,起止日期跨度最大为366天 */
|
|
1954
|
+
end_date: string;
|
|
1955
|
+
}
|
|
1956
|
+
export interface QueryOperationLogsCorehrV2DepartmentQuery extends Pagination {
|
|
1957
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1958
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1959
|
+
}
|
|
1960
|
+
export interface CreateCorehrV1DepartmentRequest {
|
|
1961
|
+
/** 子类型 */
|
|
1962
|
+
sub_type?: Enum;
|
|
1963
|
+
/** 部门负责人 */
|
|
1964
|
+
manager?: string;
|
|
1965
|
+
/** 是否保密 */
|
|
1966
|
+
is_confidential?: boolean;
|
|
1967
|
+
/** 层级关系,内层字段见实体 */
|
|
1968
|
+
hiberarchy_common: HiberarchyCommon;
|
|
1969
|
+
/** 生效时间 */
|
|
1970
|
+
effective_time: string;
|
|
1971
|
+
/** 自定义字段 */
|
|
1972
|
+
custom_fields?: ObjectFieldData[];
|
|
1973
|
+
/** 成本中心id */
|
|
1974
|
+
cost_center_id?: string;
|
|
1975
|
+
/** 是否使用职务 */
|
|
1976
|
+
staffing_model?: Enum;
|
|
1977
|
+
}
|
|
1978
|
+
export interface CreateCorehrV1DepartmentQuery {
|
|
1979
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
1980
|
+
client_token?: string;
|
|
1981
|
+
/** 用户 ID 类型 */
|
|
1982
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
1983
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
1984
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
1985
|
+
}
|
|
1986
|
+
export interface PatchCorehrV2DepartmentRequest {
|
|
1987
|
+
/** 实体在CoreHR内部的唯一键 */
|
|
1988
|
+
id?: string;
|
|
1989
|
+
/** 子类型 */
|
|
1990
|
+
sub_type?: Enum;
|
|
1991
|
+
/** 部门负责人 */
|
|
1992
|
+
manager?: string;
|
|
1993
|
+
/** 是否保密 */
|
|
1994
|
+
is_confidential?: boolean;
|
|
1995
|
+
/** 层级关系,内层字段见实体 */
|
|
1996
|
+
hiberarchy_common?: HiberarchyCommon;
|
|
1997
|
+
/** 生效时间 */
|
|
1998
|
+
effective_time: string;
|
|
1999
|
+
/** 自定义字段 */
|
|
2000
|
+
custom_fields?: ObjectFieldData[];
|
|
2001
|
+
/** 成本中心id */
|
|
2002
|
+
cost_center_id?: string;
|
|
2003
|
+
/** 是否使用职务 */
|
|
2004
|
+
staffing_model?: Enum;
|
|
2005
|
+
}
|
|
2006
|
+
export interface PatchCorehrV2DepartmentQuery {
|
|
2007
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
2008
|
+
client_token?: string;
|
|
2009
|
+
/** 用户 ID 类型 */
|
|
2010
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2011
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
2012
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2013
|
+
}
|
|
2014
|
+
export interface ParentsCorehrV2DepartmentRequest {
|
|
2015
|
+
/** 部门 ID 列表,一次性最多传入 100 个部门 ID */
|
|
2016
|
+
department_id_list: string[];
|
|
2017
|
+
}
|
|
2018
|
+
export interface ParentsCorehrV2DepartmentQuery {
|
|
2019
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
2020
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2021
|
+
}
|
|
2022
|
+
export interface BatchGetCorehrV2DepartmentRequest {
|
|
2023
|
+
/** 部门 ID 列表 */
|
|
2024
|
+
department_id_list?: string[];
|
|
2025
|
+
/** 返回数据的字段列表 */
|
|
2026
|
+
fields?: string[];
|
|
2027
|
+
/** 部门名称精确匹配,最多传100个 */
|
|
2028
|
+
department_name_list?: string[];
|
|
2029
|
+
}
|
|
2030
|
+
export interface BatchGetCorehrV2DepartmentQuery {
|
|
2031
|
+
/** 用户 ID 类型 */
|
|
2032
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2033
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
2034
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2035
|
+
}
|
|
2036
|
+
export interface QueryRecentChangeCorehrV2DepartmentQuery extends Pagination {
|
|
2037
|
+
/** 查询的开始时间,格式 "yyyy-MM-dd",不带时分秒,包含 start_date 传入的时间, 系统会以 start_date 的 00:00:00 查询。 */
|
|
2038
|
+
start_date: string;
|
|
2039
|
+
/** 查询的结束时间,格式 "yyyy-MM-dd",不带时分秒, 查询日期小于 end_data + 1 天的 00:00:00。 */
|
|
2040
|
+
end_date: string;
|
|
2041
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
2042
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2043
|
+
}
|
|
2044
|
+
export interface QueryTimelineCorehrV2DepartmentRequest {
|
|
2045
|
+
/** 部门 ID 列表 */
|
|
2046
|
+
department_ids: string[];
|
|
2047
|
+
/** 生效日期 */
|
|
2048
|
+
effective_date: string;
|
|
2049
|
+
/** 返回数据的字段列表,可选["department_name", "code", "active", "parent_department_id", "manager", "description", "effective_date"] */
|
|
2050
|
+
fields?: string[];
|
|
2051
|
+
}
|
|
2052
|
+
export interface QueryTimelineCorehrV2DepartmentQuery {
|
|
2053
|
+
/** 用户 ID 类型 */
|
|
2054
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2055
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
2056
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2057
|
+
}
|
|
2058
|
+
export interface TreeCorehrV2DepartmentRequest {
|
|
2059
|
+
/** 部门 ID,默认根部门 */
|
|
2060
|
+
department_id?: string;
|
|
2061
|
+
/** 是否包含失效部门,默认false */
|
|
2062
|
+
need_inactive?: boolean;
|
|
2063
|
+
/** 生效日期,格式yyyy-mm-dd,默认当前日期 */
|
|
2064
|
+
effective_date?: string;
|
|
2065
|
+
}
|
|
2066
|
+
export interface TreeCorehrV2DepartmentQuery extends Pagination {
|
|
2067
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
2068
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2069
|
+
}
|
|
2070
|
+
export interface QueryMultiTimelineCorehrV2DepartmentRequest {
|
|
2071
|
+
/** 部门 ID 列表 */
|
|
2072
|
+
department_ids: string[];
|
|
2073
|
+
/** 生效日期开始(包含) */
|
|
2074
|
+
effective_date_start?: string;
|
|
2075
|
+
/** 生效日期结束(包含) */
|
|
2076
|
+
effective_date_end?: string;
|
|
2077
|
+
/** 返回数据的字段列表,可选["department_name", "code", "active", "parent_department_id", "manager", "description", "effective_date"], 以及自定义字段field_name */
|
|
2078
|
+
fields?: string[];
|
|
2079
|
+
}
|
|
2080
|
+
export interface QueryMultiTimelineCorehrV2DepartmentQuery extends Pagination {
|
|
2081
|
+
/** 用户 ID 类型 */
|
|
2082
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2083
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
2084
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2085
|
+
}
|
|
2086
|
+
export interface SearchCorehrV2DepartmentRequest {
|
|
2087
|
+
/** 是否启用 */
|
|
2088
|
+
active?: boolean;
|
|
2089
|
+
/** 当通过上级部门 ID 查询时,填写 true 返回所有子部门,填写 false 只返回直接下级部门 */
|
|
2090
|
+
get_all_children?: boolean;
|
|
2091
|
+
/** manager ID 列表**字段权限要求:按照部门负责人搜索 (corehr:department.manager.search:read)** */
|
|
2092
|
+
manager_list?: string[];
|
|
2093
|
+
/** 部门 ID 列表 */
|
|
2094
|
+
department_id_list?: string[];
|
|
2095
|
+
/** 部门名称列表,需精确匹配 */
|
|
2096
|
+
name_list?: string[];
|
|
2097
|
+
/** 上级部门 ID ,可查询直接下级部门**字段权限要求:按照上级部门搜索 (corehr:department.organize.search:read) ** */
|
|
2098
|
+
parent_department_id?: string;
|
|
2099
|
+
/** 部门 code 列表 */
|
|
2100
|
+
code_list?: string[];
|
|
2101
|
+
/** 返回数据的字段列表 */
|
|
2102
|
+
fields?: string[];
|
|
2103
|
+
}
|
|
2104
|
+
export interface SearchCorehrV2DepartmentQuery extends Pagination {
|
|
2105
|
+
/** 用户 ID 类型 */
|
|
2106
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2107
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
2108
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2109
|
+
}
|
|
2110
|
+
export interface DeleteCorehrV2DepartmentQuery {
|
|
2111
|
+
/** 此次删除中所使用的部门ID类型 */
|
|
2112
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2113
|
+
}
|
|
2114
|
+
export interface CreateCorehrV1LocationRequest {
|
|
2115
|
+
/** 层级关系,内层字段见实体 */
|
|
2116
|
+
hiberarchy_common: HiberarchyCommon;
|
|
2117
|
+
/** 地点用途 */
|
|
2118
|
+
location_usage_list?: Enum[];
|
|
2119
|
+
/** 地址 */
|
|
2120
|
+
address?: Address[];
|
|
2121
|
+
/** 工时制度 */
|
|
2122
|
+
working_hours_type_id?: string;
|
|
2123
|
+
/** 生效时间 */
|
|
2124
|
+
effective_time: string;
|
|
2125
|
+
/** 区域设置 */
|
|
2126
|
+
locale?: Enum;
|
|
2127
|
+
/** 时区 */
|
|
2128
|
+
time_zone_id?: string;
|
|
2129
|
+
/** 默认显示语言 */
|
|
2130
|
+
display_language_id?: string;
|
|
2131
|
+
}
|
|
2132
|
+
export interface CreateCorehrV1LocationQuery {
|
|
2133
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
2134
|
+
client_token?: string;
|
|
2135
|
+
}
|
|
2136
|
+
export interface PatchCorehrV2LocationRequest {
|
|
2137
|
+
/** 上级地点 ID */
|
|
2138
|
+
parent_id?: string;
|
|
2139
|
+
/** 地点名称 */
|
|
2140
|
+
names?: I18n[];
|
|
2141
|
+
/** 是否启用 */
|
|
2142
|
+
active?: boolean;
|
|
2143
|
+
/** 生效时间 */
|
|
2144
|
+
effective_time: string;
|
|
2145
|
+
/** 地点编码 */
|
|
2146
|
+
code?: string;
|
|
2147
|
+
/** 地点描述 */
|
|
2148
|
+
descriptions?: I18n[];
|
|
2149
|
+
/** 地点用途 */
|
|
2150
|
+
location_usages?: Enum[];
|
|
2151
|
+
/** 工时制度 ID */
|
|
2152
|
+
working_hours_type_id?: string;
|
|
2153
|
+
/** 区域设置 */
|
|
2154
|
+
locale?: Enum;
|
|
2155
|
+
/** 时区 ID */
|
|
2156
|
+
time_zone_id?: string;
|
|
2157
|
+
/** 默认显示语言 ID */
|
|
2158
|
+
display_language_id?: string;
|
|
2159
|
+
}
|
|
2160
|
+
export interface PatchCorehrV2LocationQuery {
|
|
2161
|
+
/** 根据 client_token 是否一致来判断是否为同一请求 */
|
|
2162
|
+
client_token?: string;
|
|
2163
|
+
}
|
|
2164
|
+
export interface QueryRecentChangeCorehrV2LocationQuery extends Pagination {
|
|
2165
|
+
/** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
|
|
2166
|
+
start_date: string;
|
|
2167
|
+
/** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
|
|
2168
|
+
end_date: string;
|
|
2169
|
+
}
|
|
2170
|
+
export interface BatchGetCorehrV2LocationRequest {
|
|
2171
|
+
/** 地点 ID 列表 */
|
|
2172
|
+
location_ids: string[];
|
|
2173
|
+
}
|
|
2174
|
+
export interface ActiveCorehrV2LocationRequest {
|
|
2175
|
+
/** 地点 ID */
|
|
2176
|
+
location_id: string;
|
|
2177
|
+
/** 生效时间 */
|
|
2178
|
+
effective_time: string;
|
|
2179
|
+
/** 启用停用状态 */
|
|
2180
|
+
active: boolean;
|
|
2181
|
+
/** 操作原因 */
|
|
2182
|
+
operation_reason: string;
|
|
2183
|
+
}
|
|
2184
|
+
export interface PatchCorehrV2LocationAddressRequest {
|
|
2185
|
+
/** 国家 / 地区 */
|
|
2186
|
+
country_region_id?: string;
|
|
2187
|
+
/** 主要行政区 */
|
|
2188
|
+
region_id?: string;
|
|
2189
|
+
/** 城市 */
|
|
2190
|
+
city_id?: string;
|
|
2191
|
+
/** 区 / 县 */
|
|
2192
|
+
distinct_id?: string;
|
|
2193
|
+
/** 地址行 1(非拉丁语系的本地文字) */
|
|
2194
|
+
local_address_line1?: string;
|
|
2195
|
+
/** 地址行 2(非拉丁语系的本地文字) */
|
|
2196
|
+
local_address_line2?: string;
|
|
2197
|
+
/** 地址行 3(非拉丁语系的本地文字) */
|
|
2198
|
+
local_address_line3?: string;
|
|
2199
|
+
/** 地址行 4(非拉丁语系的本地文字) */
|
|
2200
|
+
local_address_line4?: string;
|
|
2201
|
+
/** 地址行 5(非拉丁语系的本地文字) */
|
|
2202
|
+
local_address_line5?: string;
|
|
2203
|
+
/** 地址行 6(非拉丁语系的本地文字) */
|
|
2204
|
+
local_address_line6?: string;
|
|
2205
|
+
/** 地址行 7(非拉丁语系的本地文字) */
|
|
2206
|
+
local_address_line7?: string;
|
|
2207
|
+
/** 地址行 8(非拉丁语系的本地文字) */
|
|
2208
|
+
local_address_line8?: string;
|
|
2209
|
+
/** 地址行 9(非拉丁语系的本地文字) */
|
|
2210
|
+
local_address_line9?: string;
|
|
2211
|
+
/** 邮政编码 */
|
|
2212
|
+
postal_code?: string;
|
|
2213
|
+
/** 地址类型,枚举值及详细信息可通过【枚举常量介绍】查询获得 */
|
|
2214
|
+
address_types?: Enum[];
|
|
2215
|
+
/** 是否主要地址 */
|
|
2216
|
+
is_primary?: boolean;
|
|
2217
|
+
/** 是否公开地址 */
|
|
2218
|
+
is_public?: boolean;
|
|
2219
|
+
}
|
|
2220
|
+
export interface PatchCorehrV2LocationAddressQuery {
|
|
2221
|
+
/** 根据 client_token 是否一致来判断是否为同一请求 */
|
|
2222
|
+
client_token?: string;
|
|
2223
|
+
}
|
|
2224
|
+
export interface CreateCorehrV2LocationAddressRequest {
|
|
2225
|
+
/** 国家 / 地区 */
|
|
2226
|
+
country_region_id: string;
|
|
2227
|
+
/** 主要行政区 */
|
|
2228
|
+
region_id: string;
|
|
2229
|
+
/** 城市 */
|
|
2230
|
+
city_id: string;
|
|
2231
|
+
/** 区 / 县 */
|
|
2232
|
+
distinct_id: string;
|
|
2233
|
+
/** 地址行 1(非拉丁语系的本地文字) */
|
|
2234
|
+
local_address_line1?: string;
|
|
2235
|
+
/** 地址行 2(非拉丁语系的本地文字) */
|
|
2236
|
+
local_address_line2?: string;
|
|
2237
|
+
/** 地址行 3(非拉丁语系的本地文字) */
|
|
2238
|
+
local_address_line3?: string;
|
|
2239
|
+
/** 地址行 4(非拉丁语系的本地文字) */
|
|
2240
|
+
local_address_line4?: string;
|
|
2241
|
+
/** 地址行 5(非拉丁语系的本地文字) */
|
|
2242
|
+
local_address_line5?: string;
|
|
2243
|
+
/** 地址行 6(非拉丁语系的本地文字) */
|
|
2244
|
+
local_address_line6?: string;
|
|
2245
|
+
/** 地址行 7(非拉丁语系的本地文字) */
|
|
2246
|
+
local_address_line7?: string;
|
|
2247
|
+
/** 地址行 8(非拉丁语系的本地文字) */
|
|
2248
|
+
local_address_line8?: string;
|
|
2249
|
+
/** 地址行 9(非拉丁语系的本地文字) */
|
|
2250
|
+
local_address_line9?: string;
|
|
2251
|
+
/** 邮政编码 */
|
|
2252
|
+
postal_code?: string;
|
|
2253
|
+
/** 地址类型,枚举值及详细信息可通过【枚举常量介绍】查询获得 */
|
|
2254
|
+
address_types?: Enum[];
|
|
2255
|
+
/** 是否主要地址 */
|
|
2256
|
+
is_primary?: boolean;
|
|
2257
|
+
/** 是否公开地址 */
|
|
2258
|
+
is_public?: boolean;
|
|
2259
|
+
}
|
|
2260
|
+
export interface CreateCorehrV2LocationAddressQuery {
|
|
2261
|
+
/** 根据 client_token 是否一致来判断是否为同一请求 */
|
|
2262
|
+
client_token?: string;
|
|
2263
|
+
}
|
|
2264
|
+
export interface CreateCorehrV1CompanyRequest {
|
|
2265
|
+
/** 层级关系,内层字段见实体 */
|
|
2266
|
+
hiberarchy_common: HiberarchyCommon;
|
|
2267
|
+
/** 性质 */
|
|
2268
|
+
type?: Enum;
|
|
2269
|
+
/** 行业 */
|
|
2270
|
+
industry_list?: Enum[];
|
|
2271
|
+
/** 法定代表人 */
|
|
2272
|
+
legal_representative?: I18n[];
|
|
2273
|
+
/** 邮编 */
|
|
2274
|
+
post_code?: string;
|
|
2275
|
+
/** 纳税人识别号 */
|
|
2276
|
+
tax_payer_id?: string;
|
|
2277
|
+
/** confidential */
|
|
2278
|
+
confidential?: boolean;
|
|
2279
|
+
/** 主体类型 */
|
|
2280
|
+
sub_type_list?: Enum[];
|
|
2281
|
+
/** 是否为分公司 */
|
|
2282
|
+
branch_company?: boolean;
|
|
2283
|
+
/** 主要负责人 */
|
|
2284
|
+
primary_manager?: I18n[];
|
|
2285
|
+
/** 自定义字段 */
|
|
2286
|
+
custom_fields?: ObjectFieldData[];
|
|
2287
|
+
/** 默认币种 */
|
|
2288
|
+
currency?: Currency;
|
|
2289
|
+
/** 电话 */
|
|
2290
|
+
phone?: PhoneNumberAndAreaCode;
|
|
2291
|
+
/** 传真 */
|
|
2292
|
+
fax?: PhoneNumberAndAreaCode;
|
|
2293
|
+
/** 注册地址详细信息 */
|
|
2294
|
+
registered_office_address_info?: Address;
|
|
2295
|
+
/** 办公地址详细信息 */
|
|
2296
|
+
office_address_info?: Address;
|
|
2297
|
+
}
|
|
2298
|
+
export interface CreateCorehrV1CompanyQuery {
|
|
2299
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
2300
|
+
client_token?: string;
|
|
2301
|
+
}
|
|
2302
|
+
export interface PatchCorehrV1CompanyRequest {
|
|
2303
|
+
/** 层级关系,内层字段见实体 */
|
|
2304
|
+
hiberarchy_common?: HiberarchyCommon;
|
|
2305
|
+
/** 性质 */
|
|
2306
|
+
type?: Enum;
|
|
2307
|
+
/** 行业 */
|
|
2308
|
+
industry_list?: Enum[];
|
|
2309
|
+
/** 法定代表人 */
|
|
2310
|
+
legal_representative?: I18n[];
|
|
2311
|
+
/** 邮编 */
|
|
2312
|
+
post_code?: string;
|
|
2313
|
+
/** 纳税人识别号 */
|
|
2314
|
+
tax_payer_id?: string;
|
|
2315
|
+
/** confidential */
|
|
2316
|
+
confidential?: boolean;
|
|
2317
|
+
/** 主体类型 */
|
|
2318
|
+
sub_type_list?: Enum[];
|
|
2319
|
+
/** 是否为分公司 */
|
|
2320
|
+
branch_company?: boolean;
|
|
2321
|
+
/** 主要负责人 */
|
|
2322
|
+
primary_manager?: I18n[];
|
|
2323
|
+
/** 默认币种 */
|
|
2324
|
+
currency?: Currency;
|
|
2325
|
+
/** 电话 */
|
|
2326
|
+
phone?: PhoneNumberAndAreaCode;
|
|
2327
|
+
/** 传真 */
|
|
2328
|
+
fax?: PhoneNumberAndAreaCode;
|
|
2329
|
+
/** 注册地址详细信息 */
|
|
2330
|
+
registered_office_address_info?: Address;
|
|
2331
|
+
/** 办公地址详细信息 */
|
|
2332
|
+
office_address_info?: Address;
|
|
2333
|
+
}
|
|
2334
|
+
export interface PatchCorehrV1CompanyQuery {
|
|
2335
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
2336
|
+
client_token?: string;
|
|
2337
|
+
}
|
|
2338
|
+
export interface ActiveCorehrV2CompanyRequest {
|
|
2339
|
+
/** 公司ID */
|
|
2340
|
+
company_id: string;
|
|
2341
|
+
/** 生效时间 */
|
|
2342
|
+
effective_time: string;
|
|
2343
|
+
/** 启用停用状态 */
|
|
2344
|
+
active: boolean;
|
|
2345
|
+
/** 操作原因 */
|
|
2346
|
+
operation_reason: string;
|
|
2347
|
+
}
|
|
2348
|
+
export interface QueryRecentChangeCorehrV2CompanyQuery extends Pagination {
|
|
2349
|
+
/** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
|
|
2350
|
+
start_date: string;
|
|
2351
|
+
/** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
|
|
2352
|
+
end_date: string;
|
|
2353
|
+
}
|
|
2354
|
+
export interface BatchGetCorehrV2CompanyRequest {
|
|
2355
|
+
/** 公司 ID 列表 */
|
|
2356
|
+
company_ids: string[];
|
|
2357
|
+
}
|
|
2358
|
+
export interface CreateCorehrV2CostCenterRequest {
|
|
2359
|
+
/** 成本中心名称 */
|
|
2360
|
+
name: I18n[];
|
|
2361
|
+
/** 编码 */
|
|
2362
|
+
code?: string;
|
|
2363
|
+
/** 上级成本中心ID */
|
|
2364
|
+
parent_cost_center_id?: string;
|
|
2365
|
+
/** 成本中心负责人ID 列表,可通过雇佣信息接口查询获得 */
|
|
2366
|
+
managers?: string[];
|
|
2367
|
+
/** 成本中心描述 */
|
|
2368
|
+
description?: I18n[];
|
|
2369
|
+
/** 生效时间 */
|
|
2370
|
+
effective_time: string;
|
|
2371
|
+
}
|
|
2372
|
+
export interface CreateCorehrV2CostCenterQuery {
|
|
2373
|
+
/** 用户 ID 类型 */
|
|
2374
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2375
|
+
}
|
|
2376
|
+
export interface PatchCorehrV2CostCenterRequest {
|
|
2377
|
+
/** 生效时间 */
|
|
2378
|
+
effective_time: string;
|
|
2379
|
+
/** 启用停用状态 */
|
|
2380
|
+
active: boolean;
|
|
2381
|
+
/** 操作原因 */
|
|
2382
|
+
operation_reason: string;
|
|
2383
|
+
}
|
|
2384
|
+
export interface PatchCorehrV2CostCenterQuery {
|
|
2385
|
+
/** 用户 ID 类型 */
|
|
2386
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2387
|
+
}
|
|
2388
|
+
export interface QueryRecentChangeCorehrV2CostCenterQuery extends Pagination {
|
|
2389
|
+
/** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
|
|
2390
|
+
start_date: string;
|
|
2391
|
+
/** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
|
|
2392
|
+
end_date: string;
|
|
2393
|
+
}
|
|
2394
|
+
export interface SearchCorehrV2CostCenterRequest {
|
|
2395
|
+
/** 成本中心ID 列表 */
|
|
2396
|
+
cost_center_id_list?: string[];
|
|
2397
|
+
/** 成长中心名称列表,精确匹配 */
|
|
2398
|
+
name_list?: string[];
|
|
2399
|
+
/** 成本中心编码 */
|
|
2400
|
+
code?: string;
|
|
2401
|
+
/** 上级成本中心ID,可用于查询直接下级成本中心 */
|
|
2402
|
+
parent_cost_center_id?: string;
|
|
2403
|
+
/** 是否获取所有陈本中心版本 */
|
|
2404
|
+
get_all_version?: boolean;
|
|
2405
|
+
}
|
|
2406
|
+
export interface SearchCorehrV2CostCenterQuery extends Pagination {
|
|
2407
|
+
/** 用户 ID 类型 */
|
|
2408
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2409
|
+
}
|
|
2410
|
+
export interface DeleteCorehrV2CostCenterRequest {
|
|
2411
|
+
/** 操作原因 */
|
|
2412
|
+
operation_reason: string;
|
|
2413
|
+
}
|
|
2414
|
+
export interface CreateCorehrV2CostCenterVersionRequest {
|
|
2415
|
+
/** 成本中心名称 */
|
|
2416
|
+
name: I18n[];
|
|
2417
|
+
/** 上级成本中心ID */
|
|
2418
|
+
parent_cost_center_id?: string;
|
|
2419
|
+
/** 成本中心负责人ID 列表,可通过雇佣信息接口查询获得 */
|
|
2420
|
+
managers?: string[];
|
|
2421
|
+
/** 成本中心描述 */
|
|
2422
|
+
description?: I18n[];
|
|
2423
|
+
/** 生效时间 */
|
|
2424
|
+
effective_time: string;
|
|
2425
|
+
/** 操作原因 */
|
|
2426
|
+
operation_reason: string;
|
|
2427
|
+
}
|
|
2428
|
+
export interface CreateCorehrV2CostCenterVersionQuery {
|
|
2429
|
+
/** 用户 ID 类型 */
|
|
2430
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2431
|
+
}
|
|
2432
|
+
export interface PatchCorehrV2CostCenterVersionRequest {
|
|
2433
|
+
/** 成本中心名称 */
|
|
2434
|
+
name?: I18n[];
|
|
2435
|
+
/** 上级成本中心ID */
|
|
2436
|
+
parent_cost_center_id?: string;
|
|
2437
|
+
/** 成本中心负责人ID 列表,可通过雇佣信息接口查询获得 */
|
|
2438
|
+
managers?: string[];
|
|
2439
|
+
/** 成本中心描述 */
|
|
2440
|
+
description?: I18n[];
|
|
2441
|
+
/** 生效时间 */
|
|
2442
|
+
effective_time: string;
|
|
2443
|
+
/** 操作原因 */
|
|
2444
|
+
operation_reason: string;
|
|
2445
|
+
}
|
|
2446
|
+
export interface PatchCorehrV2CostCenterVersionQuery {
|
|
2447
|
+
/** 用户 ID 类型 */
|
|
2448
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2449
|
+
}
|
|
2450
|
+
export interface DeleteCorehrV2CostCenterVersionRequest {
|
|
2451
|
+
/** 操作原因 */
|
|
2452
|
+
operation_reason: string;
|
|
2453
|
+
}
|
|
2454
|
+
export interface GetCorehrV2ApprovalGroupsQuery {
|
|
2455
|
+
/** 用户 ID 类型 */
|
|
2456
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2457
|
+
}
|
|
2458
|
+
export interface OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsRequest {
|
|
2459
|
+
/** 部门调整记录 ID List */
|
|
2460
|
+
department_change_ids?: string[];
|
|
2461
|
+
/** 是否返回部门全路径 */
|
|
2462
|
+
need_department_path?: boolean;
|
|
2463
|
+
}
|
|
2464
|
+
export interface OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsQuery {
|
|
2465
|
+
/** 组织架构调整流程 ID */
|
|
2466
|
+
process_id: string;
|
|
2467
|
+
/** 用户 ID 类型 */
|
|
2468
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2469
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
2470
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2471
|
+
}
|
|
2472
|
+
export interface OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsRequest {
|
|
2473
|
+
/** 人员异动记录 ID List */
|
|
2474
|
+
job_change_ids?: string[];
|
|
2475
|
+
/** 是否返回部门全路径 */
|
|
2476
|
+
need_department_path?: boolean;
|
|
2477
|
+
}
|
|
2478
|
+
export interface OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsQuery {
|
|
2479
|
+
/** 组织架构调整流程 ID */
|
|
2480
|
+
process_id: string;
|
|
2481
|
+
/** 用户 ID 类型 */
|
|
2482
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2483
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
2484
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2485
|
+
}
|
|
2486
|
+
export interface CreateCorehrV1JobFamilyRequest {
|
|
2487
|
+
/** 名称 */
|
|
2488
|
+
name: I18n[];
|
|
2489
|
+
/** 启用 */
|
|
2490
|
+
active: boolean;
|
|
2491
|
+
/** 上级序列 */
|
|
2492
|
+
parent_id?: string;
|
|
2493
|
+
/** 生效时间 */
|
|
2494
|
+
effective_time: string;
|
|
2495
|
+
/** 编码 */
|
|
2496
|
+
code?: string;
|
|
2497
|
+
/** 自定义字段 */
|
|
2498
|
+
custom_fields?: ObjectFieldData[];
|
|
2499
|
+
}
|
|
2500
|
+
export interface CreateCorehrV1JobFamilyQuery {
|
|
2501
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
2502
|
+
client_token?: string;
|
|
2503
|
+
}
|
|
2504
|
+
export interface PatchCorehrV1JobFamilyRequest {
|
|
2505
|
+
/** 名称 */
|
|
2506
|
+
name?: I18n[];
|
|
2507
|
+
/** 启用 */
|
|
2508
|
+
active?: boolean;
|
|
2509
|
+
/** 上级序列 */
|
|
2510
|
+
parent_id?: string;
|
|
2511
|
+
/** 生效时间 */
|
|
2512
|
+
effective_time?: string;
|
|
2513
|
+
/** 编码 */
|
|
2514
|
+
code?: string;
|
|
2515
|
+
/** 自定义字段 */
|
|
2516
|
+
custom_fields?: ObjectFieldData[];
|
|
2517
|
+
}
|
|
2518
|
+
export interface PatchCorehrV1JobFamilyQuery {
|
|
2519
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
2520
|
+
client_token?: string;
|
|
2521
|
+
}
|
|
2522
|
+
export interface QueryRecentChangeCorehrV2JobFamilyQuery extends Pagination {
|
|
2523
|
+
/** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
|
|
2524
|
+
start_date: string;
|
|
2525
|
+
/** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
|
|
2526
|
+
end_date: string;
|
|
2527
|
+
}
|
|
2528
|
+
export interface BatchGetCorehrV2JobFamilyRequest {
|
|
2529
|
+
/** 序列 ID 列表 */
|
|
2530
|
+
job_family_ids: string[];
|
|
2531
|
+
}
|
|
2532
|
+
export interface CreateCorehrV1JobLevelRequest {
|
|
2533
|
+
/** 职级数值 */
|
|
2534
|
+
level_order: number;
|
|
2535
|
+
/** 编码 */
|
|
2536
|
+
code?: string;
|
|
2537
|
+
/** 名称 */
|
|
2538
|
+
name: I18n[];
|
|
2539
|
+
/** 描述 */
|
|
2540
|
+
description?: I18n[];
|
|
2541
|
+
/** 启用 */
|
|
2542
|
+
active: boolean;
|
|
2543
|
+
/** 自定义字段 */
|
|
2544
|
+
custom_fields?: ObjectFieldData[];
|
|
2545
|
+
/** 职等 ID 列表 */
|
|
2546
|
+
job_grade?: string[];
|
|
2547
|
+
}
|
|
2548
|
+
export interface CreateCorehrV1JobLevelQuery {
|
|
2549
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
2550
|
+
client_token?: string;
|
|
2551
|
+
}
|
|
2552
|
+
export interface PatchCorehrV1JobLevelRequest {
|
|
2553
|
+
/** 职级数值 */
|
|
2554
|
+
level_order?: number;
|
|
2555
|
+
/** 编码 */
|
|
2556
|
+
code?: string;
|
|
2557
|
+
/** 名称 */
|
|
2558
|
+
name?: I18n[];
|
|
2559
|
+
/** 描述 */
|
|
2560
|
+
description?: I18n[];
|
|
2561
|
+
/** 启用 */
|
|
2562
|
+
active?: boolean;
|
|
2563
|
+
/** 自定义字段 */
|
|
2564
|
+
custom_fields?: ObjectFieldData[];
|
|
2565
|
+
/** 职等 ID 列表 */
|
|
2566
|
+
job_grade?: string[];
|
|
2567
|
+
}
|
|
2568
|
+
export interface PatchCorehrV1JobLevelQuery {
|
|
2569
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
2570
|
+
client_token?: string;
|
|
2571
|
+
}
|
|
2572
|
+
export interface QueryRecentChangeCorehrV2JobLevelQuery extends Pagination {
|
|
2573
|
+
/** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
|
|
2574
|
+
start_date: string;
|
|
2575
|
+
/** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
|
|
2576
|
+
end_date: string;
|
|
2577
|
+
}
|
|
2578
|
+
export interface BatchGetCorehrV2JobLevelRequest {
|
|
2579
|
+
/** 职级 ID 列表 */
|
|
2580
|
+
job_level_ids: string[];
|
|
2581
|
+
}
|
|
2582
|
+
export interface CreateCorehrV2JobGradeRequest {
|
|
2583
|
+
/** 职等数值 */
|
|
2584
|
+
grade_order: number;
|
|
2585
|
+
/** 编码 */
|
|
2586
|
+
code?: string;
|
|
2587
|
+
/** 名称 */
|
|
2588
|
+
names: I18n[];
|
|
2589
|
+
/** 描述 */
|
|
2590
|
+
descriptions?: I18n[];
|
|
2591
|
+
}
|
|
2592
|
+
export interface CreateCorehrV2JobGradeQuery {
|
|
2593
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
2594
|
+
client_token?: string;
|
|
2595
|
+
}
|
|
2596
|
+
export interface PatchCorehrV2JobGradeRequest {
|
|
2597
|
+
/** 职等数值 */
|
|
2598
|
+
grade_order?: number;
|
|
2599
|
+
/** 编码 */
|
|
2600
|
+
code?: string;
|
|
2601
|
+
/** 名称 */
|
|
2602
|
+
names?: I18n[];
|
|
2603
|
+
/** 描述 */
|
|
2604
|
+
descriptions?: I18n[];
|
|
2605
|
+
/** 启用 */
|
|
2606
|
+
active?: boolean;
|
|
2607
|
+
}
|
|
2608
|
+
export interface PatchCorehrV2JobGradeQuery {
|
|
2609
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
2610
|
+
client_token?: string;
|
|
2611
|
+
}
|
|
2612
|
+
export interface QueryCorehrV2JobGradeRequest {
|
|
2613
|
+
/** 职等ID列表 */
|
|
2614
|
+
ids?: string[];
|
|
2615
|
+
/** 职等code列表 */
|
|
2616
|
+
codes?: string[];
|
|
2617
|
+
/** 是否启用 */
|
|
2618
|
+
active?: boolean;
|
|
2619
|
+
}
|
|
2620
|
+
export interface QueryRecentChangeCorehrV2JobGradeQuery extends Pagination {
|
|
2621
|
+
/** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
|
|
2622
|
+
start_date: string;
|
|
2623
|
+
/** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
|
|
2624
|
+
end_date: string;
|
|
2625
|
+
}
|
|
2626
|
+
export interface CreateCorehrV1JobRequest {
|
|
2627
|
+
/** 编码 */
|
|
2628
|
+
code?: string;
|
|
2629
|
+
/** 名称 */
|
|
2630
|
+
name: I18n[];
|
|
2631
|
+
/** 描述 */
|
|
2632
|
+
description?: I18n[];
|
|
2633
|
+
/** 启用 */
|
|
2634
|
+
active: boolean;
|
|
2635
|
+
/** 职务头衔 */
|
|
2636
|
+
job_title?: I18n[];
|
|
2637
|
+
/** 序列 */
|
|
2638
|
+
job_family_id_list?: string[];
|
|
2639
|
+
/** 职级 */
|
|
2640
|
+
job_level_id_list?: string[];
|
|
2641
|
+
/** 工时制度,引用WorkingHoursType的ID */
|
|
2642
|
+
working_hours_type_id?: string;
|
|
2643
|
+
/** 生效时间 */
|
|
2644
|
+
effective_time: string;
|
|
2645
|
+
/** 自定义字段 */
|
|
2646
|
+
custom_fields?: ObjectFieldData[];
|
|
2647
|
+
}
|
|
2648
|
+
export interface CreateCorehrV1JobQuery {
|
|
2649
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
2650
|
+
client_token?: string;
|
|
2651
|
+
}
|
|
2652
|
+
export interface PatchCorehrV1JobRequest {
|
|
2653
|
+
/** 编码 */
|
|
2654
|
+
code?: string;
|
|
2655
|
+
/** 名称 */
|
|
2656
|
+
name?: I18n[];
|
|
2657
|
+
/** 描述 */
|
|
2658
|
+
description?: I18n[];
|
|
2659
|
+
/** 启用 */
|
|
2660
|
+
active?: boolean;
|
|
2661
|
+
/** 职务头衔 */
|
|
2662
|
+
job_title?: I18n[];
|
|
2663
|
+
/** 序列 */
|
|
2664
|
+
job_family_id_list?: string[];
|
|
2665
|
+
/** 职级 */
|
|
2666
|
+
job_level_id_list?: string[];
|
|
2667
|
+
/** 工时制度,引用WorkingHoursType的ID */
|
|
2668
|
+
working_hours_type_id?: string;
|
|
2669
|
+
/** 生效时间 */
|
|
2670
|
+
effective_time?: string;
|
|
2671
|
+
/** 自定义字段 */
|
|
2672
|
+
custom_fields?: ObjectFieldData[];
|
|
2673
|
+
}
|
|
2674
|
+
export interface PatchCorehrV1JobQuery {
|
|
2675
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
2676
|
+
client_token?: string;
|
|
2677
|
+
}
|
|
2678
|
+
export interface ListCorehrV2JobQuery extends Pagination {
|
|
2679
|
+
/** 名称 */
|
|
2680
|
+
name?: string;
|
|
2681
|
+
/** 语言 */
|
|
2682
|
+
query_language?: string;
|
|
2683
|
+
}
|
|
2684
|
+
export interface WithdrawOnboardingCorehrV2PreHireRequest {
|
|
2685
|
+
/** 待入职ID,可从待入职列表接口获取 */
|
|
2686
|
+
pre_hire_id: string;
|
|
2687
|
+
/** 撤销原因 */
|
|
2688
|
+
withdraw_reason: string;
|
|
2689
|
+
}
|
|
2690
|
+
export interface RestoreFlowInstanceCorehrV2PreHireRequest {
|
|
2691
|
+
/** 待入职ID,可从待入职列表接口获取 */
|
|
2692
|
+
pre_hire_id: string;
|
|
2693
|
+
/** 是否强制占编;true为强制占编;false为非强制占编 */
|
|
2694
|
+
confirm_workforce?: boolean;
|
|
2695
|
+
}
|
|
2696
|
+
export interface CreateCorehrV2PreHireRequest {
|
|
2697
|
+
/** 个人信息 */
|
|
2698
|
+
basic_info: BasicInfo;
|
|
2699
|
+
/** 职位信息 */
|
|
2700
|
+
offer_info: OfferInfo;
|
|
2701
|
+
/** 教育经历 */
|
|
2702
|
+
education_info?: EducationInfo[];
|
|
2703
|
+
/** 工作经历 */
|
|
2704
|
+
work_experience?: WorkExperience[];
|
|
2705
|
+
/** 招聘应用ID */
|
|
2706
|
+
ats_application_id?: string;
|
|
2707
|
+
/** 外部业务唯一编码 */
|
|
2708
|
+
out_biz_id?: string;
|
|
2709
|
+
}
|
|
2710
|
+
export interface PatchCorehrV2PreHireRequest {
|
|
2711
|
+
/** 更新个人(person)信息 */
|
|
2712
|
+
basic_info_update?: BasicInfoUpdate;
|
|
2713
|
+
/** 更新待入职(prehire)信息 */
|
|
2714
|
+
offer_info_update?: OfferInfoUpdate;
|
|
2715
|
+
/** 指定需要更新的系统字段,只支持最多下钻一层,格式如下: - basic_info_update字段:basic_info_update.name(对name整体进行覆盖更新);basic_info_update.emails(对邮箱整体进行更新) - offer_info_update字段:offer_info_update.onboarding_method - 招聘ID:ats_application_id */
|
|
2716
|
+
standard_update_fields?: string[];
|
|
2717
|
+
/** 指定需要更新的PreHire对象上的自定义字段,格式如下: - custom_field1__c */
|
|
2718
|
+
custom_update_fields?: string[];
|
|
2719
|
+
/** 指定需要更新的Person对象上的自定义字段,格式如下: - custom_field1__c */
|
|
2720
|
+
person_custom_update_fields?: string[];
|
|
2721
|
+
}
|
|
2722
|
+
export interface QueryCorehrV2PreHireRequest {
|
|
2723
|
+
/** 待入职人员 ID 列表;如果该字段非空,则不按照page_size、page_token分页方式查询 */
|
|
2724
|
+
pre_hire_ids?: string[];
|
|
2725
|
+
/** 返回数据的字段列表,填写方式:- 为空时只返回 pre_hire_id- 不为空时按照传入的字段返回数据,格式如下: - person_info 字段:person_info.gender,person_info.age - employment_info 字段:employment_info.department - onboarding_info 字段:onboarding_info.onboarding_date - probation_info 字段:probation_info.probation_period - contract_info 字段:contract_info.contract_type- 如果要返回所有下级,只用传上级结构体名称,例如 person_info- 返回数据越多,查询接口性能越慢,请按需填写返回字段 */
|
|
2726
|
+
fields?: string[];
|
|
2727
|
+
}
|
|
2728
|
+
export interface QueryCorehrV2PreHireQuery extends Pagination {
|
|
2729
|
+
/** 用户 ID 类型 */
|
|
2730
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2731
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
2732
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2733
|
+
}
|
|
2734
|
+
export interface ListCorehrV1PreHireQuery extends Pagination {
|
|
2735
|
+
/** 待入职ID列表 */
|
|
2736
|
+
pre_hire_ids?: string[];
|
|
2737
|
+
}
|
|
2738
|
+
export interface SearchCorehrV2PreHireRequest {
|
|
2739
|
+
/** 待入职人员工号列表 */
|
|
2740
|
+
worker_ids?: string[];
|
|
2741
|
+
/** 待入职人员 ID 列表 */
|
|
2742
|
+
pre_hire_ids?: string[];
|
|
2743
|
+
/** 个人信息 ID 列表 */
|
|
2744
|
+
person_ids?: string[];
|
|
2745
|
+
/** 入职日期-搜索范围开始,需要与搜索范围结束一同使用 */
|
|
2746
|
+
onboarding_date_start?: string;
|
|
2747
|
+
/** 入职日期-搜索范围结束 */
|
|
2748
|
+
onboarding_date_end?: string;
|
|
2749
|
+
/** 待入职数据更新时间-搜索范围开始,需要与搜索范围结束一同使用 */
|
|
2750
|
+
updated_date_start?: string;
|
|
2751
|
+
/** 待入职数据更新时间-搜索范围结束,需要与搜索范围结束一同使用 */
|
|
2752
|
+
updated_date_end?: string;
|
|
2753
|
+
/** 入职地点 ID 列表 */
|
|
2754
|
+
onboarding_location_ids?: string[];
|
|
2755
|
+
/** 入职状态 */
|
|
2756
|
+
onboarding_status?: 'preboarding' | 'deleted' | 'day_one' | 'withdrawn' | 'completed';
|
|
2757
|
+
/** 部门 ID 列表 */
|
|
2758
|
+
department_ids?: string[];
|
|
2759
|
+
/** 直接上级的雇佣 ID 列表 */
|
|
2760
|
+
direct_manager_ids?: string[];
|
|
2761
|
+
/** 人员类型 ID 列表 */
|
|
2762
|
+
employee_type_ids?: string[];
|
|
2763
|
+
/** 人员子类型 ID 列表 */
|
|
2764
|
+
employee_subtype_ids?: string[];
|
|
2765
|
+
/** 序列 ID 列表 */
|
|
2766
|
+
job_family_ids?: string[];
|
|
2767
|
+
/** 搜索关键字,支持对常用名模糊搜索 + 工号精确搜索 */
|
|
2768
|
+
key_word?: string;
|
|
2769
|
+
/** 是否离职重聘 */
|
|
2770
|
+
rehire?: 'to_be_confirmed' | 'no' | 'yes';
|
|
2771
|
+
/** 返回数据的字段列表,填写方式:- 为空时只返回 pre_hire_id- 不为空时按照传入的字段返回数据,格式如下: - person_info 字段:person_info.gender,person_info.age - employment_info 字段:employment_info.department - onboarding_info 字段:onboarding_info.onboarding_date - probation_info 字段:probation_info.probation_period - contract_info 字段:contract_info.contract_type- 如果要返回所有下级,只用传上级结构体名称,例如 person_info- 返回数据越多,查询接口性能越慢,请按需填写返回字段 */
|
|
2772
|
+
fields?: string[];
|
|
2773
|
+
}
|
|
2774
|
+
export interface SearchCorehrV2PreHireQuery extends Pagination {
|
|
2775
|
+
/** 用户 ID 类型 */
|
|
2776
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2777
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
2778
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2779
|
+
}
|
|
2780
|
+
export interface TransitTaskCorehrV2PreHireRequest {
|
|
2781
|
+
/** 系统预置的职位信息和个人信息任务的task_id分别为1和2,自定义任务的task_id是一串UUID */
|
|
2782
|
+
task_id: string;
|
|
2783
|
+
}
|
|
2784
|
+
export interface PatchCorehrV1PreHireRequest {
|
|
2785
|
+
/** 招聘系统的候选人 ID */
|
|
2786
|
+
ats_application_id?: string;
|
|
2787
|
+
/** 入职日期 */
|
|
2788
|
+
hire_date?: string;
|
|
2789
|
+
/** 雇佣类型 */
|
|
2790
|
+
employee_type?: Enum;
|
|
2791
|
+
/** 人员编号 */
|
|
2792
|
+
worker_id?: string;
|
|
2793
|
+
/** 雇佣类型 */
|
|
2794
|
+
employee_type_id?: string;
|
|
2795
|
+
/** 引用Person ID */
|
|
2796
|
+
person_id?: string;
|
|
2797
|
+
/** 自定义字段 */
|
|
2798
|
+
custom_fields?: ObjectFieldData[];
|
|
2799
|
+
/** 成本中心分摊信息 */
|
|
2800
|
+
cost_center_rate?: SupportCostCenterItem[];
|
|
2801
|
+
/** 入职状态 */
|
|
2802
|
+
onboarding_status: Enum;
|
|
2803
|
+
}
|
|
2804
|
+
export interface PatchCorehrV1PreHireQuery {
|
|
2805
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
2806
|
+
client_token?: string;
|
|
2807
|
+
}
|
|
2808
|
+
export interface CreateCorehrV2ProbationAssessmentRequest {
|
|
2809
|
+
/** 试用期人员的雇佣 ID */
|
|
2810
|
+
employment_id: string;
|
|
2811
|
+
/** 试用期考核结果列表 */
|
|
2812
|
+
assessments: AssessmentForCreate[];
|
|
2813
|
+
}
|
|
2814
|
+
export interface CreateCorehrV2ProbationAssessmentQuery {
|
|
2815
|
+
/** 根据 client_token 是否一致来判断是否为同一请求 */
|
|
2816
|
+
client_token?: string;
|
|
2817
|
+
/** 用户 ID 类型 */
|
|
2818
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2819
|
+
}
|
|
2820
|
+
export interface EnableDisableAssessmentCorehrV2ProbationRequest {
|
|
2821
|
+
/** 启用 / 停用状态。启用后可在试用期管理页面中可见试用期考核相关的字段。 */
|
|
2822
|
+
active: boolean;
|
|
2823
|
+
/** 试用期考核系统入口链接,当启用功能时该字段必填。 */
|
|
2824
|
+
app_url?: string;
|
|
2825
|
+
}
|
|
2826
|
+
export interface PatchCorehrV2ProbationAssessmentRequest {
|
|
2827
|
+
/** 考核状态 */
|
|
2828
|
+
assessment_status: 'not_started' | 'in_process' | 'completed' | 'no_need';
|
|
2829
|
+
/** 试用期考核结果 */
|
|
2830
|
+
assessment_result?: 'approved' | 'rejected';
|
|
2831
|
+
/** 考核得分 */
|
|
2832
|
+
assessment_score?: number;
|
|
2833
|
+
/** 试用期考核等级 */
|
|
2834
|
+
assessment_grade?: string;
|
|
2835
|
+
/** 考核评语 */
|
|
2836
|
+
assessment_comment?: string;
|
|
2837
|
+
/** 考核结果页面超链接 */
|
|
2838
|
+
assessment_detail?: string;
|
|
2839
|
+
/** 是否为最终考核结果 */
|
|
2840
|
+
is_final_asssessment: boolean;
|
|
2841
|
+
}
|
|
2842
|
+
export interface PatchCorehrV2ProbationAssessmentQuery {
|
|
2843
|
+
/** 根据 client_token 是否一致来判断是否为同一请求 */
|
|
2844
|
+
client_token?: string;
|
|
2845
|
+
}
|
|
2846
|
+
export interface SearchCorehrV2ProbationRequest {
|
|
2847
|
+
/** 雇佣 ID 列表 */
|
|
2848
|
+
employment_ids?: string[];
|
|
2849
|
+
/** 部门 ID 列表 */
|
|
2850
|
+
department_ids?: string[];
|
|
2851
|
+
/** 试用期开始日期 - 搜索范围开始,需要与搜索范围结束一同使用 */
|
|
2852
|
+
probation_start_date_start?: string;
|
|
2853
|
+
/** 试用期开始日期 - 搜索范围结束 */
|
|
2854
|
+
probation_start_date_end?: string;
|
|
2855
|
+
/** 试用期预计结束日期 - 搜索范围开始,需要与搜索范围结束一同使用 */
|
|
2856
|
+
probation_expected_end_date_start?: string;
|
|
2857
|
+
/** 试用期预计结束日期 - 搜索范围结束 */
|
|
2858
|
+
probation_expected_end_date_end?: string;
|
|
2859
|
+
/** 试用期实际结束日期 - 搜索范围开始,需要与搜索范围结束一同使用 */
|
|
2860
|
+
actual_probation_end_date_start?: string;
|
|
2861
|
+
/** 试用期实际结束日期 - 搜索范围结束 */
|
|
2862
|
+
actual_probation_end_date_end?: string;
|
|
2863
|
+
/** 转正发起日期 - 搜索范围开始,需要与搜索范围结束一同使用 */
|
|
2864
|
+
initiating_time_start?: string;
|
|
2865
|
+
/** 转正发起日期 - 搜索范围结束 */
|
|
2866
|
+
initiating_time_end?: string;
|
|
2867
|
+
/** 试用期状态 */
|
|
2868
|
+
probation_status?: 'pending' | 'rejected' | 'waiting' | 'approved' | 'converted' | 'offboarded';
|
|
2869
|
+
/** 试用期最终考核结果 */
|
|
2870
|
+
final_assessment_result?: 'approved' | 'rejected';
|
|
2871
|
+
/** 试用期最终考核等级 */
|
|
2872
|
+
final_assessment_grade?: string;
|
|
2873
|
+
}
|
|
2874
|
+
export interface SearchCorehrV2ProbationQuery extends Pagination {
|
|
2875
|
+
/** 用户 ID 类型 */
|
|
2876
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2877
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
2878
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2879
|
+
}
|
|
2880
|
+
export interface SubmitCorehrV2ProbationRequest {
|
|
2881
|
+
/** 试用期人员的雇佣 ID */
|
|
2882
|
+
employment_id: string;
|
|
2883
|
+
/** 转正方式 */
|
|
2884
|
+
conversion_mode: 1 | 2;
|
|
2885
|
+
/** 实际结束日期,如果为空则默认填入试用期预计结束日期,填入日期需满足:试用期开始时间 <= 实际结束日期 <= 试用期预计结束日期 */
|
|
2886
|
+
actual_probation_end_date?: string;
|
|
2887
|
+
/** 发起方 */
|
|
2888
|
+
submission_type: 'self_submission' | 'system' | 'hr_submission';
|
|
2889
|
+
/** 发起人 ID,当发起方为 HR 时填写,为其他发起方时该字段会自动计算 */
|
|
2890
|
+
initiator_id?: string;
|
|
2891
|
+
/** 备注,当为直接转正时必填 */
|
|
2892
|
+
notes?: string;
|
|
2893
|
+
/** 员工自评 */
|
|
2894
|
+
self_review?: string;
|
|
2895
|
+
/** 自定义字段(试用期中如果有附件自定义字段,当前不支持使用「上传文件」接口写入) */
|
|
2896
|
+
custom_fields?: CustomFieldData[];
|
|
2897
|
+
}
|
|
2898
|
+
export interface SubmitCorehrV2ProbationQuery {
|
|
2899
|
+
/** 根据 client_token 是否一致来判断是否为同一请求 */
|
|
2900
|
+
client_token?: string;
|
|
2901
|
+
/** 用户 ID 类型 */
|
|
2902
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2903
|
+
}
|
|
2904
|
+
export interface WithdrawCorehrV2ProbationRequest {
|
|
2905
|
+
/** 试用期人员的雇佣 ID */
|
|
2906
|
+
employment_id: string;
|
|
2907
|
+
}
|
|
2908
|
+
export interface WithdrawCorehrV2ProbationQuery {
|
|
2909
|
+
/** 根据 client_token 是否一致来判断是否为同一请求 */
|
|
2910
|
+
client_token?: string;
|
|
2911
|
+
/** 用户 ID 类型 */
|
|
2912
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2913
|
+
}
|
|
2914
|
+
export interface CreateCorehrV2JobChangeRequest {
|
|
2915
|
+
/** 异动方式 */
|
|
2916
|
+
transfer_mode: 1 | 2;
|
|
2917
|
+
/** 雇员id */
|
|
2918
|
+
employment_id: string;
|
|
2919
|
+
/** 异动类型唯一标识 */
|
|
2920
|
+
transfer_type_unique_identifier: string;
|
|
2921
|
+
/** 异动流程ID */
|
|
2922
|
+
flow_id?: string;
|
|
2923
|
+
/** 生效日期 */
|
|
2924
|
+
effective_date: string;
|
|
2925
|
+
/** 异动详细信息 */
|
|
2926
|
+
transfer_info: CreateTransferInfo;
|
|
2927
|
+
/** 异动记录标识符 */
|
|
2928
|
+
transfer_key?: string;
|
|
2929
|
+
/** 异动发起人 ID */
|
|
2930
|
+
initiator_id?: string;
|
|
2931
|
+
/** 异动原因唯一标识 */
|
|
2932
|
+
transfer_reason_unique_identifier?: string;
|
|
2933
|
+
}
|
|
2934
|
+
export interface CreateCorehrV2JobChangeQuery {
|
|
2935
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
2936
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' | 'people_corehr_id';
|
|
2937
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
2938
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2939
|
+
}
|
|
2940
|
+
export interface QueryCorehrV1TransferTypeQuery {
|
|
2941
|
+
/** 异动类型状态 */
|
|
2942
|
+
active?: boolean;
|
|
2943
|
+
/** 异动类型唯一标识,多条时最多数量为10 */
|
|
2944
|
+
transfer_type_unique_identifier?: string[];
|
|
2945
|
+
}
|
|
2946
|
+
export interface QueryCorehrV1TransferReasonQuery {
|
|
2947
|
+
/** 异动原因状态 */
|
|
2948
|
+
active?: boolean;
|
|
2949
|
+
/** 异动原因唯一标识,多条时最多数量为10 */
|
|
2950
|
+
transfer_reason_unique_identifier?: string[];
|
|
2951
|
+
}
|
|
2952
|
+
export interface SearchCorehrV2JobChangeRequest {
|
|
2953
|
+
/** 雇员 ID 列表 */
|
|
2954
|
+
employment_ids?: string[];
|
|
2955
|
+
/** 异动记录 ID 列表 */
|
|
2956
|
+
job_change_ids?: string[];
|
|
2957
|
+
/** 异动状态,多个状态之间为「或」的关系 */
|
|
2958
|
+
statuses?: ('Approving' | 'Approved' | 'Transformed' | 'Rejected' | 'Cancelled' | 'NoNeedApproval')[];
|
|
2959
|
+
/** 异动生效日期 - 搜索范围开始,需要与搜索范围结束一同使用 */
|
|
2960
|
+
effective_date_start?: string;
|
|
2961
|
+
/** 异动生效日期 - 搜索范围结束 */
|
|
2962
|
+
effective_date_end?: string;
|
|
2963
|
+
/** 异动更新时间 - 搜索范围开始,需要与搜索范围结束一同使用 */
|
|
2964
|
+
updated_time_start?: string;
|
|
2965
|
+
/** 异动更新时间 - 搜索范围结束 */
|
|
2966
|
+
updated_time_end?: string;
|
|
2967
|
+
/** 新部门 ID 列表 */
|
|
2968
|
+
target_department_ids?: string[];
|
|
2969
|
+
}
|
|
2970
|
+
export interface SearchCorehrV2JobChangeQuery extends Pagination {
|
|
2971
|
+
/** 用户 ID 类型 */
|
|
2972
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
2973
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
2974
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
2975
|
+
}
|
|
2976
|
+
export interface RevokeCorehrV2JobChangeRequest {
|
|
2977
|
+
/** 操作人id */
|
|
2978
|
+
operator_id: string;
|
|
2979
|
+
}
|
|
2980
|
+
export interface RevokeCorehrV2JobChangeQuery {
|
|
2981
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
2982
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' | 'people_corehr_id';
|
|
2983
|
+
}
|
|
2984
|
+
export interface CreateCorehrV1JobChangeRequest {
|
|
2985
|
+
/** 异动方式 */
|
|
2986
|
+
transfer_mode: 1 | 2;
|
|
2987
|
+
/** 雇员id */
|
|
2988
|
+
employment_id: string;
|
|
2989
|
+
/** 异动类型唯一标识 */
|
|
2990
|
+
transfer_type_unique_identifier: string;
|
|
2991
|
+
/** 异动流程ID */
|
|
2992
|
+
flow_id?: string;
|
|
2993
|
+
/** 生效日期 */
|
|
2994
|
+
effective_date: string;
|
|
2995
|
+
/** 异动详细信息 */
|
|
2996
|
+
transfer_info: TransferInfo;
|
|
2997
|
+
/** 异动记录标识符 */
|
|
2998
|
+
transfer_key?: string;
|
|
2999
|
+
/** 异动发起人 ID */
|
|
3000
|
+
initiator_id?: string;
|
|
3001
|
+
}
|
|
3002
|
+
export interface CreateCorehrV1JobChangeQuery {
|
|
3003
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
3004
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' | 'people_corehr_id';
|
|
3005
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
3006
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
3007
|
+
}
|
|
3008
|
+
export interface QueryCorehrV1OffboardingRequest {
|
|
3009
|
+
/** 是否启用 */
|
|
3010
|
+
active?: boolean;
|
|
3011
|
+
/** 离职原因唯一标识列表,用于过滤,最大20个 */
|
|
3012
|
+
offboarding_reason_unique_identifier?: string[];
|
|
3013
|
+
}
|
|
3014
|
+
export interface SubmitV2CorehrV2OffboardingRequest {
|
|
3015
|
+
/** 离职方式 */
|
|
3016
|
+
offboarding_mode: 1 | 2;
|
|
3017
|
+
/** 雇员 id */
|
|
3018
|
+
employment_id: string;
|
|
3019
|
+
/** 离职日期 */
|
|
3020
|
+
offboarding_date: string;
|
|
3021
|
+
/** 离职原因 */
|
|
3022
|
+
offboarding_reason_unique_identifier: string;
|
|
3023
|
+
/** 离职原因说明 */
|
|
3024
|
+
offboarding_reason_explanation?: string;
|
|
3025
|
+
/** 操作发起人 ID(employment_id),为空默认为系统发起。注意:只有操作发起人可以撤销流程 */
|
|
3026
|
+
initiator_id?: string;
|
|
3027
|
+
/** 是否加入离职屏蔽名单 */
|
|
3028
|
+
add_block_list?: boolean;
|
|
3029
|
+
/** 屏蔽原因 */
|
|
3030
|
+
block_reason?: string;
|
|
3031
|
+
/** 屏蔽原因说明 */
|
|
3032
|
+
block_reason_explanation?: string;
|
|
3033
|
+
/** 自定义字段 */
|
|
3034
|
+
custom_fields?: ObjectFieldData[];
|
|
3035
|
+
/** 离职是否保留飞书账号 */
|
|
3036
|
+
retain_account?: boolean;
|
|
3037
|
+
/** 编制随人员一起调整 */
|
|
3038
|
+
is_transfer_with_workforce?: boolean;
|
|
3039
|
+
}
|
|
3040
|
+
export interface SubmitV2CorehrV2OffboardingQuery {
|
|
3041
|
+
/** 用户 ID 类型 */
|
|
3042
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3043
|
+
}
|
|
3044
|
+
export interface EditCorehrV2OffboardingRequest {
|
|
3045
|
+
/** 离职记录 ID */
|
|
3046
|
+
offboarding_id: string;
|
|
3047
|
+
/** 操作人雇佣 ID(employment_id),为空默认为系统操作。 */
|
|
3048
|
+
operator_id?: string;
|
|
3049
|
+
/** 编辑字段数据信息 */
|
|
3050
|
+
update_data: ObjectFieldData[];
|
|
3051
|
+
}
|
|
3052
|
+
export interface EditCorehrV2OffboardingQuery {
|
|
3053
|
+
/** 用户 ID 类型 */
|
|
3054
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3055
|
+
}
|
|
3056
|
+
export interface RevokeCorehrV2OffboardingRequest {
|
|
3057
|
+
/** 离职记录 ID */
|
|
3058
|
+
offboarding_id: string;
|
|
3059
|
+
/** 操作人雇佣 ID(employment_id),为空默认为系统操作。 */
|
|
3060
|
+
operator_id?: string;
|
|
3061
|
+
}
|
|
3062
|
+
export interface RevokeCorehrV2OffboardingQuery {
|
|
3063
|
+
/** 用户 ID 类型 */
|
|
3064
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3065
|
+
}
|
|
3066
|
+
export interface SearchCorehrV1OffboardingRequest {
|
|
3067
|
+
/** 雇佣 ID 列表,为空默认查询所有离职人员 */
|
|
3068
|
+
employment_ids?: string[];
|
|
3069
|
+
/** 离职审批发起时间-搜索范围开始,需要与搜索范围结束一同使用 */
|
|
3070
|
+
apply_initiating_time_start?: string;
|
|
3071
|
+
/** 离职审批发起时间 - 搜索范围结束 */
|
|
3072
|
+
apply_initiating_time_end?: string;
|
|
3073
|
+
/** 离职审批结束时间 - 搜索范围开始,需要与搜索范围结束一同使用 */
|
|
3074
|
+
apply_finished_time_start?: string;
|
|
3075
|
+
/** 离职审批结束时间 - 搜索范围结束 */
|
|
3076
|
+
apply_finished_time_end?: string;
|
|
3077
|
+
/** 期望离职日期-搜索范围开始,需要与搜索范围结束一同使用 */
|
|
3078
|
+
expected_offboarding_date_start?: string;
|
|
3079
|
+
/** 期望离职日期 - 搜索范围结束 */
|
|
3080
|
+
expected_offboarding_date_end?: string;
|
|
3081
|
+
/** 离职日期-搜索范围开始,需要与搜索范围结束一同使用 */
|
|
3082
|
+
offboarding_date_start?: string;
|
|
3083
|
+
/** 离职日期 - 搜索范围结束 */
|
|
3084
|
+
offboarding_date_end?: string;
|
|
3085
|
+
/** 离职状态,多个状态之间为「或」的关系 */
|
|
3086
|
+
statuses?: ('Approving' | 'Approved' | 'Offboarded' | 'Rejected' | 'Withdrawn' | 'NoNeedApproval')[];
|
|
3087
|
+
/** 离职原因列表 , 可以通过【查询员工离职原因列表】接口获取 ,查询时不返回下级原因相关的离职信息 */
|
|
3088
|
+
reasons?: string[];
|
|
3089
|
+
/** 离职原因(员工)列表 , 可以通过【查询员工离职原因列表】接口获取,查询时不返回下级原因相关的离职信息 */
|
|
3090
|
+
employee_reasons?: string[];
|
|
3091
|
+
}
|
|
3092
|
+
export interface SearchCorehrV1OffboardingQuery extends Pagination {
|
|
3093
|
+
/** 用户 ID 类型 */
|
|
3094
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3095
|
+
}
|
|
3096
|
+
export interface CreateCorehrV1ContractRequest {
|
|
3097
|
+
/** 合同开始日期 */
|
|
3098
|
+
effective_time: string;
|
|
3099
|
+
/** 实际结束日期 */
|
|
3100
|
+
expiration_time?: string;
|
|
3101
|
+
/** 雇员ID */
|
|
3102
|
+
employment_id: string;
|
|
3103
|
+
/** 合同类型 */
|
|
3104
|
+
contract_type: Enum;
|
|
3105
|
+
/** 甲方, 引用Company的ID */
|
|
3106
|
+
first_party_company_id: string;
|
|
3107
|
+
/** Person ID */
|
|
3108
|
+
person_id?: string;
|
|
3109
|
+
/** 自定义字段 */
|
|
3110
|
+
custom_fields?: ObjectFieldData[];
|
|
3111
|
+
/** 期限类型 */
|
|
3112
|
+
duration_type?: Enum;
|
|
3113
|
+
/** 合同结束日期 */
|
|
3114
|
+
contract_end_date?: string;
|
|
3115
|
+
/** 合同编号 */
|
|
3116
|
+
contract_number?: string;
|
|
3117
|
+
/** 签订类型,枚举值可通过文档【飞书人事枚举常量】合同期限类型(signing_type)枚举定义部分获得 */
|
|
3118
|
+
signing_type?: Enum;
|
|
3119
|
+
}
|
|
3120
|
+
export interface CreateCorehrV1ContractQuery {
|
|
3121
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
3122
|
+
client_token?: string;
|
|
3123
|
+
}
|
|
3124
|
+
export interface PatchCorehrV1ContractRequest {
|
|
3125
|
+
/** 合同开始日期 */
|
|
3126
|
+
effective_time?: string;
|
|
3127
|
+
/** 实际结束日期 */
|
|
3128
|
+
expiration_time?: string;
|
|
3129
|
+
/** 雇员ID */
|
|
3130
|
+
employment_id?: string;
|
|
3131
|
+
/** 合同类型 */
|
|
3132
|
+
contract_type?: Enum;
|
|
3133
|
+
/** 甲方, 引用Company的ID */
|
|
3134
|
+
first_party_company_id?: string;
|
|
3135
|
+
/** Person ID */
|
|
3136
|
+
person_id?: string;
|
|
3137
|
+
/** 自定义字段 */
|
|
3138
|
+
custom_fields?: ObjectFieldData[];
|
|
3139
|
+
/** 期限类型 */
|
|
3140
|
+
duration_type?: Enum;
|
|
3141
|
+
/** 合同结束日期 */
|
|
3142
|
+
contract_end_date?: string;
|
|
3143
|
+
/** 合同编号 */
|
|
3144
|
+
contract_number?: string;
|
|
3145
|
+
/** 签订类型,枚举值可通过文档【飞书人事枚举常量】合同期限类型(signing_type)枚举定义部分获得 */
|
|
3146
|
+
signing_type?: Enum;
|
|
3147
|
+
}
|
|
3148
|
+
export interface PatchCorehrV1ContractQuery {
|
|
3149
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
3150
|
+
client_token?: string;
|
|
3151
|
+
}
|
|
3152
|
+
export interface SearchCorehrV2ContractRequest {
|
|
3153
|
+
/** 雇佣 ID 列表 */
|
|
3154
|
+
employment_id_list?: string[];
|
|
3155
|
+
/** 合同ID列表 */
|
|
3156
|
+
contract_id_list?: string[];
|
|
3157
|
+
}
|
|
3158
|
+
export interface SearchCorehrV2ContractQuery extends Pagination {
|
|
3159
|
+
/** 用户 ID 类型 */
|
|
3160
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3161
|
+
}
|
|
3162
|
+
export interface BatchSaveCorehrV2WorkforcePlanDetailRowRequest {
|
|
3163
|
+
/** 编制规划id */
|
|
3164
|
+
workforce_plan_id: string;
|
|
3165
|
+
/** 编制规划的多个明细行 */
|
|
3166
|
+
items: WorkforcePlanDetailRow[];
|
|
3167
|
+
}
|
|
3168
|
+
export interface BatchDeleteCorehrV2WorkforcePlanDetailRowRequest {
|
|
3169
|
+
/** 编制规划id */
|
|
3170
|
+
workforce_plan_id: string;
|
|
3171
|
+
/** 编制规划的多个明细行 */
|
|
3172
|
+
items: WorkforcePlanDetailRow[];
|
|
3173
|
+
}
|
|
3174
|
+
export interface BatchSaveCorehrV2ReportDetailRowRequest {
|
|
3175
|
+
/** 编制规划id */
|
|
3176
|
+
workforce_plan_id: string;
|
|
3177
|
+
/** 集中填报id */
|
|
3178
|
+
centralized_reporting_project_id: string;
|
|
3179
|
+
/** 集中填报的一些填报行 */
|
|
3180
|
+
items: WorkforcePlanDetailRow[];
|
|
3181
|
+
}
|
|
3182
|
+
export interface BatchDeleteCorehrV2ReportDetailRowRequest {
|
|
3183
|
+
/** 编制规划id */
|
|
3184
|
+
workforce_plan_id: string;
|
|
3185
|
+
/** 集中填报id */
|
|
3186
|
+
centralized_reporting_project_id: string;
|
|
3187
|
+
/** 集中填报的一些填报行 */
|
|
3188
|
+
items: WorkforcePlanDetailRow[];
|
|
3189
|
+
}
|
|
3190
|
+
export interface ListCorehrV2WorkforcePlanQuery {
|
|
3191
|
+
/** 是否获取所有编制规划方案,true 所有编制规划方案列表,false 为仅获取当前生效的编制规划方案,默认为 false示例值:false */
|
|
3192
|
+
get_all_plan?: boolean;
|
|
3193
|
+
/** 是否只获取已启用的方案,true 获取已启用编制规划方案,false 获取所有编制规划方案,默认为 true示例值:true */
|
|
3194
|
+
active?: boolean;
|
|
3195
|
+
}
|
|
3196
|
+
export interface BatchCorehrV2WorkforcePlanDetailRequest {
|
|
3197
|
+
/** 编制规划方案ID,ID及详细信息可通过获取编制规划方案列表接口查询获得。查询编制规划明细信息时,编制规划方案ID必填,是否为集中填报项目设置为false,不填写集中填报项目ID(是否填写不影响返回结果) */
|
|
3198
|
+
workforce_plan_id?: string;
|
|
3199
|
+
/** 是否为集中填报项目。如果租户未使用集中填报功能,将此参数置空即可。如果查询集中填报明细,将此参数设置为true。 */
|
|
3200
|
+
is_centralized_reporting_project?: boolean;
|
|
3201
|
+
/** 编制规划集中填报项目ID,ID可通过访问集中填报页面,从URL中提取report_id参数。如果租户未使用集中填报功能,将此参数置空即可。查询集中填报信息时,集中填报项目ID必填,是否为集中填报项目设置为true,不填写编制规划方案ID(是否填写不影响返回结果) */
|
|
3202
|
+
centralized_reporting_project_id?: string;
|
|
3203
|
+
/** 部门 ID 列表,枚举值及详细信息可通过查询单个部门接口查询获得 */
|
|
3204
|
+
department_ids?: string[];
|
|
3205
|
+
/** 人员类型 ID 列表,枚举值及详细信息可通过查询单个人员类型接口查询获得 */
|
|
3206
|
+
employee_type_ids?: string[];
|
|
3207
|
+
/** 工作地点 ID 列表,枚举值及详细信息可通过查询单个地点接口查询获得 */
|
|
3208
|
+
work_location_ids?: string[];
|
|
3209
|
+
/** 序列 ID 列表,枚举值及详细信息可通过查询单个序列接口查询获得 */
|
|
3210
|
+
job_family_ids?: string[];
|
|
3211
|
+
/** 职级 ID 列表,枚举值及详细信息可通过查询单个职级接口查询获得 */
|
|
3212
|
+
job_level_ids?: string[];
|
|
3213
|
+
/** 职务 ID 列表,枚举值及详细信息可通过查询单个职务接口查询获得 */
|
|
3214
|
+
job_ids?: string[];
|
|
3215
|
+
/** 成本中心 ID 列表,可以通过搜索成本中心信息接口获取对应的成本中心信息 */
|
|
3216
|
+
cost_center_ids?: string[];
|
|
3217
|
+
}
|
|
3218
|
+
export interface CreateCorehrV1LeaveGrantingRecordRequest {
|
|
3219
|
+
/** 假期类型 ID,枚举值可通过【获取假期类型列表】接口获取(若假期类型下存在假期子类,此处仅支持传入假期子类的 ID) */
|
|
3220
|
+
leave_type_id: string;
|
|
3221
|
+
/** 员工 ID */
|
|
3222
|
+
employment_id: string;
|
|
3223
|
+
/** 授予数量 */
|
|
3224
|
+
granting_quantity: string;
|
|
3225
|
+
/** 授予时长单位可选值有:- 1: 天- 2: 小时 */
|
|
3226
|
+
granting_unit: number;
|
|
3227
|
+
/** 生效时间 */
|
|
3228
|
+
effective_date: string;
|
|
3229
|
+
/** 失效时间 */
|
|
3230
|
+
expiration_date?: string;
|
|
3231
|
+
/** 是否参与折算 */
|
|
3232
|
+
section_type?: number;
|
|
3233
|
+
/** 授予原因 */
|
|
3234
|
+
reason: I18n[];
|
|
3235
|
+
/** 自定义外部 ID,可用于避免数据重复写入(不能超过 64 字符) */
|
|
3236
|
+
external_id?: string;
|
|
3237
|
+
}
|
|
3238
|
+
export interface CreateCorehrV1LeaveGrantingRecordQuery {
|
|
3239
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
3240
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3241
|
+
}
|
|
3242
|
+
export interface LeaveTypesCorehrV1LeaveQuery extends Pagination {
|
|
3243
|
+
/** 假期类型状态(不传则为全部)可选值有:- 1:已启用- 2:已停用 */
|
|
3244
|
+
status?: string;
|
|
3245
|
+
/** 用户 ID 类型 */
|
|
3246
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3247
|
+
}
|
|
3248
|
+
export interface LeaveBalancesCorehrV1LeaveQuery extends Pagination {
|
|
3249
|
+
/** 查询截止日期,即截止到某天余额数据的日期(不传则默认为当天) */
|
|
3250
|
+
as_of_date?: string;
|
|
3251
|
+
/** 员工 ID 列表,最大 100 个(不传则默认查询全部员工) */
|
|
3252
|
+
employment_id_list?: string[];
|
|
3253
|
+
/** 用户 ID 类型 */
|
|
3254
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3255
|
+
/** 查询时区 */
|
|
3256
|
+
time_zone?: string;
|
|
3257
|
+
/** 是否获取离职折算字段 */
|
|
3258
|
+
include_offboard?: boolean;
|
|
3259
|
+
}
|
|
3260
|
+
export interface LeaveRequestHistoryCorehrV1LeaveQuery extends Pagination {
|
|
3261
|
+
/** 员工 ID 列表,最大 100 个(不传则默认查询全部员工) */
|
|
3262
|
+
employment_id_list?: string[];
|
|
3263
|
+
/** 休假发起人 ID 列表,最大 100 个 */
|
|
3264
|
+
initiator_id_list?: string[];
|
|
3265
|
+
/** 请假记录的状态可选值有:- 1:已通过- 2:审批中- 3:审批中(更正)- 4:审批中(取消休假)- 5:审批中(返岗)- 6:已返岗- 7:已拒绝- 8:已取消- 9:已撤回 */
|
|
3266
|
+
leave_request_status?: string[];
|
|
3267
|
+
/** 假期类型 ID 列表,枚举值可通过【获取假期类型列表】接口获取 */
|
|
3268
|
+
leave_type_id_list?: string[];
|
|
3269
|
+
/** 休假开始时间晚于等于的日期 */
|
|
3270
|
+
leave_start_date_min?: string;
|
|
3271
|
+
/** 休假开始时间早于等于的日期 */
|
|
3272
|
+
leave_start_date_max?: string;
|
|
3273
|
+
/** 休假结束时间晚于等于的日期 */
|
|
3274
|
+
leave_end_date_min?: string;
|
|
3275
|
+
/** 休假结束时间早于等于的日期 */
|
|
3276
|
+
leave_end_date_max?: string;
|
|
3277
|
+
/** 休假发起时间晚于等于的日期 */
|
|
3278
|
+
leave_submit_date_min?: string;
|
|
3279
|
+
/** 休假发起时间早于等于的日期 */
|
|
3280
|
+
leave_submit_date_max?: string;
|
|
3281
|
+
/** 用户 ID 类型 */
|
|
3282
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3283
|
+
/** 请假记录更新时间晚于等于的时间 */
|
|
3284
|
+
leave_update_time_min?: string;
|
|
3285
|
+
/** 请假记录更新时间早于等于的时间 */
|
|
3286
|
+
leave_update_time_max?: string;
|
|
3287
|
+
/** 是否返回请假详情,若为true,将在每条请假记录的details字段返回请假详情 */
|
|
3288
|
+
return_detail?: boolean;
|
|
3289
|
+
/** 指定过滤长/短假类型,0表示不过滤,1表示仅获取短假,2表示仅获取长假, 默认0 */
|
|
3290
|
+
leave_term_type?: number;
|
|
3291
|
+
/** 请假记录所在时区 */
|
|
3292
|
+
time_zone?: string;
|
|
3293
|
+
/** 请假记录数据源,1表示中国大陆休假,2表示海外休假,不传或0表示不过滤 */
|
|
3294
|
+
data_source?: number;
|
|
3295
|
+
/** 请假记录DB更新时间晚于等于的时间 */
|
|
3296
|
+
db_update_time_min?: string;
|
|
3297
|
+
/** 请假记录DB更新时间早于等于的时间 */
|
|
3298
|
+
db_update_time_max?: string;
|
|
3299
|
+
/** WorkDay专用 是否返回0值的请假记录,若为true,将返回0值的请假记录 */
|
|
3300
|
+
wd_need_amount_zero_records?: boolean;
|
|
3301
|
+
/** WorkDay专用 是否拒绝和取消的请假记录,若为true,将返回拒绝和取消的请假记录 */
|
|
3302
|
+
wd_need_denied_and_canceled_record?: boolean;
|
|
3303
|
+
/** WorkDay专用 扣薪类型, 1不参与算薪 2影响算薪 3不影响算薪 */
|
|
3304
|
+
wd_paid_type?: number;
|
|
3305
|
+
}
|
|
3306
|
+
export interface WorkCalendarCorehrV1LeaveRequest {
|
|
3307
|
+
/** 工作日历ID列表 */
|
|
3308
|
+
wk_calendar_ids: string[];
|
|
3309
|
+
/** 工作日历ID大于 */
|
|
3310
|
+
wk_calendar_id_gt?: string;
|
|
3311
|
+
/** 分页、排序等选项 */
|
|
3312
|
+
wk_option?: WkOption;
|
|
3313
|
+
/** 是否只返回启用的工作日历,不填默认true */
|
|
3314
|
+
only_enable?: boolean;
|
|
3315
|
+
}
|
|
3316
|
+
export interface CalendarByScopeCorehrV1LeaveQuery {
|
|
3317
|
+
/** 用户所属部门的ID列表 */
|
|
3318
|
+
wk_department_id?: string;
|
|
3319
|
+
/** 国家/地区 ID */
|
|
3320
|
+
wk_country_region_id?: string;
|
|
3321
|
+
/** 人员类型 */
|
|
3322
|
+
wk_employee_type_id?: string;
|
|
3323
|
+
/** 工作地点 */
|
|
3324
|
+
wk_work_location_id?: string;
|
|
3325
|
+
/** 工时制度 */
|
|
3326
|
+
wk_working_hours_type_id?: string;
|
|
3327
|
+
/** 职务序列 */
|
|
3328
|
+
wk_job_family_id?: string;
|
|
3329
|
+
/** 公司 ID */
|
|
3330
|
+
wk_company_id?: string;
|
|
3331
|
+
}
|
|
3332
|
+
export interface WorkCalendarDateCorehrV1LeaveRequest {
|
|
3333
|
+
/** 工作日历WKID列表,最多100 */
|
|
3334
|
+
wk_calendar_ids: string[];
|
|
3335
|
+
/** 日期,格式:"2006-01-02",最多50个 */
|
|
3336
|
+
dates?: string[];
|
|
3337
|
+
/** 日期范围-开始日期,格式:"2006-01-02" */
|
|
3338
|
+
begin_date?: string;
|
|
3339
|
+
/** 日期范围-结束日期(含),格式:"2006-01-02" */
|
|
3340
|
+
end_date?: string;
|
|
3341
|
+
/** 分页 */
|
|
3342
|
+
offset?: number;
|
|
3343
|
+
/** 分页大小 */
|
|
3344
|
+
limit?: number;
|
|
3345
|
+
/** 日期id,与其他筛选参数互斥,传了该参数,其他筛选参数不起效 */
|
|
3346
|
+
ids?: string[];
|
|
3347
|
+
}
|
|
3348
|
+
export interface QueryCorehrV1AuthorizationQuery extends Pagination {
|
|
3349
|
+
/** 员工ID列表,最大100个(不传则默认查询全部员工) */
|
|
3350
|
+
employment_id_list?: string[];
|
|
3351
|
+
/** 角色 ID 列表,最大 100 个 */
|
|
3352
|
+
role_id_list?: string[];
|
|
3353
|
+
/** 用户 ID 类型 */
|
|
3354
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3355
|
+
/** 授权时间大于 */
|
|
3356
|
+
updated_at_gte?: string;
|
|
3357
|
+
/** 授权时间小于 */
|
|
3358
|
+
updated_at_lte?: string;
|
|
3359
|
+
}
|
|
3360
|
+
export interface GetByParamCorehrV1AuthorizationQuery {
|
|
3361
|
+
/** 雇员 ID */
|
|
3362
|
+
employment_id: string;
|
|
3363
|
+
/** 用户 ID 类型 */
|
|
3364
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3365
|
+
}
|
|
3366
|
+
export interface AddRoleAssignCorehrV1AuthorizationRequest {
|
|
3367
|
+
/** 授权 */
|
|
3368
|
+
assigned_organization_items: AssignedOrganizationWithCode[][];
|
|
3369
|
+
}
|
|
3370
|
+
export interface AddRoleAssignCorehrV1AuthorizationQuery {
|
|
3371
|
+
/** 雇员 ID */
|
|
3372
|
+
employment_id: string;
|
|
3373
|
+
/** 用户 ID 类型 */
|
|
3374
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3375
|
+
/** 角色 ID */
|
|
3376
|
+
role_id: string;
|
|
3377
|
+
}
|
|
3378
|
+
export interface UpdateRoleAssignCorehrV1AuthorizationRequest {
|
|
3379
|
+
/** 授权 */
|
|
3380
|
+
assigned_organization_items: AssignedOrganizationWithCode[][];
|
|
3381
|
+
}
|
|
3382
|
+
export interface UpdateRoleAssignCorehrV1AuthorizationQuery {
|
|
3383
|
+
/** 雇员 ID */
|
|
3384
|
+
employment_id: string;
|
|
3385
|
+
/** 用户 ID 类型 */
|
|
3386
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3387
|
+
/** 角色 ID */
|
|
3388
|
+
role_id: string;
|
|
3389
|
+
}
|
|
3390
|
+
export interface RemoveRoleAssignCorehrV1AuthorizationQuery {
|
|
3391
|
+
/** 雇员 ID */
|
|
3392
|
+
employment_id: string;
|
|
3393
|
+
/** 用户 ID 类型 */
|
|
3394
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3395
|
+
/** 角色 ID */
|
|
3396
|
+
role_id: string;
|
|
3397
|
+
}
|
|
3398
|
+
export interface BatchGetCorehrV2EmployeesBpRequest {
|
|
3399
|
+
/** 员工雇佣 ID */
|
|
3400
|
+
employment_ids: string[];
|
|
3401
|
+
/** 是否获取全部 BP,true 为获取员工所在部门及来自上级部门的全部 HRBP 和属地 BP,false 为仅获取员工的直属 HRBP 和属地 BP(当员工所在部门、属地无 BP 时,会上钻找到最近的 BP),默认为 false */
|
|
3402
|
+
get_all?: boolean;
|
|
3403
|
+
}
|
|
3404
|
+
export interface BatchGetCorehrV2EmployeesBpQuery {
|
|
3405
|
+
/** 用户 ID 类型 */
|
|
3406
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3407
|
+
}
|
|
3408
|
+
export interface GetByDepartmentCorehrV2BpRequest {
|
|
3409
|
+
/** 部门 ID */
|
|
3410
|
+
department_id: string;
|
|
3411
|
+
}
|
|
3412
|
+
export interface GetByDepartmentCorehrV2BpQuery {
|
|
3413
|
+
/** 用户 ID 类型 */
|
|
3414
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3415
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
3416
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
3417
|
+
}
|
|
3418
|
+
export interface QueryCorehrV1SecurityGroupRequest {
|
|
3419
|
+
/** 角色列表,一次最多支持查询 50 个 */
|
|
3420
|
+
item_list: BpRoleOrganization[];
|
|
3421
|
+
/** 授权时间大于 */
|
|
3422
|
+
updated_at_gte?: string;
|
|
3423
|
+
/** 授权时间小于 */
|
|
3424
|
+
updated_at_lte?: string;
|
|
3425
|
+
}
|
|
3426
|
+
export interface QueryCorehrV1SecurityGroupQuery {
|
|
3427
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
3428
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
3429
|
+
}
|
|
3430
|
+
export interface ListCorehrV2BpQuery extends Pagination {
|
|
3431
|
+
/** 用户 ID 类型 */
|
|
3432
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3433
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
3434
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
3435
|
+
}
|
|
3436
|
+
export interface SearchCorehrV1AssignedUserRequest {
|
|
3437
|
+
/** 角色 ID,仅支持组织类角色, 角色 ID 可通过【批量获取角色列表】接口获取 */
|
|
3438
|
+
role_id: string;
|
|
3439
|
+
/** 管理范围信息 */
|
|
3440
|
+
management_scope_list: ManagementScope[];
|
|
3441
|
+
/** 查找方式可选值有:- 1:只查找指定 部门/工作地点/公司/社保城市,如无授权信息则返回为空- 2:当指定的 部门/工作地点/公司/社保城市 无授权信息,向上查找第一个授权记录并直接返回 */
|
|
3442
|
+
search_method: string;
|
|
3443
|
+
/** 页码标识,获取第一页传空,每次查询会返回下一页的page_token */
|
|
3444
|
+
page_token?: string;
|
|
3445
|
+
/** 每页获取记录数量,最大100 */
|
|
3446
|
+
page_size: string;
|
|
3447
|
+
}
|
|
3448
|
+
export interface SearchCorehrV1AssignedUserQuery {
|
|
3449
|
+
/** 用户 ID 类型 */
|
|
3450
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3451
|
+
}
|
|
3452
|
+
export interface ListCorehrV2ProcessQuery extends Pagination {
|
|
3453
|
+
/** 查询流程状态列表。 */
|
|
3454
|
+
statuses?: number[];
|
|
3455
|
+
/** 查询开始时间(unix毫秒时间戳),闭区间,开始时间和结束时间跨度不能超过31天 */
|
|
3456
|
+
modify_time_from: string;
|
|
3457
|
+
/** 1. 任务查询结束时间,闭区间 2. 单位:ms。从1970年1月1日(UTC/GMT的午夜) 开始经过的毫秒数 3. 注意:开始时间和结束时间跨度不能超过31天 4. 示例值:1719549169735 */
|
|
3458
|
+
modify_time_to: string;
|
|
3459
|
+
/** 流程定义ID */
|
|
3460
|
+
flow_definition_id?: string;
|
|
3461
|
+
}
|
|
3462
|
+
export interface GetCorehrV2ProcessQuery {
|
|
3463
|
+
/** 用户 ID 类型 */
|
|
3464
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3465
|
+
}
|
|
3466
|
+
export interface GetCorehrV2ProcessFormVariableDataQuery {
|
|
3467
|
+
/** 用户 ID 类型 */
|
|
3468
|
+
user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id';
|
|
3469
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
3470
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
3471
|
+
}
|
|
3472
|
+
export interface UpdateCorehrV2ProcessRevokeRequest {
|
|
3473
|
+
/** 按照指定的用户ID类型传递对应的用户ID。 */
|
|
3474
|
+
user_id?: string;
|
|
3475
|
+
/** 原因 */
|
|
3476
|
+
reason?: string;
|
|
3477
|
+
/** true-系统身份操作 */
|
|
3478
|
+
system_user?: boolean;
|
|
3479
|
+
}
|
|
3480
|
+
export interface UpdateCorehrV2ProcessRevokeQuery {
|
|
3481
|
+
/** 用户 ID 类型 */
|
|
3482
|
+
user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id';
|
|
3483
|
+
}
|
|
3484
|
+
export interface UpdateCorehrV2ProcessWithdrawRequest {
|
|
3485
|
+
/** 按照指定的用户ID类型传递对应的用户ID。 */
|
|
3486
|
+
user_id?: string;
|
|
3487
|
+
/** 原因 */
|
|
3488
|
+
reason?: string;
|
|
3489
|
+
/** true-系统身份操作 */
|
|
3490
|
+
system_user?: boolean;
|
|
3491
|
+
}
|
|
3492
|
+
export interface UpdateCorehrV2ProcessWithdrawQuery {
|
|
3493
|
+
/** 用户 ID 类型 */
|
|
3494
|
+
user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id';
|
|
3495
|
+
}
|
|
3496
|
+
export interface ListCorehrV2ApproverQuery extends Pagination {
|
|
3497
|
+
/** 用户 ID 类型 */
|
|
3498
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3499
|
+
/** 按user_id_type类型传递。如果system_approval为false,则必填。否则非必填。 */
|
|
3500
|
+
user_id: string;
|
|
3501
|
+
/** 任务状态 */
|
|
3502
|
+
approver_status?: -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 12 | 14 | 16;
|
|
3503
|
+
}
|
|
3504
|
+
export interface UpdateCorehrV2ProcessApproverRequest {
|
|
3505
|
+
/** 将审批任务修改为同意/拒绝 */
|
|
3506
|
+
status: 2 | 3;
|
|
3507
|
+
/** 按user_id_type类型传递。如果system_approval为false,则必填。否则非必填。 */
|
|
3508
|
+
user_id?: string;
|
|
3509
|
+
/** true - 使用系统身份审批 */
|
|
3510
|
+
system_approval?: boolean;
|
|
3511
|
+
/** 通过原因,长度限制为500 */
|
|
3512
|
+
reason?: string;
|
|
3513
|
+
/** 表单数据 */
|
|
3514
|
+
field_values_v2?: ProcessFormVariableV2[];
|
|
3515
|
+
}
|
|
3516
|
+
export interface UpdateCorehrV2ProcessApproverQuery {
|
|
3517
|
+
/** 用户 ID 类型 */
|
|
3518
|
+
user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id';
|
|
3519
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
3520
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
3521
|
+
}
|
|
3522
|
+
export interface UpdateCorehrV2ProcessExtraRequest {
|
|
3523
|
+
/** 操作人,当system_user为true时,可以不传值 */
|
|
3524
|
+
operator?: string;
|
|
3525
|
+
/** 流程节点id,与approver_id二选一传入,都传以node_id为准 */
|
|
3526
|
+
node_id?: string;
|
|
3527
|
+
/** 审批任务id,与node_id二选一传入,都传以node_id为准 */
|
|
3528
|
+
approver_id?: string;
|
|
3529
|
+
/** 加签方式 */
|
|
3530
|
+
extra_type: 0 | 1 | 2;
|
|
3531
|
+
/** 多人加签时的审批方式 */
|
|
3532
|
+
approval_type?: 0 | 1;
|
|
3533
|
+
/** 加签人员id列表 */
|
|
3534
|
+
extra_user_ids: string[];
|
|
3535
|
+
/** 备注 */
|
|
3536
|
+
remark?: string;
|
|
3537
|
+
/** true-以系统身份操作 */
|
|
3538
|
+
system_user?: boolean;
|
|
3539
|
+
}
|
|
3540
|
+
export interface UpdateCorehrV2ProcessExtraQuery {
|
|
3541
|
+
/** 用户 ID 类型 */
|
|
3542
|
+
user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id';
|
|
3543
|
+
}
|
|
3544
|
+
export interface UpdateCorehrV2ProcessTransferRequest {
|
|
3545
|
+
/** 操作人,当system_user为true,可不传值 */
|
|
3546
|
+
operator?: string;
|
|
3547
|
+
/** 被转交人id */
|
|
3548
|
+
to_user_id: string;
|
|
3549
|
+
/** 待转交审批任务id列表 */
|
|
3550
|
+
approver_ids: string[];
|
|
3551
|
+
/** 备注 */
|
|
3552
|
+
remark?: string;
|
|
3553
|
+
/** true-以系统身份操作 */
|
|
3554
|
+
system_user?: boolean;
|
|
3555
|
+
}
|
|
3556
|
+
export interface UpdateCorehrV2ProcessTransferQuery {
|
|
3557
|
+
/** 用户 ID 类型 */
|
|
3558
|
+
user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id';
|
|
3559
|
+
}
|
|
3560
|
+
export interface MatchCorehrV1CompensationStandardQuery {
|
|
3561
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
3562
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3563
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
3564
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
3565
|
+
/** 雇员ID */
|
|
3566
|
+
employment_id: string;
|
|
3567
|
+
/** 薪资标准的关联对象,项目或者指标 */
|
|
3568
|
+
reference_object_api?: 'cpst_item' | 'cpst_indicator';
|
|
3569
|
+
/** 薪资标准关联对象ID */
|
|
3570
|
+
reference_object_id: string;
|
|
3571
|
+
/** 部门ID */
|
|
3572
|
+
department_id?: string;
|
|
3573
|
+
/** 工作地点ID */
|
|
3574
|
+
work_location_id?: string;
|
|
3575
|
+
/** 公司ID */
|
|
3576
|
+
company_id?: string;
|
|
3577
|
+
/** 职务序列ID */
|
|
3578
|
+
job_family_id?: string;
|
|
3579
|
+
/** 职级ID */
|
|
3580
|
+
job_level_id?: string;
|
|
3581
|
+
/** 人员类型ID */
|
|
3582
|
+
employee_type_id?: string;
|
|
3583
|
+
/** 招聘类型 */
|
|
3584
|
+
recruitment_type?: 'experienced_professionals' | 'recent_graduates' | 'routine_intern';
|
|
3585
|
+
/** 定调薪原因ID */
|
|
3586
|
+
cpst_change_reason_id?: string;
|
|
3587
|
+
/** 薪资方案ID */
|
|
3588
|
+
cpst_plan_id?: string;
|
|
3589
|
+
/** 薪级薪等ID */
|
|
3590
|
+
cpst_salary_level_id?: string;
|
|
3591
|
+
/** 生效时间 */
|
|
3592
|
+
effective_time?: string;
|
|
3593
|
+
}
|
|
3594
|
+
export interface ListCorehrV1SubregionQuery extends Pagination {
|
|
3595
|
+
/** 省份/行政区id,填写后只查询该省份/行政区下的城市/区域 */
|
|
3596
|
+
subdivision_id?: string;
|
|
3597
|
+
}
|
|
3598
|
+
export interface ListCorehrV1SubdivisionQuery extends Pagination {
|
|
3599
|
+
/** 国家/地区id,填写后只查询该国家/地区下的省份/行政区 */
|
|
3600
|
+
country_region_id?: string;
|
|
3601
|
+
}
|
|
3602
|
+
export interface PatchCorehrV1DepartmentRequest {
|
|
3603
|
+
/** 实体在CoreHR内部的唯一键 */
|
|
3604
|
+
id?: string;
|
|
3605
|
+
/** 子类型 */
|
|
3606
|
+
sub_type?: Enum;
|
|
3607
|
+
/** 部门负责人 */
|
|
3608
|
+
manager?: string;
|
|
3609
|
+
/** 是否保密 */
|
|
3610
|
+
is_confidential?: boolean;
|
|
3611
|
+
/** 层级关系,内层字段见实体 */
|
|
3612
|
+
hiberarchy_common?: HiberarchyCommon;
|
|
3613
|
+
/** 生效时间 */
|
|
3614
|
+
effective_time: string;
|
|
3615
|
+
/** 自定义字段 */
|
|
3616
|
+
custom_fields?: ObjectFieldData[];
|
|
3617
|
+
/** 成本中心id */
|
|
3618
|
+
cost_center_id?: string;
|
|
3619
|
+
/** 是否使用职务 */
|
|
3620
|
+
staffing_model?: Enum;
|
|
3621
|
+
}
|
|
3622
|
+
export interface PatchCorehrV1DepartmentQuery {
|
|
3623
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
3624
|
+
client_token?: string;
|
|
3625
|
+
/** 用户 ID 类型 */
|
|
3626
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3627
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
3628
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
3629
|
+
}
|
|
3630
|
+
export interface GetCorehrV1DepartmentQuery {
|
|
3631
|
+
/** 用户 ID 类型 */
|
|
3632
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3633
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
3634
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
3635
|
+
}
|
|
3636
|
+
export interface ListCorehrV1JobQuery extends Pagination {
|
|
3637
|
+
/** 名称 */
|
|
3638
|
+
name?: string;
|
|
3639
|
+
/** 语言 */
|
|
3640
|
+
query_language?: string;
|
|
3641
|
+
}
|
|
3642
|
+
export interface ListCorehrV1DepartmentQuery extends Pagination {
|
|
3643
|
+
/** 部门ID列表 */
|
|
3644
|
+
department_id_list?: string[];
|
|
3645
|
+
/** 部门名称列表,需精确匹配 */
|
|
3646
|
+
name_list?: string[];
|
|
3647
|
+
/** 用户 ID 类型 */
|
|
3648
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3649
|
+
/** 此次调用中使用的部门 ID 类型 */
|
|
3650
|
+
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
|
|
3651
|
+
}
|
|
3652
|
+
export interface PatchCorehrV1PersonRequest {
|
|
3653
|
+
/** 姓名 */
|
|
3654
|
+
name_list?: PersonName[];
|
|
3655
|
+
/** 性别 */
|
|
3656
|
+
gender?: Enum;
|
|
3657
|
+
/** 出生日期 */
|
|
3658
|
+
date_of_birth?: string;
|
|
3659
|
+
/** 国籍 ID,该字段已作废,请使用 nationality_id_v2 字段 */
|
|
3660
|
+
nationality_id?: string;
|
|
3661
|
+
/** 民族 / 种族 */
|
|
3662
|
+
race?: Enum;
|
|
3663
|
+
/** 婚姻状况 */
|
|
3664
|
+
marital_status?: Enum;
|
|
3665
|
+
/** 电话 */
|
|
3666
|
+
phone_list?: Phone[];
|
|
3667
|
+
/** 地址 */
|
|
3668
|
+
address_list?: Address[];
|
|
3669
|
+
/** 邮件 */
|
|
3670
|
+
email_list?: Email[];
|
|
3671
|
+
/** 工作履历 */
|
|
3672
|
+
work_experience_list?: WorkExperience[];
|
|
3673
|
+
/** 教育经历 */
|
|
3674
|
+
education_list?: Education[];
|
|
3675
|
+
/** 银行账号 */
|
|
3676
|
+
bank_account_list?: BankAccount[];
|
|
3677
|
+
/** 证件号码 */
|
|
3678
|
+
national_id_list?: NationalId[];
|
|
3679
|
+
/** 亲属 */
|
|
3680
|
+
dependent_list?: Dependent[];
|
|
3681
|
+
/** 紧急联系人 */
|
|
3682
|
+
emergency_contact_list?: EmergencyContact[];
|
|
3683
|
+
/** 进入工作地的日期 */
|
|
3684
|
+
date_entered_workforce?: string;
|
|
3685
|
+
/** 头像资源的id */
|
|
3686
|
+
profile_image_id?: string;
|
|
3687
|
+
/** 自定义字段 */
|
|
3688
|
+
custom_fields?: ObjectFieldData[];
|
|
3689
|
+
/** 纳税身份信息 */
|
|
3690
|
+
resident_tax_id_list?: string[];
|
|
3691
|
+
/** 年龄 */
|
|
3692
|
+
age?: number;
|
|
3693
|
+
/** 个人资料 */
|
|
3694
|
+
personal_profile?: PersonalProfile[];
|
|
3695
|
+
}
|
|
3696
|
+
export interface PatchCorehrV1PersonQuery {
|
|
3697
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
3698
|
+
client_token?: string;
|
|
3699
|
+
}
|
|
3700
|
+
export interface CreateCorehrV1PersonRequest {
|
|
3701
|
+
/** 姓名 */
|
|
3702
|
+
name_list: PersonName[];
|
|
3703
|
+
/** 性别 */
|
|
3704
|
+
gender?: Enum;
|
|
3705
|
+
/** 出生日期 */
|
|
3706
|
+
date_of_birth?: string;
|
|
3707
|
+
/** 国籍 ID,该字段已作废,请使用 nationality_id_v2 字段 */
|
|
3708
|
+
nationality_id?: string;
|
|
3709
|
+
/** 民族 / 种族 */
|
|
3710
|
+
race?: Enum;
|
|
3711
|
+
/** 婚姻状况 */
|
|
3712
|
+
marital_status?: Enum;
|
|
3713
|
+
/** 电话 */
|
|
3714
|
+
phone_list?: Phone[];
|
|
3715
|
+
/** 地址 */
|
|
3716
|
+
address_list?: Address[];
|
|
3717
|
+
/** 邮件 */
|
|
3718
|
+
email_list?: Email[];
|
|
3719
|
+
/** 工作履历 */
|
|
3720
|
+
work_experience_list?: WorkExperience[];
|
|
3721
|
+
/** 教育经历 */
|
|
3722
|
+
education_list?: Education[];
|
|
3723
|
+
/** 银行账号 */
|
|
3724
|
+
bank_account_list?: BankAccount[];
|
|
3725
|
+
/** 证件号码 */
|
|
3726
|
+
national_id_list?: NationalId[];
|
|
3727
|
+
/** 亲属 */
|
|
3728
|
+
dependent_list?: Dependent[];
|
|
3729
|
+
/** 紧急联系人 */
|
|
3730
|
+
emergency_contact_list?: EmergencyContact[];
|
|
3731
|
+
/** 进入工作地的日期 */
|
|
3732
|
+
date_entered_workforce?: string;
|
|
3733
|
+
/** 头像资源的id */
|
|
3734
|
+
profile_image_id?: string;
|
|
3735
|
+
/** 自定义字段 */
|
|
3736
|
+
custom_fields?: ObjectFieldData[];
|
|
3737
|
+
/** 纳税身份信息 */
|
|
3738
|
+
resident_tax_id_list?: string[];
|
|
3739
|
+
/** 年龄 */
|
|
3740
|
+
age?: number;
|
|
3741
|
+
/** 个人资料 */
|
|
3742
|
+
personal_profile?: PersonalProfile[];
|
|
3743
|
+
}
|
|
3744
|
+
export interface CreateCorehrV1PersonQuery {
|
|
3745
|
+
/** 根据client_token是否一致来判断是否为同一请求 */
|
|
3746
|
+
client_token?: string;
|
|
3747
|
+
}
|
|
3748
|
+
export interface GetCorehrV1PersonQuery {
|
|
3749
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
3750
|
+
user_id_type?: 'people_employee_id';
|
|
3751
|
+
}
|
|
3752
|
+
export interface SubmitCorehrV1OffboardingRequest {
|
|
3753
|
+
/** 离职方式 */
|
|
3754
|
+
offboarding_mode: 1;
|
|
3755
|
+
/** 雇员 id */
|
|
3756
|
+
employment_id: string;
|
|
3757
|
+
/** 离职日期 */
|
|
3758
|
+
offboarding_date: string;
|
|
3759
|
+
/** 离职原因,可通过接口[【查询员工离职原因列表】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/offboarding/query)获取 */
|
|
3760
|
+
offboarding_reason_unique_identifier: string;
|
|
3761
|
+
/** 离职原因说明,长度限制6000 */
|
|
3762
|
+
offboarding_reason_explanation?: string;
|
|
3763
|
+
/** 操作发起人 ID(employment_id),为空默认为系统发起。注意:只有操作发起人可以撤销流程 */
|
|
3764
|
+
initiator_id?: string;
|
|
3765
|
+
/** 是否加入离职屏蔽名单 */
|
|
3766
|
+
add_block_list?: boolean;
|
|
3767
|
+
/** 屏蔽原因 */
|
|
3768
|
+
block_reason?: string;
|
|
3769
|
+
/** 屏蔽原因说明 */
|
|
3770
|
+
block_reason_explanation?: string;
|
|
3771
|
+
/** 自定义字段 */
|
|
3772
|
+
custom_fields?: ObjectFieldData[];
|
|
3773
|
+
}
|
|
3774
|
+
export interface SubmitCorehrV1OffboardingQuery {
|
|
3775
|
+
/** 用户 ID 类型 */
|
|
3776
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
|
|
3777
|
+
}
|
|
3778
|
+
export interface QueryCorehrV1CustomFieldResponse {
|
|
3779
|
+
/** 自定义字段列表 */
|
|
3780
|
+
items?: CustomField[];
|
|
3781
|
+
}
|
|
3782
|
+
export interface GetByParamCorehrV1CustomFieldResponse {
|
|
3783
|
+
/** 自定义字段详情 */
|
|
3784
|
+
data?: CustomField;
|
|
3785
|
+
}
|
|
3786
|
+
export interface AddEnumOptionCorehrV1CommonDataMetaDataResponse {
|
|
3787
|
+
/** 枚举字段 API name */
|
|
3788
|
+
enum_field_api_name?: string;
|
|
3789
|
+
/** 枚举全部选项列表 */
|
|
3790
|
+
enum_field_options?: EnumFieldOption[];
|
|
3791
|
+
}
|
|
3792
|
+
export interface EditEnumOptionCorehrV1CommonDataMetaDataResponse {
|
|
3793
|
+
/** 枚举字段 API name */
|
|
3794
|
+
enum_field_api_name?: string;
|
|
3795
|
+
/** 枚举全部选项列表 */
|
|
3796
|
+
enum_field_options?: EnumFieldOption[];
|
|
3797
|
+
}
|
|
3798
|
+
export interface CreateCorehrV1NationalIdTypeResponse {
|
|
3799
|
+
national_id_type?: NationalIdType;
|
|
3800
|
+
}
|
|
3801
|
+
export interface PatchCorehrV1NationalIdTypeResponse {
|
|
3802
|
+
national_id_type?: NationalIdType;
|
|
3803
|
+
}
|
|
3804
|
+
export interface GetCorehrV1NationalIdTypeResponse {
|
|
3805
|
+
/** 国家证件类型信息 */
|
|
3806
|
+
national_id_type?: NationalIdType;
|
|
3807
|
+
}
|
|
3808
|
+
export interface CreateCorehrV1EmployeeTypeResponse {
|
|
3809
|
+
employee_type?: EmployeeType;
|
|
3810
|
+
}
|
|
3811
|
+
export interface PatchCorehrV1EmployeeTypeResponse {
|
|
3812
|
+
employee_type?: EmployeeType;
|
|
3813
|
+
}
|
|
3814
|
+
export interface GetCorehrV1EmployeeTypeResponse {
|
|
3815
|
+
/** 雇员类型 */
|
|
3816
|
+
employee_type?: EmployeeType;
|
|
3817
|
+
}
|
|
3818
|
+
export interface CreateCorehrV1WorkingHoursTypeResponse {
|
|
3819
|
+
working_hours_type?: WorkingHoursType;
|
|
3820
|
+
}
|
|
3821
|
+
export interface PatchCorehrV1WorkingHoursTypeResponse {
|
|
3822
|
+
working_hours_type?: WorkingHoursType;
|
|
3823
|
+
}
|
|
3824
|
+
export interface GetCorehrV1WorkingHoursTypeResponse {
|
|
3825
|
+
/** 工时制度信息 */
|
|
3826
|
+
working_hours_type?: WorkingHoursType;
|
|
3827
|
+
}
|
|
3828
|
+
export interface ConvertCorehrV1CommonDataIdResponse {
|
|
3829
|
+
/** ID 信息列表 */
|
|
3830
|
+
items?: IdInfo[];
|
|
3831
|
+
}
|
|
3832
|
+
export interface BatchGetCorehrV2EmployeeResponse {
|
|
3833
|
+
/** 查询的雇佣信息 */
|
|
3834
|
+
items?: Employee[];
|
|
3835
|
+
}
|
|
3836
|
+
export interface CreateCorehrV2EmployeeResponse {
|
|
3837
|
+
/** 雇佣信息 ID */
|
|
3838
|
+
employment_id?: string;
|
|
3839
|
+
/** 合同 ID */
|
|
3840
|
+
contract_id?: string;
|
|
3841
|
+
/** 任职信息 ID */
|
|
3842
|
+
job_data_id?: string;
|
|
3843
|
+
}
|
|
3844
|
+
export interface CreateCorehrV2PersonResponse {
|
|
3845
|
+
person?: PersonInfo;
|
|
3846
|
+
}
|
|
3847
|
+
export interface PatchCorehrV2PersonResponse {
|
|
3848
|
+
person?: PersonInfo;
|
|
3849
|
+
}
|
|
3850
|
+
export interface UploadCorehrV1PersonResponse {
|
|
3851
|
+
/** 上传文件ID */
|
|
3852
|
+
id?: string;
|
|
3853
|
+
}
|
|
3854
|
+
export interface CreateCorehrV1EmploymentResponse {
|
|
3855
|
+
employment?: EmploymentCreate;
|
|
3856
|
+
}
|
|
3857
|
+
export interface PatchCorehrV1EmploymentResponse {
|
|
3858
|
+
employment?: Employment;
|
|
3859
|
+
}
|
|
3860
|
+
export interface CreateCorehrV1JobDataResponse {
|
|
3861
|
+
job_data?: JobData;
|
|
3862
|
+
}
|
|
3863
|
+
export interface PatchCorehrV1JobDataResponse {
|
|
3864
|
+
job_data?: JobData;
|
|
3865
|
+
}
|
|
3866
|
+
export interface BatchGetCorehrV2EmployeesJobDataResponse {
|
|
3867
|
+
/** 查询的雇佣信息 */
|
|
3868
|
+
items?: EmployeeJobData[];
|
|
3869
|
+
}
|
|
3870
|
+
export interface GetCorehrV1JobDataResponse {
|
|
3871
|
+
/** 任职信息 */
|
|
3872
|
+
job_data?: JobData;
|
|
3873
|
+
}
|
|
3874
|
+
export interface CreateCorehrV2EmployeesAdditionalJobResponse {
|
|
3875
|
+
additional_job?: EmployeesAdditionalJobWriteResp;
|
|
3876
|
+
}
|
|
3877
|
+
export interface PatchCorehrV2EmployeesAdditionalJobResponse {
|
|
3878
|
+
additional_job?: EmployeesAdditionalJobWriteResp;
|
|
3879
|
+
}
|
|
3880
|
+
export interface QueryOperationLogsCorehrV2DepartmentResponse {
|
|
3881
|
+
/** 操作日志列表 */
|
|
3882
|
+
op_logs?: OrganizationOpLog[];
|
|
3883
|
+
/** 下一页token */
|
|
3884
|
+
next_page_token?: string;
|
|
3885
|
+
/** 是否有下一页 */
|
|
3886
|
+
has_more?: boolean;
|
|
3887
|
+
}
|
|
3888
|
+
export interface CreateCorehrV1DepartmentResponse {
|
|
3889
|
+
department?: DepartmentCreate;
|
|
3890
|
+
}
|
|
3891
|
+
export interface ParentsCorehrV2DepartmentResponse {
|
|
3892
|
+
/** 父部门查询结果 */
|
|
3893
|
+
items?: DepartmentParents[];
|
|
3894
|
+
}
|
|
3895
|
+
export interface BatchGetCorehrV2DepartmentResponse {
|
|
3896
|
+
/** 查询的部门信息 */
|
|
3897
|
+
items?: Department[];
|
|
3898
|
+
}
|
|
3899
|
+
export interface QueryRecentChangeCorehrV2DepartmentResponse {
|
|
3900
|
+
/** 部门 ID 列表 */
|
|
3901
|
+
department_ids?: string[];
|
|
3902
|
+
/** 目标查询时间范围内被删除的部门列表 */
|
|
3903
|
+
deleted_department_ids?: string[];
|
|
3904
|
+
/** 下一页页码 */
|
|
3905
|
+
page_token?: string;
|
|
3906
|
+
/** 是否有下一页 */
|
|
3907
|
+
has_more?: boolean;
|
|
3908
|
+
}
|
|
3909
|
+
export interface QueryTimelineCorehrV2DepartmentResponse {
|
|
3910
|
+
/** 部门信息 */
|
|
3911
|
+
items?: DepartmentTimeline[];
|
|
3912
|
+
}
|
|
3913
|
+
export interface CreateCorehrV1LocationResponse {
|
|
3914
|
+
location?: Location;
|
|
3915
|
+
}
|
|
3916
|
+
export interface GetCorehrV1LocationResponse {
|
|
3917
|
+
/** 地点信息 */
|
|
3918
|
+
location?: Location;
|
|
3919
|
+
}
|
|
3920
|
+
export interface QueryRecentChangeCorehrV2LocationResponse {
|
|
3921
|
+
/** 地点 ID 列表 */
|
|
3922
|
+
location_ids?: string[];
|
|
3923
|
+
/** 下一页页码 */
|
|
3924
|
+
page_token?: string;
|
|
3925
|
+
/** 是否有下一页 */
|
|
3926
|
+
has_more?: boolean;
|
|
3927
|
+
/** 删除的地点 ID 列表 */
|
|
3928
|
+
deleted_location_ids?: string[];
|
|
3929
|
+
}
|
|
3930
|
+
export interface BatchGetCorehrV2LocationResponse {
|
|
3931
|
+
/** 查询的地点信息 */
|
|
3932
|
+
items?: Location[];
|
|
3933
|
+
}
|
|
3934
|
+
export interface CreateCorehrV2LocationAddressResponse {
|
|
3935
|
+
/** 地址 ID */
|
|
3936
|
+
address_id?: string;
|
|
3937
|
+
}
|
|
3938
|
+
export interface CreateCorehrV1CompanyResponse {
|
|
3939
|
+
company?: Company;
|
|
3940
|
+
}
|
|
3941
|
+
export interface PatchCorehrV1CompanyResponse {
|
|
3942
|
+
company?: Company;
|
|
3943
|
+
}
|
|
3944
|
+
export interface GetCorehrV1CompanyResponse {
|
|
3945
|
+
/** 公司信息 */
|
|
3946
|
+
company?: Company;
|
|
3947
|
+
}
|
|
3948
|
+
export interface QueryRecentChangeCorehrV2CompanyResponse {
|
|
3949
|
+
/** 公司 ID 列表 */
|
|
3950
|
+
company_ids?: string[];
|
|
3951
|
+
/** 下一页页码 */
|
|
3952
|
+
page_token?: string;
|
|
3953
|
+
/** 是否有下一页 */
|
|
3954
|
+
has_more?: boolean;
|
|
3955
|
+
/** 删除的公司 ID 列表 */
|
|
3956
|
+
deleted_company_ids?: string[];
|
|
3957
|
+
}
|
|
3958
|
+
export interface BatchGetCorehrV2CompanyResponse {
|
|
3959
|
+
/** 查询的公司信息 */
|
|
3960
|
+
items?: Company[];
|
|
3961
|
+
}
|
|
3962
|
+
export interface CreateCorehrV2CostCenterResponse {
|
|
3963
|
+
cost_center?: CostCenter;
|
|
3964
|
+
}
|
|
3965
|
+
export interface PatchCorehrV2CostCenterResponse {
|
|
3966
|
+
cost_center?: CostCenter;
|
|
3967
|
+
}
|
|
3968
|
+
export interface QueryRecentChangeCorehrV2CostCenterResponse {
|
|
3969
|
+
/** 成本中心 ID 列表 */
|
|
3970
|
+
cost_center_ids?: string[];
|
|
3971
|
+
/** 下一页页码 */
|
|
3972
|
+
page_token?: string;
|
|
3973
|
+
/** 是否有下一页 */
|
|
3974
|
+
has_more?: boolean;
|
|
3975
|
+
/** 删除的成本中心 ID 列表 */
|
|
3976
|
+
deleted_cost_center_ids?: string[];
|
|
3977
|
+
}
|
|
3978
|
+
export interface CreateCorehrV2CostCenterVersionResponse {
|
|
3979
|
+
version?: CostCenterVersion;
|
|
3980
|
+
}
|
|
3981
|
+
export interface PatchCorehrV2CostCenterVersionResponse {
|
|
3982
|
+
version?: CostCenterVersion;
|
|
3983
|
+
}
|
|
3984
|
+
export interface GetCorehrV2ApprovalGroupsResponse {
|
|
3985
|
+
/** 组织架构调整流程信息 */
|
|
3986
|
+
approval_group?: ApprovalGroup;
|
|
3987
|
+
}
|
|
3988
|
+
export interface OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsResponse {
|
|
3989
|
+
/** 部门调整记录信息列表 */
|
|
3990
|
+
department_changes?: DepartmentChange[];
|
|
3991
|
+
}
|
|
3992
|
+
export interface OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsResponse {
|
|
3993
|
+
/** 人员异动记录信息列表 */
|
|
3994
|
+
job_changes?: JobChange[];
|
|
3995
|
+
}
|
|
3996
|
+
export interface CreateCorehrV1JobFamilyResponse {
|
|
3997
|
+
job_family?: JobFamily;
|
|
3998
|
+
}
|
|
3999
|
+
export interface PatchCorehrV1JobFamilyResponse {
|
|
4000
|
+
job_family?: JobFamily;
|
|
4001
|
+
}
|
|
4002
|
+
export interface GetCorehrV1JobFamilyResponse {
|
|
4003
|
+
/** 职务序列信息 */
|
|
4004
|
+
job_family?: JobFamily;
|
|
4005
|
+
}
|
|
4006
|
+
export interface QueryRecentChangeCorehrV2JobFamilyResponse {
|
|
4007
|
+
/** 序列 ID 列表 */
|
|
4008
|
+
job_family_ids?: string[];
|
|
4009
|
+
/** 下一页页码 */
|
|
4010
|
+
page_token?: string;
|
|
4011
|
+
/** 是否有下一页 */
|
|
4012
|
+
has_more?: boolean;
|
|
4013
|
+
/** 删除的序列 ID 列表 */
|
|
4014
|
+
deleted_job_family_ids?: string[];
|
|
4015
|
+
}
|
|
4016
|
+
export interface BatchGetCorehrV2JobFamilyResponse {
|
|
4017
|
+
/** 查询的序列信息 */
|
|
4018
|
+
items?: JobFamily[];
|
|
4019
|
+
}
|
|
4020
|
+
export interface CreateCorehrV1JobLevelResponse {
|
|
4021
|
+
job_level?: JobLevel;
|
|
4022
|
+
}
|
|
4023
|
+
export interface PatchCorehrV1JobLevelResponse {
|
|
4024
|
+
job_level?: JobLevel;
|
|
4025
|
+
}
|
|
4026
|
+
export interface GetCorehrV1JobLevelResponse {
|
|
4027
|
+
/** 职务级别信息 */
|
|
4028
|
+
job_level?: JobLevel;
|
|
4029
|
+
}
|
|
4030
|
+
export interface QueryRecentChangeCorehrV2JobLevelResponse {
|
|
4031
|
+
/** 职级 ID 列表 */
|
|
4032
|
+
job_level_ids?: string[];
|
|
4033
|
+
/** 下一页页码 */
|
|
4034
|
+
page_token?: string;
|
|
4035
|
+
/** 是否有下一页 */
|
|
4036
|
+
has_more?: boolean;
|
|
4037
|
+
/** 删除的职级 ID 列表 */
|
|
4038
|
+
deleted_job_level_ids?: string[];
|
|
4039
|
+
}
|
|
4040
|
+
export interface BatchGetCorehrV2JobLevelResponse {
|
|
4041
|
+
/** 查询的职级信息 */
|
|
4042
|
+
items?: JobLevel[];
|
|
4043
|
+
}
|
|
4044
|
+
export interface CreateCorehrV2JobGradeResponse {
|
|
4045
|
+
/** 职等ID */
|
|
4046
|
+
grade_id?: string;
|
|
4047
|
+
}
|
|
4048
|
+
export interface QueryRecentChangeCorehrV2JobGradeResponse {
|
|
4049
|
+
/** 职等 ID 列表 */
|
|
4050
|
+
job_grade_ids?: string[];
|
|
4051
|
+
/** 下一页页码 */
|
|
4052
|
+
page_token?: string;
|
|
4053
|
+
/** 是否有下一页 */
|
|
4054
|
+
has_more?: boolean;
|
|
4055
|
+
/** 删除的职等 ID 列表 */
|
|
4056
|
+
deleted_job_grade_ids?: string[];
|
|
4057
|
+
}
|
|
4058
|
+
export interface CreateCorehrV1JobResponse {
|
|
4059
|
+
job?: Job;
|
|
4060
|
+
}
|
|
4061
|
+
export interface PatchCorehrV1JobResponse {
|
|
4062
|
+
job?: Job;
|
|
4063
|
+
}
|
|
4064
|
+
export interface GetCorehrV2JobResponse {
|
|
4065
|
+
/** 职务信息 */
|
|
4066
|
+
job?: Job;
|
|
4067
|
+
}
|
|
4068
|
+
export interface WithdrawOnboardingCorehrV2PreHireResponse {
|
|
4069
|
+
/** 是否成功撤销入职 */
|
|
4070
|
+
success?: boolean;
|
|
4071
|
+
}
|
|
4072
|
+
export interface RestoreFlowInstanceCorehrV2PreHireResponse {
|
|
4073
|
+
/** 是否成功恢复入职 */
|
|
4074
|
+
success?: boolean;
|
|
4075
|
+
}
|
|
4076
|
+
export interface CreateCorehrV2PreHireResponse {
|
|
4077
|
+
/** 待入职 ID */
|
|
4078
|
+
pre_hire_id?: string;
|
|
4079
|
+
}
|
|
4080
|
+
export interface PatchCorehrV2PreHireResponse {
|
|
4081
|
+
/** 待入职ID */
|
|
4082
|
+
pre_hire_id?: string;
|
|
4083
|
+
}
|
|
4084
|
+
export interface GetCorehrV1PreHireResponse {
|
|
4085
|
+
/** 待入职信息 */
|
|
4086
|
+
pre_hire?: PreHire;
|
|
4087
|
+
}
|
|
4088
|
+
export interface TransitTaskCorehrV2PreHireResponse {
|
|
4089
|
+
/** 是否成功流转任务 */
|
|
4090
|
+
success?: boolean;
|
|
4091
|
+
}
|
|
4092
|
+
export interface CompleteCorehrV2PreHireResponse {
|
|
4093
|
+
/** 是否成功完成入职 */
|
|
4094
|
+
success?: boolean;
|
|
4095
|
+
}
|
|
4096
|
+
export interface PatchCorehrV1PreHireResponse {
|
|
4097
|
+
pre_hire?: PreHire;
|
|
4098
|
+
}
|
|
4099
|
+
export interface CreateCorehrV2ProbationAssessmentResponse {
|
|
4100
|
+
/** 创建的试用期考核记录 ID 列表,有序返回 */
|
|
4101
|
+
assessment_ids?: string[];
|
|
4102
|
+
}
|
|
4103
|
+
export interface SubmitCorehrV2ProbationResponse {
|
|
4104
|
+
/** 试用期信息 */
|
|
4105
|
+
probation_info?: ProbationInfoForSubmit;
|
|
4106
|
+
}
|
|
4107
|
+
export interface CreateCorehrV2JobChangeResponse {
|
|
4108
|
+
/** 异动记录 id */
|
|
4109
|
+
job_change_id?: string;
|
|
4110
|
+
/** 雇员 id */
|
|
4111
|
+
employment_id?: string;
|
|
4112
|
+
/** 异动状态 */
|
|
4113
|
+
status?: 'Approving' | 'Approved' | 'Transformed' | 'Rejected' | 'Cancelled' | 'NoNeedApproval';
|
|
4114
|
+
/** 异动类型 */
|
|
4115
|
+
transfer_type_unique_identifier?: string;
|
|
4116
|
+
/** 异动原因 */
|
|
4117
|
+
transfer_reason_unique_identifier?: string;
|
|
4118
|
+
/** 异动流程 id */
|
|
4119
|
+
process_id?: string;
|
|
4120
|
+
/** 生效时间 */
|
|
4121
|
+
effective_date?: string;
|
|
4122
|
+
/** 创建时间 */
|
|
4123
|
+
created_time?: string;
|
|
4124
|
+
/** 异动详细信息 */
|
|
4125
|
+
transfer_info?: TransferInfo;
|
|
4126
|
+
/** 是否调整薪酬 */
|
|
4127
|
+
is_adjust_salary?: boolean;
|
|
4128
|
+
/** 异动自定义字段 */
|
|
4129
|
+
custom_fields?: CustomFieldData[];
|
|
4130
|
+
}
|
|
4131
|
+
export interface QueryCorehrV1TransferTypeResponse {
|
|
4132
|
+
/** 异动类型列表 */
|
|
4133
|
+
items?: TransferType[];
|
|
4134
|
+
}
|
|
4135
|
+
export interface QueryCorehrV1TransferReasonResponse {
|
|
4136
|
+
/** 异动原因列表 */
|
|
4137
|
+
items?: TransferReason[];
|
|
4138
|
+
}
|
|
4139
|
+
export interface CreateCorehrV1JobChangeResponse {
|
|
4140
|
+
/** 异动记录 id */
|
|
4141
|
+
job_change_id?: string;
|
|
4142
|
+
/** 雇员 id */
|
|
4143
|
+
employment_id?: string;
|
|
4144
|
+
/** 异动状态 */
|
|
4145
|
+
status?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
4146
|
+
/** 异动类型 */
|
|
4147
|
+
transfer_type_unique_identifier?: string;
|
|
4148
|
+
/** 异动原因 */
|
|
4149
|
+
transfer_reason_unique_identifier?: string;
|
|
4150
|
+
/** 异动流程 id */
|
|
4151
|
+
process_id?: string;
|
|
4152
|
+
/** 生效时间 */
|
|
4153
|
+
effective_date?: string;
|
|
4154
|
+
/** 创建时间 */
|
|
4155
|
+
created_time?: string;
|
|
4156
|
+
/** 异动详细信息 */
|
|
4157
|
+
transfer_info?: TransferInfo;
|
|
4158
|
+
}
|
|
4159
|
+
export interface QueryCorehrV1OffboardingResponse {
|
|
4160
|
+
/** 离职原因列表 */
|
|
4161
|
+
items?: OffboardingReason[];
|
|
4162
|
+
}
|
|
4163
|
+
export interface SubmitV2CorehrV2OffboardingResponse {
|
|
4164
|
+
/** 离职记录 id */
|
|
4165
|
+
offboarding_id?: string;
|
|
4166
|
+
/** 雇员 id */
|
|
4167
|
+
employment_id?: string;
|
|
4168
|
+
/** 离职原因 */
|
|
4169
|
+
offboarding_reason_unique_identifier?: string;
|
|
4170
|
+
/** 离职日期 */
|
|
4171
|
+
offboarding_date?: string;
|
|
4172
|
+
/** 离职原因说明 */
|
|
4173
|
+
offboarding_reason_explanation?: string;
|
|
4174
|
+
/** 是否加入离职屏蔽名单 */
|
|
4175
|
+
add_block_list?: boolean;
|
|
4176
|
+
/** 屏蔽原因 */
|
|
4177
|
+
block_reason?: string;
|
|
4178
|
+
/** 屏蔽原因说明 */
|
|
4179
|
+
block_reason_explanation?: string;
|
|
4180
|
+
/** 创建时间 */
|
|
4181
|
+
created_time?: string;
|
|
4182
|
+
/** 离职是否保留飞书账号 */
|
|
4183
|
+
retain_account?: boolean;
|
|
4184
|
+
/** 编制随人员一起调整 */
|
|
4185
|
+
is_transfer_with_workforce?: boolean;
|
|
4186
|
+
}
|
|
4187
|
+
export interface EditCorehrV2OffboardingResponse {
|
|
4188
|
+
/** 编辑字段数据信息 */
|
|
4189
|
+
data: ObjectFieldData[];
|
|
4190
|
+
}
|
|
4191
|
+
export interface CreateCorehrV1ContractResponse {
|
|
4192
|
+
contract?: Contract;
|
|
4193
|
+
}
|
|
4194
|
+
export interface PatchCorehrV1ContractResponse {
|
|
4195
|
+
contract?: Contract;
|
|
4196
|
+
}
|
|
4197
|
+
export interface GetCorehrV1ContractResponse {
|
|
4198
|
+
/** 合同信息 */
|
|
4199
|
+
contract?: Contract;
|
|
4200
|
+
}
|
|
4201
|
+
export interface ListCorehrV2WorkforcePlanResponse {
|
|
4202
|
+
/** 方案列表 */
|
|
4203
|
+
items?: WorkforcePlan[];
|
|
4204
|
+
/** 方案总数 */
|
|
4205
|
+
total?: number;
|
|
4206
|
+
}
|
|
4207
|
+
export interface BatchCorehrV2WorkforcePlanDetailResponse {
|
|
4208
|
+
/** 编制规划方案 ID */
|
|
4209
|
+
workforce_plan_id?: string;
|
|
4210
|
+
/** 集中填报项目 ID */
|
|
4211
|
+
centralized_reporting_project_id?: string;
|
|
4212
|
+
/** 编制规划明细信息 */
|
|
4213
|
+
items?: WorkforcePlanDetail[];
|
|
4214
|
+
/** 分页标识 */
|
|
4215
|
+
page_token?: string;
|
|
4216
|
+
/** 是否还有更多项 */
|
|
4217
|
+
has_more?: boolean;
|
|
4218
|
+
}
|
|
4219
|
+
export interface CreateCorehrV1LeaveGrantingRecordResponse {
|
|
4220
|
+
/** 假期授予记录 */
|
|
4221
|
+
leave_granting_record?: LeaveGrantingRecord;
|
|
4222
|
+
}
|
|
4223
|
+
export interface WorkCalendarCorehrV1LeaveResponse {
|
|
4224
|
+
/** 工作日历列表 */
|
|
4225
|
+
work_calendars?: WorkCalendarDetail[];
|
|
4226
|
+
/** 入参count=true,则返回符合条件的工作日历总数 */
|
|
4227
|
+
count?: number;
|
|
4228
|
+
}
|
|
4229
|
+
export interface CalendarByScopeCorehrV1LeaveResponse {
|
|
4230
|
+
/** 工作日历id */
|
|
4231
|
+
calendar_wk_id?: string;
|
|
4232
|
+
}
|
|
4233
|
+
export interface WorkCalendarDateCorehrV1LeaveResponse {
|
|
4234
|
+
/** 日期类型列表 */
|
|
4235
|
+
calendar_dates?: WkCalendarDate[];
|
|
4236
|
+
}
|
|
4237
|
+
export interface GetByParamCorehrV1AuthorizationResponse {
|
|
4238
|
+
/** 角色授权信息 */
|
|
4239
|
+
role_authorization?: RoleAuthorization;
|
|
4240
|
+
}
|
|
4241
|
+
export interface AddRoleAssignCorehrV1AuthorizationResponse {
|
|
4242
|
+
/** 授权id */
|
|
4243
|
+
assign_id?: string;
|
|
4244
|
+
}
|
|
4245
|
+
export interface UpdateRoleAssignCorehrV1AuthorizationResponse {
|
|
4246
|
+
/** 授权id */
|
|
4247
|
+
assign_id?: string;
|
|
4248
|
+
}
|
|
4249
|
+
export interface RemoveRoleAssignCorehrV1AuthorizationResponse {
|
|
4250
|
+
/** 授权id */
|
|
4251
|
+
assign_id?: string;
|
|
4252
|
+
}
|
|
4253
|
+
export interface BatchGetCorehrV2EmployeesBpResponse {
|
|
4254
|
+
/** 员工直属 BP 信息,当员工所在部门、属地无 BP 时,会上钻找到最近的 BP */
|
|
4255
|
+
employment_direct_bps?: EmploymentBp[];
|
|
4256
|
+
/** 员工全部 BP 信息 */
|
|
4257
|
+
employment_all_bps?: EmploymentBp[];
|
|
4258
|
+
}
|
|
4259
|
+
export interface GetByDepartmentCorehrV2BpResponse {
|
|
4260
|
+
/** 部门 HRBP 信息,依次为部门及各层级上级部门 */
|
|
4261
|
+
items?: DepartmentHrbp[];
|
|
4262
|
+
}
|
|
4263
|
+
export interface QueryCorehrV1SecurityGroupResponse {
|
|
4264
|
+
/** HRBP/属地 BP 信息 */
|
|
4265
|
+
hrbp_list?: Hrbp[];
|
|
4266
|
+
}
|
|
4267
|
+
export interface GetCorehrV2ProcessResponse {
|
|
4268
|
+
/** 流程实例ID */
|
|
4269
|
+
process_id?: string;
|
|
4270
|
+
/** 流程状态 */
|
|
4271
|
+
status?: 1 | 2 | 4 | 8 | 9;
|
|
4272
|
+
/** 业务类型ID */
|
|
4273
|
+
flow_template_id?: string;
|
|
4274
|
+
/** 业务类型名称 */
|
|
4275
|
+
flow_template_name?: DataengineI18n;
|
|
4276
|
+
/** 流程定义ID */
|
|
4277
|
+
flow_definition_id?: string;
|
|
4278
|
+
/** 流程定义名称 */
|
|
4279
|
+
flow_definition_name?: DataengineI18n;
|
|
4280
|
+
/** 流程发起人ID */
|
|
4281
|
+
initiator_id?: string;
|
|
4282
|
+
/** 流程发起人姓名 */
|
|
4283
|
+
initiator_name?: DataengineI18n;
|
|
4284
|
+
/** 流程发起时间,Unix毫秒时间戳 */
|
|
4285
|
+
create_time?: string;
|
|
4286
|
+
/** 流程结束时间,Unix毫秒时间戳 */
|
|
4287
|
+
complete_time?: string;
|
|
4288
|
+
/** 发起单据地址 */
|
|
4289
|
+
start_links?: ProcessLink;
|
|
4290
|
+
/** 流程摘要,会随着流程流转发生变化 */
|
|
4291
|
+
abstracts?: ProcessAbstractItem[];
|
|
4292
|
+
/** 待办列表 */
|
|
4293
|
+
todos?: ProcessTodoItem[];
|
|
4294
|
+
/** 抄送列表 */
|
|
4295
|
+
cc_list?: ProcessCcItem[];
|
|
4296
|
+
/** 已办列表 */
|
|
4297
|
+
done_list?: ProcessDoneItem[];
|
|
4298
|
+
/** 普通流程或撤销流程等 */
|
|
4299
|
+
properties?: 1 | 2 | 3;
|
|
4300
|
+
/** 系统待办列表 */
|
|
4301
|
+
system_todos?: ProcessSystemTodoItem[];
|
|
4302
|
+
/** 系统已办列表 */
|
|
4303
|
+
system_done_list?: ProcessSystemDoneItem[];
|
|
4304
|
+
/** 评论列表 */
|
|
4305
|
+
comment_infos?: ProcessCommentInfo[];
|
|
4306
|
+
/** 更正流程原流程ID */
|
|
4307
|
+
original_process_id?: string;
|
|
4308
|
+
/** 是否最新的「已完成」的更正流程 */
|
|
4309
|
+
is_last_completed_correct_process?: boolean;
|
|
4310
|
+
}
|
|
4311
|
+
export interface GetCorehrV2ProcessFormVariableDataResponse {
|
|
4312
|
+
/** 表单数据 */
|
|
4313
|
+
field_variable_values?: FieldVariableValue[];
|
|
4314
|
+
/** 流程实例id */
|
|
4315
|
+
process_id?: string;
|
|
4316
|
+
}
|
|
4317
|
+
export interface UpdateCorehrV2ProcessApproverResponse {
|
|
4318
|
+
/** 错误码,非 0 表示失败 */
|
|
4319
|
+
code: number;
|
|
4320
|
+
/** 错误描述 */
|
|
4321
|
+
msg?: string;
|
|
4322
|
+
}
|
|
4323
|
+
export interface MatchCorehrV1CompensationStandardResponse {
|
|
4324
|
+
/** 薪资标准表ID */
|
|
4325
|
+
standard_id?: string;
|
|
4326
|
+
/** 薪资等级 */
|
|
4327
|
+
grade?: CpstGrade;
|
|
4328
|
+
/** 生效时间 */
|
|
4329
|
+
effective_time?: string;
|
|
4330
|
+
}
|
|
4331
|
+
export interface GetCorehrV1ProcessFormVariableDataResponse {
|
|
4332
|
+
/** 流程变量 */
|
|
4333
|
+
field_variable_values?: FormFieldVariable[];
|
|
4334
|
+
}
|
|
4335
|
+
export interface GetCorehrV1SubregionResponse {
|
|
4336
|
+
/** 城市/区域信息 */
|
|
4337
|
+
subregion?: Subregion;
|
|
4338
|
+
}
|
|
4339
|
+
export interface GetCorehrV1SubdivisionResponse {
|
|
4340
|
+
/** 国家/地址信息 */
|
|
4341
|
+
subdivision?: Subdivision;
|
|
4342
|
+
}
|
|
4343
|
+
export interface GetCorehrV1CountryRegionResponse {
|
|
4344
|
+
/** 国家/地址信息 */
|
|
4345
|
+
country_region?: CountryRegion;
|
|
4346
|
+
}
|
|
4347
|
+
export interface GetCorehrV1CurrencyResponse {
|
|
4348
|
+
/** 货币信息 */
|
|
4349
|
+
currency?: Currency;
|
|
4350
|
+
}
|
|
4351
|
+
export interface GetCorehrV1JobResponse {
|
|
4352
|
+
/** 职务信息 */
|
|
4353
|
+
job?: Job;
|
|
4354
|
+
}
|
|
4355
|
+
export interface PatchCorehrV1DepartmentResponse {
|
|
4356
|
+
department?: Department;
|
|
4357
|
+
}
|
|
4358
|
+
export interface GetCorehrV1DepartmentResponse {
|
|
4359
|
+
/** 部门信息 */
|
|
4360
|
+
department?: Department;
|
|
4361
|
+
}
|
|
4362
|
+
export interface PatchCorehrV1PersonResponse {
|
|
4363
|
+
person?: Person;
|
|
4364
|
+
}
|
|
4365
|
+
export interface CreateCorehrV1PersonResponse {
|
|
4366
|
+
person?: Person;
|
|
4367
|
+
}
|
|
4368
|
+
export interface GetCorehrV1PersonResponse {
|
|
4369
|
+
/** 个人信息 */
|
|
4370
|
+
person?: Person;
|
|
4371
|
+
}
|
|
4372
|
+
export interface SubmitCorehrV1OffboardingResponse {
|
|
4373
|
+
/** 离职记录 id */
|
|
4374
|
+
offboarding_id?: string;
|
|
4375
|
+
/** 雇员 id */
|
|
4376
|
+
employment_id?: string;
|
|
4377
|
+
/** 离职原因 */
|
|
4378
|
+
offboarding_reason_unique_identifier?: string;
|
|
4379
|
+
/** 离职日期 */
|
|
4380
|
+
offboarding_date?: string;
|
|
4381
|
+
/** 离职原因说明 */
|
|
4382
|
+
offboarding_reason_explanation?: string;
|
|
4383
|
+
/** 是否加入离职屏蔽名单 */
|
|
4384
|
+
add_block_list?: boolean;
|
|
4385
|
+
/** 屏蔽原因 */
|
|
4386
|
+
block_reason?: string;
|
|
4387
|
+
/** 屏蔽原因说明 */
|
|
4388
|
+
block_reason_explanation?: string;
|
|
4389
|
+
/** 创建时间 */
|
|
4390
|
+
created_time?: string;
|
|
4391
|
+
}
|