mirror of
https://github.com/immich-app/immich
synced 2025-06-10 06:08:23 +00:00

* feat: manage authorized devices * chore: open api * get header from mobile app * write header from mobile app * styling * fix unit test * feat: use relative time * feat: update access time * fix: tests * chore: confirm wording * chore: bump test coverage thresholds * feat: add some icons * chore: icon tweaks --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
13 lines
504 B
TypeScript
13 lines
504 B
TypeScript
import { UserTokenEntity } from '@app/infra/entities';
|
|
|
|
export const IUserTokenRepository = 'IUserTokenRepository';
|
|
|
|
export interface IUserTokenRepository {
|
|
create(dto: Partial<UserTokenEntity>): Promise<UserTokenEntity>;
|
|
save(dto: Partial<UserTokenEntity>): Promise<UserTokenEntity>;
|
|
delete(userId: string, id: string): Promise<void>;
|
|
deleteAll(userId: string): Promise<void>;
|
|
getByToken(token: string): Promise<UserTokenEntity | null>;
|
|
getAll(userId: string): Promise<UserTokenEntity[]>;
|
|
}
|