@a11ywatch/core
Version:
a11ywatch central API
29 lines (28 loc) • 1 kB
TypeScript
export declare const IssuesController: ({ user }?: {
user: any;
}) => {
getCollection: import("mongodb").Collection<import("bson").Document>;
getIssue: ({ url, pageUrl, userId, noRetries }: any, chain?: boolean) => Promise<any>;
getIssues: ({ userId, domain, pageUrl, }: {
userId: number;
domain?: string;
pageUrl?: string;
}, limit?: number) => Promise<import("mongodb").WithId<import("bson").Document>[]>;
getIssuesPaging: (params: any) => Promise<import("../../../types/schema").Issue[]>;
addIssue: ({ userId, url, issue }: any) => Promise<{
code: number;
success: boolean;
message: string;
}>;
removeIssue: ({ userId, url, deleteMany, }: {
userId?: number;
url?: string;
deleteMany?: boolean;
}) => Promise<any>;
updateIssues: ({ userId, url, issuesCount, issues }: {
userId: any;
url: any;
issuesCount: any;
issues: any;
}) => Promise<any>;
};