feat(types): adicionar enums do backend no frontend

- Cria `types/enums.ts` com `DatabaseType`, `Applications` e `ServersType`
- Atualiza `types/Server.ts` para usar os novos tipos, substituindo `string` por tipos enumerados
master
Artur Oliveira 2025-12-16 11:48:32 -03:00
parent 3cb651518c
commit 229bc1fdca
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import { Applications, DatabaseType, ServersType } from "./enums";
export interface Server {
id: string;
name: string;
ip: string;
port: number;
user: string;
type: ServersType;
application: Applications;
dbType: DatabaseType;
createdAt: string;
updatedAt: string;
}

View File

@ -0,0 +1,18 @@
export type DatabaseType =
| 'MYSQL'
| 'POSTGRESQL'
| 'SQLSERVER'
| 'ORACLE'
| 'REDIS'
| 'MONGODB'
| 'MARIADB'
| 'NONE';
export type Applications =
| 'ASTERISK'
| 'HITMANAGER'
| 'HITMANAGER_V2'
| 'OMNIHIT'
| 'HITPHONE';
export type ServersType = 'PRODUCTION' | 'HOMOLOGATION' | 'DATABASE';