diff --git a/README.md b/README.md index 83906b62..7e04f465 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 飞书开放平台网址:[https://open.feishu.cn/](https://open.feishu.cn/) -接口清单详见:[TenantAccessToken适用接口清单-947个](https://github.com/vicenteyu/FeishuNetSdk/blob/main/TenantAccessList.md) +接口清单详见:[TenantAccessToken适用接口清单-969个](https://github.com/vicenteyu/FeishuNetSdk/blob/main/TenantAccessList.md) ## 自建应用用法 diff --git a/TenantAccessList.md b/TenantAccessList.md index a5a31e29..cd5c0841 100644 --- a/TenantAccessList.md +++ b/TenantAccessList.md @@ -811,139 +811,161 @@ |809|招聘|获取备注|GetHireV1NotesByNoteId|-| |810|招聘|获取备注列表|GetHireV1Notes|-| |811|招聘|获取简历来源列表|GetHireV1ResumeSources|-| -|812|招聘|获取附件信息|GetHireV1AttachmentsByAttachmentId|-| -|813|招聘|获取附件预览信息|GetHireV1AttachmentsByAttachmentIdPreview|-| -|814|OKR|获取 OKR 周期列表|GetOkrV1Periods|-| -|815|OKR|获取用户的 OKR 列表|GetOkrV1UsersByUserIdOkrs|-| -|816|OKR|批量获取 OKR|GetOkrV1OkrsBatchGet|-| -|817|OKR|创建 OKR 进展记录|PostOkrV1ProgressRecords|-| -|818|OKR|删除 OKR 进展记录|DeleteOkrV1ProgressRecordsByProgressId|-| -|819|OKR|更新 OKR 进展记录|PutOkrV1ProgressRecordsByProgressId|-| -|820|OKR|获取 OKR 进展记录|GetOkrV1ProgressRecordsByProgressId|-| -|821|OKR|上传进展记录图片|PostOkrV1ImagesUpload|-| -|822|OKR|获取指标库|GetOkrV1MetricSources|-| -|823|OKR|获取指标表|GetOkrV1MetricSourcesByMetricSourceIdTables|-| -|824|OKR|更新指标项|PatchOkrV1MetricSourcesByMetricSourceIdTablesByMetricTableIdItemsByMetricItemId|-| -|825|OKR|批量更新指标项|PatchOkrV1MetricSourcesByMetricSourceIdTablesByMetricTableIdItemsBatchUpdate|-| -|826|OKR|获取指标项|GetOkrV1MetricSourcesByMetricSourceIdTablesByMetricTableIdItems|-| -|827|OKR|获取指标项详情|GetOkrV1MetricSourcesByMetricSourceIdTablesByMetricTableIdItemsByMetricItemId|-| -|828|实名认证|录入身份信息|PostHumanAuthenticationV1Identities|-| -|829|实名认证|上传人脸基准图片|PostFaceVerifyV1UploadFaceImage|-| -|830|实名认证|裁剪人脸图片|PostFaceVerifyV1CropFaceImage|-| -|831|实名认证|查询人脸认证结果|GetFaceVerifyV1QueryAuthResult|-| -|832|智能门禁|修改用户部分信息|PatchAcsV1UsersByUserId|-| -|833|智能门禁|获取单个用户信息|GetAcsV1UsersByUserId|-| -|834|智能门禁|获取用户列表|GetAcsV1Users|-| -|835|智能门禁|上传人脸图片|PutAcsV1UsersByUserIdFace|-| -|836|智能门禁|下载人脸图片|GetAcsV1UsersByUserIdFace|-| -|837|智能门禁|获取门禁设备列表|GetAcsV1Devices|-| -|838|智能门禁|获取门禁记录列表|GetAcsV1AccessRecords|-| -|839|智能门禁|下载开门时的人脸识别图片|GetAcsV1AccessRecordsByAccessRecordIdAccessPhoto|-| -|840|绩效|获取周期|GetPerformanceV1Semesters|-| -|841|绩效|获取周期任务(指定用户)|PostPerformanceV1StageTasksFindByUserList|-| -|842|绩效|获取周期任务(全部用户)|PostPerformanceV1StageTasksFindByPage|-| -|843|绩效|获取绩效结果|PostPerformanceV1ReviewDatasQuery|-| -|844|飞书词典|创建草稿|PostLingoV1Drafts|-| -|845|飞书词典|更新草稿|PutLingoV1DraftsByDraftId|-| -|846|飞书词典|创建免审词条|PostLingoV1Entities|-| -|847|飞书词典|更新免审词条|PutLingoV1EntitiesByEntityId|-| -|848|飞书词典|获取词条详情|GetLingoV1EntitiesByEntityId|-| -|849|飞书词典|获取词条列表|GetLingoV1Entities|-| -|850|飞书词典|精准搜索词条|PostLingoV1EntitiesMatch|-| -|851|飞书词典|模糊搜索词条|PostLingoV1EntitiesSearch|-| -|852|飞书词典|词条高亮|PostLingoV1EntitiesHighlight|-| -|853|飞书词典|提取潜在词条|PostLingoV1EntitiesExtract|-| -|854|飞书词典|获取词典分类|GetLingoV1Classifications|-| -|855|飞书词典|获取词库列表|GetLingoV1Repos|-| -|856|飞书词典|上传图片|PostLingoV1FilesUpload|-| -|857|飞书词典|下载图片|GetLingoV1FilesByFileTokenDownload|-| -|858|安全合规|获取OpenAPI审计日志数据|PostSecurityAndComplianceV1OpenapiLogsListData|-| -|859|妙记|获取妙记统计数据|GetMinutesV1MinutesByMinuteTokenStatistics|-| -|860|妙记|获取妙记信息|GetMinutesV1MinutesByMinuteToken|-| -|861|工作台|获取工作台访问数据|PostWorkplaceV1WorkplaceAccessDataSearch|-| -|862|工作台|获取定制工作台访问数据|PostWorkplaceV1CustomWorkplaceAccessDataSearch|-| -|863|工作台|获取定制工作台小组件访问数据|PostWorkplaceV1WorkplaceBlockAccessDataSearch|-| -|864|应用信息|获取当前设置的推荐规则列表|GetApplicationV6AppRecommendRules|-| -|865|主数据|用户数据维度绑定|PostMdmV1UserAuthDataRelationsBind|-| -|866|主数据|用户数据维度解绑|PostMdmV1UserAuthDataRelationsUnbind|-| -|867|飞书词典|创建草稿|PostBaikeV1Drafts|-| -|868|飞书词典|更新草稿|PutBaikeV1DraftsByDraftId|-| -|869|飞书词典|创建免审词条|PostBaikeV1Entities|-| -|870|飞书词典|更新免审词条|PutBaikeV1EntitiesByEntityId|-| -|871|飞书词典|获取词条详情|GetBaikeV1EntitiesByEntityId|-| -|872|飞书词典|获取词条列表|GetBaikeV1Entities|-| -|873|飞书词典|精准搜索词条|PostBaikeV1EntitiesMatch|-| -|874|飞书词典|模糊搜索词条|PostBaikeV1EntitiesSearch|-| -|875|飞书词典|词条高亮|PostBaikeV1EntitiesHighlight|-| -|876|飞书词典|提取潜在的词条|PostBaikeV1EntitiesExtract|-| -|877|飞书词典|获取词典分类|GetBaikeV1Classifications|-| -|878|飞书词典|上传图片|PostBaikeV1FilesUpload|-| -|879|飞书词典|下载图片|GetBaikeV1FilesByFileTokenDownload|-| -|880|应用信息|更新应用可用范围|PostApplicationV3AppUpdateVisibility|-| -|881|审批|订阅审批事件|PostApprovalOpenapiV2SubscriptionSubscribe|已过时| -|882|审批|取消订阅审批事件|PostApprovalOpenapiV2SubscriptionUnsubscribe|已过时| -|883|审批|查看审批定义|PostApprovalOpenapiV2ApprovalGet|已过时| -|884|审批|创建审批实例|PostApprovalOpenapiV2InstanceCreate|已过时| -|885|审批|获取单个审批实例详情|PostApprovalOpenapiV2InstanceGet|已过时| -|886|审批|批量获取审批实例ID|PostApprovalOpenapiV2InstanceList|已过时| -|887|审批|审批实例抄送|PostApprovalOpenapiV2InstanceCc|已过时| -|888|审批|审批实例撤回|PostApprovalOpenapiV2InstanceCancel|已过时| -|889|审批|审批任务同意|PostApprovalOpenapiV2InstanceApprove|已过时| -|890|审批|审批任务拒绝|PostApprovalOpenapiV2InstanceReject|已过时| -|891|审批|审批任务转交|PostApprovalOpenapiV2InstanceTransfer|已过时| -|892|审批|三方审批定义创建|PostApprovalOpenapiV3ExternalApprovalCreate|已过时| -|893|审批|三方审批实例同步|PostApprovalOpenapiV2ExternalInstanceCreate|已过时| -|894|审批|三方审批实例校验|PostApprovalOpenapiV3ExternalInstanceCheck|已过时| -|895|审批|获取三方审批任务状态|PostApprovalOpenapiV2ExternalList|已过时| -|896|审批|创建审批定义|PostApprovalOpenapiV2ApprovalCreate|已过时| -|897|审批|实例列表查询|PostApprovalOpenapiV2InstanceSearch|已过时| -|898|审批|抄送列表查询|PostApprovalOpenapiV2CcSearch|已过时| -|899|审批|任务列表查询|PostApprovalOpenapiV2TaskSearch|已过时| -|900|通讯录|获取用户列表|GetContactV3Users|-| -|901|通讯录|获取角色列表|GetContactV2RoleList|-| -|902|通讯录|更新用户所有信息|PutContactV3UsersByUserId|-| -|903|通讯录|获取部门信息列表|GetContactV3Departments|-| -|904|通讯录|批量新增部门|PostContactV2DepartmentBatchAdd|-| -|905|通讯录|批量新增用户|PostContactV2UserBatchAdd|-| -|906|通讯录|查询批量任务执行状态|GetContactV2TaskGet|-| -|907|云文档|创建旧版文档|PostDocV2Create|-| -|908|云文档|获取旧版文档元信息|GetDocV2MetaByDocToken|-| -|909|云文档|获取旧版文档中的电子表格元数据|GetDocV2ByDocTokenSheetMeta|-| -|910|云文档|获取旧版文档纯文本内容|GetDocV2ByDocTokenRawContent|-| -|911|云文档|获取旧版文档富文本内容|GetDocV2ByDocTokenContent|-| -|912|云文档|编辑旧版文档内容|PostDocV2ByDocTokenBatchUpdate|-| -|913|云文档|获取表格元数据|GetSheetsV2SpreadsheetsBySpreadsheetTokenMetainfo|-| -|914|云文档|更新表格属性|PutSheetsV2SpreadsheetsBySpreadsheetTokenProperties|-| -|915|云文档|导入表格|PostSheetsV2Import|-| -|916|云文档|查询导入结果|GetSheetsV2ImportResult|-| -|917|云文档|获取元数据|PostSuiteDocsApiMeta|-| -|918|云文档|删除Sheet|DeleteDriveExplorerV2FileSpreadsheetsBySpreadsheetToken|已过时| -|919|云文档|复制文档|PostDriveExplorerV2FileCopyFilesByFileToken|已过时| -|920|云文档|删除Doc|DeleteDriveExplorerV2FileDocsByDocToken|已过时| -|921|云文档|获取文件夹下的文档清单|GetDriveExplorerV2FolderByFolderTokenChildren|已过时| -|922|云文档|新建文件夹|PostDriveExplorerV2FolderByFolderToken|已过时| -|923|云文档|判断协作者是否有某权限|PostDrivePermissionMemberPermitted|-| -|924|云文档|转移拥有者|PostDrivePermissionMemberTransfer|-| -|925|云文档|获取云文档权限设置V2|PostDrivePermissionV2Public|-| -|926|招聘|获取面试记录列表|GetHireV1ApplicationsByApplicationIdInterviews|-| -|927|招聘|获取职位上的招聘人员信息|GetHireV1JobsByJobIdManagersByManagerId|-| -|928|招聘|获取 Offer 申请表详细信息|GetHireV1OfferSchemasByOfferSchemaId|-| -|929|飞书人事|查询单个个人信息|GetCorehrV1PersonsByPersonId|-| -|930|会议室|获取建筑物列表|GetMeetingRoomBuildingList|-| -|931|会议室|查询建筑物详情|GetMeetingRoomBuildingBatchGet|-| -|932|会议室|获取会议室列表|GetMeetingRoomRoomList|-| -|933|会议室|查询会议室详情|GetMeetingRoomRoomBatchGet|-| -|934|会议室|创建建筑物|PostMeetingRoomBuildingCreate|-| -|935|会议室|更新建筑物|PostMeetingRoomBuildingUpdate|-| -|936|会议室|删除建筑物|PostMeetingRoomBuildingDelete|-| -|937|会议室|查询建筑物ID|GetMeetingRoomBuildingBatchGetId|-| -|938|会议室|创建会议室|PostMeetingRoomRoomCreate|-| -|939|会议室|更新会议室|PostMeetingRoomRoomUpdate|-| -|940|会议室|删除会议室|PostMeetingRoomRoomDelete|-| -|941|会议室|查询会议室ID|GetMeetingRoomRoomBatchGetId|-| -|942|会议室|获取国家地区列表|GetMeetingRoomCountryList|-| -|943|会议室|获取城市列表|GetMeetingRoomDistrictList|-| -|944|视频会议|创建签到板部署码|PostVcV1RoomConfigsSetCheckboardAccessCode|-| -|945|视频会议|创建会议室部署码|PostVcV1RoomConfigsSetRoomAccessCode|-| -|946|视频会议|查询会议室配置|GetVcV1RoomConfigsQuery|-| -|947|视频会议|设置会议室配置|PostVcV1RoomConfigsSet|-| +|812|招聘|创建账号自定义字段|PostHireV1EcoAccountCustomFields|-| +|813|招聘|更新账号自定义字段|PatchHireV1EcoAccountCustomFieldsBatchUpdate|-| +|814|招聘|删除账号自定义字段|PostHireV1EcoAccountCustomFieldsBatchDelete|-| +|815|招聘|推送背调自定义字段|PostHireV1EcoBackgroundCheckCustomFields|-| +|816|招聘|更新背调自定义字段|PatchHireV1EcoBackgroundCheckCustomFieldsBatchUpdate|-| +|817|招聘|删除背调自定义字段|PostHireV1EcoBackgroundCheckCustomFieldsBatchDelete|-| +|818|招聘|创建背调套餐和附加调查项|PostHireV1EcoBackgroundCheckPackages|-| +|819|招聘|更新背调套餐和附加调查项|PatchHireV1EcoBackgroundCheckPackagesBatchUpdate|-| +|820|招聘|删除背调套餐和附加调查项|PostHireV1EcoBackgroundCheckPackagesBatchDelete|-| +|821|招聘|更新背调订单进度|PostHireV1EcoBackgroundChecksUpdateProgress|-| +|822|招聘|回传背调订单的最终结果|PostHireV1EcoBackgroundChecksUpdateResult|-| +|823|招聘|终止背调订单|PostHireV1EcoBackgroundChecksCancel|-| +|824|招聘|推送试卷列表|PostHireV1EcoExamPapers|-| +|825|招聘|更新试卷|PatchHireV1EcoExamPapersBatchUpdate|-| +|826|招聘|删除试卷|PostHireV1EcoExamPapersBatchDelete|-| +|827|招聘|回传笔试安排结果|PostHireV1EcoExamsByExamIdLoginInfo|-| +|828|招聘|回传笔试结果|PostHireV1EcoExamsByExamIdUpdateResult|-| +|829|招聘|注册外部系统内推账户|PostHireV1ReferralAccount|-| +|830|招聘|停用外部系统内推账户|PostHireV1ReferralAccountByReferralAccountIdDeactivate|-| +|831|招聘|全额提取内推账号余额|PostHireV1ReferralAccountByReferralAccountIdWithdraw|-| +|832|招聘|内推账号提现对账接口|PostHireV1ReferralAccountReconciliation|-| +|833|招聘|获取附件信息|GetHireV1AttachmentsByAttachmentId|-| +|834|招聘|获取附件预览信息|GetHireV1AttachmentsByAttachmentIdPreview|-| +|835|OKR|获取 OKR 周期列表|GetOkrV1Periods|-| +|836|OKR|获取用户的 OKR 列表|GetOkrV1UsersByUserIdOkrs|-| +|837|OKR|批量获取 OKR|GetOkrV1OkrsBatchGet|-| +|838|OKR|创建 OKR 进展记录|PostOkrV1ProgressRecords|-| +|839|OKR|删除 OKR 进展记录|DeleteOkrV1ProgressRecordsByProgressId|-| +|840|OKR|更新 OKR 进展记录|PutOkrV1ProgressRecordsByProgressId|-| +|841|OKR|获取 OKR 进展记录|GetOkrV1ProgressRecordsByProgressId|-| +|842|OKR|上传进展记录图片|PostOkrV1ImagesUpload|-| +|843|OKR|获取指标库|GetOkrV1MetricSources|-| +|844|OKR|获取指标表|GetOkrV1MetricSourcesByMetricSourceIdTables|-| +|845|OKR|更新指标项|PatchOkrV1MetricSourcesByMetricSourceIdTablesByMetricTableIdItemsByMetricItemId|-| +|846|OKR|批量更新指标项|PatchOkrV1MetricSourcesByMetricSourceIdTablesByMetricTableIdItemsBatchUpdate|-| +|847|OKR|获取指标项|GetOkrV1MetricSourcesByMetricSourceIdTablesByMetricTableIdItems|-| +|848|OKR|获取指标项详情|GetOkrV1MetricSourcesByMetricSourceIdTablesByMetricTableIdItemsByMetricItemId|-| +|849|实名认证|录入身份信息|PostHumanAuthenticationV1Identities|-| +|850|实名认证|上传人脸基准图片|PostFaceVerifyV1UploadFaceImage|-| +|851|实名认证|裁剪人脸图片|PostFaceVerifyV1CropFaceImage|-| +|852|实名认证|查询人脸认证结果|GetFaceVerifyV1QueryAuthResult|-| +|853|智能门禁|修改用户部分信息|PatchAcsV1UsersByUserId|-| +|854|智能门禁|获取单个用户信息|GetAcsV1UsersByUserId|-| +|855|智能门禁|获取用户列表|GetAcsV1Users|-| +|856|智能门禁|上传人脸图片|PutAcsV1UsersByUserIdFace|-| +|857|智能门禁|下载人脸图片|GetAcsV1UsersByUserIdFace|-| +|858|智能门禁|获取门禁设备列表|GetAcsV1Devices|-| +|859|智能门禁|获取门禁记录列表|GetAcsV1AccessRecords|-| +|860|智能门禁|下载开门时的人脸识别图片|GetAcsV1AccessRecordsByAccessRecordIdAccessPhoto|-| +|861|绩效|获取周期|GetPerformanceV1Semesters|-| +|862|绩效|获取周期任务(指定用户)|PostPerformanceV1StageTasksFindByUserList|-| +|863|绩效|获取周期任务(全部用户)|PostPerformanceV1StageTasksFindByPage|-| +|864|绩效|获取绩效结果|PostPerformanceV1ReviewDatasQuery|-| +|865|飞书词典|创建草稿|PostLingoV1Drafts|-| +|866|飞书词典|更新草稿|PutLingoV1DraftsByDraftId|-| +|867|飞书词典|创建免审词条|PostLingoV1Entities|-| +|868|飞书词典|更新免审词条|PutLingoV1EntitiesByEntityId|-| +|869|飞书词典|获取词条详情|GetLingoV1EntitiesByEntityId|-| +|870|飞书词典|获取词条列表|GetLingoV1Entities|-| +|871|飞书词典|精准搜索词条|PostLingoV1EntitiesMatch|-| +|872|飞书词典|模糊搜索词条|PostLingoV1EntitiesSearch|-| +|873|飞书词典|词条高亮|PostLingoV1EntitiesHighlight|-| +|874|飞书词典|提取潜在词条|PostLingoV1EntitiesExtract|-| +|875|飞书词典|批量高亮|PostLingoV1EntitiesBatchHighlight|-| +|876|飞书词典|获取词典分类|GetLingoV1Classifications|-| +|877|飞书词典|获取词库列表|GetLingoV1Repos|-| +|878|飞书词典|上传图片|PostLingoV1FilesUpload|-| +|879|飞书词典|下载图片|GetLingoV1FilesByFileTokenDownload|-| +|880|安全合规|获取OpenAPI审计日志数据|PostSecurityAndComplianceV1OpenapiLogsListData|-| +|881|妙记|获取妙记统计数据|GetMinutesV1MinutesByMinuteTokenStatistics|-| +|882|妙记|获取妙记信息|GetMinutesV1MinutesByMinuteToken|-| +|883|工作台|获取工作台访问数据|PostWorkplaceV1WorkplaceAccessDataSearch|-| +|884|工作台|获取定制工作台访问数据|PostWorkplaceV1CustomWorkplaceAccessDataSearch|-| +|885|工作台|获取定制工作台小组件访问数据|PostWorkplaceV1WorkplaceBlockAccessDataSearch|-| +|886|应用信息|获取当前设置的推荐规则列表|GetApplicationV6AppRecommendRules|-| +|887|主数据|用户数据维度绑定|PostMdmV1UserAuthDataRelationsBind|-| +|888|主数据|用户数据维度解绑|PostMdmV1UserAuthDataRelationsUnbind|-| +|889|飞书词典|创建草稿|PostBaikeV1Drafts|-| +|890|飞书词典|更新草稿|PutBaikeV1DraftsByDraftId|-| +|891|飞书词典|创建免审词条|PostBaikeV1Entities|-| +|892|飞书词典|更新免审词条|PutBaikeV1EntitiesByEntityId|-| +|893|飞书词典|获取词条详情|GetBaikeV1EntitiesByEntityId|-| +|894|飞书词典|获取词条列表|GetBaikeV1Entities|-| +|895|飞书词典|精准搜索词条|PostBaikeV1EntitiesMatch|-| +|896|飞书词典|模糊搜索词条|PostBaikeV1EntitiesSearch|-| +|897|飞书词典|词条高亮|PostBaikeV1EntitiesHighlight|-| +|898|飞书词典|提取潜在的词条|PostBaikeV1EntitiesExtract|-| +|899|飞书词典|获取词典分类|GetBaikeV1Classifications|-| +|900|飞书词典|上传图片|PostBaikeV1FilesUpload|-| +|901|飞书词典|下载图片|GetBaikeV1FilesByFileTokenDownload|-| +|902|应用信息|更新应用可用范围|PostApplicationV3AppUpdateVisibility|-| +|903|审批|订阅审批事件|PostApprovalOpenapiV2SubscriptionSubscribe|不推荐| +|904|审批|取消订阅审批事件|PostApprovalOpenapiV2SubscriptionUnsubscribe|不推荐| +|905|审批|查看审批定义|PostApprovalOpenapiV2ApprovalGet|不推荐| +|906|审批|创建审批实例|PostApprovalOpenapiV2InstanceCreate|不推荐| +|907|审批|获取单个审批实例详情|PostApprovalOpenapiV2InstanceGet|不推荐| +|908|审批|批量获取审批实例ID|PostApprovalOpenapiV2InstanceList|不推荐| +|909|审批|审批实例抄送|PostApprovalOpenapiV2InstanceCc|不推荐| +|910|审批|审批实例撤回|PostApprovalOpenapiV2InstanceCancel|不推荐| +|911|审批|审批任务同意|PostApprovalOpenapiV2InstanceApprove|不推荐| +|912|审批|审批任务拒绝|PostApprovalOpenapiV2InstanceReject|不推荐| +|913|审批|审批任务转交|PostApprovalOpenapiV2InstanceTransfer|不推荐| +|914|审批|三方审批定义创建|PostApprovalOpenapiV3ExternalApprovalCreate|不推荐| +|915|审批|三方审批实例同步|PostApprovalOpenapiV2ExternalInstanceCreate|不推荐| +|916|审批|三方审批实例校验|PostApprovalOpenapiV3ExternalInstanceCheck|不推荐| +|917|审批|获取三方审批任务状态|PostApprovalOpenapiV2ExternalList|不推荐| +|918|审批|创建审批定义|PostApprovalOpenapiV2ApprovalCreate|不推荐| +|919|审批|实例列表查询|PostApprovalOpenapiV2InstanceSearch|不推荐| +|920|审批|抄送列表查询|PostApprovalOpenapiV2CcSearch|不推荐| +|921|审批|任务列表查询|PostApprovalOpenapiV2TaskSearch|不推荐| +|922|通讯录|获取用户列表|GetContactV3Users|-| +|923|通讯录|获取角色列表|GetContactV2RoleList|-| +|924|通讯录|更新用户所有信息|PutContactV3UsersByUserId|-| +|925|通讯录|获取部门信息列表|GetContactV3Departments|-| +|926|通讯录|批量新增部门|PostContactV2DepartmentBatchAdd|-| +|927|通讯录|批量新增用户|PostContactV2UserBatchAdd|-| +|928|通讯录|查询批量任务执行状态|GetContactV2TaskGet|-| +|929|云文档|创建旧版文档|PostDocV2Create|-| +|930|云文档|获取旧版文档元信息|GetDocV2MetaByDocToken|-| +|931|云文档|获取旧版文档中的电子表格元数据|GetDocV2ByDocTokenSheetMeta|-| +|932|云文档|获取旧版文档纯文本内容|GetDocV2ByDocTokenRawContent|-| +|933|云文档|获取旧版文档富文本内容|GetDocV2ByDocTokenContent|-| +|934|云文档|编辑旧版文档内容|PostDocV2ByDocTokenBatchUpdate|-| +|935|云文档|获取表格元数据|GetSheetsV2SpreadsheetsBySpreadsheetTokenMetainfo|-| +|936|云文档|更新表格属性|PutSheetsV2SpreadsheetsBySpreadsheetTokenProperties|-| +|937|云文档|导入表格|PostSheetsV2Import|-| +|938|云文档|查询导入结果|GetSheetsV2ImportResult|-| +|939|云文档|获取元数据|PostSuiteDocsApiMeta|-| +|940|云文档|删除Sheet|DeleteDriveExplorerV2FileSpreadsheetsBySpreadsheetToken|不推荐| +|941|云文档|复制文档|PostDriveExplorerV2FileCopyFilesByFileToken|不推荐| +|942|云文档|删除Doc|DeleteDriveExplorerV2FileDocsByDocToken|不推荐| +|943|云文档|获取文件夹下的文档清单|GetDriveExplorerV2FolderByFolderTokenChildren|不推荐| +|944|云文档|新建文件夹|PostDriveExplorerV2FolderByFolderToken|不推荐| +|945|云文档|判断协作者是否有某权限|PostDrivePermissionMemberPermitted|-| +|946|云文档|转移拥有者|PostDrivePermissionMemberTransfer|-| +|947|云文档|获取云文档权限设置V2|PostDrivePermissionV2Public|-| +|948|招聘|获取面试记录列表|GetHireV1ApplicationsByApplicationIdInterviews|-| +|949|招聘|获取职位上的招聘人员信息|GetHireV1JobsByJobIdManagersByManagerId|-| +|950|招聘|获取 Offer 申请表详细信息|GetHireV1OfferSchemasByOfferSchemaId|-| +|951|飞书人事|查询单个个人信息|GetCorehrV1PersonsByPersonId|-| +|952|会议室|获取建筑物列表|GetMeetingRoomBuildingList|-| +|953|会议室|查询建筑物详情|GetMeetingRoomBuildingBatchGet|-| +|954|会议室|获取会议室列表|GetMeetingRoomRoomList|-| +|955|会议室|查询会议室详情|GetMeetingRoomRoomBatchGet|-| +|956|会议室|创建建筑物|PostMeetingRoomBuildingCreate|-| +|957|会议室|更新建筑物|PostMeetingRoomBuildingUpdate|-| +|958|会议室|删除建筑物|PostMeetingRoomBuildingDelete|-| +|959|会议室|查询建筑物ID|GetMeetingRoomBuildingBatchGetId|-| +|960|会议室|创建会议室|PostMeetingRoomRoomCreate|-| +|961|会议室|更新会议室|PostMeetingRoomRoomUpdate|-| +|962|会议室|删除会议室|PostMeetingRoomRoomDelete|-| +|963|会议室|查询会议室ID|GetMeetingRoomRoomBatchGetId|-| +|964|会议室|获取国家地区列表|GetMeetingRoomCountryList|-| +|965|会议室|获取城市列表|GetMeetingRoomDistrictList|-| +|966|视频会议|创建签到板部署码|PostVcV1RoomConfigsSetCheckboardAccessCode|-| +|967|视频会议|创建会议室部署码|PostVcV1RoomConfigsSetRoomAccessCode|-| +|968|视频会议|查询会议室配置|GetVcV1RoomConfigsQuery|-| +|969|视频会议|设置会议室配置|PostVcV1RoomConfigsSet|-| diff --git a/src/Baike/PostLingoV1EntitiesBatchHighlightBodyDto.cs b/src/Baike/PostLingoV1EntitiesBatchHighlightBodyDto.cs new file mode 100644 index 00000000..6df7ab70 --- /dev/null +++ b/src/Baike/PostLingoV1EntitiesBatchHighlightBodyDto.cs @@ -0,0 +1,20 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Baike; +/// +/// 批量高亮 请求体 +/// 通过这个接口,可以传入一段文本,获取这段文本中所有词条的 ID +/// 接口ID:7293809202833342492 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/lingo-v1/entity/batch_highlight +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2flingo-v1%2fentity%2fbatch_highlight +/// +public record PostLingoV1EntitiesBatchHighlightBodyDto +{ + /// + /// 一批需要被识别词条的文本(一批不要超过20段文本,每段文本不要超过1000字) + /// 必填:是 + /// 最大长度:20 + /// 最小长度:1 + /// + [JsonProperty("texts")] + public string[] Texts { get; set; } = Array.Empty(); +} diff --git a/src/Baike/PostLingoV1EntitiesBatchHighlightResponseDto.cs b/src/Baike/PostLingoV1EntitiesBatchHighlightResponseDto.cs new file mode 100644 index 00000000..8dd8d275 --- /dev/null +++ b/src/Baike/PostLingoV1EntitiesBatchHighlightResponseDto.cs @@ -0,0 +1,36 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Baike; +/// +/// 批量高亮 响应体 +/// 通过这个接口,可以传入一段文本,获取这段文本中所有词条的 ID +/// 接口ID:7293809202833342492 +/// 文档地址:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/lingo-v1/entity/batch_highlight +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fuAjLw4CM%2fukTMukTMukTM%2flingo-v1%2fentity%2fbatch_highlight +/// +public record PostLingoV1EntitiesBatchHighlightResponseDto +{ + /// + /// 和输入texts对应长度的段落实体词信息 + /// 必填:否 + /// + [JsonProperty("phrases")] + public Phrase[][]? Phrases { get; set; } + + public record Phrase + { + [JsonProperty("name")] + public string Name { get; set; } = string.Empty; + + [JsonProperty("entity_ids")] + public string[] EntityIds { get; set; } = Array.Empty(); + + public record SpanSuffix + { + [JsonProperty("start")] + public int Start { get; set; } + + [JsonProperty("end")] + public int End { get; set; } + } + } +} diff --git a/src/FeishuNetSdk.csproj b/src/FeishuNetSdk.csproj index 09cbf9ba..55650360 100644 --- a/src/FeishuNetSdk.csproj +++ b/src/FeishuNetSdk.csproj @@ -4,7 +4,7 @@ net6.0 enable enable - False + True FeishuNetSdk Vicente Yu https://github.com/vicenteyu/FeishuNetSdk @@ -15,7 +15,7 @@ MIT 适用于飞书开放平台的.Net开发包 LICENSE - 1.0.3 + 1.0.4 @@ -23,7 +23,6 @@ - @@ -33,7 +32,6 @@ - @@ -43,7 +41,6 @@ - diff --git a/src/Hire/PatchHireV1EcoAccountCustomFieldsBatchUpdateBodyDto.cs b/src/Hire/PatchHireV1EcoAccountCustomFieldsBatchUpdateBodyDto.cs new file mode 100644 index 00000000..42408208 --- /dev/null +++ b/src/Hire/PatchHireV1EcoAccountCustomFieldsBatchUpdateBodyDto.cs @@ -0,0 +1,88 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 更新账号自定义字段 请求体 +/// 更新用户在服务商处的身份标示字段(如用户在服务商处的租户 ID),此方法只会更新同一 scope 内 key 一致的自定义字段。 +/// 接口ID:7195815979079434241 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_account_custom_field/batch_update +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_account_custom_field%2fbatch_update +/// +public record PatchHireV1EcoAccountCustomFieldsBatchUpdateBodyDto +{ + /// + /// 适用范围 + /// 必填:是 + /// 示例值:1 + /// 可选值: + /// 1:背调 + /// 2:笔试 + /// + /// + [JsonProperty("scope")] + public int Scope { get; set; } + + /// + /// 自定义字段列表 + /// 必填:是 + /// + [JsonProperty("custom_field_list")] + public EcoAccountCustomFieldData[] CustomFieldLists { get; set; } = Array.Empty(); + + /// + /// 自定义字段列表 + /// + public record EcoAccountCustomFieldData + { + /// + /// 自定义字段的标识,同一 scope 内须唯一 + /// 必填:是 + /// 示例值:org_id + /// + [JsonProperty("key")] + public string Key { get; set; } = string.Empty; + + /// + /// 自定义字段的名称,用户在添加账号表单看到的控件标题 + /// 必填:是 + /// + [JsonProperty("name")] + public I18n Name { get; set; } = new(); + + /// + /// 自定义字段的名称,用户在添加账号表单看到的控件标题 + /// + public record I18n + { + /// + /// 中文 + /// 必填:否 + /// 示例值:测试 + /// + [JsonProperty("zh_cn")] + public string? ZhCn { get; set; } + + /// + /// 英文 + /// 必填:否 + /// 示例值:test + /// + [JsonProperty("en_us")] + public string? EnUs { get; set; } + } + + /// + /// 是否必填 + /// 必填:是 + /// 示例值:true + /// + [JsonProperty("is_required")] + public bool IsRequired { get; set; } + + /// + /// 自定义字段的描述,用户在添加账号表单看到的 place holder + /// 必填:否 + /// + [JsonProperty("description")] + public I18n? Description { get; set; } + } +} diff --git a/src/Hire/PatchHireV1EcoBackgroundCheckCustomFieldsBatchUpdateBodyDto.cs b/src/Hire/PatchHireV1EcoBackgroundCheckCustomFieldsBatchUpdateBodyDto.cs new file mode 100644 index 00000000..e9f8e8da --- /dev/null +++ b/src/Hire/PatchHireV1EcoBackgroundCheckCustomFieldsBatchUpdateBodyDto.cs @@ -0,0 +1,153 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 更新背调自定义字段 请求体 +/// 更新用户在发起背调时的自定义字段。更新操作不支持更新自定义字段类型,只允许更新字段名称,且将影响已发起的背调表单展示。 +/// 接口ID:7195815976042594306 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_background_check_custom_field/batch_update +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_background_check_custom_field%2fbatch_update +/// +public record PatchHireV1EcoBackgroundCheckCustomFieldsBatchUpdateBodyDto +{ + /// + /// 背调账号 ID,可在「账号绑定」事件中获取 + /// 必填:是 + /// 示例值:6995842370159937061 + /// + [JsonProperty("account_id")] + public string AccountId { get; set; } = string.Empty; + + /// + /// 自定义字段列表 + /// 必填:是 + /// + [JsonProperty("custom_field_list")] + public EcoBackgroundCheckCustomFieldData[] CustomFieldLists { get; set; } = Array.Empty(); + + /// + /// 自定义字段列表 + /// + public record EcoBackgroundCheckCustomFieldData + { + /// + /// 自定义字段类型 + /// 必填:是 + /// 示例值:text + /// 可选值: + /// text:单行文本,最多100个汉字 + /// textarea:多行文本,最多200个汉字 + /// number:数字 + /// boolean:布尔 + /// select:单选 + /// multiselect:多选 + /// date:日期 + /// file:附件 + /// resume:候选人简历 + /// + /// + [JsonProperty("type")] + public string Type { get; set; } = string.Empty; + + /// + /// 自定义字段的标识,在同一账号内唯一 + /// 必填:是 + /// 示例值:candidate_resume + /// + [JsonProperty("key")] + public string Key { get; set; } = string.Empty; + + /// + /// 自定义字段的名称,用户在安排背调表单看到的控件标题 + /// 必填:是 + /// + [JsonProperty("name")] + public I18n Name { get; set; } = new(); + + /// + /// 自定义字段的名称,用户在安排背调表单看到的控件标题 + /// + public record I18n + { + /// + /// 中文 + /// 必填:否 + /// 示例值:测试 + /// + [JsonProperty("zh_cn")] + public string? ZhCn { get; set; } + + /// + /// 英文 + /// 必填:否 + /// 示例值:test + /// + [JsonProperty("en_us")] + public string? EnUs { get; set; } + } + + /// + /// 是否必填 + /// 必填:是 + /// 示例值:true + /// + [JsonProperty("is_required")] + public bool IsRequired { get; set; } + + /// + /// 自定义字段的描述,如果是输入控件,为用户在安排背调表单看到的 placeholder 或 提示文字 + /// 必填:否 + /// + [JsonProperty("description")] + public I18n? Description { get; set; } + + /// + /// type 为 select 或 multiselect 时必填,单选或多选的选项 + /// 必填:否 + /// + [JsonProperty("options")] + public EcoBackgroundCheckCustomFieldDataOption[]? Options { get; set; } + + /// + /// type 为 select 或 multiselect 时必填,单选或多选的选项 + /// + public record EcoBackgroundCheckCustomFieldDataOption + { + /// + /// 选项的 key + /// 必填:是 + /// 示例值:A + /// + [JsonProperty("key")] + public string Key { get; set; } = string.Empty; + + /// + /// 选项的名称 + /// 必填:是 + /// + [JsonProperty("name")] + public I18n Name { get; set; } = new(); + + /// + /// 选项的名称 + /// + public record I18n + { + /// + /// 中文 + /// 必填:否 + /// 示例值:测试 + /// + [JsonProperty("zh_cn")] + public string? ZhCn { get; set; } + + /// + /// 英文 + /// 必填:否 + /// 示例值:test + /// + [JsonProperty("en_us")] + public string? EnUs { get; set; } + } + } + } +} diff --git a/src/Hire/PatchHireV1EcoBackgroundCheckPackagesBatchUpdateBodyDto.cs b/src/Hire/PatchHireV1EcoBackgroundCheckPackagesBatchUpdateBodyDto.cs new file mode 100644 index 00000000..04fe2338 --- /dev/null +++ b/src/Hire/PatchHireV1EcoBackgroundCheckPackagesBatchUpdateBodyDto.cs @@ -0,0 +1,94 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 更新背调套餐和附加调查项 请求体 +/// 更新帐号下指定背调套餐和附加调查项信息,更新将影响已发起背调的表单项展示。如需新增背调套餐、附加项需使用创建接口进行添加 +/// 接口ID:7195815979079548929 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_background_check_package/batch_update +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_background_check_package%2fbatch_update +/// +public record PatchHireV1EcoBackgroundCheckPackagesBatchUpdateBodyDto +{ + /// + /// 背调账号 ID,可在「账号绑定」事件中获取 + /// 必填:是 + /// 示例值:ord_id + /// + [JsonProperty("account_id")] + public string AccountId { get; set; } = string.Empty; + + /// + /// 背调套餐列表 + /// 必填:是 + /// + [JsonProperty("package_list")] + public EcoBackgroundCheckPackageData[] PackageLists { get; set; } = Array.Empty(); + + /// + /// 背调套餐列表 + /// + public record EcoBackgroundCheckPackageData + { + /// + /// 套餐 ID + /// 必填:是 + /// 示例值:pkg001 + /// + [JsonProperty("id")] + public string Id { get; set; } = string.Empty; + + /// + /// 背调名称 + /// 必填:是 + /// 示例值:基础套餐 + /// 最大长度:36 + /// + [JsonProperty("name")] + public string Name { get; set; } = string.Empty; + + /// + /// 套餐描述 + /// 必填:否 + /// 示例值:工作履历信息验证X1,工作表现鉴定评价X1,教育背景核实,公民身份信息验证,简历对比,民事诉讼调查 + /// + [JsonProperty("description")] + public string? Description { get; set; } + } + + /// + /// 附加项列表 + /// 必填:否 + /// + [JsonProperty("additional_item_list")] + public EcoBackgroundCheckPackageAdditionalItem[]? AdditionalItemLists { get; set; } + + /// + /// 附加项列表 + /// + public record EcoBackgroundCheckPackageAdditionalItem + { + /// + /// 附件调查项 ID + /// 必填:是 + /// 示例值:ext001 + /// + [JsonProperty("id")] + public string Id { get; set; } = string.Empty; + + /// + /// 附加调查项名称 + /// 必填:是 + /// 示例值:工作履历信息验证X2 + /// + [JsonProperty("name")] + public string Name { get; set; } = string.Empty; + + /// + /// 附加调查项描述 + /// 必填:否 + /// 示例值:详细调查 + /// + [JsonProperty("description")] + public string? Description { get; set; } + } +} diff --git a/src/Hire/PatchHireV1EcoExamPapersBatchUpdateBodyDto.cs b/src/Hire/PatchHireV1EcoExamPapersBatchUpdateBodyDto.cs new file mode 100644 index 00000000..65ee9f50 --- /dev/null +++ b/src/Hire/PatchHireV1EcoExamPapersBatchUpdateBodyDto.cs @@ -0,0 +1,82 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 更新试卷 请求体 +/// 更新指定帐号可用的试卷列表 +/// 接口ID:7195815979079532545 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_exam_paper/batch_update +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_exam_paper%2fbatch_update +/// +public record PatchHireV1EcoExamPapersBatchUpdateBodyDto +{ + /// + /// 账号 ID,可在「账号绑定」事件中获取 + /// 必填:是 + /// 示例值:7147998241542539527 + /// + [JsonProperty("account_id")] + public string AccountId { get; set; } = string.Empty; + + /// + /// 试卷列表 + /// 必填:是 + /// + [JsonProperty("paper_list")] + public EcoExamPaperData[] PaperLists { get; set; } = Array.Empty(); + + /// + /// 试卷列表 + /// + public record EcoExamPaperData + { + /// + /// 试卷 ID + /// 必填:是 + /// 示例值:7147998241542539527 + /// 最小长度:1 + /// + [JsonProperty("id")] + public string Id { get; set; } = string.Empty; + + /// + /// 试卷名称 + /// 必填:是 + /// 示例值:春季测评 + /// 最小长度:1 + /// + [JsonProperty("name")] + public string Name { get; set; } = string.Empty; + + /// + /// 考试时长(分钟) + /// 必填:否 + /// 示例值:30 + /// + [JsonProperty("duration")] + public int? Duration { get; set; } + + /// + /// 试卷题目数量 + /// 必填:否 + /// 示例值:30 + /// + [JsonProperty("question_count")] + public int? QuestionCount { get; set; } + + /// + /// 开始时间,留空或不传表示不限制开始时间 + /// 必填:否 + /// 示例值:1658676234053 + /// + [JsonProperty("start_time")] + public string? StartTime { get; set; } + + /// + /// 结束时间,留空或不传表示不限制结束时间 + /// 必填:否 + /// 示例值:1672444800000 + /// + [JsonProperty("end_time")] + public string? EndTime { get; set; } + } +} diff --git a/src/Hire/PostHireV1EcoAccountCustomFieldsBatchDeleteBodyDto.cs b/src/Hire/PostHireV1EcoAccountCustomFieldsBatchDeleteBodyDto.cs new file mode 100644 index 00000000..8a9adc1d --- /dev/null +++ b/src/Hire/PostHireV1EcoAccountCustomFieldsBatchDeleteBodyDto.cs @@ -0,0 +1,31 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 删除账号自定义字段 请求体 +/// 删除用户在服务商处的身份标示字段(如用户在服务商处的租户 ID)。删除后,不影响已添加帐号对应的自定义字段的值。但在添加新帐号时,将不能再使用此自定义字段。删除不支持撤销,对应的 key 将无法再次复用。 +/// 接口ID:7195815976042545154 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_account_custom_field/batch_delete +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_account_custom_field%2fbatch_delete +/// +public record PostHireV1EcoAccountCustomFieldsBatchDeleteBodyDto +{ + /// + /// 适用范围 + /// 必填:否 + /// 示例值:1 + /// 可选值: + /// 1:背调 + /// 2:笔试 + /// + /// + [JsonProperty("scope")] + public int? Scope { get; set; } + + /// + /// 要删除的自定义字段的 key 列表 + /// 必填:否 + /// 示例值:123 + /// + [JsonProperty("custom_field_key_list")] + public string[]? CustomFieldKeyList { get; set; } +} diff --git a/src/Hire/PostHireV1EcoAccountCustomFieldsBodyDto.cs b/src/Hire/PostHireV1EcoAccountCustomFieldsBodyDto.cs new file mode 100644 index 00000000..495efa67 --- /dev/null +++ b/src/Hire/PostHireV1EcoAccountCustomFieldsBodyDto.cs @@ -0,0 +1,88 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 创建账号自定义字段 请求体 +/// 定制用户在服务商处的身份标示字段(如用户在服务商处的租户 ID)。用户在飞书招聘后台添加帐号后,系统会推送「帐号绑定」事件给开发者,事件将携带用户填写的自定义字段信息,开发者可根据此信息识别飞书招聘用户在服务商处的身份信息,完成飞书招聘用户和服务商帐号的绑定,并以此来推送对应的套餐或试卷列表等。 可多次推送,多次推送为覆盖逻辑。 +/// 接口ID:7195815979079581697 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_account_custom_field/create +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_account_custom_field%2fcreate +/// +public record PostHireV1EcoAccountCustomFieldsBodyDto +{ + /// + /// 适用范围 + /// 必填:是 + /// 示例值:1 + /// 可选值: + /// 1:背调 + /// 2:笔试 + /// + /// + [JsonProperty("scope")] + public int Scope { get; set; } + + /// + /// 自定义字段列表 + /// 必填:是 + /// + [JsonProperty("custom_field_list")] + public EcoAccountCustomFieldData[] CustomFieldLists { get; set; } = Array.Empty(); + + /// + /// 自定义字段列表 + /// + public record EcoAccountCustomFieldData + { + /// + /// 自定义字段的标识,同一 scope 内须唯一 + /// 必填:是 + /// 示例值:org_id + /// + [JsonProperty("key")] + public string Key { get; set; } = string.Empty; + + /// + /// 自定义字段的名称,用户在添加账号表单看到的控件标题 + /// 必填:是 + /// + [JsonProperty("name")] + public I18n Name { get; set; } = new(); + + /// + /// 自定义字段的名称,用户在添加账号表单看到的控件标题 + /// + public record I18n + { + /// + /// 中文 + /// 必填:否 + /// 示例值:测试 + /// + [JsonProperty("zh_cn")] + public string? ZhCn { get; set; } + + /// + /// 英文 + /// 必填:否 + /// 示例值:test + /// + [JsonProperty("en_us")] + public string? EnUs { get; set; } + } + + /// + /// 是否必填 + /// 必填:是 + /// 示例值:true + /// + [JsonProperty("is_required")] + public bool IsRequired { get; set; } + + /// + /// 自定义字段的描述,用户在添加账号表单看到的 place holder + /// 必填:否 + /// + [JsonProperty("description")] + public I18n? Description { get; set; } + } +} diff --git a/src/Hire/PostHireV1EcoBackgroundCheckCustomFieldsBatchDeleteBodyDto.cs b/src/Hire/PostHireV1EcoBackgroundCheckCustomFieldsBatchDeleteBodyDto.cs new file mode 100644 index 00000000..2355cf60 --- /dev/null +++ b/src/Hire/PostHireV1EcoBackgroundCheckCustomFieldsBatchDeleteBodyDto.cs @@ -0,0 +1,19 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 删除背调自定义字段 请求体 +/// 删除用户在发起背调时的自定义字段,删除不影响已创建的背调,删除后对应的自定义字段的 key 不能再复用。 +/// 接口ID:7195815979079565313 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_background_check_custom_field/batch_delete +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_background_check_custom_field%2fbatch_delete +/// +public record PostHireV1EcoBackgroundCheckCustomFieldsBatchDeleteBodyDto +{ + /// + /// 背调账号 ID,可在「账号绑定」事件中获取 + /// 必填:是 + /// 示例值:a001 + /// + [JsonProperty("account_id")] + public string AccountId { get; set; } = string.Empty; +} diff --git a/src/Hire/PostHireV1EcoBackgroundCheckCustomFieldsBodyDto.cs b/src/Hire/PostHireV1EcoBackgroundCheckCustomFieldsBodyDto.cs new file mode 100644 index 00000000..5eb22b7c --- /dev/null +++ b/src/Hire/PostHireV1EcoBackgroundCheckCustomFieldsBodyDto.cs @@ -0,0 +1,153 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 推送背调自定义字段 请求体 +/// 定制用户在发起背调时的自定义字段, 此接口为覆盖更新,多次调用时最后一次调用推送的自定义字段生效。 +/// 接口ID:7195815979079450625 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_background_check_custom_field/create +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_background_check_custom_field%2fcreate +/// +public record PostHireV1EcoBackgroundCheckCustomFieldsBodyDto +{ + /// + /// 背调账号 ID,可在「账号绑定」事件中获取 + /// 必填:是 + /// 示例值:6995842370159937061 + /// + [JsonProperty("account_id")] + public string AccountId { get; set; } = string.Empty; + + /// + /// 自定义字段列表 + /// 必填:是 + /// + [JsonProperty("custom_field_list")] + public EcoBackgroundCheckCustomFieldData[] CustomFieldLists { get; set; } = Array.Empty(); + + /// + /// 自定义字段列表 + /// + public record EcoBackgroundCheckCustomFieldData + { + /// + /// 自定义字段类型 + /// 必填:是 + /// 示例值:text + /// 可选值: + /// text:单行文本,最多100个汉字 + /// textarea:多行文本,最多200个汉字 + /// number:数字 + /// boolean:布尔 + /// select:单选 + /// multiselect:多选 + /// date:日期 + /// file:附件 + /// resume:候选人简历 + /// + /// + [JsonProperty("type")] + public string Type { get; set; } = string.Empty; + + /// + /// 自定义字段的标识,在同一账号内唯一 + /// 必填:是 + /// 示例值:candidate_resume + /// + [JsonProperty("key")] + public string Key { get; set; } = string.Empty; + + /// + /// 自定义字段的名称,用户在安排背调表单看到的控件标题 + /// 必填:是 + /// + [JsonProperty("name")] + public I18n Name { get; set; } = new(); + + /// + /// 自定义字段的名称,用户在安排背调表单看到的控件标题 + /// + public record I18n + { + /// + /// 中文 + /// 必填:否 + /// 示例值:测试 + /// + [JsonProperty("zh_cn")] + public string? ZhCn { get; set; } + + /// + /// 英文 + /// 必填:否 + /// 示例值:test + /// + [JsonProperty("en_us")] + public string? EnUs { get; set; } + } + + /// + /// 是否必填 + /// 必填:是 + /// 示例值:true + /// + [JsonProperty("is_required")] + public bool IsRequired { get; set; } + + /// + /// 自定义字段的描述,如果是输入控件,为用户在安排背调表单看到的 placeholder 或 提示文字 + /// 必填:否 + /// + [JsonProperty("description")] + public I18n? Description { get; set; } + + /// + /// type 为 select 或 multiselect 时必填,单选或多选的选项 + /// 必填:否 + /// + [JsonProperty("options")] + public EcoBackgroundCheckCustomFieldDataOption[]? Options { get; set; } + + /// + /// type 为 select 或 multiselect 时必填,单选或多选的选项 + /// + public record EcoBackgroundCheckCustomFieldDataOption + { + /// + /// 选项的 key + /// 必填:是 + /// 示例值:A + /// + [JsonProperty("key")] + public string Key { get; set; } = string.Empty; + + /// + /// 选项的名称 + /// 必填:是 + /// + [JsonProperty("name")] + public I18n Name { get; set; } = new(); + + /// + /// 选项的名称 + /// + public record I18n + { + /// + /// 中文 + /// 必填:否 + /// 示例值:测试 + /// + [JsonProperty("zh_cn")] + public string? ZhCn { get; set; } + + /// + /// 英文 + /// 必填:否 + /// 示例值:test + /// + [JsonProperty("en_us")] + public string? EnUs { get; set; } + } + } + } +} diff --git a/src/Hire/PostHireV1EcoBackgroundCheckPackagesBatchDeleteBodyDto.cs b/src/Hire/PostHireV1EcoBackgroundCheckPackagesBatchDeleteBodyDto.cs new file mode 100644 index 00000000..b4385b91 --- /dev/null +++ b/src/Hire/PostHireV1EcoBackgroundCheckPackagesBatchDeleteBodyDto.cs @@ -0,0 +1,35 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 删除背调套餐和附加调查项 请求体 +/// 删除指定帐号的指定背调套餐和附加调查项信息,删除不会影响已创建的背调。 +/// 接口ID:7195815976042528770 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_background_check_package/batch_delete +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_background_check_package%2fbatch_delete +/// +public record PostHireV1EcoBackgroundCheckPackagesBatchDeleteBodyDto +{ + /// + /// 背调账号 ID,可在「账号绑定」事件中获取 + /// 必填:是 + /// 示例值:xd_bc_001 + /// + [JsonProperty("account_id")] + public string AccountId { get; set; } = string.Empty; + + /// + /// 要删除的套餐 ID 列表,删除套餐不影响已安排的背调 + /// 必填:否 + /// 示例值:6996920667635566881 + /// + [JsonProperty("package_id_list")] + public string[]? PackageIdList { get; set; } + + /// + /// 要删除的附加调查项 ID 列表,删除附加调查项不影响已安排的背调 + /// 必填:否 + /// 示例值:6996920667635566881 + /// + [JsonProperty("additional_item_id_list")] + public string[]? AdditionalItemIdList { get; set; } +} diff --git a/src/Hire/PostHireV1EcoBackgroundCheckPackagesBodyDto.cs b/src/Hire/PostHireV1EcoBackgroundCheckPackagesBodyDto.cs new file mode 100644 index 00000000..798a8984 --- /dev/null +++ b/src/Hire/PostHireV1EcoBackgroundCheckPackagesBodyDto.cs @@ -0,0 +1,94 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 创建背调套餐和附加调查项 请求体 +/// 定制指定帐号可用的背调套餐和附加调查项信息。 +/// 接口ID:7195815976042512386 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_background_check_package/create +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_background_check_package%2fcreate +/// +public record PostHireV1EcoBackgroundCheckPackagesBodyDto +{ + /// + /// 背调账号 ID,可在「账号绑定」事件中获取 + /// 必填:是 + /// 示例值:ord_id + /// + [JsonProperty("account_id")] + public string AccountId { get; set; } = string.Empty; + + /// + /// 背调套餐列表 + /// 必填:是 + /// + [JsonProperty("package_list")] + public EcoBackgroundCheckPackageData[] PackageLists { get; set; } = Array.Empty(); + + /// + /// 背调套餐列表 + /// + public record EcoBackgroundCheckPackageData + { + /// + /// 套餐 ID + /// 必填:是 + /// 示例值:pkg001 + /// + [JsonProperty("id")] + public string Id { get; set; } = string.Empty; + + /// + /// 背调名称 + /// 必填:是 + /// 示例值:基础套餐 + /// 最大长度:36 + /// + [JsonProperty("name")] + public string Name { get; set; } = string.Empty; + + /// + /// 套餐描述 + /// 必填:否 + /// 示例值:工作履历信息验证X1,工作表现鉴定评价X1,教育背景核实,公民身份信息验证,简历对比,民事诉讼调查 + /// + [JsonProperty("description")] + public string? Description { get; set; } + } + + /// + /// 附加调查项列表 + /// 必填:否 + /// + [JsonProperty("additional_item_list")] + public EcoBackgroundCheckPackageAdditionalItem[]? AdditionalItemLists { get; set; } + + /// + /// 附加调查项列表 + /// + public record EcoBackgroundCheckPackageAdditionalItem + { + /// + /// 附件调查项 ID + /// 必填:是 + /// 示例值:ext001 + /// + [JsonProperty("id")] + public string Id { get; set; } = string.Empty; + + /// + /// 附加调查项名称 + /// 必填:是 + /// 示例值:工作履历信息验证X2 + /// + [JsonProperty("name")] + public string Name { get; set; } = string.Empty; + + /// + /// 附加调查项描述 + /// 必填:否 + /// 示例值:详细调查 + /// + [JsonProperty("description")] + public string? Description { get; set; } + } +} diff --git a/src/Hire/PostHireV1EcoBackgroundChecksCancelBodyDto.cs b/src/Hire/PostHireV1EcoBackgroundChecksCancelBodyDto.cs new file mode 100644 index 00000000..72a02338 --- /dev/null +++ b/src/Hire/PostHireV1EcoBackgroundChecksCancelBodyDto.cs @@ -0,0 +1,19 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 终止背调订单 请求体 +/// 调用此接口将会将系统订单状态变成已终止, 已终止订单将不会响应[「更新背调进度」](https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_background_check/update_progress)和[「回传背调订单的最终结果」](https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_background_check/update_result)。 建议在回调终止背调订单之前,推送账号进度为「已终止」 +/// 接口ID:7195815979079598081 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_background_check/cancel +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_background_check%2fcancel +/// +public record PostHireV1EcoBackgroundChecksCancelBodyDto +{ + /// + /// 背调 ID + /// 必填:是 + /// 示例值:6931286400470354183 + /// + [JsonProperty("background_check_id")] + public string BackgroundCheckId { get; set; } = string.Empty; +} diff --git a/src/Hire/PostHireV1EcoBackgroundChecksUpdateProgressBodyDto.cs b/src/Hire/PostHireV1EcoBackgroundChecksUpdateProgressBodyDto.cs new file mode 100644 index 00000000..c8cb6da2 --- /dev/null +++ b/src/Hire/PostHireV1EcoBackgroundChecksUpdateProgressBodyDto.cs @@ -0,0 +1,80 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 更新背调订单进度 请求体 +/// 更新指定背调的进展信息和阶段报告, 进度信息将会被展示在背调卡片上,用以推送背调进度、阶段报告。用以告知用户目前系统订单的流转状态。 当订单状态已完成时,将无法通过此接口更新阶段报告、更新进度事件信息。 +/// 接口ID:7195815979079483393 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_background_check/update_progress +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_background_check%2fupdate_progress +/// +public record PostHireV1EcoBackgroundChecksUpdateProgressBodyDto +{ + /// + /// 背调 ID,招聘侧的 ID + /// 必填:是 + /// 示例值:6931286400470354183 + /// + [JsonProperty("background_check_id")] + public string BackgroundCheckId { get; set; } = string.Empty; + + /// + /// 阶段 ID,同一背调订单此 ID 不能重复 + /// 必填:是 + /// 示例值:6931286400470354183 + /// + [JsonProperty("stage_id")] + public string StageId { get; set; } = string.Empty; + + /// + /// 背调阶段英文名称 + /// 必填:否 + /// 示例值:stage report + /// + [JsonProperty("stage_en_name")] + public string? StageEnName { get; set; } + + /// + /// 背调阶段名称 + /// 必填:是 + /// 示例值:阶段报告 + /// + [JsonProperty("stage_name")] + public string StageName { get; set; } = string.Empty; + + /// + /// 阶段进度更新时间。 毫秒级时间戳,每次调用此字段应严格递增 + /// 必填:是 + /// 示例值:1660123456789 + /// + [JsonProperty("stage_time")] + public string StageTime { get; set; } = string.Empty; + + /// + /// 报告列表 + /// 必填:否 + /// + [JsonProperty("report_file_list")] + public EcoBackgroundCheckReportFile[]? ReportFileLists { get; set; } + + /// + /// 报告列表 + /// + public record EcoBackgroundCheckReportFile + { + /// + /// 报告名称 + /// 必填:是 + /// 示例值:阶段报告.pdf + /// + [JsonProperty("report_name")] + public string ReportName { get; set; } = string.Empty; + + /// + /// 报告地址 + /// 必填:是 + /// 示例值:https://xxxxx/xxxxxx/xxxx.pdf + /// + [JsonProperty("report_url")] + public string ReportUrl { get; set; } = string.Empty; + } +} diff --git a/src/Hire/PostHireV1EcoBackgroundChecksUpdateResultBodyDto.cs b/src/Hire/PostHireV1EcoBackgroundChecksUpdateResultBodyDto.cs new file mode 100644 index 00000000..0bc32122 --- /dev/null +++ b/src/Hire/PostHireV1EcoBackgroundChecksUpdateResultBodyDto.cs @@ -0,0 +1,64 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 回传背调订单的最终结果 请求体 +/// 回传背调的最终结果,终版报告。 回传背调结果后,若租户未启用报告审批功能,则背调订单状态将会变成已完成。 若启用报告审批功能,则在管理员审批通过终版报告后,订单状态流转为已完成。 +/// 接口ID:7195815979079499777 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_background_check/update_result +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_background_check%2fupdate_result +/// +public record PostHireV1EcoBackgroundChecksUpdateResultBodyDto +{ + /// + /// 背调 ID + /// 必填:是 + /// 示例值:6931286400470354183 + /// + [JsonProperty("background_check_id")] + public string BackgroundCheckId { get; set; } = string.Empty; + + /// + /// 背调结果 + /// 必填:是 + /// 示例值:无差异 + /// + [JsonProperty("result")] + public string Result { get; set; } = string.Empty; + + /// + /// 背调结果时间 + /// 必填:是 + /// 示例值:1660123456789 + /// + [JsonProperty("result_time")] + public string ResultTime { get; set; } = string.Empty; + + /// + /// 报告列表 + /// 必填:否 + /// + [JsonProperty("report_file_list")] + public EcoBackgroundCheckReportFile[]? ReportFileLists { get; set; } + + /// + /// 报告列表 + /// + public record EcoBackgroundCheckReportFile + { + /// + /// 报告名称 + /// 必填:是 + /// 示例值:阶段报告.pdf + /// + [JsonProperty("report_name")] + public string ReportName { get; set; } = string.Empty; + + /// + /// 报告地址 + /// 必填:是 + /// 示例值:https://xxxxx/xxxxxx/xxxx.pdf + /// + [JsonProperty("report_url")] + public string ReportUrl { get; set; } = string.Empty; + } +} diff --git a/src/Hire/PostHireV1EcoExamPapersBatchDeleteBodyDto.cs b/src/Hire/PostHireV1EcoExamPapersBatchDeleteBodyDto.cs new file mode 100644 index 00000000..4e8457c3 --- /dev/null +++ b/src/Hire/PostHireV1EcoExamPapersBatchDeleteBodyDto.cs @@ -0,0 +1,27 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 删除试卷 请求体 +/// 删除指定帐号的指定试卷列表,删除不影响已创建的笔试,删除不存在的试卷时不会报错 +/// 接口ID:7195815976042577922 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_exam_paper/batch_delete +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_exam_paper%2fbatch_delete +/// +public record PostHireV1EcoExamPapersBatchDeleteBodyDto +{ + /// + /// 背调账号 ID,可在「账号绑定」事件中获取 + /// 必填:是 + /// 示例值:7147998241542539527 + /// + [JsonProperty("account_id")] + public string AccountId { get; set; } = string.Empty; + + /// + /// 试卷 ID 列表 + /// 必填:是 + /// 示例值:["7147998241542539512"] + /// + [JsonProperty("paper_id_list")] + public string[] PaperIdList { get; set; } = Array.Empty(); +} diff --git a/src/Hire/PostHireV1EcoExamPapersBodyDto.cs b/src/Hire/PostHireV1EcoExamPapersBodyDto.cs new file mode 100644 index 00000000..a3e5e3e8 --- /dev/null +++ b/src/Hire/PostHireV1EcoExamPapersBodyDto.cs @@ -0,0 +1,82 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 推送试卷列表 请求体 +/// 定制指定帐号可用的试卷列表 +/// 接口ID:7195815976042561538 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_exam_paper/create +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_exam_paper%2fcreate +/// +public record PostHireV1EcoExamPapersBodyDto +{ + /// + /// 账号 ID,可在「账号绑定」事件中获取 + /// 必填:是 + /// 示例值:7147998241542539527 + /// + [JsonProperty("account_id")] + public string AccountId { get; set; } = string.Empty; + + /// + /// 试卷列表 + /// 必填:是 + /// + [JsonProperty("paper_list")] + public EcoExamPaperData[] PaperLists { get; set; } = Array.Empty(); + + /// + /// 试卷列表 + /// + public record EcoExamPaperData + { + /// + /// 试卷 ID + /// 必填:是 + /// 示例值:7147998241542539527 + /// 最小长度:1 + /// + [JsonProperty("id")] + public string Id { get; set; } = string.Empty; + + /// + /// 试卷名称 + /// 必填:是 + /// 示例值:春季测评 + /// 最小长度:1 + /// + [JsonProperty("name")] + public string Name { get; set; } = string.Empty; + + /// + /// 考试时长(分钟) + /// 必填:否 + /// 示例值:30 + /// + [JsonProperty("duration")] + public int? Duration { get; set; } + + /// + /// 试卷题目数量 + /// 必填:否 + /// 示例值:30 + /// + [JsonProperty("question_count")] + public int? QuestionCount { get; set; } + + /// + /// 开始时间,留空或不传表示不限制开始时间 + /// 必填:否 + /// 示例值:1658676234053 + /// + [JsonProperty("start_time")] + public string? StartTime { get; set; } + + /// + /// 结束时间,留空或不传表示不限制结束时间 + /// 必填:否 + /// 示例值:1672444800000 + /// + [JsonProperty("end_time")] + public string? EndTime { get; set; } + } +} diff --git a/src/Hire/PostHireV1EcoExamsByExamIdLoginInfoBodyDto.cs b/src/Hire/PostHireV1EcoExamsByExamIdLoginInfoBodyDto.cs new file mode 100644 index 00000000..24e727f8 --- /dev/null +++ b/src/Hire/PostHireV1EcoExamsByExamIdLoginInfoBodyDto.cs @@ -0,0 +1,64 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 回传笔试安排结果 请求体 +/// 回传笔试安排结果,如果安排成功需返回笔试链接和登录凭证 +/// 接口ID:7195815979079401473 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_exam/login_info +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_exam%2flogin_info +/// +public record PostHireV1EcoExamsByExamIdLoginInfoBodyDto +{ + /// + /// 状态码,0-成功 非零-错误码 + /// 必填:否 + /// 示例值:0 + /// + [JsonProperty("result")] + public int? Result { get; set; } + + /// + /// 成功或失败的描述信息 + /// 必填:否 + /// 示例值:success + /// + [JsonProperty("msg")] + public string? Msg { get; set; } + + /// + /// 笔试作答信息 + /// 必填:是 + /// + [JsonProperty("exam_login_info")] + public EcoExamLoginInfo ExamLoginInfo { get; set; } = new(); + + /// + /// 笔试作答信息 + /// + public record EcoExamLoginInfo + { + /// + /// 笔试链接。如果返回的链接是附带候选人唯一标识且无需登录鉴权的,可只返回此地址 + /// 必填:是 + /// 示例值:https://xxxx/xxxx/xxxx + /// + [JsonProperty("exam_url")] + public string ExamUrl { get; set; } = string.Empty; + + /// + /// 用户名 + /// 必填:否 + /// 示例值:waxsdfbhg + /// + [JsonProperty("username")] + public string? Username { get; set; } + + /// + /// 密码 + /// 必填:否 + /// 示例值:xxxxxx + /// + [JsonProperty("password")] + public string? Password { get; set; } + } +} diff --git a/src/Hire/PostHireV1EcoExamsByExamIdUpdateResultBodyDto.cs b/src/Hire/PostHireV1EcoExamsByExamIdUpdateResultBodyDto.cs new file mode 100644 index 00000000..0cd45c59 --- /dev/null +++ b/src/Hire/PostHireV1EcoExamsByExamIdUpdateResultBodyDto.cs @@ -0,0 +1,101 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 回传笔试结果 请求体 +/// 回传笔试结果 +/// 接口ID:7195815979079467009 +/// 文档地址:https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_exam/update_result +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2feco_exam%2fupdate_result +/// +public record PostHireV1EcoExamsByExamIdUpdateResultBodyDto +{ + /// + /// 笔试结果,推荐传"0"-"100" 的数字(字符串格式),如"60", "90", 该字段表示该场笔试考生考试的成绩 + /// 必填:是 + /// 示例值:60.5 + /// + [JsonProperty("result")] + public string Result { get; set; } = string.Empty; + + /// + /// 笔试结果时间 + /// 必填:否 + /// 示例值:1658676234053 + /// + [JsonProperty("result_time")] + public string? ResultTime { get; set; } + + /// + /// 报告列表 + /// 必填:否 + /// + [JsonProperty("report_list")] + public EcoExamResultReport[]? ReportLists { get; set; } + + /// + /// 报告列表 + /// + public record EcoExamResultReport + { + /// + /// 报告名称 + /// 必填:是 + /// 示例值:阶段报告.pdf + /// + [JsonProperty("name")] + public string Name { get; set; } = string.Empty; + + /// + /// 报告链接 + /// 必填:是 + /// 示例值:https://xxxxx/xxxxxx/xxxx.pdf + /// + [JsonProperty("url")] + public string Url { get; set; } = string.Empty; + + /// + /// 作答完成时间(毫秒时间戳) + /// 必填:否 + /// 示例值:1658676234053 + /// + [JsonProperty("answer_time")] + public string? AnswerTime { get; set; } + } + + /// + /// 详细评价结果 + /// 必填:否 + /// + [JsonProperty("detail_list")] + public EcoExamResultDetail[]? DetailLists { get; set; } + + /// + /// 详细评价结果 + /// + public record EcoExamResultDetail + { + /// + /// 评价 ID + /// 必填:否 + /// 示例值:pj001 + /// + [JsonProperty("id")] + public string? Id { get; set; } + + /// + /// 评价名称 + /// 必填:是 + /// 示例值:基本功 + /// + [JsonProperty("name")] + public string Name { get; set; } = string.Empty; + + /// + /// 评价结果 + /// 必填:是 + /// 示例值:优秀 + /// + [JsonProperty("result")] + public string Result { get; set; } = string.Empty; + } +} diff --git a/src/Hire/PostHireV1ReferralAccountBodyDto.cs b/src/Hire/PostHireV1ReferralAccountBodyDto.cs new file mode 100644 index 00000000..0c6086e7 --- /dev/null +++ b/src/Hire/PostHireV1ReferralAccountBodyDto.cs @@ -0,0 +1,48 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 注册外部系统内推账户 请求体 +/// 支持通过内推人的手机号或邮箱注册「内推奖励账号」。注册后,可获取对应内推人的账号 ID,并查询、操作对应内推人的积分和奖励余额,配合接口:[「内推账户余额变更事件」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/events/assets_update)、[「全额提取内推账号余额」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/withdraw)。如需停用账户,可调用[「停用外部系统内推账户」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/deactivate) +/// 接口ID:7252281835550932994 +/// 文档地址:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/create +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2freferral_account%2fcreate +/// +public record PostHireV1ReferralAccountBodyDto +{ + /// + /// 电话 + /// 必填:否 + /// + [JsonProperty("mobile")] + public PostHireV1ReferralAccountBodyDtoMobile? Mobile { get; set; } + + /// + /// 电话 + /// + public record PostHireV1ReferralAccountBodyDtoMobile + { + /// + /// 国家代码 + /// 必填:否 + /// 示例值:86 + /// + [JsonProperty("code")] + public string? Code { get; set; } + + /// + /// 手机号码 + /// 必填:否 + /// 示例值:18900001111 + /// + [JsonProperty("number")] + public string? Number { get; set; } + } + + /// + /// 邮箱 + /// 必填:否 + /// 示例值:hire@open.com + /// + [JsonProperty("email")] + public string? Email { get; set; } +} diff --git a/src/Hire/PostHireV1ReferralAccountByReferralAccountIdDeactivateResponseDto.cs b/src/Hire/PostHireV1ReferralAccountByReferralAccountIdDeactivateResponseDto.cs new file mode 100644 index 00000000..aaf6eded --- /dev/null +++ b/src/Hire/PostHireV1ReferralAccountByReferralAccountIdDeactivateResponseDto.cs @@ -0,0 +1,78 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 停用外部系统内推账户 响应体 +/// 停用后,对应的内推账号信息将无法通过接口[「内推账户余额变更事件」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/events/assets_update)、[「提取内推账号余额」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/withdraw)获取、修改 +/// 接口ID:7252281835550867458 +/// 文档地址:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/deactivate +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2freferral_account%2fdeactivate +/// +public record PostHireV1ReferralAccountByReferralAccountIdDeactivateResponseDto +{ + /// + /// 账号信息 + /// 必填:否 + /// + [JsonProperty("account")] + public PostHireV1ReferralAccountByReferralAccountIdDeactivateResponseDtoAccount? Account { get; set; } + + /// + /// 账号信息 + /// + public record PostHireV1ReferralAccountByReferralAccountIdDeactivateResponseDtoAccount + { + /// + /// 账户ID + /// 必填:是 + /// 示例值:6942778198054125570 + /// + [JsonProperty("account_id")] + public string AccountId { get; set; } = string.Empty; + + /// + /// 账户资产 + /// 必填:否 + /// + [JsonProperty("assets")] + public PostHireV1ReferralAccountByReferralAccountIdDeactivateResponseDtoAccountAssets? Assets { get; set; } + + /// + /// 账户资产 + /// + public record PostHireV1ReferralAccountByReferralAccountIdDeactivateResponseDtoAccountAssets + { + /// + /// 已确认的奖励 + /// 必填:否 + /// + [JsonProperty("confirmed_bonus")] + public BonusAmount? ConfirmedBonus { get; set; } + + /// + /// 已确认的奖励 + /// + public record BonusAmount + { + /// + /// 积分奖励 + /// 必填:否 + /// 示例值:100 + /// + [JsonProperty("point_bonus")] + public int? PointBonus { get; set; } + } + } + + /// + /// 账号状态 + /// 必填:否 + /// 示例值:1 + /// 可选值: + /// 1:可用 + /// 2:停用 + /// + /// + [JsonProperty("status")] + public int? Status { get; set; } + } +} diff --git a/src/Hire/PostHireV1ReferralAccountByReferralAccountIdWithdrawBodyDto.cs b/src/Hire/PostHireV1ReferralAccountByReferralAccountIdWithdrawBodyDto.cs new file mode 100644 index 00000000..801a1155 --- /dev/null +++ b/src/Hire/PostHireV1ReferralAccountByReferralAccountIdWithdrawBodyDto.cs @@ -0,0 +1,26 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 全额提取内推账号余额 请求体 +/// 支持通过账号 ID 全额提取内推账号下的积分或现金奖励。调用前,请确认已完成[「注册外部系统内推账户」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/create)并获取到账号 ID。提现后,内推人的对应积分或现金余额将变为 0,扣减后对应奖励将在招聘系统同步标记为「已发放」 +/// 接口ID:7252281835550883842 +/// 文档地址:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/withdraw +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2freferral_account%2fwithdraw +/// +public record PostHireV1ReferralAccountByReferralAccountIdWithdrawBodyDto +{ + /// + /// 请求提现的奖励类型 + /// 必填:否 + /// + [JsonProperty("withdraw_bonus_type")] + public int[]? WithdrawBonusType { get; set; } + + /// + /// 提现单ID,请求时由请求方提供,后续关于本次提现操作的交互都以此提现单ID为标识进行,需要保证唯一,用于保证提现的幂等性,传入重复ID会返回对应提现单提取的金额明细 + /// 必填:否 + /// 示例值:6942778198054125570 + /// + [JsonProperty("external_order_id")] + public string? ExternalOrderId { get; set; } +} diff --git a/src/Hire/PostHireV1ReferralAccountByReferralAccountIdWithdrawResponseDto.cs b/src/Hire/PostHireV1ReferralAccountByReferralAccountIdWithdrawResponseDto.cs new file mode 100644 index 00000000..482cd516 --- /dev/null +++ b/src/Hire/PostHireV1ReferralAccountByReferralAccountIdWithdrawResponseDto.cs @@ -0,0 +1,48 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 全额提取内推账号余额 响应体 +/// 支持通过账号 ID 全额提取内推账号下的积分或现金奖励。调用前,请确认已完成[「注册外部系统内推账户」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/create)并获取到账号 ID。提现后,内推人的对应积分或现金余额将变为 0,扣减后对应奖励将在招聘系统同步标记为「已发放」 +/// 接口ID:7252281835550883842 +/// 文档地址:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/withdraw +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2freferral_account%2fwithdraw +/// +public record PostHireV1ReferralAccountByReferralAccountIdWithdrawResponseDto +{ + /// + /// 请求时传入的提现单ID + /// 必填:否 + /// 示例值:6942778198054125570 + /// + [JsonProperty("external_order_id")] + public string? ExternalOrderId { get; set; } + + /// + /// 交易时间戳,需要保存,用于统一交易时间,方便对账 + /// 必填:否 + /// 示例值:1683634459543 + /// + [JsonProperty("trans_time")] + public string? TransTime { get; set; } + + /// + /// 本次提现金额明细 + /// 必填:否 + /// + [JsonProperty("withdrawal_details")] + public BonusAmount? WithdrawalDetails { get; set; } + + /// + /// 本次提现金额明细 + /// + public record BonusAmount + { + /// + /// 积分奖励 + /// 必填:否 + /// 示例值:100 + /// + [JsonProperty("point_bonus")] + public int? PointBonus { get; set; } + } +} diff --git a/src/Hire/PostHireV1ReferralAccountReconciliationBodyDto.cs b/src/Hire/PostHireV1ReferralAccountReconciliationBodyDto.cs new file mode 100644 index 00000000..8acd8ecc --- /dev/null +++ b/src/Hire/PostHireV1ReferralAccountReconciliationBodyDto.cs @@ -0,0 +1,69 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 内推账号提现对账接口 请求体 +/// 定时将时间段内的账户充值信息同步到招聘,与招聘实际提取金额做对比,保证系统异常或其他意外情况发生时,双方系统可及时监控到充值异常等错误 +/// 接口ID:7252281835550900226 +/// 文档地址:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/reconciliation +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2freferral_account%2freconciliation +/// +public record PostHireV1ReferralAccountReconciliationBodyDto +{ + /// + /// 按时间范围进行对账时 时间段的起始交易时间 + /// 必填:否 + /// 示例值:1685416831621 + /// + [JsonProperty("start_trans_time")] + public string? StartTransTime { get; set; } + + /// + /// 按时间范围进行对账时 时间段的截止交易时间 + /// 必填:否 + /// 示例值:1685416831622 + /// + [JsonProperty("end_trans_time")] + public string? EndTransTime { get; set; } + + /// + /// 交易信息 + /// 必填:否 + /// + [JsonProperty("trade_details")] + public TradeDetail[]? TradeDetails { get; set; } + + /// + /// 交易信息 + /// + public record TradeDetail + { + /// + /// 账户ID + /// 必填:是 + /// 示例值:6930815272790114324 + /// + [JsonProperty("account_id")] + public string AccountId { get; set; } = string.Empty; + + /// + /// 时间段内该账户在积分商城的实际充值金额 + /// 必填:否 + /// + [JsonProperty("total_recharge_reward_info")] + public BonusAmount? TotalRechargeRewardInfo { get; set; } + + /// + /// 时间段内该账户在积分商城的实际充值金额 + /// + public record BonusAmount + { + /// + /// 积分奖励 + /// 必填:否 + /// 示例值:100 + /// + [JsonProperty("point_bonus")] + public int? PointBonus { get; set; } + } + } +} diff --git a/src/Hire/PostHireV1ReferralAccountReconciliationResponseDto.cs b/src/Hire/PostHireV1ReferralAccountReconciliationResponseDto.cs new file mode 100644 index 00000000..0e5a4522 --- /dev/null +++ b/src/Hire/PostHireV1ReferralAccountReconciliationResponseDto.cs @@ -0,0 +1,60 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 内推账号提现对账接口 响应体 +/// 定时将时间段内的账户充值信息同步到招聘,与招聘实际提取金额做对比,保证系统异常或其他意外情况发生时,双方系统可及时监控到充值异常等错误 +/// 接口ID:7252281835550900226 +/// 文档地址:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/reconciliation +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2freferral_account%2freconciliation +/// +public record PostHireV1ReferralAccountReconciliationResponseDto +{ + /// + /// 核对失败的信息 + /// 必填:否 + /// + [JsonProperty("check_failed_list")] + public CheckFailedAccountInfo[]? CheckFailedLists { get; set; } + + /// + /// 核对失败的信息 + /// + public record CheckFailedAccountInfo + { + /// + /// 账户ID + /// 必填:否 + /// 示例值:6930815272790114324 + /// + [JsonProperty("account_id")] + public string? AccountId { get; set; } + + /// + /// 招聘系统内的提取金额 + /// 必填:否 + /// + [JsonProperty("total_withdraw_reward_info")] + public BonusAmount? TotalWithdrawRewardInfo { get; set; } + + /// + /// 招聘系统内的提取金额 + /// + public record BonusAmount + { + /// + /// 积分奖励 + /// 必填:否 + /// 示例值:100 + /// + [JsonProperty("point_bonus")] + public int? PointBonus { get; set; } + } + + /// + /// 商城实际充值金额 + /// 必填:否 + /// + [JsonProperty("total_recharge_reward_info")] + public BonusAmount? TotalRechargeRewardInfo { get; set; } + } +} diff --git a/src/Hire/PostHireV1ReferralAccountResponseDto.cs b/src/Hire/PostHireV1ReferralAccountResponseDto.cs new file mode 100644 index 00000000..1e6beac8 --- /dev/null +++ b/src/Hire/PostHireV1ReferralAccountResponseDto.cs @@ -0,0 +1,78 @@ +using Newtonsoft.Json; +namespace FeishuNetSdk.Hire; +/// +/// 注册外部系统内推账户 响应体 +/// 支持通过内推人的手机号或邮箱注册「内推奖励账号」。注册后,可获取对应内推人的账号 ID,并查询、操作对应内推人的积分和奖励余额,配合接口:[「内推账户余额变更事件」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/events/assets_update)、[「全额提取内推账号余额」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/withdraw)。如需停用账户,可调用[「停用外部系统内推账户」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/deactivate) +/// 接口ID:7252281835550932994 +/// 文档地址:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/create +/// JSON地址:https://open.feishu.cn/document_portal/v1/document/get_detail?fullPath=%2fukTMukTMukTM%2fuMzM1YjLzMTN24yMzUjN%2fhire-v1%2freferral_account%2fcreate +/// +public record PostHireV1ReferralAccountResponseDto +{ + /// + /// 账号信息 + /// 必填:否 + /// + [JsonProperty("account")] + public PostHireV1ReferralAccountResponseDtoAccount? Account { get; set; } + + /// + /// 账号信息 + /// + public record PostHireV1ReferralAccountResponseDtoAccount + { + /// + /// 账户ID + /// 必填:是 + /// 示例值:6942778198054125570 + /// + [JsonProperty("account_id")] + public string AccountId { get; set; } = string.Empty; + + /// + /// 账户资产 + /// 必填:否 + /// + [JsonProperty("assets")] + public PostHireV1ReferralAccountResponseDtoAccountAssets? Assets { get; set; } + + /// + /// 账户资产 + /// + public record PostHireV1ReferralAccountResponseDtoAccountAssets + { + /// + /// 已确认的奖励 + /// 必填:否 + /// + [JsonProperty("confirmed_bonus")] + public BonusAmount? ConfirmedBonus { get; set; } + + /// + /// 已确认的奖励 + /// + public record BonusAmount + { + /// + /// 积分奖励 + /// 必填:否 + /// 示例值:100 + /// + [JsonProperty("point_bonus")] + public int? PointBonus { get; set; } + } + } + + /// + /// 账号状态 + /// 必填:否 + /// 示例值:1 + /// 可选值: + /// 1:可用 + /// 2:停用 + /// + /// + [JsonProperty("status")] + public int? Status { get; set; } + } +} diff --git a/src/IFeishuTenantApi.cs b/src/IFeishuTenantApi.cs index 95a02d8a..142556fc 100644 --- a/src/IFeishuTenantApi.cs +++ b/src/IFeishuTenantApi.cs @@ -20052,6 +20052,256 @@ System.Threading.Tasks.Task PatchHireV1EhrImportTasksByEhrImportTaskIdAsync( [PathQuery] int? page_size = 10, [PathQuery] string? page_token = null); + /// + /// 【招聘】创建账号自定义字段 + /// 接口ID:7195815979079581697 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_account_custom_field/create + /// Authorization:tenant_access_token + /// 定制用户在服务商处的身份标示字段(如用户在服务商处的租户 ID)。用户在飞书招聘后台添加帐号后,系统会推送「帐号绑定」事件给开发者,事件将携带用户填写的自定义字段信息,开发者可根据此信息识别飞书招聘用户在服务商处的身份信息,完成飞书招聘用户和服务商帐号的绑定,并以此来推送对应的套餐或试卷列表等。 可多次推送,多次推送为覆盖逻辑。 + /// + [HttpPost("/open-apis/hire/v1/eco_account_custom_fields")] + System.Threading.Tasks.Task PostHireV1EcoAccountCustomFieldsAsync( + [JsonNetContent] Hire.PostHireV1EcoAccountCustomFieldsBodyDto dto); + + /// + /// 【招聘】更新账号自定义字段 + /// 接口ID:7195815979079434241 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_account_custom_field/batch_update + /// Authorization:tenant_access_token + /// 更新用户在服务商处的身份标示字段(如用户在服务商处的租户 ID),此方法只会更新同一 scope 内 key 一致的自定义字段。 + /// + [HttpPatch("/open-apis/hire/v1/eco_account_custom_fields/batch_update")] + System.Threading.Tasks.Task PatchHireV1EcoAccountCustomFieldsBatchUpdateAsync( + [JsonNetContent] Hire.PatchHireV1EcoAccountCustomFieldsBatchUpdateBodyDto dto); + + /// + /// 【招聘】删除账号自定义字段 + /// 接口ID:7195815976042545154 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_account_custom_field/batch_delete + /// Authorization:tenant_access_token + /// 删除用户在服务商处的身份标示字段(如用户在服务商处的租户 ID)。删除后,不影响已添加帐号对应的自定义字段的值。但在添加新帐号时,将不能再使用此自定义字段。删除不支持撤销,对应的 key 将无法再次复用。 + /// + [HttpPost("/open-apis/hire/v1/eco_account_custom_fields/batch_delete")] + System.Threading.Tasks.Task PostHireV1EcoAccountCustomFieldsBatchDeleteAsync( + [JsonNetContent] Hire.PostHireV1EcoAccountCustomFieldsBatchDeleteBodyDto dto); + + /// + /// 【招聘】推送背调自定义字段 + /// 接口ID:7195815979079450625 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_background_check_custom_field/create + /// Authorization:tenant_access_token + /// 定制用户在发起背调时的自定义字段, 此接口为覆盖更新,多次调用时最后一次调用推送的自定义字段生效。 + /// + [HttpPost("/open-apis/hire/v1/eco_background_check_custom_fields")] + System.Threading.Tasks.Task PostHireV1EcoBackgroundCheckCustomFieldsAsync( + [JsonNetContent] Hire.PostHireV1EcoBackgroundCheckCustomFieldsBodyDto dto); + + /// + /// 【招聘】更新背调自定义字段 + /// 接口ID:7195815976042594306 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_background_check_custom_field/batch_update + /// Authorization:tenant_access_token + /// 更新用户在发起背调时的自定义字段。更新操作不支持更新自定义字段类型,只允许更新字段名称,且将影响已发起的背调表单展示。 + /// + [HttpPatch("/open-apis/hire/v1/eco_background_check_custom_fields/batch_update")] + System.Threading.Tasks.Task PatchHireV1EcoBackgroundCheckCustomFieldsBatchUpdateAsync( + [JsonNetContent] Hire.PatchHireV1EcoBackgroundCheckCustomFieldsBatchUpdateBodyDto dto); + + /// + /// 【招聘】删除背调自定义字段 + /// 接口ID:7195815979079565313 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_background_check_custom_field/batch_delete + /// Authorization:tenant_access_token + /// 删除用户在发起背调时的自定义字段,删除不影响已创建的背调,删除后对应的自定义字段的 key 不能再复用。 + /// + [HttpPost("/open-apis/hire/v1/eco_background_check_custom_fields/batch_delete")] + System.Threading.Tasks.Task PostHireV1EcoBackgroundCheckCustomFieldsBatchDeleteAsync( + [JsonNetContent] Hire.PostHireV1EcoBackgroundCheckCustomFieldsBatchDeleteBodyDto dto); + + /// + /// 【招聘】创建背调套餐和附加调查项 + /// 接口ID:7195815976042512386 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_background_check_package/create + /// Authorization:tenant_access_token + /// 定制指定帐号可用的背调套餐和附加调查项信息。 + /// + [HttpPost("/open-apis/hire/v1/eco_background_check_packages")] + System.Threading.Tasks.Task PostHireV1EcoBackgroundCheckPackagesAsync( + [JsonNetContent] Hire.PostHireV1EcoBackgroundCheckPackagesBodyDto dto); + + /// + /// 【招聘】更新背调套餐和附加调查项 + /// 接口ID:7195815979079548929 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_background_check_package/batch_update + /// Authorization:tenant_access_token + /// 更新帐号下指定背调套餐和附加调查项信息,更新将影响已发起背调的表单项展示。如需新增背调套餐、附加项需使用创建接口进行添加 + /// + [HttpPatch("/open-apis/hire/v1/eco_background_check_packages/batch_update")] + System.Threading.Tasks.Task PatchHireV1EcoBackgroundCheckPackagesBatchUpdateAsync( + [JsonNetContent] Hire.PatchHireV1EcoBackgroundCheckPackagesBatchUpdateBodyDto dto); + + /// + /// 【招聘】删除背调套餐和附加调查项 + /// 接口ID:7195815976042528770 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_background_check_package/batch_delete + /// Authorization:tenant_access_token + /// 删除指定帐号的指定背调套餐和附加调查项信息,删除不会影响已创建的背调。 + /// + [HttpPost("/open-apis/hire/v1/eco_background_check_packages/batch_delete")] + System.Threading.Tasks.Task PostHireV1EcoBackgroundCheckPackagesBatchDeleteAsync( + [JsonNetContent] Hire.PostHireV1EcoBackgroundCheckPackagesBatchDeleteBodyDto dto); + + /// + /// 【招聘】更新背调订单进度 + /// 接口ID:7195815979079483393 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_background_check/update_progress + /// Authorization:tenant_access_token + /// 更新指定背调的进展信息和阶段报告, 进度信息将会被展示在背调卡片上,用以推送背调进度、阶段报告。用以告知用户目前系统订单的流转状态。 当订单状态已完成时,将无法通过此接口更新阶段报告、更新进度事件信息。 + /// + [HttpPost("/open-apis/hire/v1/eco_background_checks/update_progress")] + System.Threading.Tasks.Task PostHireV1EcoBackgroundChecksUpdateProgressAsync( + [JsonNetContent] Hire.PostHireV1EcoBackgroundChecksUpdateProgressBodyDto dto); + + /// + /// 【招聘】回传背调订单的最终结果 + /// 接口ID:7195815979079499777 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_background_check/update_result + /// Authorization:tenant_access_token + /// 回传背调的最终结果,终版报告。 回传背调结果后,若租户未启用报告审批功能,则背调订单状态将会变成已完成。 若启用报告审批功能,则在管理员审批通过终版报告后,订单状态流转为已完成。 + /// + [HttpPost("/open-apis/hire/v1/eco_background_checks/update_result")] + System.Threading.Tasks.Task PostHireV1EcoBackgroundChecksUpdateResultAsync( + [JsonNetContent] Hire.PostHireV1EcoBackgroundChecksUpdateResultBodyDto dto); + + /// + /// 【招聘】终止背调订单 + /// 接口ID:7195815979079598081 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_background_check/cancel + /// Authorization:tenant_access_token + /// 调用此接口将会将系统订单状态变成已终止, 已终止订单将不会响应[「更新背调进度」](https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_background_check/update_progress)和[「回传背调订单的最终结果」](https://open.feishu.cn/document/server-docs/hire-v1/ecological-docking/eco_background_check/update_result)。 建议在回调终止背调订单之前,推送账号进度为「已终止」 + /// + [HttpPost("/open-apis/hire/v1/eco_background_checks/cancel")] + System.Threading.Tasks.Task PostHireV1EcoBackgroundChecksCancelAsync( + [JsonNetContent] Hire.PostHireV1EcoBackgroundChecksCancelBodyDto dto); + + /// + /// 【招聘】推送试卷列表 + /// 接口ID:7195815976042561538 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_exam_paper/create + /// Authorization:tenant_access_token + /// 定制指定帐号可用的试卷列表 + /// + [HttpPost("/open-apis/hire/v1/eco_exam_papers")] + System.Threading.Tasks.Task PostHireV1EcoExamPapersAsync( + [JsonNetContent] Hire.PostHireV1EcoExamPapersBodyDto dto); + + /// + /// 【招聘】更新试卷 + /// 接口ID:7195815979079532545 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_exam_paper/batch_update + /// Authorization:tenant_access_token + /// 更新指定帐号可用的试卷列表 + /// + [HttpPatch("/open-apis/hire/v1/eco_exam_papers/batch_update")] + System.Threading.Tasks.Task PatchHireV1EcoExamPapersBatchUpdateAsync( + [JsonNetContent] Hire.PatchHireV1EcoExamPapersBatchUpdateBodyDto dto); + + /// + /// 【招聘】删除试卷 + /// 接口ID:7195815976042577922 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_exam_paper/batch_delete + /// Authorization:tenant_access_token + /// 删除指定帐号的指定试卷列表,删除不影响已创建的笔试,删除不存在的试卷时不会报错 + /// + [HttpPost("/open-apis/hire/v1/eco_exam_papers/batch_delete")] + System.Threading.Tasks.Task PostHireV1EcoExamPapersBatchDeleteAsync( + [JsonNetContent] Hire.PostHireV1EcoExamPapersBatchDeleteBodyDto dto); + + /// + /// 【招聘】回传笔试安排结果 + /// 接口ID:7195815979079401473 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_exam/login_info + /// Authorization:tenant_access_token + /// 回传笔试安排结果,如果安排成功需返回笔试链接和登录凭证 + /// + /// + /// 必填:是 + /// exam id + /// + [HttpPost("/open-apis/hire/v1/eco_exams/{exam_id}/login_info")] + System.Threading.Tasks.Task PostHireV1EcoExamsByExamIdLoginInfoAsync( + [PathQuery] string exam_id, + [JsonNetContent] Hire.PostHireV1EcoExamsByExamIdLoginInfoBodyDto dto); + + /// + /// 【招聘】回传笔试结果 + /// 接口ID:7195815979079467009 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/eco_exam/update_result + /// Authorization:tenant_access_token + /// 回传笔试结果 + /// + /// + /// 必填:是 + /// exam id + /// + [HttpPost("/open-apis/hire/v1/eco_exams/{exam_id}/update_result")] + System.Threading.Tasks.Task PostHireV1EcoExamsByExamIdUpdateResultAsync( + [PathQuery] string exam_id, + [JsonNetContent] Hire.PostHireV1EcoExamsByExamIdUpdateResultBodyDto dto); + + /// + /// 【招聘】注册外部系统内推账户 + /// 接口ID:7252281835550932994 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/create + /// Authorization:tenant_access_token + /// 支持通过内推人的手机号或邮箱注册「内推奖励账号」。注册后,可获取对应内推人的账号 ID,并查询、操作对应内推人的积分和奖励余额,配合接口:[「内推账户余额变更事件」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/events/assets_update)、[「全额提取内推账号余额」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/withdraw)。如需停用账户,可调用[「停用外部系统内推账户」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/deactivate) + /// + [HttpPost("/open-apis/hire/v1/referral_account")] + System.Threading.Tasks.Task> PostHireV1ReferralAccountAsync( + [JsonNetContent] Hire.PostHireV1ReferralAccountBodyDto dto); + + /// + /// 【招聘】停用外部系统内推账户 + /// 接口ID:7252281835550867458 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/deactivate + /// Authorization:tenant_access_token + /// 停用后,对应的内推账号信息将无法通过接口[「内推账户余额变更事件」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/events/assets_update)、[「提取内推账号余额」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/withdraw)获取、修改 + /// + /// + /// 必填:是 + /// 账户ID + /// + [HttpPost("/open-apis/hire/v1/referral_account/{referral_account_id}/deactivate")] + System.Threading.Tasks.Task> PostHireV1ReferralAccountByReferralAccountIdDeactivateAsync( + [PathQuery] string referral_account_id); + + /// + /// 【招聘】全额提取内推账号余额 + /// 接口ID:7252281835550883842 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/withdraw + /// Authorization:tenant_access_token + /// 支持通过账号 ID 全额提取内推账号下的积分或现金奖励。调用前,请确认已完成[「注册外部系统内推账户」](https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/create)并获取到账号 ID。提现后,内推人的对应积分或现金余额将变为 0,扣减后对应奖励将在招聘系统同步标记为「已发放」 + /// + /// + /// 必填:是 + /// 账户ID + /// + [HttpPost("/open-apis/hire/v1/referral_account/{referral_account_id}/withdraw")] + System.Threading.Tasks.Task> PostHireV1ReferralAccountByReferralAccountIdWithdrawAsync( + [PathQuery] string referral_account_id, + [JsonNetContent] Hire.PostHireV1ReferralAccountByReferralAccountIdWithdrawBodyDto dto); + + /// + /// 【招聘】内推账号提现对账接口 + /// 接口ID:7252281835550900226 + /// 接口文档:https://open.feishu.cn/document/ukTMukTMukTM/uMzM1YjLzMTN24yMzUjN/hire-v1/referral_account/reconciliation + /// Authorization:tenant_access_token + /// 定时将时间段内的账户充值信息同步到招聘,与招聘实际提取金额做对比,保证系统异常或其他意外情况发生时,双方系统可及时监控到充值异常等错误 + /// + [HttpPost("/open-apis/hire/v1/referral_account/reconciliation")] + System.Threading.Tasks.Task> PostHireV1ReferralAccountReconciliationAsync( + [JsonNetContent] Hire.PostHireV1ReferralAccountReconciliationBodyDto dto); + /// /// 【招聘】获取附件信息 /// 接口ID:6964286393804898332 @@ -20935,6 +21185,17 @@ System.Threading.Tasks.Task GetAcsV1AccessRecordsByAccessRe System.Threading.Tasks.Task> PostLingoV1EntitiesExtractAsync( [JsonNetContent] Baike.PostLingoV1EntitiesExtractBodyDto dto); + /// + /// 【飞书词典】批量高亮 + /// 接口ID:7293809202833342492 + /// 接口文档:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/lingo-v1/entity/batch_highlight + /// Authorization:tenant_access_token、user_access_token + /// 通过这个接口,可以传入一段文本,获取这段文本中所有词条的 ID + /// + [HttpPost("/open-apis/lingo/v1/entities/batch_highlight")] + System.Threading.Tasks.Task> PostLingoV1EntitiesBatchHighlightAsync( + [JsonNetContent] Baike.PostLingoV1EntitiesBatchHighlightBodyDto dto); + /// /// 【飞书词典】获取词典分类 /// 接口ID:7249689905697161244 diff --git a/test/FeishuNetSdk.Tests/UnitTest1.cs b/test/FeishuNetSdk.Tests/UnitTest1.cs index dadef804..56e7fe16 100644 --- a/test/FeishuNetSdk.Tests/UnitTest1.cs +++ b/test/FeishuNetSdk.Tests/UnitTest1.cs @@ -21,7 +21,7 @@ public void TestMethod1() { var m1 = HttpApi.FindApiMethods(typeof(IFeishuTenantApi)); - Assert.IsTrue(m1.Length == 947); + Assert.IsTrue(m1.Length == 969); } [TestMethod]