Search
Preparing search index...
The search index is not available
@cwrc/leafwriter-storage-service
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@cwrc/leafwriter-storage-service
Index
Interfaces
Resource
Type aliases
Allowed
Mime
Type
Provider
Auth
Variables
default
Functions
load
Document
save
Document
Type aliases
Allowed
Mime
Type
Allowed
Mime
Type
:
"application/json"
|
"application/pdf"
|
"application/xml"
|
"text/csv"
|
"text/html"
|
"text/md"
|
"text/tsv"
|
"text/txt"
|
"text/xml"
Provider
Auth
Provider
Auth
:
{
access_token
:
string
;
name
:
string
}
Type declaration
access_
token
:
string
name
:
string
Variables
Const
default
default
:
FC
<
StorageDialogProps
>
= ...
Functions
load
Document
load
Document
(
providerAuth
:
ProviderAuth
, resource
:
Resource
)
:
Promise
<
{
content
:
string
;
filename
:
string
;
hash
:
string
;
owner
:
string
;
ownertype
:
string
;
path
:
string
;
provider
:
string
;
repo
:
string
;
url
:
string
}
|
{
error
:
string
}
>
Parameters
providerAuth:
ProviderAuth
resource:
Resource
Returns
Promise
<
{
content
:
string
;
filename
:
string
;
hash
:
string
;
owner
:
string
;
ownertype
:
string
;
path
:
string
;
provider
:
string
;
repo
:
string
;
url
:
string
}
|
{
error
:
string
}
>
save
Document
save
Document
(
providerAuth
:
ProviderAuth
, resource
:
Resource
, overwrite
?:
boolean
)
:
Promise
<
Resource
|
IError
>
Parameters
providerAuth:
ProviderAuth
resource:
Resource
overwrite:
boolean
= false
Returns
Promise
<
Resource
|
IError
>
Exports
Resource
Allowed
Mime
Type
Provider
Auth
default
load
Document
save
Document
Generated using
TypeDoc