Enumeration Member | Value | Defined in |
---|---|---|
boost |
2 |
src/enums.ts:11 |
off |
0 |
src/enums.ts:12 |
vacation |
1 |
src/enums.ts:13 |
Enumeration Member | Value | Defined in |
---|---|---|
cft |
0 |
src/enums.ts:2 |
cft1 |
4 |
src/enums.ts:3 |
cft2 |
5 |
src/enums.ts:4 |
eco |
1 |
src/enums.ts:5 |
fro |
2 |
src/enums.ts:6 |
stop |
3 |
src/enums.ts:7 |
Enumeration Member | Value | Defined in |
---|---|---|
off |
0 |
src/enums.ts:17 |
on |
1 |
src/enums.ts:18 |
new DeviceFacade(manager: FacadeManager, instance: DeviceModel): DeviceFacade
Parameter | Type |
---|---|
manager |
FacadeManager |
instance |
DeviceModel |
Property | Modifier | Type | Defined in |
---|---|---|---|
api |
readonly |
HeatzyAPI |
src/facades/device.ts:28 |
id |
readonly |
string |
src/facades/device.ts:30 |
isFirstGen |
readonly |
boolean |
src/facades/device.ts:32 |
isFirstPilot |
readonly |
boolean |
src/facades/device.ts:34 |
isGlow |
readonly |
boolean |
src/facades/device.ts:36 |
get cftTempH(): undefined | number
undefined
| number
IDeviceFacade
.cftTempH
get cftTempL(): undefined | number
undefined
| number
IDeviceFacade
.cftTempL
get data(): Attrs
IDeviceFacade
.data
get derogMode(): undefined | DerogMode
undefined
| DerogMode
IDeviceFacade
.derogMode
get derogSettings(): undefined | DerogSettings
undefined
| DerogSettings
IDeviceFacade
.derogSettings
get derogTime(): undefined | number
undefined
| number
IDeviceFacade
.derogTime
get protected instance(): DeviceModel
get lockSwitch(): undefined | Switch
undefined
| Switch
IDeviceFacade
.lockSwitch
get mode():
| "cft"
| "cft1"
| "cft2"
| "eco"
| "fro"
| "stop"
| "cft"
| "cft1"
| "cft2"
| "eco"
| "fro"
| "stop"
IDeviceFacade
.mode
get name(): string
string
IDeviceFacade
.name
get timerSwitch(): undefined | Switch
undefined
| Switch
IDeviceFacade
.timerSwitch
get(): Promise<Attrs>
Promise
<Attrs
>
IDeviceFacade
.get
set(data: BaseAttrs): Promise<BaseAttrs>
Parameter | Type |
---|---|
data |
BaseAttrs |
Promise
<BaseAttrs
>
IDeviceFacade
.set
Property | Modifier | Type | Defined in |
---|---|---|---|
id |
readonly |
string |
src/models/device.ts:10 |
isFirstGen |
public |
boolean |
src/models/device.ts:18 |
isFirstPilot |
public |
boolean |
src/models/device.ts:20 |
isGlow |
public |
boolean |
src/models/device.ts:22 |
name |
readonly |
string |
src/models/device.ts:12 |
productKey |
readonly |
string |
src/models/device.ts:14 |
productName |
readonly |
string |
src/models/device.ts:16 |
get data(): Attrs
IDeviceModel
.data
update(data: Partial<Attrs>): void
Parameter | Type |
---|---|
data |
Partial <Attrs > |
void
IDeviceModel
.update
static getAll(): DeviceModel[]
static getById(id: string): undefined | DeviceModel
Parameter | Type |
---|---|
id |
string |
undefined
| DeviceModel
static getByName(name: string): undefined | DeviceModel
Parameter | Type |
---|---|
name |
string |
undefined
| DeviceModel
static sync(devices: readonly Device[], data: Record<string, Attrs>): void
Parameter | Type |
---|---|
devices |
readonly Device [] |
data |
Record <string , Attrs > |
void
new FacadeManager(api: HeatzyAPI): FacadeManager
Parameter | Type |
---|---|
api |
HeatzyAPI |
Property | Modifier | Type | Defined in |
---|---|---|---|
api |
readonly |
HeatzyAPI |
src/facades/manager.ts:7 |
get(): undefined
undefined
get(instance: DeviceModel): DeviceFacade
Parameter | Type |
---|---|
instance |
DeviceModel |
new HeatzyAPI(config: APIConfig): HeatzyAPI
Parameter | Type |
---|---|
config |
APIConfig |
Property | Modifier | Type | Defined in |
---|---|---|---|
onSync? |
readonly |
() => Promise <void > |
src/services/api.ts:40 |
settingManager? |
readonly |
SettingManager |
src/services/api.ts:42 |
authenticate(data?: LoginPostData): Promise<boolean>
Parameter | Type |
---|---|
data ? |
LoginPostData |
Promise
<boolean
>
IAPI
.authenticate
bindings(): Promise<{
data: Bindings;
}>
Promise
<{
data
: Bindings
;
}>
Name | Type | Defined in |
---|---|---|
data |
Bindings |
src/services/api.ts:129 |
IAPI
.bindings
clearSync(): void
void
IAPI
.clearSync
control(__namedParameters: {
id: string;
postData: DevicePostDataAny;
}): Promise<{
data: Data;
}>
Parameter | Type |
---|---|
__namedParameters |
object |
__namedParameters.id |
string |
__namedParameters.postData |
DevicePostDataAny |
Promise
<{
data
: Data
;
}>
Name | Type | Defined in |
---|---|---|
data |
Data |
src/services/api.ts:146 |
IAPI
.control
deviceData(__namedParameters: {
id: string;
}): Promise<{
data: DeviceData;
}>
Parameter | Type |
---|---|
__namedParameters |
object |
__namedParameters.id |
string |
Promise
<{
data
: DeviceData
;
}>
Name | Type | Defined in |
---|---|---|
data |
DeviceData |
src/services/api.ts:154 |
IAPI
.deviceData
fetch(): Promise<readonly Device[]>
Promise
<readonly Device
[]>
IAPI
.fetch
login(__namedParameters: {
postData: LoginPostData;
}): Promise<{
data: LoginData;
}>
Parameter | Type |
---|---|
__namedParameters |
object |
__namedParameters.postData |
LoginPostData |
Promise
<{
data
: LoginData
;
}>
Name | Type | Defined in |
---|---|---|
data |
LoginData |
src/services/api.ts:162 |
IAPI
.login
static create(config: APIConfig): Promise<HeatzyAPI>
Parameter | Type |
---|---|
config |
APIConfig |
Promise
<HeatzyAPI
>
Partial
<LoginPostData
>
Property | Modifier | Type | Inherited from | Defined in |
---|---|---|---|---|
autoSyncInterval? |
public |
null | number |
- | src/services/interfaces.ts:39 |
language? |
public |
string |
- | src/services/interfaces.ts:40 |
logger? |
public |
Logger |
- | src/services/interfaces.ts:41 |
onSync? |
public |
() => Promise <void > |
- | src/services/interfaces.ts:42 |
password? |
readonly |
string |
Partial.password |
src/types.ts:12 |
settingManager? |
public |
SettingManager |
- | src/services/interfaces.ts:43 |
shouldVerifySSL? |
public |
boolean |
- | src/services/interfaces.ts:44 |
timezone? |
public |
string |
- | src/services/interfaces.ts:45 |
username? |
readonly |
string |
Partial.username |
src/types.ts:13 |
Property | Type | Defined in |
---|---|---|
expireAt? |
null | string |
src/services/interfaces.ts:12 |
password? |
null | string |
src/services/interfaces.ts:13 |
token? |
null | string |
src/services/interfaces.ts:14 |
username? |
null | string |
src/services/interfaces.ts:15 |
Property | Modifier | Type | Defined in |
---|---|---|---|
cft_tempH? |
readonly |
number |
src/types.ts:37 |
cft_tempL? |
readonly |
number |
src/types.ts:38 |
derog_mode? |
readonly |
DerogMode |
src/types.ts:39 |
derog_time? |
readonly |
number |
src/types.ts:40 |
lock_switch? |
readonly |
Switch |
src/types.ts:41 |
mode? |
readonly |
| Mode | "cft" | "cft1" | "cft2" | "eco" | "fro" | "stop" |
src/types.ts:42 |
timer_switch? |
readonly |
Switch |
src/types.ts:43 |
Property | Modifier | Type | Defined in |
---|---|---|---|
devices |
readonly |
readonly Device [] |
src/types.ts:29 |
Property | Type | Defined in |
---|---|---|
derogEnd |
null | string |
src/facades/interfaces.ts:6 |
derogTimeBoost |
number |
src/facades/interfaces.ts:7 |
derogTimeVacation |
number |
src/facades/interfaces.ts:8 |
Property | Modifier | Type | Defined in |
---|---|---|---|
dev_alias |
readonly |
string |
src/types.ts:22 |
did |
readonly |
string |
src/types.ts:23 |
product_key |
readonly |
string |
src/types.ts:24 |
product_name |
readonly |
string |
src/types.ts:25 |
Property | Modifier | Type | Defined in |
---|---|---|---|
attr |
readonly |
Attrs |
src/types.ts:56 |
Property | Modifier | Type | Defined in |
---|---|---|---|
attrs |
readonly |
BaseAttrs |
src/types.ts:47 |
Property | Modifier | Type | Defined in |
---|---|---|---|
detail_message |
readonly |
null | string |
src/types.ts:7 |
error_message |
readonly |
null | string |
src/types.ts:8 |
Property | Modifier | Type | Defined in |
---|---|---|---|
raw |
readonly |
[1 , 1 , Mode ] |
src/types.ts:33 |
Property | Type | Defined in |
---|---|---|
authenticate |
(data ?: LoginPostData ) => Promise <boolean > |
src/services/interfaces.ts:49 |
bindings |
() => Promise <{ data : Bindings ; }> |
src/services/interfaces.ts:50 |
clearSync |
() => void |
src/services/interfaces.ts:51 |
control |
(__namedParameters : { id : string ; postData : DevicePostDataAny ; }) => Promise <{ data : Data ; }> |
src/services/interfaces.ts:52 |
deviceData |
(__namedParameters : { id : string ; }) => Promise <{ data : DeviceData ; }> |
src/services/interfaces.ts:59 |
fetch |
() => Promise <readonly Device []> |
src/services/interfaces.ts:60 |
login |
(__namedParameters : { postData : LoginPostData ; }) => Promise <{ data : LoginData ; }> |
src/services/interfaces.ts:61 |
onSync? |
() => Promise <void > |
src/services/interfaces.ts:66 |
Property | Type | Defined in |
---|---|---|
data |
Attrs |
src/models/interfaces.ts:4 |
id |
string |
src/models/interfaces.ts:5 |
isFirstGen |
boolean |
src/models/interfaces.ts:6 |
isFirstPilot |
boolean |
src/models/interfaces.ts:7 |
isGlow |
boolean |
src/models/interfaces.ts:8 |
name |
string |
src/models/interfaces.ts:9 |
Property | Type | Inherited from | Defined in |
---|---|---|---|
data |
Attrs |
IBaseDeviceModel .data |
src/models/interfaces.ts:4 |
id |
string |
IBaseDeviceModel .id |
src/models/interfaces.ts:5 |
isFirstGen |
boolean |
IBaseDeviceModel .isFirstGen |
src/models/interfaces.ts:6 |
isFirstPilot |
boolean |
IBaseDeviceModel .isFirstPilot |
src/models/interfaces.ts:7 |
isGlow |
boolean |
IBaseDeviceModel .isGlow |
src/models/interfaces.ts:8 |
name |
string |
IBaseDeviceModel .name |
src/models/interfaces.ts:9 |
productKey |
string |
- | src/models/interfaces.ts:13 |
productName |
string |
- | src/models/interfaces.ts:14 |
update |
(data : Attrs ) => void |
- | src/models/interfaces.ts:15 |
Property | Type | Defined in |
---|---|---|
error |
(message ?: any , ...optionalParams : any []) => void |
src/services/interfaces.ts:34 |
log |
(message ?: any , ...optionalParams : any []) => void |
src/services/interfaces.ts:35 |
Property | Modifier | Type | Defined in |
---|---|---|---|
expire_at |
readonly |
number |
src/types.ts:17 |
token |
readonly |
string |
src/types.ts:18 |
Property | Modifier | Type | Defined in |
---|---|---|---|
password |
readonly |
string |
src/types.ts:12 |
username |
readonly |
string |
src/types.ts:13 |
Property | Type | Defined in |
---|---|---|
get |
<K >(key : K ) => APISettings [K ] |
src/services/interfaces.ts:29 |
set |
<K >(key : K , value : APISettings [K ]) => void |
src/services/interfaces.ts:30 |
type Attrs: Omit<BaseAttrs, "mode"> & {
mode: keyof typeof Mode;
};
Name | Type | Defined in |
---|---|---|
mode |
keyof typeof Mode |
src/types.ts:53 |
type Data: Record<string, never>;
type DevicePostDataAny: DevicePostData | FirstGenDevicePostData;
const UNIT: 1 = 1
function syncDevices<T>(
target: (...args: any[]) => Promise<T>,
_context: ClassMethodDecoratorContext<
unknown,
(this: unknown, ...args: any) => any
>,
): (...args: unknown[]) => Promise<T>
Type Parameter |
---|
T extends readonly Device [] | BaseAttrs | Attrs |
Parameter | Type |
---|---|
target |
(...args : any []) => Promise <T > |
_context |
ClassMethodDecoratorContext <unknown , (this : unknown , ...args : any ) => any > |
Function
Parameter | Type |
---|---|
...args |
unknown [] |
Promise
<T
>
src/decorators/syncDevices.ts:5
function updateDevice<T>(
target: (...args: any[]) => Promise<T>,
_context: ClassMethodDecoratorContext<
unknown,
(this: unknown, ...args: any) => any
>,
): (...args: unknown[]) => Promise<T>
Type Parameter |
---|
T extends BaseAttrs | Attrs |
Parameter | Type |
---|---|
target |
(...args : any []) => Promise <T > |
_context |
ClassMethodDecoratorContext <unknown , (this : unknown , ...args : any ) => any > |
Function
Parameter | Type |
---|---|
...args |
unknown [] |
Promise
<T
>