upd
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export interface IApp {
|
||||
id: string;
|
||||
name: string;
|
||||
fileName: string;
|
||||
companyId: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export interface IClient {
|
||||
id: string;
|
||||
fullname: string;
|
||||
email: string;
|
||||
phone: string;
|
||||
companyId: string;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface IError {
|
||||
error: string;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
export interface IUser {
|
||||
id: string;
|
||||
email: string;
|
||||
fullname: string;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user