MCPcopy Create free account

hub / github.com/PalisadoesFoundation/talawa-api / functions

Functions1,648 in github.com/PalisadoesFoundation/talawa-api

Methodconstructor
* Creates a new instance of NotificationEngine * * @param ctx - GraphQL context containing database connections and user info
src/graphql/types/Notification/Notification_engine.ts:53
Methodconstructor
( code: SetupErrorCode, message: string, context: SetupErrorContext = {}, cause?: Error, )
scripts/setup/SetupError.ts:29
Functioncreate
* Creates an email provider instance based on configuration. * @param config - Email environment configuration * @returns Email provider instance
src/services/email/EmailProviderFactory.ts:24
FunctioncreatorResolver
( parent: FundCampaign, _args: Record<string, never>, ctx: GraphQLContext, )
src/graphql/types/FundCampaign/creator.ts:7
MethoddeactivatePlugin
* Deactivate a plugin - trigger schema rebuild
src/plugin/manager/lifecycle.ts:196
Functiondebounce
( func: T, delay: number, )
src/plugin/utils.ts:180
FunctiondeepClone
(obj: T)
src/plugin/utils.ts:195
Functiondel
* Delete one or more keys from cache.
src/services/metrics/metricsCacheProxy.ts:78
Methoddel
(keys: string | string[])
test/helpers/performanceTestUtils.ts:43
Methoddel
(keys: string | string[])
test/services/metrics/metricsCache.test.ts:30
Methoddel
(...keys: string[])
test/services/caching/cacheService.test.ts:25
Methoddel
(keys: string | string[])
src/services/caching/RedisCacheService.ts:65
FunctiondeleteMessage
(messageId: string)
test/helpers/mailpitHelpers.ts:297
FunctionemailQueuePlugin
(fastify: FastifyInstance)
src/fastifyPlugins/emailQueue.ts:9
MethodemitEventCreatedImmediate
* Synchronous immediate emit (delegates directly). Useful when you want to * bypass queuing.
src/services/notification/NotificationService.ts:72
MethodemitSendEventInviteImmediate
( payload: SendEventInvitePayload, ctx: GraphQLContext, )
src/services/notification/NotificationService.ts:79
FunctionensureDirectory
(dirPath: string)
src/plugin/utils.ts:146
MethodexchangeCodeForTokens
( _code: string, _redirectUri: string, )
test/utilities/auth/oauth/OAuthProviderRegistry.test.ts:17
MethodexchangeCodeForTokens
( code: string, redirectUri: string, )
test/utilities/auth/oauth/BaseOAuthProvider.test.ts:69
MethodexchangeCodeForTokens
* Exchanges an authorization code for access tokens using GitHub's OAuth service. * * @param code - Authorization code received from GitHub OAuth
src/utilities/auth/oauth/providers/GitHubOAuthProvider.ts:38
MethodexchangeCodeForTokens
* Exchange authorization code for access tokens * @param code - Authorization code from Google OAuth callback * @param redirectUri - Optional redi
src/utilities/auth/oauth/providers/GoogleOAuthProvider.ts:53
Methodexec
()
test/routes/rateLimit.test.ts:45
Methodexec
()
test/utilities/leakyBucket.test.ts:58
Methodexpire
(key: string, sec: number)
test/routes/rateLimit.test.ts:41
Methodexpire
(key: string, sec: number)
test/utilities/leakyBucket.test.ts:54
FunctionfakeDelete
()
test/graphql/types/Mutation/deleteOrganizationMembership.test.ts:604
FunctionfakeDelete
()
test/graphql/types/Mutation/deleteActionItem.test.ts:352
FunctionfakeTransaction
( callback: (tx: typeof server.drizzleClient) => Promise<T>, )
test/graphql/types/Mutation/deleteOrganization.test.ts:290
FunctionfakeTransaction
( fn: (tx: unknown) => Promise<T>, )
test/graphql/types/Mutation/deletePost.test.ts:340
FunctionfakeTransaction
( fn: (tx: unknown) => Promise<T>, )
test/graphql/types/Mutation/deleteAdvertisement.test.ts:437
FunctionfakeUpdate
()
test/graphql/types/Mutation/updateActionItem.test.ts:413
FunctionfastifyPluginFn
(fastify: unknown)
test/graphql/types/Mutation/unassignUserTag.test.ts:203
FunctionfastifyPluginFn
(fastify: unknown)
test/graphql/types/Mutation/assignUserTag.test.ts:209
FunctionfilterActiveExtensions
( items: T[], activePlugins: Set<string>, )
src/plugin/utils.ts:170
FunctionfindMessageByRecipient
( messages: MailpitMessage[], emailAddress: string, )
test/helpers/mailpitHelpers.ts:162
FunctionfindMessagesBySubject
( messages: MailpitMessage[], subjectContent: string, )
test/helpers/mailpitHelpers.ts:180
FunctionformatPositionalDay
(byDayRule: string)
src/utilities/recurrenceFormatter.ts:82
FunctionfunctionError
()
test/utilities/errors/errorTransformer.test.ts:360
Functionget
()
test/plugin/utils.test.ts:649
Functionget
(_target, prop)
test/graphql/types/Notification/notification_engine.test.ts:58
Functionget
* Make HTTP GET request with error handling * @param url - Target URL * @param headers - Optional headers * @returns Response data * @throws {
src/utilities/auth/oauth/providers/BaseOAuthProvider.ts:95
Functionget
* Get a single value from cache. * - Normalizes undefined → null * - Tracks hit/miss correctly
src/services/metrics/metricsCacheProxy.ts:34
Methodget
(key: string)
test/helpers/performanceTestUtils.ts:35
Methodget
* Get provider by name * @param providerName - Name of the provider * @returns Provider instance * @throws {OAuthError} If provider not found
src/utilities/auth/oauth/OAuthProviderRegistry.ts:54
Methodget
(key: string)
src/services/caching/RedisCacheService.ts:46
MethodgetConfig
* Returns the SMTP configuration for testing purposes. * @returns The SMTP configuration object.
src/services/email/providers/SMTPProvider.ts:59
FunctiongetCreatePluginInput
()
src/graphql/types/Plugin/inputs.ts:130
FunctiongetCurrentSchema
()
test/plugin/manager/core.test.ts:33
FunctiongetCurrentSchema
()
src/graphql/schema.ts:31
FunctiongetDeletePluginInput
()
src/graphql/types/Plugin/inputs.ts:145
FunctiongetInstallPluginInput
()
src/graphql/types/Plugin/inputs.ts:135
FunctiongetMailpitInfo
()
test/helpers/mailpitHelpers.ts:263
FunctiongetMailpitMessageDetails
( messageId: string, )
test/helpers/mailpitHelpers.ts:130
FunctiongetOwnPropertyDescriptor
()
test/plugin/utils.test.ts:407
MethodgetPluginFromDatabase
* Get plugin from database
src/plugin/manager/registry.ts:19
FunctiongetProviderName
()
src/utilities/auth/oauth/providers/BaseOAuthProvider.ts:32
MethodgetProviderName
()
test/utilities/auth/oauth/OAuthProviderRegistry.test.ts:13
FunctiongetQueryPluginInput
()
src/graphql/types/Plugin/inputs.ts:120
FunctiongetQueryPluginsInput
()
src/graphql/types/Plugin/inputs.ts:125
FunctiongetRecentSnapshots
* Internal function to retrieve recent snapshots, optionally filtered by time window. * Safe from interleaved modifications since JavaScript is sin
src/fastifyPlugins/performance.ts:103
MethodgetRequestOptions
(opts: { region?: string; method: string; bucketName?: string; objectName?: string; queryP
src/fastifyPlugins/minioClient.ts:48
FunctiongetUpdatePluginInput
()
src/graphql/types/Plugin/inputs.ts:140
MethodgetUserProfile
(_accessToken: string)
test/utilities/auth/oauth/OAuthProviderRegistry.test.ts:28
MethodgetUserProfile
(accessToken: string)
test/utilities/auth/oauth/BaseOAuthProvider.test.ts:86
MethodgetUserProfile
* Fetches user profile information from GitHub API. * * If the user's primary email is not public, attempts to fetch it from * the user's privat
src/utilities/auth/oauth/providers/GitHubOAuthProvider.ts:94
MethodgetUserProfile
* Fetch user profile from Google userinfo endpoint * @param accessToken - Access token obtained from token exchange * @returns Normalized user pro
src/utilities/auth/oauth/providers/GoogleOAuthProvider.ts:90
Functionhealthcheck
(fastify)
src/routes/healthcheck.ts:6
FunctioninitializeSchemaWithPlugins
()
src/graphql/schema.ts:24
MethodinstallPlugin
* Install a plugin - install dependencies and create plugin-defined databases
src/plugin/manager/lifecycle.ts:50
FunctionisCookieCleared
True if the cookie is set to be cleared (maxAge 0 or "0"), handling mixed types from inject response.
test/unit/routes/auth/auth.routes.test.ts:33
FunctionisMailpitRunning
()
test/helpers/mailpitHelpers.ts:243
FunctionisSubSequence
(sequence: T[], subsequence: T[])
test/helpers.ts:34
Functionmany
(table: unknown, config: unknown)
test/drizzle/tables/actionItems.test.ts:399
Functionmany
(table: unknown, config: unknown)
test/drizzle/tables/postVotes.test.ts:200
Functionmany
(table: unknown, config: unknown)
test/drizzle/tables/eventAttachments.test.ts:176
Functionmany
(table: unknown, config: unknown)
test/drizzle/tables/NotificationAudience.test.ts:355
Functionmany
(table: unknown, config: unknown)
test/drizzle/tables/advertisementAttachments.test.ts:179
Functionmany
(table: unknown, config: unknown)
test/drizzle/tables/users.test.ts:287
Functionmany
(table: unknown, config: unknown)
test/drizzle/tables/postAttachments.test.ts:190
Functionmany
(table: unknown, config: unknown)
test/drizzle/tables/familyMemberships.test.ts:294
Functionmany
(table: unknown, config: unknown)
test/drizzle/tables/communities.test.ts:106
Functionmany
(table: unknown, config: unknown)
test/drizzle/tables/commentVotes.test.ts:360
Functionmany
(table: unknown, config: unknown)
test/drizzle/tables/blockedUser.test.ts:157
Functionmany
(table: unknown, config: unknown)
test/drizzle/tables/organization.test.ts:180
Functionmany
(table: unknown, config: unknown)
test/drizzle/tables/eventGenerationWindows.test.ts:207
Functionmany
(table: unknown, config: unknown)
test/unit/drizzle/tables/agendaFolders.test.ts:352
Functionmany
(table: unknown, config: unknown)
test/unit/drizzle/tables/events.test.ts:363
Functionmany
(table: unknown, config: unknown)
test/unit/drizzle/tables/families.test.ts:324
Functionmany
(table: unknown, config: unknown)
test/unit/drizzle/tables/recurringEventExceptions.test.ts:326
Functionmany
(table: unknown, config: unknown)
test/unit/drizzle/tables/eventVolunteerExceptions.test.ts:272
FunctionmarkMessageAsRead
(messageId: string)
test/helpers/mailpitHelpers.ts:275
FunctionmetricsAuthPreHandler
* Pre-handler for metrics endpoint authentication. * Validates bearer token against API_METRICS_API_KEY environment variable. * Returns 401 if n
src/fastifyPlugins/performance.ts:123
Functionmget
* Get multiple values from cache. * - Works with or without native mget * - Normalizes undefined → null per element * - Tracks hits/misses in
src/services/metrics/metricsCacheProxy.ts:52
Methodmget
(keys: string[])
test/helpers/performanceTestUtils.ts:64
Methodmget
(keys: string[])
test/services/metrics/metricsCache.test.ts:51
Methodmget
(...keys: string[])
test/services/caching/cacheService.test.ts:47
Methodmget
(keys: string[])
src/services/caching/RedisCacheService.ts:98
FunctionmockResolver
()
test/plugin/manager/extensions.test.ts:98
Methodmset
( entries: Array<{ key: string; value: T; ttlSeconds: number }>, )
test/helpers/performanceTestUtils.ts:68
Methodmset
( entries: Array<{ key: string; value: T; ttlSeconds: number }>, )
test/services/metrics/metricsCache.test.ts:56
← previousnext →1,401–1,500 of 1,648, ranked by callers