@acuteinfo/common-screens 1.0.59 → 1.0.60

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,5 @@
1
1
  /// <reference types="react" />
2
- import { OTPResendRequestFnType, ResetPasswordFnType, VerifyOtpFnType, VerifyUsernamePassFnType } from "pages/types";
2
+ import { OTPResendRequestFnType, ResetPasswordFnType, ValidatePasswordFnType, VerifyOtpFnType, VerifyUsernamePassFnType } from "pages/types";
3
3
  interface AuthControllerProps {
4
4
  bannerDetails: {
5
5
  bannerImg: string;
@@ -10,6 +10,7 @@ interface AuthControllerProps {
10
10
  logoTitle?: string;
11
11
  loginFn: Function;
12
12
  veirfyUsernameandPassword: VerifyUsernamePassFnType;
13
+ validatePasswordFn: ValidatePasswordFnType;
13
14
  verifyOTP: VerifyOtpFnType;
14
15
  OTPResendRequest: OTPResendRequestFnType;
15
16
  ResetPassword: ResetPasswordFnType;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { NavigateFunction } from "react-router-dom";
3
- import { UpdateNewPasswordFnType, VerifyOtpForPWDResetFnType, VerifyUsernameMobileFnType } from "pages/types";
3
+ import { UpdateNewPasswordFnType, ValidatePasswordFnType, VerifyOtpForPWDResetFnType, VerifyUsernameMobileFnType } from "pages/types";
4
4
  interface ForgotPasswordControllerProps {
5
5
  bannerDetails: {
6
6
  bannerImg: string;
@@ -11,6 +11,7 @@ interface ForgotPasswordControllerProps {
11
11
  logoTitle?: string;
12
12
  updatenewPassword: UpdateNewPasswordFnType;
13
13
  veirfyUsernameandMobileNo: VerifyUsernameMobileFnType;
14
+ validatePasswordFn: ValidatePasswordFnType;
14
15
  verifyOTPForPWDReset: VerifyOtpForPWDResetFnType;
15
16
  LanguageComponent?: React.ComponentType<any>;
16
17
  screenFlag: "password" | "totp";
@@ -1,4 +1,4 @@
1
- export declare const PasswordRotation: ({ classes, ResetPassword, open, username, accessToken, tokenType, handleClose, }: {
1
+ export declare const PasswordRotation: ({ classes, ResetPassword, open, username, accessToken, tokenType, handleClose, validatePasswordFn }: {
2
2
  classes: any;
3
3
  ResetPassword: any;
4
4
  open: any;
@@ -6,4 +6,5 @@ export declare const PasswordRotation: ({ classes, ResetPassword, open, username
6
6
  accessToken: any;
7
7
  tokenType: any;
8
8
  handleClose: any;
9
+ validatePasswordFn: any;
9
10
  }) => import("react/jsx-runtime").JSX.Element;
@@ -77,6 +77,16 @@ export interface VerifyOtpForPWDResetFnType {
77
77
  messageDetails: string;
78
78
  }>;
79
79
  }
80
+ export interface ValidatePasswordFnType {
81
+ (request: {
82
+ USER_ID: string;
83
+ PASSWORD: string;
84
+ SCREEN_REF: "LOGIN" | "FORGET_PW";
85
+ }): Promise<{
86
+ validateStatus: string;
87
+ validateData: any;
88
+ }>;
89
+ }
80
90
  export interface BranchSelectionGridDataFnType {
81
91
  (): Promise<any[]>;
82
92
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acuteinfo/common-screens",
3
- "version": "1.0.59",
3
+ "version": "1.0.60",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "react",