/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ /* eslint-disable @typescript-eslint/no-unused-vars */ import { AccessService } from '../../lib/services/access-service'; import User from '../../lib/types/user'; import noLoggerProvider from './no-logger'; import { IRole } from '../../lib/types/stores/access-store'; import { IAvailablePermissions, IRoleData, IUserWithRole, } from '../../lib/types/model'; import { IGroupModelWithProjectRole } from '../../lib/types/group'; class AccessServiceMock extends AccessService { constructor() { super( { accessStore: undefined, userStore: undefined, roleStore: undefined, environmentStore: undefined, }, { getLogger: noLoggerProvider }, undefined, ); } hasPermission( user: User, permission: string, projectId?: string, ): Promise { throw new Error('Method not implemented.'); } getPermissions(): Promise { throw new Error('Method not implemented.'); } addUserToRole(userId: number, roleId: number): Promise { throw new Error('Method not implemented.'); } setUserRootRole(userId: number, roleId: number): Promise { return Promise.resolve(); } addPermissionToRole( roleId: number, permission: string, projectId?: string, ): Promise { throw new Error('Method not implemented.'); } removePermissionFromRole( roleId: number, permission: string, projectId?: string, ): Promise { throw new Error('Method not implemented.'); } getRoles(): Promise { throw new Error('Method not implemented.'); } getRolesForProject(projectId: string): Promise { throw new Error('Method not implemented.'); } getRolesForUser(userId: number): Promise { throw new Error('Method not implemented.'); } getUsersForRole(roleId: any): Promise { throw new Error('Method not implemented.'); } getProjectRoleAccess( projectId: string, ): Promise<[IRole[], IUserWithRole[], IGroupModelWithProjectRole[]]> { throw new Error('Method not implemented.'); } createDefaultProjectRoles(owner: User, projectId: string): Promise { throw new Error('Method not implemented.'); } removeDefaultProjectRoles(owner: User, projectId: string): Promise { throw new Error('Method not implemented.'); } } export default AccessServiceMock;