Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SOS-RS/backend
/ functions
Functions
152 in github.com/SOS-RS/backend
⨍
Functions
152
◇
Types & classes
112
↓ 5 callers
Method
login
(body: any)
src/sessions/sessions.service.ts:15
↓ 4 callers
Function
canActivate
( prismaService: PrismaService, context: ExecutionContext, allowed: AccessLevel[], )
src/guards/utils.ts:6
↓ 4 callers
Method
delete
(props: TokenPayload)
src/sessions/sessions.service.ts:71
↓ 4 callers
Method
show
(id: string)
src/sessions/sessions.service.ts:54
↓ 3 callers
Method
getInstance
()
src/prisma/prisma.service.ts:20
↓ 3 callers
Method
index
()
src/partners/partners.service.ts:13
↓ 3 callers
Function
registerSupplyLog
( body: z.infer<typeof CreateSupplyHistorySchema>, user: UserIdentity = {}, )
src/interceptors/interceptors/shelter-supply-history/utils.ts:14
↓ 3 callers
Method
store
(body: z.infer<typeof CreatePartnerSchema>)
src/partners/partners.service.ts:17
↓ 2 callers
Function
RegisterShelterSupplyHistory
( action: ShelterSupplyHistoryAction, )
src/decorators/RegisterShelterSupplyHistory/RegisterShelterSupplyHistory.decorator.ts:6
↓ 2 callers
Method
canDecayShelterSupply
( shelterSupply: IShelterSupplyDecay, priorities: SupplyPriority[], timeInHoursToDecay: number,
src/shelter/shelter.service.ts:261
↓ 2 callers
Method
decayShelterSupply
(shelterSupplies: ShelterSupply[])
src/shelter/shelter.service.ts:318
↓ 2 callers
Function
fn
()
src/interceptors/interceptors/shelter-supply-history/utils.ts:18
↓ 2 callers
Function
getSessionData
(token?: string)
src/utils/utils.ts:39
↓ 2 callers
Method
handleDecayShelterSupply
( shelterSupplies: IShelterSupplyDecay[], newPriority: SupplyPriority, )
src/shelter/shelter.service.ts:275
↓ 2 callers
Method
handleUpdateShelterSum
( shelterId: string, oldPriority: number, newPriority: number, )
src/shelter-supply/shelter-supply.service.ts:12
↓ 2 callers
Function
removeEmptyStrings
(obj)
src/utils/utils.ts:113
↓ 2 callers
Method
update
(id: string, body: z.infer<typeof UpdateShelterSchema>)
src/shelter/shelter.service.ts:44
↓ 1 callers
Function
bootstrap
()
src/main.ts:10
↓ 1 callers
Function
calculateGeolocationBounds
({ latitude, longitude, radiusInMeters, }: GeolocationFilter)
src/utils/utils.ts:86
↓ 1 callers
Method
checkIfUserExists
(payload: Partial<User>)
src/users/users.service.ts:38
↓ 1 callers
Method
getAllDonationsMade
(userId: string, shelterId?: string)
src/donation-order/donation-order.service.ts:207
↓ 1 callers
Method
getAllReceivedDonations
(userId: string, shelterId?: string)
src/donation-order/donation-order.service.ts:183
↓ 1 callers
Method
getCities
()
src/shelter/shelter.service.ts:209
↓ 1 callers
Method
getSearch
()
src/shelter/ShelterSearch.ts:125
↓ 1 callers
Function
handler
( prismaService: PrismaService, action: ShelterSupplyHistoryAction, request: FastifyRequest, )
src/interceptors/interceptors/shelter-supply-history/utils.ts:81
↓ 1 callers
Function
isRightSessionRole
( prismaService: PrismaService, allowed: AccessLevel[], sessionId?: string, userId?: string, )
src/guards/utils.ts:22
↓ 1 callers
Method
loadVoluntaryIds
()
src/shelter/shelter.service.ts:233
↓ 1 callers
Function
parseTagResponse
* * @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 callers
Method
priority
(supplyIds: string[] = [])
src/shelter/ShelterSearch.ts:33
↓ 1 callers
Function
registerCreateSupplyLog
( body: z.infer<typeof CreateShelterSupplySchema>, user: UserIdentity, )
src/interceptors/interceptors/shelter-supply-history/utils.ts:56
↓ 1 callers
Function
registerUpdateSupplyLog
( body: z.infer<typeof UpdateShelterSupplySchema>, user: UserIdentity, )
src/interceptors/interceptors/shelter-supply-history/utils.ts:64
↓ 1 callers
Method
supplyCategoryIds
( priority?: SupplyPriority[] | null, )
src/shelter/ShelterSearch.ts:75
↓ 1 callers
Method
update
(id: string, body: any)
src/users/users.service.ts:25
↓ 1 callers
Method
update
(@Body() body, @Param('id') id: string)
src/users/users.controller.ts:95
↓ 1 callers
Method
update
(id: string, body: z.infer<typeof UpdateSupplySchema>)
src/supply/supply.service.ts:21
↓ 1 callers
Method
update
(body: z.infer<typeof UpdateShelterSupplySchema>)
src/shelter-supply/shelter-supply.service.ts:45
Function
Hmac
()
src/decorators/Hmac/hmac.decorator.ts:5
Method
canActivate
(context: ExecutionContext)
src/guards/distribution-center.guard.ts:14
Method
canActivate
(context: ExecutionContext)
src/guards/hmac.guard.ts:13
Method
canActivate
(context: ExecutionContext)
src/guards/user.guard.ts:14
Method
canActivate
(context: ExecutionContext)
src/guards/staff.guard.ts:14
Method
canActivate
(context: ExecutionContext)
src/guards/admin.guard.ts:14
Function
capitalize
(input: string)
src/utils/utils.ts:30
Method
cities
()
src/shelter/ShelterSearch.ts:141
Method
cities
()
src/shelter/shelter.controller.ts:40
Method
configure
(consumer: MiddlewareConsumer)
src/app.module.ts:45
Method
constructor
(private readonly prismaService: PrismaService)
src/users/users.service.ts:9
Method
constructor
(private readonly userServices: UsersService)
src/users/users.controller.ts:25
Method
constructor
( private readonly prismaService: PrismaService, private readonly jwtService: JwtService, )
src/sessions/sessions.service.ts:10
Method
constructor
(private readonly sessionService: SessionsService)
src/sessions/sessions.controller.ts:24
Method
constructor
()
src/sessions/jwt.strategy.ts:9
Method
constructor
( private readonly suppliesHistoryService: SuppliesHistoryService, )
src/supplies-history/supplies-history.controller.ts:16
Method
constructor
(private readonly prismaService: PrismaService)
src/supplies-history/supplies-history.service.ts:12
Method
constructor
(private readonly prismaService: PrismaService)
src/donation-order/donation-order.service.ts:45
Method
constructor
(private readonly donationOrderService: DonationOrderService)
src/donation-order/donation-order.controller.ts:25
Method
constructor
(statusCode: number, message: string, data?: T)
src/utils/utils.ts:9
Method
constructor
(private readonly partnersService: PartnersService)
src/partners/partners.controller.ts:20
Method
constructor
(private readonly prismaService: PrismaService)
src/partners/partners.service.ts:11
Method
constructor
(private readonly prismaService: PrismaService)
src/guards/distribution-center.guard.ts:10
Method
constructor
()
src/guards/hmac.guard.ts:11
Method
constructor
(private readonly prismaService: PrismaService)
src/guards/user.guard.ts:10
Method
constructor
(private readonly prismaService: PrismaService)
src/guards/staff.guard.ts:10
Method
constructor
(private readonly prismaService: PrismaService)
src/guards/admin.guard.ts:10
Method
constructor
(private readonly supportersService: SupportersService)
src/supporters/supporters.controller.ts:19
Method
constructor
(private readonly prismaService: PrismaService)
src/supporters/supporters.service.ts:9
Method
constructor
( private readonly supplyCategoryServices: SupplyCategoriesService, )
src/supply-categories/supply-categories.controller.ts:23
Method
constructor
(private readonly prismaService: PrismaService)
src/supply-categories/supply-categories.service.ts:12
Method
constructor
( prismaService: PrismaService, props: Partial<ShelterSearchProps> = {}, )
src/shelter/ShelterSearch.ts:24
Method
constructor
(private readonly shelterService: ShelterService)
src/shelter/shelter.controller.ts:26
Method
constructor
(private readonly prismaService: PrismaService)
src/shelter/shelter.service.ts:26
Method
constructor
(private readonly supplyServices: SupplyService)
src/supply/supply.controller.ts:21
Method
constructor
(private readonly prismaService: PrismaService)
src/supply/supply.service.ts:9
Method
constructor
(private readonly action: ShelterSupplyHistoryAction)
src/interceptors/interceptors/shelter-supply-history/shelter-supply-history.interceptor.ts:15
Method
constructor
( private readonly shelterManagerServices: ShelterManagersService, )
src/shelter-managers/shelter-managers.controller.ts:23
Method
constructor
(private readonly prismaService: PrismaService)
src/shelter-managers/shelter-managers.service.ts:9
Method
constructor
()
src/prisma/prisma.service.ts:16
Method
constructor
(private readonly prismaService: PrismaService)
src/dashboard/dashboard.service.ts:12
Method
constructor
(private readonly dashboardService: DashboardService)
src/dashboard/dashboard.controller.ts:10
Method
constructor
(private readonly shelterSupplyService: ShelterSupplyService)
src/shelter-supply/shelter-supply.controller.ts:23
Method
constructor
(private readonly prismaService: PrismaService)
src/shelter-supply/shelter-supply.service.ts:10
Function
cryptPassword
(params: Prisma.MiddlewareParams)
src/prisma/hooks/user/user-hooks.ts:4
Method
data
()
src/utils/utils.ts:15
Function
deepMerge
(target: Record<string, any>, source: Record<string, any>)
src/utils/utils.ts:56
Method
delete
(@Request() req)
src/sessions/sessions.controller.ts:59
Method
enableShutdownHooks
(app: INestApplication)
src/prisma/prisma.service.ts:36
Method
find
(@Param('field') field: string, @Param('value') value: string)
src/users/users.controller.ts:149
Method
fullUpdate
(@Param('id') id: string, @Body() body)
src/shelter/shelter.controller.ts:89
Method
fullUpdate
(id: string, body: z.infer<typeof FullUpdateShelterSchema>)
src/shelter/shelter.service.ts:57
Method
geolocation
()
src/shelter/ShelterSearch.ts:151
Method
getQuery
()
src/shelter/ShelterSearch.ts:170
Method
handleRequest
(err: any, user: any)
src/guards/apply-user.guard.ts:6
Method
index
(@Param('shelterId') shelterId: string, @Query() query)
src/supplies-history/supplies-history.controller.ts:21
Method
index
(shelterId: string, query: any)
src/supplies-history/supplies-history.service.ts:14
Method
index
(userId: string, query: any)
src/donation-order/donation-order.service.ts:47
Method
index
(@Query() query, @Request() req)
src/donation-order/donation-order.controller.ts:59
Method
index
()
src/partners/partners.controller.ts:23
Method
index
()
src/supporters/supporters.controller.ts:22
Method
index
()
src/supporters/supporters.service.ts:11
Method
index
()
src/supply-categories/supply-categories.controller.ts:28
Method
index
()
src/supply-categories/supply-categories.service.ts:37
next →
1–100 of 152, ranked by callers