@service_laboratory/auth 2.0.11 → 2.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +33 -1
- package/dist/index.js +2039 -1876
- package/dist/index.umd.cjs +17 -17
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,20 @@ export declare interface AccountUser {
|
|
|
20
20
|
is_email_verified: boolean;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
export declare function ActivateAccountForm(props: ActivateAccountFormProps): JSX.Element;
|
|
24
|
+
|
|
25
|
+
declare interface ActivateAccountFormProps {
|
|
26
|
+
submit: ({ code }: {
|
|
27
|
+
code: string;
|
|
28
|
+
}) => void;
|
|
29
|
+
activateAccountTitle: string;
|
|
30
|
+
codeLabel: string;
|
|
31
|
+
activateAccountDescription: string;
|
|
32
|
+
submitButtonLabel: string;
|
|
33
|
+
form: any;
|
|
34
|
+
loginLinkComponent?: () => ReactNode;
|
|
35
|
+
}
|
|
36
|
+
|
|
23
37
|
declare interface ActivateRequest {
|
|
24
38
|
code: string;
|
|
25
39
|
}
|
|
@@ -31,7 +45,7 @@ export declare class Auth {
|
|
|
31
45
|
initAuthData(): void;
|
|
32
46
|
load(): Promise<void>;
|
|
33
47
|
login(values: LoginRequest): Promise<any>;
|
|
34
|
-
|
|
48
|
+
signup(values: RegisterRequest): Promise<AxiosResponse<any, any, {}>>;
|
|
35
49
|
activate(values: ActivateRequest): Promise<void>;
|
|
36
50
|
logout(): void;
|
|
37
51
|
startResetPassword(values: StartResetPasswordRequest): Promise<AxiosResponse<any, any, {}>>;
|
|
@@ -90,6 +104,24 @@ declare interface Role {
|
|
|
90
104
|
permissions: Permission[];
|
|
91
105
|
}
|
|
92
106
|
|
|
107
|
+
export declare function SignUpForm(props: SignUpFormProps): JSX.Element;
|
|
108
|
+
|
|
109
|
+
declare interface SignUpFormProps {
|
|
110
|
+
submit: ({ email, password }: {
|
|
111
|
+
email: string;
|
|
112
|
+
password: string;
|
|
113
|
+
}) => void;
|
|
114
|
+
signUpFormTitle: string;
|
|
115
|
+
signUpFormDescription: string;
|
|
116
|
+
emailLabel: string;
|
|
117
|
+
passwordLabel: string;
|
|
118
|
+
forgotPasswordMessage: string;
|
|
119
|
+
submitButtonLabel: string;
|
|
120
|
+
form: any;
|
|
121
|
+
resetPasswordLinkComponent?: () => ReactNode;
|
|
122
|
+
loginLinkComponent?: () => ReactNode;
|
|
123
|
+
}
|
|
124
|
+
|
|
93
125
|
declare interface StartResetPasswordRequest {
|
|
94
126
|
email: string;
|
|
95
127
|
}
|