MCPcopy Create free account

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

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

MethodfindFirstOrThrow
* Find the first Profile that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that pr
src/generated/prisma/models/Profile.ts:1520
MethodfindFirstOrThrow
* Find the first Wallet that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that pro
src/generated/prisma/models/Wallet.ts:792
MethodfindFirstOrThrow
* Find the first Message that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that pr
src/generated/prisma/models/Message.ts:626
MethodfindFirstOrThrow
* Find the first Subscription that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, th
src/generated/prisma/models/Subscription.ts:551
MethodfindFirstOrThrow
* Find the first OAuth_Account that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, t
src/generated/prisma/models/OAuth_Account.ts:457
MethodfindFirstOrThrow
* Find the first CouponLog that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that
src/generated/prisma/models/CouponLog.ts:697
MethodfindFirstOrThrow
* Find the first Coupon that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that pro
src/generated/prisma/models/Coupon.ts:819
MethodfindFirstOrThrow
* Find the first WalletTransactionLog that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. *
src/generated/prisma/models/WalletTransactionLog.ts:898
MethodfindFirstOrThrow
* Find the first EmailVerificationCode that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. *
src/generated/prisma/models/EmailVerificationCode.ts:463
MethodfindFirstOrThrow
* Find the first AutoEnrol that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that
src/generated/prisma/models/AutoEnrol.ts:580
MethodfindMany
* Find zero or more Sessions that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more he
src/generated/prisma/models/Session.ts:843
MethodfindMany
* Find zero or more WalletTransactions that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Re
src/generated/prisma/models/WalletTransaction.ts:973
MethodfindMany
* Find zero or more PasswordResetTokens that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * R
src/generated/prisma/models/PasswordResetToken.ts:454
MethodfindMany
* Find zero or more WSConnections that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read mo
src/generated/prisma/models/WSConnections.ts:481
MethodfindMany
* Find zero or more FileUploads that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more
src/generated/prisma/models/FileUpload.ts:868
MethodfindMany
* Find zero or more Profiles that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more he
src/generated/prisma/models/Profile.ts:1538
MethodfindMany
* Find zero or more Wallets that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more her
src/generated/prisma/models/Wallet.ts:810
MethodfindMany
* Find zero or more Messages that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more he
src/generated/prisma/models/Message.ts:644
MethodfindMany
* Find zero or more Subscriptions that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read mo
src/generated/prisma/models/Subscription.ts:569
MethodfindMany
* Find zero or more OAuth_Accounts that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read m
src/generated/prisma/models/OAuth_Account.ts:475
MethodfindMany
* Find zero or more CouponLogs that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more
src/generated/prisma/models/CouponLog.ts:715
MethodfindMany
* Find zero or more Coupons that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more her
src/generated/prisma/models/Coupon.ts:837
MethodfindMany
* Find zero or more WalletTransactionLogs that matches the filter. * Note, that providing `undefined` is treated as the value not being there. *
src/generated/prisma/models/WalletTransactionLog.ts:916
MethodfindMany
* Find zero or more EmailVerificationCodes that matches the filter. * Note, that providing `undefined` is treated as the value not being there.
src/generated/prisma/models/EmailVerificationCode.ts:481
MethodfindMany
* Find zero or more AutoEnrols that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more
src/generated/prisma/models/AutoEnrol.ts:598
MethodfindUnique
* Find zero or one Session that matches the filter. * @param {SessionFindUniqueArgs} args - Arguments to find a Session * @example * // Get o
src/generated/prisma/models/Session.ts:780
MethodfindUnique
* Find zero or one WalletTransaction that matches the filter. * @param {WalletTransactionFindUniqueArgs} args - Arguments to find a WalletTransacti
src/generated/prisma/models/WalletTransaction.ts:910
MethodfindUnique
* Find zero or one PasswordResetToken that matches the filter. * @param {PasswordResetTokenFindUniqueArgs} args - Arguments to find a PasswordReset
src/generated/prisma/models/PasswordResetToken.ts:391
MethodfindUnique
* Find zero or one WSConnections that matches the filter. * @param {WSConnectionsFindUniqueArgs} args - Arguments to find a WSConnections * @exa
src/generated/prisma/models/WSConnections.ts:418
MethodfindUnique
* Find zero or one FileUpload that matches the filter. * @param {FileUploadFindUniqueArgs} args - Arguments to find a FileUpload * @example *
src/generated/prisma/models/FileUpload.ts:805
MethodfindUnique
* Find zero or one Profile that matches the filter. * @param {ProfileFindUniqueArgs} args - Arguments to find a Profile * @example * // Get o
src/generated/prisma/models/Profile.ts:1475
MethodfindUnique
* Find zero or one Wallet that matches the filter. * @param {WalletFindUniqueArgs} args - Arguments to find a Wallet * @example * // Get one
src/generated/prisma/models/Wallet.ts:747
MethodfindUnique
* Find zero or one Message that matches the filter. * @param {MessageFindUniqueArgs} args - Arguments to find a Message * @example * // Get o
src/generated/prisma/models/Message.ts:581
MethodfindUnique
* Find zero or one Subscription that matches the filter. * @param {SubscriptionFindUniqueArgs} args - Arguments to find a Subscription * @exampl
src/generated/prisma/models/Subscription.ts:506
MethodfindUnique
* Find zero or one OAuth_Account that matches the filter. * @param {OAuth_AccountFindUniqueArgs} args - Arguments to find a OAuth_Account * @exa
src/generated/prisma/models/OAuth_Account.ts:412
MethodfindUnique
* Find zero or one CouponLog that matches the filter. * @param {CouponLogFindUniqueArgs} args - Arguments to find a CouponLog * @example * //
src/generated/prisma/models/CouponLog.ts:652
MethodfindUnique
* Find zero or one Coupon that matches the filter. * @param {CouponFindUniqueArgs} args - Arguments to find a Coupon * @example * // Get one
src/generated/prisma/models/Coupon.ts:774
MethodfindUnique
* Find zero or one WalletTransactionLog that matches the filter. * @param {WalletTransactionLogFindUniqueArgs} args - Arguments to find a WalletTra
src/generated/prisma/models/WalletTransactionLog.ts:853
MethodfindUnique
* Find zero or one EmailVerificationCode that matches the filter. * @param {EmailVerificationCodeFindUniqueArgs} args - Arguments to find a EmailVe
src/generated/prisma/models/EmailVerificationCode.ts:418
MethodfindUnique
* Find zero or one AutoEnrol that matches the filter. * @param {AutoEnrolFindUniqueArgs} args - Arguments to find a AutoEnrol * @example * //
src/generated/prisma/models/AutoEnrol.ts:535
MethodfindUniqueOrThrow
* Find one User that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserFindUniqueOrThrowA
src/generated/prisma/models/User.ts:1074
MethodfindUniqueOrThrow
* Find one Session that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SessionFindUniqueOr
src/generated/prisma/models/Session.ts:794
MethodfindUniqueOrThrow
* Find one WalletTransaction that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {WalletTra
src/generated/prisma/models/WalletTransaction.ts:924
MethodfindUniqueOrThrow
* Find one PasswordResetToken that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {Password
src/generated/prisma/models/PasswordResetToken.ts:405
MethodfindUniqueOrThrow
* Find one WSConnections that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {WSConnections
src/generated/prisma/models/WSConnections.ts:432
MethodfindUniqueOrThrow
* Find one FileUpload that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {FileUploadFindUn
src/generated/prisma/models/FileUpload.ts:819
MethodfindUniqueOrThrow
* Find one Profile that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ProfileFindUniqueOr
src/generated/prisma/models/Profile.ts:1489
MethodfindUniqueOrThrow
* Find one Wallet that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {WalletFindUniqueOrTh
src/generated/prisma/models/Wallet.ts:761
MethodfindUniqueOrThrow
* Find one Message that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {MessageFindUniqueOr
src/generated/prisma/models/Message.ts:595
MethodfindUniqueOrThrow
* Find one Subscription that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {SubscriptionFi
src/generated/prisma/models/Subscription.ts:520
MethodfindUniqueOrThrow
* Find one OAuth_Account that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {OAuth_Account
src/generated/prisma/models/OAuth_Account.ts:426
MethodfindUniqueOrThrow
* Find one CouponLog that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CouponLogFindUniq
src/generated/prisma/models/CouponLog.ts:666
MethodfindUniqueOrThrow
* Find one Coupon that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {CouponFindUniqueOrTh
src/generated/prisma/models/Coupon.ts:788
MethodfindUniqueOrThrow
* Find one WalletTransactionLog that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {Wallet
src/generated/prisma/models/WalletTransactionLog.ts:867
MethodfindUniqueOrThrow
* Find one EmailVerificationCode that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {Email
src/generated/prisma/models/EmailVerificationCode.ts:432
MethodfindUniqueOrThrow
* Find one AutoEnrol that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AutoEnrolFindUniq
src/generated/prisma/models/AutoEnrol.ts:549
FunctiongenerateEmailVerificationCode
( userId: string, email: string, )
src/_modules/auth/auth.service.ts:195
FunctiongetAll
(isActive?: boolean, profiles?: boolean)
src/_modules/users/users.service.ts:19
FunctiongetAllCouponsAsAdmin
(params?: { isActive: boolean })
src/_modules/coupons/coupon.service.ts:66
FunctiongetCachedUser
(userId: string)
src/_modules/users/users.service.ts:456
MethodgetConnectionId
* Get connectionId by userId
src/_modules/notifications/connectionsManager.ts:122
FunctiongetCouponByCode
(couponCode: string, profileId?: string)
src/_modules/coupons/coupon.service.ts:41
FunctiongetCouponsByUserProfileId
(profileId: string)
src/_modules/coupons/coupon.service.ts:54
FunctiongetMessagesByUserId
( userId: string, query?: { isRead?: boolean; isArchive?: boolean }, )
src/_modules/messages/message.service.ts:98
FunctiongetPrismaClientClass
()
src/generated/prisma/internal/class.ts:352
FunctiongetProfileByUserId
( userId: string, query?: { account?: boolean; subscription?: boolean; usedCoupons?:
src/_modules/users/users.service.ts:286
FunctiongetSubscribedCategories
* Get subscribed categories for a connectionId.
src/_modules/notifications/notifications.service.ts:53
FunctiongetUser
( userId: string, opts?: { profile?: boolean; isActive?: boolean }, )
src/_modules/users/users.service.ts:55
MethodgetUserId
* Get userId by connectionId
src/_modules/notifications/connectionsManager.ts:129
FunctiongetWalletByID
( userProfileId: string, query?: { transactions?: boolean; profile?: boolean }, )
src/_modules/wallets/wallet.service.ts:90
FunctiongracefulShutdown
()
src/_utils/systemLogger.ts:58
MethodgroupBy
* Group by User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined
src/generated/prisma/models/User.ts:1358
MethodgroupBy
* Group by Session. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefin
src/generated/prisma/models/Session.ts:1078
MethodgroupBy
* Group by WalletTransaction. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/nu
src/generated/prisma/models/WalletTransaction.ts:1208
MethodgroupBy
* Group by PasswordResetToken. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/n
src/generated/prisma/models/PasswordResetToken.ts:689
MethodgroupBy
* Group by WSConnections. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-u
src/generated/prisma/models/WSConnections.ts:716
MethodgroupBy
* Group by FileUpload. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-unde
src/generated/prisma/models/FileUpload.ts:1103
MethodgroupBy
* Group by Profile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefin
src/generated/prisma/models/Profile.ts:1773
MethodgroupBy
* Group by Wallet. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefine
src/generated/prisma/models/Wallet.ts:1045
MethodgroupBy
* Group by Message. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefin
src/generated/prisma/models/Message.ts:879
MethodgroupBy
* Group by Subscription. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-un
src/generated/prisma/models/Subscription.ts:804
MethodgroupBy
* Group by OAuth_Account. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-u
src/generated/prisma/models/OAuth_Account.ts:710
MethodgroupBy
* Group by CouponLog. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undef
src/generated/prisma/models/CouponLog.ts:950
MethodgroupBy
* Group by Coupon. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefine
src/generated/prisma/models/Coupon.ts:1072
MethodgroupBy
* Group by WalletTransactionLog. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d
src/generated/prisma/models/WalletTransactionLog.ts:1151
MethodgroupBy
* Group by EmailVerificationCode. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/
src/generated/prisma/models/EmailVerificationCode.ts:716
MethodgroupBy
* Group by AutoEnrol. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undef
src/generated/prisma/models/AutoEnrol.ts:833
FunctionhandleError
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:47
FunctionhandleOAuth2Error
(error: CustomError, set: any)
src/_middleware/errorMessages.ts:112
FunctionheaderCheck
({ request: { headers }, authMethod }: any)
src/_middleware/authChecks.ts:9
Functionhealth
()
src/_modules/auth/auth.service.ts:271
Methodinstance
()
src/_modules/notifications/connectionsManager.ts:26
FunctionisTokenBlacklisted
(token: string)
src/_config/redis.ts:69
FunctionmakePayment
( userProfId: string, amountToPay: number, discountCode: string, payeeProfileId: string, r
src/_modules/wallets/wallet.service.ts:105
FunctionmarkMessageAsArchived
(messageId: string, userId: string)
src/_modules/messages/message.service.ts:125
FunctionmarkMessageAsRead
(messageId: string, userId: string)
src/_modules/messages/message.service.ts:112
Functionmessage
(ws, body)
src/_modules/notifications/index.ts:77
Methodmessage
* `prisma.message`: Exposes CRUD operations for the **Message** model. * Example usage: * ```ts * // Fetch zero or more Messages * con
src/generated/prisma/internal/class.ts:259
FunctionmodifySubscription
( userId: string, subscription: SubscriptionType, )
src/_modules/users/users.service.ts:422
FunctionmonthsToDate
(months: number)
src/_utils/utilities.ts:72
← previousnext →301–400 of 531, ranked by callers