Files
turnosxpress/sysadmin/src/models/Companies.Model.ts
T
2026-07-16 20:48:43 -03:00

38 lines
730 B
TypeScript

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;
};