mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
move compute interfaces
This commit is contained in:
parent
6e7cdeb827
commit
c9bac697c3
@ -15,6 +15,8 @@ import DID from './DID'
|
||||
import { SubscribablePromise } from '../utils'
|
||||
import { Instantiable, InstantiableConfig } from '../Instantiable.abstract'
|
||||
import { WebServiceConnector } from './utils/WebServiceConnector'
|
||||
import { Output } from './interfaces/ComputeOutput'
|
||||
import { ComputeJob } from './interfaces/ComputeJob'
|
||||
|
||||
export enum CreateProgressStep {
|
||||
CreatingDataToken,
|
||||
@ -45,32 +47,6 @@ export const ComputeJobStatus = Object.freeze({
|
||||
Deleted: 90
|
||||
})
|
||||
|
||||
export interface Output {
|
||||
publishAlgorithmLog?: boolean
|
||||
publishOutput?: boolean
|
||||
providerAddress?: string
|
||||
providerUri?: string
|
||||
metadata?: Metadata
|
||||
metadataUri?: string
|
||||
nodeUri?: string
|
||||
owner?: string
|
||||
secretStoreUri?: string
|
||||
whitelist?: string[]
|
||||
}
|
||||
|
||||
export interface ComputeJob {
|
||||
owner: string
|
||||
did: string
|
||||
jobId: string
|
||||
dateCreated: string
|
||||
dateFinished: string
|
||||
status: number
|
||||
statusText: string
|
||||
algorithmLogUrl: string
|
||||
resultsUrls: string[]
|
||||
resultsDid?: DID
|
||||
}
|
||||
|
||||
/**
|
||||
* Assets submodule of Ocean Protocol.
|
||||
*/
|
||||
|
14
src/ocean/interfaces/ComputeJob.ts
Normal file
14
src/ocean/interfaces/ComputeJob.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import DID from '../DID'
|
||||
|
||||
export interface ComputeJob {
|
||||
owner: string
|
||||
did: string
|
||||
jobId: string
|
||||
dateCreated: string
|
||||
dateFinished: string
|
||||
status: number
|
||||
statusText: string
|
||||
algorithmLogUrl: string
|
||||
resultsUrls: string[]
|
||||
resultsDid?: DID
|
||||
}
|
14
src/ocean/interfaces/ComputeOutput.ts
Normal file
14
src/ocean/interfaces/ComputeOutput.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import { Metadata } from '../../ddo/interfaces/Metadata'
|
||||
|
||||
export interface Output {
|
||||
publishAlgorithmLog?: boolean
|
||||
publishOutput?: boolean
|
||||
providerAddress?: string
|
||||
providerUri?: string
|
||||
metadata?: Metadata
|
||||
metadataUri?: string
|
||||
nodeUri?: string
|
||||
owner?: string
|
||||
secretStoreUri?: string
|
||||
whitelist?: string[]
|
||||
}
|
@ -2,7 +2,8 @@ import Account from '../ocean/Account'
|
||||
import { noZeroX } from '../utils'
|
||||
import { Instantiable, InstantiableConfig } from '../Instantiable.abstract'
|
||||
import { File } from '../ddo/interfaces/File'
|
||||
import { ComputeJob, Output } from '../ocean/Assets'
|
||||
import { ComputeJob } from '../ocean/interfaces/ComputeJob'
|
||||
import { Output } from '../ocean/interfaces/ComputeOutput'
|
||||
import { MetadataAlgorithm } from '../ddo/interfaces/MetadataAlgorithm'
|
||||
|
||||
const apiPath = '/api/v1/services'
|
||||
|
Loading…
x
Reference in New Issue
Block a user