Preparing search index...
The search index is not available
@terrestris/shogun-util
@terrestris/shogun-util
service/FileService
FileService
Class FileService<T>
Type Parameters
T
extends
default
Hierarchy (
View Summary
)
GenericFileService
<
T
>
FileService
Index
Constructors
constructor
Properties
base
Path
keycloak?
Methods
delete
find
All
find
One
get
Base
Path
get
Page
Url
upload
Constructors
constructor
new
FileService
<
T
extends
default
>
(
opts
?:
GenericServiceOpts
)
:
FileService
<
T
>
Type Parameters
T
extends
default
Parameters
opts
:
GenericServiceOpts
= ...
Returns
FileService
<
T
>
Properties
Protected
Readonly
base
Path
basePath
:
string
Protected
Optional
Readonly
keycloak
keycloak
?:
Keycloak
Methods
delete
delete
(
fileUuid
:
string
,
fetchOpts
?:
RequestInit
)
:
Promise
<
void
>
Parameters
fileUuid
:
string
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
void
>
find
All
findAll
(
pageOpts
?:
PageOpts
,
fetchOpts
?:
RequestInit
)
:
Promise
<
Page
<
T
>
>
Parameters
Optional
pageOpts
:
PageOpts
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
Page
<
T
>
>
find
One
findOne
(
fileUuid
:
string
,
fetchOpts
?:
RequestInit
)
:
Promise
<
Blob
>
Parameters
fileUuid
:
string
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
Blob
>
get
Base
Path
getBasePath
()
:
string
Returns
string
Protected
get
Page
Url
getPageUrl
(
pageOpts
?:
PageOpts
)
:
string
Parameters
Optional
pageOpts
:
PageOpts
Returns
string
upload
upload
(
file
:
File
,
fileSystem
?:
boolean
,
fetchOpts
?:
RequestInit
)
:
Promise
<
T
>
Parameters
file
:
File
fileSystem
:
boolean
= false
Optional
fetchOpts
:
RequestInit
Returns
Promise
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
base
Path
keycloak
Methods
delete
find
All
find
One
get
Base
Path
get
Page
Url
upload
@terrestris/shogun-util
Loading...