1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Move Provider interface types to @types

This commit is contained in:
Miquel A. Cabot 2022-06-06 09:11:25 +02:00
parent 38895fcf62
commit ff3e509944
2 changed files with 12 additions and 14 deletions

View File

@ -26,3 +26,12 @@ export interface ProviderComputeInitializeResults {
algorithm?: ProviderComputeInitialize
datasets?: ProviderComputeInitialize[]
}
export interface ServiceEndpoint {
serviceName: string
method: string
urlPath: string
}
export interface UserCustomParameters {
[key: string]: any
}

View File

@ -9,22 +9,11 @@ import {
ComputeAsset,
ComputeEnvironment,
ProviderInitialize,
ProviderComputeInitializeResults
ProviderComputeInitializeResults,
ServiceEndpoint,
UserCustomParameters
} from '../@types'
export interface HttpCallback {
(httpMethod: string, url: string, body: string, header: any): Promise<any>
}
export interface ServiceEndpoint {
serviceName: string
method: string
urlPath: string
}
export interface UserCustomParameters {
[key: string]: any
}
export class Provider {
/**
* Returns the provider endpoints