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/tests/test-data/bridges/userBridge.ts

61 lines
1.9 KiB

import type { IUser, UserType } from '@rocket.chat/apps-engine/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 getUserRoomIds(userId: string, appId: string): Promise<string[]> {
throw new Error('Method not implemented.');
}
protected deactivate(userId: IUser['id'], confirmRelinquish: boolean, appId: string): Promise<boolean> {
throw new Error('Method not implemented.');
}
protected setActiveState(
userId: IUser['id'],
state: Pick<IUser, 'statusDefault' | 'statusSource' | 'statusText' | 'statusExpiresAt'>,
appId: string,
): Promise<void> {
throw new Error('Method not implemented.');
}
protected endActiveState(userId: IUser['id'], appId: string): Promise<void> {
throw new Error('Method not implemented.');
}
}