UNPKG

@a11ywatch/core

Version:
191 lines (190 loc) 5.95 kB
import { login, register, logout } from "./graph/mutations"; export declare const Mutation: { updateUser: (_: any, { email, password, newPassword }: { email: any; password: any; newPassword: any; }, context: any) => Promise<any>; login: typeof login; register: typeof register; logout: typeof logout; addWebsite: (_: any, { url, customHeaders, pageInsights, mobile, ua, standard, actions, robots, subdomains, tld, ignore, rules, runners, proxy, sitemap, monitoringEnabled, ...props }: { [x: string]: any; url: any; customHeaders: any; pageInsights: any; mobile: any; ua: any; standard: any; actions: any; robots: any; subdomains: any; tld: any; ignore: any; rules: any; runners: any; proxy: any; sitemap: any; monitoringEnabled: any; }, context: any) => Promise<{ website: { actions: any; userId: any; url: string; domain: string; pageInsights: boolean; pageHeaders: any[]; pageLoadTime: { duration: number; durationFormated: string; color: string; }; lastScanDate: string; online: boolean; ua: string; mobile: boolean; standard: string; actionsEnabled: boolean; monitoringEnabled: boolean; robots: boolean; subdomains: boolean; tld: boolean; order: number; verified: boolean; verificationCode: string; ignore: any[]; rules: any[]; runners: any[]; proxy: string; }; code: number; success: boolean; message: string; }>; crawlWebsite: (_: any, { url }: { url: any; }, context: any) => Promise<{ website: any; code: number; success: boolean; message: string; }>; scanWebsite: (parent: any, args: any, context: any, info: any) => Promise<any>; removeWebsite: (_: any, { url, deleteMany }: { url: any; deleteMany?: boolean; }, context: any) => Promise<{ code: number; success: boolean; message: string; website?: undefined; } | { website: import("../types/schema").Website; code: number; success: boolean; message: string; } | { url: string; id: number; code: number; success: boolean; message: string; website?: undefined; } | { url: string; id: number; website: import("../types/schema").Website; code: number; success: boolean; message: string; }>; updateWebsite: (_: any, { userId, url, customHeaders, pageInsights, mobile, standard, ua, robots, subdomains, tld, ignore, rules, runners, proxy, sitemap, monitoringEnabled, }: { userId: any; url: any; customHeaders: any; pageInsights: any; mobile: any; standard: any; ua: any; robots: any; subdomains: any; tld: any; ignore: any; rules: any; runners: any; proxy: any; sitemap: any; monitoringEnabled: any; }, context: any) => Promise<{ website: { actions: Record<string, unknown>[]; actionsEnabled: boolean; robots: boolean; pageHeaders: import("../types/schema").PageHeaders[]; pageInsights: boolean; mobile: boolean; standard: string; ua: string; subdomains: boolean; tld: boolean; ignore: string[]; rules: string[]; runners: string[]; proxy: string; sitemap: boolean; monitoringEnabled: boolean; __typename?: "Website"; id?: string; url?: string; user?: import("../types/schema").User; userId?: number; domain?: string; pageLoadTime?: import("../types/schema").PageLoadTimeMeta; issuesInfo?: import("../types/schema").IssueMeta; pages?: import("../types/schema").Pages[]; lastScanDate?: number | Date; documentTitle?: string; cdn?: string; online?: boolean; timestamp?: string; insight?: import("../types/schema").PageInsights; verified?: boolean; }; code: number; success: boolean; message: string; }>; forgotPassword: (_: any, { email }: { email: any; }, _context: any) => Promise<any>; confirmEmail: (_: any, { email }: { email: any; }, context: any) => Promise<any>; resetPassword: (_: any, { email, resetCode }: { email: any; resetCode: any; }, _context: any) => Promise<any>; toggleAlert: (_: any, { alertEnabled }: { alertEnabled: any; }, context: any) => Promise<Partial<import("../types/types").User>>; sortWebsites: (_: any, { order }: { order: any; }, context: any) => Promise<{ code: number; success: boolean; message: string; }>; setPageSpeedKey: (_: any, { pageSpeedApiKey }: { pageSpeedApiKey: any; }, context: any) => Promise<any>; addPaymentSubscription: (_: any, { stripeToken, yearly }: { stripeToken: any; yearly: any; }, context: any) => Promise<any>; cancelSubscription: (_: any, {}: {}, context: any) => Promise<any>; filterEmailDates: (_: any, { emailFilteredDates, morning, ...props }: { [x: string]: any; emailFilteredDates: any; morning: any; }, context: any) => Promise<any>; };