mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
19 lines
567 B
TypeScript
19 lines
567 B
TypeScript
import { UserEntity } from 'src/entities/user.entity';
|
|
import { Permission } from 'src/enum';
|
|
import { ActivityRepository } from 'src/repositories/activity.repository';
|
|
|
|
export type AuthApiKey = {
|
|
id: string;
|
|
key: string;
|
|
user: UserEntity;
|
|
permissions: Permission[];
|
|
};
|
|
|
|
export type RepositoryInterface<T extends object> = Pick<T, keyof T>;
|
|
|
|
export type IActivityRepository = RepositoryInterface<ActivityRepository>;
|
|
|
|
export type ActivityItem =
|
|
| Awaited<ReturnType<IActivityRepository['create']>>
|
|
| Awaited<ReturnType<IActivityRepository['search']>>[0];
|