feat(nestjs): migrate to NestJS

This commit is contained in:
Ahmed Bouhuolia
2025-04-07 11:51:24 +02:00
parent f068218a16
commit 55fcc908ef
3779 changed files with 631 additions and 195332 deletions

View File

@@ -0,0 +1,74 @@
import { ModelObject } from 'objection';
import { SystemUser } from '../System/models/SystemUser';
import { TenantModel } from '../System/models/TenantModel';
import { AuthSignupDto } from './dtos/AuthSignup.dto';
export interface JwtPayload {
sub: string;
iat: number;
exp: number;
}
export interface IAuthSignedInEventPayload {}
export interface IAuthSigningInEventPayload {}
export interface IAuthSignInPOJO {}
export interface IAuthSigningInEventPayload {
email: string;
password: string;
user: ModelObject<SystemUser>;
}
export interface IAuthSignedInEventPayload {
email: string;
password: string;
user: ModelObject<SystemUser>;
}
export interface IAuthSigningUpEventPayload {
signupDTO: AuthSignupDto;
}
export interface IAuthSignedUpEventPayload {
signupDTO: AuthSignupDto;
tenant: TenantModel;
user: SystemUser;
}
export interface IAuthSignInPOJO {
user: ModelObject<SystemUser>;
token: string;
tenant: ModelObject<TenantModel>;
}
export interface IAuthResetedPasswordEventPayload {
user: SystemUser;
token: string;
password: string;
}
export interface IAuthSendingResetPassword {
user: SystemUser;
token: string;
}
export interface IAuthSendedResetPassword {
user: SystemUser;
token: string;
}
export interface IAuthGetMetaPOJO {
signupDisabled: boolean;
}
export interface IAuthSignUpVerifingEventPayload {
email: string;
verifyToken: string;
userId: number;
}
export interface IAuthSignUpVerifiedEventPayload {
email: string;
verifyToken: string;
userId: number;
}