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; } export interface IAuthSignedInEventPayload { email: string; password: string; user: ModelObject; } export interface IAuthSigningUpEventPayload { signupDTO: AuthSignupDto; } export interface IAuthSignedUpEventPayload { signupDTO: AuthSignupDto; tenant: TenantModel; user: SystemUser; } export interface IAuthSignInPOJO { user: ModelObject; token: string; tenant: ModelObject; } 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; } export interface ISignUpConfigmResendedEventPayload { user: SystemUser; }