From 0c854d2d3a48f40f1c961a29a204d95523015562 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 2 Dec 2024 16:33:45 -0500 Subject: [PATCH] Forgot to remove list report actions. --- crates/api_common/src/reports/comment.rs | 28 ------------------- crates/api_common/src/reports/post.rs | 28 ------------------- .../api_common/src/reports/private_message.rs | 23 --------------- 3 files changed, 79 deletions(-) diff --git a/crates/api_common/src/reports/comment.rs b/crates/api_common/src/reports/comment.rs index 4324079e5..6e0426752 100644 --- a/crates/api_common/src/reports/comment.rs +++ b/crates/api_common/src/reports/comment.rs @@ -30,31 +30,3 @@ pub struct ResolveCommentReport { pub report_id: CommentReportId, pub resolved: bool, } - -#[skip_serializing_none] -#[derive(Debug, Serialize, Deserialize, Clone, Copy, Default, PartialEq, Eq, Hash)] -#[cfg_attr(feature = "full", derive(TS))] -#[cfg_attr(feature = "full", ts(export))] -/// List comment reports. -pub struct ListCommentReports { - #[cfg_attr(feature = "full", ts(optional))] - pub comment_id: Option, - #[cfg_attr(feature = "full", ts(optional))] - pub page: Option, - #[cfg_attr(feature = "full", ts(optional))] - pub limit: Option, - /// Only shows the unresolved reports - #[cfg_attr(feature = "full", ts(optional))] - pub unresolved_only: Option, - /// if no community is given, it returns reports for all communities moderated by the auth user - #[cfg_attr(feature = "full", ts(optional))] - pub community_id: Option, -} - -#[derive(Debug, Serialize, Deserialize, Clone)] -#[cfg_attr(feature = "full", derive(TS))] -#[cfg_attr(feature = "full", ts(export))] -/// The comment report list response. -pub struct ListCommentReportsResponse { - pub comment_reports: Vec, -} diff --git a/crates/api_common/src/reports/post.rs b/crates/api_common/src/reports/post.rs index 1ed62252c..8a935babf 100644 --- a/crates/api_common/src/reports/post.rs +++ b/crates/api_common/src/reports/post.rs @@ -30,31 +30,3 @@ pub struct ResolvePostReport { pub report_id: PostReportId, pub resolved: bool, } - -#[skip_serializing_none] -#[derive(Debug, Serialize, Deserialize, Clone, Copy, Default, PartialEq, Eq, Hash)] -#[cfg_attr(feature = "full", derive(TS))] -#[cfg_attr(feature = "full", ts(export))] -/// List post reports. -pub struct ListPostReports { - #[cfg_attr(feature = "full", ts(optional))] - pub page: Option, - #[cfg_attr(feature = "full", ts(optional))] - pub limit: Option, - /// Only shows the unresolved reports - #[cfg_attr(feature = "full", ts(optional))] - pub unresolved_only: Option, - /// if no community is given, it returns reports for all communities moderated by the auth user - #[cfg_attr(feature = "full", ts(optional))] - pub community_id: Option, - #[cfg_attr(feature = "full", ts(optional))] - pub post_id: Option, -} - -#[derive(Debug, Serialize, Deserialize, Clone)] -#[cfg_attr(feature = "full", derive(TS))] -#[cfg_attr(feature = "full", ts(export))] -/// The post reports response. -pub struct ListPostReportsResponse { - pub post_reports: Vec, -} diff --git a/crates/api_common/src/reports/private_message.rs b/crates/api_common/src/reports/private_message.rs index 22cd4f975..6d1467b63 100644 --- a/crates/api_common/src/reports/private_message.rs +++ b/crates/api_common/src/reports/private_message.rs @@ -30,26 +30,3 @@ pub struct ResolvePrivateMessageReport { pub report_id: PrivateMessageReportId, pub resolved: bool, } - -#[skip_serializing_none] -#[derive(Debug, Serialize, Deserialize, Clone, Copy, Default, PartialEq, Eq, Hash)] -#[cfg_attr(feature = "full", derive(TS))] -#[cfg_attr(feature = "full", ts(export))] -/// List private message reports. -pub struct ListPrivateMessageReports { - #[cfg_attr(feature = "full", ts(optional))] - pub page: Option, - #[cfg_attr(feature = "full", ts(optional))] - pub limit: Option, - /// Only shows the unresolved reports - #[cfg_attr(feature = "full", ts(optional))] - pub unresolved_only: Option, -} - -#[derive(Debug, Serialize, Deserialize, Clone)] -#[cfg_attr(feature = "full", derive(TS))] -#[cfg_attr(feature = "full", ts(export))] -/// The response for list private message reports. -pub struct ListPrivateMessageReportsResponse { - pub private_message_reports: Vec, -}