-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BA: updates authentication package v1.1.2
- Loading branch information
1 parent
73b70de
commit 61d7685
Showing
26 changed files
with
68 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...ules/access/useRecoverPassword/types.d.ts → ...odules/access/useRecoverPassword/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
import { UseMutationOptions } from '@tanstack/react-query' | ||
|
||
import AuthApi from '../../../services/auth' | ||
import { IForgotPasswordRequest } from '../../../types/auth' | ||
|
||
type ApiClass = Pick<typeof AuthApi, 'recoverPassword'> | ||
|
||
export interface IUseRecoverPassword { | ||
// TODO: refactor types | ||
validationSchema?: any | ||
defaultValues?: IForgotPasswordRequest | ||
options?: UseMutationOptions<void, unknown, IForgotPasswordRequest, any> | ||
ApiClass?: ApiClass | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...odules/access/useResetPassword/types.d.ts → .../modules/access/useResetPassword/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
import { UseMutationOptions } from '@tanstack/react-query' | ||
|
||
import AuthApi from '../../../services/auth' | ||
import { IResetPasswordRequest } from '../../../types/auth' | ||
|
||
type ApiClass = Pick<typeof AuthApi, 'resetPassword'> | ||
|
||
export interface IUseResetPassword { | ||
// TODO: refactor types | ||
validationSchema?: any | ||
defaultValues?: IResetPasswordRequest | ||
options?: UseMutationOptions<void, unknown, IResetPasswordRequest, any> | ||
ApiClass?: ApiClass | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
...ation/modules/access/useSignUp/types.d.ts → ...ication/modules/access/useSignUp/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
import { UseMutationOptions } from '@tanstack/react-query' | ||
|
||
import AuthApi from '../../../services/auth' | ||
import { IRegisterRequest } from '../../../types/auth' | ||
|
||
export interface IUseSignUp<TRegisterRequest = IRegisterRequest, TRegisterResponse> { | ||
type ApiClass = Pick<typeof AuthApi, 'register'> | ||
|
||
export interface IUseSignUp<TRegisterRequest = IRegisterRequest, TRegisterResponse = void> { | ||
// TODO: refactor types | ||
validationSchema?: any | ||
defaultValues?: TRegisterRequest | ||
ApiClass?: ApiClass | ||
options?: UseMutationOptions<TRegisterResponse, unknown, TRegisterRequest, any> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...ion/modules/mfa/useMfaActivate/types.d.ts → ...ation/modules/mfa/useMfaActivate/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import { UseMutationOptions } from '@tanstack/react-query' | ||
|
||
import MfaApi from '../../../services/mfa' | ||
import { IMfaActivationResponse, IMfaRequest } from '../../../types/mfa' | ||
|
||
type ApiClass = Pick<typeof MfaApi, 'activate'> | ||
|
||
export interface IUseMfaActivate { | ||
options?: UseMutationOptions<IMfaActivationResponse, unknown, Pick<IMfaRequest, 'method'>, any> | ||
ApiClass?: ApiClass | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...ules/mfa/useMfaActivateConfirm/types.d.ts → ...odules/mfa/useMfaActivateConfirm/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
import { UseMutationOptions } from '@tanstack/react-query' | ||
|
||
import MfaApi from '../../../services/mfa' | ||
import { IMfaConfirmationResponse, IMfaRequest, MfaMethod } from '../../../types/mfa' | ||
|
||
type ApiClass = Pick<typeof MfaApi, 'confirmActivation'> | ||
|
||
export interface IUseMfaActivateConfirm { | ||
// TODO: refactor types | ||
validationSchema?: any | ||
defaultValues?: Partial<IMfaRequest> | ||
options?: UseMutationOptions<IMfaConfirmationResponse, unknown, IMfaRequest, any> | ||
ApiClass?: ApiClass | ||
method: MfaMethod | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...odules/mfa/useMfaConfiguration/types.d.ts → .../modules/mfa/useMfaConfiguration/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import { UseQueryOptions } from '@tanstack/react-query' | ||
|
||
import MfaApi from '../../../services/mfa' | ||
import { IMfaConfigurationResponse } from '../../../types/mfa' | ||
|
||
type ApiClass = Pick<typeof MfaApi, 'getConfiguration'> | ||
|
||
export interface IUseMfaConfiguration { | ||
options?: UseQueryOptions<IMfaConfigurationResponse, unknown, IMfaConfigurationResponse, any> | ||
ApiClass?: ApiClass | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...n/modules/mfa/useMfaDeactivate/types.d.ts → ...ion/modules/mfa/useMfaDeactivate/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import { UseMutationOptions } from '@tanstack/react-query' | ||
|
||
import MfaApi from '../../../services/mfa' | ||
import { IMfaDeactivateRequest } from '../../../types/mfa' | ||
|
||
type ApiClass = Pick<typeof MfaApi, 'deactivate'> | ||
|
||
export interface IUseMfaDeactivate { | ||
options?: UseMutationOptions<void, unknown, IMfaDeactivateRequest, any> | ||
ApiClass?: ApiClass | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...odules/user/useSimpleTokenUser/types.d.ts → .../modules/user/useSimpleTokenUser/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import { UseQueryOptions } from '@tanstack/react-query' | ||
|
||
import UserApi from '../../../services/user' | ||
import { ICookieName } from '../../../types/auth' | ||
|
||
type ApiClass = Pick<typeof UserApi, 'getUser'> | ||
|
||
export interface IUseSimpleTokenUser<IUser> extends ICookieName { | ||
options?: UseQueryOptions<IUser, unknown, IUser, any> | ||
ApiClass?: ApiClass | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.