This commit is contained in:
2025-03-20 14:26:57 +05:00
commit eb552cbdc8
55 changed files with 2212 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
export interface IApp {
id: string;
name: string;
fileName: string;
companyId: string;
createdAt: Date;
updatedAt: Date;
}
+7
View File
@@ -0,0 +1,7 @@
export interface IClient {
id: string;
fullname: string;
email: string;
phone: string;
companyId: string;
}
+3
View File
@@ -0,0 +1,3 @@
export interface IError {
error: string;
}
+14
View File
@@ -0,0 +1,14 @@
import { IApp } from "./IApp";
import { IClient } from "./IClient";
import { ISession } from "./ISession";
export interface IServer {
id: string;
hostname: string;
name: string;
location: string;
companyId: string;
sessions?: ISession[];
client?: IClient;
app?: IApp;
}
+15
View File
@@ -0,0 +1,15 @@
import { IApp } from "./IApp";
import { IServer } from "./IServer";
import { IUser } from "./IUser";
export interface ISession {
id: string;
ownerId: string;
serverId: string;
clientId: string;
companyId: string;
status: "starting" | "started" | "restarted" | "ending" | "ended";
server: IServer;
client: IUser;
app: IApp
}
+6
View File
@@ -0,0 +1,6 @@
export interface IUser {
id: string;
email: string;
fullname: string;
}