Cumulocity Web SDK - v1021.62.8
Preparing search index...
ApplicationBinaryService
Class ApplicationBinaryService
Hierarchy (
View Summary
)
Service
<
IApplicationBinary
>
ApplicationBinaryService
Index
Constructors
constructor
Methods
add
Plugin
delete
download
Archive
getXMLHttp
Response
list
list
Plugins
remove
Plugin
update
Files
upload
upload
Application
Version
upload
With
Progress
Xhr
Constructors
constructor
new
ApplicationBinaryService
(
client
:
IFetchClient
,
applicationOrId
:
string
|
number
|
IApplication
,
)
:
ApplicationBinaryService
Parameters
client
:
IFetchClient
applicationOrId
:
string
|
number
|
IApplication
Returns
ApplicationBinaryService
Methods
add
Plugin
addPlugin
(
pluginName
:
string
,
pluginFile
:
Stream
|
ArrayBuffer
|
Buffer
,
)
:
Promise
<
{
data
:
any
;
res
:
IFetchResponse
}
>
Parameters
pluginName
:
string
pluginFile
:
Stream
|
ArrayBuffer
|
Buffer
Returns
Promise
<
{
data
:
any
;
res
:
IFetchResponse
}
>
delete
delete
(
binaryOrId
:
string
|
number
|
IApplicationBinary
)
:
Promise
<
IResult
<
null
>
>
Parameters
binaryOrId
:
string
|
number
|
IApplicationBinary
Returns
Promise
<
IResult
<
null
>
>
download
Archive
downloadArchive
(
binaryId
:
string
|
number
)
:
Promise
<
IFetchResponse
>
Parameters
binaryId
:
string
|
number
Returns
Promise
<
IFetchResponse
>
getXMLHttp
Response
getXMLHttpResponse
(
xhr
:
any
)
:
Promise
<
IApplication
>
Parameters
xhr
:
any
Returns
Promise
<
IApplication
>
list
list
(
filter
?:
any
)
:
Promise
<
IResultList
<
IApplicationBinary
>
>
Parameters
Optional
filter
:
any
Returns
Promise
<
IResultList
<
IApplicationBinary
>
>
list
Plugins
listPlugins
()
:
Promise
<
{
data
:
any
;
res
:
IFetchResponse
}
>
Returns
Promise
<
{
data
:
any
;
res
:
IFetchResponse
}
>
remove
Plugin
removePlugin
(
pluginName
:
string
)
:
Promise
<
{
data
:
any
;
res
:
IFetchResponse
}
>
Parameters
pluginName
:
string
Returns
Promise
<
{
data
:
any
;
res
:
IFetchResponse
}
>
update
Files
updateFiles
(
files
:
{
contents
:
string
|
Stream
|
Blob
|
ArrayBuffer
|
Buffer
;
path
:
string
;
}
[]
,
)
:
Promise
<
{
data
:
any
;
res
:
IFetchResponse
}
>
Parameters
files
:
{
contents
:
string
|
Stream
|
Blob
|
ArrayBuffer
|
Buffer
;
path
:
string
}
[]
Returns
Promise
<
{
data
:
any
;
res
:
IFetchResponse
}
>
upload
upload
(
binary
:
Stream
|
Blob
|
ArrayBuffer
|
Buffer
|
File
,
fileName
?:
string
,
uploadParamsOverride
?:
IUploadParamsOverride
,
)
:
Promise
<
IResult
<
IApplicationBinary
>
>
Parameters
binary
:
Stream
|
Blob
|
ArrayBuffer
|
Buffer
|
File
Optional
fileName
:
string
Optional
uploadParamsOverride
:
IUploadParamsOverride
Returns
Promise
<
IResult
<
IApplicationBinary
>
>
upload
Application
Version
uploadApplicationVersion
(
archive
:
File
,
version
:
string
,
tags
?:
string
[]
,
)
:
Promise
<
IResult
<
IApplicationBinary
>
>
Parameters
archive
:
File
version
:
string
tags
:
string
[]
= []
Returns
Promise
<
IResult
<
IApplicationBinary
>
>
upload
With
Progress
Xhr
uploadWithProgressXhr
(
binary
:
Stream
|
Blob
|
ArrayBuffer
|
Buffer
|
File
,
onProgress
:
any
,
fileName
?:
string
,
uploadParamsOverride
?:
IUploadParamsOverride
,
)
:
XMLHttpRequest
Parameters
binary
:
Stream
|
Blob
|
ArrayBuffer
|
Buffer
|
File
onProgress
:
any
Optional
fileName
:
string
Optional
uploadParamsOverride
:
IUploadParamsOverride
Returns
XMLHttpRequest
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
add
Plugin
delete
download
Archive
getXMLHttp
Response
list
list
Plugins
remove
Plugin
update
Files
upload
upload
Application
Version
upload
With
Progress
Xhr
Cumulocity Web SDK - v1021.62.8
Loading...