Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kremalicious committed Sep 7, 2020
1 parent 694314c commit 2f3f5b1
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/ddo/interfaces/Service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import { Metadata } from './Metadata'

export type ServiceType = 'authorization' | 'metadata' | 'access' | 'compute'

export interface ServiceCommonAttributes {
main: { [key: string]: any }
additionalInformation?: { [key: string]: any }
}

export interface ServiceCommon {
type: ServiceType
index: number
serviceEndpoint?: string
attributes: ServiceCommonAttributes
}

export interface ServiceCommonAttributes {
main: { [key: string]: any }
additionalInformation?: { [key: string]: any }
}

export interface ServiceAccessAttributes extends ServiceCommonAttributes {
main: {
creator: string
Expand All @@ -29,18 +29,6 @@ export interface ServiceComputePrivacy {
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 {
type: string
description: string
Expand All @@ -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 {
type: 'metadata'
attributes: Metadata
Expand Down

0 comments on commit 2f3f5b1

Please sign in to comment.