Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bartosz-io/budget-node
/ functions
Functions
160 in github.com/bartosz-io/budget-node
⨍
Functions
160
◇
Types & classes
78
↓ 28 callers
Method
info
(msg: string, fields?: any)
src/utils/logger.ts:36
↓ 18 callers
Method
error
(msg: string, fields?: any)
src/utils/logger.ts:46
↓ 14 callers
Function
userRepoStub
(user = fakeUser)
src/app/auth/services/session-auth.service.spec.ts:35
↓ 11 callers
Function
otpStub
()
src/app/auth/services/session-auth.service.spec.ts:29
↓ 10 callers
Method
warn
(msg: string, fields?: any)
src/utils/logger.ts:41
↓ 9 callers
Method
login
(loginRequest: AuthRequest)
src/app/auth/services/auth.service.ts:8
↓ 6 callers
Method
authenticate
()
src/app/auth/services/auth.service.ts:6
↓ 6 callers
Method
build
(data: any)
src/models/user.ts:30
↓ 6 callers
Method
getUserByEmail
(email: string)
src/app/auth/repositories/user.repository.ts:8
↓ 6 callers
Method
toSafeUser
(user: User)
src/models/user.ts:25
↓ 4 callers
Method
createUser
(user: User)
src/app/auth/repositories/user.repository.ts:16
↓ 4 callers
Method
equals
(period: Period | null)
src/models/period.ts:4
↓ 4 callers
Method
getRouter
()
src/app/expenses/expenses.controller.ts:18
↓ 4 callers
Method
initialize
()
src/utils/logger.ts:29
↓ 4 callers
Method
logout
(session?: any)
src/app/auth/services/auth.service.ts:10
↓ 3 callers
Function
buildPeriodFromRequest
(req: Request)
src/utils/controller.utils.ts:4
↓ 3 callers
Method
createAccount
(account: Account)
src/app/auth/repositories/account.repository.ts:6
↓ 3 callers
Method
createDefaultCategories
(accountId: Id)
src/app/settings/categories/categories.repository.ts:10
↓ 3 callers
Method
getAccessToken
(authCode: string, action?: string)
src/app/auth/services/external-auth/external-auth.provider.ts:5
↓ 3 callers
Method
getCurrentUser
(session?: any)
src/app/auth/services/auth.service.ts:12
↓ 2 callers
Method
attachCategory
(expense: Expense | undefined)
src/app/expenses/in-memory-expenses.repository.ts:53
↓ 2 callers
Method
buildFromRequest
(req: Request)
src/models/authRequest.ts:11
↓ 2 callers
Function
buildProdServer
(port: number, callback: () => void)
e2e/utils.ts:14
↓ 2 callers
Method
deleteUser
(id: Id)
src/app/auth/repositories/user.repository.ts:20
↓ 2 callers
Function
expenseBelongsToAccount
()
src/app/expenses/expenses.middleware.ts:8
↓ 2 callers
Method
getCategory
(id: Id)
src/app/settings/categories/categories.repository.ts:6
↓ 2 callers
Function
getExternalAuthProvider
(provider: string)
src/app/auth/services/external-auth/external-auth.factory.ts:5
↓ 2 callers
Function
getRandomPort
()
e2e/utils.ts:34
↓ 2 callers
Method
getUserByExternalId
(provider: string, externalId: string)
src/app/auth/repositories/user.repository.ts:10
↓ 2 callers
Method
getUserInfo
(accessToken: string)
src/app/auth/services/external-auth/external-auth.provider.ts:7
↓ 2 callers
Method
getUsers
(accountId: Id)
src/app/auth/repositories/user.repository.ts:14
↓ 2 callers
Function
handleRoleNotFound
(user: User, res: Response)
src/app/auth/role.middleware.ts:45
↓ 2 callers
Function
hasRole
(roleToCheck: UserRole)
src/app/auth/role.middleware.ts:24
↓ 2 callers
Function
isRoleFound
(user: User)
src/app/auth/role.middleware.ts:41
↓ 2 callers
Function
login
(apiUrl: string)
e2e/utils.ts:38
↓ 2 callers
Method
patchUser
(id: Id, user: User)
src/app/auth/repositories/user.repository.ts:18
↓ 2 callers
Function
responseMock
()
src/app/auth/services/session-auth.service.spec.ts:20
↓ 2 callers
Method
signup
(signupRequest: AuthRequest)
src/app/auth/services/signup.service.ts:51
↓ 1 callers
Function
allowOwnUserPatchOnly
()
src/app/settings/account/account.middleware.ts:45
↓ 1 callers
Method
assertUserWithExternalIdNotExist
(provider: string, externalId: string)
src/app/auth/repositories/user.repository.ts:12
↓ 1 callers
Function
categoryBelongsToAccount
()
src/app/settings/categories/categories.middleware.ts:8
↓ 1 callers
Function
checkErrors
(req: Request)
src/app/auth0/auth0.controller.ts:31
↓ 1 callers
Method
checkOtpIfRequired
(loginRequest: AuthRequest, user: User)
src/app/auth/services/otp.service.ts:9
↓ 1 callers
Method
confirm
(email: string, confirmationCode: string)
src/app/auth/services/signup.service.ts:78
↓ 1 callers
Function
counterparty
()
src/app/expenses/expenses.validator.ts:14
↓ 1 callers
Method
createExpense
(expense: Expense)
src/app/expenses/expenses.repository.ts:13
↓ 1 callers
Function
createSignedToken
(user: User)
src/app/auth/services/jwt-auth.service.ts:70
↓ 1 callers
Function
datetime
()
src/app/expenses/expenses.validator.ts:10
↓ 1 callers
Method
deleteExpense
(id: Id)
src/app/expenses/expenses.repository.ts:17
↓ 1 callers
Function
denyOwnUserDeletion
()
src/app/settings/account/account.middleware.ts:30
↓ 1 callers
Method
destroySession
(sessionId: string)
src/app/admin/admin.service.ts:31
↓ 1 callers
Method
doLogin
(user: any, session: any)
src/app/auth0/auth0.service.ts:31
↓ 1 callers
Method
doSignup
(provider: string, userInfo: UserInfo)
src/app/auth/services/external-auth/external-auth.service.ts:54
↓ 1 callers
Function
emailValidator
()
src/app/auth/auth.validator.ts:10
↓ 1 callers
Function
errorParser
()
src/app/auth/auth.validator.ts:15
↓ 1 callers
Function
errorParser
()
src/app/expenses/expenses.validator.ts:18
↓ 1 callers
Function
formatErrors
(errors: ValidationError[])
src/app/auth/auth.validator.ts:27
↓ 1 callers
Function
formatErrors
(errors: ValidationError[])
src/app/expenses/expenses.validator.ts:30
↓ 1 callers
Method
generateNewSecret
()
src/app/auth/services/otp.service.ts:46
↓ 1 callers
Method
getActiveSessions
()
src/app/admin/admin.service.ts:8
↓ 1 callers
Function
getAuthService
()
src/app/auth/services/auth.service.instance.ts:12
↓ 1 callers
Method
getBudgetSummary
(accountId: Id, period: Period)
src/app/dashboard/budget.repository.ts:10
↓ 1 callers
Method
getBugdets
(accountId: Id, period: Period)
src/app/dashboard/budget.repository.ts:8
↓ 1 callers
Method
getCategories
(accountId: Id)
src/app/settings/categories/categories.repository.ts:8
↓ 1 callers
Method
getExpense
(id: Id)
src/app/expenses/expenses.repository.ts:7
↓ 1 callers
Method
getExpense
(id: Id)
src/app/expenses/in-memory-expenses.repository.ts:9
↓ 1 callers
Method
getExpenses
(accountId: Id, period: Period)
src/app/expenses/expenses.repository.ts:9
↓ 1 callers
Method
getExpensesByCategory
(accountId: Id, period: Period, category: string)
src/app/expenses/expenses.repository.ts:11
↓ 1 callers
Method
getIdToken
(authCode: string)
src/app/auth0/auth0.api.ts:9
↓ 1 callers
Method
getLastFailures
(userEmail: string, number: number)
src/app/auth/repositories/login-failure.repository.ts:7
↓ 1 callers
Method
getOtpKeyUri
(user: User)
src/app/auth/services/otp.service.ts:41
↓ 1 callers
Method
getUserByExternalId
(provider: string, externalId: string)
src/app/auth/repositories/in-memory/in-memory-user.repository.ts:24
↓ 1 callers
Method
getUserById
(id: Id, attachAccount?: boolean)
src/app/auth/repositories/user.repository.ts:6
↓ 1 callers
Method
getUserById
(id: Id, attachAccount = false)
src/app/auth/repositories/in-memory/in-memory-user.repository.ts:7
↓ 1 callers
Method
getUserFromToken
(token: string)
src/app/auth0/auth0.service.ts:72
↓ 1 callers
Method
initRoutes
()
src/app/expenses/expenses.controller.ts:22
↓ 1 callers
Method
initRoutes
()
src/app/dashboard/dashboard.controller.ts:19
↓ 1 callers
Method
isLoginBlocked
(userEmail: string)
src/app/auth/services/login.throttler.ts:13
↓ 1 callers
Method
isUserSignedUp
(user: any)
src/app/auth0/auth0.service.ts:66
↓ 1 callers
Method
normalizeUserFromApi
(user: any)
src/app/auth0/auth0.service.ts:84
↓ 1 callers
Method
normalizeUserFromToken
(user: any)
src/app/auth0/auth0.service.ts:78
↓ 1 callers
Function
passwordValidator
()
src/app/auth/auth.validator.ts:5
↓ 1 callers
Function
readerOnlyReads
()
src/app/auth/role.middleware.ts:6
↓ 1 callers
Method
recover
(email: string, recoveryCode: string, password: string)
src/app/auth/services/password.service.ts:49
↓ 1 callers
Method
registerFailedLogin
(userEmail: string, datetime: Date)
src/app/auth/repositories/login-failure.repository.ts:9
↓ 1 callers
Method
registerLoginFailure
(userEmail: string)
src/app/auth/services/login.throttler.ts:29
↓ 1 callers
Method
requestRecovery
(email: string)
src/app/auth/services/password.service.ts:30
↓ 1 callers
Method
sendConfirmationEmail
(email: string, code: string)
src/app/auth/services/signup.service.ts:91
↓ 1 callers
Method
sendConfirmationEmail
(email: string, code: string)
src/app/settings/account/account.service.ts:60
↓ 1 callers
Method
sendRecoveryEmail
(email: string, code: string)
src/app/auth/services/password.service.ts:69
↓ 1 callers
Method
setUserAccountAndRole
(userId: Id, accountId: Id, role: UserRole)
src/app/auth0/auth0.service.ts:57
↓ 1 callers
Method
setup
(email: string, confirmationCode: string, password: string)
src/app/auth/services/password.service.ts:12
↓ 1 callers
Method
signupIfNeeded
(user: User, session: any)
src/app/auth0/auth0.service.ts:38
↓ 1 callers
Method
updateExpense
(expense: Expense)
src/app/expenses/expenses.repository.ts:15
↓ 1 callers
Method
updateUser
(accessToken: string, userId: Id, data: any)
src/app/auth0/auth0.api.ts:44
↓ 1 callers
Function
userBelongsToAccount
()
src/app/settings/account/account.middleware.ts:8
↓ 1 callers
Function
value
()
src/app/expenses/expenses.validator.ts:5
Method
ascendingByTime
(f1: LoginFailure, f2: LoginFailure)
src/app/auth/repositories/in-memory/in-memory-login-failure.repository.ts:7
Function
assertStateIsValid
(session: any, state: string)
src/app/auth/services/external-auth/state.service.ts:19
Method
assertUserWithExternalIdNotExist
(provider: string, externalId: string)
src/app/auth/repositories/in-memory/in-memory-user.repository.ts:31
next →
1–100 of 160, ranked by callers