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 enumeradosmaster
parent
3cb651518c
commit
229bc1fdca
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
@ -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';
|
||||||
Loading…
Reference in New Issue