Search
Preparing search index...
The search index is not available
Storage SDK Reference Guide - v0.3.16
Options
All
Public
Public/Protected
All
Inherited
Menu
Storage SDK Reference Guide - v0.3.16
<internal>
FileAPI
Class FileAPI
Hierarchy
FileAPI
Index
Constructors
constructor
Methods
all
change
File
Owner
change
Owner
delete
delete
Account
delete
File
get
Account
Status
get
Download
Limit
get
Public
FileURL
get
Shared
Users
get
Upload
Limit
list
my
Files
num
Of
All
Files
num
Of
All
Pages
num
Of
My
Files
num
Of
My
Files
Pages
num
Of
Shared
Files
num
Of
Shared
Files
Pages
remove
File
remove
File
From
App
revoke
set
App
Address
share
shared
Files
Constructors
constructor
new
FileAPI
(
appAddress
:
string
, appId
:
number
, provider
:
any
, api
:
AxiosInstance
, lock
:
Mutex
, debug
:
boolean
)
:
FileAPI
Parameters
appAddress:
string
appId:
number
provider:
any
api:
AxiosInstance
lock:
Mutex
debug:
boolean
Returns
FileAPI
Methods
all
all
(
pageNumber
?:
number
, pageSize
?:
number
)
:
Promise
<
string
[]
>
Parameters
pageNumber:
number
= 1
pageSize:
number
= 20
Returns
Promise
<
string
[]
>
change
File
Owner
change
File
Owner
(
did
:
any
, newOwnerAddress
:
string
)
:
Promise
<
string
>
Parameters
did:
any
newOwnerAddress:
string
Returns
Promise
<
string
>
change
Owner
change
Owner
(
did
:
string
, newOwnerAddress
:
string
)
:
Promise
<
string
>
Parameters
did:
string
newOwnerAddress:
string
Returns
Promise
<
string
>
delete
delete
(
did
:
string
)
:
Promise
<
string
>
Parameters
did:
string
Returns
Promise
<
string
>
delete
Account
delete
Account
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
delete
File
delete
File
(
did
:
string
)
:
Promise
<
string
>
Parameters
did:
string
Returns
Promise
<
string
>
get
Account
Status
get
Account
Status
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
get
Download
Limit
get
Download
Limit
(
)
:
Promise
<
[
number
,
number
]
>
Returns
Promise
<
[
number
,
number
]
>
get
Public
FileURL
get
Public
FileURL
(
did
:
string
)
:
Promise
<
string
>
Parameters
did:
string
Returns
Promise
<
string
>
get
Shared
Users
get
Shared
Users
(
did
:
string
)
:
Promise
<
string
[]
>
Parameters
did:
string
Returns
Promise
<
string
[]
>
get
Upload
Limit
get
Upload
Limit
(
)
:
Promise
<
[
number
,
number
]
>
Returns
Promise
<
[
number
,
number
]
>
list
list
(
type
:
AccessTypeEnum
, pageNumber
?:
number
, pageSize
?:
number
)
:
Promise
<
any
[]
>
Parameters
type:
AccessTypeEnum
pageNumber:
number
= 1
pageSize:
number
= 20
Returns
Promise
<
any
[]
>
my
Files
my
Files
(
pageNumber
?:
number
, pageSize
?:
number
)
:
Promise
<
any
[]
>
Parameters
pageNumber:
number
= 1
pageSize:
number
= 20
Returns
Promise
<
any
[]
>
num
Of
All
Files
num
Of
All
Files
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
num
Of
All
Pages
num
Of
All
Pages
(
pageSize
?:
number
)
:
Promise
<
number
>
Parameters
pageSize:
number
= 20
Returns
Promise
<
number
>
num
Of
My
Files
num
Of
My
Files
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
num
Of
My
Files
Pages
num
Of
My
Files
Pages
(
pageSize
?:
number
)
:
Promise
<
number
>
Parameters
pageSize:
number
= 20
Returns
Promise
<
number
>
num
Of
Shared
Files
num
Of
Shared
Files
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
num
Of
Shared
Files
Pages
num
Of
Shared
Files
Pages
(
pageSize
?:
number
)
:
Promise
<
number
>
Parameters
pageSize:
number
= 20
Returns
Promise
<
number
>
remove
File
remove
File
(
did
:
string
)
:
Promise
<
string
>
Parameters
did:
string
Returns
Promise
<
string
>
remove
File
From
App
remove
File
From
App
(
did
:
string
)
:
Promise
<
string
>
Parameters
did:
string
Returns
Promise
<
string
>
revoke
revoke
(
did
:
string
, address
:
string
|
string
[]
)
:
Promise
<
string
>
Parameters
did:
string
address:
string
|
string
[]
Returns
Promise
<
string
>
set
App
Address
set
App
Address
(
did
:
string
)
:
Promise
<
void
>
Parameters
did:
string
Returns
Promise
<
void
>
share
share
(
did
:
string
, _address
:
string
|
string
[]
, validity
:
number
|
number
[]
)
:
Promise
<
string
>
Parameters
did:
string
_address:
string
|
string
[]
validity:
number
|
number
[]
Returns
Promise
<
string
>
shared
Files
shared
Files
(
pageNumber
?:
number
, pageSize
?:
number
)
:
Promise
<
any
[]
>
Parameters
pageNumber:
number
= 1
pageSize:
number
= 20
Returns
Promise
<
any
[]
>
Exports
<internal>
FileAPI
constructor
all
change
File
Owner
change
Owner
delete
delete
Account
delete
File
get
Account
Status
get
Download
Limit
get
Public
FileURL
get
Shared
Users
get
Upload
Limit
list
my
Files
num
Of
All
Files
num
Of
All
Pages
num
Of
My
Files
num
Of
My
Files
Pages
num
Of
Shared
Files
num
Of
Shared
Files
Pages
remove
File
remove
File
From
App
revoke
set
App
Address
share
shared
Files
Generated using
TypeDoc
, the 11/9/2022 at 3:32:28 PM