@nomalism-com/types 0.44.8 → 0.44.9
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.
|
@@ -3,7 +3,7 @@ export declare const Route = "password";
|
|
|
3
3
|
export interface IForgotPassword {
|
|
4
4
|
email: string;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface IForgotPasswordWithoutMailRequest {
|
|
7
7
|
user_id: string;
|
|
8
8
|
}
|
|
9
9
|
export interface IResetPassword {
|
|
@@ -11,9 +11,12 @@ export interface IResetPassword {
|
|
|
11
11
|
password: string;
|
|
12
12
|
password_confirmation: string;
|
|
13
13
|
}
|
|
14
|
+
export interface IForgotPasswordWithoutMailResponse {
|
|
15
|
+
recover_url: string;
|
|
16
|
+
}
|
|
14
17
|
export interface IRepository {
|
|
15
18
|
resetPassword(params: IResetPassword): Promise<void>;
|
|
16
19
|
forgotPassword(params: IForgotPassword): Promise<void>;
|
|
17
|
-
forgotPasswordWhithoutMail(params:
|
|
20
|
+
forgotPasswordWhithoutMail(params: IForgotPasswordWithoutMailRequest): Promise<IForgotPasswordWithoutMailResponse>;
|
|
18
21
|
}
|
|
19
22
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -13,7 +13,7 @@ interface IStoreOperator extends Pick<StoreOperator, 'id' | 'location_id' | 'sup
|
|
|
13
13
|
main_persona: Pick<Persona, 'name' | 'email'>;
|
|
14
14
|
theme: Pick<Theme, 'colors'> | null;
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface IFindByEmailResponse extends Pick<Entity, 'id'> {
|
|
17
17
|
store_operator: IStoreOperator;
|
|
18
18
|
}
|
|
19
19
|
export interface IFindByIdResponse extends EntityWithoutPassword {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.44.
|
|
4
|
+
"version": "0.44.9",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|