MCPcopy Create free account

hub / github.com/CollatzConjecture/nestjs-clean-architecture / functions

Functions156 in github.com/CollatzConjecture/nestjs-clean-architecture

Methodconstructor
( private readonly authService: AuthService, private readonly responseService: ResponseService, )
src/api/controllers/auth.controller.ts:42
Methodconstructor
(message: string, data?: T, meta?: any)
src/api/dto/common/api-response.dto.ts:39
Methodconstructor
(message: string, code: string, details?: any, meta?: any)
src/api/dto/common/api-response.dto.ts:76
Methodconstructor
( message: string, data: T[], pagination: PaginationMeta, meta?: any, )
src/api/dto/common/api-response.dto.ts:116
Methodcreate
(authData: Partial<AuthUser>)
src/infrastructure/repository/auth.repository.ts:14
Methodcreate
(profile: Partial<Profile>)
src/infrastructure/repository/profile.repository.ts:17
Methodcreate
(profile: Partial<Profile>)
src/domain/interfaces/repositories/profile-repository.interface.ts:5
Methodcreate
(createProfileDto: CreateProfileDto)
src/application/services/profile.service.ts:19
Methodcreate
(@Body() profile: CreateProfileDto)
src/api/controllers/profile.controller.ts:73
MethodcreateExternalUserEntity
* 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
MethodcreateUserEntity
* 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
Functiondecrypt
(text: string)
src/infrastructure/models/auth.model.ts:22
Methoddelete
(id: string)
src/infrastructure/repository/auth.repository.ts:69
Methoddelete
(id: string)
src/infrastructure/repository/profile.repository.ts:70
Methoddelete
(id: string)
src/domain/interfaces/repositories/profile-repository.interface.ts:11
MethoddeleteUser
(@Param('id') id: string)
src/api/controllers/auth.controller.ts:163
Methodexecute
(command: DeleteAuthUserCommand)
src/application/auth/command/handler/delete-auth-user.handler.ts:24
Methodexecute
(command: CreateProfileCommand)
src/application/profile/command/handler/create-profile.handler.ts:19
MethodfindAll
()
src/infrastructure/repository/profile.repository.ts:23
MethodfindByAuthId
(authId: string)
src/infrastructure/repository/profile.repository.ts:33
MethodfindByAuthId
(authId: string)
src/application/services/auth.service.ts:285
MethodfindByEmail
( email: string, withPassword?: boolean, )
src/infrastructure/repository/auth.repository.ts:20
MethodfindByGoogleId
(googleId: string)
src/infrastructure/repository/auth.repository.ts:46
MethodfindById
(id: string, withPassword?: boolean)
src/infrastructure/repository/auth.repository.ts:33
MethodfindById
(id: string)
src/infrastructure/repository/profile.repository.ts:28
MethodfindById
(id: string)
src/domain/interfaces/repositories/profile-repository.interface.ts:6
MethodfindById
(id: string)
src/application/services/profile.service.ts:48
MethodfindByRole
(role: Role)
src/infrastructure/repository/profile.repository.ts:38
MethodfindByRole
(role: Role)
src/application/services/profile.service.ts:54
MethodgetAdmins
()
src/api/controllers/profile.controller.ts:61
MethodgetAll
()
src/api/controllers/profile.controller.ts:51
MethodgetProfile
(@Param('id') id: string)
src/api/controllers/profile.controller.ts:83
MethodgetProfile
(@Param('id') id: string)
src/api/controllers/auth.controller.ts:146
MethodgoogleAuth
(@Res() res: Response)
src/api/controllers/auth.controller.ts:105
MethodgoogleAuthRedirect
( @Query('code') code: string, @Query('state') state: string, @Req() req: ExpressRequest, @Res
src/api/controllers/auth.controller.ts:117
MethodhasRole
* 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
Methodintercept
(context: ExecutionContext, next: CallHandler)
src/application/interceptors/logging.interceptor.ts:8
Methodintercept
(context: ExecutionContext, next: CallHandler)
src/application/interceptors/response.interceptor.ts:16
MethodisProfileComplete
(profileId: string)
src/application/services/profile.service.ts:82
Methodlogin
(loginDto: LoginAuthDto)
src/application/services/auth.service.ts:124
Methodlogin
(@Body() loginDto: LoginAuthDto)
src/api/controllers/auth.controller.ts:65
Methodlogout
(userId: string)
src/application/services/auth.service.ts:210
Methodlogout
(@Request() req)
src/api/controllers/auth.controller.ts:76
MethodrefreshToken
(refreshToken: string)
src/application/services/auth.service.ts:219
MethodrefreshToken
(@Body() refreshTokenDto: RefreshTokenDto)
src/api/controllers/auth.controller.ts:98
Methodregister
(@Body() registerDto: RegisterAuthDto)
src/api/controllers/auth.controller.ts:52
MethodremoveRefreshToken
(id: string)
src/infrastructure/repository/auth.repository.ts:75
Methodupdate
(id: string, authData: Partial<AuthUser>)
src/infrastructure/repository/auth.repository.ts:53
Methodupdate
(id: string, profileData: Partial<Profile>)
src/infrastructure/repository/profile.repository.ts:56
Methodupdate
(id: string, profile: Partial<Profile>)
src/domain/interfaces/repositories/profile-repository.interface.ts:10
MethodupdateMyProfile
( @Body() updates: UpdateProfileDto, @CurrentUserId() requestingUserId: string, )
src/api/controllers/profile.controller.ts:100
Methoduse
(req: any, res: any, next: any)
src/application/middlewere/request-id.middleware.ts:6
Methodvalidate
(payload: { sub: string; email: string; roles: Role[] })
src/application/auth/jwt.strategy.ts:17
Methodvalidate
( accessToken: string, refreshToken: string, profile: any, done: VerifyCallback, )
src/application/auth/google.strategy.ts:22
Methodvalidate
(email: string, password: string)
src/application/auth/local.strategy.ts:12
MethodvalidateUserLogin
* 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
← previous101–156 of 156, ranked by callers