mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
lint fix
This commit is contained in:
parent
694314cae6
commit
2f3f5b11e2
@ -2,6 +2,11 @@ import { Metadata } from './Metadata'
|
|||||||
|
|
||||||
export type ServiceType = 'authorization' | 'metadata' | 'access' | 'compute'
|
export type ServiceType = 'authorization' | 'metadata' | 'access' | 'compute'
|
||||||
|
|
||||||
|
export interface ServiceCommonAttributes {
|
||||||
|
main: { [key: string]: any }
|
||||||
|
additionalInformation?: { [key: string]: any }
|
||||||
|
}
|
||||||
|
|
||||||
export interface ServiceCommon {
|
export interface ServiceCommon {
|
||||||
type: ServiceType
|
type: ServiceType
|
||||||
index: number
|
index: number
|
||||||
@ -9,11 +14,6 @@ export interface ServiceCommon {
|
|||||||
attributes: ServiceCommonAttributes
|
attributes: ServiceCommonAttributes
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ServiceCommonAttributes {
|
|
||||||
main: { [key: string]: any }
|
|
||||||
additionalInformation?: { [key: string]: any }
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ServiceAccessAttributes extends ServiceCommonAttributes {
|
export interface ServiceAccessAttributes extends ServiceCommonAttributes {
|
||||||
main: {
|
main: {
|
||||||
creator: string
|
creator: string
|
||||||
@ -29,18 +29,6 @@ export interface ServiceComputePrivacy {
|
|||||||
trustedAlgorithms: string[]
|
trustedAlgorithms: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ServiceComputeAttributes extends ServiceCommonAttributes {
|
|
||||||
main: {
|
|
||||||
creator: string
|
|
||||||
datePublished: string
|
|
||||||
cost: string
|
|
||||||
timeout: number
|
|
||||||
provider?: ServiceComputeProvider
|
|
||||||
name: string
|
|
||||||
privacy?: ServiceComputePrivacy
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ServiceComputeProvider {
|
export interface ServiceComputeProvider {
|
||||||
type: string
|
type: string
|
||||||
description: string
|
description: string
|
||||||
@ -67,6 +55,18 @@ export interface ServiceComputeProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ServiceComputeAttributes extends ServiceCommonAttributes {
|
||||||
|
main: {
|
||||||
|
creator: string
|
||||||
|
datePublished: string
|
||||||
|
cost: string
|
||||||
|
timeout: number
|
||||||
|
provider?: ServiceComputeProvider
|
||||||
|
name: string
|
||||||
|
privacy?: ServiceComputePrivacy
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export interface ServiceMetadata extends ServiceCommon {
|
export interface ServiceMetadata extends ServiceCommon {
|
||||||
type: 'metadata'
|
type: 'metadata'
|
||||||
attributes: Metadata
|
attributes: Metadata
|
||||||
|
Loading…
x
Reference in New Issue
Block a user