Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/alexmarqs/nestjs-clean-architecture-example
/ functions
Functions
64 in github.com/alexmarqs/nestjs-clean-architecture-example
⨍
Functions
64
◇
Types & classes
65
↓ 13 callers
Method
execute
(request: Request)
src/application/use-cases/use-case.ts:2
↓ 11 callers
Method
create
(@Body() body: CreateNotificationDto)
src/infra/http/controllers/notifications.controller.ts:36
↓ 9 callers
Function
makeNotification
( overrides: Partial<NotificationProps> = {}, )
test/notification-factory.ts:7
↓ 6 callers
Method
findById
(id: string)
src/infra/database/prisma/repositories/prisma-notifications-repository.ts:20
↓ 3 callers
Method
notFound
( details?: Record<string, unknown>, )
src/application/exceptions/notification-exception.ts:17
↓ 3 callers
Method
save
(notification: Notification)
src/infra/database/prisma/repositories/prisma-notifications-repository.ts:37
↓ 2 callers
Method
toPrisma
(notification: Notification)
src/infra/database/prisma/mappers/prisma-notifications-mapper.ts:11
↓ 1 callers
Function
bootstrap
()
src/main.ts:10
↓ 1 callers
Method
cancel
()
src/application/entities/notification.ts:74
↓ 1 callers
Method
countByRecipientId
( @Param('recipientId') recipientId: string, )
src/infra/http/controllers/notifications.controller.ts:105
↓ 1 callers
Method
findAll
()
src/infra/database/in-memory/repositories/in-memory-notifications-repository.ts:11
↓ 1 callers
Method
findByRecipientId
(recipientId: string)
src/infra/database/prisma/repositories/prisma-notifications-repository.ts:55
↓ 1 callers
Method
read
()
src/application/entities/notification.ts:78
↓ 1 callers
Method
toDomain
(notificationPrismaData: PrismaNotification)
src/infra/database/prisma/mappers/prisma-notifications-mapper.ts:23
↓ 1 callers
Method
toDto
(notification: Notification)
src/infra/http/mappers/notifications-mapper.ts:11
↓ 1 callers
Method
unread
()
src/application/entities/notification.ts:82
↓ 1 callers
Method
validateContentLength
(value: string)
src/application/entities/content.ts:14
Method
cancel
(@Param('id') id: string)
src/infra/http/controllers/notifications.controller.ts:91
Method
canceledAt
()
src/application/entities/notification.ts:70
Method
catch
(exception: HttpException, host: ArgumentsHost)
src/exception-filter.ts:15
Method
category
(category: string)
src/application/entities/notification.ts:42
Method
constructor
()
src/infra/messaging/kafka/kafka-consumer.service.ts:9
Method
constructor
( private readonly sendNotificationUseCase: SendNotificationUseCase, )
src/infra/messaging/kafka/controllers/notifications.controller.ts:8
Method
constructor
( private readonly sendNotificationUseCase: SendNotificationUseCase, private readonly unreadNotificati
src/infra/http/controllers/notifications.controller.ts:18
Method
constructor
()
src/infra/http/mappers/notifications-mapper.ts:5
Method
constructor
()
src/infra/database/prisma/prisma.service.ts:6
Method
constructor
()
src/infra/database/prisma/mappers/prisma-notifications-mapper.ts:5
Method
constructor
(private readonly prismaService: PrismaService)
src/infra/database/prisma/repositories/prisma-notifications-repository.ts:9
Method
constructor
( private readonly notificationsRepository: NotificationRepository, )
src/application/use-cases/read-notification-use-case.ts:14
Method
constructor
( private readonly notificationsRepository: NotificationRepository, )
src/application/use-cases/count-recipient-notifications-use-case.ts:21
Method
constructor
( private readonly notificationsRepository: NotificationRepository, )
src/application/use-cases/get-recipient-notifications-use-case.ts:22
Method
constructor
( private readonly notificationsRepository: NotificationRepository, )
src/application/use-cases/cancel-notification-use-case.ts:14
Method
constructor
( private readonly notificationsRepository: NotificationRepository, )
src/application/use-cases/unread-notification-use-case.ts:14
Method
constructor
( private readonly notificationsRepository: NotificationRepository, )
src/application/use-cases/send-notification-use-case.ts:22
Method
constructor
( message: string, status = HttpStatus.INTERNAL_SERVER_ERROR, details?: Record<string, unknown>,
src/application/exceptions/notification-exception.ts:6
Method
constructor
( props: Replace<NotificationProps, { createdAt?: Date }>, id?: string, )
src/application/entities/notification.ts:18
Method
constructor
(value: string)
src/application/entities/content.ts:4
Method
content
(content: Content)
src/application/entities/notification.ts:34
Method
countByRecipientId
(recipientId: string)
src/infra/database/in-memory/repositories/in-memory-notifications-repository.ts:25
Method
countByRecipientId
(recipientId: string)
src/infra/database/prisma/repositories/prisma-notifications-repository.ts:47
Method
create
(notification: Notification)
src/infra/database/in-memory/repositories/in-memory-notifications-repository.ts:7
Method
create
(notification: Notification)
src/infra/database/prisma/repositories/prisma-notifications-repository.ts:11
Method
createdAt
()
src/application/entities/notification.ts:58
Method
enableShutdownHooks
(app: INestApplication)
src/infra/database/prisma/prisma.service.ts:16
Method
execute
(request: ReadNotificationUseCaseRequest)
src/application/use-cases/read-notification-use-case.ts:18
Method
execute
( request: CountRecipientNotificationsUseCaseRequest, )
src/application/use-cases/count-recipient-notifications-use-case.ts:25
Method
execute
( request: GetRecipientNotificationsRequest, )
src/application/use-cases/get-recipient-notifications-use-case.ts:26
Method
execute
(request: CancelNotificationUseCaseRequest)
src/application/use-cases/cancel-notification-use-case.ts:18
Method
execute
(request: UnreadNotificationUseCaseRequest)
src/application/use-cases/unread-notification-use-case.ts:18
Method
execute
( request: SendNotificationUseCaseRequest, )
src/application/use-cases/send-notification-use-case.ts:26
Method
findById
(id: string)
src/infra/database/in-memory/repositories/in-memory-notifications-repository.ts:15
Method
findByRecipientId
(recipientId: string)
src/infra/database/in-memory/repositories/in-memory-notifications-repository.ts:33
Method
handleNotificationEvent
(@Payload() payload: SendNotificationDto)
src/infra/messaging/kafka/controllers/notifications.controller.ts:13
Method
health
()
src/infra/http/controllers/notifications.controller.ts:147
Method
id
()
src/application/entities/notification.ts:30
Method
listByRecipientId
( @Param('recipientId') recipientId: string, )
src/infra/http/controllers/notifications.controller.ts:125
Method
onModuleDestroy
()
src/infra/messaging/kafka/kafka-consumer.service.ts:24
Method
onModuleInit
()
src/infra/database/prisma/prisma.service.ts:12
Method
read
(@Param('id') id: string)
src/infra/http/controllers/notifications.controller.ts:57
Method
readAt
(readAt: Date | null | undefined)
src/application/entities/notification.ts:50
Method
recipientId
(recipientId: string)
src/application/entities/notification.ts:62
Method
save
(notification: Notification)
src/infra/database/in-memory/repositories/in-memory-notifications-repository.ts:19
Method
unread
(@Param('id') id: string)
src/infra/http/controllers/notifications.controller.ts:74
Method
value
()
src/application/entities/content.ts:18