mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
12 lines
439 B
TypeScript
12 lines
439 B
TypeScript
|
|
import { SessionEntity } from 'src/entities/session.entity';
|
||
|
|
|
||
|
|
export const ISessionRepository = 'ISessionRepository';
|
||
|
|
|
||
|
|
export interface ISessionRepository {
|
||
|
|
create(dto: Partial<SessionEntity>): Promise<SessionEntity>;
|
||
|
|
update(dto: Partial<SessionEntity>): Promise<SessionEntity>;
|
||
|
|
delete(id: string): Promise<void>;
|
||
|
|
getByToken(token: string): Promise<SessionEntity | null>;
|
||
|
|
getByUserId(userId: string): Promise<SessionEntity[]>;
|
||
|
|
}
|