MCPcopy Create free account

hub / github.com/cholasimmons/bun-elysia-modular_auth / functions

Functions531 in github.com/cholasimmons/bun-elysia-modular_auth

Methodaggregate
* Allows you to perform aggregations operations on a WalletTransactionLog. * Note, that providing `undefined` is treated as the value not being the
src/generated/prisma/models/WalletTransactionLog.ts:1131
Methodaggregate
* Allows you to perform aggregations operations on a EmailVerificationCode. * Note, that providing `undefined` is treated as the value not being th
src/generated/prisma/models/EmailVerificationCode.ts:696
Methodaggregate
* Allows you to perform aggregations operations on a AutoEnrol. * Note, that providing `undefined` is treated as the value not being there. * Re
src/generated/prisma/models/AutoEnrol.ts:813
MethodauthSession
(args?: Prisma.Subset<T, Prisma.User$authSessionArgs<ExtArgs>>)
src/generated/prisma/models/User.ts:1432
MethodautoEnrol
* `prisma.autoEnrol`: Exposes CRUD operations for the **AutoEnrol** model. * Example usage: * ```ts * // Fetch zero or more AutoEnrols
src/generated/prisma/internal/class.ts:339
FunctionbanAgentInsomnia
(ctx:any)
src/_middleware/lifecycleHandlers.ts:3
FunctionbootLogger
({ hostname, server }:any)
src/_utils/systemLogger.ts:39
MethodbroadcastToCategory
(category: string, message: string)
src/_modules/notifications/connectionsManager.ts:140
Methodcatch
* 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/Session.ts:1163
Methodcatch
* 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/WalletTransaction.ts:1293
Methodcatch
* 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/PasswordResetToken.ts:773
Methodcatch
* 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/WSConnections.ts:800
Methodcatch
* 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/FileUpload.ts:1187
Methodcatch
* 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/Profile.ts:1861
Methodcatch
* 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/Wallet.ts:1131
Methodcatch
* 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/Message.ts:963
Methodcatch
* 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/Subscription.ts:889
Methodcatch
* 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/OAuth_Account.ts:795
Methodcatch
* 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/CouponLog.ts:1034
Methodcatch
* 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/Coupon.ts:1157
Methodcatch
* 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/WalletTransactionLog.ts:1235
Methodcatch
* 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/EmailVerificationCode.ts:800
Methodcatch
* 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/AutoEnrol.ts:917
FunctioncheckAuth
({ session, user, request: { headers }, cookie: { lucia_auth }, authMethod, jwt, error, }: any)
src/_middleware/authChecks.ts:24
FunctioncheckBalance
( profileId: string, opts?: { currency: Currency }, )
src/_modules/wallets/wallet.service.ts:20
FunctioncheckEmailVerified
({ user, error }: any)
src/_middleware/authChecks.ts:82
FunctioncheckForProfile
({ user, session, error }: any)
src/_middleware/authChecks.ts:115
FunctioncheckIsAdmin
({ user, error }: any)
src/_middleware/authChecks.ts:95
FunctioncheckIsStaff
({ user, error }: any)
src/_middleware/authChecks.ts:104
FunctioncheckMaintenanceMode
({set, store}:any)
src/_middleware/lifecycleHandlers.ts:13
FunctionclearDeletedMessages
CRON function * Deletes all inactive messages older than 30 days
src/_modules/messages/message.service.ts:153
FunctionclearExpiredEmailVerificationCodes
()
src/_modules/auth/auth.service.ts:344
Functionclose
(ws)
src/_modules/notifications/index.ts:65
Functionconstructor
(queueName: string)
src/_queues/base.queue.ts:9
Functionconstructor
(queueName: string)
src/_queues/workers/base.worker.ts:9
Methodconstructor
()
src/_queues/file.queue.ts:6
Methodconstructor
(private authService: AuthService)
src/_queues/email.queue.ts:10
Methodconstructor
()
src/_queues/workers/file.worker.ts:6
Methodconstructor
(authService: AuthService)
src/_queues/workers/email.worker.ts:11
Methodconstructor
()
src/_modules/notifications/connectionsManager.ts:22
Methodconstructor
(redisUrl = `redis://${_host}:${_port}`)
src/_config/redis.ts:78
Methodconstructor
(public message: string, status: number = 401, cause?: string)
src/_exceptions/custom_errors.ts:10
Methodconstructor
(public message: string = "You do not have permission to perform this action", status: number = 403, cause?: s
src/_exceptions/custom_errors.ts:24
Methodconstructor
(public message: string = "The requested resource was not found", status: number = 404, cause?: string)
src/_exceptions/custom_errors.ts:38
Methodconstructor
(public message: string = "Your requested is not valid", status: number = HttpStatusEnum.HTTP_400_BAD_REQUEST,
src/_exceptions/custom_errors.ts:52
Methodconstructor
(public message: string = "A persistence storage error occurred", status: number, cause?: string)
src/_exceptions/custom_errors.ts:66
Methodconstructor
(public message: string = "Unable to process payment request", status: number = HttpStatusEnum.HTTP_402_PAYMEN
src/_exceptions/custom_errors.ts:81
Methodconstructor
(public message: string, status: number = 500, cause?: string)
src/_exceptions/custom_errors.ts:94
Methodconstructor
( public message: string = "Input validation failed", status: number = HttpStatusEnum.HTTP_400
src/_exceptions/custom_errors.ts:108
Methodconstructor
( public message: string = "A third-party service is unavailable or returned an error", status
src/_exceptions/custom_errors.ts:126
Methodconstructor
(public message: string = "Conflict occurred with the current state of the resource", status: number = 409, ca
src/_exceptions/custom_errors.ts:144
Methodconstructor
(public message: string = "Too many requests. Please try again later", status: number = HttpStatusEnum.HTTP_42
src/_exceptions/custom_errors.ts:158
Methodconstructor
(public message: string = "An unexpected error occurred", status: number = 500, cause?: string)
src/_exceptions/custom_errors.ts:172
Methodconstructor
(public message: string = "The operation timed out", status: number = 504, cause?: string)
src/_exceptions/custom_errors.ts:186
Methodconstructor
(public message: string = "The service is temporarily unavailable", status: number = 503, cause?: string)
src/_exceptions/custom_errors.ts:200
Methodconstructor
(public message: string = "Payment is required to access this resource", status: number = HttpStatusEnum.HTTP_
src/_exceptions/custom_errors.ts:214
Methodcount
* Count the number of Sessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/
src/generated/prisma/models/Session.ts:1024
Methodcount
* Count the number of WalletTransactions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://
src/generated/prisma/models/WalletTransaction.ts:1154
Methodcount
* Count the number of PasswordResetTokens. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https:/
src/generated/prisma/models/PasswordResetToken.ts:635
Methodcount
* Count the number of WSConnections. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.
src/generated/prisma/models/WSConnections.ts:662
Methodcount
* Count the number of FileUploads. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly
src/generated/prisma/models/FileUpload.ts:1049
Methodcount
* Count the number of Profiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/
src/generated/prisma/models/Profile.ts:1719
Methodcount
* Count the number of Wallets. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/n
src/generated/prisma/models/Wallet.ts:991
Methodcount
* Count the number of Messages. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/
src/generated/prisma/models/Message.ts:825
Methodcount
* Count the number of Subscriptions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.
src/generated/prisma/models/Subscription.ts:750
Methodcount
* Count the number of OAuth_Accounts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris
src/generated/prisma/models/OAuth_Account.ts:656
Methodcount
* Count the number of CouponLogs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/
src/generated/prisma/models/CouponLog.ts:896
Methodcount
* Count the number of Coupons. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/n
src/generated/prisma/models/Coupon.ts:1018
Methodcount
* Count the number of WalletTransactionLogs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https
src/generated/prisma/models/WalletTransactionLog.ts:1097
Methodcount
* Count the number of EmailVerificationCodes. * Note, that providing `undefined` is treated as the value not being there. * Read more here: http
src/generated/prisma/models/EmailVerificationCode.ts:662
Methodcount
* Count the number of AutoEnrols. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/
src/generated/prisma/models/AutoEnrol.ts:779
Methodcoupon
* `prisma.coupon`: Exposes CRUD operations for the **Coupon** model. * Example usage: * ```ts * // Fetch zero or more Coupons * const
src/generated/prisma/internal/class.ts:239
MethodcouponLog
* `prisma.couponLog`: Exposes CRUD operations for the **CouponLog** model. * Example usage: * ```ts * // Fetch zero or more CouponLogs
src/generated/prisma/internal/class.ts:249
Functioncreate
( userProfileId: string, query?: { initialBalance: number; currency: Currency }, )
src/_modules/wallets/wallet.service.ts:45
Methodcreate
* Create a Session. * @param {SessionCreateArgs} args - Arguments to create a Session. * @example * // Create one Session * const Session
src/generated/prisma/models/Session.ts:857
Methodcreate
* Create a WalletTransaction. * @param {WalletTransactionCreateArgs} args - Arguments to create a WalletTransaction. * @example * // Create o
src/generated/prisma/models/WalletTransaction.ts:987
Methodcreate
* Create a PasswordResetToken. * @param {PasswordResetTokenCreateArgs} args - Arguments to create a PasswordResetToken. * @example * // Creat
src/generated/prisma/models/PasswordResetToken.ts:468
Methodcreate
* Create a WSConnections. * @param {WSConnectionsCreateArgs} args - Arguments to create a WSConnections. * @example * // Create one WSConnect
src/generated/prisma/models/WSConnections.ts:495
Methodcreate
* Create a FileUpload. * @param {FileUploadCreateArgs} args - Arguments to create a FileUpload. * @example * // Create one FileUpload * co
src/generated/prisma/models/FileUpload.ts:882
Methodcreate
* Create a Profile. * @param {ProfileCreateArgs} args - Arguments to create a Profile. * @example * // Create one Profile * const Profile
src/generated/prisma/models/Profile.ts:1552
Methodcreate
* Create a Wallet. * @param {WalletCreateArgs} args - Arguments to create a Wallet. * @example * // Create one Wallet * const Wallet = awa
src/generated/prisma/models/Wallet.ts:824
Methodcreate
* Create a Message. * @param {MessageCreateArgs} args - Arguments to create a Message. * @example * // Create one Message * const Message
src/generated/prisma/models/Message.ts:658
Methodcreate
* Create a Subscription. * @param {SubscriptionCreateArgs} args - Arguments to create a Subscription. * @example * // Create one Subscription
src/generated/prisma/models/Subscription.ts:583
Methodcreate
* Create a OAuth_Account. * @param {OAuth_AccountCreateArgs} args - Arguments to create a OAuth_Account. * @example * // Create one OAuth_Acc
src/generated/prisma/models/OAuth_Account.ts:489
Methodcreate
* Create a CouponLog. * @param {CouponLogCreateArgs} args - Arguments to create a CouponLog. * @example * // Create one CouponLog * const
src/generated/prisma/models/CouponLog.ts:729
Methodcreate
* Create a Coupon. * @param {CouponCreateArgs} args - Arguments to create a Coupon. * @example * // Create one Coupon * const Coupon = awa
src/generated/prisma/models/Coupon.ts:851
Methodcreate
* Create a WalletTransactionLog. * @param {WalletTransactionLogCreateArgs} args - Arguments to create a WalletTransactionLog. * @example * //
src/generated/prisma/models/WalletTransactionLog.ts:930
Methodcreate
* Create a EmailVerificationCode. * @param {EmailVerificationCodeCreateArgs} args - Arguments to create a EmailVerificationCode. * @example *
src/generated/prisma/models/EmailVerificationCode.ts:495
Methodcreate
* Create a AutoEnrol. * @param {AutoEnrolCreateArgs} args - Arguments to create a AutoEnrol. * @example * // Create one AutoEnrol * const
src/generated/prisma/models/AutoEnrol.ts:612
FunctioncreateAndSendMessage
( body: MessageInputCreate, userId?: string, )
src/_modules/messages/message.service.ts:17
FunctioncreateAndSendMessageSafely
( body: MessageInputCreate, userId?: string, )
src/_modules/messages/message.service.ts:45
FunctioncreateCoupon
( profileId: string, body: ICreateCoupon, query?: { usedBy?: boolean }, )
src/_modules/coupons/coupon.service.ts:11
FunctioncreateJWTs
( payload: any, jwt: any, rememberMe?: boolean, )
src/_modules/auth/auth.service.ts:166
FunctioncreateLuciaSession
( userId: string, headers: Headers, profileId?: string | null, rememberMe?: boolean, )
src/_modules/auth/auth.service.ts:53
MethodcreateMany
* Create many Sessions. * @param {SessionCreateManyArgs} args - Arguments to create many Sessions. * @example * // Create many Sessions *
src/generated/prisma/models/Session.ts:871
MethodcreateMany
* Create many WalletTransactions. * @param {WalletTransactionCreateManyArgs} args - Arguments to create many WalletTransactions. * @example *
src/generated/prisma/models/WalletTransaction.ts:1001
MethodcreateMany
* Create many PasswordResetTokens. * @param {PasswordResetTokenCreateManyArgs} args - Arguments to create many PasswordResetTokens. * @example
src/generated/prisma/models/PasswordResetToken.ts:482
MethodcreateMany
* Create many WSConnections. * @param {WSConnectionsCreateManyArgs} args - Arguments to create many WSConnections. * @example * // Create man
src/generated/prisma/models/WSConnections.ts:509
MethodcreateMany
* Create many FileUploads. * @param {FileUploadCreateManyArgs} args - Arguments to create many FileUploads. * @example * // Create many FileU
src/generated/prisma/models/FileUpload.ts:896
MethodcreateMany
* Create many Profiles. * @param {ProfileCreateManyArgs} args - Arguments to create many Profiles. * @example * // Create many Profiles *
src/generated/prisma/models/Profile.ts:1566
← previousnext →101–200 of 531, ranked by callers