Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions src/@types/Compute.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Metadata, MetadataAlgorithm } from '@oceanprotocol/ddo-js'
import { Metadata, MetadataAlgorithm, ConsumerParameter } from '@oceanprotocol/ddo-js'

export type ComputeResultType =
| 'algorithmLog'
Expand Down Expand Up @@ -141,14 +141,14 @@
}

export enum FileObjectType {
URL = 'url',

Check warning on line 144 in src/@types/Compute.ts

View workflow job for this annotation

GitHub Actions / lint

'URL' is defined but never used
IPFS = 'ipfs',

Check warning on line 145 in src/@types/Compute.ts

View workflow job for this annotation

GitHub Actions / lint

'IPFS' is defined but never used
ARWEAVE = 'arweave'

Check warning on line 146 in src/@types/Compute.ts

View workflow job for this annotation

GitHub Actions / lint

'ARWEAVE' is defined but never used
}

export enum EncryptMethod {
AES = 'AES',

Check warning on line 150 in src/@types/Compute.ts

View workflow job for this annotation

GitHub Actions / lint

'AES' is defined but never used
ECIES = 'ECIES'

Check warning on line 151 in src/@types/Compute.ts

View workflow job for this annotation

GitHub Actions / lint

'ECIES' is defined but never used
}

export interface HeadersObject {
Expand Down Expand Up @@ -182,11 +182,24 @@
userdata?: { [key: string]: any }
}

export interface ExtendedMetadataAlgorithm extends MetadataAlgorithm {
container: {
// retain existing properties
entrypoint: string
image: string
tag: string
checksum: string
dockerfile?: string // optional
additionalDockerFiles?: { [key: string]: any }
consumerParameters?: ConsumerParameter[]
}
}

export interface ComputeAlgorithm {
fileObject?: BaseFileObject // C2D v2
documentId?: string
serviceId?: string
meta?: MetadataAlgorithm
meta?: ExtendedMetadataAlgorithm
transferTxId?: string
algocustomdata?: { [key: string]: any }
userdata?: { [key: string]: any }
Expand Down
Loading