strapi-plugin-comments
Version:
57 lines (56 loc) • 2.09 kB
TypeScript
export declare const useReports: (queryParams?: Record<string, string>) => import("@tanstack/react-query").DefinedUseQueryResult<{
pagination: {
page: number;
pageSize: number;
pageCount: number;
total: number;
};
result: {
id: number;
createdAt: string;
updatedAt: string | null;
content: string;
reports: unknown[];
related: {
id: number;
createdAt: string;
updatedAt: string;
content: string;
blocked: boolean | null;
blockedThread: boolean | null;
blockReason: string | null;
isAdminComment: boolean | null;
removed: boolean | null;
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
reports?: {
resolved: boolean;
id: number;
createdAt: string;
updatedAt: string | null;
content: string;
reason?: string | null | undefined;
}[] | null | undefined;
author?: {
email?: string | null | undefined;
id?: string | number | null | undefined;
name?: string | null | undefined;
avatar?: string | {
url: string;
} | {
url: string;
formats: {
thumbnail: {
url: string;
} | null;
};
} | null | undefined;
} | null | undefined;
gotThread?: boolean | null | undefined;
threadFirstItemId?: number | null | undefined;
};
resolved?: boolean | undefined;
reason?: string | null | undefined;
approvalStatus?: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null | undefined;
author?: unknown;
}[];
}, Error>;