teraslice-client-js / assets / default
Class: default
Extends
Constructors
new default()
new default(
config
):default
Parameters
Parameter | Type |
---|---|
config | ClientConfig |
Returns
Overrides
Source
Properties
_config
protected
readonly
_config:ClientConfig
Inherited from
Source
Methods
delete()
delete<
T
>(endpoint
,options
?):Promise
<T
>
Type parameters
Type parameter | Value |
---|---|
T | any |
Parameters
Parameter | Type |
---|---|
endpoint | string |
options ? | Partial <default > |
Returns
Promise
<T
>
Inherited from
Source
get()
get<
T
>(endpoint
,options
?):Promise
<T
>
Type parameters
Type parameter | Value |
---|---|
T | any |
Parameters
Parameter | Type |
---|---|
endpoint | string |
options ? | Partial <default > |
Returns
Promise
<T
>
Inherited from
Source
getAsset()
getAsset(
name
,version
,searchOptions
):Promise
<AssetRecord
[]>
Parameters
Parameter | Type | Default value |
---|---|---|
name | string | undefined |
version | string | '' |
searchOptions | Partial <default > | {} |
Returns
Promise
<AssetRecord
[]>
Source
list()
list(
query
,searchOptions
):Promise
<AssetRecord
[]>
Parameters
Parameter | Type |
---|---|
query | SearchQuery |
searchOptions | Partial <default > |
Returns
Promise
<AssetRecord
[]>
Source
makeOptions()
protected
makeOptions(searchParams
,options
):Partial
<default
>
Parameters
Parameter | Type |
---|---|
searchParams | undefined | Record <string , any > |
options | Partial <default > |
Returns
Partial
<default
>
Inherited from
Source
parse()
protected
parse(results
):any
Parameters
Parameter | Type |
---|---|
results | unknown |
Returns
any
Inherited from
Source
post()
post<
T
>(endpoint
,data
?,options
?):Promise
<T
>
Type parameters
Type parameter | Value |
---|---|
T | any |
Parameters
Parameter | Type |
---|---|
endpoint | string |
data ? | unknown |
options ? | Partial <default > |
Returns
Promise
<T
>
Inherited from
Source
put()
put<
T
>(endpoint
,data
,options
?):Promise
<T
>
Type parameters
Type parameter | Value |
---|---|
T | any |
Parameters
Parameter | Type |
---|---|
endpoint | string |
data | unknown |
options ? | Partial <default > |
Returns
Promise
<T
>
Inherited from
Source
remove()
remove(
id
,searchOptions
):Promise
<AssetIDResponse
>
Parameters
Parameter | Type |
---|---|
id | string |
searchOptions | Partial <default > |
Returns
Promise
<AssetIDResponse
>
Source
txt()
txt(
name
,version
,query
,searchOptions
):Promise
<string
>
Parameters
Parameter | Type | Default value |
---|---|---|
name | string | '' |
version | string | '' |
query | TxtSearchParams | {} |
searchOptions | Partial <default > | {} |
Returns
Promise
<string
>
Source
upload()
upload(
data
,query
):Promise
<AssetIDResponse
>
Parameters
Parameter | Type |
---|---|
data | PostData |
query | AssetUploadQuery |
Returns
Promise
<AssetIDResponse
>