@acuteinfo/common-screens 1.0.38 → 1.0.39
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { NavigateFunction } from "react-router-dom";
|
|
3
|
+
import { UpdateNewPasswordFnType, VerifyOtpForPWDResetFnType, VerifyUsernameMobileFnType } from "pages/types";
|
|
3
4
|
export declare const ValidatePassword: (pwd: any) => "" | "Password is Required" | "Password must be 8-16 characters long, containing at least one uppercase letter, one lowercase letter, one number, and one special character, with no spaces allowed." | "Password must be between 8 and 16 characters long.";
|
|
4
5
|
interface ForgotPasswordControllerProps {
|
|
5
6
|
bannerDetails: {
|
|
@@ -9,9 +10,9 @@ interface ForgotPasswordControllerProps {
|
|
|
9
10
|
};
|
|
10
11
|
logoUrl?: string;
|
|
11
12
|
logoTitle?: string;
|
|
12
|
-
updatenewPassword:
|
|
13
|
-
veirfyUsernameandMobileNo:
|
|
14
|
-
verifyOTPForPWDReset:
|
|
13
|
+
updatenewPassword: UpdateNewPasswordFnType;
|
|
14
|
+
veirfyUsernameandMobileNo: VerifyUsernameMobileFnType;
|
|
15
|
+
verifyOTPForPWDReset: VerifyOtpForPWDResetFnType;
|
|
15
16
|
LanguageComponent?: React.ComponentType<any>;
|
|
16
17
|
screenFlag: "password" | "totp";
|
|
17
18
|
navigate: NavigateFunction;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import "./styles.css";
|
|
3
3
|
import { NavigateFunction } from "react-router-dom";
|
|
4
|
+
import { BranchSelectionGridDataFnType, GetMenuDataFnType } from "pages/types";
|
|
4
5
|
interface BranchSelectionWrapperProps {
|
|
5
6
|
selectionMode: "S" | "C";
|
|
6
7
|
authState: any;
|
|
7
|
-
isBranchSelectedFn:
|
|
8
|
-
isLoggedInFn:
|
|
9
|
-
logoutFn:
|
|
8
|
+
isBranchSelectedFn: () => boolean;
|
|
9
|
+
isLoggedInFn: () => boolean;
|
|
10
|
+
logoutFn: () => void;
|
|
10
11
|
branchSelectFn: Function;
|
|
11
|
-
BranchSelectionGridDataApiFn:
|
|
12
|
-
GetMenuDataApiFn:
|
|
12
|
+
BranchSelectionGridDataApiFn: BranchSelectionGridDataFnType;
|
|
13
|
+
GetMenuDataApiFn: GetMenuDataFnType;
|
|
13
14
|
sideImage?: string;
|
|
14
15
|
logos: any;
|
|
15
16
|
logo?: string;
|
package/dist/pages/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface GetMenuDataFnType {
|
|
2
2
|
(body: {
|
|
3
3
|
BASE_COMP_CD: string;
|
|
4
4
|
BASE_BRANCH_CD: string;
|
|
@@ -13,7 +13,7 @@ export interface MenuDataFnType {
|
|
|
13
13
|
IS_UPD_DEF_BRANCH: string;
|
|
14
14
|
COMP_BASE_BRANCH_CD: string;
|
|
15
15
|
selectionMode: string;
|
|
16
|
-
}): any
|
|
16
|
+
}): Promise<any[]>;
|
|
17
17
|
}
|
|
18
18
|
export interface VerifyUsernamePassFnType {
|
|
19
19
|
(username: string, password: string): Promise<{
|
|
@@ -51,3 +51,32 @@ export interface ResetPasswordFnType {
|
|
|
51
51
|
access_token?: any;
|
|
52
52
|
}>;
|
|
53
53
|
}
|
|
54
|
+
export interface UpdateNewPasswordFnType {
|
|
55
|
+
(transactionId: string, username: string, password: string): Promise<{
|
|
56
|
+
status: string;
|
|
57
|
+
data: any;
|
|
58
|
+
message: string;
|
|
59
|
+
messageDetails: string;
|
|
60
|
+
}>;
|
|
61
|
+
}
|
|
62
|
+
export interface VerifyUsernameMobileFnType {
|
|
63
|
+
(username: string, MobileNo: string, screenFlag: string): Promise<{
|
|
64
|
+
status: string;
|
|
65
|
+
data: any;
|
|
66
|
+
message: string;
|
|
67
|
+
messageDetails: string;
|
|
68
|
+
responseType?: string;
|
|
69
|
+
access_token?: string;
|
|
70
|
+
}>;
|
|
71
|
+
}
|
|
72
|
+
export interface VerifyOtpForPWDResetFnType {
|
|
73
|
+
(transactionId: string, username: string, otpnumber: string, auth_Type: string, screenFlag: string): Promise<{
|
|
74
|
+
status: string;
|
|
75
|
+
data: any;
|
|
76
|
+
message: string;
|
|
77
|
+
messageDetails: string;
|
|
78
|
+
}>;
|
|
79
|
+
}
|
|
80
|
+
export interface BranchSelectionGridDataFnType {
|
|
81
|
+
(): Promise<any[]>;
|
|
82
|
+
}
|