/* eslint-disable @typescript-eslint/no-unused-vars */ import noLoggerProvider from './no-logger'; import { IAccessStore, IRole, IUserPermission, IUserRole, } from '../../lib/types/stores/access-store'; import { IAvailablePermissions, IPermission } from 'lib/types/model'; class AccessStoreMock implements IAccessStore { updateUserProjectRole( userId: number, roleId: number, projectId: string, ): Promise { throw new Error('Method not implemented.'); } removeUserFromRole( userId: number, roleId: number, projectId: string, ): Promise { throw new Error('Method not implemented.'); } wipePermissionsFromRole(role_id: number): Promise { throw new Error('Method not implemented.'); } unlinkUserRoles(userId: number): Promise { throw new Error('Method not implemented.'); } getRoleByName(name: string): Promise { throw new Error('Method not implemented.'); } getProjectUserIdsForRole( roleId: number, projectId?: string, ): Promise { throw new Error('Method not implemented.'); } getProjectRoles(): Promise { throw new Error('Method not implemented.'); } addEnvironmentPermissionsToRole( role_id: number, permissions: IPermission[], ): Promise { throw new Error('Method not implemented.'); } userPermissions: IUserPermission[] = []; roles: IRole[] = []; getAvailablePermissions(): Promise { throw new Error('Method not implemented.'); } getPermissionsForUser(userId: Number): Promise { return Promise.resolve([]); } getPermissionsForRole(roleId: number): Promise { throw new Error('Method not implemented.'); } getRoles(): Promise { return Promise.resolve([]); } getRoleWithId(id: number): Promise { throw new Error('Method not implemented.'); } getRolesForProject(projectId: string): Promise { throw new Error('Method not implemented.'); } removeRolesForProject(projectId: string): Promise { throw new Error('Method not implemented.'); } getRolesForUserId(userId: number): Promise { return Promise.resolve([]); } getUserIdsForRole(roleId: number, projectId: string): Promise { throw new Error('Method not implemented.'); } addUserToRole(userId: number, roleId: number): Promise { throw new Error('Method not implemented.'); } addPermissionsToRole( role_id: number, permissions: string[], projectId?: string, ): Promise { throw new Error('Method not implemented.'); } removePermissionFromRole( roleId: number, permission: string, projectId?: string, ): Promise { throw new Error('Method not implemented.'); } getRootRoleForAllUsers(): Promise { throw new Error('Method not implemented.'); } delete(key: number): Promise { return Promise.resolve(undefined); } deleteAll(): Promise { return Promise.resolve(undefined); } destroy(): void {} exists(key: number): Promise { return Promise.resolve(false); } get(key: number): Promise { return Promise.resolve(undefined); } getAll(): Promise { return Promise.resolve([]); } getRootRoles(): Promise { return Promise.resolve([]); } removeRolesOfTypeForUser(userId: number, roleType: string): Promise { return Promise.resolve(undefined); } } module.exports = AccessStoreMock; export default AccessStoreMock;