UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.

25 lines (24 loc) 1.13 kB
import { ICustomRole } from 'lib/types/model'; import { IRole, IUserRole } from 'lib/types/stores/access-store'; import { ICustomRoleInsert, ICustomRoleUpdate, IRoleStore } from 'lib/types/stores/role-store'; export default class FakeRoleStore implements IRoleStore { count(): Promise<number>; roles: ICustomRole[]; getGroupRolesForProject(projectId: string): Promise<IRole[]>; nameInUse(name: string, existingId: number): Promise<boolean>; getAll(): Promise<ICustomRole[]>; create(role: ICustomRoleInsert): Promise<ICustomRole>; update(role: ICustomRoleUpdate): Promise<ICustomRole>; delete(id: number): Promise<void>; getRoles(): Promise<IRole[]>; getRoleByName(name: string): Promise<IRole>; getRolesForProject(projectId: string): Promise<IRole[]>; removeRolesForProject(projectId: string): Promise<void>; getProjectRoles(): Promise<IRole[]>; getRootRoles(): Promise<IRole[]>; getRootRoleForAllUsers(): Promise<IUserRole[]>; get(key: number): Promise<ICustomRole>; exists(key: number): Promise<boolean>; deleteAll(): Promise<void>; destroy(): void; }