@satorijs/adapter-lark 3.9.0 → 3.9.2

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.
Files changed (89) hide show
  1. package/lib/index.cjs +1091 -27
  2. package/lib/internal.d.ts +2 -3
  3. package/lib/types/acs.d.ts +19 -19
  4. package/lib/types/admin.d.ts +58 -32
  5. package/lib/types/aily.d.ts +52 -52
  6. package/lib/types/apaas.d.ts +96 -96
  7. package/lib/types/api.d.ts +14 -1
  8. package/lib/types/application.d.ts +153 -69
  9. package/lib/types/approval.d.ts +186 -154
  10. package/lib/types/attendance.d.ts +395 -353
  11. package/lib/types/auth.d.ts +18 -18
  12. package/lib/types/authen.d.ts +24 -24
  13. package/lib/types/baike.d.ts +42 -42
  14. package/lib/types/bitable.d.ts +276 -192
  15. package/lib/types/calendar.d.ts +144 -144
  16. package/lib/types/cardkit.d.ts +8 -8
  17. package/lib/types/contact.d.ts +209 -137
  18. package/lib/types/corehr.d.ts +761 -613
  19. package/lib/types/document_ai.d.ts +68 -68
  20. package/lib/types/docx.d.ts +103 -95
  21. package/lib/types/drive.d.ts +237 -229
  22. package/lib/types/ehr.d.ts +26 -2
  23. package/lib/types/helpdesk.d.ts +156 -148
  24. package/lib/types/hire.d.ts +954 -510
  25. package/lib/types/im.d.ts +446 -446
  26. package/lib/types/index.d.ts +72 -30
  27. package/lib/types/lingo.d.ts +28 -28
  28. package/lib/types/mail.d.ts +192 -192
  29. package/lib/types/minutes.d.ts +4 -4
  30. package/lib/types/okr.d.ts +86 -58
  31. package/lib/types/passport.d.ts +13 -5
  32. package/lib/types/payroll.d.ts +13 -5
  33. package/lib/types/performance.d.ts +85 -79
  34. package/lib/types/personal_settings.d.ts +12 -12
  35. package/lib/types/report.d.ts +11 -5
  36. package/lib/types/search.d.ts +48 -24
  37. package/lib/types/sheets.d.ts +64 -64
  38. package/lib/types/speech_to_text.d.ts +4 -4
  39. package/lib/types/task.d.ts +191 -185
  40. package/lib/types/translation.d.ts +4 -4
  41. package/lib/types/vc.d.ts +335 -155
  42. package/lib/types/wiki.d.ts +48 -48
  43. package/package.json +1 -1
  44. package/src/internal.ts +3 -4
  45. package/src/types/acs.ts +24 -24
  46. package/src/types/admin.ts +69 -39
  47. package/src/types/aily.ts +61 -61
  48. package/src/types/apaas.ts +113 -113
  49. package/src/types/application.ts +177 -83
  50. package/src/types/approval.ts +210 -174
  51. package/src/types/attendance.ts +466 -421
  52. package/src/types/auth.ts +20 -20
  53. package/src/types/authen.ts +28 -28
  54. package/src/types/baike.ts +55 -55
  55. package/src/types/bitable.ts +321 -235
  56. package/src/types/calendar.ts +167 -167
  57. package/src/types/cardkit.ts +10 -10
  58. package/src/types/contact.ts +251 -169
  59. package/src/types/corehr.ts +905 -736
  60. package/src/types/document_ai.ts +85 -85
  61. package/src/types/docx.ts +117 -108
  62. package/src/types/drive.ts +299 -290
  63. package/src/types/ehr.ts +28 -2
  64. package/src/types/helpdesk.ts +182 -173
  65. package/src/types/hire.ts +1081 -591
  66. package/src/types/im.ts +521 -521
  67. package/src/types/index.ts +73 -30
  68. package/src/types/lingo.ts +36 -36
  69. package/src/types/mail.ts +215 -215
  70. package/src/types/minutes.ts +5 -5
  71. package/src/types/okr.ts +98 -66
  72. package/src/types/passport.ts +15 -6
  73. package/src/types/payroll.ts +15 -6
  74. package/src/types/performance.ts +98 -91
  75. package/src/types/personal_settings.ts +15 -15
  76. package/src/types/report.ts +13 -6
  77. package/src/types/search.ts +57 -29
  78. package/src/types/sheets.ts +80 -80
  79. package/src/types/speech_to_text.ts +5 -5
  80. package/src/types/task.ts +238 -231
  81. package/src/types/translation.ts +5 -5
  82. package/src/types/vc.ts +386 -186
  83. package/src/types/wiki.ts +59 -59
  84. package/src/utils.ts +11 -6
  85. package/lib/index.cjs.map +0 -6
  86. package/lib/types/guild.d.ts +0 -59
  87. package/lib/types/message/asset.d.ts +0 -40
  88. package/lib/types/user.d.ts +0 -78
  89. package/lib/types/utils.d.ts +0 -9
@@ -271,7 +271,7 @@ declare module '../internal' {
271
271
  * 批量查询部门操作日志
272
272
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/query_operation_logs
273
273
  */
274
- queryOperationLogsCorehrV2Department(body: QueryOperationLogsCorehrV2DepartmentRequest, query?: QueryOperationLogsCorehrV2DepartmentQuery): Paginated<OrganizationOpLog, 'op_logs'>;
274
+ queryOperationLogsCorehrV2Department(body: QueryOperationLogsCorehrV2DepartmentRequest, query?: QueryOperationLogsCorehrV2DepartmentQuery): Promise<QueryOperationLogsCorehrV2DepartmentResponse> & AsyncIterableIterator<OrganizationOpLog>;
275
275
  /**
276
276
  * 创建部门
277
277
  * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/create
@@ -1053,12 +1053,20 @@ export interface QueryCorehrV1CustomFieldQuery {
1053
1053
  /** 所属对象 apiname,支持一个或多个当前数量限制为 20 个 */
1054
1054
  object_api_name_list: string[];
1055
1055
  }
1056
+ export interface QueryCorehrV1CustomFieldResponse {
1057
+ /** 自定义字段列表 */
1058
+ items?: CustomField[];
1059
+ }
1056
1060
  export interface GetByParamCorehrV1CustomFieldQuery {
1057
1061
  /** 所属对象 apiname */
1058
1062
  object_api_name: string;
1059
1063
  /** 自定义字段 apiname */
1060
1064
  custom_api_name: string;
1061
1065
  }
1066
+ export interface GetByParamCorehrV1CustomFieldResponse {
1067
+ /** 自定义字段详情 */
1068
+ data?: CustomField;
1069
+ }
1062
1070
  export interface AddEnumOptionCorehrV1CommonDataMetaDataRequest {
1063
1071
  /** 所属对象 API name,可通过[获取飞书人事对象列表](/ssl:ttdoc/server-docs/corehr-v1/basic-infomation/custom_field/list_object_api_name)接口中返回的 `object_api_name` 字段获取 */
1064
1072
  object_api_name: string;
@@ -1071,6 +1079,12 @@ export interface AddEnumOptionCorehrV1CommonDataMetaDataQuery {
1071
1079
  /** 根据 client_token 是否一致来判断是否为同一请求 */
1072
1080
  client_token?: string;
1073
1081
  }
1082
+ export interface AddEnumOptionCorehrV1CommonDataMetaDataResponse {
1083
+ /** 枚举字段 API name */
1084
+ enum_field_api_name?: string;
1085
+ /** 枚举全部选项列表 */
1086
+ enum_field_options?: EnumFieldOption[];
1087
+ }
1074
1088
  export interface EditEnumOptionCorehrV1CommonDataMetaDataRequest {
1075
1089
  /** 所属对象 API name,可通过[获取飞书人事对象列表](/ssl:ttdoc/server-docs/corehr-v1/basic-infomation/custom_field/list_object_api_name)接口中返回的 `object_api_name` 字段获取 */
1076
1090
  object_api_name: string;
@@ -1083,11 +1097,29 @@ export interface EditEnumOptionCorehrV1CommonDataMetaDataQuery {
1083
1097
  /** 根据 client_token 是否一致来判断是否为同一请求 */
1084
1098
  client_token?: string;
1085
1099
  }
1100
+ export interface EditEnumOptionCorehrV1CommonDataMetaDataResponse {
1101
+ /** 枚举字段 API name */
1102
+ enum_field_api_name?: string;
1103
+ /** 枚举全部选项列表 */
1104
+ enum_field_options?: EnumFieldOption[];
1105
+ }
1106
+ export declare const enum SearchCorehrV2BasicInfoCountryRegionRequestStatus {
1107
+ /** 生效 */
1108
+ Active = 1,
1109
+ /** 失效 */
1110
+ Inactive = 0
1111
+ }
1086
1112
  export interface SearchCorehrV2BasicInfoCountryRegionRequest {
1087
1113
  /** 国家/地区 ID 列表,可从[批量查询地点](/ssl:ttdoc/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.country_region_id`、[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.country_region_id` 等字段中获取 */
1088
1114
  country_region_id_list?: string[];
1089
1115
  /** 状态列表 */
1090
- status_list?: (1 | 0)[];
1116
+ status_list?: SearchCorehrV2BasicInfoCountryRegionRequestStatus[];
1117
+ }
1118
+ export declare const enum SearchCorehrV2BasicInfoCountryRegionSubdivisionRequestStatus {
1119
+ /** 生效 */
1120
+ Effective = 1,
1121
+ /** 失效 */
1122
+ Expiration = 0
1091
1123
  }
1092
1124
  export interface SearchCorehrV2BasicInfoCountryRegionSubdivisionRequest {
1093
1125
  /** 国家/地区 ID 列表,可通过【查询国家/地区信息】接口获取 */
@@ -1095,7 +1127,13 @@ export interface SearchCorehrV2BasicInfoCountryRegionSubdivisionRequest {
1095
1127
  /** 省份/行政区 ID 列表 */
1096
1128
  country_region_subdivision_id_list?: string[];
1097
1129
  /** 状态列表 */
1098
- status_list?: (1 | 0)[];
1130
+ status_list?: SearchCorehrV2BasicInfoCountryRegionSubdivisionRequestStatus[];
1131
+ }
1132
+ export declare const enum SearchCorehrV2BasicInfoCityRequestStatus {
1133
+ /** 生效 */
1134
+ Active = 1,
1135
+ /** 失效 */
1136
+ Inactive = 0
1099
1137
  }
1100
1138
  export interface SearchCorehrV2BasicInfoCityRequest {
1101
1139
  /** 省份/主要行政区 ID 列表,可通过[查询省份/主要行政区信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search)接口列举,或从[批量查询地点](/ssl:ttdoc/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.region_id`、[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.region_id` 等字段中获取 */
@@ -1103,7 +1141,13 @@ export interface SearchCorehrV2BasicInfoCityRequest {
1103
1141
  /** 城市 ID 列表,可从[批量查询地点](/ssl:ttdoc/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.city_id_v2`、[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.city_id_v2` 等字段中获取 */
1104
1142
  city_id_list?: string[];
1105
1143
  /** 状态列表 */
1106
- status_list?: (1 | 0)[];
1144
+ status_list?: SearchCorehrV2BasicInfoCityRequestStatus[];
1145
+ }
1146
+ export declare const enum SearchCorehrV2BasicInfoDistrictRequestStatus {
1147
+ /** 生效 */
1148
+ Active = 1,
1149
+ /** 失效 */
1150
+ Inactive = 0
1107
1151
  }
1108
1152
  export interface SearchCorehrV2BasicInfoDistrictRequest {
1109
1153
  /** 所属城市 ID 列表,可通过[查询城市信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-city/search)接口列举,或从[批量查询地点](/ssl:ttdoc/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.city_v2_id`、[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.city_v2_id` 等字段中获取 */
@@ -1111,7 +1155,13 @@ export interface SearchCorehrV2BasicInfoDistrictRequest {
1111
1155
  /** 区/县 ID 列表,可从[批量查询地点](/ssl:ttdoc/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.district_id_v2`、[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.district_id_v2` 等字段中获取 */
1112
1156
  district_id_list?: string[];
1113
1157
  /** 状态列表 */
1114
- status_list?: (1 | 0)[];
1158
+ status_list?: SearchCorehrV2BasicInfoDistrictRequestStatus[];
1159
+ }
1160
+ export declare const enum SearchCorehrV2BasicInfoNationalityRequestStatus {
1161
+ /** 生效 */
1162
+ Active = 1,
1163
+ /** 失效 */
1164
+ Inactive = 0
1115
1165
  }
1116
1166
  export interface SearchCorehrV2BasicInfoNationalityRequest {
1117
1167
  /** 国籍 ID 列表,可从[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.nationality_id_v2` 等字段中获取 */
@@ -1119,7 +1169,7 @@ export interface SearchCorehrV2BasicInfoNationalityRequest {
1119
1169
  /** 国家/地区 ID 列表,可通过[查询国家/地区信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口列举 */
1120
1170
  country_region_id_list?: string[];
1121
1171
  /** 状态列表 */
1122
- status_list?: (1 | 0)[];
1172
+ status_list?: SearchCorehrV2BasicInfoNationalityRequestStatus[];
1123
1173
  }
1124
1174
  export interface CreateCorehrV1NationalIdTypeRequest {
1125
1175
  /** 国家 / 地区 */
@@ -1143,6 +1193,9 @@ export interface CreateCorehrV1NationalIdTypeQuery {
1143
1193
  /** 根据client_token是否一致来判断是否为同一请求 */
1144
1194
  client_token?: string;
1145
1195
  }
1196
+ export interface CreateCorehrV1NationalIdTypeResponse {
1197
+ national_id_type?: NationalIdType;
1198
+ }
1146
1199
  export interface PatchCorehrV1NationalIdTypeRequest {
1147
1200
  /** 国家 / 地区 */
1148
1201
  country_region_id?: string;
@@ -1165,6 +1218,13 @@ export interface PatchCorehrV1NationalIdTypeQuery {
1165
1218
  /** 根据client_token是否一致来判断是否为同一请求 */
1166
1219
  client_token?: string;
1167
1220
  }
1221
+ export interface PatchCorehrV1NationalIdTypeResponse {
1222
+ national_id_type?: NationalIdType;
1223
+ }
1224
+ export interface GetCorehrV1NationalIdTypeResponse {
1225
+ /** 国家证件类型信息 */
1226
+ national_id_type?: NationalIdType;
1227
+ }
1168
1228
  export interface ListCorehrV1NationalIdTypeQuery extends Pagination {
1169
1229
  /** 证件类型 */
1170
1230
  identification_type?: string;
@@ -1173,18 +1233,30 @@ export interface ListCorehrV1NationalIdTypeQuery extends Pagination {
1173
1233
  /** 国家地区ID */
1174
1234
  country_region_id?: string;
1175
1235
  }
1236
+ export declare const enum SearchCorehrV2BasicInfoBankRequestStatus {
1237
+ /** 生效 */
1238
+ Enabled = 1,
1239
+ /** 失效 */
1240
+ Disabled = 0
1241
+ }
1176
1242
  export interface SearchCorehrV2BasicInfoBankRequest {
1177
1243
  /** 银行 ID 列表,可通过[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)、[批量查询员工信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_id_v2` 字段获取 */
1178
1244
  bank_id_list?: string[];
1179
1245
  /** 银行名称列表,支持对银行名称精确搜索 */
1180
1246
  bank_name_list?: string[];
1181
1247
  /** 状态列表 */
1182
- status_list?: (1 | 0)[];
1248
+ status_list?: SearchCorehrV2BasicInfoBankRequestStatus[];
1183
1249
  /** 最早更新时间 */
1184
1250
  update_start_time?: string;
1185
1251
  /** 最晚更新时间 */
1186
1252
  update_end_time?: string;
1187
1253
  }
1254
+ export declare const enum SearchCorehrV2BasicInfoBankBranchRequestStatus {
1255
+ /** 生效 */
1256
+ Active = 1,
1257
+ /** 失效 */
1258
+ Inactive = 0
1259
+ }
1188
1260
  export interface SearchCorehrV2BasicInfoBankBranchRequest {
1189
1261
  /** 银行 ID 列表,可通过[查询银行信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-bank/search)列举,或从[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)、[批量查询员工信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_id_v2` 字段中获取 */
1190
1262
  bank_id_list?: string[];
@@ -1195,29 +1267,47 @@ export interface SearchCorehrV2BasicInfoBankBranchRequest {
1195
1267
  /** 金融分支机构编码(联行号)列表,支持对金融分支机构编码精确搜索 */
1196
1268
  code_list?: string[];
1197
1269
  /** 状态列表 */
1198
- status_list?: (1 | 0)[];
1270
+ status_list?: SearchCorehrV2BasicInfoBankBranchRequestStatus[];
1199
1271
  /** 最早更新时间 */
1200
1272
  update_start_time?: string;
1201
1273
  /** 最晚更新时间 */
1202
1274
  update_end_time?: string;
1203
1275
  }
1276
+ export declare const enum SearchCorehrV2BasicInfoCurrencyRequestStatus {
1277
+ /** 生效 */
1278
+ Active = 1,
1279
+ /** 失效 */
1280
+ Inactive = 0
1281
+ }
1204
1282
  export interface SearchCorehrV2BasicInfoCurrencyRequest {
1205
1283
  /** 货币 ID 列表,可通过[批量查询薪资方案](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/compensation-v1/plan/list)、[批量查询员工薪资档案](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/compensation-v1/archive/query)等接口返回的 `currency_id` 字段获取 */
1206
1284
  currency_id_list?: string[];
1207
1285
  /** 状态列表 */
1208
- status_list?: (1 | 0)[];
1286
+ status_list?: SearchCorehrV2BasicInfoCurrencyRequestStatus[];
1287
+ }
1288
+ export declare const enum SearchCorehrV2BasicInfoTimeZoneRequestStatus {
1289
+ /** 生效 */
1290
+ Active = 1,
1291
+ /** 失效 */
1292
+ Inactive = 0
1209
1293
  }
1210
1294
  export interface SearchCorehrV2BasicInfoTimeZoneRequest {
1211
1295
  /** 时区 ID 列表 */
1212
1296
  time_zone_id_list?: string[];
1213
1297
  /** 状态列表 */
1214
- status_list?: (1 | 0)[];
1298
+ status_list?: SearchCorehrV2BasicInfoTimeZoneRequestStatus[];
1299
+ }
1300
+ export declare const enum SearchCorehrV2BasicInfoLanguageRequestStatus {
1301
+ /** 生效 */
1302
+ Active = 1,
1303
+ /** 失效 */
1304
+ Inactive = 0
1215
1305
  }
1216
1306
  export interface SearchCorehrV2BasicInfoLanguageRequest {
1217
1307
  /** 语言 ID 列表 */
1218
1308
  language_id_list?: string[];
1219
1309
  /** 状态列表 */
1220
- status_list?: (1 | 0)[];
1310
+ status_list?: SearchCorehrV2BasicInfoLanguageRequestStatus[];
1221
1311
  }
1222
1312
  export interface CreateCorehrV1EmployeeTypeRequest {
1223
1313
  /** 名称 */
@@ -1235,6 +1325,9 @@ export interface CreateCorehrV1EmployeeTypeQuery {
1235
1325
  /** 根据client_token是否一致来判断是否为同一请求 */
1236
1326
  client_token?: string;
1237
1327
  }
1328
+ export interface CreateCorehrV1EmployeeTypeResponse {
1329
+ employee_type?: EmployeeType;
1330
+ }
1238
1331
  export interface PatchCorehrV1EmployeeTypeRequest {
1239
1332
  /** 名称 */
1240
1333
  name?: I18n[];
@@ -1251,6 +1344,13 @@ export interface PatchCorehrV1EmployeeTypeQuery {
1251
1344
  /** 根据client_token是否一致来判断是否为同一请求 */
1252
1345
  client_token?: string;
1253
1346
  }
1347
+ export interface PatchCorehrV1EmployeeTypeResponse {
1348
+ employee_type?: EmployeeType;
1349
+ }
1350
+ export interface GetCorehrV1EmployeeTypeResponse {
1351
+ /** 雇员类型 */
1352
+ employee_type?: EmployeeType;
1353
+ }
1254
1354
  export interface CreateCorehrV1WorkingHoursTypeRequest {
1255
1355
  /** 编码 */
1256
1356
  code?: string;
@@ -1269,6 +1369,9 @@ export interface CreateCorehrV1WorkingHoursTypeQuery {
1269
1369
  /** 根据client_token是否一致来判断是否为同一请求 */
1270
1370
  client_token?: string;
1271
1371
  }
1372
+ export interface CreateCorehrV1WorkingHoursTypeResponse {
1373
+ working_hours_type?: WorkingHoursType;
1374
+ }
1272
1375
  export interface PatchCorehrV1WorkingHoursTypeRequest {
1273
1376
  /** 编码 */
1274
1377
  code?: string;
@@ -1287,13 +1390,30 @@ export interface PatchCorehrV1WorkingHoursTypeQuery {
1287
1390
  /** 根据client_token是否一致来判断是否为同一请求 */
1288
1391
  client_token?: string;
1289
1392
  }
1393
+ export interface PatchCorehrV1WorkingHoursTypeResponse {
1394
+ working_hours_type?: WorkingHoursType;
1395
+ }
1396
+ export interface GetCorehrV1WorkingHoursTypeResponse {
1397
+ /** 工时制度信息 */
1398
+ working_hours_type?: WorkingHoursType;
1399
+ }
1290
1400
  export interface ConvertCorehrV1CommonDataIdRequest {
1291
1401
  /** ID 列表(最多传入 100 个 ID,ID 长度限制 50 个字符) */
1292
1402
  ids: string[];
1293
1403
  }
1404
+ export declare const enum ConvertCorehrV1CommonDataIdQueryIdTransformType {
1405
+ /** 飞书人事 -> 飞书通讯录 */
1406
+ CoreHR2Feishu = 1,
1407
+ /** 飞书通讯录 -> 飞书人事 */
1408
+ Feishu2CoreHR = 2,
1409
+ /** people admin -> 飞书人事 */
1410
+ Admin2Feishu = 3,
1411
+ /** people admin -> 飞书通讯录 */
1412
+ Admin2CoreHR = 4
1413
+ }
1294
1414
  export interface ConvertCorehrV1CommonDataIdQuery {
1295
1415
  /** ID 转换类型 */
1296
- id_transform_type: 1 | 2 | 3 | 4;
1416
+ id_transform_type: ConvertCorehrV1CommonDataIdQueryIdTransformType;
1297
1417
  /** 要转换的ID类型 */
1298
1418
  id_type: 'user_id' | 'department_id' | 'job_level_id' | 'job_family_id' | 'employee_type_id';
1299
1419
  /** 用户 ID 类型 */
@@ -1301,6 +1421,10 @@ export interface ConvertCorehrV1CommonDataIdQuery {
1301
1421
  /** 此次调用中使用的部门 ID 类型 */
1302
1422
  feishu_department_id_type?: 'open_department_id' | 'department_id';
1303
1423
  }
1424
+ export interface ConvertCorehrV1CommonDataIdResponse {
1425
+ /** ID 信息列表 */
1426
+ items?: IdInfo[];
1427
+ }
1304
1428
  export interface BatchGetCorehrV2EmployeeRequest {
1305
1429
  /** 返回数据的字段列表,填写方式:为空时默认仅返回 ID */
1306
1430
  fields?: string[];
@@ -1317,6 +1441,10 @@ export interface BatchGetCorehrV2EmployeeQuery {
1317
1441
  /** 此次调用中使用的部门 ID 类型 */
1318
1442
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
1319
1443
  }
1444
+ export interface BatchGetCorehrV2EmployeeResponse {
1445
+ /** 查询的雇佣信息 */
1446
+ items?: Employee[];
1447
+ }
1320
1448
  export interface SearchCorehrV2EmployeeRequest {
1321
1449
  /** 返回数据的字段列表,填写方式:为空时默认仅返回 ID */
1322
1450
  fields?: string[];
@@ -1427,6 +1555,14 @@ export interface CreateCorehrV2EmployeeQuery {
1427
1555
  /** 是否忽略工时制度自动生成规则 */
1428
1556
  ignore_working_hours_type_rule?: boolean;
1429
1557
  }
1558
+ export interface CreateCorehrV2EmployeeResponse {
1559
+ /** 雇佣信息 ID */
1560
+ employment_id?: string;
1561
+ /** 合同 ID */
1562
+ contract_id?: string;
1563
+ /** 任职信息 ID */
1564
+ job_data_id?: string;
1565
+ }
1430
1566
  export interface CreateCorehrV2PersonRequest {
1431
1567
  /** 姓名列表 */
1432
1568
  name_list: PersonName[];
@@ -1499,6 +1635,9 @@ export interface CreateCorehrV2PersonQuery {
1499
1635
  /** 根据client_token是否一致来判断是否为同一请求 */
1500
1636
  client_token?: string;
1501
1637
  }
1638
+ export interface CreateCorehrV2PersonResponse {
1639
+ person?: PersonInfo;
1640
+ }
1502
1641
  export interface PatchCorehrV2PersonRequest {
1503
1642
  /** 姓名列表 */
1504
1643
  name_list?: PersonName[];
@@ -1573,12 +1712,19 @@ export interface PatchCorehrV2PersonQuery {
1573
1712
  /** 根据no_need_query判断更新后是否做查询请求并返回个人信息 */
1574
1713
  no_need_query?: boolean;
1575
1714
  }
1715
+ export interface PatchCorehrV2PersonResponse {
1716
+ person?: PersonInfo;
1717
+ }
1576
1718
  export interface UploadCorehrV1PersonForm {
1577
1719
  /** 文件二进制内容 */
1578
1720
  file_content: Blob;
1579
1721
  /** 文件名称 */
1580
1722
  file_name: string;
1581
1723
  }
1724
+ export interface UploadCorehrV1PersonResponse {
1725
+ /** 上传文件ID */
1726
+ id?: string;
1727
+ }
1582
1728
  export interface CreateCorehrV1EmploymentRequest {
1583
1729
  /** 资历起算日期 */
1584
1730
  seniority_date?: string;
@@ -1613,6 +1759,9 @@ export interface CreateCorehrV1EmploymentQuery {
1613
1759
  /** 根据client_token是否一致来判断是否为同一请求 */
1614
1760
  client_token?: string;
1615
1761
  }
1762
+ export interface CreateCorehrV1EmploymentResponse {
1763
+ employment?: EmploymentCreate;
1764
+ }
1616
1765
  export interface PatchCorehrV1EmploymentRequest {
1617
1766
  /** 资历起算日期 */
1618
1767
  seniority_date?: string;
@@ -1641,6 +1790,9 @@ export interface PatchCorehrV1EmploymentQuery {
1641
1790
  /** 此次调用中使用的部门 ID 类型 */
1642
1791
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
1643
1792
  }
1793
+ export interface PatchCorehrV1EmploymentResponse {
1794
+ employment?: Employment;
1795
+ }
1644
1796
  export interface DeleteCorehrV1EmploymentQuery {
1645
1797
  /** 用户 ID 类型 */
1646
1798
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
@@ -1701,6 +1853,9 @@ export interface CreateCorehrV1JobDataQuery {
1701
1853
  /** 此次调用中使用的部门 ID 类型 */
1702
1854
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
1703
1855
  }
1856
+ export interface CreateCorehrV1JobDataResponse {
1857
+ job_data?: JobData;
1858
+ }
1704
1859
  export interface DeleteCorehrV1JobDataQuery {
1705
1860
  /** 需要删除的任职记录版本 ID */
1706
1861
  version_id?: string;
@@ -1763,6 +1918,9 @@ export interface PatchCorehrV1JobDataQuery {
1763
1918
  /** 是否强校验。值为 true 时,会对入参进行业务校验,并产生异动记录、发送异动事件。- 默认值:false- 仅在新增任职版本时生效,当 version_id 不为空时该字段不生效 */
1764
1919
  strict_verify?: string;
1765
1920
  }
1921
+ export interface PatchCorehrV1JobDataResponse {
1922
+ job_data?: JobData;
1923
+ }
1766
1924
  export interface QueryCorehrV2EmployeesJobDataRequest {
1767
1925
  /** 是否获取所有任职记录,true 为获取员工所有版本的任职记录,false 为仅获取当前生效的任职记录,默认为 false */
1768
1926
  get_all_version?: boolean;
@@ -1809,6 +1967,10 @@ export interface BatchGetCorehrV2EmployeesJobDataQuery {
1809
1967
  /** 此次调用中使用的部门 ID 类型 */
1810
1968
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
1811
1969
  }
1970
+ export interface BatchGetCorehrV2EmployeesJobDataResponse {
1971
+ /** 查询的雇佣信息 */
1972
+ items?: EmployeeJobData[];
1973
+ }
1812
1974
  export interface ListCorehrV1JobDataQuery extends Pagination {
1813
1975
  /** 雇佣 ID */
1814
1976
  employment_id?: string;
@@ -1831,6 +1993,10 @@ export interface GetCorehrV1JobDataQuery {
1831
1993
  /** 此次调用中使用的部门 ID 类型 */
1832
1994
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
1833
1995
  }
1996
+ export interface GetCorehrV1JobDataResponse {
1997
+ /** 任职信息 */
1998
+ job_data?: JobData;
1999
+ }
1834
2000
  export interface CreateCorehrV2EmployeesAdditionalJobRequest {
1835
2001
  /** 人员类型 ID,可通过[【批量查询人员类型】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取 */
1836
2002
  employee_type_id: string;
@@ -1879,6 +2045,9 @@ export interface CreateCorehrV2EmployeesAdditionalJobQuery {
1879
2045
  /** 此次调用中使用的部门 ID 类型 */
1880
2046
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
1881
2047
  }
2048
+ export interface CreateCorehrV2EmployeesAdditionalJobResponse {
2049
+ additional_job?: EmployeesAdditionalJobWriteResp;
2050
+ }
1882
2051
  export interface PatchCorehrV2EmployeesAdditionalJobRequest {
1883
2052
  /** 人员类型 ID,可通过[【批量查询人员类型】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取 */
1884
2053
  employee_type_id?: string;
@@ -1925,6 +2094,9 @@ export interface PatchCorehrV2EmployeesAdditionalJobQuery {
1925
2094
  /** 此次调用中使用的部门 ID 类型 */
1926
2095
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
1927
2096
  }
2097
+ export interface PatchCorehrV2EmployeesAdditionalJobResponse {
2098
+ additional_job?: EmployeesAdditionalJobWriteResp;
2099
+ }
1928
2100
  export interface BatchCorehrV2EmployeesAdditionalJobRequest {
1929
2101
  /** 雇佣 ID */
1930
2102
  employment_ids?: string[];
@@ -1957,6 +2129,14 @@ export interface QueryOperationLogsCorehrV2DepartmentQuery extends Pagination {
1957
2129
  /** 此次调用中使用的部门 ID 类型 */
1958
2130
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
1959
2131
  }
2132
+ export interface QueryOperationLogsCorehrV2DepartmentResponse {
2133
+ /** 操作日志列表 */
2134
+ op_logs?: OrganizationOpLog[];
2135
+ /** 下一页token */
2136
+ next_page_token?: string;
2137
+ /** 是否有下一页 */
2138
+ has_more?: boolean;
2139
+ }
1960
2140
  export interface CreateCorehrV1DepartmentRequest {
1961
2141
  /** 子类型 */
1962
2142
  sub_type?: Enum;
@@ -1983,6 +2163,9 @@ export interface CreateCorehrV1DepartmentQuery {
1983
2163
  /** 此次调用中使用的部门 ID 类型 */
1984
2164
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
1985
2165
  }
2166
+ export interface CreateCorehrV1DepartmentResponse {
2167
+ department?: DepartmentCreate;
2168
+ }
1986
2169
  export interface PatchCorehrV2DepartmentRequest {
1987
2170
  /** 实体在CoreHR内部的唯一键 */
1988
2171
  id?: string;
@@ -2019,6 +2202,10 @@ export interface ParentsCorehrV2DepartmentQuery {
2019
2202
  /** 此次调用中使用的部门 ID 类型 */
2020
2203
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
2021
2204
  }
2205
+ export interface ParentsCorehrV2DepartmentResponse {
2206
+ /** 父部门查询结果 */
2207
+ items?: DepartmentParents[];
2208
+ }
2022
2209
  export interface BatchGetCorehrV2DepartmentRequest {
2023
2210
  /** 部门 ID 列表 */
2024
2211
  department_id_list?: string[];
@@ -2033,6 +2220,10 @@ export interface BatchGetCorehrV2DepartmentQuery {
2033
2220
  /** 此次调用中使用的部门 ID 类型 */
2034
2221
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
2035
2222
  }
2223
+ export interface BatchGetCorehrV2DepartmentResponse {
2224
+ /** 查询的部门信息 */
2225
+ items?: Department[];
2226
+ }
2036
2227
  export interface QueryRecentChangeCorehrV2DepartmentQuery extends Pagination {
2037
2228
  /** 查询的开始时间,格式 "yyyy-MM-dd",不带时分秒,包含 start_date 传入的时间, 系统会以 start_date 的 00:00:00 查询。 */
2038
2229
  start_date: string;
@@ -2041,6 +2232,16 @@ export interface QueryRecentChangeCorehrV2DepartmentQuery extends Pagination {
2041
2232
  /** 此次调用中使用的部门 ID 类型 */
2042
2233
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
2043
2234
  }
2235
+ export interface QueryRecentChangeCorehrV2DepartmentResponse {
2236
+ /** 部门 ID 列表 */
2237
+ department_ids?: string[];
2238
+ /** 目标查询时间范围内被删除的部门列表 */
2239
+ deleted_department_ids?: string[];
2240
+ /** 下一页页码 */
2241
+ page_token?: string;
2242
+ /** 是否有下一页 */
2243
+ has_more?: boolean;
2244
+ }
2044
2245
  export interface QueryTimelineCorehrV2DepartmentRequest {
2045
2246
  /** 部门 ID 列表 */
2046
2247
  department_ids: string[];
@@ -2055,6 +2256,10 @@ export interface QueryTimelineCorehrV2DepartmentQuery {
2055
2256
  /** 此次调用中使用的部门 ID 类型 */
2056
2257
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
2057
2258
  }
2259
+ export interface QueryTimelineCorehrV2DepartmentResponse {
2260
+ /** 部门信息 */
2261
+ items?: DepartmentTimeline[];
2262
+ }
2058
2263
  export interface TreeCorehrV2DepartmentRequest {
2059
2264
  /** 部门 ID,默认根部门 */
2060
2265
  department_id?: string;
@@ -2133,6 +2338,9 @@ export interface CreateCorehrV1LocationQuery {
2133
2338
  /** 根据client_token是否一致来判断是否为同一请求 */
2134
2339
  client_token?: string;
2135
2340
  }
2341
+ export interface CreateCorehrV1LocationResponse {
2342
+ location?: Location;
2343
+ }
2136
2344
  export interface PatchCorehrV2LocationRequest {
2137
2345
  /** 上级地点 ID */
2138
2346
  parent_id?: string;
@@ -2161,16 +2369,34 @@ export interface PatchCorehrV2LocationQuery {
2161
2369
  /** 根据 client_token 是否一致来判断是否为同一请求 */
2162
2370
  client_token?: string;
2163
2371
  }
2372
+ export interface GetCorehrV1LocationResponse {
2373
+ /** 地点信息 */
2374
+ location?: Location;
2375
+ }
2164
2376
  export interface QueryRecentChangeCorehrV2LocationQuery extends Pagination {
2165
2377
  /** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
2166
2378
  start_date: string;
2167
2379
  /** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
2168
2380
  end_date: string;
2169
2381
  }
2382
+ export interface QueryRecentChangeCorehrV2LocationResponse {
2383
+ /** 地点 ID 列表 */
2384
+ location_ids?: string[];
2385
+ /** 下一页页码 */
2386
+ page_token?: string;
2387
+ /** 是否有下一页 */
2388
+ has_more?: boolean;
2389
+ /** 删除的地点 ID 列表 */
2390
+ deleted_location_ids?: string[];
2391
+ }
2170
2392
  export interface BatchGetCorehrV2LocationRequest {
2171
2393
  /** 地点 ID 列表 */
2172
2394
  location_ids: string[];
2173
2395
  }
2396
+ export interface BatchGetCorehrV2LocationResponse {
2397
+ /** 查询的地点信息 */
2398
+ items?: Location[];
2399
+ }
2174
2400
  export interface ActiveCorehrV2LocationRequest {
2175
2401
  /** 地点 ID */
2176
2402
  location_id: string;
@@ -2261,6 +2487,10 @@ export interface CreateCorehrV2LocationAddressQuery {
2261
2487
  /** 根据 client_token 是否一致来判断是否为同一请求 */
2262
2488
  client_token?: string;
2263
2489
  }
2490
+ export interface CreateCorehrV2LocationAddressResponse {
2491
+ /** 地址 ID */
2492
+ address_id?: string;
2493
+ }
2264
2494
  export interface CreateCorehrV1CompanyRequest {
2265
2495
  /** 层级关系,内层字段见实体 */
2266
2496
  hiberarchy_common: HiberarchyCommon;
@@ -2299,6 +2529,9 @@ export interface CreateCorehrV1CompanyQuery {
2299
2529
  /** 根据client_token是否一致来判断是否为同一请求 */
2300
2530
  client_token?: string;
2301
2531
  }
2532
+ export interface CreateCorehrV1CompanyResponse {
2533
+ company?: Company;
2534
+ }
2302
2535
  export interface PatchCorehrV1CompanyRequest {
2303
2536
  /** 层级关系,内层字段见实体 */
2304
2537
  hiberarchy_common?: HiberarchyCommon;
@@ -2335,6 +2568,9 @@ export interface PatchCorehrV1CompanyQuery {
2335
2568
  /** 根据client_token是否一致来判断是否为同一请求 */
2336
2569
  client_token?: string;
2337
2570
  }
2571
+ export interface PatchCorehrV1CompanyResponse {
2572
+ company?: Company;
2573
+ }
2338
2574
  export interface ActiveCorehrV2CompanyRequest {
2339
2575
  /** 公司ID */
2340
2576
  company_id: string;
@@ -2345,16 +2581,34 @@ export interface ActiveCorehrV2CompanyRequest {
2345
2581
  /** 操作原因 */
2346
2582
  operation_reason: string;
2347
2583
  }
2584
+ export interface GetCorehrV1CompanyResponse {
2585
+ /** 公司信息 */
2586
+ company?: Company;
2587
+ }
2348
2588
  export interface QueryRecentChangeCorehrV2CompanyQuery extends Pagination {
2349
2589
  /** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
2350
2590
  start_date: string;
2351
2591
  /** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
2352
2592
  end_date: string;
2353
2593
  }
2594
+ export interface QueryRecentChangeCorehrV2CompanyResponse {
2595
+ /** 公司 ID 列表 */
2596
+ company_ids?: string[];
2597
+ /** 下一页页码 */
2598
+ page_token?: string;
2599
+ /** 是否有下一页 */
2600
+ has_more?: boolean;
2601
+ /** 删除的公司 ID 列表 */
2602
+ deleted_company_ids?: string[];
2603
+ }
2354
2604
  export interface BatchGetCorehrV2CompanyRequest {
2355
2605
  /** 公司 ID 列表 */
2356
2606
  company_ids: string[];
2357
2607
  }
2608
+ export interface BatchGetCorehrV2CompanyResponse {
2609
+ /** 查询的公司信息 */
2610
+ items?: Company[];
2611
+ }
2358
2612
  export interface CreateCorehrV2CostCenterRequest {
2359
2613
  /** 成本中心名称 */
2360
2614
  name: I18n[];
@@ -2373,6 +2627,9 @@ export interface CreateCorehrV2CostCenterQuery {
2373
2627
  /** 用户 ID 类型 */
2374
2628
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
2375
2629
  }
2630
+ export interface CreateCorehrV2CostCenterResponse {
2631
+ cost_center?: CostCenter;
2632
+ }
2376
2633
  export interface PatchCorehrV2CostCenterRequest {
2377
2634
  /** 生效时间 */
2378
2635
  effective_time: string;
@@ -2385,12 +2642,25 @@ export interface PatchCorehrV2CostCenterQuery {
2385
2642
  /** 用户 ID 类型 */
2386
2643
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
2387
2644
  }
2645
+ export interface PatchCorehrV2CostCenterResponse {
2646
+ cost_center?: CostCenter;
2647
+ }
2388
2648
  export interface QueryRecentChangeCorehrV2CostCenterQuery extends Pagination {
2389
2649
  /** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
2390
2650
  start_date: string;
2391
2651
  /** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
2392
2652
  end_date: string;
2393
2653
  }
2654
+ export interface QueryRecentChangeCorehrV2CostCenterResponse {
2655
+ /** 成本中心 ID 列表 */
2656
+ cost_center_ids?: string[];
2657
+ /** 下一页页码 */
2658
+ page_token?: string;
2659
+ /** 是否有下一页 */
2660
+ has_more?: boolean;
2661
+ /** 删除的成本中心 ID 列表 */
2662
+ deleted_cost_center_ids?: string[];
2663
+ }
2394
2664
  export interface SearchCorehrV2CostCenterRequest {
2395
2665
  /** 成本中心ID 列表 */
2396
2666
  cost_center_id_list?: string[];
@@ -2429,6 +2699,9 @@ export interface CreateCorehrV2CostCenterVersionQuery {
2429
2699
  /** 用户 ID 类型 */
2430
2700
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
2431
2701
  }
2702
+ export interface CreateCorehrV2CostCenterVersionResponse {
2703
+ version?: CostCenterVersion;
2704
+ }
2432
2705
  export interface PatchCorehrV2CostCenterVersionRequest {
2433
2706
  /** 成本中心名称 */
2434
2707
  name?: I18n[];
@@ -2447,6 +2720,9 @@ export interface PatchCorehrV2CostCenterVersionQuery {
2447
2720
  /** 用户 ID 类型 */
2448
2721
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
2449
2722
  }
2723
+ export interface PatchCorehrV2CostCenterVersionResponse {
2724
+ version?: CostCenterVersion;
2725
+ }
2450
2726
  export interface DeleteCorehrV2CostCenterVersionRequest {
2451
2727
  /** 操作原因 */
2452
2728
  operation_reason: string;
@@ -2455,6 +2731,10 @@ export interface GetCorehrV2ApprovalGroupsQuery {
2455
2731
  /** 用户 ID 类型 */
2456
2732
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
2457
2733
  }
2734
+ export interface GetCorehrV2ApprovalGroupsResponse {
2735
+ /** 组织架构调整流程信息 */
2736
+ approval_group?: ApprovalGroup;
2737
+ }
2458
2738
  export interface OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsRequest {
2459
2739
  /** 部门调整记录 ID List */
2460
2740
  department_change_ids?: string[];
@@ -2469,6 +2749,10 @@ export interface OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsQuery {
2469
2749
  /** 此次调用中使用的部门 ID 类型 */
2470
2750
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
2471
2751
  }
2752
+ export interface OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsResponse {
2753
+ /** 部门调整记录信息列表 */
2754
+ department_changes?: DepartmentChange[];
2755
+ }
2472
2756
  export interface OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsRequest {
2473
2757
  /** 人员异动记录 ID List */
2474
2758
  job_change_ids?: string[];
@@ -2483,6 +2767,10 @@ export interface OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsQuery {
2483
2767
  /** 此次调用中使用的部门 ID 类型 */
2484
2768
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
2485
2769
  }
2770
+ export interface OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsResponse {
2771
+ /** 人员异动记录信息列表 */
2772
+ job_changes?: JobChange[];
2773
+ }
2486
2774
  export interface CreateCorehrV1JobFamilyRequest {
2487
2775
  /** 名称 */
2488
2776
  name: I18n[];
@@ -2501,6 +2789,9 @@ export interface CreateCorehrV1JobFamilyQuery {
2501
2789
  /** 根据client_token是否一致来判断是否为同一请求 */
2502
2790
  client_token?: string;
2503
2791
  }
2792
+ export interface CreateCorehrV1JobFamilyResponse {
2793
+ job_family?: JobFamily;
2794
+ }
2504
2795
  export interface PatchCorehrV1JobFamilyRequest {
2505
2796
  /** 名称 */
2506
2797
  name?: I18n[];
@@ -2519,16 +2810,37 @@ export interface PatchCorehrV1JobFamilyQuery {
2519
2810
  /** 根据client_token是否一致来判断是否为同一请求 */
2520
2811
  client_token?: string;
2521
2812
  }
2813
+ export interface PatchCorehrV1JobFamilyResponse {
2814
+ job_family?: JobFamily;
2815
+ }
2816
+ export interface GetCorehrV1JobFamilyResponse {
2817
+ /** 职务序列信息 */
2818
+ job_family?: JobFamily;
2819
+ }
2522
2820
  export interface QueryRecentChangeCorehrV2JobFamilyQuery extends Pagination {
2523
2821
  /** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
2524
2822
  start_date: string;
2525
2823
  /** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
2526
2824
  end_date: string;
2527
2825
  }
2826
+ export interface QueryRecentChangeCorehrV2JobFamilyResponse {
2827
+ /** 序列 ID 列表 */
2828
+ job_family_ids?: string[];
2829
+ /** 下一页页码 */
2830
+ page_token?: string;
2831
+ /** 是否有下一页 */
2832
+ has_more?: boolean;
2833
+ /** 删除的序列 ID 列表 */
2834
+ deleted_job_family_ids?: string[];
2835
+ }
2528
2836
  export interface BatchGetCorehrV2JobFamilyRequest {
2529
2837
  /** 序列 ID 列表 */
2530
2838
  job_family_ids: string[];
2531
2839
  }
2840
+ export interface BatchGetCorehrV2JobFamilyResponse {
2841
+ /** 查询的序列信息 */
2842
+ items?: JobFamily[];
2843
+ }
2532
2844
  export interface CreateCorehrV1JobLevelRequest {
2533
2845
  /** 职级数值 */
2534
2846
  level_order: number;
@@ -2549,6 +2861,9 @@ export interface CreateCorehrV1JobLevelQuery {
2549
2861
  /** 根据client_token是否一致来判断是否为同一请求 */
2550
2862
  client_token?: string;
2551
2863
  }
2864
+ export interface CreateCorehrV1JobLevelResponse {
2865
+ job_level?: JobLevel;
2866
+ }
2552
2867
  export interface PatchCorehrV1JobLevelRequest {
2553
2868
  /** 职级数值 */
2554
2869
  level_order?: number;
@@ -2569,16 +2884,37 @@ export interface PatchCorehrV1JobLevelQuery {
2569
2884
  /** 根据client_token是否一致来判断是否为同一请求 */
2570
2885
  client_token?: string;
2571
2886
  }
2572
- export interface QueryRecentChangeCorehrV2JobLevelQuery extends Pagination {
2573
- /** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
2574
- start_date: string;
2575
- /** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
2576
- end_date: string;
2887
+ export interface PatchCorehrV1JobLevelResponse {
2888
+ job_level?: JobLevel;
2889
+ }
2890
+ export interface GetCorehrV1JobLevelResponse {
2891
+ /** 职务级别信息 */
2892
+ job_level?: JobLevel;
2893
+ }
2894
+ export interface QueryRecentChangeCorehrV2JobLevelQuery extends Pagination {
2895
+ /** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */
2896
+ start_date: string;
2897
+ /** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
2898
+ end_date: string;
2899
+ }
2900
+ export interface QueryRecentChangeCorehrV2JobLevelResponse {
2901
+ /** 职级 ID 列表 */
2902
+ job_level_ids?: string[];
2903
+ /** 下一页页码 */
2904
+ page_token?: string;
2905
+ /** 是否有下一页 */
2906
+ has_more?: boolean;
2907
+ /** 删除的职级 ID 列表 */
2908
+ deleted_job_level_ids?: string[];
2577
2909
  }
2578
2910
  export interface BatchGetCorehrV2JobLevelRequest {
2579
2911
  /** 职级 ID 列表 */
2580
2912
  job_level_ids: string[];
2581
2913
  }
2914
+ export interface BatchGetCorehrV2JobLevelResponse {
2915
+ /** 查询的职级信息 */
2916
+ items?: JobLevel[];
2917
+ }
2582
2918
  export interface CreateCorehrV2JobGradeRequest {
2583
2919
  /** 职等数值 */
2584
2920
  grade_order: number;
@@ -2593,6 +2929,10 @@ export interface CreateCorehrV2JobGradeQuery {
2593
2929
  /** 根据client_token是否一致来判断是否为同一请求 */
2594
2930
  client_token?: string;
2595
2931
  }
2932
+ export interface CreateCorehrV2JobGradeResponse {
2933
+ /** 职等ID */
2934
+ grade_id?: string;
2935
+ }
2596
2936
  export interface PatchCorehrV2JobGradeRequest {
2597
2937
  /** 职等数值 */
2598
2938
  grade_order?: number;
@@ -2623,6 +2963,16 @@ export interface QueryRecentChangeCorehrV2JobGradeQuery extends Pagination {
2623
2963
  /** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */
2624
2964
  end_date: string;
2625
2965
  }
2966
+ export interface QueryRecentChangeCorehrV2JobGradeResponse {
2967
+ /** 职等 ID 列表 */
2968
+ job_grade_ids?: string[];
2969
+ /** 下一页页码 */
2970
+ page_token?: string;
2971
+ /** 是否有下一页 */
2972
+ has_more?: boolean;
2973
+ /** 删除的职等 ID 列表 */
2974
+ deleted_job_grade_ids?: string[];
2975
+ }
2626
2976
  export interface CreateCorehrV1JobRequest {
2627
2977
  /** 编码 */
2628
2978
  code?: string;
@@ -2649,6 +2999,9 @@ export interface CreateCorehrV1JobQuery {
2649
2999
  /** 根据client_token是否一致来判断是否为同一请求 */
2650
3000
  client_token?: string;
2651
3001
  }
3002
+ export interface CreateCorehrV1JobResponse {
3003
+ job?: Job;
3004
+ }
2652
3005
  export interface PatchCorehrV1JobRequest {
2653
3006
  /** 编码 */
2654
3007
  code?: string;
@@ -2675,6 +3028,13 @@ export interface PatchCorehrV1JobQuery {
2675
3028
  /** 根据client_token是否一致来判断是否为同一请求 */
2676
3029
  client_token?: string;
2677
3030
  }
3031
+ export interface PatchCorehrV1JobResponse {
3032
+ job?: Job;
3033
+ }
3034
+ export interface GetCorehrV2JobResponse {
3035
+ /** 职务信息 */
3036
+ job?: Job;
3037
+ }
2678
3038
  export interface ListCorehrV2JobQuery extends Pagination {
2679
3039
  /** 名称 */
2680
3040
  name?: string;
@@ -2687,12 +3047,20 @@ export interface WithdrawOnboardingCorehrV2PreHireRequest {
2687
3047
  /** 撤销原因 */
2688
3048
  withdraw_reason: string;
2689
3049
  }
3050
+ export interface WithdrawOnboardingCorehrV2PreHireResponse {
3051
+ /** 是否成功撤销入职 */
3052
+ success?: boolean;
3053
+ }
2690
3054
  export interface RestoreFlowInstanceCorehrV2PreHireRequest {
2691
3055
  /** 待入职ID,可从待入职列表接口获取 */
2692
3056
  pre_hire_id: string;
2693
3057
  /** 是否强制占编;true为强制占编;false为非强制占编 */
2694
3058
  confirm_workforce?: boolean;
2695
3059
  }
3060
+ export interface RestoreFlowInstanceCorehrV2PreHireResponse {
3061
+ /** 是否成功恢复入职 */
3062
+ success?: boolean;
3063
+ }
2696
3064
  export interface CreateCorehrV2PreHireRequest {
2697
3065
  /** 个人信息 */
2698
3066
  basic_info: BasicInfo;
@@ -2707,6 +3075,10 @@ export interface CreateCorehrV2PreHireRequest {
2707
3075
  /** 外部业务唯一编码 */
2708
3076
  out_biz_id?: string;
2709
3077
  }
3078
+ export interface CreateCorehrV2PreHireResponse {
3079
+ /** 待入职 ID */
3080
+ pre_hire_id?: string;
3081
+ }
2710
3082
  export interface PatchCorehrV2PreHireRequest {
2711
3083
  /** 更新个人(person)信息 */
2712
3084
  basic_info_update?: BasicInfoUpdate;
@@ -2719,6 +3091,10 @@ export interface PatchCorehrV2PreHireRequest {
2719
3091
  /** 指定需要更新的Person对象上的自定义字段,格式如下: - custom_field1__c */
2720
3092
  person_custom_update_fields?: string[];
2721
3093
  }
3094
+ export interface PatchCorehrV2PreHireResponse {
3095
+ /** 待入职ID */
3096
+ pre_hire_id?: string;
3097
+ }
2722
3098
  export interface QueryCorehrV2PreHireRequest {
2723
3099
  /** 待入职人员 ID 列表;如果该字段非空,则不按照page_size、page_token分页方式查询 */
2724
3100
  pre_hire_ids?: string[];
@@ -2731,6 +3107,10 @@ export interface QueryCorehrV2PreHireQuery extends Pagination {
2731
3107
  /** 此次调用中使用的部门 ID 类型 */
2732
3108
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
2733
3109
  }
3110
+ export interface GetCorehrV1PreHireResponse {
3111
+ /** 待入职信息 */
3112
+ pre_hire?: PreHire;
3113
+ }
2734
3114
  export interface ListCorehrV1PreHireQuery extends Pagination {
2735
3115
  /** 待入职ID列表 */
2736
3116
  pre_hire_ids?: string[];
@@ -2781,6 +3161,14 @@ export interface TransitTaskCorehrV2PreHireRequest {
2781
3161
  /** 系统预置的职位信息和个人信息任务的task_id分别为1和2,自定义任务的task_id是一串UUID */
2782
3162
  task_id: string;
2783
3163
  }
3164
+ export interface TransitTaskCorehrV2PreHireResponse {
3165
+ /** 是否成功流转任务 */
3166
+ success?: boolean;
3167
+ }
3168
+ export interface CompleteCorehrV2PreHireResponse {
3169
+ /** 是否成功完成入职 */
3170
+ success?: boolean;
3171
+ }
2784
3172
  export interface PatchCorehrV1PreHireRequest {
2785
3173
  /** 招聘系统的候选人 ID */
2786
3174
  ats_application_id?: string;
@@ -2805,6 +3193,9 @@ export interface PatchCorehrV1PreHireQuery {
2805
3193
  /** 根据client_token是否一致来判断是否为同一请求 */
2806
3194
  client_token?: string;
2807
3195
  }
3196
+ export interface PatchCorehrV1PreHireResponse {
3197
+ pre_hire?: PreHire;
3198
+ }
2808
3199
  export interface CreateCorehrV2ProbationAssessmentRequest {
2809
3200
  /** 试用期人员的雇佣 ID */
2810
3201
  employment_id: string;
@@ -2817,6 +3208,10 @@ export interface CreateCorehrV2ProbationAssessmentQuery {
2817
3208
  /** 用户 ID 类型 */
2818
3209
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
2819
3210
  }
3211
+ export interface CreateCorehrV2ProbationAssessmentResponse {
3212
+ /** 创建的试用期考核记录 ID 列表,有序返回 */
3213
+ assessment_ids?: string[];
3214
+ }
2820
3215
  export interface EnableDisableAssessmentCorehrV2ProbationRequest {
2821
3216
  /** 启用 / 停用状态。启用后可在试用期管理页面中可见试用期考核相关的字段。 */
2822
3217
  active: boolean;
@@ -2901,6 +3296,10 @@ export interface SubmitCorehrV2ProbationQuery {
2901
3296
  /** 用户 ID 类型 */
2902
3297
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
2903
3298
  }
3299
+ export interface SubmitCorehrV2ProbationResponse {
3300
+ /** 试用期信息 */
3301
+ probation_info?: ProbationInfoForSubmit;
3302
+ }
2904
3303
  export interface WithdrawCorehrV2ProbationRequest {
2905
3304
  /** 试用期人员的雇佣 ID */
2906
3305
  employment_id: string;
@@ -2911,9 +3310,15 @@ export interface WithdrawCorehrV2ProbationQuery {
2911
3310
  /** 用户 ID 类型 */
2912
3311
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
2913
3312
  }
3313
+ export declare const enum CreateCorehrV2JobChangeRequestTransferMode {
3314
+ /** 直接异动 */
3315
+ Type1 = 1,
3316
+ /** 发起异动 */
3317
+ Type2 = 2
3318
+ }
2914
3319
  export interface CreateCorehrV2JobChangeRequest {
2915
3320
  /** 异动方式 */
2916
- transfer_mode: 1 | 2;
3321
+ transfer_mode: CreateCorehrV2JobChangeRequestTransferMode;
2917
3322
  /** 雇员id */
2918
3323
  employment_id: string;
2919
3324
  /** 异动类型唯一标识 */
@@ -2937,18 +3342,50 @@ export interface CreateCorehrV2JobChangeQuery {
2937
3342
  /** 此次调用中使用的部门 ID 类型 */
2938
3343
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
2939
3344
  }
3345
+ export interface CreateCorehrV2JobChangeResponse {
3346
+ /** 异动记录 id */
3347
+ job_change_id?: string;
3348
+ /** 雇员 id */
3349
+ employment_id?: string;
3350
+ /** 异动状态 */
3351
+ status?: 'Approving' | 'Approved' | 'Transformed' | 'Rejected' | 'Cancelled' | 'NoNeedApproval';
3352
+ /** 异动类型 */
3353
+ transfer_type_unique_identifier?: string;
3354
+ /** 异动原因 */
3355
+ transfer_reason_unique_identifier?: string;
3356
+ /** 异动流程 id */
3357
+ process_id?: string;
3358
+ /** 生效时间 */
3359
+ effective_date?: string;
3360
+ /** 创建时间 */
3361
+ created_time?: string;
3362
+ /** 异动详细信息 */
3363
+ transfer_info?: TransferInfo;
3364
+ /** 是否调整薪酬 */
3365
+ is_adjust_salary?: boolean;
3366
+ /** 异动自定义字段 */
3367
+ custom_fields?: CustomFieldData[];
3368
+ }
2940
3369
  export interface QueryCorehrV1TransferTypeQuery {
2941
3370
  /** 异动类型状态 */
2942
3371
  active?: boolean;
2943
3372
  /** 异动类型唯一标识,多条时最多数量为10 */
2944
3373
  transfer_type_unique_identifier?: string[];
2945
3374
  }
3375
+ export interface QueryCorehrV1TransferTypeResponse {
3376
+ /** 异动类型列表 */
3377
+ items?: TransferType[];
3378
+ }
2946
3379
  export interface QueryCorehrV1TransferReasonQuery {
2947
3380
  /** 异动原因状态 */
2948
3381
  active?: boolean;
2949
3382
  /** 异动原因唯一标识,多条时最多数量为10 */
2950
3383
  transfer_reason_unique_identifier?: string[];
2951
3384
  }
3385
+ export interface QueryCorehrV1TransferReasonResponse {
3386
+ /** 异动原因列表 */
3387
+ items?: TransferReason[];
3388
+ }
2952
3389
  export interface SearchCorehrV2JobChangeRequest {
2953
3390
  /** 雇员 ID 列表 */
2954
3391
  employment_ids?: string[];
@@ -3005,15 +3442,59 @@ export interface CreateCorehrV1JobChangeQuery {
3005
3442
  /** 此次调用中使用的部门 ID 类型 */
3006
3443
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
3007
3444
  }
3445
+ export declare const enum CreateCorehrV1JobChangeResponseStatus {
3446
+ /** Approving 审批中 */
3447
+ Approving = 0,
3448
+ /** Approved 审批通过 */
3449
+ Approved = 1,
3450
+ /** Transformed 已异动 */
3451
+ Transformed = 2,
3452
+ /** Rejected 已拒绝 */
3453
+ Rejected = 3,
3454
+ /** Cancelled 已撤销 */
3455
+ Cancelled = 4,
3456
+ /** NoNeedApproval 无需审批 */
3457
+ NoNeedApproval = 5
3458
+ }
3459
+ export interface CreateCorehrV1JobChangeResponse {
3460
+ /** 异动记录 id */
3461
+ job_change_id?: string;
3462
+ /** 雇员 id */
3463
+ employment_id?: string;
3464
+ /** 异动状态 */
3465
+ status?: CreateCorehrV1JobChangeResponseStatus;
3466
+ /** 异动类型 */
3467
+ transfer_type_unique_identifier?: string;
3468
+ /** 异动原因 */
3469
+ transfer_reason_unique_identifier?: string;
3470
+ /** 异动流程 id */
3471
+ process_id?: string;
3472
+ /** 生效时间 */
3473
+ effective_date?: string;
3474
+ /** 创建时间 */
3475
+ created_time?: string;
3476
+ /** 异动详细信息 */
3477
+ transfer_info?: TransferInfo;
3478
+ }
3008
3479
  export interface QueryCorehrV1OffboardingRequest {
3009
3480
  /** 是否启用 */
3010
3481
  active?: boolean;
3011
3482
  /** 离职原因唯一标识列表,用于过滤,最大20个 */
3012
3483
  offboarding_reason_unique_identifier?: string[];
3013
3484
  }
3485
+ export interface QueryCorehrV1OffboardingResponse {
3486
+ /** 离职原因列表 */
3487
+ items?: OffboardingReason[];
3488
+ }
3489
+ export declare const enum SubmitV2CorehrV2OffboardingRequestOffboardingMode {
3490
+ /** 直接离职 */
3491
+ TerminationOfDismissal = 1,
3492
+ /** 发起离职审批 */
3493
+ OffboardingWithProcess = 2
3494
+ }
3014
3495
  export interface SubmitV2CorehrV2OffboardingRequest {
3015
3496
  /** 离职方式 */
3016
- offboarding_mode: 1 | 2;
3497
+ offboarding_mode: SubmitV2CorehrV2OffboardingRequestOffboardingMode;
3017
3498
  /** 雇员 id */
3018
3499
  employment_id: string;
3019
3500
  /** 离职日期 */
@@ -3041,6 +3522,30 @@ export interface SubmitV2CorehrV2OffboardingQuery {
3041
3522
  /** 用户 ID 类型 */
3042
3523
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
3043
3524
  }
3525
+ export interface SubmitV2CorehrV2OffboardingResponse {
3526
+ /** 离职记录 id */
3527
+ offboarding_id?: string;
3528
+ /** 雇员 id */
3529
+ employment_id?: string;
3530
+ /** 离职原因 */
3531
+ offboarding_reason_unique_identifier?: string;
3532
+ /** 离职日期 */
3533
+ offboarding_date?: string;
3534
+ /** 离职原因说明 */
3535
+ offboarding_reason_explanation?: string;
3536
+ /** 是否加入离职屏蔽名单 */
3537
+ add_block_list?: boolean;
3538
+ /** 屏蔽原因 */
3539
+ block_reason?: string;
3540
+ /** 屏蔽原因说明 */
3541
+ block_reason_explanation?: string;
3542
+ /** 创建时间 */
3543
+ created_time?: string;
3544
+ /** 离职是否保留飞书账号 */
3545
+ retain_account?: boolean;
3546
+ /** 编制随人员一起调整 */
3547
+ is_transfer_with_workforce?: boolean;
3548
+ }
3044
3549
  export interface EditCorehrV2OffboardingRequest {
3045
3550
  /** 离职记录 ID */
3046
3551
  offboarding_id: string;
@@ -3053,6 +3558,10 @@ export interface EditCorehrV2OffboardingQuery {
3053
3558
  /** 用户 ID 类型 */
3054
3559
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
3055
3560
  }
3561
+ export interface EditCorehrV2OffboardingResponse {
3562
+ /** 编辑字段数据信息 */
3563
+ data: ObjectFieldData[];
3564
+ }
3056
3565
  export interface RevokeCorehrV2OffboardingRequest {
3057
3566
  /** 离职记录 ID */
3058
3567
  offboarding_id: string;
@@ -3121,6 +3630,9 @@ export interface CreateCorehrV1ContractQuery {
3121
3630
  /** 根据client_token是否一致来判断是否为同一请求 */
3122
3631
  client_token?: string;
3123
3632
  }
3633
+ export interface CreateCorehrV1ContractResponse {
3634
+ contract?: Contract;
3635
+ }
3124
3636
  export interface PatchCorehrV1ContractRequest {
3125
3637
  /** 合同开始日期 */
3126
3638
  effective_time?: string;
@@ -3149,6 +3661,13 @@ export interface PatchCorehrV1ContractQuery {
3149
3661
  /** 根据client_token是否一致来判断是否为同一请求 */
3150
3662
  client_token?: string;
3151
3663
  }
3664
+ export interface PatchCorehrV1ContractResponse {
3665
+ contract?: Contract;
3666
+ }
3667
+ export interface GetCorehrV1ContractResponse {
3668
+ /** 合同信息 */
3669
+ contract?: Contract;
3670
+ }
3152
3671
  export interface SearchCorehrV2ContractRequest {
3153
3672
  /** 雇佣 ID 列表 */
3154
3673
  employment_id_list?: string[];
@@ -3193,6 +3712,12 @@ export interface ListCorehrV2WorkforcePlanQuery {
3193
3712
  /** 是否只获取已启用的方案,true 获取已启用编制规划方案,false 获取所有编制规划方案,默认为 true示例值:true */
3194
3713
  active?: boolean;
3195
3714
  }
3715
+ export interface ListCorehrV2WorkforcePlanResponse {
3716
+ /** 方案列表 */
3717
+ items?: WorkforcePlan[];
3718
+ /** 方案总数 */
3719
+ total?: number;
3720
+ }
3196
3721
  export interface BatchCorehrV2WorkforcePlanDetailRequest {
3197
3722
  /** 编制规划方案ID,ID及详细信息可通过获取编制规划方案列表接口查询获得。查询编制规划明细信息时,编制规划方案ID必填,是否为集中填报项目设置为false,不填写集中填报项目ID(是否填写不影响返回结果) */
3198
3723
  workforce_plan_id?: string;
@@ -3215,6 +3740,18 @@ export interface BatchCorehrV2WorkforcePlanDetailRequest {
3215
3740
  /** 成本中心 ID 列表,可以通过搜索成本中心信息接口获取对应的成本中心信息 */
3216
3741
  cost_center_ids?: string[];
3217
3742
  }
3743
+ export interface BatchCorehrV2WorkforcePlanDetailResponse {
3744
+ /** 编制规划方案 ID */
3745
+ workforce_plan_id?: string;
3746
+ /** 集中填报项目 ID */
3747
+ centralized_reporting_project_id?: string;
3748
+ /** 编制规划明细信息 */
3749
+ items?: WorkforcePlanDetail[];
3750
+ /** 分页标识 */
3751
+ page_token?: string;
3752
+ /** 是否还有更多项 */
3753
+ has_more?: boolean;
3754
+ }
3218
3755
  export interface CreateCorehrV1LeaveGrantingRecordRequest {
3219
3756
  /** 假期类型 ID,枚举值可通过【获取假期类型列表】接口获取(若假期类型下存在假期子类,此处仅支持传入假期子类的 ID) */
3220
3757
  leave_type_id: string;
@@ -3239,6 +3776,10 @@ export interface CreateCorehrV1LeaveGrantingRecordQuery {
3239
3776
  /** 此次调用中使用的用户ID的类型 */
3240
3777
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
3241
3778
  }
3779
+ export interface CreateCorehrV1LeaveGrantingRecordResponse {
3780
+ /** 假期授予记录 */
3781
+ leave_granting_record?: LeaveGrantingRecord;
3782
+ }
3242
3783
  export interface LeaveTypesCorehrV1LeaveQuery extends Pagination {
3243
3784
  /** 假期类型状态(不传则为全部)可选值有:- 1:已启用- 2:已停用 */
3244
3785
  status?: string;
@@ -3313,6 +3854,12 @@ export interface WorkCalendarCorehrV1LeaveRequest {
3313
3854
  /** 是否只返回启用的工作日历,不填默认true */
3314
3855
  only_enable?: boolean;
3315
3856
  }
3857
+ export interface WorkCalendarCorehrV1LeaveResponse {
3858
+ /** 工作日历列表 */
3859
+ work_calendars?: WorkCalendarDetail[];
3860
+ /** 入参count=true,则返回符合条件的工作日历总数 */
3861
+ count?: number;
3862
+ }
3316
3863
  export interface CalendarByScopeCorehrV1LeaveQuery {
3317
3864
  /** 用户所属部门的ID列表 */
3318
3865
  wk_department_id?: string;
@@ -3329,6 +3876,10 @@ export interface CalendarByScopeCorehrV1LeaveQuery {
3329
3876
  /** 公司 ID */
3330
3877
  wk_company_id?: string;
3331
3878
  }
3879
+ export interface CalendarByScopeCorehrV1LeaveResponse {
3880
+ /** 工作日历id */
3881
+ calendar_wk_id?: string;
3882
+ }
3332
3883
  export interface WorkCalendarDateCorehrV1LeaveRequest {
3333
3884
  /** 工作日历WKID列表,最多100 */
3334
3885
  wk_calendar_ids: string[];
@@ -3345,6 +3896,10 @@ export interface WorkCalendarDateCorehrV1LeaveRequest {
3345
3896
  /** 日期id,与其他筛选参数互斥,传了该参数,其他筛选参数不起效 */
3346
3897
  ids?: string[];
3347
3898
  }
3899
+ export interface WorkCalendarDateCorehrV1LeaveResponse {
3900
+ /** 日期类型列表 */
3901
+ calendar_dates?: WkCalendarDate[];
3902
+ }
3348
3903
  export interface QueryCorehrV1AuthorizationQuery extends Pagination {
3349
3904
  /** 员工ID列表,最大100个(不传则默认查询全部员工) */
3350
3905
  employment_id_list?: string[];
@@ -3363,6 +3918,10 @@ export interface GetByParamCorehrV1AuthorizationQuery {
3363
3918
  /** 用户 ID 类型 */
3364
3919
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
3365
3920
  }
3921
+ export interface GetByParamCorehrV1AuthorizationResponse {
3922
+ /** 角色授权信息 */
3923
+ role_authorization?: RoleAuthorization;
3924
+ }
3366
3925
  export interface AddRoleAssignCorehrV1AuthorizationRequest {
3367
3926
  /** 授权 */
3368
3927
  assigned_organization_items: AssignedOrganizationWithCode[][];
@@ -3375,6 +3934,10 @@ export interface AddRoleAssignCorehrV1AuthorizationQuery {
3375
3934
  /** 角色 ID */
3376
3935
  role_id: string;
3377
3936
  }
3937
+ export interface AddRoleAssignCorehrV1AuthorizationResponse {
3938
+ /** 授权id */
3939
+ assign_id?: string;
3940
+ }
3378
3941
  export interface UpdateRoleAssignCorehrV1AuthorizationRequest {
3379
3942
  /** 授权 */
3380
3943
  assigned_organization_items: AssignedOrganizationWithCode[][];
@@ -3387,6 +3950,10 @@ export interface UpdateRoleAssignCorehrV1AuthorizationQuery {
3387
3950
  /** 角色 ID */
3388
3951
  role_id: string;
3389
3952
  }
3953
+ export interface UpdateRoleAssignCorehrV1AuthorizationResponse {
3954
+ /** 授权id */
3955
+ assign_id?: string;
3956
+ }
3390
3957
  export interface RemoveRoleAssignCorehrV1AuthorizationQuery {
3391
3958
  /** 雇员 ID */
3392
3959
  employment_id: string;
@@ -3395,6 +3962,10 @@ export interface RemoveRoleAssignCorehrV1AuthorizationQuery {
3395
3962
  /** 角色 ID */
3396
3963
  role_id: string;
3397
3964
  }
3965
+ export interface RemoveRoleAssignCorehrV1AuthorizationResponse {
3966
+ /** 授权id */
3967
+ assign_id?: string;
3968
+ }
3398
3969
  export interface BatchGetCorehrV2EmployeesBpRequest {
3399
3970
  /** 员工雇佣 ID */
3400
3971
  employment_ids: string[];
@@ -3405,6 +3976,12 @@ export interface BatchGetCorehrV2EmployeesBpQuery {
3405
3976
  /** 用户 ID 类型 */
3406
3977
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
3407
3978
  }
3979
+ export interface BatchGetCorehrV2EmployeesBpResponse {
3980
+ /** 员工直属 BP 信息,当员工所在部门、属地无 BP 时,会上钻找到最近的 BP */
3981
+ employment_direct_bps?: EmploymentBp[];
3982
+ /** 员工全部 BP 信息 */
3983
+ employment_all_bps?: EmploymentBp[];
3984
+ }
3408
3985
  export interface GetByDepartmentCorehrV2BpRequest {
3409
3986
  /** 部门 ID */
3410
3987
  department_id: string;
@@ -3415,6 +3992,10 @@ export interface GetByDepartmentCorehrV2BpQuery {
3415
3992
  /** 此次调用中使用的部门 ID 类型 */
3416
3993
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
3417
3994
  }
3995
+ export interface GetByDepartmentCorehrV2BpResponse {
3996
+ /** 部门 HRBP 信息,依次为部门及各层级上级部门 */
3997
+ items?: DepartmentHrbp[];
3998
+ }
3418
3999
  export interface QueryCorehrV1SecurityGroupRequest {
3419
4000
  /** 角色列表,一次最多支持查询 50 个 */
3420
4001
  item_list: BpRoleOrganization[];
@@ -3427,6 +4008,10 @@ export interface QueryCorehrV1SecurityGroupQuery {
3427
4008
  /** 此次调用中使用的部门 ID 类型 */
3428
4009
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
3429
4010
  }
4011
+ export interface QueryCorehrV1SecurityGroupResponse {
4012
+ /** HRBP/属地 BP 信息 */
4013
+ hrbp_list?: Hrbp[];
4014
+ }
3430
4015
  export interface ListCorehrV2BpQuery extends Pagination {
3431
4016
  /** 用户 ID 类型 */
3432
4017
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
@@ -3463,12 +4048,82 @@ export interface GetCorehrV2ProcessQuery {
3463
4048
  /** 用户 ID 类型 */
3464
4049
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
3465
4050
  }
3466
- export interface GetCorehrV2ProcessFormVariableDataQuery {
3467
- /** 用户 ID 类型 */
3468
- user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id';
3469
- /** 此次调用中使用的部门 ID 类型 */
4051
+ export declare const enum GetCorehrV2ProcessResponseStatus {
4052
+ /** 进行中 */
4053
+ Running = 1,
4054
+ /** 拒绝 */
4055
+ Reject = 2,
4056
+ /** 撤回 */
4057
+ Withdraw = 4,
4058
+ /** 撤销 */
4059
+ Revoke = 8,
4060
+ /** 已完成 */
4061
+ Complete = 9
4062
+ }
4063
+ export declare const enum GetCorehrV2ProcessResponseProperties {
4064
+ /** 普通流程 */
4065
+ Common = 1,
4066
+ /** 撤销流程 */
4067
+ CheXiao = 2,
4068
+ /** 更正流程 */
4069
+ Correct = 3
4070
+ }
4071
+ export interface GetCorehrV2ProcessResponse {
4072
+ /** 流程实例ID */
4073
+ process_id?: string;
4074
+ /** 流程状态 */
4075
+ status?: GetCorehrV2ProcessResponseStatus;
4076
+ /** 业务类型ID */
4077
+ flow_template_id?: string;
4078
+ /** 业务类型名称 */
4079
+ flow_template_name?: DataengineI18n;
4080
+ /** 流程定义ID */
4081
+ flow_definition_id?: string;
4082
+ /** 流程定义名称 */
4083
+ flow_definition_name?: DataengineI18n;
4084
+ /** 流程发起人ID */
4085
+ initiator_id?: string;
4086
+ /** 流程发起人姓名 */
4087
+ initiator_name?: DataengineI18n;
4088
+ /** 流程发起时间,Unix毫秒时间戳 */
4089
+ create_time?: string;
4090
+ /** 流程结束时间,Unix毫秒时间戳 */
4091
+ complete_time?: string;
4092
+ /** 发起单据地址 */
4093
+ start_links?: ProcessLink;
4094
+ /** 流程摘要,会随着流程流转发生变化 */
4095
+ abstracts?: ProcessAbstractItem[];
4096
+ /** 待办列表 */
4097
+ todos?: ProcessTodoItem[];
4098
+ /** 抄送列表 */
4099
+ cc_list?: ProcessCcItem[];
4100
+ /** 已办列表 */
4101
+ done_list?: ProcessDoneItem[];
4102
+ /** 普通流程或撤销流程等 */
4103
+ properties?: GetCorehrV2ProcessResponseProperties;
4104
+ /** 系统待办列表 */
4105
+ system_todos?: ProcessSystemTodoItem[];
4106
+ /** 系统已办列表 */
4107
+ system_done_list?: ProcessSystemDoneItem[];
4108
+ /** 评论列表 */
4109
+ comment_infos?: ProcessCommentInfo[];
4110
+ /** 更正流程原流程ID */
4111
+ original_process_id?: string;
4112
+ /** 是否最新的「已完成」的更正流程 */
4113
+ is_last_completed_correct_process?: boolean;
4114
+ }
4115
+ export interface GetCorehrV2ProcessFormVariableDataQuery {
4116
+ /** 用户 ID 类型 */
4117
+ user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id';
4118
+ /** 此次调用中使用的部门 ID 类型 */
3470
4119
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
3471
4120
  }
4121
+ export interface GetCorehrV2ProcessFormVariableDataResponse {
4122
+ /** 表单数据 */
4123
+ field_variable_values?: FieldVariableValue[];
4124
+ /** 流程实例id */
4125
+ process_id?: string;
4126
+ }
3472
4127
  export interface UpdateCorehrV2ProcessRevokeRequest {
3473
4128
  /** 按照指定的用户ID类型传递对应的用户ID。 */
3474
4129
  user_id?: string;
@@ -3501,9 +4156,15 @@ export interface ListCorehrV2ApproverQuery extends Pagination {
3501
4156
  /** 任务状态 */
3502
4157
  approver_status?: -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 12 | 14 | 16;
3503
4158
  }
4159
+ export declare const enum UpdateCorehrV2ProcessApproverRequestStatus {
4160
+ /** 拒绝 */
4161
+ Approved = 2,
4162
+ /** 通过 */
4163
+ Rejected = 3
4164
+ }
3504
4165
  export interface UpdateCorehrV2ProcessApproverRequest {
3505
4166
  /** 将审批任务修改为同意/拒绝 */
3506
- status: 2 | 3;
4167
+ status: UpdateCorehrV2ProcessApproverRequestStatus;
3507
4168
  /** 按user_id_type类型传递。如果system_approval为false,则必填。否则非必填。 */
3508
4169
  user_id?: string;
3509
4170
  /** true - 使用系统身份审批 */
@@ -3519,6 +4180,26 @@ export interface UpdateCorehrV2ProcessApproverQuery {
3519
4180
  /** 此次调用中使用的部门 ID 类型 */
3520
4181
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
3521
4182
  }
4183
+ export interface UpdateCorehrV2ProcessApproverResponse {
4184
+ /** 错误码,非 0 表示失败 */
4185
+ code: number;
4186
+ /** 错误描述 */
4187
+ msg?: string;
4188
+ }
4189
+ export declare const enum UpdateCorehrV2ProcessExtraRequestExtraType {
4190
+ /** 前加签 */
4191
+ PreExtra = 0,
4192
+ /** 并加签 */
4193
+ CurrentExtra = 1,
4194
+ /** 后加签 */
4195
+ PostExtra = 2
4196
+ }
4197
+ export declare const enum UpdateCorehrV2ProcessExtraRequestApprovalType {
4198
+ /** 或签 */
4199
+ OR = 0,
4200
+ /** 会签 */
4201
+ AND = 1
4202
+ }
3522
4203
  export interface UpdateCorehrV2ProcessExtraRequest {
3523
4204
  /** 操作人,当system_user为true时,可以不传值 */
3524
4205
  operator?: string;
@@ -3527,9 +4208,9 @@ export interface UpdateCorehrV2ProcessExtraRequest {
3527
4208
  /** 审批任务id,与node_id二选一传入,都传以node_id为准 */
3528
4209
  approver_id?: string;
3529
4210
  /** 加签方式 */
3530
- extra_type: 0 | 1 | 2;
4211
+ extra_type: UpdateCorehrV2ProcessExtraRequestExtraType;
3531
4212
  /** 多人加签时的审批方式 */
3532
- approval_type?: 0 | 1;
4213
+ approval_type?: UpdateCorehrV2ProcessExtraRequestApprovalType;
3533
4214
  /** 加签人员id列表 */
3534
4215
  extra_user_ids: string[];
3535
4216
  /** 备注 */
@@ -3591,14 +4272,46 @@ export interface MatchCorehrV1CompensationStandardQuery {
3591
4272
  /** 生效时间 */
3592
4273
  effective_time?: string;
3593
4274
  }
4275
+ export interface MatchCorehrV1CompensationStandardResponse {
4276
+ /** 薪资标准表ID */
4277
+ standard_id?: string;
4278
+ /** 薪资等级 */
4279
+ grade?: CpstGrade;
4280
+ /** 生效时间 */
4281
+ effective_time?: string;
4282
+ }
4283
+ export interface GetCorehrV1ProcessFormVariableDataResponse {
4284
+ /** 流程变量 */
4285
+ field_variable_values?: FormFieldVariable[];
4286
+ }
3594
4287
  export interface ListCorehrV1SubregionQuery extends Pagination {
3595
4288
  /** 省份/行政区id,填写后只查询该省份/行政区下的城市/区域 */
3596
4289
  subdivision_id?: string;
3597
4290
  }
4291
+ export interface GetCorehrV1SubregionResponse {
4292
+ /** 城市/区域信息 */
4293
+ subregion?: Subregion;
4294
+ }
3598
4295
  export interface ListCorehrV1SubdivisionQuery extends Pagination {
3599
4296
  /** 国家/地区id,填写后只查询该国家/地区下的省份/行政区 */
3600
4297
  country_region_id?: string;
3601
4298
  }
4299
+ export interface GetCorehrV1SubdivisionResponse {
4300
+ /** 国家/地址信息 */
4301
+ subdivision?: Subdivision;
4302
+ }
4303
+ export interface GetCorehrV1CountryRegionResponse {
4304
+ /** 国家/地址信息 */
4305
+ country_region?: CountryRegion;
4306
+ }
4307
+ export interface GetCorehrV1CurrencyResponse {
4308
+ /** 货币信息 */
4309
+ currency?: Currency;
4310
+ }
4311
+ export interface GetCorehrV1JobResponse {
4312
+ /** 职务信息 */
4313
+ job?: Job;
4314
+ }
3602
4315
  export interface PatchCorehrV1DepartmentRequest {
3603
4316
  /** 实体在CoreHR内部的唯一键 */
3604
4317
  id?: string;
@@ -3627,12 +4340,19 @@ export interface PatchCorehrV1DepartmentQuery {
3627
4340
  /** 此次调用中使用的部门 ID 类型 */
3628
4341
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
3629
4342
  }
4343
+ export interface PatchCorehrV1DepartmentResponse {
4344
+ department?: Department;
4345
+ }
3630
4346
  export interface GetCorehrV1DepartmentQuery {
3631
4347
  /** 用户 ID 类型 */
3632
4348
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
3633
4349
  /** 此次调用中使用的部门 ID 类型 */
3634
4350
  department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id';
3635
4351
  }
4352
+ export interface GetCorehrV1DepartmentResponse {
4353
+ /** 部门信息 */
4354
+ department?: Department;
4355
+ }
3636
4356
  export interface ListCorehrV1JobQuery extends Pagination {
3637
4357
  /** 名称 */
3638
4358
  name?: string;
@@ -3697,6 +4417,9 @@ export interface PatchCorehrV1PersonQuery {
3697
4417
  /** 根据client_token是否一致来判断是否为同一请求 */
3698
4418
  client_token?: string;
3699
4419
  }
4420
+ export interface PatchCorehrV1PersonResponse {
4421
+ person?: Person;
4422
+ }
3700
4423
  export interface CreateCorehrV1PersonRequest {
3701
4424
  /** 姓名 */
3702
4425
  name_list: PersonName[];
@@ -3745,13 +4468,24 @@ export interface CreateCorehrV1PersonQuery {
3745
4468
  /** 根据client_token是否一致来判断是否为同一请求 */
3746
4469
  client_token?: string;
3747
4470
  }
4471
+ export interface CreateCorehrV1PersonResponse {
4472
+ person?: Person;
4473
+ }
3748
4474
  export interface GetCorehrV1PersonQuery {
3749
4475
  /** 此次调用中使用的用户ID的类型 */
3750
4476
  user_id_type?: 'people_employee_id';
3751
4477
  }
4478
+ export interface GetCorehrV1PersonResponse {
4479
+ /** 个人信息 */
4480
+ person?: Person;
4481
+ }
4482
+ export declare const enum SubmitCorehrV1OffboardingRequestOffboardingMode {
4483
+ /** 直接离职 */
4484
+ TerminationOfDismissal = 1
4485
+ }
3752
4486
  export interface SubmitCorehrV1OffboardingRequest {
3753
4487
  /** 离职方式 */
3754
- offboarding_mode: 1;
4488
+ offboarding_mode: SubmitCorehrV1OffboardingRequestOffboardingMode;
3755
4489
  /** 雇员 id */
3756
4490
  employment_id: string;
3757
4491
  /** 离职日期 */
@@ -3775,592 +4509,6 @@ export interface SubmitCorehrV1OffboardingQuery {
3775
4509
  /** 用户 ID 类型 */
3776
4510
  user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id';
3777
4511
  }
3778
- export interface QueryCorehrV1CustomFieldResponse {
3779
- /** 自定义字段列表 */
3780
- items?: CustomField[];
3781
- }
3782
- export interface GetByParamCorehrV1CustomFieldResponse {
3783
- /** 自定义字段详情 */
3784
- data?: CustomField;
3785
- }
3786
- export interface AddEnumOptionCorehrV1CommonDataMetaDataResponse {
3787
- /** 枚举字段 API name */
3788
- enum_field_api_name?: string;
3789
- /** 枚举全部选项列表 */
3790
- enum_field_options?: EnumFieldOption[];
3791
- }
3792
- export interface EditEnumOptionCorehrV1CommonDataMetaDataResponse {
3793
- /** 枚举字段 API name */
3794
- enum_field_api_name?: string;
3795
- /** 枚举全部选项列表 */
3796
- enum_field_options?: EnumFieldOption[];
3797
- }
3798
- export interface CreateCorehrV1NationalIdTypeResponse {
3799
- national_id_type?: NationalIdType;
3800
- }
3801
- export interface PatchCorehrV1NationalIdTypeResponse {
3802
- national_id_type?: NationalIdType;
3803
- }
3804
- export interface GetCorehrV1NationalIdTypeResponse {
3805
- /** 国家证件类型信息 */
3806
- national_id_type?: NationalIdType;
3807
- }
3808
- export interface CreateCorehrV1EmployeeTypeResponse {
3809
- employee_type?: EmployeeType;
3810
- }
3811
- export interface PatchCorehrV1EmployeeTypeResponse {
3812
- employee_type?: EmployeeType;
3813
- }
3814
- export interface GetCorehrV1EmployeeTypeResponse {
3815
- /** 雇员类型 */
3816
- employee_type?: EmployeeType;
3817
- }
3818
- export interface CreateCorehrV1WorkingHoursTypeResponse {
3819
- working_hours_type?: WorkingHoursType;
3820
- }
3821
- export interface PatchCorehrV1WorkingHoursTypeResponse {
3822
- working_hours_type?: WorkingHoursType;
3823
- }
3824
- export interface GetCorehrV1WorkingHoursTypeResponse {
3825
- /** 工时制度信息 */
3826
- working_hours_type?: WorkingHoursType;
3827
- }
3828
- export interface ConvertCorehrV1CommonDataIdResponse {
3829
- /** ID 信息列表 */
3830
- items?: IdInfo[];
3831
- }
3832
- export interface BatchGetCorehrV2EmployeeResponse {
3833
- /** 查询的雇佣信息 */
3834
- items?: Employee[];
3835
- }
3836
- export interface CreateCorehrV2EmployeeResponse {
3837
- /** 雇佣信息 ID */
3838
- employment_id?: string;
3839
- /** 合同 ID */
3840
- contract_id?: string;
3841
- /** 任职信息 ID */
3842
- job_data_id?: string;
3843
- }
3844
- export interface CreateCorehrV2PersonResponse {
3845
- person?: PersonInfo;
3846
- }
3847
- export interface PatchCorehrV2PersonResponse {
3848
- person?: PersonInfo;
3849
- }
3850
- export interface UploadCorehrV1PersonResponse {
3851
- /** 上传文件ID */
3852
- id?: string;
3853
- }
3854
- export interface CreateCorehrV1EmploymentResponse {
3855
- employment?: EmploymentCreate;
3856
- }
3857
- export interface PatchCorehrV1EmploymentResponse {
3858
- employment?: Employment;
3859
- }
3860
- export interface CreateCorehrV1JobDataResponse {
3861
- job_data?: JobData;
3862
- }
3863
- export interface PatchCorehrV1JobDataResponse {
3864
- job_data?: JobData;
3865
- }
3866
- export interface BatchGetCorehrV2EmployeesJobDataResponse {
3867
- /** 查询的雇佣信息 */
3868
- items?: EmployeeJobData[];
3869
- }
3870
- export interface GetCorehrV1JobDataResponse {
3871
- /** 任职信息 */
3872
- job_data?: JobData;
3873
- }
3874
- export interface CreateCorehrV2EmployeesAdditionalJobResponse {
3875
- additional_job?: EmployeesAdditionalJobWriteResp;
3876
- }
3877
- export interface PatchCorehrV2EmployeesAdditionalJobResponse {
3878
- additional_job?: EmployeesAdditionalJobWriteResp;
3879
- }
3880
- export interface CreateCorehrV1DepartmentResponse {
3881
- department?: DepartmentCreate;
3882
- }
3883
- export interface ParentsCorehrV2DepartmentResponse {
3884
- /** 父部门查询结果 */
3885
- items?: DepartmentParents[];
3886
- }
3887
- export interface BatchGetCorehrV2DepartmentResponse {
3888
- /** 查询的部门信息 */
3889
- items?: Department[];
3890
- }
3891
- export interface QueryRecentChangeCorehrV2DepartmentResponse {
3892
- /** 部门 ID 列表 */
3893
- department_ids?: string[];
3894
- /** 目标查询时间范围内被删除的部门列表 */
3895
- deleted_department_ids?: string[];
3896
- /** 下一页页码 */
3897
- page_token?: string;
3898
- /** 是否有下一页 */
3899
- has_more?: boolean;
3900
- }
3901
- export interface QueryTimelineCorehrV2DepartmentResponse {
3902
- /** 部门信息 */
3903
- items?: DepartmentTimeline[];
3904
- }
3905
- export interface CreateCorehrV1LocationResponse {
3906
- location?: Location;
3907
- }
3908
- export interface GetCorehrV1LocationResponse {
3909
- /** 地点信息 */
3910
- location?: Location;
3911
- }
3912
- export interface QueryRecentChangeCorehrV2LocationResponse {
3913
- /** 地点 ID 列表 */
3914
- location_ids?: string[];
3915
- /** 下一页页码 */
3916
- page_token?: string;
3917
- /** 是否有下一页 */
3918
- has_more?: boolean;
3919
- /** 删除的地点 ID 列表 */
3920
- deleted_location_ids?: string[];
3921
- }
3922
- export interface BatchGetCorehrV2LocationResponse {
3923
- /** 查询的地点信息 */
3924
- items?: Location[];
3925
- }
3926
- export interface CreateCorehrV2LocationAddressResponse {
3927
- /** 地址 ID */
3928
- address_id?: string;
3929
- }
3930
- export interface CreateCorehrV1CompanyResponse {
3931
- company?: Company;
3932
- }
3933
- export interface PatchCorehrV1CompanyResponse {
3934
- company?: Company;
3935
- }
3936
- export interface GetCorehrV1CompanyResponse {
3937
- /** 公司信息 */
3938
- company?: Company;
3939
- }
3940
- export interface QueryRecentChangeCorehrV2CompanyResponse {
3941
- /** 公司 ID 列表 */
3942
- company_ids?: string[];
3943
- /** 下一页页码 */
3944
- page_token?: string;
3945
- /** 是否有下一页 */
3946
- has_more?: boolean;
3947
- /** 删除的公司 ID 列表 */
3948
- deleted_company_ids?: string[];
3949
- }
3950
- export interface BatchGetCorehrV2CompanyResponse {
3951
- /** 查询的公司信息 */
3952
- items?: Company[];
3953
- }
3954
- export interface CreateCorehrV2CostCenterResponse {
3955
- cost_center?: CostCenter;
3956
- }
3957
- export interface PatchCorehrV2CostCenterResponse {
3958
- cost_center?: CostCenter;
3959
- }
3960
- export interface QueryRecentChangeCorehrV2CostCenterResponse {
3961
- /** 成本中心 ID 列表 */
3962
- cost_center_ids?: string[];
3963
- /** 下一页页码 */
3964
- page_token?: string;
3965
- /** 是否有下一页 */
3966
- has_more?: boolean;
3967
- /** 删除的成本中心 ID 列表 */
3968
- deleted_cost_center_ids?: string[];
3969
- }
3970
- export interface CreateCorehrV2CostCenterVersionResponse {
3971
- version?: CostCenterVersion;
3972
- }
3973
- export interface PatchCorehrV2CostCenterVersionResponse {
3974
- version?: CostCenterVersion;
3975
- }
3976
- export interface GetCorehrV2ApprovalGroupsResponse {
3977
- /** 组织架构调整流程信息 */
3978
- approval_group?: ApprovalGroup;
3979
- }
3980
- export interface OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsResponse {
3981
- /** 部门调整记录信息列表 */
3982
- department_changes?: DepartmentChange[];
3983
- }
3984
- export interface OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsResponse {
3985
- /** 人员异动记录信息列表 */
3986
- job_changes?: JobChange[];
3987
- }
3988
- export interface CreateCorehrV1JobFamilyResponse {
3989
- job_family?: JobFamily;
3990
- }
3991
- export interface PatchCorehrV1JobFamilyResponse {
3992
- job_family?: JobFamily;
3993
- }
3994
- export interface GetCorehrV1JobFamilyResponse {
3995
- /** 职务序列信息 */
3996
- job_family?: JobFamily;
3997
- }
3998
- export interface QueryRecentChangeCorehrV2JobFamilyResponse {
3999
- /** 序列 ID 列表 */
4000
- job_family_ids?: string[];
4001
- /** 下一页页码 */
4002
- page_token?: string;
4003
- /** 是否有下一页 */
4004
- has_more?: boolean;
4005
- /** 删除的序列 ID 列表 */
4006
- deleted_job_family_ids?: string[];
4007
- }
4008
- export interface BatchGetCorehrV2JobFamilyResponse {
4009
- /** 查询的序列信息 */
4010
- items?: JobFamily[];
4011
- }
4012
- export interface CreateCorehrV1JobLevelResponse {
4013
- job_level?: JobLevel;
4014
- }
4015
- export interface PatchCorehrV1JobLevelResponse {
4016
- job_level?: JobLevel;
4017
- }
4018
- export interface GetCorehrV1JobLevelResponse {
4019
- /** 职务级别信息 */
4020
- job_level?: JobLevel;
4021
- }
4022
- export interface QueryRecentChangeCorehrV2JobLevelResponse {
4023
- /** 职级 ID 列表 */
4024
- job_level_ids?: string[];
4025
- /** 下一页页码 */
4026
- page_token?: string;
4027
- /** 是否有下一页 */
4028
- has_more?: boolean;
4029
- /** 删除的职级 ID 列表 */
4030
- deleted_job_level_ids?: string[];
4031
- }
4032
- export interface BatchGetCorehrV2JobLevelResponse {
4033
- /** 查询的职级信息 */
4034
- items?: JobLevel[];
4035
- }
4036
- export interface CreateCorehrV2JobGradeResponse {
4037
- /** 职等ID */
4038
- grade_id?: string;
4039
- }
4040
- export interface QueryRecentChangeCorehrV2JobGradeResponse {
4041
- /** 职等 ID 列表 */
4042
- job_grade_ids?: string[];
4043
- /** 下一页页码 */
4044
- page_token?: string;
4045
- /** 是否有下一页 */
4046
- has_more?: boolean;
4047
- /** 删除的职等 ID 列表 */
4048
- deleted_job_grade_ids?: string[];
4049
- }
4050
- export interface CreateCorehrV1JobResponse {
4051
- job?: Job;
4052
- }
4053
- export interface PatchCorehrV1JobResponse {
4054
- job?: Job;
4055
- }
4056
- export interface GetCorehrV2JobResponse {
4057
- /** 职务信息 */
4058
- job?: Job;
4059
- }
4060
- export interface WithdrawOnboardingCorehrV2PreHireResponse {
4061
- /** 是否成功撤销入职 */
4062
- success?: boolean;
4063
- }
4064
- export interface RestoreFlowInstanceCorehrV2PreHireResponse {
4065
- /** 是否成功恢复入职 */
4066
- success?: boolean;
4067
- }
4068
- export interface CreateCorehrV2PreHireResponse {
4069
- /** 待入职 ID */
4070
- pre_hire_id?: string;
4071
- }
4072
- export interface PatchCorehrV2PreHireResponse {
4073
- /** 待入职ID */
4074
- pre_hire_id?: string;
4075
- }
4076
- export interface GetCorehrV1PreHireResponse {
4077
- /** 待入职信息 */
4078
- pre_hire?: PreHire;
4079
- }
4080
- export interface TransitTaskCorehrV2PreHireResponse {
4081
- /** 是否成功流转任务 */
4082
- success?: boolean;
4083
- }
4084
- export interface CompleteCorehrV2PreHireResponse {
4085
- /** 是否成功完成入职 */
4086
- success?: boolean;
4087
- }
4088
- export interface PatchCorehrV1PreHireResponse {
4089
- pre_hire?: PreHire;
4090
- }
4091
- export interface CreateCorehrV2ProbationAssessmentResponse {
4092
- /** 创建的试用期考核记录 ID 列表,有序返回 */
4093
- assessment_ids?: string[];
4094
- }
4095
- export interface SubmitCorehrV2ProbationResponse {
4096
- /** 试用期信息 */
4097
- probation_info?: ProbationInfoForSubmit;
4098
- }
4099
- export interface CreateCorehrV2JobChangeResponse {
4100
- /** 异动记录 id */
4101
- job_change_id?: string;
4102
- /** 雇员 id */
4103
- employment_id?: string;
4104
- /** 异动状态 */
4105
- status?: 'Approving' | 'Approved' | 'Transformed' | 'Rejected' | 'Cancelled' | 'NoNeedApproval';
4106
- /** 异动类型 */
4107
- transfer_type_unique_identifier?: string;
4108
- /** 异动原因 */
4109
- transfer_reason_unique_identifier?: string;
4110
- /** 异动流程 id */
4111
- process_id?: string;
4112
- /** 生效时间 */
4113
- effective_date?: string;
4114
- /** 创建时间 */
4115
- created_time?: string;
4116
- /** 异动详细信息 */
4117
- transfer_info?: TransferInfo;
4118
- /** 是否调整薪酬 */
4119
- is_adjust_salary?: boolean;
4120
- /** 异动自定义字段 */
4121
- custom_fields?: CustomFieldData[];
4122
- }
4123
- export interface QueryCorehrV1TransferTypeResponse {
4124
- /** 异动类型列表 */
4125
- items?: TransferType[];
4126
- }
4127
- export interface QueryCorehrV1TransferReasonResponse {
4128
- /** 异动原因列表 */
4129
- items?: TransferReason[];
4130
- }
4131
- export interface CreateCorehrV1JobChangeResponse {
4132
- /** 异动记录 id */
4133
- job_change_id?: string;
4134
- /** 雇员 id */
4135
- employment_id?: string;
4136
- /** 异动状态 */
4137
- status?: 0 | 1 | 2 | 3 | 4 | 5;
4138
- /** 异动类型 */
4139
- transfer_type_unique_identifier?: string;
4140
- /** 异动原因 */
4141
- transfer_reason_unique_identifier?: string;
4142
- /** 异动流程 id */
4143
- process_id?: string;
4144
- /** 生效时间 */
4145
- effective_date?: string;
4146
- /** 创建时间 */
4147
- created_time?: string;
4148
- /** 异动详细信息 */
4149
- transfer_info?: TransferInfo;
4150
- }
4151
- export interface QueryCorehrV1OffboardingResponse {
4152
- /** 离职原因列表 */
4153
- items?: OffboardingReason[];
4154
- }
4155
- export interface SubmitV2CorehrV2OffboardingResponse {
4156
- /** 离职记录 id */
4157
- offboarding_id?: string;
4158
- /** 雇员 id */
4159
- employment_id?: string;
4160
- /** 离职原因 */
4161
- offboarding_reason_unique_identifier?: string;
4162
- /** 离职日期 */
4163
- offboarding_date?: string;
4164
- /** 离职原因说明 */
4165
- offboarding_reason_explanation?: string;
4166
- /** 是否加入离职屏蔽名单 */
4167
- add_block_list?: boolean;
4168
- /** 屏蔽原因 */
4169
- block_reason?: string;
4170
- /** 屏蔽原因说明 */
4171
- block_reason_explanation?: string;
4172
- /** 创建时间 */
4173
- created_time?: string;
4174
- /** 离职是否保留飞书账号 */
4175
- retain_account?: boolean;
4176
- /** 编制随人员一起调整 */
4177
- is_transfer_with_workforce?: boolean;
4178
- }
4179
- export interface EditCorehrV2OffboardingResponse {
4180
- /** 编辑字段数据信息 */
4181
- data: ObjectFieldData[];
4182
- }
4183
- export interface CreateCorehrV1ContractResponse {
4184
- contract?: Contract;
4185
- }
4186
- export interface PatchCorehrV1ContractResponse {
4187
- contract?: Contract;
4188
- }
4189
- export interface GetCorehrV1ContractResponse {
4190
- /** 合同信息 */
4191
- contract?: Contract;
4192
- }
4193
- export interface ListCorehrV2WorkforcePlanResponse {
4194
- /** 方案列表 */
4195
- items?: WorkforcePlan[];
4196
- /** 方案总数 */
4197
- total?: number;
4198
- }
4199
- export interface BatchCorehrV2WorkforcePlanDetailResponse {
4200
- /** 编制规划方案 ID */
4201
- workforce_plan_id?: string;
4202
- /** 集中填报项目 ID */
4203
- centralized_reporting_project_id?: string;
4204
- /** 编制规划明细信息 */
4205
- items?: WorkforcePlanDetail[];
4206
- /** 分页标识 */
4207
- page_token?: string;
4208
- /** 是否还有更多项 */
4209
- has_more?: boolean;
4210
- }
4211
- export interface CreateCorehrV1LeaveGrantingRecordResponse {
4212
- /** 假期授予记录 */
4213
- leave_granting_record?: LeaveGrantingRecord;
4214
- }
4215
- export interface WorkCalendarCorehrV1LeaveResponse {
4216
- /** 工作日历列表 */
4217
- work_calendars?: WorkCalendarDetail[];
4218
- /** 入参count=true,则返回符合条件的工作日历总数 */
4219
- count?: number;
4220
- }
4221
- export interface CalendarByScopeCorehrV1LeaveResponse {
4222
- /** 工作日历id */
4223
- calendar_wk_id?: string;
4224
- }
4225
- export interface WorkCalendarDateCorehrV1LeaveResponse {
4226
- /** 日期类型列表 */
4227
- calendar_dates?: WkCalendarDate[];
4228
- }
4229
- export interface GetByParamCorehrV1AuthorizationResponse {
4230
- /** 角色授权信息 */
4231
- role_authorization?: RoleAuthorization;
4232
- }
4233
- export interface AddRoleAssignCorehrV1AuthorizationResponse {
4234
- /** 授权id */
4235
- assign_id?: string;
4236
- }
4237
- export interface UpdateRoleAssignCorehrV1AuthorizationResponse {
4238
- /** 授权id */
4239
- assign_id?: string;
4240
- }
4241
- export interface RemoveRoleAssignCorehrV1AuthorizationResponse {
4242
- /** 授权id */
4243
- assign_id?: string;
4244
- }
4245
- export interface BatchGetCorehrV2EmployeesBpResponse {
4246
- /** 员工直属 BP 信息,当员工所在部门、属地无 BP 时,会上钻找到最近的 BP */
4247
- employment_direct_bps?: EmploymentBp[];
4248
- /** 员工全部 BP 信息 */
4249
- employment_all_bps?: EmploymentBp[];
4250
- }
4251
- export interface GetByDepartmentCorehrV2BpResponse {
4252
- /** 部门 HRBP 信息,依次为部门及各层级上级部门 */
4253
- items?: DepartmentHrbp[];
4254
- }
4255
- export interface QueryCorehrV1SecurityGroupResponse {
4256
- /** HRBP/属地 BP 信息 */
4257
- hrbp_list?: Hrbp[];
4258
- }
4259
- export interface GetCorehrV2ProcessResponse {
4260
- /** 流程实例ID */
4261
- process_id?: string;
4262
- /** 流程状态 */
4263
- status?: 1 | 2 | 4 | 8 | 9;
4264
- /** 业务类型ID */
4265
- flow_template_id?: string;
4266
- /** 业务类型名称 */
4267
- flow_template_name?: DataengineI18n;
4268
- /** 流程定义ID */
4269
- flow_definition_id?: string;
4270
- /** 流程定义名称 */
4271
- flow_definition_name?: DataengineI18n;
4272
- /** 流程发起人ID */
4273
- initiator_id?: string;
4274
- /** 流程发起人姓名 */
4275
- initiator_name?: DataengineI18n;
4276
- /** 流程发起时间,Unix毫秒时间戳 */
4277
- create_time?: string;
4278
- /** 流程结束时间,Unix毫秒时间戳 */
4279
- complete_time?: string;
4280
- /** 发起单据地址 */
4281
- start_links?: ProcessLink;
4282
- /** 流程摘要,会随着流程流转发生变化 */
4283
- abstracts?: ProcessAbstractItem[];
4284
- /** 待办列表 */
4285
- todos?: ProcessTodoItem[];
4286
- /** 抄送列表 */
4287
- cc_list?: ProcessCcItem[];
4288
- /** 已办列表 */
4289
- done_list?: ProcessDoneItem[];
4290
- /** 普通流程或撤销流程等 */
4291
- properties?: 1 | 2 | 3;
4292
- /** 系统待办列表 */
4293
- system_todos?: ProcessSystemTodoItem[];
4294
- /** 系统已办列表 */
4295
- system_done_list?: ProcessSystemDoneItem[];
4296
- /** 评论列表 */
4297
- comment_infos?: ProcessCommentInfo[];
4298
- /** 更正流程原流程ID */
4299
- original_process_id?: string;
4300
- /** 是否最新的「已完成」的更正流程 */
4301
- is_last_completed_correct_process?: boolean;
4302
- }
4303
- export interface GetCorehrV2ProcessFormVariableDataResponse {
4304
- /** 表单数据 */
4305
- field_variable_values?: FieldVariableValue[];
4306
- /** 流程实例id */
4307
- process_id?: string;
4308
- }
4309
- export interface UpdateCorehrV2ProcessApproverResponse {
4310
- /** 错误码,非 0 表示失败 */
4311
- code: number;
4312
- /** 错误描述 */
4313
- msg?: string;
4314
- }
4315
- export interface MatchCorehrV1CompensationStandardResponse {
4316
- /** 薪资标准表ID */
4317
- standard_id?: string;
4318
- /** 薪资等级 */
4319
- grade?: CpstGrade;
4320
- /** 生效时间 */
4321
- effective_time?: string;
4322
- }
4323
- export interface GetCorehrV1ProcessFormVariableDataResponse {
4324
- /** 流程变量 */
4325
- field_variable_values?: FormFieldVariable[];
4326
- }
4327
- export interface GetCorehrV1SubregionResponse {
4328
- /** 城市/区域信息 */
4329
- subregion?: Subregion;
4330
- }
4331
- export interface GetCorehrV1SubdivisionResponse {
4332
- /** 国家/地址信息 */
4333
- subdivision?: Subdivision;
4334
- }
4335
- export interface GetCorehrV1CountryRegionResponse {
4336
- /** 国家/地址信息 */
4337
- country_region?: CountryRegion;
4338
- }
4339
- export interface GetCorehrV1CurrencyResponse {
4340
- /** 货币信息 */
4341
- currency?: Currency;
4342
- }
4343
- export interface GetCorehrV1JobResponse {
4344
- /** 职务信息 */
4345
- job?: Job;
4346
- }
4347
- export interface PatchCorehrV1DepartmentResponse {
4348
- department?: Department;
4349
- }
4350
- export interface GetCorehrV1DepartmentResponse {
4351
- /** 部门信息 */
4352
- department?: Department;
4353
- }
4354
- export interface PatchCorehrV1PersonResponse {
4355
- person?: Person;
4356
- }
4357
- export interface CreateCorehrV1PersonResponse {
4358
- person?: Person;
4359
- }
4360
- export interface GetCorehrV1PersonResponse {
4361
- /** 个人信息 */
4362
- person?: Person;
4363
- }
4364
4512
  export interface SubmitCorehrV1OffboardingResponse {
4365
4513
  /** 离职记录 id */
4366
4514
  offboarding_id?: string;