equation-connect
Preparing search index...
createClient
Function createClient
createClient
(
config
?:
FirebaseConfig
,
)
:
{
auth
:
Auth
;
cleanUserTokens
:
(
uid
:
string
)
=>
Promise
<
void
>
;
database
:
Database
;
getDevice
:
(
id
:
string
)
=>
Promise
<
DeviceType
>
;
getInstallation
:
(
id
:
string
)
=>
Promise
<
InstallationType
>
;
getInstallations
:
(
uid
:
string
)
=>
Promise
<
InstallationsType
>
;
getUser
:
(
uid
:
string
)
=>
Promise
<
any
>
;
getZone
:
(
installationId
:
string
,
id
:
string
)
=>
Promise
<
ZoneOverviewType
>
;
getZonePreset
:
(
installationId
:
string
,
id
:
string
,
)
=>
Promise
<
DeviceStatus
|
null
>
;
login
:
(
email
:
string
,
password
:
string
)
=>
Promise
<
User
>
;
logout
:
(
uid
?:
string
)
=>
Promise
<
void
>
;
setDeviceBacklight
:
(
id
:
string
,
backlight
:
number
)
=>
void
;
setDeviceBacklightOn
:
(
id
:
string
,
backlight
:
number
)
=>
void
;
setDeviceBlockLocal
:
(
id
:
string
,
blocked
:
boolean
)
=>
void
;
setDeviceBlockRemote
:
(
id
:
string
,
blocked
:
boolean
)
=>
void
;
setDeviceBuzzer
:
(
id
:
string
,
enabled
:
boolean
)
=>
void
;
setDeviceIceMode
:
(
id
:
string
,
enabled
:
boolean
)
=>
void
;
setDeviceMode
:
(
id
:
string
,
mode
:
DeviceMode
)
=>
void
;
setDeviceNominalPower
:
(
id
:
string
,
nominal_power
:
number
)
=>
void
;
setDevicePilotMode
:
(
id
:
string
,
enabled
:
boolean
)
=>
void
;
setDevicePIRMode
:
(
id
:
string
,
enabled
:
boolean
)
=>
void
;
setDevicePower
:
(
id
:
string
,
power
:
boolean
)
=>
void
;
setDevicePowerOff
:
(
id
:
string
)
=>
void
;
setDevicePowerOn
:
(
id
:
string
)
=>
void
;
setDevicePreset
:
(
id
:
string
,
status
:
DeviceStatus
)
=>
Promise
<
void
>
;
setDeviceTimer
:
(
id
:
string
,
timerMode
:
boolean
,
timerTemp
:
number
,
timerTime
:
number
,
)
=>
void
;
setDeviceUserMode
:
(
id
:
string
,
userMode
:
boolean
,
umMinTemp
:
number
,
umMaxTemp
:
number
,
umPassword
:
string
,
)
=>
void
;
setDeviceWindowOpenMode
:
(
id
:
string
,
enabled
:
boolean
)
=>
void
;
setInstallationPower
:
(
installationId
:
string
,
power
:
boolean
,
)
=>
Promise
<
void
>
;
setZoneBlockLocal
:
(
installationId
:
string
,
id
:
string
,
blocked
:
boolean
,
)
=>
Promise
<
void
>
;
setZoneBlockRemote
:
(
installationId
:
string
,
id
:
string
,
blocked
:
boolean
,
)
=>
Promise
<
void
>
;
setZoneBuzzer
:
(
installationId
:
string
,
id
:
string
,
enabled
:
boolean
,
)
=>
Promise
<
void
>
;
setZoneIceMode
:
(
installationId
:
string
,
id
:
string
,
enabled
:
boolean
,
)
=>
Promise
<
void
>
;
setZoneMode
:
(
installationId
:
string
,
id
:
string
,
mode
:
DeviceMode
,
)
=>
Promise
<
void
>
;
setZonePower
:
(
installationId
:
string
,
id
:
string
,
power
:
boolean
,
)
=>
Promise
<
void
>
;
setZonePowerOff
:
(
installationId
:
string
,
id
:
string
)
=>
void
;
setZonePowerOn
:
(
installationId
:
string
,
id
:
string
)
=>
void
;
setZonePreset
:
(
installationId
:
string
,
id
:
string
,
status
:
DeviceStatus
,
)
=>
Promise
<
void
>
;
updateDevice
:
(
id
:
string
,
data
:
any
)
=>
void
;
updateDeviceTemperature
:
(
id
:
string
,
temp
:
number
)
=>
void
;
updateZone
:
(
installationId
:
string
,
id
:
string
,
data
:
any
)
=>
void
;
}
Parameters
config
:
FirebaseConfig
= FirebaseConfig.EquationConnect
Returns
{
auth
:
Auth
;
cleanUserTokens
:
(
uid
:
string
)
=>
Promise
<
void
>
;
database
:
Database
;
getDevice
:
(
id
:
string
)
=>
Promise
<
DeviceType
>
;
getInstallation
:
(
id
:
string
)
=>
Promise
<
InstallationType
>
;
getInstallations
:
(
uid
:
string
)
=>
Promise
<
InstallationsType
>
;
getUser
:
(
uid
:
string
)
=>
Promise
<
any
>
;
getZone
:
(
installationId
:
string
,
id
:
string
)
=>
Promise
<
ZoneOverviewType
>
;
getZonePreset
:
(
installationId
:
string
,
id
:
string
,
)
=>
Promise
<
DeviceStatus
|
null
>
;
login
:
(
email
:
string
,
password
:
string
)
=>
Promise
<
User
>
;
logout
:
(
uid
?:
string
)
=>
Promise
<
void
>
;
setDeviceBacklight
:
(
id
:
string
,
backlight
:
number
)
=>
void
;
setDeviceBacklightOn
:
(
id
:
string
,
backlight
:
number
)
=>
void
;
setDeviceBlockLocal
:
(
id
:
string
,
blocked
:
boolean
)
=>
void
;
setDeviceBlockRemote
:
(
id
:
string
,
blocked
:
boolean
)
=>
void
;
setDeviceBuzzer
:
(
id
:
string
,
enabled
:
boolean
)
=>
void
;
setDeviceIceMode
:
(
id
:
string
,
enabled
:
boolean
)
=>
void
;
setDeviceMode
:
(
id
:
string
,
mode
:
DeviceMode
)
=>
void
;
setDeviceNominalPower
:
(
id
:
string
,
nominal_power
:
number
)
=>
void
;
setDevicePilotMode
:
(
id
:
string
,
enabled
:
boolean
)
=>
void
;
setDevicePIRMode
:
(
id
:
string
,
enabled
:
boolean
)
=>
void
;
setDevicePower
:
(
id
:
string
,
power
:
boolean
)
=>
void
;
setDevicePowerOff
:
(
id
:
string
)
=>
void
;
setDevicePowerOn
:
(
id
:
string
)
=>
void
;
setDevicePreset
:
(
id
:
string
,
status
:
DeviceStatus
)
=>
Promise
<
void
>
;
setDeviceTimer
:
(
id
:
string
,
timerMode
:
boolean
,
timerTemp
:
number
,
timerTime
:
number
,
)
=>
void
;
setDeviceUserMode
:
(
id
:
string
,
userMode
:
boolean
,
umMinTemp
:
number
,
umMaxTemp
:
number
,
umPassword
:
string
,
)
=>
void
;
setDeviceWindowOpenMode
:
(
id
:
string
,
enabled
:
boolean
)
=>
void
;
setInstallationPower
:
(
installationId
:
string
,
power
:
boolean
,
)
=>
Promise
<
void
>
;
setZoneBlockLocal
:
(
installationId
:
string
,
id
:
string
,
blocked
:
boolean
,
)
=>
Promise
<
void
>
;
setZoneBlockRemote
:
(
installationId
:
string
,
id
:
string
,
blocked
:
boolean
,
)
=>
Promise
<
void
>
;
setZoneBuzzer
:
(
installationId
:
string
,
id
:
string
,
enabled
:
boolean
,
)
=>
Promise
<
void
>
;
setZoneIceMode
:
(
installationId
:
string
,
id
:
string
,
enabled
:
boolean
,
)
=>
Promise
<
void
>
;
setZoneMode
:
(
installationId
:
string
,
id
:
string
,
mode
:
DeviceMode
,
)
=>
Promise
<
void
>
;
setZonePower
:
(
installationId
:
string
,
id
:
string
,
power
:
boolean
,
)
=>
Promise
<
void
>
;
setZonePowerOff
:
(
installationId
:
string
,
id
:
string
)
=>
void
;
setZonePowerOn
:
(
installationId
:
string
,
id
:
string
)
=>
void
;
setZonePreset
:
(
installationId
:
string
,
id
:
string
,
status
:
DeviceStatus
,
)
=>
Promise
<
void
>
;
updateDevice
:
(
id
:
string
,
data
:
any
)
=>
void
;
updateDeviceTemperature
:
(
id
:
string
,
temp
:
number
)
=>
void
;
updateZone
:
(
installationId
:
string
,
id
:
string
,
data
:
any
)
=>
void
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
equation-connect
Loading...