@dodi-smart/nuki-graphql-api
Version:
Nuki GraphQL API
67 lines • 2.21 kB
TypeScript
import type { SmartlockLog_OpenerLog } from './SmartlockLog_OpenerLog';
export type SmartlockLog = {
/**
* The unique id for the smartlock log
*/
id: string;
/**
* The smartlock id
*/
smartlockId: number;
/**
* The device type: 0 .. smartlock and box, 2 .. opener, 3 .. smartdoor
*/
deviceType: SmartlockLog.deviceType;
/**
* The id of the linked account user
*/
accountUserId?: number;
/**
* The id of the linked smartlock auth
*/
authId?: string;
/**
* The name
*/
name: string;
/**
* The action: 1 .. unlock, 2 .. lock, 3 .. unlatch, 4 .. lock'n'go, 5 .. lock'n'go with unlatch, 208 .. door warning ajar, 209 door warning status mismatch, 224 .. doorbell recognition (only Opener), 240 .. door opened, 241 .. door closed, 242 .. door sensor jammed, 243 .. firmware update, 250 .. door log enabled, 251 .. door log disabled, 252 .. initialization, 253 .. calibration, 254 .. log enabled, 255 .. log disabled
*/
action: number;
/**
* The trigger: 0 .. system, 1 .. manual, 2 .. button, 3 .. automatic, 4 .. web, 5 .. app, 6 .. auto lock, 7 .. accessory, 255 .. keypad
*/
trigger: number;
/**
* The completion state: 0 .. Success, 1 .. Motor blocked, 2 .. Canceled, 3 .. Too recent, 4 .. Busy, 5 .. Low motor voltage, 6 .. Clutch failure, 7 .. Motor power failure, 8 .. Incomplete, 9 .. Rejected, 10 .. Rejected night mode, 254 .. Other error, 255 .. Unknown error
*/
state: number;
/**
* True if it was an auto unlock
*/
autoUnlock: boolean;
/**
* The log date
*/
date: string;
openerLog?: SmartlockLog_OpenerLog;
/**
* The door sensor warning ajar timeout (in minutes, only for action = 208)
*/
ajarTimeout?: number;
/**
* The source of action: 1 .. Keypad code, 2 .. Fingerprint, 0 .. Default
*/
source?: number;
};
export declare namespace SmartlockLog {
/**
* The device type: 0 .. smartlock and box, 2 .. opener, 3 .. smartdoor
*/
enum deviceType {
'_0' = 0,
'_2' = 2,
'_3' = 3
}
}
//# sourceMappingURL=SmartlockLog.d.ts.map