import * as apid from '../../../api' ; import RecordedTag from '../../db/entities/RecordedTag' ; export default interface IRecordedTagDB { restore ( items ) : Promise < void > ; insertOnce ( tag ) : Promise < apid . RecordedTagId > ; updateOnce ( tagId , name , color ) : Promise < void > ; setRelation ( tagId , recordedId ) : Promise < void > ; deleteRelation ( tagId , recordedId ) : Promise < void > ; deleteAllRelation ( recordedId ) : Promise < void > ; deleteOnce ( tagId ) : Promise < void > ; findId ( tagId ) : Promise < RecordedTag | null > ; findAll ( option ) : Promise < [ RecordedTag [ ] , number ] > ; }