feat(interfaces): update user and request interfaces

- Renamed `is_mail_verified` to `is_email_verified` in `IDbUser`
- Replaced `username` with `email` in `IReqLogin`
- Commented out `dob` in `IReqRegister`
- Added new field `_questionMarksFields` in `IDbFactorize`

Issue: #18
Signed-off-by: Mathis <yidhra@tuta.io>
This commit is contained in:
Mathis H (Avnyr) 2024-05-02 12:22:43 +02:00
parent 3472c59ac2
commit 98477c5f27
Signed by: Mathis
GPG Key ID: DD9E0666A747D126
4 changed files with 9 additions and 3 deletions

View File

@ -14,6 +14,12 @@ export interface IDbFactorizeOutput {
* @type {string}
*/
_keysTemplate: string;
/**
* The list of ? for the "VALUE" section
*/
_questionMarksFields: string;
/**
* The total number of fields.
*

View File

@ -5,7 +5,7 @@ export interface IDbUser {
lastname: string;
dob: Date;
email: string;
is_mail_verified: boolean;
is_email_verified: boolean;
is_admin: boolean;
gdpr: Date;
hash: string;

View File

@ -1,4 +1,4 @@
export interface IReqLogin {
username: string;
email: string;
password: string;
}

View File

@ -2,7 +2,7 @@ export interface IReqRegister {
username: string;
firstName: string;
lastName: string;
dob: Date;
/*dob: Date;*/
email: string;
gdpr?: boolean;
password: string;