Search
Preparing search index...
The search index is not available
cv-dialog-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"ws/FetchClient"
FetchClient
Class FetchClient
Hierarchy
FetchClient
Implements
Client
Index
Properties
_client
Listener
_last
Activity
_locale
Accessors
last
Activity
Methods
add
Client
Listener
assert
Json
Content
Type
delete
Json
encode
Query
Params
fetch
get
Blob
get
Json
get
Text
is
Any
User
InBriefcase
Mode
is
Json
Content
Type
is
User
InBriefcase
Mode
open
Stream
post
Json
post
Multipart
process
Request
put
Json
remove
Client
Listener
Properties
Private
_client
Listener
_client
Listener
:
ClientListener
Private
_last
Activity
_last
Activity
:
Date
= new Date()
Private
_locale
_locale
:
CvLocale
Accessors
last
Activity
get
lastActivity
(
)
:
Date
Returns
Date
Methods
add
Client
Listener
add
Client
Listener
(
clientListener
:
ClientListener
, locale
:
CvLocale
)
:
void
Parameters
clientListener:
ClientListener
locale:
CvLocale
Returns
void
Private
assert
Json
Content
Type
assert
Json
Content
Type
(
contentType
:
string
)
:
Promise
<
void
>
Parameters
contentType:
string
Returns
Promise
<
void
>
delete
Json
delete
Json
(
baseUrl
:
string
, resourcePath
:
string
)
:
Promise
<
JsonClientResponse
>
Parameters
baseUrl:
string
resourcePath:
string
Returns
Promise
<
JsonClientResponse
>
Private
encode
Query
Params
encode
Query
Params
(
queryParams
:
StringDictionary
)
:
string
Parameters
queryParams:
StringDictionary
Returns
string
fetch
fetch
(
url
:
string
, method
:
FetchMethod
, body
?:
any
, headers
?:
object
, fetchOpts
?:
__type
)
:
Promise
<
Response
>
Parameters
url:
string
method:
FetchMethod
Optional
body:
any
Optional
headers:
object
[
index:
string
]:
string
Optional
fetchOpts:
__type
Returns
Promise
<
Response
>
get
Blob
get
Blob
(
baseUrl
:
string
, resourcePath
?:
string
)
:
Promise
<
BlobClientResponse
>
Parameters
baseUrl:
string
Optional
resourcePath:
string
Returns
Promise
<
BlobClientResponse
>
get
Json
get
Json
(
baseUrl
:
string
, resourcePath
?:
string
, queryParams
?:
StringDictionary
)
:
Promise
<
JsonClientResponse
>
Parameters
baseUrl:
string
Optional
resourcePath:
string
Optional
queryParams:
StringDictionary
Returns
Promise
<
JsonClientResponse
>
get
Text
get
Text
(
baseUrl
:
string
, resourcePath
?:
string
)
:
Promise
<
TextClientResponse
>
Parameters
baseUrl:
string
Optional
resourcePath:
string
Returns
Promise
<
TextClientResponse
>
is
Any
User
InBriefcase
Mode
is
Any
User
InBriefcase
Mode
(
tenantId
:
string
)
:
Promise
<
boolean
>
Parameters
tenantId:
string
Returns
Promise
<
boolean
>
Private
is
Json
Content
Type
is
Json
Content
Type
(
contentType
:
string
)
:
boolean
Parameters
contentType:
string
Returns
boolean
is
User
InBriefcase
Mode
is
User
InBriefcase
Mode
(
userInfo
:
__type
)
:
Promise
<
boolean
>
Parameters
userInfo:
__type
Returns
Promise
<
boolean
>
open
Stream
open
Stream
(
baseUrl
:
string
, resourcePath
?:
string
)
:
Promise
<
StreamProducer
>
Parameters
baseUrl:
string
Optional
resourcePath:
string
Returns
Promise
<
StreamProducer
>
post
Json
post
Json
(
baseUrl
:
string
, resourcePath
:
string
, jsonBody
?:
StringDictionary
)
:
Promise
<
JsonClientResponse
>
Parameters
baseUrl:
string
resourcePath:
string
Optional
jsonBody:
StringDictionary
Returns
Promise
<
JsonClientResponse
>
post
Multipart
post
Multipart
(
baseUrl
:
string
, resourcePath
:
string
, formData
:
FormData
)
:
Promise
<
VoidClientResponse
>
Parameters
baseUrl:
string
resourcePath:
string
formData:
FormData
Returns
Promise
<
VoidClientResponse
>
Private
process
Request
process
Request
(
url
:
string
, method
:
FetchMethod
, body
?:
any
, headers
?:
object
, fetchOpts
?:
__type
)
:
Promise
<
Response
>
Parameters
url:
string
method:
FetchMethod
Optional
body:
any
Optional
headers:
object
[
index:
string
]:
string
Optional
fetchOpts:
__type
Returns
Promise
<
Response
>
put
Json
put
Json
(
baseUrl
:
string
, resourcePath
:
string
, jsonBody
?:
StringDictionary
)
:
Promise
<
JsonClientResponse
>
Parameters
baseUrl:
string
resourcePath:
string
Optional
jsonBody:
StringDictionary
Returns
Promise
<
JsonClientResponse
>
remove
Client
Listener
remove
Client
Listener
(
clientListener
:
ClientListener
)
:
void
Parameters
clientListener:
ClientListener
Returns
void
Globals
"ws/
Fetch
Client"
Fetch
Client
_client
Listener
_last
Activity
_locale
last
Activity
add
Client
Listener
assert
Json
Content
Type
delete
Json
encode
Query
Params
fetch
get
Blob
get
Json
get
Text
is
Any
User
InBriefcase
Mode
is
Json
Content
Type
is
User
InBriefcase
Mode
open
Stream
post
Json
post
Multipart
process
Request
put
Json
remove
Client
Listener
Fetch
Method
Generated using
TypeDoc