import { NativeController } from "./baseController"; import { KuzzleRequest } from "../request"; import { ResetSecurityResult } from "../../types/controllers/adminControlller.type"; /** * @class AdminController */ export default class AdminController extends NativeController { protected shuttingDown: boolean; protected logger: any; constructor(); refreshIndexCache(): Promise; /** * Reset Redis cache */ resetCache(request: KuzzleRequest): Promise<{ acknowledge: boolean; }>; /** * Reset all roles, profiles and users */ resetSecurity(): Promise; /** * Reset all indexes created by users */ resetDatabase(): Promise<{ acknowledge: boolean; }>; /** * Generate a dump * Kuzzle will throw a PreconditionError if a dump is already running */ dump(request: KuzzleRequest): Promise<{ acknowledge: boolean; }>; /** * Shutdown Kuzzle */ shutdown(): Promise<{ acknowledge: boolean; }>; loadFixtures(request: KuzzleRequest): Promise; loadMappings(request: KuzzleRequest): Promise<{ acknowledge: boolean; }>; loadSecurities(request: KuzzleRequest): Promise<{ acknowledge: boolean; }>; _waitForAction(waitForRefresh: string, promise: Promise): Promise<{ acknowledge: boolean; }>; }