Skip to content

Commit

Permalink
fix: add missing types for review queue filter (#1449)
Browse files Browse the repository at this point in the history
Co-authored-by: Vishal Narkhede <[email protected]>
  • Loading branch information
varbhat and vishalnarkhede authored Jan 29, 2025
1 parent 21c78e3 commit b2a01bf
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3568,6 +3568,14 @@ export type ReviewQueueFilters = QueryFilters<
has_text?: boolean;
} & {
has_video?: boolean;
} & {
has_media?: boolean;
} & {
language?: RequireOnlyOne<{
$contains?: string;
$eq?: string;
$in?: string[];
}>;
} & {
teams?:
| RequireOnlyOne<{
Expand All @@ -3576,6 +3584,39 @@ export type ReviewQueueFilters = QueryFilters<
$in?: PrimitiveFilter<string>;
}>
| PrimitiveFilter<string>;
} & {
user_report_reason?: RequireOnlyOne<{
$eq?: string;
}>;
} & {
recommended_action?: RequireOnlyOne<{
$eq?: string;
}>;
} & {
flagged_user_id?: RequireOnlyOne<{
$eq?: string;
}>;
} & {
category?: RequireOnlyOne<{
$eq?: string;
}>;
} & {
label?: RequireOnlyOne<{
$eq?: string;
}>;
} & {
reporter_type?: RequireOnlyOne<{
$eq?: 'automod' | 'user' | 'moderator' | 'admin' | 'velocity_filter';
}>;
} & {
reporter_id?: RequireOnlyOne<{
$eq?: string;
$in?: string[];
}>;
} & {
date_range?: RequireOnlyOne<{
$eq?: string; // Format: "date1_date2"
}>;
}
>;

Expand Down

0 comments on commit b2a01bf

Please sign in to comment.