mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feat(nestjs): migrate to NestJS
This commit is contained in:
74
packages/server/src/modules/Auth/Auth.interfaces.ts
Normal file
74
packages/server/src/modules/Auth/Auth.interfaces.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user