Skip to main content

teraslice-client-js / assets / default

Class: default

Extends

Constructors

new default()

new default(config): default

Parameters

ParameterType
configClientConfig

Returns

default

Overrides

default.constructor

Source

assets.ts:9

Properties

_config

protected readonly _config: ClientConfig

Inherited from

default._config

Source

client.ts:14

Methods

delete()

delete<T>(endpoint, options?): Promise<T>

Type parameters

Type parameterValue
Tany

Parameters

ParameterType
endpointstring
options?Partial<default>

Returns

Promise<T>

Inherited from

default.delete

Source

client.ts:54


get()

get<T>(endpoint, options?): Promise<T>

Type parameters

Type parameterValue
Tany

Parameters

ParameterType
endpointstring
options?Partial<default>

Returns

Promise<T>

Inherited from

default.get

Source

client.ts:42


getAsset()

getAsset(name, version, searchOptions): Promise<AssetRecord[]>

Parameters

ParameterTypeDefault value
namestringundefined
versionstring''
searchOptionsPartial<default>{}

Returns

Promise<AssetRecord[]>

Source

assets.ts:54


list()

list(query, searchOptions): Promise<AssetRecord[]>

Parameters

ParameterType
querySearchQuery
searchOptionsPartial<default>

Returns

Promise<AssetRecord[]>

Source

assets.ts:46


makeOptions()

protected makeOptions(searchParams, options): Partial<default>

Parameters

ParameterType
searchParamsundefined | Record<string, any>
optionsPartial<default>

Returns

Partial<default>

Inherited from

default.makeOptions

Source

client.ts:110


parse()

protected parse(results): any

Parameters

ParameterType
resultsunknown

Returns

any

Inherited from

default.parse

Source

client.ts:106


post()

post<T>(endpoint, data?, options?): Promise<T>

Type parameters

Type parameterValue
Tany

Parameters

ParameterType
endpointstring
data?unknown
options?Partial<default>

Returns

Promise<T>

Inherited from

default.post

Source

client.ts:46


put()

put<T>(endpoint, data, options?): Promise<T>

Type parameters

Type parameterValue
Tany

Parameters

ParameterType
endpointstring
dataunknown
options?Partial<default>

Returns

Promise<T>

Inherited from

default.put

Source

client.ts:50


remove()

remove(id, searchOptions): Promise<AssetIDResponse>

Parameters

ParameterType
idstring
searchOptionsPartial<default>

Returns

Promise<AssetIDResponse>

Source

assets.ts:31


txt()

txt(name, version, query, searchOptions): Promise<string>

Parameters

ParameterTypeDefault value
namestring''
versionstring''
queryTxtSearchParams{}
searchOptionsPartial<default>{}

Returns

Promise<string>

Source

assets.ts:75


upload()

upload(data, query): Promise<AssetIDResponse>

Parameters

ParameterType
dataPostData
queryAssetUploadQuery

Returns

Promise<AssetIDResponse>

Source

assets.ts:14