MCPcopy Create free account

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

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

↓ 29 callersMethodlogger
(message: any, context?: Context)
src/application/services/logger.service.ts:11
↓ 18 callersMethodsuccess
* Create a successful response
src/application/services/response.service.ts:16
↓ 12 callersMethodfindById
(id: string, withPassword?: boolean)
src/domain/interfaces/repositories/auth-repository.interface.ts:5
↓ 12 callersMethodupdate
(id: string, user: Partial<AuthUser>)
src/domain/interfaces/repositories/auth-repository.interface.ts:8
↓ 10 callersMethodcreate
(user: Partial<AuthUser>)
src/domain/interfaces/repositories/auth-repository.interface.ts:4
↓ 10 callersMethoderror
* Create an error response
src/application/services/response.service.ts:23
↓ 10 callersMethodget
()
src/api/controllers/hello.controller.ts:23
↓ 9 callersMethodfindByAuthId
(authId: string)
src/domain/interfaces/repositories/profile-repository.interface.ts:7
↓ 8 callersMethodvalidateAge
* Business Logic: Validate age * @param age - Age to validate
src/domain/services/profile-domain.service.ts:148
↓ 8 callersMethodwarning
(message: any, context: Context)
src/application/services/logger.service.ts:35
↓ 7 callersMethodvalidateLastname
* Business Logic: Validate lastname * @param lastname - Lastname to validate
src/domain/services/profile-domain.service.ts:138
↓ 7 callersMethodvalidateName
* Business Logic: Validate name * @param name - Name to validate
src/domain/services/profile-domain.service.ts:128
↓ 7 callersMethodwithRequest
* Create response with request context
src/application/services/response.service.ts:53
↓ 6 callersMethodcanActivate
(context: ExecutionContext)
src/application/auth/guards/roles.guard.ts:10
↓ 6 callersFunctioncreateMockExecutionContext
(request: any)
src/application/__test__/roles.guard.spec.ts:83
↓ 6 callersMethodgenerateProfileId
* Business Logic: Generate profile ID * @returns Generated profile ID
src/domain/services/profile-domain.service.ts:158
↓ 6 callersFunctionisAdminCallback
(data: unknown, ctx: ExecutionContext)
src/application/__test__/current-user.decorator.spec.ts:21
↓ 6 callersMethodisProfileComplete
* Business Logic: Check if profile is complete * @param profile - Profile to check
src/domain/services/profile-domain.service.ts:104
↓ 6 callersMethodretrieved
( data: T, message = 'Resource retrieved successfully', )
src/application/services/response.service.ts:80
↓ 6 callersMethodvalidateProfileUpdate
* Business Logic: Validate profile update data before persistence * @param existingProfile - Current profile data * @param updates - Updates to
src/domain/services/profile-domain.service.ts:47
↓ 5 callersMethodcreateProfileEntity
* Business Logic: Create profile entity with business validation * @param profileData - Profile creation data * @returns Profile entity ready fo
src/domain/services/profile-domain.service.ts:22
↓ 5 callersMethoderr
(message: any, context: Context)
src/application/services/logger.service.ts:23
↓ 5 callersMethodfind
()
src/application/services/profile.service.ts:42
↓ 5 callersMethodfindByEmail
(email: string, includePassword?: boolean)
src/domain/interfaces/repositories/auth-repository.interface.ts:6
↓ 4 callersMethodcanCreateProfile
* Business Logic: Validate if profile can be created * @param existingProfile - Profile data from repository (passed by application layer)
src/domain/services/profile-domain.service.ts:13
↓ 4 callersMethodcreated
* Common success responses
src/application/services/response.service.ts:62
↓ 4 callersMethodfindByRole
(role: Role)
src/domain/interfaces/repositories/profile-repository.interface.ts:9
↓ 4 callersMethodgenerateUserId
* Business Logic: Generate user ID * @returns Generated user ID
src/domain/services/auth-domain.service.ts:192
↓ 3 callersMethodcanCreateUser
* Business Logic: Validate if user can be created * @param existingUser - Existing user check result (passed by application layer)
src/domain/services/auth-domain.service.ts:80
↓ 3 callersMethodcanUpdateProfile
* Business Logic: Check if profile can be updated * @param profile - Profile to update * @param requestingUserId - User requesting the update
src/domain/services/profile-domain.service.ts:76
↓ 3 callersMethoddelete
(id: string)
src/domain/interfaces/repositories/auth-repository.interface.ts:9
↓ 3 callersMethodgenerateTokens
(auth: AuthUser)
src/application/services/auth.service.ts:269
↓ 3 callersMethodisEmailValid
* Business Logic: Validate email format * @param email - Email to validate
src/domain/services/auth-domain.service.ts:143
↓ 3 callersMethodupdated
( data?: T, message = 'Resource updated successfully', )
src/application/services/response.service.ts:69
↓ 2 callersFunctionRoles
(...roles: Role[])
src/application/auth/decorators/roles.decorator.ts:5
↓ 2 callersMethodbadRequest
( message = 'Bad request', code = 'BAD_REQUEST', details?: any, )
src/application/services/response.service.ts:111
↓ 2 callersFunctioncreateBlindIndex
(text: string)
src/infrastructure/models/auth.model.ts:45
↓ 2 callersFunctioncurrentUserCallback
( data: unknown, ctx: ExecutionContext, )
src/application/__test__/current-user.decorator.spec.ts:5
↓ 2 callersFunctioncurrentUserIdCallback
( data: unknown, ctx: ExecutionContext, )
src/application/__test__/current-user.decorator.spec.ts:13
↓ 2 callersMethoddeleted
(message = 'Resource deleted successfully')
src/application/services/response.service.ts:76
↓ 2 callersMethodexecute
(command: CreateAuthUserCommand)
src/application/auth/command/handler/create-auth-user.handler.ts:21
↓ 2 callersMethodfindAll
()
src/domain/interfaces/repositories/profile-repository.interface.ts:8
↓ 2 callersMethodfindOrCreateGoogleUser
(profile: any)
src/application/services/auth.service.ts:361
↓ 2 callersMethodforbidden
( message = 'Access forbidden', code = 'AUTHORIZATION_ERROR', )
src/application/services/response.service.ts:104
↓ 2 callersMethodinternalError
( message = 'Internal server error', code = 'INTERNAL_ERROR', )
src/application/services/response.service.ts:126
↓ 2 callersMethodisPasswordValid
* Business Logic: Validate password strength * @param password - Password to validate
src/domain/services/auth-domain.service.ts:119
↓ 2 callersMethodnotFound
* Common error responses
src/application/services/response.service.ts:90
↓ 2 callersMethodregister
(registerDto: RegisterAuthDto)
src/application/services/auth.service.ts:46
↓ 2 callersMethodsave
()
src/infrastructure/models/profile.model.ts:45
↓ 2 callersMethodunauthorized
( message = 'Unauthorized access', code = 'AUTHENTICATION_ERROR', )
src/application/services/response.service.ts:97
↓ 2 callersMethodupdateMyProfile
( updates: Partial<Profile>, requestingUserId: string, )
src/application/services/profile.service.ts:60
↓ 2 callersMethodvalidateProfileUpdateData
* Business Logic: Validate profile update data * @param updates - Updates to validate
src/domain/services/profile-domain.service.ts:88
↓ 2 callersMethodvalidateUserCreation
* Business Logic: Validate user creation data * @param userData - User data to validate
src/domain/services/auth-domain.service.ts:152
↓ 2 callersMethodvalidationError
( details: any, message = 'Validation failed', )
src/application/services/response.service.ts:119
↓ 1 callersFunctionbootstrap
()
src/main.ts:22
↓ 1 callersMethoddeleteByAuthId
(authId: string)
src/application/services/auth.service.ts:411
↓ 1 callersFunctionencrypt
(text: string)
src/infrastructure/models/auth.model.ts:10
↓ 1 callersMethodfindByGoogleId
(googleId: string)
src/domain/interfaces/repositories/auth-repository.interface.ts:7
↓ 1 callersMethodhandleGoogleRedirect
(code: string, state: string, storedState: string)
src/application/services/auth.service.ts:314
↓ 1 callersMethodinitiateGoogleAuth
()
src/application/services/auth.service.ts:297
↓ 1 callersMethodpaginated
* Create a paginated response
src/application/services/response.service.ts:30
↓ 1 callersMethodremoveRefreshToken
(userId: string)
src/domain/interfaces/repositories/auth-repository.interface.ts:10
↓ 1 callersMethoduse
(req: any, res: any, next: any)
src/application/middlewere/logger.middleware.ts:13
↓ 1 callersMethoduserExistsForDeletion
* Business Logic: Check if user exists for deletion (used in compensation actions) * @param user - User data from repository (passed by application
src/domain/services/auth-domain.service.ts:102
↓ 1 callersMethodvalidatePasswordChangeData
* Business Logic: Validate password change data
src/domain/services/auth-domain.service.ts:129
↓ 1 callersMethodvalidateProfileData
* Business Logic: Validate profile data * @param profileData - Profile data to validate
src/domain/services/profile-domain.service.ts:112
↓ 1 callersMethodvalidateUser
(email: string, pass: string)
src/application/services/auth.service.ts:112
MethodcanDeleteUser
* Business Logic: Validate if user can be deleted * @param user - User to delete * @param requestingUserId - User requesting deletion * @para
src/domain/services/auth-domain.service.ts:90
MethodcanPerformAdminActions
* Business Logic: Check if user can perform admin actions * @param user - User to check
src/domain/services/auth-domain.service.ts:72
Methodcatch
(exception: unknown, host: ArgumentsHost)
src/application/filters/api-exception.filter.ts:16
MethodchangePassword
( userId: string, oldPassword: string, newPassword: string, )
src/application/services/auth.service.ts:173
MethodchangePassword
(@CurrentUserId() userId: string, @Body() dto: ChangePasswordDto)
src/api/controllers/auth.controller.ts:89
Methodcheck
()
src/infrastructure/health/health.controller.ts:9
Methodcheck
()
src/infrastructure/health/terminus-options.check.ts:18
Methodconfigure
(consumer: MiddlewareConsumer)
src/app.module.ts:51
Methodconstructor
( @Inject(AUTH_MODEL_PROVIDER) private readonly authModel: Model<Auth>, )
src/infrastructure/repository/auth.repository.ts:10
Methodconstructor
( @Inject(PROFILE_MODEL_PROVIDER) private readonly profileModel: Model<ProfileModel>, @Inject(AUTH_MOD
src/infrastructure/repository/profile.repository.ts:12
Methodconstructor
(profile: ProfileModel | any)
src/infrastructure/models/profile.model.ts:27
Methodconstructor
(private readonly terminusOptionsService: TerminusOptionsService)
src/infrastructure/health/health.controller.ts:6
Methodconstructor
( private readonly health: HealthCheckService, private readonly http: HttpHealthIndicator, private
src/infrastructure/health/terminus-options.check.ts:11
Methodconstructor
()
src/application/auth/jwt.strategy.ts:9
Methodconstructor
(private readonly authService: AuthService)
src/application/auth/google.strategy.ts:13
Methodconstructor
(private readonly authService: AuthService)
src/application/auth/local.strategy.ts:8
Methodconstructor
(private reflector: Reflector)
src/application/auth/guards/roles.guard.ts:8
Methodconstructor
( public readonly registerAuthDto: RegisterAuthDto, public readonly authId: string, public readonl
src/application/auth/command/create-auth-user.command.ts:4
Methodconstructor
( public readonly authId: string, public readonly profileId: string, )
src/application/auth/command/delete-auth-user.command.ts:2
Methodconstructor
( @Inject('IAuthRepository') private readonly authRepository: IAuthRepository, private readonly ev
src/application/auth/command/handler/create-auth-user.handler.ts:13
Methodconstructor
( @Inject('IAuthRepository') private readonly authRepository: IAuthRepository, @Inject('IProfileRe
src/application/auth/command/handler/delete-auth-user.handler.ts:14
Methodconstructor
( public readonly authId: string, public readonly profileId: string, public readonly name: string,
src/application/auth/events/auth-user-created.event.ts:2
Methodconstructor
( public readonly authId: string, public readonly profileId: string, )
src/application/auth/events/auth-user-deleted.event.ts:2
Methodconstructor
( public readonly profileId: string, public readonly authId: string, public readonly n
src/application/profile/command/create-profile.command.ts:2
Methodconstructor
( @Inject('IProfileRepository') private readonly profileRepository: IProfileRepository, private re
src/application/profile/command/handler/create-profile.handler.ts:12
Methodconstructor
( public readonly authId: string, public readonly profileId: string, public readonly e
src/application/profile/events/profile-creation-failed.event.ts:2
Methodconstructor
(private readonly responseService: ResponseService)
src/application/interceptors/response.interceptor.ts:14
Methodconstructor
( private readonly commandBus: CommandBus, @Inject('IAuthRepository') private readonly authReposit
src/application/services/auth.service.ts:34
Methodconstructor
( @Inject('IProfileRepository') private readonly repository: IProfileRepository, private readonly
src/application/services/profile.service.ts:12
Methodconstructor
(private readonly loggerService: LoggerService)
src/application/middlewere/logger.middleware.ts:11
Methodconstructor
(private readonly responseService: ResponseService)
src/application/filters/api-exception.filter.ts:14
Methodconstructor
( private readonly profileService: ProfileService, private readonly responseService: ResponseService,
src/api/controllers/profile.controller.ts:41
Methodconstructor
( private readonly logger: LoggerService, private readonly responseService: ResponseService )
src/api/controllers/hello.controller.ts:15
next →1–100 of 156, ranked by callers