From d3ac25124919fefaf209cb04c23d7bddd784650a Mon Sep 17 00:00:00 2001
From: "Vicente.Yu" <^@^>
Date: Mon, 3 Jun 2024 17:19:26 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=A3=9E=E4=B9=A6=E4=BA=BA=E4=BA=8B?=
=?UTF-8?q?=E3=80=91=20=E5=8F=98=E6=9B=B4=20-=20=E6=89=B9=E9=87=8F?=
=?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=91=98=E5=B7=A5=E5=81=87=E6=9C=9F=E4=BD=99?=
=?UTF-8?q?=E9=A2=9D=20-=20=E6=89=B9=E9=87=8F=E6=9F=A5=E8=AF=A2=E5=91=98?=
=?UTF-8?q?=E5=B7=A5=E8=AF=B7=E5=81=87=E8=AE=B0=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...tCorehrV1LeavesLeaveBalancesResponseDto.cs | 3 +-
...rV1LeavesLeaveRequestHistoryResponseDto.cs | 147 +++++++++++++++++-
...stCorehrV1OffboardingsSubmitResponseDto.cs | 6 +-
...GetHelpdeskV1AgentSkillRulesResponseDto.cs | 2 +-
src/IFeishuTenantApi.cs | 74 ++++++++-
src/Im/PostImV2AppFeedCardBodyDto.cs | 6 +-
src/Im/PutImV2AppFeedCardBatchBodyDto.cs | 6 +-
src/Im/PutImV2ChatButtonBodyDto.cs | 4 +-
8 files changed, 232 insertions(+), 16 deletions(-)
diff --git a/src/FeishuPeople/GetCorehrV1LeavesLeaveBalancesResponseDto.cs b/src/FeishuPeople/GetCorehrV1LeavesLeaveBalancesResponseDto.cs
index 6be56a40..a42fcf7c 100644
--- a/src/FeishuPeople/GetCorehrV1LeavesLeaveBalancesResponseDto.cs
+++ b/src/FeishuPeople/GetCorehrV1LeavesLeaveBalancesResponseDto.cs
@@ -11,6 +11,7 @@ public record GetCorehrV1LeavesLeaveBalancesResponseDto
///
/// 员工假期余额信息列表
/// 必填:否
+ /// 示例值:0
///
[JsonPropertyName("employment_leave_balance_list")]
public EmploymentLeaveBalance[]? EmploymentLeaveBalanceLists { get; set; }
@@ -170,7 +171,7 @@ public record I18n
///
/// 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token
/// 必填:否
- /// 示例值:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
+ /// 示例值:{\"eu_nc\":\"[\\\"6994333322503669260\\\"]\"}
///
[JsonPropertyName("page_token")]
public string? PageToken { get; set; }
diff --git a/src/FeishuPeople/GetCorehrV1LeavesLeaveRequestHistoryResponseDto.cs b/src/FeishuPeople/GetCorehrV1LeavesLeaveRequestHistoryResponseDto.cs
index 5d33a41f..f55ab24f 100644
--- a/src/FeishuPeople/GetCorehrV1LeavesLeaveRequestHistoryResponseDto.cs
+++ b/src/FeishuPeople/GetCorehrV1LeavesLeaveRequestHistoryResponseDto.cs
@@ -179,6 +179,151 @@ public record I18n
///
[JsonPropertyName("notes")]
public string Notes { get; set; } = string.Empty;
+
+ ///
+ /// 审批通过日期
+ /// 必填:否
+ /// 示例值:2022-09-09
+ ///
+ [JsonPropertyName("approval_date")]
+ public string? ApprovalDate { get; set; }
+
+ ///
+ /// 是否带薪
+ /// 必填:否
+ /// 示例值:false
+ ///
+ [JsonPropertyName("is_deducted")]
+ public bool? IsDeducted { get; set; }
+
+ ///
+ /// 请假详情
+ /// 必填:否
+ ///
+ [JsonPropertyName("details")]
+ public LeaveRequestDetail[]? Details { get; set; }
+
+ ///
+ /// 请假详情
+ ///
+ public record LeaveRequestDetail
+ {
+ ///
+ /// 请假记录id
+ /// 必填:是
+ /// 示例值:4718803945687580505
+ ///
+ [JsonPropertyName("leave_request_id")]
+ public string LeaveRequestId { get; set; } = string.Empty;
+
+ ///
+ /// 假期发生日期
+ /// 必填:是
+ /// 示例值:2022-07-07
+ ///
+ [JsonPropertyName("leave_date")]
+ public string LeaveDate { get; set; } = string.Empty;
+
+ ///
+ /// 假期时长
+ /// 必填:是
+ /// 示例值:1
+ ///
+ [JsonPropertyName("leave_duration")]
+ public string LeaveDuration { get; set; } = string.Empty;
+
+ ///
+ /// 假期时长单位,1:天,2:小时
+ /// 必填:是
+ /// 示例值:1
+ ///
+ [JsonPropertyName("leave_duration_unit")]
+ public int LeaveDurationUnit { get; set; }
+
+ ///
+ /// 是否影响算薪,1:不参与算薪计算, 非对应的日期类型或者无对应的假期计划,2:影响算薪,3:不影响算薪
+ /// 必填:是
+ /// 示例值:1
+ ///
+ [JsonPropertyName("paid_type")]
+ public int PaidType { get; set; }
+ }
+
+ ///
+ /// 假期类型枚举
+ /// 必填:否
+ /// 示例值:Annual Leave
+ ///
+ [JsonPropertyName("leave_type_code")]
+ public string? LeaveTypeCode { get; set; }
+
+ ///
+ /// 实际结束日期
+ /// 必填:否
+ /// 示例值:2022-08-02
+ ///
+ [JsonPropertyName("actual_end_date")]
+ public string? ActualEndDate { get; set; }
+
+ ///
+ /// 预估结束日期
+ /// 必填:否
+ /// 示例值:2022-08-02
+ ///
+ [JsonPropertyName("estimated_end_date")]
+ public string? EstimatedEndDate { get; set; }
+
+ ///
+ /// 时区
+ /// 必填:否
+ /// 示例值:Asia/Shanghai
+ ///
+ [JsonPropertyName("time_zone")]
+ public string? TimeZone { get; set; }
+
+ ///
+ /// 请假记录数据来源
+ /// 必填:否
+ /// 示例值:1
+ ///
+ [JsonPropertyName("data_source")]
+ public int? DataSource { get; set; }
+
+ ///
+ /// 请假申请流程ID
+ /// 必填:否
+ ///
+ [JsonPropertyName("leave_process_id")]
+ public string[]? LeaveProcessId { get; set; }
+
+ ///
+ /// 请假更正流程ID
+ /// 必填:否
+ ///
+ [JsonPropertyName("leave_correct_process_id")]
+ public string[]? LeaveCorrectProcessId { get; set; }
+
+ ///
+ /// 请假取消流程ID
+ /// 必填:否
+ ///
+ [JsonPropertyName("leave_cancel_process_id")]
+ public string[]? LeaveCancelProcessId { get; set; }
+
+ ///
+ /// 请假返岗流程ID
+ /// 必填:否
+ ///
+ [JsonPropertyName("leave_return_process_id")]
+ public string[]? LeaveReturnProcessId { get; set; }
+
+ ///
+ /// workDay算薪类型
+ /// 必填:否
+ /// 示例值:1
+ ///
+ [JsonPropertyName("wd_paid_type")]
+ public int? WdPaidType { get; set; }
}
///
@@ -192,7 +337,7 @@ public record I18n
///
/// 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token
/// 必填:否
- /// 示例值:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
+ /// 示例值:[1712932008000,\"7356863257632491046\"]
///
[JsonPropertyName("page_token")]
public string? PageToken { get; set; }
diff --git a/src/FeishuPeople/PostCorehrV1OffboardingsSubmitResponseDto.cs b/src/FeishuPeople/PostCorehrV1OffboardingsSubmitResponseDto.cs
index e8d1de33..706cf05a 100644
--- a/src/FeishuPeople/PostCorehrV1OffboardingsSubmitResponseDto.cs
+++ b/src/FeishuPeople/PostCorehrV1OffboardingsSubmitResponseDto.cs
@@ -54,7 +54,7 @@ public record PostCorehrV1OffboardingsSubmitResponseDto
/// 示例值:false
///
[JsonPropertyName("add_block_list")]
- public string? AddBlockList { get; set; }
+ public bool? AddBlockList { get; set; }
///
/// 屏蔽原因
@@ -67,7 +67,7 @@ public record PostCorehrV1OffboardingsSubmitResponseDto
///
/// 屏蔽原因说明
/// 必填:否
- /// 示例值:xx年xx月xx日因xx原因红线
+ /// 示例值:xx 年 xx 月 xx 日因 xx 原因红线
///
[JsonPropertyName("block_reason_explanation")]
public string? BlockReasonExplanation { get; set; }
@@ -75,7 +75,7 @@ public record PostCorehrV1OffboardingsSubmitResponseDto
///
/// 创建时间
/// 必填:否
- /// 示例值:2022-05-0917:50:17
+ /// 示例值:2022-05-09 17:50:17
///
[JsonPropertyName("created_time")]
public string? CreatedTime { get; set; }
diff --git a/src/Helpdesk/GetHelpdeskV1AgentSkillRulesResponseDto.cs b/src/Helpdesk/GetHelpdeskV1AgentSkillRulesResponseDto.cs
index df533574..1861183b 100644
--- a/src/Helpdesk/GetHelpdeskV1AgentSkillRulesResponseDto.cs
+++ b/src/Helpdesk/GetHelpdeskV1AgentSkillRulesResponseDto.cs
@@ -36,7 +36,7 @@ public record AgentSkillRule
public int[]? OperatorOptions { get; set; }
///
- /// rule 操作数的值
+ /// rule 操作数的值。该参数类型为泛型,会指向多类型。
/// 必填:否
/// 示例值:{\"selected_departments\":[{\"id\":\"部门ID\",\"name\":\"IT\"}]}
///
diff --git a/src/IFeishuTenantApi.cs b/src/IFeishuTenantApi.cs
index bfcda3bf..a09699e7 100644
--- a/src/IFeishuTenantApi.cs
+++ b/src/IFeishuTenantApi.cs
@@ -20974,13 +20974,20 @@ System.Threading.Tasks.Task PostContactV3UsersByUserIdResurrectA
///
/// 默认值:people_corehr_id
///
+ ///
+ /// 必填:否
+ /// 查询时区
+ /// 示例值:Asia/Shanghai
+ /// 默认值:null
+ ///
[HttpGet("/open-apis/corehr/v1/leaves/leave_balances")]
System.Threading.Tasks.Task> GetCorehrV1LeavesLeaveBalancesAsync(
[PathQuery] string? page_token = null,
[PathQuery] int page_size = 10,
[PathQuery] string? as_of_date = null,
[PathQuery] string[]? employment_id_list = null,
- [PathQuery] string? user_id_type = "people_corehr_id");
+ [PathQuery] string? user_id_type = "people_corehr_id",
+ [PathQuery] string? time_zone = null);
///
/// 【飞书人事】获取假期类型列表
@@ -21142,6 +21149,60 @@ System.Threading.Tasks.Task PostContactV3UsersByUserIdResurrectA
/// 示例值:2022-10-24 10:00:00
/// 默认值:null
///
+ ///
+ /// 必填:否
+ /// 是否返回请假详情,若为true,将在每条请假记录的details字段返回请假详情
+ /// 示例值:false
+ /// 默认值:false
+ ///
+ ///
+ /// 必填:否
+ /// 指定过滤长/短假类型,0表示不过滤,1表示仅获取短假,2表示仅获取长假, 默认0
+ /// 示例值:1
+ /// 默认值:0
+ ///
+ ///
+ /// 必填:否
+ /// 请假记录所在时区
+ /// 示例值:Asia/Shanghai
+ /// 默认值:null
+ ///
+ ///
+ /// 必填:否
+ /// 请假记录数据源,1表示中国大陆休假,2表示海外休假,不传或0表示不过滤
+ /// 示例值:1
+ /// 默认值:null
+ ///
+ ///
+ /// 必填:否
+ /// 请假记录DB更新时间晚于等于的时间
+ /// 示例值:2022-10-24 10:00:00
+ /// 默认值:null
+ ///
+ ///
+ /// 必填:否
+ /// 请假记录DB更新时间早于等于的时间
+ /// 示例值:2022-10-24 10:00:00
+ /// 默认值:null
+ ///
+ ///
+ /// 必填:否
+ /// WorkDay专用 是否返回0值的请假记录,若为true,将返回0值的请假记录
+ /// 示例值:false
+ /// 默认值:false
+ ///
+ ///
+ /// 必填:否
+ /// WorkDay专用 是否拒绝和取消的请假记录,若为true,将返回拒绝和取消的请假记录
+ /// 示例值:false
+ /// 默认值:false
+ ///
+ ///
+ /// 必填:否
+ /// WorkDay专用 扣薪类型, 1不参与算薪 2影响算薪 3不影响算薪
+ /// 示例值:1
+ /// 默认值:null
+ ///
[HttpGet("/open-apis/corehr/v1/leaves/leave_request_history")]
System.Threading.Tasks.Task> GetCorehrV1LeavesLeaveRequestHistoryAsync(
[PathQuery] string? page_token = null,
@@ -21158,7 +21219,16 @@ System.Threading.Tasks.Task PostContactV3UsersByUserIdResurrectA
[PathQuery] string? leave_submit_date_max = null,
[PathQuery] string? user_id_type = "people_corehr_id",
[PathQuery] string? leave_update_time_min = null,
- [PathQuery] string? leave_update_time_max = null);
+ [PathQuery] string? leave_update_time_max = null,
+ [PathQuery] bool? return_detail = false,
+ [PathQuery] int? leave_term_type = 0,
+ [PathQuery] string? time_zone = null,
+ [PathQuery] int? data_source = null,
+ [PathQuery] string? db_update_time_min = null,
+ [PathQuery] string? db_update_time_max = null,
+ [PathQuery] bool? wd_need_amount_zero_records = false,
+ [PathQuery] bool? wd_need_denied_and_canceled_record = false,
+ [PathQuery] int? wd_paid_type = null);
///
/// 【飞书人事】删除假期发放记录
diff --git a/src/Im/PostImV2AppFeedCardBodyDto.cs b/src/Im/PostImV2AppFeedCardBodyDto.cs
index 2ab40e7f..352394fd 100644
--- a/src/Im/PostImV2AppFeedCardBodyDto.cs
+++ b/src/Im/PostImV2AppFeedCardBodyDto.cs
@@ -125,14 +125,14 @@ public record OpenAppFeedCardButtons
public record OpenAppFeedCardButton
{
///
- /// 跳转 URL
+ /// 跳转 URL(仅支持 https 协议)
/// 必填:否
///
[JsonPropertyName("multi_url")]
public OpenAppFeedCardUrl? MultiUrl { get; set; }
///
- /// 跳转 URL
+ /// 跳转 URL(仅支持 https 协议)
///
public record OpenAppFeedCardUrl
{
@@ -245,7 +245,7 @@ public record OpenAppFeedCardText
public record OpenAppFeedLink
{
///
- /// 链接
+ /// 链接(仅支持 https 协议)
/// 必填:否
/// 示例值:https://www.feishu.cn/
/// 最大长度:700
diff --git a/src/Im/PutImV2AppFeedCardBatchBodyDto.cs b/src/Im/PutImV2AppFeedCardBatchBodyDto.cs
index 38d1db9a..a2017d31 100644
--- a/src/Im/PutImV2AppFeedCardBatchBodyDto.cs
+++ b/src/Im/PutImV2AppFeedCardBatchBodyDto.cs
@@ -139,14 +139,14 @@ public record OpenAppFeedCardButtons
public record OpenAppFeedCardButton
{
///
- /// 跳转 URL
+ /// 跳转 URL(仅支持 https 协议)
/// 必填:否
///
[JsonPropertyName("multi_url")]
public OpenAppFeedCardUrl? MultiUrl { get; set; }
///
- /// 跳转 URL
+ /// 跳转 URL(仅支持 https 协议)
///
public record OpenAppFeedCardUrl
{
@@ -259,7 +259,7 @@ public record OpenAppFeedCardText
public record OpenAppFeedLink
{
///
- /// 链接
+ /// 链接(仅支持 https 协议)
/// 必填:否
/// 示例值:https://www.feishu.cn/
/// 最大长度:700
diff --git a/src/Im/PutImV2ChatButtonBodyDto.cs b/src/Im/PutImV2ChatButtonBodyDto.cs
index e09710b4..097b0150 100644
--- a/src/Im/PutImV2ChatButtonBodyDto.cs
+++ b/src/Im/PutImV2ChatButtonBodyDto.cs
@@ -58,14 +58,14 @@ public record OpenAppFeedCardButtons
public record OpenAppFeedCardButton
{
///
- /// 跳转 URL
+ /// 跳转 URL(仅支持 https 协议)
/// 必填:否
///
[JsonPropertyName("multi_url")]
public OpenAppFeedCardUrl? MultiUrl { get; set; }
///
- /// 跳转 URL
+ /// 跳转 URL(仅支持 https 协议)
///
public record OpenAppFeedCardUrl
{