-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
217 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
packages/etd-common/src/interfaces/db-interfaces/docker_interfaces.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
packages/etd-common/src/interfaces/db-interfaces/execution_plan_interfaces.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
export interface ExecutionPlanDBInterface { | ||
/** | ||
* Creation timestamp of the execution plan | ||
*/ | ||
createdAt: any; | ||
/** | ||
* Update template's id related to this execution plan | ||
*/ | ||
updateTemplate: any; | ||
/** | ||
* Is the execution finished? | ||
*/ | ||
isDone: boolean; | ||
/** | ||
* Does the execution plan contain any error? | ||
*/ | ||
isError: boolean; | ||
/** | ||
* Name of the execution plan | ||
*/ | ||
name: string; | ||
/** | ||
* Description of the execution plan | ||
*/ | ||
description: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 25 additions & 2 deletions
27
packages/etd-common/src/interfaces/db-interfaces/job_result_interfaces.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,36 @@ | ||
import { JobTaskType } from "../../enums"; | ||
|
||
export interface JobResultDBInterface { | ||
/** | ||
* Pending job's id | ||
*/ | ||
jobId: string; | ||
/** | ||
* Submission date | ||
*/ | ||
time: Date; | ||
/** | ||
* Submitted by which device | ||
*/ | ||
deviceID: string; | ||
/** | ||
* From which client. This will be the unique id | ||
* From which client who sent this job. This will be the unique id | ||
*/ | ||
from: string; | ||
/** | ||
* actual command | ||
*/ | ||
command: any; | ||
/** | ||
* Job's result | ||
*/ | ||
result: any; | ||
/** | ||
* Is success? | ||
*/ | ||
success: boolean; | ||
commandType: string; | ||
/** | ||
* Command type. Should be one of the job task type enum | ||
*/ | ||
commandType: JobTaskType; | ||
} |
15 changes: 15 additions & 0 deletions
15
packages/etd-common/src/interfaces/db-interfaces/pending_job_interfaces.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
packages/etd-common/src/interfaces/db-interfaces/static_node_interfaces.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
export interface StaticNodeDBInterface { | ||
/** | ||
* Static node's name | ||
*/ | ||
nodeName: string; | ||
/** | ||
* Static node's enode url | ||
*/ | ||
nodeURL: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.