magic-helper
Version:
this is magic helper
32 lines • 852 B
TypeScript
export type ActionType = 'scan' | 'navigate' | 'openDoor' | '/Terminus/Future/Auth/Req' | any;
export interface ActionParams {
actionType: ActionType;
appid?: string;
targetUrl: string;
data?: any;
}
export type CallBack = (...data: any[]) => void;
export type ScanParams = {
targetUrl: string;
fail?: CallBack;
};
export type NavigateParams = {
appid: string;
targetUrl: string;
};
export type DoorOpenType = 'bluetooth' | 'remote' | 'face_recognition' | 'access_cards' | 'QR_code' | 'SIP';
export interface DoorConfig {
openType: DoorOpenType;
deviceName: string;
mac: string;
password: string;
deviceId: string;
productId: string;
phone: string;
[key: string]: any;
}
export interface OpenDoorConfig {
info: DoorConfig;
targetUrl?: string;
}
//# sourceMappingURL=index.d.ts.map