1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

Add initial workflow definition.

This commit is contained in:
Pedro Gutiérrez 2019-08-07 12:17:56 +02:00 committed by Matthias Kretschmann
parent 3f90ab2ef0
commit ba542f299a
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -1,3 +1,44 @@
export interface StageRequirements {
computeServiceId?: string
serviceDefinitionId?: string
serverId?: string
serverInstances?: string
container: {
image: string
tag: string
checksum: string
}
}
export interface StageInput {
index: number
id: string
}
export interface StageTransformation {
id: string
}
export interface StageOutput {
metadataUrl: string
secretStoreUrl: string
accessProxyUrl: string
metadata: MetaDataBase
}
export interface Stage {
index: number
stageType?: string
requirements: StageRequirements
input: StageInput
transformation: StageTransformation
output: StageOutput
}
export interface Workflow {
stages: Stage[]
}
export interface File {
/**
* File name.
@ -199,6 +240,8 @@ export interface MetaDataBase {
checksum?: string
encryptedFiles?: any
workflow?: Workflow
}
/**