Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CollatzConjecture/nestjs-clean-architecture
/ functions
Functions
156 in github.com/CollatzConjecture/nestjs-clean-architecture
⨍
Functions
156
◇
Types & classes
114
Method
constructor
( private readonly authService: AuthService, private readonly responseService: ResponseService, )
src/api/controllers/auth.controller.ts:42
Method
constructor
(message: string, data?: T, meta?: any)
src/api/dto/common/api-response.dto.ts:39
Method
constructor
(message: string, code: string, details?: any, meta?: any)
src/api/dto/common/api-response.dto.ts:76
Method
constructor
( message: string, data: T[], pagination: PaginationMeta, meta?: any, )
src/api/dto/common/api-response.dto.ts:116
Method
create
(authData: Partial<AuthUser>)
src/infrastructure/repository/auth.repository.ts:14
Method
create
(profile: Partial<Profile>)
src/infrastructure/repository/profile.repository.ts:17
Method
create
(profile: Partial<Profile>)
src/domain/interfaces/repositories/profile-repository.interface.ts:5
Method
create
(createProfileDto: CreateProfileDto)
src/application/services/profile.service.ts:19
Method
create
(@Body() profile: CreateProfileDto)
src/api/controllers/profile.controller.ts:73
Method
createExternalUserEntity
* Business Logic: Create user entity from external provider * @param externalData - External provider data * @param existingUser - Existing user
src/domain/services/auth-domain.service.ts:40
Method
createUserEntity
* Business Logic: Create user entity with validation * @param userData - User creation data * @param existingUser - Existing user check result (
src/domain/services/auth-domain.service.ts:168
Function
decrypt
(text: string)
src/infrastructure/models/auth.model.ts:22
Method
delete
(id: string)
src/infrastructure/repository/auth.repository.ts:69
Method
delete
(id: string)
src/infrastructure/repository/profile.repository.ts:70
Method
delete
(id: string)
src/domain/interfaces/repositories/profile-repository.interface.ts:11
Method
deleteUser
(@Param('id') id: string)
src/api/controllers/auth.controller.ts:163
Method
execute
(command: DeleteAuthUserCommand)
src/application/auth/command/handler/delete-auth-user.handler.ts:24
Method
execute
(command: CreateProfileCommand)
src/application/profile/command/handler/create-profile.handler.ts:19
Method
findAll
()
src/infrastructure/repository/profile.repository.ts:23
Method
findByAuthId
(authId: string)
src/infrastructure/repository/profile.repository.ts:33
Method
findByAuthId
(authId: string)
src/application/services/auth.service.ts:285
Method
findByEmail
( email: string, withPassword?: boolean, )
src/infrastructure/repository/auth.repository.ts:20
Method
findByGoogleId
(googleId: string)
src/infrastructure/repository/auth.repository.ts:46
Method
findById
(id: string, withPassword?: boolean)
src/infrastructure/repository/auth.repository.ts:33
Method
findById
(id: string)
src/infrastructure/repository/profile.repository.ts:28
Method
findById
(id: string)
src/domain/interfaces/repositories/profile-repository.interface.ts:6
Method
findById
(id: string)
src/application/services/profile.service.ts:48
Method
findByRole
(role: Role)
src/infrastructure/repository/profile.repository.ts:38
Method
findByRole
(role: Role)
src/application/services/profile.service.ts:54
Method
getAdmins
()
src/api/controllers/profile.controller.ts:61
Method
getAll
()
src/api/controllers/profile.controller.ts:51
Method
getProfile
(@Param('id') id: string)
src/api/controllers/profile.controller.ts:83
Method
getProfile
(@Param('id') id: string)
src/api/controllers/auth.controller.ts:146
Method
googleAuth
(@Res() res: Response)
src/api/controllers/auth.controller.ts:105
Method
googleAuthRedirect
( @Query('code') code: string, @Query('state') state: string, @Req() req: ExpressRequest, @Res
src/api/controllers/auth.controller.ts:117
Method
hasRole
* Business Logic: Check if user has required role * @param user - User to check * @param requiredRole - Required role
src/domain/services/auth-domain.service.ts:111
Method
intercept
(context: ExecutionContext, next: CallHandler)
src/application/interceptors/logging.interceptor.ts:8
Method
intercept
(context: ExecutionContext, next: CallHandler)
src/application/interceptors/response.interceptor.ts:16
Method
isProfileComplete
(profileId: string)
src/application/services/profile.service.ts:82
Method
login
(loginDto: LoginAuthDto)
src/application/services/auth.service.ts:124
Method
login
(@Body() loginDto: LoginAuthDto)
src/api/controllers/auth.controller.ts:65
Method
logout
(userId: string)
src/application/services/auth.service.ts:210
Method
logout
(@Request() req)
src/api/controllers/auth.controller.ts:76
Method
refreshToken
(refreshToken: string)
src/application/services/auth.service.ts:219
Method
refreshToken
(@Body() refreshTokenDto: RefreshTokenDto)
src/api/controllers/auth.controller.ts:98
Method
register
(@Body() registerDto: RegisterAuthDto)
src/api/controllers/auth.controller.ts:52
Method
removeRefreshToken
(id: string)
src/infrastructure/repository/auth.repository.ts:75
Method
update
(id: string, authData: Partial<AuthUser>)
src/infrastructure/repository/auth.repository.ts:53
Method
update
(id: string, profileData: Partial<Profile>)
src/infrastructure/repository/profile.repository.ts:56
Method
update
(id: string, profile: Partial<Profile>)
src/domain/interfaces/repositories/profile-repository.interface.ts:10
Method
updateMyProfile
( @Body() updates: UpdateProfileDto, @CurrentUserId() requestingUserId: string, )
src/api/controllers/profile.controller.ts:100
Method
use
(req: any, res: any, next: any)
src/application/middlewere/request-id.middleware.ts:6
Method
validate
(payload: { sub: string; email: string; roles: Role[] })
src/application/auth/jwt.strategy.ts:17
Method
validate
( accessToken: string, refreshToken: string, profile: any, done: VerifyCallback, )
src/application/auth/google.strategy.ts:22
Method
validate
(email: string, password: string)
src/application/auth/local.strategy.ts:12
Method
validateUserLogin
* Business Logic: Validate user login credentials * @param email - User email * @param plainPassword - Plain text password * @param userFromR
src/domain/services/auth-domain.service.ts:16
← previous
101–156 of 156, ranked by callers