The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/apps-engine/tests/test-data/bridges/userBridge.ts

44 lines
1.5 KiB

import type { IUser, UserType } from '../../../src/definition/users';
import { UserBridge } from '../../../src/server/bridges';
export class TestsUserBridge extends UserBridge {
public getById(id: string, appId: string): Promise<IUser> {
throw new Error('Method not implemented.');
}
public getByUsername(username: string, appId: string): Promise<IUser> {
throw new Error('Method not implemented.');
}
public create(user: Partial<IUser>): Promise<string> {
throw new Error('Method not implemented');
}
public getActiveUserCount(): Promise<number> {
throw new Error('Method not implemented.');
}
public remove(user: IUser, appId: string): Promise<boolean> {
throw new Error('Method not implemented.');
}
public getAppUser(appId?: string): Promise<IUser> {
throw new Error('Method not implemented.');
}
public async update(user: IUser, updates: Partial<IUser>, appId: string): Promise<boolean> {
throw new Error('Method not implemented');
}
public async deleteUsersCreatedByApp(appId: string, type: UserType.BOT): Promise<boolean> {
throw new Error('Method not implemented');
}
protected getUserUnreadMessageCount(uid: string, appId: string): Promise<number> {
throw new Error('Method not implemented.');
}
protected deactivate(userId: IUser['id'], confirmRelinquish: boolean, appId: string): Promise<boolean> {
throw new Error('Method not implemented.');
}
}