MCPcopy Index your code

hub / github.com/alexmarqs/nestjs-clean-architecture-example / functions

Functions64 in github.com/alexmarqs/nestjs-clean-architecture-example

↓ 13 callersMethodexecute
(request: Request)
src/application/use-cases/use-case.ts:2
↓ 11 callersMethodcreate
(@Body() body: CreateNotificationDto)
src/infra/http/controllers/notifications.controller.ts:36
↓ 9 callersFunctionmakeNotification
( overrides: Partial<NotificationProps> = {}, )
test/notification-factory.ts:7
↓ 6 callersMethodfindById
(id: string)
src/infra/database/prisma/repositories/prisma-notifications-repository.ts:20
↓ 3 callersMethodnotFound
( details?: Record<string, unknown>, )
src/application/exceptions/notification-exception.ts:17
↓ 3 callersMethodsave
(notification: Notification)
src/infra/database/prisma/repositories/prisma-notifications-repository.ts:37
↓ 2 callersMethodtoPrisma
(notification: Notification)
src/infra/database/prisma/mappers/prisma-notifications-mapper.ts:11
↓ 1 callersFunctionbootstrap
()
src/main.ts:10
↓ 1 callersMethodcancel
()
src/application/entities/notification.ts:74
↓ 1 callersMethodcountByRecipientId
( @Param('recipientId') recipientId: string, )
src/infra/http/controllers/notifications.controller.ts:105
↓ 1 callersMethodfindAll
()
src/infra/database/in-memory/repositories/in-memory-notifications-repository.ts:11
↓ 1 callersMethodfindByRecipientId
(recipientId: string)
src/infra/database/prisma/repositories/prisma-notifications-repository.ts:55
↓ 1 callersMethodread
()
src/application/entities/notification.ts:78
↓ 1 callersMethodtoDomain
(notificationPrismaData: PrismaNotification)
src/infra/database/prisma/mappers/prisma-notifications-mapper.ts:23
↓ 1 callersMethodtoDto
(notification: Notification)
src/infra/http/mappers/notifications-mapper.ts:11
↓ 1 callersMethodunread
()
src/application/entities/notification.ts:82
↓ 1 callersMethodvalidateContentLength
(value: string)
src/application/entities/content.ts:14
Methodcancel
(@Param('id') id: string)
src/infra/http/controllers/notifications.controller.ts:91
MethodcanceledAt
()
src/application/entities/notification.ts:70
Methodcatch
(exception: HttpException, host: ArgumentsHost)
src/exception-filter.ts:15
Methodcategory
(category: string)
src/application/entities/notification.ts:42
Methodconstructor
()
src/infra/messaging/kafka/kafka-consumer.service.ts:9
Methodconstructor
( private readonly sendNotificationUseCase: SendNotificationUseCase, )
src/infra/messaging/kafka/controllers/notifications.controller.ts:8
Methodconstructor
( private readonly sendNotificationUseCase: SendNotificationUseCase, private readonly unreadNotificati
src/infra/http/controllers/notifications.controller.ts:18
Methodconstructor
()
src/infra/http/mappers/notifications-mapper.ts:5
Methodconstructor
()
src/infra/database/prisma/prisma.service.ts:6
Methodconstructor
()
src/infra/database/prisma/mappers/prisma-notifications-mapper.ts:5
Methodconstructor
(private readonly prismaService: PrismaService)
src/infra/database/prisma/repositories/prisma-notifications-repository.ts:9
Methodconstructor
( private readonly notificationsRepository: NotificationRepository, )
src/application/use-cases/read-notification-use-case.ts:14
Methodconstructor
( private readonly notificationsRepository: NotificationRepository, )
src/application/use-cases/count-recipient-notifications-use-case.ts:21
Methodconstructor
( private readonly notificationsRepository: NotificationRepository, )
src/application/use-cases/get-recipient-notifications-use-case.ts:22
Methodconstructor
( private readonly notificationsRepository: NotificationRepository, )
src/application/use-cases/cancel-notification-use-case.ts:14
Methodconstructor
( private readonly notificationsRepository: NotificationRepository, )
src/application/use-cases/unread-notification-use-case.ts:14
Methodconstructor
( private readonly notificationsRepository: NotificationRepository, )
src/application/use-cases/send-notification-use-case.ts:22
Methodconstructor
( message: string, status = HttpStatus.INTERNAL_SERVER_ERROR, details?: Record<string, unknown>,
src/application/exceptions/notification-exception.ts:6
Methodconstructor
( props: Replace<NotificationProps, { createdAt?: Date }>, id?: string, )
src/application/entities/notification.ts:18
Methodconstructor
(value: string)
src/application/entities/content.ts:4
Methodcontent
(content: Content)
src/application/entities/notification.ts:34
MethodcountByRecipientId
(recipientId: string)
src/infra/database/in-memory/repositories/in-memory-notifications-repository.ts:25
MethodcountByRecipientId
(recipientId: string)
src/infra/database/prisma/repositories/prisma-notifications-repository.ts:47
Methodcreate
(notification: Notification)
src/infra/database/in-memory/repositories/in-memory-notifications-repository.ts:7
Methodcreate
(notification: Notification)
src/infra/database/prisma/repositories/prisma-notifications-repository.ts:11
MethodcreatedAt
()
src/application/entities/notification.ts:58
MethodenableShutdownHooks
(app: INestApplication)
src/infra/database/prisma/prisma.service.ts:16
Methodexecute
(request: ReadNotificationUseCaseRequest)
src/application/use-cases/read-notification-use-case.ts:18
Methodexecute
( request: CountRecipientNotificationsUseCaseRequest, )
src/application/use-cases/count-recipient-notifications-use-case.ts:25
Methodexecute
( request: GetRecipientNotificationsRequest, )
src/application/use-cases/get-recipient-notifications-use-case.ts:26
Methodexecute
(request: CancelNotificationUseCaseRequest)
src/application/use-cases/cancel-notification-use-case.ts:18
Methodexecute
(request: UnreadNotificationUseCaseRequest)
src/application/use-cases/unread-notification-use-case.ts:18
Methodexecute
( request: SendNotificationUseCaseRequest, )
src/application/use-cases/send-notification-use-case.ts:26
MethodfindById
(id: string)
src/infra/database/in-memory/repositories/in-memory-notifications-repository.ts:15
MethodfindByRecipientId
(recipientId: string)
src/infra/database/in-memory/repositories/in-memory-notifications-repository.ts:33
MethodhandleNotificationEvent
(@Payload() payload: SendNotificationDto)
src/infra/messaging/kafka/controllers/notifications.controller.ts:13
Methodhealth
()
src/infra/http/controllers/notifications.controller.ts:147
Methodid
()
src/application/entities/notification.ts:30
MethodlistByRecipientId
( @Param('recipientId') recipientId: string, )
src/infra/http/controllers/notifications.controller.ts:125
MethodonModuleDestroy
()
src/infra/messaging/kafka/kafka-consumer.service.ts:24
MethodonModuleInit
()
src/infra/database/prisma/prisma.service.ts:12
Methodread
(@Param('id') id: string)
src/infra/http/controllers/notifications.controller.ts:57
MethodreadAt
(readAt: Date | null | undefined)
src/application/entities/notification.ts:50
MethodrecipientId
(recipientId: string)
src/application/entities/notification.ts:62
Methodsave
(notification: Notification)
src/infra/database/in-memory/repositories/in-memory-notifications-repository.ts:19
Methodunread
(@Param('id') id: string)
src/infra/http/controllers/notifications.controller.ts:74
Methodvalue
()
src/application/entities/content.ts:18