-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
02125ab
commit ab4bfb8
Showing
1 changed file
with
65 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,66 @@ | ||
export type Project = { | ||
project_id: string; | ||
name: string; | ||
created: string; | ||
// TODO:change when argo storage format is ready | ||
dry_run_count?: number; | ||
simulations_count?:number; | ||
// dry_runs?: DryRun[]; | ||
// pipeline_description?: PipelineDescription; | ||
}; | ||
project_id: string; | ||
name: string; | ||
created: string; | ||
// TODO:change when argo storage format is ready | ||
dry_run_count?: number; | ||
simulations_count?: number; | ||
// dry_runs?: DryRun[]; | ||
// pipeline_description?: PipelineDescription; | ||
}; | ||
|
||
// WIP argo data types | ||
|
||
export type _Project = { | ||
name: string; | ||
id: string; | ||
createdAt: string; | ||
dryRuns: [DryRun]; | ||
} | ||
|
||
export type DryRun = { | ||
id: string; | ||
createdAt: string; | ||
argoWorkflow: ArgoWorkflow; | ||
status: DryRunStatus; | ||
project: Project; | ||
log: [string]; | ||
// TODO: change if needed; original type definition in graphql is | ||
// log(maxLines: number, grep: string): [string]; | ||
} | ||
|
||
export type ArgoWorkflow = { | ||
input: unknown; | ||
output: unknown; | ||
} | ||
|
||
export type DryRunStatus = { | ||
phase: DryRunPhase; | ||
startedAt: string; | ||
finishedAt: string; | ||
progress: string; | ||
message: string; | ||
estimatedDuration: number; | ||
} | ||
|
||
enum DryRunPhase { | ||
Unknown, | ||
Pending, | ||
Running, | ||
Succeeded, | ||
Failed, | ||
Error, | ||
} | ||
|
||
export type DockerRegistryCredential = { | ||
name: string; | ||
server: string; | ||
username: string; | ||
}; | ||
|
||
export type DockerRegistryCredentialInput = { | ||
name: string | ||
username: string | ||
password: string | ||
server: string | ||
} |