@nomalism-com/types 0.44.6 → 0.44.7
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.cjs
CHANGED
|
@@ -2516,11 +2516,12 @@ var Route27 = "password";
|
|
|
2516
2516
|
var route_schema_exports30 = {};
|
|
2517
2517
|
__export(route_schema_exports30, {
|
|
2518
2518
|
forgotBody: () => forgotBody,
|
|
2519
|
+
forgotWithoutMailBody: () => forgotWithoutMailBody,
|
|
2519
2520
|
resetBody: () => resetBody
|
|
2520
2521
|
});
|
|
2521
2522
|
import joi31 from "joi";
|
|
2522
2523
|
var forgotBodyKeys = {
|
|
2523
|
-
|
|
2524
|
+
email: joi31.string().email({ tlds: { allow: false } }).required()
|
|
2524
2525
|
};
|
|
2525
2526
|
var forgotBody = joi31.object().keys(forgotBodyKeys).messages(messages);
|
|
2526
2527
|
var resetBodyKeys = {
|
|
@@ -2529,6 +2530,10 @@ var resetBodyKeys = {
|
|
|
2529
2530
|
password_confirmation: joi31.string().valid(joi31.ref("password"))
|
|
2530
2531
|
};
|
|
2531
2532
|
var resetBody = joi31.object().keys(resetBodyKeys).messages(messages);
|
|
2533
|
+
var forgotWithoutMailBodyKeys = {
|
|
2534
|
+
user_id: joi31.string().uuid().required()
|
|
2535
|
+
};
|
|
2536
|
+
var forgotWithoutMailBody = joi31.object().keys(forgotWithoutMailBodyKeys).messages(messages);
|
|
2532
2537
|
|
|
2533
2538
|
// src/modules/supply/payment/interface.ts
|
|
2534
2539
|
var interface_exports14 = {};
|
package/dist/index.js
CHANGED
|
@@ -2516,11 +2516,12 @@ var Route27 = "password";
|
|
|
2516
2516
|
var route_schema_exports30 = {};
|
|
2517
2517
|
__export(route_schema_exports30, {
|
|
2518
2518
|
forgotBody: () => forgotBody,
|
|
2519
|
+
forgotWithoutMailBody: () => forgotWithoutMailBody,
|
|
2519
2520
|
resetBody: () => resetBody
|
|
2520
2521
|
});
|
|
2521
2522
|
import joi31 from "joi";
|
|
2522
2523
|
var forgotBodyKeys = {
|
|
2523
|
-
|
|
2524
|
+
email: joi31.string().email({ tlds: { allow: false } }).required()
|
|
2524
2525
|
};
|
|
2525
2526
|
var forgotBody = joi31.object().keys(forgotBodyKeys).messages(messages);
|
|
2526
2527
|
var resetBodyKeys = {
|
|
@@ -2529,6 +2530,10 @@ var resetBodyKeys = {
|
|
|
2529
2530
|
password_confirmation: joi31.string().valid(joi31.ref("password"))
|
|
2530
2531
|
};
|
|
2531
2532
|
var resetBody = joi31.object().keys(resetBodyKeys).messages(messages);
|
|
2533
|
+
var forgotWithoutMailBodyKeys = {
|
|
2534
|
+
user_id: joi31.string().uuid().required()
|
|
2535
|
+
};
|
|
2536
|
+
var forgotWithoutMailBody = joi31.object().keys(forgotWithoutMailBodyKeys).messages(messages);
|
|
2532
2537
|
|
|
2533
2538
|
// src/modules/supply/payment/interface.ts
|
|
2534
2539
|
var interface_exports14 = {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
2
|
export declare const Route = "password";
|
|
3
3
|
export interface IForgotPassword {
|
|
4
|
-
|
|
4
|
+
email: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IForgotPasswordWithoutMail {
|
|
7
|
+
user_id: string;
|
|
5
8
|
}
|
|
6
9
|
export interface IResetPassword {
|
|
7
10
|
token: string;
|
|
@@ -11,5 +14,6 @@ export interface IResetPassword {
|
|
|
11
14
|
export interface IRepository {
|
|
12
15
|
resetPassword(params: IResetPassword): Promise<void>;
|
|
13
16
|
forgotPassword(params: IForgotPassword): Promise<void>;
|
|
17
|
+
forgotPasswordWhithoutMail(params: IForgotPasswordWithoutMail): Promise<void>;
|
|
14
18
|
}
|
|
15
19
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
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.7",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|