@satorijs/adapter-lark 3.9.1 → 3.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs +1078 -14
- package/lib/types/acs.d.ts +19 -19
- package/lib/types/admin.d.ts +58 -32
- package/lib/types/aily.d.ts +52 -52
- package/lib/types/apaas.d.ts +96 -96
- package/lib/types/application.d.ts +151 -67
- package/lib/types/approval.d.ts +182 -150
- package/lib/types/attendance.d.ts +395 -353
- package/lib/types/auth.d.ts +18 -18
- package/lib/types/authen.d.ts +24 -24
- package/lib/types/baike.d.ts +42 -42
- package/lib/types/bitable.d.ts +268 -184
- package/lib/types/calendar.d.ts +144 -144
- package/lib/types/cardkit.d.ts +8 -8
- package/lib/types/contact.d.ts +209 -137
- package/lib/types/corehr.d.ts +760 -620
- package/lib/types/document_ai.d.ts +68 -68
- package/lib/types/docx.d.ts +103 -95
- package/lib/types/drive.d.ts +236 -236
- package/lib/types/ehr.d.ts +26 -2
- package/lib/types/helpdesk.d.ts +155 -155
- package/lib/types/hire.d.ts +954 -510
- package/lib/types/im.d.ts +446 -446
- package/lib/types/index.d.ts +72 -30
- package/lib/types/lingo.d.ts +28 -28
- package/lib/types/mail.d.ts +192 -192
- package/lib/types/minutes.d.ts +4 -4
- package/lib/types/okr.d.ts +86 -58
- package/lib/types/passport.d.ts +13 -5
- package/lib/types/payroll.d.ts +13 -5
- package/lib/types/performance.d.ts +85 -79
- package/lib/types/personal_settings.d.ts +12 -12
- package/lib/types/report.d.ts +11 -5
- package/lib/types/search.d.ts +48 -24
- package/lib/types/sheets.d.ts +64 -64
- package/lib/types/speech_to_text.d.ts +4 -4
- package/lib/types/task.d.ts +191 -185
- package/lib/types/translation.d.ts +4 -4
- package/lib/types/vc.d.ts +335 -155
- package/lib/types/wiki.d.ts +48 -48
- package/package.json +1 -1
- package/src/internal.ts +1 -1
- package/src/types/acs.ts +24 -24
- package/src/types/admin.ts +69 -39
- package/src/types/aily.ts +61 -61
- package/src/types/apaas.ts +113 -113
- package/src/types/application.ts +173 -79
- package/src/types/approval.ts +202 -166
- package/src/types/attendance.ts +466 -421
- package/src/types/auth.ts +20 -20
- package/src/types/authen.ts +28 -28
- package/src/types/baike.ts +55 -55
- package/src/types/bitable.ts +305 -219
- package/src/types/calendar.ts +167 -167
- package/src/types/cardkit.ts +10 -10
- package/src/types/contact.ts +251 -169
- package/src/types/corehr.ts +903 -743
- package/src/types/document_ai.ts +85 -85
- package/src/types/docx.ts +117 -108
- package/src/types/drive.ts +298 -298
- package/src/types/ehr.ts +28 -2
- package/src/types/helpdesk.ts +181 -181
- package/src/types/hire.ts +1081 -591
- package/src/types/im.ts +521 -521
- package/src/types/index.ts +73 -30
- package/src/types/lingo.ts +36 -36
- package/src/types/mail.ts +215 -215
- package/src/types/minutes.ts +5 -5
- package/src/types/okr.ts +98 -66
- package/src/types/passport.ts +15 -6
- package/src/types/payroll.ts +15 -6
- package/src/types/performance.ts +98 -91
- package/src/types/personal_settings.ts +15 -15
- package/src/types/report.ts +13 -6
- package/src/types/search.ts +57 -29
- package/src/types/sheets.ts +80 -80
- package/src/types/speech_to_text.ts +5 -5
- package/src/types/task.ts +238 -231
- package/src/types/translation.ts +5 -5
- package/src/types/vc.ts +386 -186
- package/src/types/wiki.ts +59 -59
- package/src/utils.ts +12 -7
package/src/types/corehr.ts
CHANGED
|
@@ -1056,6 +1056,11 @@ export interface QueryCorehrV1CustomFieldQuery {
|
|
|
1056
1056
|
object_api_name_list: string[]
|
|
1057
1057
|
}
|
|
1058
1058
|
|
|
1059
|
+
export interface QueryCorehrV1CustomFieldResponse {
|
|
1060
|
+
/** 自定义字段列表 */
|
|
1061
|
+
items?: CustomField[]
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1059
1064
|
export interface GetByParamCorehrV1CustomFieldQuery {
|
|
1060
1065
|
/** 所属对象 apiname */
|
|
1061
1066
|
object_api_name: string
|
|
@@ -1063,6 +1068,11 @@ export interface GetByParamCorehrV1CustomFieldQuery {
|
|
|
1063
1068
|
custom_api_name: string
|
|
1064
1069
|
}
|
|
1065
1070
|
|
|
1071
|
+
export interface GetByParamCorehrV1CustomFieldResponse {
|
|
1072
|
+
/** 自定义字段详情 */
|
|
1073
|
+
data?: CustomField
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1066
1076
|
export interface AddEnumOptionCorehrV1CommonDataMetaDataRequest {
|
|
1067
1077
|
/** 所属对象 API name,可通过[获取飞书人事对象列表](/ssl:ttdoc/server-docs/corehr-v1/basic-infomation/custom_field/list_object_api_name)接口中返回的 `object_api_name` 字段获取 */
|
|
1068
1078
|
object_api_name: string
|
|
@@ -1077,6 +1087,13 @@ export interface AddEnumOptionCorehrV1CommonDataMetaDataQuery {
|
|
|
1077
1087
|
client_token?: string
|
|
1078
1088
|
}
|
|
1079
1089
|
|
|
1090
|
+
export interface AddEnumOptionCorehrV1CommonDataMetaDataResponse {
|
|
1091
|
+
/** 枚举字段 API name */
|
|
1092
|
+
enum_field_api_name?: string
|
|
1093
|
+
/** 枚举全部选项列表 */
|
|
1094
|
+
enum_field_options?: EnumFieldOption[]
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1080
1097
|
export interface EditEnumOptionCorehrV1CommonDataMetaDataRequest {
|
|
1081
1098
|
/** 所属对象 API name,可通过[获取飞书人事对象列表](/ssl:ttdoc/server-docs/corehr-v1/basic-infomation/custom_field/list_object_api_name)接口中返回的 `object_api_name` 字段获取 */
|
|
1082
1099
|
object_api_name: string
|
|
@@ -1091,11 +1108,32 @@ export interface EditEnumOptionCorehrV1CommonDataMetaDataQuery {
|
|
|
1091
1108
|
client_token?: string
|
|
1092
1109
|
}
|
|
1093
1110
|
|
|
1111
|
+
export interface EditEnumOptionCorehrV1CommonDataMetaDataResponse {
|
|
1112
|
+
/** 枚举字段 API name */
|
|
1113
|
+
enum_field_api_name?: string
|
|
1114
|
+
/** 枚举全部选项列表 */
|
|
1115
|
+
enum_field_options?: EnumFieldOption[]
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
export const enum SearchCorehrV2BasicInfoCountryRegionRequestStatus {
|
|
1119
|
+
/** 生效 */
|
|
1120
|
+
Active = 1,
|
|
1121
|
+
/** 失效 */
|
|
1122
|
+
Inactive = 0,
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1094
1125
|
export interface SearchCorehrV2BasicInfoCountryRegionRequest {
|
|
1095
1126
|
/** 国家/地区 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` 等字段中获取 */
|
|
1096
1127
|
country_region_id_list?: string[]
|
|
1097
1128
|
/** 状态列表 */
|
|
1098
|
-
status_list?:
|
|
1129
|
+
status_list?: SearchCorehrV2BasicInfoCountryRegionRequestStatus[]
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
export const enum SearchCorehrV2BasicInfoCountryRegionSubdivisionRequestStatus {
|
|
1133
|
+
/** 生效 */
|
|
1134
|
+
Effective = 1,
|
|
1135
|
+
/** 失效 */
|
|
1136
|
+
Expiration = 0,
|
|
1099
1137
|
}
|
|
1100
1138
|
|
|
1101
1139
|
export interface SearchCorehrV2BasicInfoCountryRegionSubdivisionRequest {
|
|
@@ -1104,7 +1142,14 @@ export interface SearchCorehrV2BasicInfoCountryRegionSubdivisionRequest {
|
|
|
1104
1142
|
/** 省份/行政区 ID 列表 */
|
|
1105
1143
|
country_region_subdivision_id_list?: string[]
|
|
1106
1144
|
/** 状态列表 */
|
|
1107
|
-
status_list?:
|
|
1145
|
+
status_list?: SearchCorehrV2BasicInfoCountryRegionSubdivisionRequestStatus[]
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
export const enum SearchCorehrV2BasicInfoCityRequestStatus {
|
|
1149
|
+
/** 生效 */
|
|
1150
|
+
Active = 1,
|
|
1151
|
+
/** 失效 */
|
|
1152
|
+
Inactive = 0,
|
|
1108
1153
|
}
|
|
1109
1154
|
|
|
1110
1155
|
export interface SearchCorehrV2BasicInfoCityRequest {
|
|
@@ -1113,7 +1158,14 @@ export interface SearchCorehrV2BasicInfoCityRequest {
|
|
|
1113
1158
|
/** 城市 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` 等字段中获取 */
|
|
1114
1159
|
city_id_list?: string[]
|
|
1115
1160
|
/** 状态列表 */
|
|
1116
|
-
status_list?:
|
|
1161
|
+
status_list?: SearchCorehrV2BasicInfoCityRequestStatus[]
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
export const enum SearchCorehrV2BasicInfoDistrictRequestStatus {
|
|
1165
|
+
/** 生效 */
|
|
1166
|
+
Active = 1,
|
|
1167
|
+
/** 失效 */
|
|
1168
|
+
Inactive = 0,
|
|
1117
1169
|
}
|
|
1118
1170
|
|
|
1119
1171
|
export interface SearchCorehrV2BasicInfoDistrictRequest {
|
|
@@ -1122,7 +1174,14 @@ export interface SearchCorehrV2BasicInfoDistrictRequest {
|
|
|
1122
1174
|
/** 区/县 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` 等字段中获取 */
|
|
1123
1175
|
district_id_list?: string[]
|
|
1124
1176
|
/** 状态列表 */
|
|
1125
|
-
status_list?:
|
|
1177
|
+
status_list?: SearchCorehrV2BasicInfoDistrictRequestStatus[]
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
export const enum SearchCorehrV2BasicInfoNationalityRequestStatus {
|
|
1181
|
+
/** 生效 */
|
|
1182
|
+
Active = 1,
|
|
1183
|
+
/** 失效 */
|
|
1184
|
+
Inactive = 0,
|
|
1126
1185
|
}
|
|
1127
1186
|
|
|
1128
1187
|
export interface SearchCorehrV2BasicInfoNationalityRequest {
|
|
@@ -1131,7 +1190,7 @@ export interface SearchCorehrV2BasicInfoNationalityRequest {
|
|
|
1131
1190
|
/** 国家/地区 ID 列表,可通过[查询国家/地区信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口列举 */
|
|
1132
1191
|
country_region_id_list?: string[]
|
|
1133
1192
|
/** 状态列表 */
|
|
1134
|
-
status_list?:
|
|
1193
|
+
status_list?: SearchCorehrV2BasicInfoNationalityRequestStatus[]
|
|
1135
1194
|
}
|
|
1136
1195
|
|
|
1137
1196
|
export interface CreateCorehrV1NationalIdTypeRequest {
|
|
@@ -1158,6 +1217,10 @@ export interface CreateCorehrV1NationalIdTypeQuery {
|
|
|
1158
1217
|
client_token?: string
|
|
1159
1218
|
}
|
|
1160
1219
|
|
|
1220
|
+
export interface CreateCorehrV1NationalIdTypeResponse {
|
|
1221
|
+
national_id_type?: NationalIdType
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1161
1224
|
export interface PatchCorehrV1NationalIdTypeRequest {
|
|
1162
1225
|
/** 国家 / 地区 */
|
|
1163
1226
|
country_region_id?: string
|
|
@@ -1182,6 +1245,15 @@ export interface PatchCorehrV1NationalIdTypeQuery {
|
|
|
1182
1245
|
client_token?: string
|
|
1183
1246
|
}
|
|
1184
1247
|
|
|
1248
|
+
export interface PatchCorehrV1NationalIdTypeResponse {
|
|
1249
|
+
national_id_type?: NationalIdType
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
export interface GetCorehrV1NationalIdTypeResponse {
|
|
1253
|
+
/** 国家证件类型信息 */
|
|
1254
|
+
national_id_type?: NationalIdType
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1185
1257
|
export interface ListCorehrV1NationalIdTypeQuery extends Pagination {
|
|
1186
1258
|
/** 证件类型 */
|
|
1187
1259
|
identification_type?: string
|
|
@@ -1191,19 +1263,33 @@ export interface ListCorehrV1NationalIdTypeQuery extends Pagination {
|
|
|
1191
1263
|
country_region_id?: string
|
|
1192
1264
|
}
|
|
1193
1265
|
|
|
1266
|
+
export const enum SearchCorehrV2BasicInfoBankRequestStatus {
|
|
1267
|
+
/** 生效 */
|
|
1268
|
+
Enabled = 1,
|
|
1269
|
+
/** 失效 */
|
|
1270
|
+
Disabled = 0,
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1194
1273
|
export interface SearchCorehrV2BasicInfoBankRequest {
|
|
1195
1274
|
/** 银行 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` 字段获取 */
|
|
1196
1275
|
bank_id_list?: string[]
|
|
1197
1276
|
/** 银行名称列表,支持对银行名称精确搜索 */
|
|
1198
1277
|
bank_name_list?: string[]
|
|
1199
1278
|
/** 状态列表 */
|
|
1200
|
-
status_list?:
|
|
1279
|
+
status_list?: SearchCorehrV2BasicInfoBankRequestStatus[]
|
|
1201
1280
|
/** 最早更新时间 */
|
|
1202
1281
|
update_start_time?: string
|
|
1203
1282
|
/** 最晚更新时间 */
|
|
1204
1283
|
update_end_time?: string
|
|
1205
1284
|
}
|
|
1206
1285
|
|
|
1286
|
+
export const enum SearchCorehrV2BasicInfoBankBranchRequestStatus {
|
|
1287
|
+
/** 生效 */
|
|
1288
|
+
Active = 1,
|
|
1289
|
+
/** 失效 */
|
|
1290
|
+
Inactive = 0,
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1207
1293
|
export interface SearchCorehrV2BasicInfoBankBranchRequest {
|
|
1208
1294
|
/** 银行 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` 字段中获取 */
|
|
1209
1295
|
bank_id_list?: string[]
|
|
@@ -1214,32 +1300,53 @@ export interface SearchCorehrV2BasicInfoBankBranchRequest {
|
|
|
1214
1300
|
/** 金融分支机构编码(联行号)列表,支持对金融分支机构编码精确搜索 */
|
|
1215
1301
|
code_list?: string[]
|
|
1216
1302
|
/** 状态列表 */
|
|
1217
|
-
status_list?:
|
|
1303
|
+
status_list?: SearchCorehrV2BasicInfoBankBranchRequestStatus[]
|
|
1218
1304
|
/** 最早更新时间 */
|
|
1219
1305
|
update_start_time?: string
|
|
1220
1306
|
/** 最晚更新时间 */
|
|
1221
1307
|
update_end_time?: string
|
|
1222
1308
|
}
|
|
1223
1309
|
|
|
1310
|
+
export const enum SearchCorehrV2BasicInfoCurrencyRequestStatus {
|
|
1311
|
+
/** 生效 */
|
|
1312
|
+
Active = 1,
|
|
1313
|
+
/** 失效 */
|
|
1314
|
+
Inactive = 0,
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1224
1317
|
export interface SearchCorehrV2BasicInfoCurrencyRequest {
|
|
1225
1318
|
/** 货币 ID 列表,可通过[批量查询薪资方案](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/compensation-v1/plan/list)、[批量查询员工薪资档案](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/compensation-v1/archive/query)等接口返回的 `currency_id` 字段获取 */
|
|
1226
1319
|
currency_id_list?: string[]
|
|
1227
1320
|
/** 状态列表 */
|
|
1228
|
-
status_list?:
|
|
1321
|
+
status_list?: SearchCorehrV2BasicInfoCurrencyRequestStatus[]
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
export const enum SearchCorehrV2BasicInfoTimeZoneRequestStatus {
|
|
1325
|
+
/** 生效 */
|
|
1326
|
+
Active = 1,
|
|
1327
|
+
/** 失效 */
|
|
1328
|
+
Inactive = 0,
|
|
1229
1329
|
}
|
|
1230
1330
|
|
|
1231
1331
|
export interface SearchCorehrV2BasicInfoTimeZoneRequest {
|
|
1232
1332
|
/** 时区 ID 列表 */
|
|
1233
1333
|
time_zone_id_list?: string[]
|
|
1234
1334
|
/** 状态列表 */
|
|
1235
|
-
status_list?:
|
|
1335
|
+
status_list?: SearchCorehrV2BasicInfoTimeZoneRequestStatus[]
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
export const enum SearchCorehrV2BasicInfoLanguageRequestStatus {
|
|
1339
|
+
/** 生效 */
|
|
1340
|
+
Active = 1,
|
|
1341
|
+
/** 失效 */
|
|
1342
|
+
Inactive = 0,
|
|
1236
1343
|
}
|
|
1237
1344
|
|
|
1238
1345
|
export interface SearchCorehrV2BasicInfoLanguageRequest {
|
|
1239
1346
|
/** 语言 ID 列表 */
|
|
1240
1347
|
language_id_list?: string[]
|
|
1241
1348
|
/** 状态列表 */
|
|
1242
|
-
status_list?:
|
|
1349
|
+
status_list?: SearchCorehrV2BasicInfoLanguageRequestStatus[]
|
|
1243
1350
|
}
|
|
1244
1351
|
|
|
1245
1352
|
export interface CreateCorehrV1EmployeeTypeRequest {
|
|
@@ -1260,6 +1367,10 @@ export interface CreateCorehrV1EmployeeTypeQuery {
|
|
|
1260
1367
|
client_token?: string
|
|
1261
1368
|
}
|
|
1262
1369
|
|
|
1370
|
+
export interface CreateCorehrV1EmployeeTypeResponse {
|
|
1371
|
+
employee_type?: EmployeeType
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1263
1374
|
export interface PatchCorehrV1EmployeeTypeRequest {
|
|
1264
1375
|
/** 名称 */
|
|
1265
1376
|
name?: I18n[]
|
|
@@ -1278,6 +1389,15 @@ export interface PatchCorehrV1EmployeeTypeQuery {
|
|
|
1278
1389
|
client_token?: string
|
|
1279
1390
|
}
|
|
1280
1391
|
|
|
1392
|
+
export interface PatchCorehrV1EmployeeTypeResponse {
|
|
1393
|
+
employee_type?: EmployeeType
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
export interface GetCorehrV1EmployeeTypeResponse {
|
|
1397
|
+
/** 雇员类型 */
|
|
1398
|
+
employee_type?: EmployeeType
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1281
1401
|
export interface CreateCorehrV1WorkingHoursTypeRequest {
|
|
1282
1402
|
/** 编码 */
|
|
1283
1403
|
code?: string
|
|
@@ -1298,6 +1418,10 @@ export interface CreateCorehrV1WorkingHoursTypeQuery {
|
|
|
1298
1418
|
client_token?: string
|
|
1299
1419
|
}
|
|
1300
1420
|
|
|
1421
|
+
export interface CreateCorehrV1WorkingHoursTypeResponse {
|
|
1422
|
+
working_hours_type?: WorkingHoursType
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1301
1425
|
export interface PatchCorehrV1WorkingHoursTypeRequest {
|
|
1302
1426
|
/** 编码 */
|
|
1303
1427
|
code?: string
|
|
@@ -1318,14 +1442,34 @@ export interface PatchCorehrV1WorkingHoursTypeQuery {
|
|
|
1318
1442
|
client_token?: string
|
|
1319
1443
|
}
|
|
1320
1444
|
|
|
1445
|
+
export interface PatchCorehrV1WorkingHoursTypeResponse {
|
|
1446
|
+
working_hours_type?: WorkingHoursType
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
export interface GetCorehrV1WorkingHoursTypeResponse {
|
|
1450
|
+
/** 工时制度信息 */
|
|
1451
|
+
working_hours_type?: WorkingHoursType
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1321
1454
|
export interface ConvertCorehrV1CommonDataIdRequest {
|
|
1322
1455
|
/** ID 列表(最多传入 100 个 ID,ID 长度限制 50 个字符) */
|
|
1323
1456
|
ids: string[]
|
|
1324
1457
|
}
|
|
1325
1458
|
|
|
1459
|
+
export const enum ConvertCorehrV1CommonDataIdQueryIdTransformType {
|
|
1460
|
+
/** 飞书人事 -> 飞书通讯录 */
|
|
1461
|
+
CoreHR2Feishu = 1,
|
|
1462
|
+
/** 飞书通讯录 -> 飞书人事 */
|
|
1463
|
+
Feishu2CoreHR = 2,
|
|
1464
|
+
/** people admin -> 飞书人事 */
|
|
1465
|
+
Admin2Feishu = 3,
|
|
1466
|
+
/** people admin -> 飞书通讯录 */
|
|
1467
|
+
Admin2CoreHR = 4,
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1326
1470
|
export interface ConvertCorehrV1CommonDataIdQuery {
|
|
1327
1471
|
/** ID 转换类型 */
|
|
1328
|
-
id_transform_type:
|
|
1472
|
+
id_transform_type: ConvertCorehrV1CommonDataIdQueryIdTransformType
|
|
1329
1473
|
/** 要转换的ID类型 */
|
|
1330
1474
|
id_type: 'user_id' | 'department_id' | 'job_level_id' | 'job_family_id' | 'employee_type_id'
|
|
1331
1475
|
/** 用户 ID 类型 */
|
|
@@ -1334,6 +1478,11 @@ export interface ConvertCorehrV1CommonDataIdQuery {
|
|
|
1334
1478
|
feishu_department_id_type?: 'open_department_id' | 'department_id'
|
|
1335
1479
|
}
|
|
1336
1480
|
|
|
1481
|
+
export interface ConvertCorehrV1CommonDataIdResponse {
|
|
1482
|
+
/** ID 信息列表 */
|
|
1483
|
+
items?: IdInfo[]
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1337
1486
|
export interface BatchGetCorehrV2EmployeeRequest {
|
|
1338
1487
|
/** 返回数据的字段列表,填写方式:为空时默认仅返回 ID */
|
|
1339
1488
|
fields?: string[]
|
|
@@ -1352,6 +1501,11 @@ export interface BatchGetCorehrV2EmployeeQuery {
|
|
|
1352
1501
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
1353
1502
|
}
|
|
1354
1503
|
|
|
1504
|
+
export interface BatchGetCorehrV2EmployeeResponse {
|
|
1505
|
+
/** 查询的雇佣信息 */
|
|
1506
|
+
items?: Employee[]
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1355
1509
|
export interface SearchCorehrV2EmployeeRequest {
|
|
1356
1510
|
/** 返回数据的字段列表,填写方式:为空时默认仅返回 ID */
|
|
1357
1511
|
fields?: string[]
|
|
@@ -1466,6 +1620,15 @@ export interface CreateCorehrV2EmployeeQuery {
|
|
|
1466
1620
|
ignore_working_hours_type_rule?: boolean
|
|
1467
1621
|
}
|
|
1468
1622
|
|
|
1623
|
+
export interface CreateCorehrV2EmployeeResponse {
|
|
1624
|
+
/** 雇佣信息 ID */
|
|
1625
|
+
employment_id?: string
|
|
1626
|
+
/** 合同 ID */
|
|
1627
|
+
contract_id?: string
|
|
1628
|
+
/** 任职信息 ID */
|
|
1629
|
+
job_data_id?: string
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1469
1632
|
export interface CreateCorehrV2PersonRequest {
|
|
1470
1633
|
/** 姓名列表 */
|
|
1471
1634
|
name_list: PersonName[]
|
|
@@ -1540,6 +1703,10 @@ export interface CreateCorehrV2PersonQuery {
|
|
|
1540
1703
|
client_token?: string
|
|
1541
1704
|
}
|
|
1542
1705
|
|
|
1706
|
+
export interface CreateCorehrV2PersonResponse {
|
|
1707
|
+
person?: PersonInfo
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1543
1710
|
export interface PatchCorehrV2PersonRequest {
|
|
1544
1711
|
/** 姓名列表 */
|
|
1545
1712
|
name_list?: PersonName[]
|
|
@@ -1616,6 +1783,10 @@ export interface PatchCorehrV2PersonQuery {
|
|
|
1616
1783
|
no_need_query?: boolean
|
|
1617
1784
|
}
|
|
1618
1785
|
|
|
1786
|
+
export interface PatchCorehrV2PersonResponse {
|
|
1787
|
+
person?: PersonInfo
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1619
1790
|
export interface UploadCorehrV1PersonForm {
|
|
1620
1791
|
/** 文件二进制内容 */
|
|
1621
1792
|
file_content: Blob
|
|
@@ -1623,6 +1794,11 @@ export interface UploadCorehrV1PersonForm {
|
|
|
1623
1794
|
file_name: string
|
|
1624
1795
|
}
|
|
1625
1796
|
|
|
1797
|
+
export interface UploadCorehrV1PersonResponse {
|
|
1798
|
+
/** 上传文件ID */
|
|
1799
|
+
id?: string
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1626
1802
|
export interface CreateCorehrV1EmploymentRequest {
|
|
1627
1803
|
/** 资历起算日期 */
|
|
1628
1804
|
seniority_date?: string
|
|
@@ -1659,6 +1835,10 @@ export interface CreateCorehrV1EmploymentQuery {
|
|
|
1659
1835
|
client_token?: string
|
|
1660
1836
|
}
|
|
1661
1837
|
|
|
1838
|
+
export interface CreateCorehrV1EmploymentResponse {
|
|
1839
|
+
employment?: EmploymentCreate
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1662
1842
|
export interface PatchCorehrV1EmploymentRequest {
|
|
1663
1843
|
/** 资历起算日期 */
|
|
1664
1844
|
seniority_date?: string
|
|
@@ -1689,6 +1869,10 @@ export interface PatchCorehrV1EmploymentQuery {
|
|
|
1689
1869
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
1690
1870
|
}
|
|
1691
1871
|
|
|
1872
|
+
export interface PatchCorehrV1EmploymentResponse {
|
|
1873
|
+
employment?: Employment
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1692
1876
|
export interface DeleteCorehrV1EmploymentQuery {
|
|
1693
1877
|
/** 用户 ID 类型 */
|
|
1694
1878
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
@@ -1752,6 +1936,10 @@ export interface CreateCorehrV1JobDataQuery {
|
|
|
1752
1936
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
1753
1937
|
}
|
|
1754
1938
|
|
|
1939
|
+
export interface CreateCorehrV1JobDataResponse {
|
|
1940
|
+
job_data?: JobData
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1755
1943
|
export interface DeleteCorehrV1JobDataQuery {
|
|
1756
1944
|
/** 需要删除的任职记录版本 ID */
|
|
1757
1945
|
version_id?: string
|
|
@@ -1817,6 +2005,10 @@ export interface PatchCorehrV1JobDataQuery {
|
|
|
1817
2005
|
strict_verify?: string
|
|
1818
2006
|
}
|
|
1819
2007
|
|
|
2008
|
+
export interface PatchCorehrV1JobDataResponse {
|
|
2009
|
+
job_data?: JobData
|
|
2010
|
+
}
|
|
2011
|
+
|
|
1820
2012
|
export interface QueryCorehrV2EmployeesJobDataRequest {
|
|
1821
2013
|
/** 是否获取所有任职记录,true 为获取员工所有版本的任职记录,false 为仅获取当前生效的任职记录,默认为 false */
|
|
1822
2014
|
get_all_version?: boolean
|
|
@@ -1867,6 +2059,11 @@ export interface BatchGetCorehrV2EmployeesJobDataQuery {
|
|
|
1867
2059
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
1868
2060
|
}
|
|
1869
2061
|
|
|
2062
|
+
export interface BatchGetCorehrV2EmployeesJobDataResponse {
|
|
2063
|
+
/** 查询的雇佣信息 */
|
|
2064
|
+
items?: EmployeeJobData[]
|
|
2065
|
+
}
|
|
2066
|
+
|
|
1870
2067
|
export interface ListCorehrV1JobDataQuery extends Pagination {
|
|
1871
2068
|
/** 雇佣 ID */
|
|
1872
2069
|
employment_id?: string
|
|
@@ -1891,6 +2088,11 @@ export interface GetCorehrV1JobDataQuery {
|
|
|
1891
2088
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
1892
2089
|
}
|
|
1893
2090
|
|
|
2091
|
+
export interface GetCorehrV1JobDataResponse {
|
|
2092
|
+
/** 任职信息 */
|
|
2093
|
+
job_data?: JobData
|
|
2094
|
+
}
|
|
2095
|
+
|
|
1894
2096
|
export interface CreateCorehrV2EmployeesAdditionalJobRequest {
|
|
1895
2097
|
/** 人员类型 ID,可通过[【批量查询人员类型】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取 */
|
|
1896
2098
|
employee_type_id: string
|
|
@@ -1941,6 +2143,10 @@ export interface CreateCorehrV2EmployeesAdditionalJobQuery {
|
|
|
1941
2143
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
1942
2144
|
}
|
|
1943
2145
|
|
|
2146
|
+
export interface CreateCorehrV2EmployeesAdditionalJobResponse {
|
|
2147
|
+
additional_job?: EmployeesAdditionalJobWriteResp
|
|
2148
|
+
}
|
|
2149
|
+
|
|
1944
2150
|
export interface PatchCorehrV2EmployeesAdditionalJobRequest {
|
|
1945
2151
|
/** 人员类型 ID,可通过[【批量查询人员类型】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取 */
|
|
1946
2152
|
employee_type_id?: string
|
|
@@ -1989,6 +2195,10 @@ export interface PatchCorehrV2EmployeesAdditionalJobQuery {
|
|
|
1989
2195
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
1990
2196
|
}
|
|
1991
2197
|
|
|
2198
|
+
export interface PatchCorehrV2EmployeesAdditionalJobResponse {
|
|
2199
|
+
additional_job?: EmployeesAdditionalJobWriteResp
|
|
2200
|
+
}
|
|
2201
|
+
|
|
1992
2202
|
export interface BatchCorehrV2EmployeesAdditionalJobRequest {
|
|
1993
2203
|
/** 雇佣 ID */
|
|
1994
2204
|
employment_ids?: string[]
|
|
@@ -2025,6 +2235,15 @@ export interface QueryOperationLogsCorehrV2DepartmentQuery extends Pagination {
|
|
|
2025
2235
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
2026
2236
|
}
|
|
2027
2237
|
|
|
2238
|
+
export interface QueryOperationLogsCorehrV2DepartmentResponse {
|
|
2239
|
+
/** 操作日志列表 */
|
|
2240
|
+
op_logs?: OrganizationOpLog[]
|
|
2241
|
+
/** 下一页token */
|
|
2242
|
+
next_page_token?: string
|
|
2243
|
+
/** 是否有下一页 */
|
|
2244
|
+
has_more?: boolean
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2028
2247
|
export interface CreateCorehrV1DepartmentRequest {
|
|
2029
2248
|
/** 子类型 */
|
|
2030
2249
|
sub_type?: Enum
|
|
@@ -2053,6 +2272,10 @@ export interface CreateCorehrV1DepartmentQuery {
|
|
|
2053
2272
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
2054
2273
|
}
|
|
2055
2274
|
|
|
2275
|
+
export interface CreateCorehrV1DepartmentResponse {
|
|
2276
|
+
department?: DepartmentCreate
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2056
2279
|
export interface PatchCorehrV2DepartmentRequest {
|
|
2057
2280
|
/** 实体在CoreHR内部的唯一键 */
|
|
2058
2281
|
id?: string
|
|
@@ -2093,6 +2316,11 @@ export interface ParentsCorehrV2DepartmentQuery {
|
|
|
2093
2316
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
2094
2317
|
}
|
|
2095
2318
|
|
|
2319
|
+
export interface ParentsCorehrV2DepartmentResponse {
|
|
2320
|
+
/** 父部门查询结果 */
|
|
2321
|
+
items?: DepartmentParents[]
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2096
2324
|
export interface BatchGetCorehrV2DepartmentRequest {
|
|
2097
2325
|
/** 部门 ID 列表 */
|
|
2098
2326
|
department_id_list?: string[]
|
|
@@ -2109,6 +2337,11 @@ export interface BatchGetCorehrV2DepartmentQuery {
|
|
|
2109
2337
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
2110
2338
|
}
|
|
2111
2339
|
|
|
2340
|
+
export interface BatchGetCorehrV2DepartmentResponse {
|
|
2341
|
+
/** 查询的部门信息 */
|
|
2342
|
+
items?: Department[]
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2112
2345
|
export interface QueryRecentChangeCorehrV2DepartmentQuery extends Pagination {
|
|
2113
2346
|
/** 查询的开始时间,格式 "yyyy-MM-dd",不带时分秒,包含 start_date 传入的时间, 系统会以 start_date 的 00:00:00 查询。 */
|
|
2114
2347
|
start_date: string
|
|
@@ -2118,6 +2351,17 @@ export interface QueryRecentChangeCorehrV2DepartmentQuery extends Pagination {
|
|
|
2118
2351
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
2119
2352
|
}
|
|
2120
2353
|
|
|
2354
|
+
export interface QueryRecentChangeCorehrV2DepartmentResponse {
|
|
2355
|
+
/** 部门 ID 列表 */
|
|
2356
|
+
department_ids?: string[]
|
|
2357
|
+
/** 目标查询时间范围内被删除的部门列表 */
|
|
2358
|
+
deleted_department_ids?: string[]
|
|
2359
|
+
/** 下一页页码 */
|
|
2360
|
+
page_token?: string
|
|
2361
|
+
/** 是否有下一页 */
|
|
2362
|
+
has_more?: boolean
|
|
2363
|
+
}
|
|
2364
|
+
|
|
2121
2365
|
export interface QueryTimelineCorehrV2DepartmentRequest {
|
|
2122
2366
|
/** 部门 ID 列表 */
|
|
2123
2367
|
department_ids: string[]
|
|
@@ -2134,6 +2378,11 @@ export interface QueryTimelineCorehrV2DepartmentQuery {
|
|
|
2134
2378
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
2135
2379
|
}
|
|
2136
2380
|
|
|
2381
|
+
export interface QueryTimelineCorehrV2DepartmentResponse {
|
|
2382
|
+
/** 部门信息 */
|
|
2383
|
+
items?: DepartmentTimeline[]
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2137
2386
|
export interface TreeCorehrV2DepartmentRequest {
|
|
2138
2387
|
/** 部门 ID,默认根部门 */
|
|
2139
2388
|
department_id?: string
|
|
@@ -2221,6 +2470,10 @@ export interface CreateCorehrV1LocationQuery {
|
|
|
2221
2470
|
client_token?: string
|
|
2222
2471
|
}
|
|
2223
2472
|
|
|
2473
|
+
export interface CreateCorehrV1LocationResponse {
|
|
2474
|
+
location?: Location
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2224
2477
|
export interface PatchCorehrV2LocationRequest {
|
|
2225
2478
|
/** 上级地点 ID */
|
|
2226
2479
|
parent_id?: string
|
|
@@ -2251,6 +2504,11 @@ export interface PatchCorehrV2LocationQuery {
|
|
|
2251
2504
|
client_token?: string
|
|
2252
2505
|
}
|
|
2253
2506
|
|
|
2507
|
+
export interface GetCorehrV1LocationResponse {
|
|
2508
|
+
/** 地点信息 */
|
|
2509
|
+
location?: Location
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2254
2512
|
export interface QueryRecentChangeCorehrV2LocationQuery extends Pagination {
|
|
2255
2513
|
/** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
|
|
2256
2514
|
start_date: string
|
|
@@ -2258,11 +2516,27 @@ export interface QueryRecentChangeCorehrV2LocationQuery extends Pagination {
|
|
|
2258
2516
|
end_date: string
|
|
2259
2517
|
}
|
|
2260
2518
|
|
|
2519
|
+
export interface QueryRecentChangeCorehrV2LocationResponse {
|
|
2520
|
+
/** 地点 ID 列表 */
|
|
2521
|
+
location_ids?: string[]
|
|
2522
|
+
/** 下一页页码 */
|
|
2523
|
+
page_token?: string
|
|
2524
|
+
/** 是否有下一页 */
|
|
2525
|
+
has_more?: boolean
|
|
2526
|
+
/** 删除的地点 ID 列表 */
|
|
2527
|
+
deleted_location_ids?: string[]
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2261
2530
|
export interface BatchGetCorehrV2LocationRequest {
|
|
2262
2531
|
/** 地点 ID 列表 */
|
|
2263
2532
|
location_ids: string[]
|
|
2264
2533
|
}
|
|
2265
2534
|
|
|
2535
|
+
export interface BatchGetCorehrV2LocationResponse {
|
|
2536
|
+
/** 查询的地点信息 */
|
|
2537
|
+
items?: Location[]
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2266
2540
|
export interface ActiveCorehrV2LocationRequest {
|
|
2267
2541
|
/** 地点 ID */
|
|
2268
2542
|
location_id: string
|
|
@@ -2358,6 +2632,11 @@ export interface CreateCorehrV2LocationAddressQuery {
|
|
|
2358
2632
|
client_token?: string
|
|
2359
2633
|
}
|
|
2360
2634
|
|
|
2635
|
+
export interface CreateCorehrV2LocationAddressResponse {
|
|
2636
|
+
/** 地址 ID */
|
|
2637
|
+
address_id?: string
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2361
2640
|
export interface CreateCorehrV1CompanyRequest {
|
|
2362
2641
|
/** 层级关系,内层字段见实体 */
|
|
2363
2642
|
hiberarchy_common: HiberarchyCommon
|
|
@@ -2398,6 +2677,10 @@ export interface CreateCorehrV1CompanyQuery {
|
|
|
2398
2677
|
client_token?: string
|
|
2399
2678
|
}
|
|
2400
2679
|
|
|
2680
|
+
export interface CreateCorehrV1CompanyResponse {
|
|
2681
|
+
company?: Company
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2401
2684
|
export interface PatchCorehrV1CompanyRequest {
|
|
2402
2685
|
/** 层级关系,内层字段见实体 */
|
|
2403
2686
|
hiberarchy_common?: HiberarchyCommon
|
|
@@ -2436,6 +2719,10 @@ export interface PatchCorehrV1CompanyQuery {
|
|
|
2436
2719
|
client_token?: string
|
|
2437
2720
|
}
|
|
2438
2721
|
|
|
2722
|
+
export interface PatchCorehrV1CompanyResponse {
|
|
2723
|
+
company?: Company
|
|
2724
|
+
}
|
|
2725
|
+
|
|
2439
2726
|
export interface ActiveCorehrV2CompanyRequest {
|
|
2440
2727
|
/** 公司ID */
|
|
2441
2728
|
company_id: string
|
|
@@ -2447,6 +2734,11 @@ export interface ActiveCorehrV2CompanyRequest {
|
|
|
2447
2734
|
operation_reason: string
|
|
2448
2735
|
}
|
|
2449
2736
|
|
|
2737
|
+
export interface GetCorehrV1CompanyResponse {
|
|
2738
|
+
/** 公司信息 */
|
|
2739
|
+
company?: Company
|
|
2740
|
+
}
|
|
2741
|
+
|
|
2450
2742
|
export interface QueryRecentChangeCorehrV2CompanyQuery extends Pagination {
|
|
2451
2743
|
/** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
|
|
2452
2744
|
start_date: string
|
|
@@ -2454,11 +2746,27 @@ export interface QueryRecentChangeCorehrV2CompanyQuery extends Pagination {
|
|
|
2454
2746
|
end_date: string
|
|
2455
2747
|
}
|
|
2456
2748
|
|
|
2749
|
+
export interface QueryRecentChangeCorehrV2CompanyResponse {
|
|
2750
|
+
/** 公司 ID 列表 */
|
|
2751
|
+
company_ids?: string[]
|
|
2752
|
+
/** 下一页页码 */
|
|
2753
|
+
page_token?: string
|
|
2754
|
+
/** 是否有下一页 */
|
|
2755
|
+
has_more?: boolean
|
|
2756
|
+
/** 删除的公司 ID 列表 */
|
|
2757
|
+
deleted_company_ids?: string[]
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2457
2760
|
export interface BatchGetCorehrV2CompanyRequest {
|
|
2458
2761
|
/** 公司 ID 列表 */
|
|
2459
2762
|
company_ids: string[]
|
|
2460
2763
|
}
|
|
2461
2764
|
|
|
2765
|
+
export interface BatchGetCorehrV2CompanyResponse {
|
|
2766
|
+
/** 查询的公司信息 */
|
|
2767
|
+
items?: Company[]
|
|
2768
|
+
}
|
|
2769
|
+
|
|
2462
2770
|
export interface CreateCorehrV2CostCenterRequest {
|
|
2463
2771
|
/** 成本中心名称 */
|
|
2464
2772
|
name: I18n[]
|
|
@@ -2479,6 +2787,10 @@ export interface CreateCorehrV2CostCenterQuery {
|
|
|
2479
2787
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
2480
2788
|
}
|
|
2481
2789
|
|
|
2790
|
+
export interface CreateCorehrV2CostCenterResponse {
|
|
2791
|
+
cost_center?: CostCenter
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2482
2794
|
export interface PatchCorehrV2CostCenterRequest {
|
|
2483
2795
|
/** 生效时间 */
|
|
2484
2796
|
effective_time: string
|
|
@@ -2493,13 +2805,28 @@ export interface PatchCorehrV2CostCenterQuery {
|
|
|
2493
2805
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
2494
2806
|
}
|
|
2495
2807
|
|
|
2496
|
-
export interface
|
|
2497
|
-
|
|
2498
|
-
|
|
2808
|
+
export interface PatchCorehrV2CostCenterResponse {
|
|
2809
|
+
cost_center?: CostCenter
|
|
2810
|
+
}
|
|
2811
|
+
|
|
2812
|
+
export interface QueryRecentChangeCorehrV2CostCenterQuery extends Pagination {
|
|
2813
|
+
/** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
|
|
2814
|
+
start_date: string
|
|
2499
2815
|
/** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
|
|
2500
2816
|
end_date: string
|
|
2501
2817
|
}
|
|
2502
2818
|
|
|
2819
|
+
export interface QueryRecentChangeCorehrV2CostCenterResponse {
|
|
2820
|
+
/** 成本中心 ID 列表 */
|
|
2821
|
+
cost_center_ids?: string[]
|
|
2822
|
+
/** 下一页页码 */
|
|
2823
|
+
page_token?: string
|
|
2824
|
+
/** 是否有下一页 */
|
|
2825
|
+
has_more?: boolean
|
|
2826
|
+
/** 删除的成本中心 ID 列表 */
|
|
2827
|
+
deleted_cost_center_ids?: string[]
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2503
2830
|
export interface SearchCorehrV2CostCenterRequest {
|
|
2504
2831
|
/** 成本中心ID 列表 */
|
|
2505
2832
|
cost_center_id_list?: string[]
|
|
@@ -2543,6 +2870,10 @@ export interface CreateCorehrV2CostCenterVersionQuery {
|
|
|
2543
2870
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
2544
2871
|
}
|
|
2545
2872
|
|
|
2873
|
+
export interface CreateCorehrV2CostCenterVersionResponse {
|
|
2874
|
+
version?: CostCenterVersion
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2546
2877
|
export interface PatchCorehrV2CostCenterVersionRequest {
|
|
2547
2878
|
/** 成本中心名称 */
|
|
2548
2879
|
name?: I18n[]
|
|
@@ -2563,6 +2894,10 @@ export interface PatchCorehrV2CostCenterVersionQuery {
|
|
|
2563
2894
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
2564
2895
|
}
|
|
2565
2896
|
|
|
2897
|
+
export interface PatchCorehrV2CostCenterVersionResponse {
|
|
2898
|
+
version?: CostCenterVersion
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2566
2901
|
export interface DeleteCorehrV2CostCenterVersionRequest {
|
|
2567
2902
|
/** 操作原因 */
|
|
2568
2903
|
operation_reason: string
|
|
@@ -2573,6 +2908,11 @@ export interface GetCorehrV2ApprovalGroupsQuery {
|
|
|
2573
2908
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
2574
2909
|
}
|
|
2575
2910
|
|
|
2911
|
+
export interface GetCorehrV2ApprovalGroupsResponse {
|
|
2912
|
+
/** 组织架构调整流程信息 */
|
|
2913
|
+
approval_group?: ApprovalGroup
|
|
2914
|
+
}
|
|
2915
|
+
|
|
2576
2916
|
export interface OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsRequest {
|
|
2577
2917
|
/** 部门调整记录 ID List */
|
|
2578
2918
|
department_change_ids?: string[]
|
|
@@ -2589,6 +2929,11 @@ export interface OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsQuery {
|
|
|
2589
2929
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
2590
2930
|
}
|
|
2591
2931
|
|
|
2932
|
+
export interface OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsResponse {
|
|
2933
|
+
/** 部门调整记录信息列表 */
|
|
2934
|
+
department_changes?: DepartmentChange[]
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2592
2937
|
export interface OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsRequest {
|
|
2593
2938
|
/** 人员异动记录 ID List */
|
|
2594
2939
|
job_change_ids?: string[]
|
|
@@ -2605,6 +2950,11 @@ export interface OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsQuery {
|
|
|
2605
2950
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
2606
2951
|
}
|
|
2607
2952
|
|
|
2953
|
+
export interface OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsResponse {
|
|
2954
|
+
/** 人员异动记录信息列表 */
|
|
2955
|
+
job_changes?: JobChange[]
|
|
2956
|
+
}
|
|
2957
|
+
|
|
2608
2958
|
export interface CreateCorehrV1JobFamilyRequest {
|
|
2609
2959
|
/** 名称 */
|
|
2610
2960
|
name: I18n[]
|
|
@@ -2625,6 +2975,10 @@ export interface CreateCorehrV1JobFamilyQuery {
|
|
|
2625
2975
|
client_token?: string
|
|
2626
2976
|
}
|
|
2627
2977
|
|
|
2978
|
+
export interface CreateCorehrV1JobFamilyResponse {
|
|
2979
|
+
job_family?: JobFamily
|
|
2980
|
+
}
|
|
2981
|
+
|
|
2628
2982
|
export interface PatchCorehrV1JobFamilyRequest {
|
|
2629
2983
|
/** 名称 */
|
|
2630
2984
|
name?: I18n[]
|
|
@@ -2645,6 +2999,15 @@ export interface PatchCorehrV1JobFamilyQuery {
|
|
|
2645
2999
|
client_token?: string
|
|
2646
3000
|
}
|
|
2647
3001
|
|
|
3002
|
+
export interface PatchCorehrV1JobFamilyResponse {
|
|
3003
|
+
job_family?: JobFamily
|
|
3004
|
+
}
|
|
3005
|
+
|
|
3006
|
+
export interface GetCorehrV1JobFamilyResponse {
|
|
3007
|
+
/** 职务序列信息 */
|
|
3008
|
+
job_family?: JobFamily
|
|
3009
|
+
}
|
|
3010
|
+
|
|
2648
3011
|
export interface QueryRecentChangeCorehrV2JobFamilyQuery extends Pagination {
|
|
2649
3012
|
/** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
|
|
2650
3013
|
start_date: string
|
|
@@ -2652,11 +3015,27 @@ export interface QueryRecentChangeCorehrV2JobFamilyQuery extends Pagination {
|
|
|
2652
3015
|
end_date: string
|
|
2653
3016
|
}
|
|
2654
3017
|
|
|
3018
|
+
export interface QueryRecentChangeCorehrV2JobFamilyResponse {
|
|
3019
|
+
/** 序列 ID 列表 */
|
|
3020
|
+
job_family_ids?: string[]
|
|
3021
|
+
/** 下一页页码 */
|
|
3022
|
+
page_token?: string
|
|
3023
|
+
/** 是否有下一页 */
|
|
3024
|
+
has_more?: boolean
|
|
3025
|
+
/** 删除的序列 ID 列表 */
|
|
3026
|
+
deleted_job_family_ids?: string[]
|
|
3027
|
+
}
|
|
3028
|
+
|
|
2655
3029
|
export interface BatchGetCorehrV2JobFamilyRequest {
|
|
2656
3030
|
/** 序列 ID 列表 */
|
|
2657
3031
|
job_family_ids: string[]
|
|
2658
3032
|
}
|
|
2659
3033
|
|
|
3034
|
+
export interface BatchGetCorehrV2JobFamilyResponse {
|
|
3035
|
+
/** 查询的序列信息 */
|
|
3036
|
+
items?: JobFamily[]
|
|
3037
|
+
}
|
|
3038
|
+
|
|
2660
3039
|
export interface CreateCorehrV1JobLevelRequest {
|
|
2661
3040
|
/** 职级数值 */
|
|
2662
3041
|
level_order: number
|
|
@@ -2679,6 +3058,10 @@ export interface CreateCorehrV1JobLevelQuery {
|
|
|
2679
3058
|
client_token?: string
|
|
2680
3059
|
}
|
|
2681
3060
|
|
|
3061
|
+
export interface CreateCorehrV1JobLevelResponse {
|
|
3062
|
+
job_level?: JobLevel
|
|
3063
|
+
}
|
|
3064
|
+
|
|
2682
3065
|
export interface PatchCorehrV1JobLevelRequest {
|
|
2683
3066
|
/** 职级数值 */
|
|
2684
3067
|
level_order?: number
|
|
@@ -2701,6 +3084,15 @@ export interface PatchCorehrV1JobLevelQuery {
|
|
|
2701
3084
|
client_token?: string
|
|
2702
3085
|
}
|
|
2703
3086
|
|
|
3087
|
+
export interface PatchCorehrV1JobLevelResponse {
|
|
3088
|
+
job_level?: JobLevel
|
|
3089
|
+
}
|
|
3090
|
+
|
|
3091
|
+
export interface GetCorehrV1JobLevelResponse {
|
|
3092
|
+
/** 职务级别信息 */
|
|
3093
|
+
job_level?: JobLevel
|
|
3094
|
+
}
|
|
3095
|
+
|
|
2704
3096
|
export interface QueryRecentChangeCorehrV2JobLevelQuery extends Pagination {
|
|
2705
3097
|
/** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
|
|
2706
3098
|
start_date: string
|
|
@@ -2708,11 +3100,27 @@ export interface QueryRecentChangeCorehrV2JobLevelQuery extends Pagination {
|
|
|
2708
3100
|
end_date: string
|
|
2709
3101
|
}
|
|
2710
3102
|
|
|
3103
|
+
export interface QueryRecentChangeCorehrV2JobLevelResponse {
|
|
3104
|
+
/** 职级 ID 列表 */
|
|
3105
|
+
job_level_ids?: string[]
|
|
3106
|
+
/** 下一页页码 */
|
|
3107
|
+
page_token?: string
|
|
3108
|
+
/** 是否有下一页 */
|
|
3109
|
+
has_more?: boolean
|
|
3110
|
+
/** 删除的职级 ID 列表 */
|
|
3111
|
+
deleted_job_level_ids?: string[]
|
|
3112
|
+
}
|
|
3113
|
+
|
|
2711
3114
|
export interface BatchGetCorehrV2JobLevelRequest {
|
|
2712
3115
|
/** 职级 ID 列表 */
|
|
2713
3116
|
job_level_ids: string[]
|
|
2714
3117
|
}
|
|
2715
3118
|
|
|
3119
|
+
export interface BatchGetCorehrV2JobLevelResponse {
|
|
3120
|
+
/** 查询的职级信息 */
|
|
3121
|
+
items?: JobLevel[]
|
|
3122
|
+
}
|
|
3123
|
+
|
|
2716
3124
|
export interface CreateCorehrV2JobGradeRequest {
|
|
2717
3125
|
/** 职等数值 */
|
|
2718
3126
|
grade_order: number
|
|
@@ -2729,6 +3137,11 @@ export interface CreateCorehrV2JobGradeQuery {
|
|
|
2729
3137
|
client_token?: string
|
|
2730
3138
|
}
|
|
2731
3139
|
|
|
3140
|
+
export interface CreateCorehrV2JobGradeResponse {
|
|
3141
|
+
/** 职等ID */
|
|
3142
|
+
grade_id?: string
|
|
3143
|
+
}
|
|
3144
|
+
|
|
2732
3145
|
export interface PatchCorehrV2JobGradeRequest {
|
|
2733
3146
|
/** 职等数值 */
|
|
2734
3147
|
grade_order?: number
|
|
@@ -2763,6 +3176,17 @@ export interface QueryRecentChangeCorehrV2JobGradeQuery extends Pagination {
|
|
|
2763
3176
|
end_date: string
|
|
2764
3177
|
}
|
|
2765
3178
|
|
|
3179
|
+
export interface QueryRecentChangeCorehrV2JobGradeResponse {
|
|
3180
|
+
/** 职等 ID 列表 */
|
|
3181
|
+
job_grade_ids?: string[]
|
|
3182
|
+
/** 下一页页码 */
|
|
3183
|
+
page_token?: string
|
|
3184
|
+
/** 是否有下一页 */
|
|
3185
|
+
has_more?: boolean
|
|
3186
|
+
/** 删除的职等 ID 列表 */
|
|
3187
|
+
deleted_job_grade_ids?: string[]
|
|
3188
|
+
}
|
|
3189
|
+
|
|
2766
3190
|
export interface CreateCorehrV1JobRequest {
|
|
2767
3191
|
/** 编码 */
|
|
2768
3192
|
code?: string
|
|
@@ -2791,6 +3215,10 @@ export interface CreateCorehrV1JobQuery {
|
|
|
2791
3215
|
client_token?: string
|
|
2792
3216
|
}
|
|
2793
3217
|
|
|
3218
|
+
export interface CreateCorehrV1JobResponse {
|
|
3219
|
+
job?: Job
|
|
3220
|
+
}
|
|
3221
|
+
|
|
2794
3222
|
export interface PatchCorehrV1JobRequest {
|
|
2795
3223
|
/** 编码 */
|
|
2796
3224
|
code?: string
|
|
@@ -2819,6 +3247,15 @@ export interface PatchCorehrV1JobQuery {
|
|
|
2819
3247
|
client_token?: string
|
|
2820
3248
|
}
|
|
2821
3249
|
|
|
3250
|
+
export interface PatchCorehrV1JobResponse {
|
|
3251
|
+
job?: Job
|
|
3252
|
+
}
|
|
3253
|
+
|
|
3254
|
+
export interface GetCorehrV2JobResponse {
|
|
3255
|
+
/** 职务信息 */
|
|
3256
|
+
job?: Job
|
|
3257
|
+
}
|
|
3258
|
+
|
|
2822
3259
|
export interface ListCorehrV2JobQuery extends Pagination {
|
|
2823
3260
|
/** 名称 */
|
|
2824
3261
|
name?: string
|
|
@@ -2833,6 +3270,11 @@ export interface WithdrawOnboardingCorehrV2PreHireRequest {
|
|
|
2833
3270
|
withdraw_reason: string
|
|
2834
3271
|
}
|
|
2835
3272
|
|
|
3273
|
+
export interface WithdrawOnboardingCorehrV2PreHireResponse {
|
|
3274
|
+
/** 是否成功撤销入职 */
|
|
3275
|
+
success?: boolean
|
|
3276
|
+
}
|
|
3277
|
+
|
|
2836
3278
|
export interface RestoreFlowInstanceCorehrV2PreHireRequest {
|
|
2837
3279
|
/** 待入职ID,可从待入职列表接口获取 */
|
|
2838
3280
|
pre_hire_id: string
|
|
@@ -2840,6 +3282,11 @@ export interface RestoreFlowInstanceCorehrV2PreHireRequest {
|
|
|
2840
3282
|
confirm_workforce?: boolean
|
|
2841
3283
|
}
|
|
2842
3284
|
|
|
3285
|
+
export interface RestoreFlowInstanceCorehrV2PreHireResponse {
|
|
3286
|
+
/** 是否成功恢复入职 */
|
|
3287
|
+
success?: boolean
|
|
3288
|
+
}
|
|
3289
|
+
|
|
2843
3290
|
export interface CreateCorehrV2PreHireRequest {
|
|
2844
3291
|
/** 个人信息 */
|
|
2845
3292
|
basic_info: BasicInfo
|
|
@@ -2855,6 +3302,11 @@ export interface CreateCorehrV2PreHireRequest {
|
|
|
2855
3302
|
out_biz_id?: string
|
|
2856
3303
|
}
|
|
2857
3304
|
|
|
3305
|
+
export interface CreateCorehrV2PreHireResponse {
|
|
3306
|
+
/** 待入职 ID */
|
|
3307
|
+
pre_hire_id?: string
|
|
3308
|
+
}
|
|
3309
|
+
|
|
2858
3310
|
export interface PatchCorehrV2PreHireRequest {
|
|
2859
3311
|
/** 更新个人(person)信息 */
|
|
2860
3312
|
basic_info_update?: BasicInfoUpdate
|
|
@@ -2868,6 +3320,11 @@ export interface PatchCorehrV2PreHireRequest {
|
|
|
2868
3320
|
person_custom_update_fields?: string[]
|
|
2869
3321
|
}
|
|
2870
3322
|
|
|
3323
|
+
export interface PatchCorehrV2PreHireResponse {
|
|
3324
|
+
/** 待入职ID */
|
|
3325
|
+
pre_hire_id?: string
|
|
3326
|
+
}
|
|
3327
|
+
|
|
2871
3328
|
export interface QueryCorehrV2PreHireRequest {
|
|
2872
3329
|
/** 待入职人员 ID 列表;如果该字段非空,则不按照page_size、page_token分页方式查询 */
|
|
2873
3330
|
pre_hire_ids?: string[]
|
|
@@ -2882,6 +3339,11 @@ export interface QueryCorehrV2PreHireQuery extends Pagination {
|
|
|
2882
3339
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
2883
3340
|
}
|
|
2884
3341
|
|
|
3342
|
+
export interface GetCorehrV1PreHireResponse {
|
|
3343
|
+
/** 待入职信息 */
|
|
3344
|
+
pre_hire?: PreHire
|
|
3345
|
+
}
|
|
3346
|
+
|
|
2885
3347
|
export interface ListCorehrV1PreHireQuery extends Pagination {
|
|
2886
3348
|
/** 待入职ID列表 */
|
|
2887
3349
|
pre_hire_ids?: string[]
|
|
@@ -2936,6 +3398,16 @@ export interface TransitTaskCorehrV2PreHireRequest {
|
|
|
2936
3398
|
task_id: string
|
|
2937
3399
|
}
|
|
2938
3400
|
|
|
3401
|
+
export interface TransitTaskCorehrV2PreHireResponse {
|
|
3402
|
+
/** 是否成功流转任务 */
|
|
3403
|
+
success?: boolean
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
export interface CompleteCorehrV2PreHireResponse {
|
|
3407
|
+
/** 是否成功完成入职 */
|
|
3408
|
+
success?: boolean
|
|
3409
|
+
}
|
|
3410
|
+
|
|
2939
3411
|
export interface PatchCorehrV1PreHireRequest {
|
|
2940
3412
|
/** 招聘系统的候选人 ID */
|
|
2941
3413
|
ats_application_id?: string
|
|
@@ -2962,6 +3434,10 @@ export interface PatchCorehrV1PreHireQuery {
|
|
|
2962
3434
|
client_token?: string
|
|
2963
3435
|
}
|
|
2964
3436
|
|
|
3437
|
+
export interface PatchCorehrV1PreHireResponse {
|
|
3438
|
+
pre_hire?: PreHire
|
|
3439
|
+
}
|
|
3440
|
+
|
|
2965
3441
|
export interface CreateCorehrV2ProbationAssessmentRequest {
|
|
2966
3442
|
/** 试用期人员的雇佣 ID */
|
|
2967
3443
|
employment_id: string
|
|
@@ -2976,6 +3452,11 @@ export interface CreateCorehrV2ProbationAssessmentQuery {
|
|
|
2976
3452
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
2977
3453
|
}
|
|
2978
3454
|
|
|
3455
|
+
export interface CreateCorehrV2ProbationAssessmentResponse {
|
|
3456
|
+
/** 创建的试用期考核记录 ID 列表,有序返回 */
|
|
3457
|
+
assessment_ids?: string[]
|
|
3458
|
+
}
|
|
3459
|
+
|
|
2979
3460
|
export interface EnableDisableAssessmentCorehrV2ProbationRequest {
|
|
2980
3461
|
/** 启用 / 停用状态。启用后可在试用期管理页面中可见试用期考核相关的字段。 */
|
|
2981
3462
|
active: boolean
|
|
@@ -3067,6 +3548,11 @@ export interface SubmitCorehrV2ProbationQuery {
|
|
|
3067
3548
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
3068
3549
|
}
|
|
3069
3550
|
|
|
3551
|
+
export interface SubmitCorehrV2ProbationResponse {
|
|
3552
|
+
/** 试用期信息 */
|
|
3553
|
+
probation_info?: ProbationInfoForSubmit
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3070
3556
|
export interface WithdrawCorehrV2ProbationRequest {
|
|
3071
3557
|
/** 试用期人员的雇佣 ID */
|
|
3072
3558
|
employment_id: string
|
|
@@ -3079,9 +3565,16 @@ export interface WithdrawCorehrV2ProbationQuery {
|
|
|
3079
3565
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
3080
3566
|
}
|
|
3081
3567
|
|
|
3568
|
+
export const enum CreateCorehrV2JobChangeRequestTransferMode {
|
|
3569
|
+
/** 直接异动 */
|
|
3570
|
+
Type1 = 1,
|
|
3571
|
+
/** 发起异动 */
|
|
3572
|
+
Type2 = 2,
|
|
3573
|
+
}
|
|
3574
|
+
|
|
3082
3575
|
export interface CreateCorehrV2JobChangeRequest {
|
|
3083
3576
|
/** 异动方式 */
|
|
3084
|
-
transfer_mode:
|
|
3577
|
+
transfer_mode: CreateCorehrV2JobChangeRequestTransferMode
|
|
3085
3578
|
/** 雇员id */
|
|
3086
3579
|
employment_id: string
|
|
3087
3580
|
/** 异动类型唯一标识 */
|
|
@@ -3107,6 +3600,31 @@ export interface CreateCorehrV2JobChangeQuery {
|
|
|
3107
3600
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
3108
3601
|
}
|
|
3109
3602
|
|
|
3603
|
+
export interface CreateCorehrV2JobChangeResponse {
|
|
3604
|
+
/** 异动记录 id */
|
|
3605
|
+
job_change_id?: string
|
|
3606
|
+
/** 雇员 id */
|
|
3607
|
+
employment_id?: string
|
|
3608
|
+
/** 异动状态 */
|
|
3609
|
+
status?: 'Approving' | 'Approved' | 'Transformed' | 'Rejected' | 'Cancelled' | 'NoNeedApproval'
|
|
3610
|
+
/** 异动类型 */
|
|
3611
|
+
transfer_type_unique_identifier?: string
|
|
3612
|
+
/** 异动原因 */
|
|
3613
|
+
transfer_reason_unique_identifier?: string
|
|
3614
|
+
/** 异动流程 id */
|
|
3615
|
+
process_id?: string
|
|
3616
|
+
/** 生效时间 */
|
|
3617
|
+
effective_date?: string
|
|
3618
|
+
/** 创建时间 */
|
|
3619
|
+
created_time?: string
|
|
3620
|
+
/** 异动详细信息 */
|
|
3621
|
+
transfer_info?: TransferInfo
|
|
3622
|
+
/** 是否调整薪酬 */
|
|
3623
|
+
is_adjust_salary?: boolean
|
|
3624
|
+
/** 异动自定义字段 */
|
|
3625
|
+
custom_fields?: CustomFieldData[]
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3110
3628
|
export interface QueryCorehrV1TransferTypeQuery {
|
|
3111
3629
|
/** 异动类型状态 */
|
|
3112
3630
|
active?: boolean
|
|
@@ -3114,6 +3632,11 @@ export interface QueryCorehrV1TransferTypeQuery {
|
|
|
3114
3632
|
transfer_type_unique_identifier?: string[]
|
|
3115
3633
|
}
|
|
3116
3634
|
|
|
3635
|
+
export interface QueryCorehrV1TransferTypeResponse {
|
|
3636
|
+
/** 异动类型列表 */
|
|
3637
|
+
items?: TransferType[]
|
|
3638
|
+
}
|
|
3639
|
+
|
|
3117
3640
|
export interface QueryCorehrV1TransferReasonQuery {
|
|
3118
3641
|
/** 异动原因状态 */
|
|
3119
3642
|
active?: boolean
|
|
@@ -3121,6 +3644,11 @@ export interface QueryCorehrV1TransferReasonQuery {
|
|
|
3121
3644
|
transfer_reason_unique_identifier?: string[]
|
|
3122
3645
|
}
|
|
3123
3646
|
|
|
3647
|
+
export interface QueryCorehrV1TransferReasonResponse {
|
|
3648
|
+
/** 异动原因列表 */
|
|
3649
|
+
items?: TransferReason[]
|
|
3650
|
+
}
|
|
3651
|
+
|
|
3124
3652
|
export interface SearchCorehrV2JobChangeRequest {
|
|
3125
3653
|
/** 雇员 ID 列表 */
|
|
3126
3654
|
employment_ids?: string[]
|
|
@@ -3183,6 +3711,42 @@ export interface CreateCorehrV1JobChangeQuery {
|
|
|
3183
3711
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
3184
3712
|
}
|
|
3185
3713
|
|
|
3714
|
+
export const enum CreateCorehrV1JobChangeResponseStatus {
|
|
3715
|
+
/** Approving 审批中 */
|
|
3716
|
+
Approving = 0,
|
|
3717
|
+
/** Approved 审批通过 */
|
|
3718
|
+
Approved = 1,
|
|
3719
|
+
/** Transformed 已异动 */
|
|
3720
|
+
Transformed = 2,
|
|
3721
|
+
/** Rejected 已拒绝 */
|
|
3722
|
+
Rejected = 3,
|
|
3723
|
+
/** Cancelled 已撤销 */
|
|
3724
|
+
Cancelled = 4,
|
|
3725
|
+
/** NoNeedApproval 无需审批 */
|
|
3726
|
+
NoNeedApproval = 5,
|
|
3727
|
+
}
|
|
3728
|
+
|
|
3729
|
+
export interface CreateCorehrV1JobChangeResponse {
|
|
3730
|
+
/** 异动记录 id */
|
|
3731
|
+
job_change_id?: string
|
|
3732
|
+
/** 雇员 id */
|
|
3733
|
+
employment_id?: string
|
|
3734
|
+
/** 异动状态 */
|
|
3735
|
+
status?: CreateCorehrV1JobChangeResponseStatus
|
|
3736
|
+
/** 异动类型 */
|
|
3737
|
+
transfer_type_unique_identifier?: string
|
|
3738
|
+
/** 异动原因 */
|
|
3739
|
+
transfer_reason_unique_identifier?: string
|
|
3740
|
+
/** 异动流程 id */
|
|
3741
|
+
process_id?: string
|
|
3742
|
+
/** 生效时间 */
|
|
3743
|
+
effective_date?: string
|
|
3744
|
+
/** 创建时间 */
|
|
3745
|
+
created_time?: string
|
|
3746
|
+
/** 异动详细信息 */
|
|
3747
|
+
transfer_info?: TransferInfo
|
|
3748
|
+
}
|
|
3749
|
+
|
|
3186
3750
|
export interface QueryCorehrV1OffboardingRequest {
|
|
3187
3751
|
/** 是否启用 */
|
|
3188
3752
|
active?: boolean
|
|
@@ -3190,9 +3754,21 @@ export interface QueryCorehrV1OffboardingRequest {
|
|
|
3190
3754
|
offboarding_reason_unique_identifier?: string[]
|
|
3191
3755
|
}
|
|
3192
3756
|
|
|
3757
|
+
export interface QueryCorehrV1OffboardingResponse {
|
|
3758
|
+
/** 离职原因列表 */
|
|
3759
|
+
items?: OffboardingReason[]
|
|
3760
|
+
}
|
|
3761
|
+
|
|
3762
|
+
export const enum SubmitV2CorehrV2OffboardingRequestOffboardingMode {
|
|
3763
|
+
/** 直接离职 */
|
|
3764
|
+
TerminationOfDismissal = 1,
|
|
3765
|
+
/** 发起离职审批 */
|
|
3766
|
+
OffboardingWithProcess = 2,
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3193
3769
|
export interface SubmitV2CorehrV2OffboardingRequest {
|
|
3194
3770
|
/** 离职方式 */
|
|
3195
|
-
offboarding_mode:
|
|
3771
|
+
offboarding_mode: SubmitV2CorehrV2OffboardingRequestOffboardingMode
|
|
3196
3772
|
/** 雇员 id */
|
|
3197
3773
|
employment_id: string
|
|
3198
3774
|
/** 离职日期 */
|
|
@@ -3222,18 +3798,48 @@ export interface SubmitV2CorehrV2OffboardingQuery {
|
|
|
3222
3798
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
3223
3799
|
}
|
|
3224
3800
|
|
|
3225
|
-
export interface
|
|
3226
|
-
/** 离职记录
|
|
3227
|
-
offboarding_id
|
|
3228
|
-
/**
|
|
3229
|
-
|
|
3230
|
-
/**
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3801
|
+
export interface SubmitV2CorehrV2OffboardingResponse {
|
|
3802
|
+
/** 离职记录 id */
|
|
3803
|
+
offboarding_id?: string
|
|
3804
|
+
/** 雇员 id */
|
|
3805
|
+
employment_id?: string
|
|
3806
|
+
/** 离职原因 */
|
|
3807
|
+
offboarding_reason_unique_identifier?: string
|
|
3808
|
+
/** 离职日期 */
|
|
3809
|
+
offboarding_date?: string
|
|
3810
|
+
/** 离职原因说明 */
|
|
3811
|
+
offboarding_reason_explanation?: string
|
|
3812
|
+
/** 是否加入离职屏蔽名单 */
|
|
3813
|
+
add_block_list?: boolean
|
|
3814
|
+
/** 屏蔽原因 */
|
|
3815
|
+
block_reason?: string
|
|
3816
|
+
/** 屏蔽原因说明 */
|
|
3817
|
+
block_reason_explanation?: string
|
|
3818
|
+
/** 创建时间 */
|
|
3819
|
+
created_time?: string
|
|
3820
|
+
/** 离职是否保留飞书账号 */
|
|
3821
|
+
retain_account?: boolean
|
|
3822
|
+
/** 编制随人员一起调整 */
|
|
3823
|
+
is_transfer_with_workforce?: boolean
|
|
3824
|
+
}
|
|
3825
|
+
|
|
3826
|
+
export interface EditCorehrV2OffboardingRequest {
|
|
3827
|
+
/** 离职记录 ID */
|
|
3828
|
+
offboarding_id: string
|
|
3829
|
+
/** 操作人雇佣 ID(employment_id),为空默认为系统操作。 */
|
|
3830
|
+
operator_id?: string
|
|
3831
|
+
/** 编辑字段数据信息 */
|
|
3832
|
+
update_data: ObjectFieldData[]
|
|
3833
|
+
}
|
|
3834
|
+
|
|
3835
|
+
export interface EditCorehrV2OffboardingQuery {
|
|
3836
|
+
/** 用户 ID 类型 */
|
|
3837
|
+
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
3838
|
+
}
|
|
3839
|
+
|
|
3840
|
+
export interface EditCorehrV2OffboardingResponse {
|
|
3841
|
+
/** 编辑字段数据信息 */
|
|
3842
|
+
data: ObjectFieldData[]
|
|
3237
3843
|
}
|
|
3238
3844
|
|
|
3239
3845
|
export interface RevokeCorehrV2OffboardingRequest {
|
|
@@ -3310,6 +3916,10 @@ export interface CreateCorehrV1ContractQuery {
|
|
|
3310
3916
|
client_token?: string
|
|
3311
3917
|
}
|
|
3312
3918
|
|
|
3919
|
+
export interface CreateCorehrV1ContractResponse {
|
|
3920
|
+
contract?: Contract
|
|
3921
|
+
}
|
|
3922
|
+
|
|
3313
3923
|
export interface PatchCorehrV1ContractRequest {
|
|
3314
3924
|
/** 合同开始日期 */
|
|
3315
3925
|
effective_time?: string
|
|
@@ -3340,6 +3950,15 @@ export interface PatchCorehrV1ContractQuery {
|
|
|
3340
3950
|
client_token?: string
|
|
3341
3951
|
}
|
|
3342
3952
|
|
|
3953
|
+
export interface PatchCorehrV1ContractResponse {
|
|
3954
|
+
contract?: Contract
|
|
3955
|
+
}
|
|
3956
|
+
|
|
3957
|
+
export interface GetCorehrV1ContractResponse {
|
|
3958
|
+
/** 合同信息 */
|
|
3959
|
+
contract?: Contract
|
|
3960
|
+
}
|
|
3961
|
+
|
|
3343
3962
|
export interface SearchCorehrV2ContractRequest {
|
|
3344
3963
|
/** 雇佣 ID 列表 */
|
|
3345
3964
|
employment_id_list?: string[]
|
|
@@ -3391,6 +4010,13 @@ export interface ListCorehrV2WorkforcePlanQuery {
|
|
|
3391
4010
|
active?: boolean
|
|
3392
4011
|
}
|
|
3393
4012
|
|
|
4013
|
+
export interface ListCorehrV2WorkforcePlanResponse {
|
|
4014
|
+
/** 方案列表 */
|
|
4015
|
+
items?: WorkforcePlan[]
|
|
4016
|
+
/** 方案总数 */
|
|
4017
|
+
total?: number
|
|
4018
|
+
}
|
|
4019
|
+
|
|
3394
4020
|
export interface BatchCorehrV2WorkforcePlanDetailRequest {
|
|
3395
4021
|
/** 编制规划方案ID,ID及详细信息可通过获取编制规划方案列表接口查询获得。查询编制规划明细信息时,编制规划方案ID必填,是否为集中填报项目设置为false,不填写集中填报项目ID(是否填写不影响返回结果) */
|
|
3396
4022
|
workforce_plan_id?: string
|
|
@@ -3414,6 +4040,19 @@ export interface BatchCorehrV2WorkforcePlanDetailRequest {
|
|
|
3414
4040
|
cost_center_ids?: string[]
|
|
3415
4041
|
}
|
|
3416
4042
|
|
|
4043
|
+
export interface BatchCorehrV2WorkforcePlanDetailResponse {
|
|
4044
|
+
/** 编制规划方案 ID */
|
|
4045
|
+
workforce_plan_id?: string
|
|
4046
|
+
/** 集中填报项目 ID */
|
|
4047
|
+
centralized_reporting_project_id?: string
|
|
4048
|
+
/** 编制规划明细信息 */
|
|
4049
|
+
items?: WorkforcePlanDetail[]
|
|
4050
|
+
/** 分页标识 */
|
|
4051
|
+
page_token?: string
|
|
4052
|
+
/** 是否还有更多项 */
|
|
4053
|
+
has_more?: boolean
|
|
4054
|
+
}
|
|
4055
|
+
|
|
3417
4056
|
export interface CreateCorehrV1LeaveGrantingRecordRequest {
|
|
3418
4057
|
/** 假期类型 ID,枚举值可通过【获取假期类型列表】接口获取(若假期类型下存在假期子类,此处仅支持传入假期子类的 ID) */
|
|
3419
4058
|
leave_type_id: string
|
|
@@ -3440,6 +4079,11 @@ export interface CreateCorehrV1LeaveGrantingRecordQuery {
|
|
|
3440
4079
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
3441
4080
|
}
|
|
3442
4081
|
|
|
4082
|
+
export interface CreateCorehrV1LeaveGrantingRecordResponse {
|
|
4083
|
+
/** 假期授予记录 */
|
|
4084
|
+
leave_granting_record?: LeaveGrantingRecord
|
|
4085
|
+
}
|
|
4086
|
+
|
|
3443
4087
|
export interface LeaveTypesCorehrV1LeaveQuery extends Pagination {
|
|
3444
4088
|
/** 假期类型状态(不传则为全部)可选值有:- 1:已启用- 2:已停用 */
|
|
3445
4089
|
status?: string
|
|
@@ -3518,6 +4162,13 @@ export interface WorkCalendarCorehrV1LeaveRequest {
|
|
|
3518
4162
|
only_enable?: boolean
|
|
3519
4163
|
}
|
|
3520
4164
|
|
|
4165
|
+
export interface WorkCalendarCorehrV1LeaveResponse {
|
|
4166
|
+
/** 工作日历列表 */
|
|
4167
|
+
work_calendars?: WorkCalendarDetail[]
|
|
4168
|
+
/** 入参count=true,则返回符合条件的工作日历总数 */
|
|
4169
|
+
count?: number
|
|
4170
|
+
}
|
|
4171
|
+
|
|
3521
4172
|
export interface CalendarByScopeCorehrV1LeaveQuery {
|
|
3522
4173
|
/** 用户所属部门的ID列表 */
|
|
3523
4174
|
wk_department_id?: string
|
|
@@ -3535,6 +4186,11 @@ export interface CalendarByScopeCorehrV1LeaveQuery {
|
|
|
3535
4186
|
wk_company_id?: string
|
|
3536
4187
|
}
|
|
3537
4188
|
|
|
4189
|
+
export interface CalendarByScopeCorehrV1LeaveResponse {
|
|
4190
|
+
/** 工作日历id */
|
|
4191
|
+
calendar_wk_id?: string
|
|
4192
|
+
}
|
|
4193
|
+
|
|
3538
4194
|
export interface WorkCalendarDateCorehrV1LeaveRequest {
|
|
3539
4195
|
/** 工作日历WKID列表,最多100 */
|
|
3540
4196
|
wk_calendar_ids: string[]
|
|
@@ -3552,6 +4208,11 @@ export interface WorkCalendarDateCorehrV1LeaveRequest {
|
|
|
3552
4208
|
ids?: string[]
|
|
3553
4209
|
}
|
|
3554
4210
|
|
|
4211
|
+
export interface WorkCalendarDateCorehrV1LeaveResponse {
|
|
4212
|
+
/** 日期类型列表 */
|
|
4213
|
+
calendar_dates?: WkCalendarDate[]
|
|
4214
|
+
}
|
|
4215
|
+
|
|
3555
4216
|
export interface QueryCorehrV1AuthorizationQuery extends Pagination {
|
|
3556
4217
|
/** 员工ID列表,最大100个(不传则默认查询全部员工) */
|
|
3557
4218
|
employment_id_list?: string[]
|
|
@@ -3572,6 +4233,11 @@ export interface GetByParamCorehrV1AuthorizationQuery {
|
|
|
3572
4233
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
3573
4234
|
}
|
|
3574
4235
|
|
|
4236
|
+
export interface GetByParamCorehrV1AuthorizationResponse {
|
|
4237
|
+
/** 角色授权信息 */
|
|
4238
|
+
role_authorization?: RoleAuthorization
|
|
4239
|
+
}
|
|
4240
|
+
|
|
3575
4241
|
export interface AddRoleAssignCorehrV1AuthorizationRequest {
|
|
3576
4242
|
/** 授权 */
|
|
3577
4243
|
assigned_organization_items: AssignedOrganizationWithCode[][]
|
|
@@ -3586,6 +4252,11 @@ export interface AddRoleAssignCorehrV1AuthorizationQuery {
|
|
|
3586
4252
|
role_id: string
|
|
3587
4253
|
}
|
|
3588
4254
|
|
|
4255
|
+
export interface AddRoleAssignCorehrV1AuthorizationResponse {
|
|
4256
|
+
/** 授权id */
|
|
4257
|
+
assign_id?: string
|
|
4258
|
+
}
|
|
4259
|
+
|
|
3589
4260
|
export interface UpdateRoleAssignCorehrV1AuthorizationRequest {
|
|
3590
4261
|
/** 授权 */
|
|
3591
4262
|
assigned_organization_items: AssignedOrganizationWithCode[][]
|
|
@@ -3600,6 +4271,11 @@ export interface UpdateRoleAssignCorehrV1AuthorizationQuery {
|
|
|
3600
4271
|
role_id: string
|
|
3601
4272
|
}
|
|
3602
4273
|
|
|
4274
|
+
export interface UpdateRoleAssignCorehrV1AuthorizationResponse {
|
|
4275
|
+
/** 授权id */
|
|
4276
|
+
assign_id?: string
|
|
4277
|
+
}
|
|
4278
|
+
|
|
3603
4279
|
export interface RemoveRoleAssignCorehrV1AuthorizationQuery {
|
|
3604
4280
|
/** 雇员 ID */
|
|
3605
4281
|
employment_id: string
|
|
@@ -3609,6 +4285,11 @@ export interface RemoveRoleAssignCorehrV1AuthorizationQuery {
|
|
|
3609
4285
|
role_id: string
|
|
3610
4286
|
}
|
|
3611
4287
|
|
|
4288
|
+
export interface RemoveRoleAssignCorehrV1AuthorizationResponse {
|
|
4289
|
+
/** 授权id */
|
|
4290
|
+
assign_id?: string
|
|
4291
|
+
}
|
|
4292
|
+
|
|
3612
4293
|
export interface BatchGetCorehrV2EmployeesBpRequest {
|
|
3613
4294
|
/** 员工雇佣 ID */
|
|
3614
4295
|
employment_ids: string[]
|
|
@@ -3621,6 +4302,13 @@ export interface BatchGetCorehrV2EmployeesBpQuery {
|
|
|
3621
4302
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
3622
4303
|
}
|
|
3623
4304
|
|
|
4305
|
+
export interface BatchGetCorehrV2EmployeesBpResponse {
|
|
4306
|
+
/** 员工直属 BP 信息,当员工所在部门、属地无 BP 时,会上钻找到最近的 BP */
|
|
4307
|
+
employment_direct_bps?: EmploymentBp[]
|
|
4308
|
+
/** 员工全部 BP 信息 */
|
|
4309
|
+
employment_all_bps?: EmploymentBp[]
|
|
4310
|
+
}
|
|
4311
|
+
|
|
3624
4312
|
export interface GetByDepartmentCorehrV2BpRequest {
|
|
3625
4313
|
/** 部门 ID */
|
|
3626
4314
|
department_id: string
|
|
@@ -3633,6 +4321,11 @@ export interface GetByDepartmentCorehrV2BpQuery {
|
|
|
3633
4321
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
3634
4322
|
}
|
|
3635
4323
|
|
|
4324
|
+
export interface GetByDepartmentCorehrV2BpResponse {
|
|
4325
|
+
/** 部门 HRBP 信息,依次为部门及各层级上级部门 */
|
|
4326
|
+
items?: DepartmentHrbp[]
|
|
4327
|
+
}
|
|
4328
|
+
|
|
3636
4329
|
export interface QueryCorehrV1SecurityGroupRequest {
|
|
3637
4330
|
/** 角色列表,一次最多支持查询 50 个 */
|
|
3638
4331
|
item_list: BpRoleOrganization[]
|
|
@@ -3647,6 +4340,11 @@ export interface QueryCorehrV1SecurityGroupQuery {
|
|
|
3647
4340
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
3648
4341
|
}
|
|
3649
4342
|
|
|
4343
|
+
export interface QueryCorehrV1SecurityGroupResponse {
|
|
4344
|
+
/** HRBP/属地 BP 信息 */
|
|
4345
|
+
hrbp_list?: Hrbp[]
|
|
4346
|
+
}
|
|
4347
|
+
|
|
3650
4348
|
export interface ListCorehrV2BpQuery extends Pagination {
|
|
3651
4349
|
/** 用户 ID 类型 */
|
|
3652
4350
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
@@ -3688,6 +4386,73 @@ export interface GetCorehrV2ProcessQuery {
|
|
|
3688
4386
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
3689
4387
|
}
|
|
3690
4388
|
|
|
4389
|
+
export const enum GetCorehrV2ProcessResponseStatus {
|
|
4390
|
+
/** 进行中 */
|
|
4391
|
+
Running = 1,
|
|
4392
|
+
/** 拒绝 */
|
|
4393
|
+
Reject = 2,
|
|
4394
|
+
/** 撤回 */
|
|
4395
|
+
Withdraw = 4,
|
|
4396
|
+
/** 撤销 */
|
|
4397
|
+
Revoke = 8,
|
|
4398
|
+
/** 已完成 */
|
|
4399
|
+
Complete = 9,
|
|
4400
|
+
}
|
|
4401
|
+
|
|
4402
|
+
export const enum GetCorehrV2ProcessResponseProperties {
|
|
4403
|
+
/** 普通流程 */
|
|
4404
|
+
Common = 1,
|
|
4405
|
+
/** 撤销流程 */
|
|
4406
|
+
CheXiao = 2,
|
|
4407
|
+
/** 更正流程 */
|
|
4408
|
+
Correct = 3,
|
|
4409
|
+
}
|
|
4410
|
+
|
|
4411
|
+
export interface GetCorehrV2ProcessResponse {
|
|
4412
|
+
/** 流程实例ID */
|
|
4413
|
+
process_id?: string
|
|
4414
|
+
/** 流程状态 */
|
|
4415
|
+
status?: GetCorehrV2ProcessResponseStatus
|
|
4416
|
+
/** 业务类型ID */
|
|
4417
|
+
flow_template_id?: string
|
|
4418
|
+
/** 业务类型名称 */
|
|
4419
|
+
flow_template_name?: DataengineI18n
|
|
4420
|
+
/** 流程定义ID */
|
|
4421
|
+
flow_definition_id?: string
|
|
4422
|
+
/** 流程定义名称 */
|
|
4423
|
+
flow_definition_name?: DataengineI18n
|
|
4424
|
+
/** 流程发起人ID */
|
|
4425
|
+
initiator_id?: string
|
|
4426
|
+
/** 流程发起人姓名 */
|
|
4427
|
+
initiator_name?: DataengineI18n
|
|
4428
|
+
/** 流程发起时间,Unix毫秒时间戳 */
|
|
4429
|
+
create_time?: string
|
|
4430
|
+
/** 流程结束时间,Unix毫秒时间戳 */
|
|
4431
|
+
complete_time?: string
|
|
4432
|
+
/** 发起单据地址 */
|
|
4433
|
+
start_links?: ProcessLink
|
|
4434
|
+
/** 流程摘要,会随着流程流转发生变化 */
|
|
4435
|
+
abstracts?: ProcessAbstractItem[]
|
|
4436
|
+
/** 待办列表 */
|
|
4437
|
+
todos?: ProcessTodoItem[]
|
|
4438
|
+
/** 抄送列表 */
|
|
4439
|
+
cc_list?: ProcessCcItem[]
|
|
4440
|
+
/** 已办列表 */
|
|
4441
|
+
done_list?: ProcessDoneItem[]
|
|
4442
|
+
/** 普通流程或撤销流程等 */
|
|
4443
|
+
properties?: GetCorehrV2ProcessResponseProperties
|
|
4444
|
+
/** 系统待办列表 */
|
|
4445
|
+
system_todos?: ProcessSystemTodoItem[]
|
|
4446
|
+
/** 系统已办列表 */
|
|
4447
|
+
system_done_list?: ProcessSystemDoneItem[]
|
|
4448
|
+
/** 评论列表 */
|
|
4449
|
+
comment_infos?: ProcessCommentInfo[]
|
|
4450
|
+
/** 更正流程原流程ID */
|
|
4451
|
+
original_process_id?: string
|
|
4452
|
+
/** 是否最新的「已完成」的更正流程 */
|
|
4453
|
+
is_last_completed_correct_process?: boolean
|
|
4454
|
+
}
|
|
4455
|
+
|
|
3691
4456
|
export interface GetCorehrV2ProcessFormVariableDataQuery {
|
|
3692
4457
|
/** 用户 ID 类型 */
|
|
3693
4458
|
user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id'
|
|
@@ -3695,6 +4460,13 @@ export interface GetCorehrV2ProcessFormVariableDataQuery {
|
|
|
3695
4460
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
3696
4461
|
}
|
|
3697
4462
|
|
|
4463
|
+
export interface GetCorehrV2ProcessFormVariableDataResponse {
|
|
4464
|
+
/** 表单数据 */
|
|
4465
|
+
field_variable_values?: FieldVariableValue[]
|
|
4466
|
+
/** 流程实例id */
|
|
4467
|
+
process_id?: string
|
|
4468
|
+
}
|
|
4469
|
+
|
|
3698
4470
|
export interface UpdateCorehrV2ProcessRevokeRequest {
|
|
3699
4471
|
/** 按照指定的用户ID类型传递对应的用户ID。 */
|
|
3700
4472
|
user_id?: string
|
|
@@ -3732,9 +4504,16 @@ export interface ListCorehrV2ApproverQuery extends Pagination {
|
|
|
3732
4504
|
approver_status?: -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 12 | 14 | 16
|
|
3733
4505
|
}
|
|
3734
4506
|
|
|
4507
|
+
export const enum UpdateCorehrV2ProcessApproverRequestStatus {
|
|
4508
|
+
/** 拒绝 */
|
|
4509
|
+
Approved = 2,
|
|
4510
|
+
/** 通过 */
|
|
4511
|
+
Rejected = 3,
|
|
4512
|
+
}
|
|
4513
|
+
|
|
3735
4514
|
export interface UpdateCorehrV2ProcessApproverRequest {
|
|
3736
4515
|
/** 将审批任务修改为同意/拒绝 */
|
|
3737
|
-
status:
|
|
4516
|
+
status: UpdateCorehrV2ProcessApproverRequestStatus
|
|
3738
4517
|
/** 按user_id_type类型传递。如果system_approval为false,则必填。否则非必填。 */
|
|
3739
4518
|
user_id?: string
|
|
3740
4519
|
/** true - 使用系统身份审批 */
|
|
@@ -3752,6 +4531,29 @@ export interface UpdateCorehrV2ProcessApproverQuery {
|
|
|
3752
4531
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
3753
4532
|
}
|
|
3754
4533
|
|
|
4534
|
+
export interface UpdateCorehrV2ProcessApproverResponse {
|
|
4535
|
+
/** 错误码,非 0 表示失败 */
|
|
4536
|
+
code: number
|
|
4537
|
+
/** 错误描述 */
|
|
4538
|
+
msg?: string
|
|
4539
|
+
}
|
|
4540
|
+
|
|
4541
|
+
export const enum UpdateCorehrV2ProcessExtraRequestExtraType {
|
|
4542
|
+
/** 前加签 */
|
|
4543
|
+
PreExtra = 0,
|
|
4544
|
+
/** 并加签 */
|
|
4545
|
+
CurrentExtra = 1,
|
|
4546
|
+
/** 后加签 */
|
|
4547
|
+
PostExtra = 2,
|
|
4548
|
+
}
|
|
4549
|
+
|
|
4550
|
+
export const enum UpdateCorehrV2ProcessExtraRequestApprovalType {
|
|
4551
|
+
/** 或签 */
|
|
4552
|
+
OR = 0,
|
|
4553
|
+
/** 会签 */
|
|
4554
|
+
AND = 1,
|
|
4555
|
+
}
|
|
4556
|
+
|
|
3755
4557
|
export interface UpdateCorehrV2ProcessExtraRequest {
|
|
3756
4558
|
/** 操作人,当system_user为true时,可以不传值 */
|
|
3757
4559
|
operator?: string
|
|
@@ -3760,9 +4562,9 @@ export interface UpdateCorehrV2ProcessExtraRequest {
|
|
|
3760
4562
|
/** 审批任务id,与node_id二选一传入,都传以node_id为准 */
|
|
3761
4563
|
approver_id?: string
|
|
3762
4564
|
/** 加签方式 */
|
|
3763
|
-
extra_type:
|
|
4565
|
+
extra_type: UpdateCorehrV2ProcessExtraRequestExtraType
|
|
3764
4566
|
/** 多人加签时的审批方式 */
|
|
3765
|
-
approval_type?:
|
|
4567
|
+
approval_type?: UpdateCorehrV2ProcessExtraRequestApprovalType
|
|
3766
4568
|
/** 加签人员id列表 */
|
|
3767
4569
|
extra_user_ids: string[]
|
|
3768
4570
|
/** 备注 */
|
|
@@ -3829,16 +4631,55 @@ export interface MatchCorehrV1CompensationStandardQuery {
|
|
|
3829
4631
|
effective_time?: string
|
|
3830
4632
|
}
|
|
3831
4633
|
|
|
4634
|
+
export interface MatchCorehrV1CompensationStandardResponse {
|
|
4635
|
+
/** 薪资标准表ID */
|
|
4636
|
+
standard_id?: string
|
|
4637
|
+
/** 薪资等级 */
|
|
4638
|
+
grade?: CpstGrade
|
|
4639
|
+
/** 生效时间 */
|
|
4640
|
+
effective_time?: string
|
|
4641
|
+
}
|
|
4642
|
+
|
|
4643
|
+
export interface GetCorehrV1ProcessFormVariableDataResponse {
|
|
4644
|
+
/** 流程变量 */
|
|
4645
|
+
field_variable_values?: FormFieldVariable[]
|
|
4646
|
+
}
|
|
4647
|
+
|
|
3832
4648
|
export interface ListCorehrV1SubregionQuery extends Pagination {
|
|
3833
4649
|
/** 省份/行政区id,填写后只查询该省份/行政区下的城市/区域 */
|
|
3834
4650
|
subdivision_id?: string
|
|
3835
4651
|
}
|
|
3836
4652
|
|
|
4653
|
+
export interface GetCorehrV1SubregionResponse {
|
|
4654
|
+
/** 城市/区域信息 */
|
|
4655
|
+
subregion?: Subregion
|
|
4656
|
+
}
|
|
4657
|
+
|
|
3837
4658
|
export interface ListCorehrV1SubdivisionQuery extends Pagination {
|
|
3838
4659
|
/** 国家/地区id,填写后只查询该国家/地区下的省份/行政区 */
|
|
3839
4660
|
country_region_id?: string
|
|
3840
4661
|
}
|
|
3841
4662
|
|
|
4663
|
+
export interface GetCorehrV1SubdivisionResponse {
|
|
4664
|
+
/** 国家/地址信息 */
|
|
4665
|
+
subdivision?: Subdivision
|
|
4666
|
+
}
|
|
4667
|
+
|
|
4668
|
+
export interface GetCorehrV1CountryRegionResponse {
|
|
4669
|
+
/** 国家/地址信息 */
|
|
4670
|
+
country_region?: CountryRegion
|
|
4671
|
+
}
|
|
4672
|
+
|
|
4673
|
+
export interface GetCorehrV1CurrencyResponse {
|
|
4674
|
+
/** 货币信息 */
|
|
4675
|
+
currency?: Currency
|
|
4676
|
+
}
|
|
4677
|
+
|
|
4678
|
+
export interface GetCorehrV1JobResponse {
|
|
4679
|
+
/** 职务信息 */
|
|
4680
|
+
job?: Job
|
|
4681
|
+
}
|
|
4682
|
+
|
|
3842
4683
|
export interface PatchCorehrV1DepartmentRequest {
|
|
3843
4684
|
/** 实体在CoreHR内部的唯一键 */
|
|
3844
4685
|
id?: string
|
|
@@ -3869,6 +4710,10 @@ export interface PatchCorehrV1DepartmentQuery {
|
|
|
3869
4710
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
3870
4711
|
}
|
|
3871
4712
|
|
|
4713
|
+
export interface PatchCorehrV1DepartmentResponse {
|
|
4714
|
+
department?: Department
|
|
4715
|
+
}
|
|
4716
|
+
|
|
3872
4717
|
export interface GetCorehrV1DepartmentQuery {
|
|
3873
4718
|
/** 用户 ID 类型 */
|
|
3874
4719
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
@@ -3876,6 +4721,11 @@ export interface GetCorehrV1DepartmentQuery {
|
|
|
3876
4721
|
department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id'
|
|
3877
4722
|
}
|
|
3878
4723
|
|
|
4724
|
+
export interface GetCorehrV1DepartmentResponse {
|
|
4725
|
+
/** 部门信息 */
|
|
4726
|
+
department?: Department
|
|
4727
|
+
}
|
|
4728
|
+
|
|
3879
4729
|
export interface ListCorehrV1JobQuery extends Pagination {
|
|
3880
4730
|
/** 名称 */
|
|
3881
4731
|
name?: string
|
|
@@ -3944,6 +4794,10 @@ export interface PatchCorehrV1PersonQuery {
|
|
|
3944
4794
|
client_token?: string
|
|
3945
4795
|
}
|
|
3946
4796
|
|
|
4797
|
+
export interface PatchCorehrV1PersonResponse {
|
|
4798
|
+
person?: Person
|
|
4799
|
+
}
|
|
4800
|
+
|
|
3947
4801
|
export interface CreateCorehrV1PersonRequest {
|
|
3948
4802
|
/** 姓名 */
|
|
3949
4803
|
name_list: PersonName[]
|
|
@@ -3994,14 +4848,28 @@ export interface CreateCorehrV1PersonQuery {
|
|
|
3994
4848
|
client_token?: string
|
|
3995
4849
|
}
|
|
3996
4850
|
|
|
3997
|
-
export interface
|
|
3998
|
-
|
|
3999
|
-
|
|
4851
|
+
export interface CreateCorehrV1PersonResponse {
|
|
4852
|
+
person?: Person
|
|
4853
|
+
}
|
|
4854
|
+
|
|
4855
|
+
export interface GetCorehrV1PersonQuery {
|
|
4856
|
+
/** 此次调用中使用的用户ID的类型 */
|
|
4857
|
+
user_id_type?: 'people_employee_id'
|
|
4858
|
+
}
|
|
4859
|
+
|
|
4860
|
+
export interface GetCorehrV1PersonResponse {
|
|
4861
|
+
/** 个人信息 */
|
|
4862
|
+
person?: Person
|
|
4863
|
+
}
|
|
4864
|
+
|
|
4865
|
+
export const enum SubmitCorehrV1OffboardingRequestOffboardingMode {
|
|
4866
|
+
/** 直接离职 */
|
|
4867
|
+
TerminationOfDismissal = 1,
|
|
4000
4868
|
}
|
|
4001
4869
|
|
|
4002
4870
|
export interface SubmitCorehrV1OffboardingRequest {
|
|
4003
4871
|
/** 离职方式 */
|
|
4004
|
-
offboarding_mode:
|
|
4872
|
+
offboarding_mode: SubmitCorehrV1OffboardingRequestOffboardingMode
|
|
4005
4873
|
/** 雇员 id */
|
|
4006
4874
|
employment_id: string
|
|
4007
4875
|
/** 离职日期 */
|
|
@@ -4027,714 +4895,6 @@ export interface SubmitCorehrV1OffboardingQuery {
|
|
|
4027
4895
|
user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id'
|
|
4028
4896
|
}
|
|
4029
4897
|
|
|
4030
|
-
export interface QueryCorehrV1CustomFieldResponse {
|
|
4031
|
-
/** 自定义字段列表 */
|
|
4032
|
-
items?: CustomField[]
|
|
4033
|
-
}
|
|
4034
|
-
|
|
4035
|
-
export interface GetByParamCorehrV1CustomFieldResponse {
|
|
4036
|
-
/** 自定义字段详情 */
|
|
4037
|
-
data?: CustomField
|
|
4038
|
-
}
|
|
4039
|
-
|
|
4040
|
-
export interface AddEnumOptionCorehrV1CommonDataMetaDataResponse {
|
|
4041
|
-
/** 枚举字段 API name */
|
|
4042
|
-
enum_field_api_name?: string
|
|
4043
|
-
/** 枚举全部选项列表 */
|
|
4044
|
-
enum_field_options?: EnumFieldOption[]
|
|
4045
|
-
}
|
|
4046
|
-
|
|
4047
|
-
export interface EditEnumOptionCorehrV1CommonDataMetaDataResponse {
|
|
4048
|
-
/** 枚举字段 API name */
|
|
4049
|
-
enum_field_api_name?: string
|
|
4050
|
-
/** 枚举全部选项列表 */
|
|
4051
|
-
enum_field_options?: EnumFieldOption[]
|
|
4052
|
-
}
|
|
4053
|
-
|
|
4054
|
-
export interface CreateCorehrV1NationalIdTypeResponse {
|
|
4055
|
-
national_id_type?: NationalIdType
|
|
4056
|
-
}
|
|
4057
|
-
|
|
4058
|
-
export interface PatchCorehrV1NationalIdTypeResponse {
|
|
4059
|
-
national_id_type?: NationalIdType
|
|
4060
|
-
}
|
|
4061
|
-
|
|
4062
|
-
export interface GetCorehrV1NationalIdTypeResponse {
|
|
4063
|
-
/** 国家证件类型信息 */
|
|
4064
|
-
national_id_type?: NationalIdType
|
|
4065
|
-
}
|
|
4066
|
-
|
|
4067
|
-
export interface CreateCorehrV1EmployeeTypeResponse {
|
|
4068
|
-
employee_type?: EmployeeType
|
|
4069
|
-
}
|
|
4070
|
-
|
|
4071
|
-
export interface PatchCorehrV1EmployeeTypeResponse {
|
|
4072
|
-
employee_type?: EmployeeType
|
|
4073
|
-
}
|
|
4074
|
-
|
|
4075
|
-
export interface GetCorehrV1EmployeeTypeResponse {
|
|
4076
|
-
/** 雇员类型 */
|
|
4077
|
-
employee_type?: EmployeeType
|
|
4078
|
-
}
|
|
4079
|
-
|
|
4080
|
-
export interface CreateCorehrV1WorkingHoursTypeResponse {
|
|
4081
|
-
working_hours_type?: WorkingHoursType
|
|
4082
|
-
}
|
|
4083
|
-
|
|
4084
|
-
export interface PatchCorehrV1WorkingHoursTypeResponse {
|
|
4085
|
-
working_hours_type?: WorkingHoursType
|
|
4086
|
-
}
|
|
4087
|
-
|
|
4088
|
-
export interface GetCorehrV1WorkingHoursTypeResponse {
|
|
4089
|
-
/** 工时制度信息 */
|
|
4090
|
-
working_hours_type?: WorkingHoursType
|
|
4091
|
-
}
|
|
4092
|
-
|
|
4093
|
-
export interface ConvertCorehrV1CommonDataIdResponse {
|
|
4094
|
-
/** ID 信息列表 */
|
|
4095
|
-
items?: IdInfo[]
|
|
4096
|
-
}
|
|
4097
|
-
|
|
4098
|
-
export interface BatchGetCorehrV2EmployeeResponse {
|
|
4099
|
-
/** 查询的雇佣信息 */
|
|
4100
|
-
items?: Employee[]
|
|
4101
|
-
}
|
|
4102
|
-
|
|
4103
|
-
export interface CreateCorehrV2EmployeeResponse {
|
|
4104
|
-
/** 雇佣信息 ID */
|
|
4105
|
-
employment_id?: string
|
|
4106
|
-
/** 合同 ID */
|
|
4107
|
-
contract_id?: string
|
|
4108
|
-
/** 任职信息 ID */
|
|
4109
|
-
job_data_id?: string
|
|
4110
|
-
}
|
|
4111
|
-
|
|
4112
|
-
export interface CreateCorehrV2PersonResponse {
|
|
4113
|
-
person?: PersonInfo
|
|
4114
|
-
}
|
|
4115
|
-
|
|
4116
|
-
export interface PatchCorehrV2PersonResponse {
|
|
4117
|
-
person?: PersonInfo
|
|
4118
|
-
}
|
|
4119
|
-
|
|
4120
|
-
export interface UploadCorehrV1PersonResponse {
|
|
4121
|
-
/** 上传文件ID */
|
|
4122
|
-
id?: string
|
|
4123
|
-
}
|
|
4124
|
-
|
|
4125
|
-
export interface CreateCorehrV1EmploymentResponse {
|
|
4126
|
-
employment?: EmploymentCreate
|
|
4127
|
-
}
|
|
4128
|
-
|
|
4129
|
-
export interface PatchCorehrV1EmploymentResponse {
|
|
4130
|
-
employment?: Employment
|
|
4131
|
-
}
|
|
4132
|
-
|
|
4133
|
-
export interface CreateCorehrV1JobDataResponse {
|
|
4134
|
-
job_data?: JobData
|
|
4135
|
-
}
|
|
4136
|
-
|
|
4137
|
-
export interface PatchCorehrV1JobDataResponse {
|
|
4138
|
-
job_data?: JobData
|
|
4139
|
-
}
|
|
4140
|
-
|
|
4141
|
-
export interface BatchGetCorehrV2EmployeesJobDataResponse {
|
|
4142
|
-
/** 查询的雇佣信息 */
|
|
4143
|
-
items?: EmployeeJobData[]
|
|
4144
|
-
}
|
|
4145
|
-
|
|
4146
|
-
export interface GetCorehrV1JobDataResponse {
|
|
4147
|
-
/** 任职信息 */
|
|
4148
|
-
job_data?: JobData
|
|
4149
|
-
}
|
|
4150
|
-
|
|
4151
|
-
export interface CreateCorehrV2EmployeesAdditionalJobResponse {
|
|
4152
|
-
additional_job?: EmployeesAdditionalJobWriteResp
|
|
4153
|
-
}
|
|
4154
|
-
|
|
4155
|
-
export interface PatchCorehrV2EmployeesAdditionalJobResponse {
|
|
4156
|
-
additional_job?: EmployeesAdditionalJobWriteResp
|
|
4157
|
-
}
|
|
4158
|
-
|
|
4159
|
-
export interface QueryOperationLogsCorehrV2DepartmentResponse {
|
|
4160
|
-
/** 操作日志列表 */
|
|
4161
|
-
op_logs?: OrganizationOpLog[]
|
|
4162
|
-
/** 下一页token */
|
|
4163
|
-
next_page_token?: string
|
|
4164
|
-
/** 是否有下一页 */
|
|
4165
|
-
has_more?: boolean
|
|
4166
|
-
}
|
|
4167
|
-
|
|
4168
|
-
export interface CreateCorehrV1DepartmentResponse {
|
|
4169
|
-
department?: DepartmentCreate
|
|
4170
|
-
}
|
|
4171
|
-
|
|
4172
|
-
export interface ParentsCorehrV2DepartmentResponse {
|
|
4173
|
-
/** 父部门查询结果 */
|
|
4174
|
-
items?: DepartmentParents[]
|
|
4175
|
-
}
|
|
4176
|
-
|
|
4177
|
-
export interface BatchGetCorehrV2DepartmentResponse {
|
|
4178
|
-
/** 查询的部门信息 */
|
|
4179
|
-
items?: Department[]
|
|
4180
|
-
}
|
|
4181
|
-
|
|
4182
|
-
export interface QueryRecentChangeCorehrV2DepartmentResponse {
|
|
4183
|
-
/** 部门 ID 列表 */
|
|
4184
|
-
department_ids?: string[]
|
|
4185
|
-
/** 目标查询时间范围内被删除的部门列表 */
|
|
4186
|
-
deleted_department_ids?: string[]
|
|
4187
|
-
/** 下一页页码 */
|
|
4188
|
-
page_token?: string
|
|
4189
|
-
/** 是否有下一页 */
|
|
4190
|
-
has_more?: boolean
|
|
4191
|
-
}
|
|
4192
|
-
|
|
4193
|
-
export interface QueryTimelineCorehrV2DepartmentResponse {
|
|
4194
|
-
/** 部门信息 */
|
|
4195
|
-
items?: DepartmentTimeline[]
|
|
4196
|
-
}
|
|
4197
|
-
|
|
4198
|
-
export interface CreateCorehrV1LocationResponse {
|
|
4199
|
-
location?: Location
|
|
4200
|
-
}
|
|
4201
|
-
|
|
4202
|
-
export interface GetCorehrV1LocationResponse {
|
|
4203
|
-
/** 地点信息 */
|
|
4204
|
-
location?: Location
|
|
4205
|
-
}
|
|
4206
|
-
|
|
4207
|
-
export interface QueryRecentChangeCorehrV2LocationResponse {
|
|
4208
|
-
/** 地点 ID 列表 */
|
|
4209
|
-
location_ids?: string[]
|
|
4210
|
-
/** 下一页页码 */
|
|
4211
|
-
page_token?: string
|
|
4212
|
-
/** 是否有下一页 */
|
|
4213
|
-
has_more?: boolean
|
|
4214
|
-
/** 删除的地点 ID 列表 */
|
|
4215
|
-
deleted_location_ids?: string[]
|
|
4216
|
-
}
|
|
4217
|
-
|
|
4218
|
-
export interface BatchGetCorehrV2LocationResponse {
|
|
4219
|
-
/** 查询的地点信息 */
|
|
4220
|
-
items?: Location[]
|
|
4221
|
-
}
|
|
4222
|
-
|
|
4223
|
-
export interface CreateCorehrV2LocationAddressResponse {
|
|
4224
|
-
/** 地址 ID */
|
|
4225
|
-
address_id?: string
|
|
4226
|
-
}
|
|
4227
|
-
|
|
4228
|
-
export interface CreateCorehrV1CompanyResponse {
|
|
4229
|
-
company?: Company
|
|
4230
|
-
}
|
|
4231
|
-
|
|
4232
|
-
export interface PatchCorehrV1CompanyResponse {
|
|
4233
|
-
company?: Company
|
|
4234
|
-
}
|
|
4235
|
-
|
|
4236
|
-
export interface GetCorehrV1CompanyResponse {
|
|
4237
|
-
/** 公司信息 */
|
|
4238
|
-
company?: Company
|
|
4239
|
-
}
|
|
4240
|
-
|
|
4241
|
-
export interface QueryRecentChangeCorehrV2CompanyResponse {
|
|
4242
|
-
/** 公司 ID 列表 */
|
|
4243
|
-
company_ids?: string[]
|
|
4244
|
-
/** 下一页页码 */
|
|
4245
|
-
page_token?: string
|
|
4246
|
-
/** 是否有下一页 */
|
|
4247
|
-
has_more?: boolean
|
|
4248
|
-
/** 删除的公司 ID 列表 */
|
|
4249
|
-
deleted_company_ids?: string[]
|
|
4250
|
-
}
|
|
4251
|
-
|
|
4252
|
-
export interface BatchGetCorehrV2CompanyResponse {
|
|
4253
|
-
/** 查询的公司信息 */
|
|
4254
|
-
items?: Company[]
|
|
4255
|
-
}
|
|
4256
|
-
|
|
4257
|
-
export interface CreateCorehrV2CostCenterResponse {
|
|
4258
|
-
cost_center?: CostCenter
|
|
4259
|
-
}
|
|
4260
|
-
|
|
4261
|
-
export interface PatchCorehrV2CostCenterResponse {
|
|
4262
|
-
cost_center?: CostCenter
|
|
4263
|
-
}
|
|
4264
|
-
|
|
4265
|
-
export interface QueryRecentChangeCorehrV2CostCenterResponse {
|
|
4266
|
-
/** 成本中心 ID 列表 */
|
|
4267
|
-
cost_center_ids?: string[]
|
|
4268
|
-
/** 下一页页码 */
|
|
4269
|
-
page_token?: string
|
|
4270
|
-
/** 是否有下一页 */
|
|
4271
|
-
has_more?: boolean
|
|
4272
|
-
/** 删除的成本中心 ID 列表 */
|
|
4273
|
-
deleted_cost_center_ids?: string[]
|
|
4274
|
-
}
|
|
4275
|
-
|
|
4276
|
-
export interface CreateCorehrV2CostCenterVersionResponse {
|
|
4277
|
-
version?: CostCenterVersion
|
|
4278
|
-
}
|
|
4279
|
-
|
|
4280
|
-
export interface PatchCorehrV2CostCenterVersionResponse {
|
|
4281
|
-
version?: CostCenterVersion
|
|
4282
|
-
}
|
|
4283
|
-
|
|
4284
|
-
export interface GetCorehrV2ApprovalGroupsResponse {
|
|
4285
|
-
/** 组织架构调整流程信息 */
|
|
4286
|
-
approval_group?: ApprovalGroup
|
|
4287
|
-
}
|
|
4288
|
-
|
|
4289
|
-
export interface OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsResponse {
|
|
4290
|
-
/** 部门调整记录信息列表 */
|
|
4291
|
-
department_changes?: DepartmentChange[]
|
|
4292
|
-
}
|
|
4293
|
-
|
|
4294
|
-
export interface OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsResponse {
|
|
4295
|
-
/** 人员异动记录信息列表 */
|
|
4296
|
-
job_changes?: JobChange[]
|
|
4297
|
-
}
|
|
4298
|
-
|
|
4299
|
-
export interface CreateCorehrV1JobFamilyResponse {
|
|
4300
|
-
job_family?: JobFamily
|
|
4301
|
-
}
|
|
4302
|
-
|
|
4303
|
-
export interface PatchCorehrV1JobFamilyResponse {
|
|
4304
|
-
job_family?: JobFamily
|
|
4305
|
-
}
|
|
4306
|
-
|
|
4307
|
-
export interface GetCorehrV1JobFamilyResponse {
|
|
4308
|
-
/** 职务序列信息 */
|
|
4309
|
-
job_family?: JobFamily
|
|
4310
|
-
}
|
|
4311
|
-
|
|
4312
|
-
export interface QueryRecentChangeCorehrV2JobFamilyResponse {
|
|
4313
|
-
/** 序列 ID 列表 */
|
|
4314
|
-
job_family_ids?: string[]
|
|
4315
|
-
/** 下一页页码 */
|
|
4316
|
-
page_token?: string
|
|
4317
|
-
/** 是否有下一页 */
|
|
4318
|
-
has_more?: boolean
|
|
4319
|
-
/** 删除的序列 ID 列表 */
|
|
4320
|
-
deleted_job_family_ids?: string[]
|
|
4321
|
-
}
|
|
4322
|
-
|
|
4323
|
-
export interface BatchGetCorehrV2JobFamilyResponse {
|
|
4324
|
-
/** 查询的序列信息 */
|
|
4325
|
-
items?: JobFamily[]
|
|
4326
|
-
}
|
|
4327
|
-
|
|
4328
|
-
export interface CreateCorehrV1JobLevelResponse {
|
|
4329
|
-
job_level?: JobLevel
|
|
4330
|
-
}
|
|
4331
|
-
|
|
4332
|
-
export interface PatchCorehrV1JobLevelResponse {
|
|
4333
|
-
job_level?: JobLevel
|
|
4334
|
-
}
|
|
4335
|
-
|
|
4336
|
-
export interface GetCorehrV1JobLevelResponse {
|
|
4337
|
-
/** 职务级别信息 */
|
|
4338
|
-
job_level?: JobLevel
|
|
4339
|
-
}
|
|
4340
|
-
|
|
4341
|
-
export interface QueryRecentChangeCorehrV2JobLevelResponse {
|
|
4342
|
-
/** 职级 ID 列表 */
|
|
4343
|
-
job_level_ids?: string[]
|
|
4344
|
-
/** 下一页页码 */
|
|
4345
|
-
page_token?: string
|
|
4346
|
-
/** 是否有下一页 */
|
|
4347
|
-
has_more?: boolean
|
|
4348
|
-
/** 删除的职级 ID 列表 */
|
|
4349
|
-
deleted_job_level_ids?: string[]
|
|
4350
|
-
}
|
|
4351
|
-
|
|
4352
|
-
export interface BatchGetCorehrV2JobLevelResponse {
|
|
4353
|
-
/** 查询的职级信息 */
|
|
4354
|
-
items?: JobLevel[]
|
|
4355
|
-
}
|
|
4356
|
-
|
|
4357
|
-
export interface CreateCorehrV2JobGradeResponse {
|
|
4358
|
-
/** 职等ID */
|
|
4359
|
-
grade_id?: string
|
|
4360
|
-
}
|
|
4361
|
-
|
|
4362
|
-
export interface QueryRecentChangeCorehrV2JobGradeResponse {
|
|
4363
|
-
/** 职等 ID 列表 */
|
|
4364
|
-
job_grade_ids?: string[]
|
|
4365
|
-
/** 下一页页码 */
|
|
4366
|
-
page_token?: string
|
|
4367
|
-
/** 是否有下一页 */
|
|
4368
|
-
has_more?: boolean
|
|
4369
|
-
/** 删除的职等 ID 列表 */
|
|
4370
|
-
deleted_job_grade_ids?: string[]
|
|
4371
|
-
}
|
|
4372
|
-
|
|
4373
|
-
export interface CreateCorehrV1JobResponse {
|
|
4374
|
-
job?: Job
|
|
4375
|
-
}
|
|
4376
|
-
|
|
4377
|
-
export interface PatchCorehrV1JobResponse {
|
|
4378
|
-
job?: Job
|
|
4379
|
-
}
|
|
4380
|
-
|
|
4381
|
-
export interface GetCorehrV2JobResponse {
|
|
4382
|
-
/** 职务信息 */
|
|
4383
|
-
job?: Job
|
|
4384
|
-
}
|
|
4385
|
-
|
|
4386
|
-
export interface WithdrawOnboardingCorehrV2PreHireResponse {
|
|
4387
|
-
/** 是否成功撤销入职 */
|
|
4388
|
-
success?: boolean
|
|
4389
|
-
}
|
|
4390
|
-
|
|
4391
|
-
export interface RestoreFlowInstanceCorehrV2PreHireResponse {
|
|
4392
|
-
/** 是否成功恢复入职 */
|
|
4393
|
-
success?: boolean
|
|
4394
|
-
}
|
|
4395
|
-
|
|
4396
|
-
export interface CreateCorehrV2PreHireResponse {
|
|
4397
|
-
/** 待入职 ID */
|
|
4398
|
-
pre_hire_id?: string
|
|
4399
|
-
}
|
|
4400
|
-
|
|
4401
|
-
export interface PatchCorehrV2PreHireResponse {
|
|
4402
|
-
/** 待入职ID */
|
|
4403
|
-
pre_hire_id?: string
|
|
4404
|
-
}
|
|
4405
|
-
|
|
4406
|
-
export interface GetCorehrV1PreHireResponse {
|
|
4407
|
-
/** 待入职信息 */
|
|
4408
|
-
pre_hire?: PreHire
|
|
4409
|
-
}
|
|
4410
|
-
|
|
4411
|
-
export interface TransitTaskCorehrV2PreHireResponse {
|
|
4412
|
-
/** 是否成功流转任务 */
|
|
4413
|
-
success?: boolean
|
|
4414
|
-
}
|
|
4415
|
-
|
|
4416
|
-
export interface CompleteCorehrV2PreHireResponse {
|
|
4417
|
-
/** 是否成功完成入职 */
|
|
4418
|
-
success?: boolean
|
|
4419
|
-
}
|
|
4420
|
-
|
|
4421
|
-
export interface PatchCorehrV1PreHireResponse {
|
|
4422
|
-
pre_hire?: PreHire
|
|
4423
|
-
}
|
|
4424
|
-
|
|
4425
|
-
export interface CreateCorehrV2ProbationAssessmentResponse {
|
|
4426
|
-
/** 创建的试用期考核记录 ID 列表,有序返回 */
|
|
4427
|
-
assessment_ids?: string[]
|
|
4428
|
-
}
|
|
4429
|
-
|
|
4430
|
-
export interface SubmitCorehrV2ProbationResponse {
|
|
4431
|
-
/** 试用期信息 */
|
|
4432
|
-
probation_info?: ProbationInfoForSubmit
|
|
4433
|
-
}
|
|
4434
|
-
|
|
4435
|
-
export interface CreateCorehrV2JobChangeResponse {
|
|
4436
|
-
/** 异动记录 id */
|
|
4437
|
-
job_change_id?: string
|
|
4438
|
-
/** 雇员 id */
|
|
4439
|
-
employment_id?: string
|
|
4440
|
-
/** 异动状态 */
|
|
4441
|
-
status?: 'Approving' | 'Approved' | 'Transformed' | 'Rejected' | 'Cancelled' | 'NoNeedApproval'
|
|
4442
|
-
/** 异动类型 */
|
|
4443
|
-
transfer_type_unique_identifier?: string
|
|
4444
|
-
/** 异动原因 */
|
|
4445
|
-
transfer_reason_unique_identifier?: string
|
|
4446
|
-
/** 异动流程 id */
|
|
4447
|
-
process_id?: string
|
|
4448
|
-
/** 生效时间 */
|
|
4449
|
-
effective_date?: string
|
|
4450
|
-
/** 创建时间 */
|
|
4451
|
-
created_time?: string
|
|
4452
|
-
/** 异动详细信息 */
|
|
4453
|
-
transfer_info?: TransferInfo
|
|
4454
|
-
/** 是否调整薪酬 */
|
|
4455
|
-
is_adjust_salary?: boolean
|
|
4456
|
-
/** 异动自定义字段 */
|
|
4457
|
-
custom_fields?: CustomFieldData[]
|
|
4458
|
-
}
|
|
4459
|
-
|
|
4460
|
-
export interface QueryCorehrV1TransferTypeResponse {
|
|
4461
|
-
/** 异动类型列表 */
|
|
4462
|
-
items?: TransferType[]
|
|
4463
|
-
}
|
|
4464
|
-
|
|
4465
|
-
export interface QueryCorehrV1TransferReasonResponse {
|
|
4466
|
-
/** 异动原因列表 */
|
|
4467
|
-
items?: TransferReason[]
|
|
4468
|
-
}
|
|
4469
|
-
|
|
4470
|
-
export interface CreateCorehrV1JobChangeResponse {
|
|
4471
|
-
/** 异动记录 id */
|
|
4472
|
-
job_change_id?: string
|
|
4473
|
-
/** 雇员 id */
|
|
4474
|
-
employment_id?: string
|
|
4475
|
-
/** 异动状态 */
|
|
4476
|
-
status?: 0 | 1 | 2 | 3 | 4 | 5
|
|
4477
|
-
/** 异动类型 */
|
|
4478
|
-
transfer_type_unique_identifier?: string
|
|
4479
|
-
/** 异动原因 */
|
|
4480
|
-
transfer_reason_unique_identifier?: string
|
|
4481
|
-
/** 异动流程 id */
|
|
4482
|
-
process_id?: string
|
|
4483
|
-
/** 生效时间 */
|
|
4484
|
-
effective_date?: string
|
|
4485
|
-
/** 创建时间 */
|
|
4486
|
-
created_time?: string
|
|
4487
|
-
/** 异动详细信息 */
|
|
4488
|
-
transfer_info?: TransferInfo
|
|
4489
|
-
}
|
|
4490
|
-
|
|
4491
|
-
export interface QueryCorehrV1OffboardingResponse {
|
|
4492
|
-
/** 离职原因列表 */
|
|
4493
|
-
items?: OffboardingReason[]
|
|
4494
|
-
}
|
|
4495
|
-
|
|
4496
|
-
export interface SubmitV2CorehrV2OffboardingResponse {
|
|
4497
|
-
/** 离职记录 id */
|
|
4498
|
-
offboarding_id?: string
|
|
4499
|
-
/** 雇员 id */
|
|
4500
|
-
employment_id?: string
|
|
4501
|
-
/** 离职原因 */
|
|
4502
|
-
offboarding_reason_unique_identifier?: string
|
|
4503
|
-
/** 离职日期 */
|
|
4504
|
-
offboarding_date?: string
|
|
4505
|
-
/** 离职原因说明 */
|
|
4506
|
-
offboarding_reason_explanation?: string
|
|
4507
|
-
/** 是否加入离职屏蔽名单 */
|
|
4508
|
-
add_block_list?: boolean
|
|
4509
|
-
/** 屏蔽原因 */
|
|
4510
|
-
block_reason?: string
|
|
4511
|
-
/** 屏蔽原因说明 */
|
|
4512
|
-
block_reason_explanation?: string
|
|
4513
|
-
/** 创建时间 */
|
|
4514
|
-
created_time?: string
|
|
4515
|
-
/** 离职是否保留飞书账号 */
|
|
4516
|
-
retain_account?: boolean
|
|
4517
|
-
/** 编制随人员一起调整 */
|
|
4518
|
-
is_transfer_with_workforce?: boolean
|
|
4519
|
-
}
|
|
4520
|
-
|
|
4521
|
-
export interface EditCorehrV2OffboardingResponse {
|
|
4522
|
-
/** 编辑字段数据信息 */
|
|
4523
|
-
data: ObjectFieldData[]
|
|
4524
|
-
}
|
|
4525
|
-
|
|
4526
|
-
export interface CreateCorehrV1ContractResponse {
|
|
4527
|
-
contract?: Contract
|
|
4528
|
-
}
|
|
4529
|
-
|
|
4530
|
-
export interface PatchCorehrV1ContractResponse {
|
|
4531
|
-
contract?: Contract
|
|
4532
|
-
}
|
|
4533
|
-
|
|
4534
|
-
export interface GetCorehrV1ContractResponse {
|
|
4535
|
-
/** 合同信息 */
|
|
4536
|
-
contract?: Contract
|
|
4537
|
-
}
|
|
4538
|
-
|
|
4539
|
-
export interface ListCorehrV2WorkforcePlanResponse {
|
|
4540
|
-
/** 方案列表 */
|
|
4541
|
-
items?: WorkforcePlan[]
|
|
4542
|
-
/** 方案总数 */
|
|
4543
|
-
total?: number
|
|
4544
|
-
}
|
|
4545
|
-
|
|
4546
|
-
export interface BatchCorehrV2WorkforcePlanDetailResponse {
|
|
4547
|
-
/** 编制规划方案 ID */
|
|
4548
|
-
workforce_plan_id?: string
|
|
4549
|
-
/** 集中填报项目 ID */
|
|
4550
|
-
centralized_reporting_project_id?: string
|
|
4551
|
-
/** 编制规划明细信息 */
|
|
4552
|
-
items?: WorkforcePlanDetail[]
|
|
4553
|
-
/** 分页标识 */
|
|
4554
|
-
page_token?: string
|
|
4555
|
-
/** 是否还有更多项 */
|
|
4556
|
-
has_more?: boolean
|
|
4557
|
-
}
|
|
4558
|
-
|
|
4559
|
-
export interface CreateCorehrV1LeaveGrantingRecordResponse {
|
|
4560
|
-
/** 假期授予记录 */
|
|
4561
|
-
leave_granting_record?: LeaveGrantingRecord
|
|
4562
|
-
}
|
|
4563
|
-
|
|
4564
|
-
export interface WorkCalendarCorehrV1LeaveResponse {
|
|
4565
|
-
/** 工作日历列表 */
|
|
4566
|
-
work_calendars?: WorkCalendarDetail[]
|
|
4567
|
-
/** 入参count=true,则返回符合条件的工作日历总数 */
|
|
4568
|
-
count?: number
|
|
4569
|
-
}
|
|
4570
|
-
|
|
4571
|
-
export interface CalendarByScopeCorehrV1LeaveResponse {
|
|
4572
|
-
/** 工作日历id */
|
|
4573
|
-
calendar_wk_id?: string
|
|
4574
|
-
}
|
|
4575
|
-
|
|
4576
|
-
export interface WorkCalendarDateCorehrV1LeaveResponse {
|
|
4577
|
-
/** 日期类型列表 */
|
|
4578
|
-
calendar_dates?: WkCalendarDate[]
|
|
4579
|
-
}
|
|
4580
|
-
|
|
4581
|
-
export interface GetByParamCorehrV1AuthorizationResponse {
|
|
4582
|
-
/** 角色授权信息 */
|
|
4583
|
-
role_authorization?: RoleAuthorization
|
|
4584
|
-
}
|
|
4585
|
-
|
|
4586
|
-
export interface AddRoleAssignCorehrV1AuthorizationResponse {
|
|
4587
|
-
/** 授权id */
|
|
4588
|
-
assign_id?: string
|
|
4589
|
-
}
|
|
4590
|
-
|
|
4591
|
-
export interface UpdateRoleAssignCorehrV1AuthorizationResponse {
|
|
4592
|
-
/** 授权id */
|
|
4593
|
-
assign_id?: string
|
|
4594
|
-
}
|
|
4595
|
-
|
|
4596
|
-
export interface RemoveRoleAssignCorehrV1AuthorizationResponse {
|
|
4597
|
-
/** 授权id */
|
|
4598
|
-
assign_id?: string
|
|
4599
|
-
}
|
|
4600
|
-
|
|
4601
|
-
export interface BatchGetCorehrV2EmployeesBpResponse {
|
|
4602
|
-
/** 员工直属 BP 信息,当员工所在部门、属地无 BP 时,会上钻找到最近的 BP */
|
|
4603
|
-
employment_direct_bps?: EmploymentBp[]
|
|
4604
|
-
/** 员工全部 BP 信息 */
|
|
4605
|
-
employment_all_bps?: EmploymentBp[]
|
|
4606
|
-
}
|
|
4607
|
-
|
|
4608
|
-
export interface GetByDepartmentCorehrV2BpResponse {
|
|
4609
|
-
/** 部门 HRBP 信息,依次为部门及各层级上级部门 */
|
|
4610
|
-
items?: DepartmentHrbp[]
|
|
4611
|
-
}
|
|
4612
|
-
|
|
4613
|
-
export interface QueryCorehrV1SecurityGroupResponse {
|
|
4614
|
-
/** HRBP/属地 BP 信息 */
|
|
4615
|
-
hrbp_list?: Hrbp[]
|
|
4616
|
-
}
|
|
4617
|
-
|
|
4618
|
-
export interface GetCorehrV2ProcessResponse {
|
|
4619
|
-
/** 流程实例ID */
|
|
4620
|
-
process_id?: string
|
|
4621
|
-
/** 流程状态 */
|
|
4622
|
-
status?: 1 | 2 | 4 | 8 | 9
|
|
4623
|
-
/** 业务类型ID */
|
|
4624
|
-
flow_template_id?: string
|
|
4625
|
-
/** 业务类型名称 */
|
|
4626
|
-
flow_template_name?: DataengineI18n
|
|
4627
|
-
/** 流程定义ID */
|
|
4628
|
-
flow_definition_id?: string
|
|
4629
|
-
/** 流程定义名称 */
|
|
4630
|
-
flow_definition_name?: DataengineI18n
|
|
4631
|
-
/** 流程发起人ID */
|
|
4632
|
-
initiator_id?: string
|
|
4633
|
-
/** 流程发起人姓名 */
|
|
4634
|
-
initiator_name?: DataengineI18n
|
|
4635
|
-
/** 流程发起时间,Unix毫秒时间戳 */
|
|
4636
|
-
create_time?: string
|
|
4637
|
-
/** 流程结束时间,Unix毫秒时间戳 */
|
|
4638
|
-
complete_time?: string
|
|
4639
|
-
/** 发起单据地址 */
|
|
4640
|
-
start_links?: ProcessLink
|
|
4641
|
-
/** 流程摘要,会随着流程流转发生变化 */
|
|
4642
|
-
abstracts?: ProcessAbstractItem[]
|
|
4643
|
-
/** 待办列表 */
|
|
4644
|
-
todos?: ProcessTodoItem[]
|
|
4645
|
-
/** 抄送列表 */
|
|
4646
|
-
cc_list?: ProcessCcItem[]
|
|
4647
|
-
/** 已办列表 */
|
|
4648
|
-
done_list?: ProcessDoneItem[]
|
|
4649
|
-
/** 普通流程或撤销流程等 */
|
|
4650
|
-
properties?: 1 | 2 | 3
|
|
4651
|
-
/** 系统待办列表 */
|
|
4652
|
-
system_todos?: ProcessSystemTodoItem[]
|
|
4653
|
-
/** 系统已办列表 */
|
|
4654
|
-
system_done_list?: ProcessSystemDoneItem[]
|
|
4655
|
-
/** 评论列表 */
|
|
4656
|
-
comment_infos?: ProcessCommentInfo[]
|
|
4657
|
-
/** 更正流程原流程ID */
|
|
4658
|
-
original_process_id?: string
|
|
4659
|
-
/** 是否最新的「已完成」的更正流程 */
|
|
4660
|
-
is_last_completed_correct_process?: boolean
|
|
4661
|
-
}
|
|
4662
|
-
|
|
4663
|
-
export interface GetCorehrV2ProcessFormVariableDataResponse {
|
|
4664
|
-
/** 表单数据 */
|
|
4665
|
-
field_variable_values?: FieldVariableValue[]
|
|
4666
|
-
/** 流程实例id */
|
|
4667
|
-
process_id?: string
|
|
4668
|
-
}
|
|
4669
|
-
|
|
4670
|
-
export interface UpdateCorehrV2ProcessApproverResponse {
|
|
4671
|
-
/** 错误码,非 0 表示失败 */
|
|
4672
|
-
code: number
|
|
4673
|
-
/** 错误描述 */
|
|
4674
|
-
msg?: string
|
|
4675
|
-
}
|
|
4676
|
-
|
|
4677
|
-
export interface MatchCorehrV1CompensationStandardResponse {
|
|
4678
|
-
/** 薪资标准表ID */
|
|
4679
|
-
standard_id?: string
|
|
4680
|
-
/** 薪资等级 */
|
|
4681
|
-
grade?: CpstGrade
|
|
4682
|
-
/** 生效时间 */
|
|
4683
|
-
effective_time?: string
|
|
4684
|
-
}
|
|
4685
|
-
|
|
4686
|
-
export interface GetCorehrV1ProcessFormVariableDataResponse {
|
|
4687
|
-
/** 流程变量 */
|
|
4688
|
-
field_variable_values?: FormFieldVariable[]
|
|
4689
|
-
}
|
|
4690
|
-
|
|
4691
|
-
export interface GetCorehrV1SubregionResponse {
|
|
4692
|
-
/** 城市/区域信息 */
|
|
4693
|
-
subregion?: Subregion
|
|
4694
|
-
}
|
|
4695
|
-
|
|
4696
|
-
export interface GetCorehrV1SubdivisionResponse {
|
|
4697
|
-
/** 国家/地址信息 */
|
|
4698
|
-
subdivision?: Subdivision
|
|
4699
|
-
}
|
|
4700
|
-
|
|
4701
|
-
export interface GetCorehrV1CountryRegionResponse {
|
|
4702
|
-
/** 国家/地址信息 */
|
|
4703
|
-
country_region?: CountryRegion
|
|
4704
|
-
}
|
|
4705
|
-
|
|
4706
|
-
export interface GetCorehrV1CurrencyResponse {
|
|
4707
|
-
/** 货币信息 */
|
|
4708
|
-
currency?: Currency
|
|
4709
|
-
}
|
|
4710
|
-
|
|
4711
|
-
export interface GetCorehrV1JobResponse {
|
|
4712
|
-
/** 职务信息 */
|
|
4713
|
-
job?: Job
|
|
4714
|
-
}
|
|
4715
|
-
|
|
4716
|
-
export interface PatchCorehrV1DepartmentResponse {
|
|
4717
|
-
department?: Department
|
|
4718
|
-
}
|
|
4719
|
-
|
|
4720
|
-
export interface GetCorehrV1DepartmentResponse {
|
|
4721
|
-
/** 部门信息 */
|
|
4722
|
-
department?: Department
|
|
4723
|
-
}
|
|
4724
|
-
|
|
4725
|
-
export interface PatchCorehrV1PersonResponse {
|
|
4726
|
-
person?: Person
|
|
4727
|
-
}
|
|
4728
|
-
|
|
4729
|
-
export interface CreateCorehrV1PersonResponse {
|
|
4730
|
-
person?: Person
|
|
4731
|
-
}
|
|
4732
|
-
|
|
4733
|
-
export interface GetCorehrV1PersonResponse {
|
|
4734
|
-
/** 个人信息 */
|
|
4735
|
-
person?: Person
|
|
4736
|
-
}
|
|
4737
|
-
|
|
4738
4898
|
export interface SubmitCorehrV1OffboardingResponse {
|
|
4739
4899
|
/** 离职记录 id */
|
|
4740
4900
|
offboarding_id?: string
|