MCPcopy Create free account

hub / github.com/SOS-RS/backend / functions

Functions152 in github.com/SOS-RS/backend

↓ 5 callersMethodlogin
(body: any)
src/sessions/sessions.service.ts:15
↓ 4 callersFunctioncanActivate
( prismaService: PrismaService, context: ExecutionContext, allowed: AccessLevel[], )
src/guards/utils.ts:6
↓ 4 callersMethoddelete
(props: TokenPayload)
src/sessions/sessions.service.ts:71
↓ 4 callersMethodshow
(id: string)
src/sessions/sessions.service.ts:54
↓ 3 callersMethodgetInstance
()
src/prisma/prisma.service.ts:20
↓ 3 callersMethodindex
()
src/partners/partners.service.ts:13
↓ 3 callersFunctionregisterSupplyLog
( body: z.infer<typeof CreateSupplyHistorySchema>, user: UserIdentity = {}, )
src/interceptors/interceptors/shelter-supply-history/utils.ts:14
↓ 3 callersMethodstore
(body: z.infer<typeof CreatePartnerSchema>)
src/partners/partners.service.ts:17
↓ 2 callersFunctionRegisterShelterSupplyHistory
( action: ShelterSupplyHistoryAction, )
src/decorators/RegisterShelterSupplyHistory/RegisterShelterSupplyHistory.decorator.ts:6
↓ 2 callersMethodcanDecayShelterSupply
( shelterSupply: IShelterSupplyDecay, priorities: SupplyPriority[], timeInHoursToDecay: number,
src/shelter/shelter.service.ts:261
↓ 2 callersMethoddecayShelterSupply
(shelterSupplies: ShelterSupply[])
src/shelter/shelter.service.ts:318
↓ 2 callersFunctionfn
()
src/interceptors/interceptors/shelter-supply-history/utils.ts:18
↓ 2 callersFunctiongetSessionData
(token?: string)
src/utils/utils.ts:39
↓ 2 callersMethodhandleDecayShelterSupply
( shelterSupplies: IShelterSupplyDecay[], newPriority: SupplyPriority, )
src/shelter/shelter.service.ts:275
↓ 2 callersMethodhandleUpdateShelterSum
( shelterId: string, oldPriority: number, newPriority: number, )
src/shelter-supply/shelter-supply.service.ts:12
↓ 2 callersFunctionremoveEmptyStrings
(obj)
src/utils/utils.ts:113
↓ 2 callersMethodupdate
(id: string, body: z.infer<typeof UpdateShelterSchema>)
src/shelter/shelter.service.ts:44
↓ 1 callersFunctionbootstrap
()
src/main.ts:10
↓ 1 callersFunctioncalculateGeolocationBounds
({ latitude, longitude, radiusInMeters, }: GeolocationFilter)
src/utils/utils.ts:86
↓ 1 callersMethodcheckIfUserExists
(payload: Partial<User>)
src/users/users.service.ts:38
↓ 1 callersMethodgetAllDonationsMade
(userId: string, shelterId?: string)
src/donation-order/donation-order.service.ts:207
↓ 1 callersMethodgetAllReceivedDonations
(userId: string, shelterId?: string)
src/donation-order/donation-order.service.ts:183
↓ 1 callersMethodgetCities
()
src/shelter/shelter.service.ts:209
↓ 1 callersMethodgetSearch
()
src/shelter/ShelterSearch.ts:125
↓ 1 callersFunctionhandler
( prismaService: PrismaService, action: ShelterSupplyHistoryAction, request: FastifyRequest, )
src/interceptors/interceptors/shelter-supply-history/utils.ts:81
↓ 1 callersFunctionisRightSessionRole
( prismaService: PrismaService, allowed: AccessLevel[], sessionId?: string, userId?: string, )
src/guards/utils.ts:22
↓ 1 callersMethodloadVoluntaryIds
()
src/shelter/shelter.service.ts:233
↓ 1 callersFunctionparseTagResponse
* * @param formProps Uma interface do tipo ShelterTagInfo | null. Que indica a quantidade máxima de cada categoria deverá ser retornada * @param res
src/shelter/ShelterSearch.ts:196
↓ 1 callersMethodpriority
(supplyIds: string[] = [])
src/shelter/ShelterSearch.ts:33
↓ 1 callersFunctionregisterCreateSupplyLog
( body: z.infer<typeof CreateShelterSupplySchema>, user: UserIdentity, )
src/interceptors/interceptors/shelter-supply-history/utils.ts:56
↓ 1 callersFunctionregisterUpdateSupplyLog
( body: z.infer<typeof UpdateShelterSupplySchema>, user: UserIdentity, )
src/interceptors/interceptors/shelter-supply-history/utils.ts:64
↓ 1 callersMethodsupplyCategoryIds
( priority?: SupplyPriority[] | null, )
src/shelter/ShelterSearch.ts:75
↓ 1 callersMethodupdate
(id: string, body: any)
src/users/users.service.ts:25
↓ 1 callersMethodupdate
(@Body() body, @Param('id') id: string)
src/users/users.controller.ts:95
↓ 1 callersMethodupdate
(id: string, body: z.infer<typeof UpdateSupplySchema>)
src/supply/supply.service.ts:21
↓ 1 callersMethodupdate
(body: z.infer<typeof UpdateShelterSupplySchema>)
src/shelter-supply/shelter-supply.service.ts:45
FunctionHmac
()
src/decorators/Hmac/hmac.decorator.ts:5
MethodcanActivate
(context: ExecutionContext)
src/guards/distribution-center.guard.ts:14
MethodcanActivate
(context: ExecutionContext)
src/guards/hmac.guard.ts:13
MethodcanActivate
(context: ExecutionContext)
src/guards/user.guard.ts:14
MethodcanActivate
(context: ExecutionContext)
src/guards/staff.guard.ts:14
MethodcanActivate
(context: ExecutionContext)
src/guards/admin.guard.ts:14
Functioncapitalize
(input: string)
src/utils/utils.ts:30
Methodcities
()
src/shelter/ShelterSearch.ts:141
Methodcities
()
src/shelter/shelter.controller.ts:40
Methodconfigure
(consumer: MiddlewareConsumer)
src/app.module.ts:45
Methodconstructor
(private readonly prismaService: PrismaService)
src/users/users.service.ts:9
Methodconstructor
(private readonly userServices: UsersService)
src/users/users.controller.ts:25
Methodconstructor
( private readonly prismaService: PrismaService, private readonly jwtService: JwtService, )
src/sessions/sessions.service.ts:10
Methodconstructor
(private readonly sessionService: SessionsService)
src/sessions/sessions.controller.ts:24
Methodconstructor
()
src/sessions/jwt.strategy.ts:9
Methodconstructor
( private readonly suppliesHistoryService: SuppliesHistoryService, )
src/supplies-history/supplies-history.controller.ts:16
Methodconstructor
(private readonly prismaService: PrismaService)
src/supplies-history/supplies-history.service.ts:12
Methodconstructor
(private readonly prismaService: PrismaService)
src/donation-order/donation-order.service.ts:45
Methodconstructor
(private readonly donationOrderService: DonationOrderService)
src/donation-order/donation-order.controller.ts:25
Methodconstructor
(statusCode: number, message: string, data?: T)
src/utils/utils.ts:9
Methodconstructor
(private readonly partnersService: PartnersService)
src/partners/partners.controller.ts:20
Methodconstructor
(private readonly prismaService: PrismaService)
src/partners/partners.service.ts:11
Methodconstructor
(private readonly prismaService: PrismaService)
src/guards/distribution-center.guard.ts:10
Methodconstructor
()
src/guards/hmac.guard.ts:11
Methodconstructor
(private readonly prismaService: PrismaService)
src/guards/user.guard.ts:10
Methodconstructor
(private readonly prismaService: PrismaService)
src/guards/staff.guard.ts:10
Methodconstructor
(private readonly prismaService: PrismaService)
src/guards/admin.guard.ts:10
Methodconstructor
(private readonly supportersService: SupportersService)
src/supporters/supporters.controller.ts:19
Methodconstructor
(private readonly prismaService: PrismaService)
src/supporters/supporters.service.ts:9
Methodconstructor
( private readonly supplyCategoryServices: SupplyCategoriesService, )
src/supply-categories/supply-categories.controller.ts:23
Methodconstructor
(private readonly prismaService: PrismaService)
src/supply-categories/supply-categories.service.ts:12
Methodconstructor
( prismaService: PrismaService, props: Partial<ShelterSearchProps> = {}, )
src/shelter/ShelterSearch.ts:24
Methodconstructor
(private readonly shelterService: ShelterService)
src/shelter/shelter.controller.ts:26
Methodconstructor
(private readonly prismaService: PrismaService)
src/shelter/shelter.service.ts:26
Methodconstructor
(private readonly supplyServices: SupplyService)
src/supply/supply.controller.ts:21
Methodconstructor
(private readonly prismaService: PrismaService)
src/supply/supply.service.ts:9
Methodconstructor
(private readonly action: ShelterSupplyHistoryAction)
src/interceptors/interceptors/shelter-supply-history/shelter-supply-history.interceptor.ts:15
Methodconstructor
( private readonly shelterManagerServices: ShelterManagersService, )
src/shelter-managers/shelter-managers.controller.ts:23
Methodconstructor
(private readonly prismaService: PrismaService)
src/shelter-managers/shelter-managers.service.ts:9
Methodconstructor
()
src/prisma/prisma.service.ts:16
Methodconstructor
(private readonly prismaService: PrismaService)
src/dashboard/dashboard.service.ts:12
Methodconstructor
(private readonly dashboardService: DashboardService)
src/dashboard/dashboard.controller.ts:10
Methodconstructor
(private readonly shelterSupplyService: ShelterSupplyService)
src/shelter-supply/shelter-supply.controller.ts:23
Methodconstructor
(private readonly prismaService: PrismaService)
src/shelter-supply/shelter-supply.service.ts:10
FunctioncryptPassword
(params: Prisma.MiddlewareParams)
src/prisma/hooks/user/user-hooks.ts:4
Methoddata
()
src/utils/utils.ts:15
FunctiondeepMerge
(target: Record<string, any>, source: Record<string, any>)
src/utils/utils.ts:56
Methoddelete
(@Request() req)
src/sessions/sessions.controller.ts:59
MethodenableShutdownHooks
(app: INestApplication)
src/prisma/prisma.service.ts:36
Methodfind
(@Param('field') field: string, @Param('value') value: string)
src/users/users.controller.ts:149
MethodfullUpdate
(@Param('id') id: string, @Body() body)
src/shelter/shelter.controller.ts:89
MethodfullUpdate
(id: string, body: z.infer<typeof FullUpdateShelterSchema>)
src/shelter/shelter.service.ts:57
Methodgeolocation
()
src/shelter/ShelterSearch.ts:151
MethodgetQuery
()
src/shelter/ShelterSearch.ts:170
MethodhandleRequest
(err: any, user: any)
src/guards/apply-user.guard.ts:6
Methodindex
(@Param('shelterId') shelterId: string, @Query() query)
src/supplies-history/supplies-history.controller.ts:21
Methodindex
(shelterId: string, query: any)
src/supplies-history/supplies-history.service.ts:14
Methodindex
(userId: string, query: any)
src/donation-order/donation-order.service.ts:47
Methodindex
(@Query() query, @Request() req)
src/donation-order/donation-order.controller.ts:59
Methodindex
()
src/partners/partners.controller.ts:23
Methodindex
()
src/supporters/supporters.controller.ts:22
Methodindex
()
src/supporters/supporters.service.ts:11
Methodindex
()
src/supply-categories/supply-categories.controller.ts:28
Methodindex
()
src/supply-categories/supply-categories.service.ts:37
next →1–100 of 152, ranked by callers