import {internal} from '~/entities'
import {ServiceRequest} from '~/interfaces/service-request.interface'

export interface JournalRepository {
    create(journal: internal.Journal): Promise<number>

    read(id: number, sr: ServiceRequest): Promise<internal.Journal>

    readAll(sr: ServiceRequest, resourceName?: string, resourceId?: number | string): Promise<[internal.Journal[], number]>
}