Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cholasimmons/bun-elysia-modular_auth
/ functions
Functions
531 in github.com/cholasimmons/bun-elysia-modular_auth
⨍
Functions
531
◇
Types & classes
124
↓ 130 callers
Function
__nullable__
(schema: T)
src/generated/prismabox/__nullable__.ts:2
↓ 67 callers
Function
swaggerDetails
(title: string, description?: string)
src/_utils/response_helper.ts:3
↓ 27 callers
Method
update
* Update one User. * @param {UserUpdateArgs} args - Arguments to update one User. * @example * // Update one User * const user = await pri
src/generated/prisma/models/User.ts:1206
↓ 21 callers
Method
create
* Create a User. * @param {UserCreateArgs} args - Arguments to create a User. * @example * // Create one User * const User = await prisma.
src/generated/prisma/models/User.ts:1137
↓ 20 callers
Method
findUnique
* Find zero or one User that matches the filter. * @param {UserFindUniqueArgs} args - Arguments to find a User * @example * // Get one User
src/generated/prisma/models/User.ts:1060
↓ 14 callers
Function
redisSet
( key: string, data: any, lifespan: number = 5, )
src/_config/redis.ts:24
↓ 12 callers
Method
findFirst
* Find the first User that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: htt
src/generated/prisma/models/User.ts:1089
↓ 10 callers
Method
findMany
* Find zero or more Users that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here:
src/generated/prisma/models/User.ts:1123
↓ 8 callers
Method
$transaction
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. * @example * ``` * cons
src/generated/prisma/internal/class.ts:183
↓ 8 callers
Function
storeBuffer
(buffer: Buffer|Readable, bucket: string, meta?:{ name:string, size:number, type: string, 'X-Amz-Meta-Mode'?:s
src/_modules/files/minio.controller.ts:24
↓ 7 callers
Function
queueOptions
( delaySeconds: number = 10, attempts: number = 5, priority: number = 5, )
src/_queues/queues.ts:17
↓ 7 callers
Function
redisGet
(key: string)
src/_config/redis.ts:16
↓ 6 callers
Method
delete
* Delete a User. * @param {UserDeleteArgs} args - Arguments to delete one User. * @example * // Delete one User * const User = await prism
src/generated/prisma/models/User.ts:1189
↓ 6 callers
Method
deleteMany
* Delete zero or more Users. * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. * @example * // Delete a few Users
src/generated/prisma/models/User.ts:1220
↓ 6 callers
Method
publish
* Publish a message to a channel * @param channel - The name of the channel * @param message - The message payload (JSON, string, etc.)
src/_config/redis.ts:88
↓ 6 callers
Method
then
* Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved.
src/generated/prisma/models/User.ts:1439
↓ 5 callers
Method
$disconnect
* Disconnect from the database
src/generated/prisma/internal/class.ts:121
↓ 5 callers
Method
subscribe
* Subscribe to a channel and execute a callback on message reception * @param channel - The name of the channel * @param callback - The function
src/_config/redis.ts:99
↓ 4 callers
Method
$connect
* Connect with the database
src/generated/prisma/internal/class.ts:116
↓ 4 callers
Function
splitWords
(sentence: string, index: number = 1)
src/_utils/utilities.ts:36
↓ 3 callers
Method
count
* Count the number of Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/nul
src/generated/prisma/models/User.ts:1304
↓ 3 callers
Function
redisKeys
(pattern: string)
src/_config/redis.ts:40
↓ 2 callers
Method
catch
* Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @return
src/generated/prisma/models/User.ts:1445
↓ 2 callers
Method
createMany
* Create many Users. * @param {UserCreateManyArgs} args - Arguments to create many Users. * @example * // Create many Users * const user =
src/generated/prisma/models/User.ts:1151
↓ 2 callers
Function
dateToFilename
(nowDate: Date = new Date(), extension?: string)
src/_utils/utilities.ts:15
↓ 2 callers
Function
formatDate
(date: Date)
src/_utils/utilities.ts:5
↓ 2 callers
Method
getCachedConnection
Get web socket connections from cache/database, by UserID * @param userId *
src/_modules/notifications/connectionsManager.ts:220
↓ 2 callers
Function
getDeviceIdentifier
(headers: Headers)
src/_utils/utilities.ts:90
↓ 2 callers
Function
getGreeting
()
src/_modules/root/index.ts:47
↓ 2 callers
Function
handleAuthorizationError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:135
↓ 2 callers
Function
handleDatabaseInitError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:89
↓ 2 callers
Function
handleInternalServerError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:43
↓ 2 callers
Function
handleValidationError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:57
↓ 2 callers
Function
prismaSearch
( model: T, options: SearchOptions, )
src/_config/prisma.ts:22
↓ 2 callers
Function
redisDel
(key: string)
src/_config/redis.ts:34
↓ 2 callers
Method
sendMessageToUser
(userId: string, message: any)
src/_modules/notifications/connectionsManager.ts:161
↓ 1 callers
Method
addConnection
(ws: ElysiaWS, userId: string, connectionId?: string)
src/_modules/notifications/connectionsManager.ts:33
↓ 1 callers
Function
blacklistToken
(token: string, expiry: number)
src/_config/redis.ts:64
↓ 1 callers
Method
close
* Close the Redis connections
src/_config/redis.ts:120
↓ 1 callers
Function
decodeBase64AsWasm
(wasmBase64: string)
src/generated/prisma/internal/class.ts:41
↓ 1 callers
Method
finally
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callbac
src/generated/prisma/models/User.ts:1452
↓ 1 callers
Method
getCategories
( userId: string, connectionId: string, )
src/_modules/notifications/connectionsManager.ts:153
↓ 1 callers
Method
getConnectionByUserId
(userId: string)
src/_modules/notifications/connectionsManager.ts:134
↓ 1 callers
Function
getFile
(filename: string, bucket: string)
src/_modules/files/minio.controller.ts:60
↓ 1 callers
Function
getFiles
(bucket: string)
src/_modules/files/minio.controller.ts:67
↓ 1 callers
Function
handleAuthenticationError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:145
↓ 1 callers
Function
handleConflictError
(error:CustomError, set: any)
src/_middleware/errorMessages.ts:125
↓ 1 callers
Function
handleDatabaseError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:98
↓ 1 callers
Function
handleDatabaseValidationError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:93
↓ 1 callers
Function
handleInvalidBucketError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:35
↓ 1 callers
Function
handleMinioConnectError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:103
↓ 1 callers
Function
handleNoAccessError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:154
↓ 1 callers
Function
handleNotFoundError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:25
↓ 1 callers
Function
handleParseError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:76
↓ 1 callers
Function
handleRequestError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:116
↓ 1 callers
Function
handleRouteNotFoundError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:15
↓ 1 callers
Function
handleServiceUnavailableError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:5
↓ 1 callers
Function
handleUnknownError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:83
↓ 1 callers
Function
initializeCouponEventListeners
()
src/_events/events.ts:84
↓ 1 callers
Function
initializeEventListeners
()
src/_events/events.ts:122
↓ 1 callers
Function
initializeMessagingEventListeners
()
src/_events/events.ts:102
↓ 1 callers
Function
initializeTestEventListeners
()
src/_events/events.ts:14
↓ 1 callers
Function
initializeUserEventListeners
()
src/_events/events.ts:26
↓ 1 callers
Function
initializeWalletEventListeners
()
src/_events/events.ts:65
↓ 1 callers
Function
isResponseFile
(r:any)
src/_middleware/customResponse.ts:9
↓ 1 callers
Function
main
()
prisma/seed.ts:8
↓ 1 callers
Function
readStream
(dataStream: any)
src/_modules/files/minio.controller.ts:46
↓ 1 callers
Method
recoverSingleConnection
(ws: ElysiaWS, userId: string)
src/_modules/notifications/connectionsManager.ts:78
↓ 1 callers
Function
redisExists
( key: string, data: string, )
src/_config/redis.ts:47
↓ 1 callers
Method
removeConnection
(connectionId: string)
src/_modules/notifications/connectionsManager.ts:54
↓ 1 callers
Method
syncCacheWithDatabase
Cron job to sync cache with database * @interval 60000 (60 seconds)
src/_modules/notifications/connectionsManager.ts:193
↓ 1 callers
Method
syncDatabaseWithCache
Cron job to sync cache with database * @interval 60000 (60 seconds)
src/_modules/notifications/connectionsManager.ts:174
↓ 1 callers
Method
upsert
* Create or update one User. * @param {UserUpsertArgs} args - Arguments to update or create a User. * @example * // Update or create a User
src/generated/prisma/models/User.ts:1288
↓ 1 callers
Function
usernameFromEmail
(email: string)
src/_utils/utilities.ts:29
Method
$executeRaw
* Executes a prepared raw query and returns the number of affected rows. * @example * ``` * const result = await prisma.$executeRaw`UPDATE Us
src/generated/prisma/internal/class.ts:132
Method
$executeRawUnsafe
* Executes a raw query and returns the number of affected rows. * Susceptible to SQL injections, see documentation. * @example * ``` * con
src/generated/prisma/internal/class.ts:144
Method
$on
(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void)
src/generated/prisma/internal/class.ts:111
Method
$queryRaw
* Performs a prepared raw query and returns the `SELECT` data. * @example * ``` * const result = await prisma.$queryRaw`SELECT * FROM User WH
src/generated/prisma/internal/class.ts:155
Method
$queryRawUnsafe
* Performs a raw query and returns the `SELECT` data. * Susceptible to SQL injections, see documentation. * @example * ``` * const result
src/generated/prisma/internal/class.ts:167
Function
Delete
(path: string, responseOptions: ResponseOptions = {})
src/_utils/routeMethods.ts:74
Function
Get
(path: string, responseOptions: ResponseOptions = {})
src/_utils/routeMethods.ts:21
Function
Post
(path: string, responseOptions: ResponseOptions = {})
src/_utils/routeMethods.ts:40
Function
Put
(path: string, responseOptions: ResponseOptions = {})
src/_utils/routeMethods.ts:57
Function
__transformDate__
(options?: Parameters<typeof t.String>[0])
src/generated/prismabox/__transformDate__.ts:2
Function
add
(name: string, data: any, options?: any)
src/_queues/base.queue.ts:34
Function
add
( roles: Role[], newRoles: Role | Role[], replaceRoles?: Role | Role[], )
src/_modules/users/users.service.ts:214
Function
addPrefs
(userId: string, newPrefs: string)
src/_modules/users/users.service.ts:437
Method
aggregate
* Allows you to perform aggregations operations on a User. * Note, that providing `undefined` is treated as the value not being there. * Read mo
src/generated/prisma/models/User.ts:1338
Method
aggregate
* Allows you to perform aggregations operations on a Session. * Note, that providing `undefined` is treated as the value not being there. * Read
src/generated/prisma/models/Session.ts:1058
Method
aggregate
* Allows you to perform aggregations operations on a WalletTransaction. * Note, that providing `undefined` is treated as the value not being there.
src/generated/prisma/models/WalletTransaction.ts:1188
Method
aggregate
* Allows you to perform aggregations operations on a PasswordResetToken. * Note, that providing `undefined` is treated as the value not being there
src/generated/prisma/models/PasswordResetToken.ts:669
Method
aggregate
* Allows you to perform aggregations operations on a WSConnections. * Note, that providing `undefined` is treated as the value not being there.
src/generated/prisma/models/WSConnections.ts:696
Method
aggregate
* Allows you to perform aggregations operations on a FileUpload. * Note, that providing `undefined` is treated as the value not being there. * R
src/generated/prisma/models/FileUpload.ts:1083
Method
aggregate
* Allows you to perform aggregations operations on a Profile. * Note, that providing `undefined` is treated as the value not being there. * Read
src/generated/prisma/models/Profile.ts:1753
Method
aggregate
* Allows you to perform aggregations operations on a Wallet. * Note, that providing `undefined` is treated as the value not being there. * Read
src/generated/prisma/models/Wallet.ts:1025
Method
aggregate
* Allows you to perform aggregations operations on a Message. * Note, that providing `undefined` is treated as the value not being there. * Read
src/generated/prisma/models/Message.ts:859
Method
aggregate
* Allows you to perform aggregations operations on a Subscription. * Note, that providing `undefined` is treated as the value not being there. *
src/generated/prisma/models/Subscription.ts:784
Method
aggregate
* Allows you to perform aggregations operations on a OAuth_Account. * Note, that providing `undefined` is treated as the value not being there.
src/generated/prisma/models/OAuth_Account.ts:690
Method
aggregate
* Allows you to perform aggregations operations on a CouponLog. * Note, that providing `undefined` is treated as the value not being there. * Re
src/generated/prisma/models/CouponLog.ts:930
Method
aggregate
* Allows you to perform aggregations operations on a Coupon. * Note, that providing `undefined` is treated as the value not being there. * Read
src/generated/prisma/models/Coupon.ts:1052
next →
1–100 of 531, ranked by callers