-
Notifications
You must be signed in to change notification settings - Fork 0
/
nopwd-vue3-library.d.ts
76 lines (68 loc) · 2.2 KB
/
nopwd-vue3-library.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
declare module '@marketally/nopwd-vue3-library' {
import { DefineComponent, Ref } from 'vue';
type EmitType = {
(event: 'error', args: string): void;
(event: 'redirect', args: string): void;
(event: 'status', args: number): void;
(event: 'user', args: string): void;
};
interface NoPWDProps {
isMobileScreen?: boolean;
primaryDark?: string;
primaryLight?: string;
secondaryDark?: string;
secondaryLight?: string;
hideText?: Ref<boolean>;
isDark?: boolean;
positionLight?: string;
positionDark?: string;
accentColor?: string;
logoDark?: string;
logoLight?: string;
configDev?: string;
configProduction?: string;
configApp?: string;
configLogin?: string;
configRequest?: string;
configVerify?: string;
configConfirm?: string;
configLogout?: string;
}
interface PreloginProps {
width?: string;
height?: string;
mobileWidth?: string;
mobileHeight?: string;
disabled?: boolean;
dark?: boolean;
}
interface UseNoPWDResult {
auth: Ref<number>;
success: Ref<boolean>;
code: Ref<number>;
IDLogin: Ref<string>;
QRCode: Ref<string>;
Message: Ref<string>;
user_data: Ref<string>;
IsDark: Ref<boolean>;
is_error: Ref<boolean>;
loginQRCode: () => Promise<number | undefined>;
checkAccess: () => Promise<void>;
checkQRLogin: () => Promise<number | undefined>;
logout: () => Promise<void>;
readMessage: () => string;
config: () => { headers: { [key: string]: string } };
setUrls: (request: string, verify: string, confirm: string, logout: string) => void;
setRoutes: (app: string, login: string) => void;
setBase: (dev: string, prod: string) => void;
}
function useNoPWD(emit?: EmitType): UseNoPWDResult;
const LoginComponent: DefineComponent<NoPWDProps>;
const PreloginComponent: DefineComponent<PreloginProps>;
export default LoginComponent;
export {
LoginComponent as Login,
PreloginComponent as Prelogin,
useNoPWD
};
}