mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
2ea0ea42e3
upgrading packages
23 lines
678 B
TypeScript
23 lines
678 B
TypeScript
import {DirectoryDTO} from '../../../common/entities/DirectoryDTO';
|
|
import {PhotoDTO} from '../../../common/entities/PhotoDTO';
|
|
import {OrientationType, RandomQueryDTO} from '../../../common/entities/RandomQueryDTO';
|
|
|
|
export interface RandomQuery {
|
|
directory?: string;
|
|
recursive?: boolean;
|
|
orientation?: OrientationType;
|
|
fromDate?: Date;
|
|
toDate?: Date;
|
|
minResolution?: number;
|
|
maxResolution?: number;
|
|
}
|
|
|
|
export interface IGalleryManager {
|
|
listDirectory(relativeDirectoryName: string,
|
|
knownLastModified?: number,
|
|
knownLastScanned?: number): Promise<DirectoryDTO>;
|
|
|
|
getRandomPhoto(queryFilter: RandomQuery): Promise<PhotoDTO>;
|
|
|
|
}
|