export interface IPost {
    id?: string;
    _id?: string;
    companyId: string;
    content: string;
    fixed: boolean;
    fixedOrder: number;
    createdAt: Date;
}
export type FindPostsParams = {
    id?: string;
    companyId: string;
    fixed?: boolean;
    sessionUser?: string;
};

export type GetPostParams = {
    id: string;
};

export type PaginatePostsParams = FindPostsParams & {
    page: number;
    limit: number;
};

export type PaginatePostsResults = {
    data: IPost[];
    page: number;
    pages: number;
    authorizedUsers: string[];
};

export type SavePostParams = {
    postId?: string;
    companyId: string;
    content: string;
    fixed?: boolean;
    fixedOrder?: number;
    sessionUser: string;
};

export type DeletePostParams = {
    id: string;
    companyId: string;
    sessionUser: string;
};
