10 lines
396 B
TypeScript
10 lines
396 B
TypeScript
import { OnlineSnapshot } from '../entities/online-snapshot.entity';
|
|
|
|
export interface IOnlineSnapshotRepository {
|
|
insert(snapshot: OnlineSnapshot): Promise<OnlineSnapshot>;
|
|
findByTimeRange(startTime: Date, endTime: Date, interval?: string): Promise<OnlineSnapshot[]>;
|
|
findLatest(): Promise<OnlineSnapshot | null>;
|
|
}
|
|
|
|
export const ONLINE_SNAPSHOT_REPOSITORY = 'ONLINE_SNAPSHOT_REPOSITORY';
|