import { FindOptions } from 'sequelize/types' ; import { Post } from './post.model' ; import { PostDto } from './post.dto' ; import { IFindAndPaginateOptions , IFindAndPaginateResult } from '../commons/find-and-paginate.interface' ; export interface IPostUpdateInput { id : string ; data : PostDto ; } export interface IPostsService { find ( query ? ) : Promise < IFindAndPaginateResult < Post > > ; findById ( id ) : Promise < Post > ; findOne ( query ? ) : Promise < Post > ; count ( query ? ) : Promise < number > ; create ( post ) : Promise < Post > ; update ( id , post ) : Promise < Post > ; destroy ( query ? ) : Promise < number > ; }