export interface ICompany { id?: string; name: string; slug: string; description: string; categoryId: number; ownerId: string; banned?: boolean; // ... we don't need all the properties in the proxy model, just what we return/use } export type PaginateCompaniesParams = { _id?: string; name?: string; ownerId?: string; banned?: boolean; page: number; limit: number; }; export type PaginateCompaniesResults = { data: any[]; page: number; pages: number; }; export type UpdateCompanyParams = { id: string; name?: string; description?: string; categoryId?: number; }; export type SetCompanyBannedParams = { id: string; banned: boolean; };