UNPKG

@golemio/pid

Version:
12 lines (11 loc) 709 B
import { PresetLogModel } from "../../../../../../schema-definitions/ropid-departures-preset-logs/models"; import { IPresetLogOutputDto } from "../../../../../../schema-definitions/ropid-departures-preset-logs/models/interfaces"; import { IModel } from "@golemio/core/dist/integration-engine/models"; import { ModelStatic } from "@golemio/core/dist/shared/sequelize"; export interface IPresetLogRepository extends IModel { sequelizeModel: ModelStatic<PresetLogModel>; findUnprocessed: () => Promise<PresetLogModel[]>; saveData: (data: IPresetLogOutputDto[]) => Promise<void>; markAsProcessed: (logIds: string[]) => Promise<void>; deleteNHoursOldData: (hours: number) => Promise<number>; }