ETASCOM CRM V3 - Documentation API
Storybook
GitHub
Preparing search index...
hooks/use-hr-config
useHRConfig
Function useHRConfig
useHRConfig
()
:
{
configs
:
HRConfig
[]
;
isLoading
:
boolean
;
error
:
string
|
null
;
fetchConfigs
:
()
=>
Promise
<
void
>
;
createConfig
:
(
data
:
CreateHRConfigData
)
=>
Promise
<
any
>
;
updateConfig
:
(
id
:
string
,
data
:
UpdateHRConfigData
)
=>
Promise
<
any
>
;
deleteConfig
:
(
id
:
string
)
=>
Promise
<
void
>
;
getConfigByKey
:
(
key
:
string
)
=>
HRConfig
|
undefined
;
getConfigValue
:
(
key
:
string
,
defaultValue
?:
any
)
=>
any
;
}
Returns
{
configs
:
HRConfig
[]
;
isLoading
:
boolean
;
error
:
string
|
null
;
fetchConfigs
:
()
=>
Promise
<
void
>
;
createConfig
:
(
data
:
CreateHRConfigData
)
=>
Promise
<
any
>
;
updateConfig
:
(
id
:
string
,
data
:
UpdateHRConfigData
)
=>
Promise
<
any
>
;
deleteConfig
:
(
id
:
string
)
=>
Promise
<
void
>
;
getConfigByKey
:
(
key
:
string
)
=>
HRConfig
|
undefined
;
getConfigValue
:
(
key
:
string
,
defaultValue
?:
any
)
=>
any
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Storybook
GitHub
ETASCOM CRM V3 - Documentation API
Loading...