diff --git a/src/types.ts b/src/types.ts index 489aa1ce2..b19cf1fc2 100644 --- a/src/types.ts +++ b/src/types.ts @@ -162,7 +162,7 @@ export type FlagReport< message: MessageResponse; user: UserResponse; created_at?: string; - review_details?: Object; + details?: Object; review_result?: string; reviewed_at?: string; reviewed_by?: UserResponse; @@ -1089,11 +1089,13 @@ export type MessageFlagsFilters = QueryFilters< >; export type FlagReportsFiltersOptions = { + channel_cid?: string; is_reviewed?: boolean; message_id?: string; report_id?: string; review_result?: string; reviewed_by?: string; + team?: string; user_id?: string; }; @@ -1118,6 +1120,14 @@ export type FlagReportsFilters = QueryFilters< message_id?: | RequireOnlyOne, '$eq' | '$in'>> | PrimitiveFilter; + } & { + channel_cid?: + | RequireOnlyOne, '$eq' | '$in'>> + | PrimitiveFilter; + } & { + team?: + | RequireOnlyOne, '$eq' | '$in'>> + | PrimitiveFilter; } & { [Key in keyof Omit< FlagReportsFiltersOptions,