2019-01-14 00:38:39 +08:00
|
|
|
import {PersonEntry} from '../sql/enitites/PersonEntry';
|
2019-02-05 06:46:27 +08:00
|
|
|
import {MediaDTO} from '../../../common/entities/MediaDTO';
|
2019-02-15 07:25:55 +08:00
|
|
|
import {PhotoDTO} from '../../../common/entities/PhotoDTO';
|
2019-03-04 04:17:42 +08:00
|
|
|
import {PersonDTO} from '../../../common/entities/PersonDTO';
|
2019-01-14 00:38:39 +08:00
|
|
|
|
|
|
|
export interface IPersonManager {
|
2019-02-15 07:25:55 +08:00
|
|
|
getAll(): Promise<PersonEntry[]>;
|
|
|
|
|
|
|
|
getSamplePhoto(name: string): Promise<PhotoDTO>;
|
|
|
|
|
2019-01-14 00:38:39 +08:00
|
|
|
get(name: string): Promise<PersonEntry>;
|
|
|
|
|
|
|
|
saveAll(names: string[]): Promise<void>;
|
2019-02-05 06:46:27 +08:00
|
|
|
|
2019-03-11 03:57:27 +08:00
|
|
|
onGalleryIndexUpdate(): Promise<void>;
|
2019-03-04 04:17:42 +08:00
|
|
|
|
|
|
|
updatePerson(name: string, partialPerson: PersonDTO): Promise<PersonEntry>;
|
2019-01-14 00:38:39 +08:00
|
|
|
}
|