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

39 lines
769 B
TypeScript

import { IPayload } from "./Payload.Model";
export type FindWapServerParams = {
id?: string;
name?: string;
description?: string;
countBots?: number;
maxBots?: number;
active?: boolean;
countBotsFrom?: number;
countBotsTo?: number;
};
export interface IWapServer {
id?: string;
name?: string;
description?: string;
ipv4: string;
ipv6: string;
countBots: number;
maxBots: number;
active: boolean;
}
export type PaginateWapServerParams = FindWapServerParams & {
page: number;
limit: number;
};
export type PaginateWapServerResults = {
data: IWapServer[];
page: number;
pages: number;
};
export type SysAdminGetWapServerParams = PaginateWapServerParams & {
payload: IPayload;
};