MCPcopy Create free account

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

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

↓ 3,864 callersFunctionassertToBeNonNullish
( value: T | null | undefined, message?: string, )
test/helpers.ts:17
↓ 699 callersFunctioncreateMockGraphQLContext
( isAuthenticated = true, userId = "user123", cacheState: Record<string, unknown> = {}, )
test/_Mocks_/mockContextCreator/mockContextCreator.ts:36
↓ 509 callersFunctioncreateRegularUserUsingAdmin
()
test/graphql/types/createRegularUserUsingAdmin.ts:65
↓ 412 callersFunctionand
(..._args: unknown[])
test/graphql/types/Notification/notification_engine.test.ts:65
↓ 285 callersMethodget
* Retrieve a cached value by key. * @param key - The cache key to retrieve. * @returns The cached value or null if not found/expired.
src/services/caching/CacheService.ts:11
↓ 273 callersMethodset
* Store a value in the cache with a TTL. * @param key - The cache key. * @param value - The value to cache (will be JSON serialized). * @param t
src/services/caching/CacheService.ts:19
↓ 251 callersMethodinject
(opts: { method: string; payload: { email: string; password: string }; url: string; })
test/helpers/adminAuthRest.ts:12
↓ 179 callersFunctionone
(table: unknown, config: unknown)
test/drizzle/tables/chats.test.ts:175
↓ 178 callersMethodregister
* Register an OAuth provider * @param provider - Provider instance to register * @throws {OAuthError} If provider is already registered
src/utilities/auth/oauth/OAuthProviderRegistry.ts:27
↓ 175 callersFunctioncreatePerformanceTracker
( opts?: PerformanceTrackerOptions, )
src/utilities/metrics/performanceTracker.ts:118
↓ 157 callersMethodsnapshot
* Get a snapshot of current performance metrics. * @returns Performance snapshot
src/utilities/metrics/performanceTracker.ts:84
↓ 141 callersFunctionresolveUpdater
( parent: TagType, _args: Record<string, never>, ctx: GraphQLContext, )
src/graphql/types/Tag/updater.ts:21
↓ 100 callersFunctionmany
(table: unknown, config: unknown)
test/drizzle/tables/chats.test.ts:185
↓ 96 callersFunctionresolveCreator
( parent: PostType, _args: Record<string, never>, ctx: GraphQLContext, )
src/graphql/types/Post/creator.ts:21
↓ 86 callersFunctionresolveOrganization
( parent: TagType, _args: Record<string, never>, ctx: GraphQLContext, )
src/graphql/types/Tag/organization.ts:20
↓ 85 callersFunctionhandler
(req, reply)
src/fastifyPlugins/rateLimit.ts:72
↓ 85 callersFunctionpromptInput
( name: string, message: string, defaultValue?: string, validate?: (input: string) => true | string, )
scripts/setup/promptHelpers.ts:12
↓ 81 callersFunctionresolver
()
test/graphql/utils/withMutationMetrics.test.ts:354
↓ 79 callersFunctionbaseEventInput
(organizationId: string)
test/graphql/types/Mutation/createEvent.test.ts:85
↓ 77 callersMethodemit
(event: string, ...args: unknown[])
src/plugin/manager/lifecycle.ts:27
↓ 75 callersFunctioncreateTestOrganization
()
test/graphql/types/Mutation/createEvent.test.ts:112
↓ 71 callersFunctioncreateEvent
( variables: VariablesOf<typeof Mutation_createEvent>, token = adminAuthToken, )
test/graphql/types/Mutation/createEvent.test.ts:49
↓ 71 callersMethodhas
* Check if provider is registered * @param providerName - Name of the provider * @returns True if provider exists
src/utilities/auth/oauth/OAuthProviderRegistry.ts:81
↓ 63 callersFunctioncreateMockBuilders
()
test/drizzle/tables/users.test.ts:276
↓ 62 callersFunctionisNotNullish
(value: T0 | undefined | null)
src/utilities/isNotNullish.ts:12
↓ 62 callersFunctionresolveUpdatedAt
( parent: FundType, _args: Record<string, never>, ctx: GraphQLContext, )
src/graphql/types/Fund/updatedAt.ts:6
↓ 61 callersFunctioncreatePluginContext
(installedPlugins: unknown[] = [mockDbPlugin])
test/plugin/manager/core.test.ts:73
↓ 55 callersFunctioncreateTestPost
( organizationId: string, creatorId: string, createdAt?: Date, )
test/graphql/types/Post/sorting.test.ts:101
↓ 52 callersFunctiontransformToDefaultGraphQLConnection
({ createCursor, createNode, parsedArgs: { cursor, isInversed, limit }, rawNodes, }: { createCursor: (raw
src/utilities/graphqlConnection/builder.ts:40
↓ 50 callersMethodinitialize
* Initialize the plugin system
src/plugin/manager/core.ts:85
↓ 50 callersMethodloadExtensionPoints
* Load extension points for a plugin
src/plugin/manager/extensions.ts:32
↓ 49 callersFunctioncreateTestApp
( options: CreateTestAppOptions = {}, )
test/helpers/performanceTestUtils.ts:100
↓ 44 callersFunctionresolveCreatedAt
( parent: VenueType, _args: Record<string, never>, ctx: GraphQLContext, )
src/graphql/types/Venue/createdAt.ts:18
↓ 43 callersFunctioncleanup
(authToken: string, { orgId }: { orgId: string })
test/graphql/types/Tag/createdAt.test.ts:108
↓ 43 callersFunctioninstallPluginDependencies
( pluginId: string, logger?: { info?: (message: string) => void; error?: (message: string) => void; },
src/utilities/pluginDependencyInstaller.ts:26
↓ 42 callersFunctionescapeHTML
( str: string | null | undefined, )
src/utilities/sanitizer.ts:37
↓ 42 callersFunctionupdatedAtResolver
( parent: FundCampaignType, _args: Record<string, never>, ctx: GraphQLContext, )
src/graphql/types/FundCampaign/updatedAt.ts:23
↓ 40 callersFunctioncheckEmailVerificationRateLimit
(userId: string)
src/utilities/emailVerificationRateLimit.ts:28
↓ 40 callersFunctioncreateMockDb
* Creates a mock DrizzleClient for testing DataLoaders. * Returns both the mock db and a spy for the where function.
test/utilities/dataloaders/dataloader.infrastructure.test.ts:15
↓ 39 callersMethodsendEmail
(job: EmailJob)
src/services/email/types.ts:32
↓ 38 callersFunctioncreateTestUser
( overrides: { name?: string; role?: "regular" | "administrator"; createdAt?: Date; } = {}, )
test/graphql/types/Query/allUsers.test.ts:78
↓ 36 callersMethodclear
()
test/utilities/leakyBucket.test.ts:194
↓ 36 callersMethodlistProviders
* Get all registered provider names * @returns Array of provider names
src/utilities/auth/oauth/OAuthProviderRegistry.ts:89
↓ 34 callersFunctioncreateMockRule
( overrides: Partial<typeof recurrenceRulesTable.$inferSelect>, )
test/utilities/recurrenceFormatter.test.ts:9
↓ 34 callersFunctioncreatorResolver
( parent: UserType, _args: Record<string, never>, ctx: GraphQLContext, )
src/graphql/types/User/creator.ts:16
↓ 34 callersMethodtime
* Time an async operation and record its duration. * @param op - Name of the operation being timed * @param fn - Async function to execute and mea
src/utilities/metrics/performanceTracker.ts:49
↓ 33 callersFunctionvalidateCronExpression
(input: string)
scripts/setup/validators.ts:192
↓ 32 callersFunctioncreateUserLoader
( db: DrizzleClient, cache: CacheService | null, perf?: PerformanceTracker, )
src/utilities/dataloaders/userLoader.ts:36
↓ 32 callersFunctioncreatedAtResolver
( parent: FundCampaignPledge, _args: Record<string, unknown>, ctx: GraphQLContext, )
src/graphql/types/FundCampaignPledge/createdAt.ts:6
↓ 32 callersFunctiongetAdminAuthToken
()
test/graphql/types/Query/allUsers.test.ts:64
↓ 32 callersFunctiongetRecurringEventInstancesByBaseIds
( baseRecurringEventIds: string[], drizzleClient: ServiceDependencies["drizzleClient"], logger: ServiceDepe
src/graphql/types/Query/eventQueries/recurringEventInstanceQueries.ts:294
↓ 32 callersFunctioninstall
( config?: Partial<InstallConfig>, )
src/install/index.ts:148
↓ 31 callersMethodcreateNotification
* Creates a notification using a template and sends it to specified audience * * @param eventType - Type of event that triggered the notification
src/graphql/types/Notification/Notification_engine.ts:66
↓ 31 callersFunctionentityKey
(entity: string, id: string | number)
src/services/caching/cacheKeyGenerator.ts:35
↓ 31 callersFunctionvalidateURL
(input: string)
scripts/setup/validators.ts:25
↓ 30 callersFunctioncalculatePercentile
( values: number[], percentile: number, )
src/utilities/metrics/dbHelpers.ts:116
↓ 30 callersFunctioncheckPasswordResetRateLimit
(email: string)
src/utilities/passwordResetRateLimit.ts:28
↓ 30 callersFunctionmakeCtx
(overrides: Partial<TestCtx> = {})
test/graphql/types/Mutation/plugin/updatePlugin.test.ts:62
↓ 30 callersFunctionparseDate
(date: string | number | Date)
scripts/dbManagement/helpers.ts:847
↓ 29 callersFunctionVolunteerMembershipUpdatedAtResolver
( parent: VolunteerMembershipType, _args: Record<string, never>, ctx: GraphQLContext, )
src/graphql/types/EventVolunteerMembership/updatedAt.ts:7
↓ 29 callersFunctioncreateSampleMetrics
* Sample aggregated metrics for testing.
test/services/metrics/metricsCache.test.ts:78
↓ 28 callersFunctionextractZodMessage
( normalizedDetails: unknown, error: unknown, fallbackMessage: string, )
src/routes/graphql.ts:301
↓ 28 callersFunctioninitTracing
()
src/observability/tracing/bootstrap.ts:25
↓ 28 callersFunctionshouldGenerateInstanceAtDate
( date: Date, recurrenceRule: typeof recurrenceRulesTable.$inferSelect, startDate: Date, )
src/services/eventGeneration/occurrenceCalculator.ts:269
↓ 28 callersFunctionstartBackgroundWorkers
( drizzleClient: NodePgDatabase<typeof schema>, logger: FastifyBaseLogger, getMetricsSnapshots?: (windowMin
src/workers/backgroundWorkerService.ts:39
↓ 28 callersFunctionstopBackgroundWorkers
( logger: FastifyBaseLogger, )
src/workers/backgroundWorkerService.ts:154
↓ 27 callersFunctioncreateMockContext
( options: { template?: Record<string, unknown>; currentClient?: GraphQLContext["currentClient"]; o
test/graphql/types/Notification/notification_engine.test.ts:28
↓ 27 callersFunctionhashPasswordResetToken
(token: string)
src/utilities/passwordResetTokenUtils.ts:53
↓ 27 callersFunctionnormalizeError
(err: unknown)
src/utilities/errors/errorTransformer.ts:57
↓ 26 callersFunctionEventVolunteersResolver
( parent: EventType, args: EventVolunteersArgs, ctx: GraphQLContext, )
src/graphql/types/Event/volunteers.ts:27
↓ 26 callersFunctioncreateMockTemplate
( overrides: Partial<Record<string, unknown>> = {}, )
test/graphql/types/Notification/notification_engine.test.ts:14
↓ 26 callersFunctioncreateTestOrganization
()
test/graphql/types/Post/sorting.test.ts:88
↓ 26 callersFunctionformatRecurrenceDescription
( rule: typeof recurrenceRulesTable.$inferSelect, )
src/utilities/recurrenceFormatter.ts:17
↓ 26 callersFunctionresolveEventOrganization
( parent: EventType, _args: Record<string, never>, ctx: GraphQLContext, )
src/graphql/types/Event/organization.ts:18
↓ 26 callersFunctionuserEventsAttendedResolver
( parent: UserType, _args: Record<string, never>, ctx: GraphQLContext, )
src/graphql/types/User/eventsAttended.ts:10
↓ 26 callersFunctionwaitForSetImmediate
()
test/graphql/types/Notification/EventBus/eventBus.test.ts:47
↓ 26 callersFunctionwithMutationMetrics
( options: WithMutationMetricsOptions, resolver: ( parent: TParent, args: TArgs, context: TContext, )
src/graphql/utils/withMutationMetrics.ts:51
↓ 25 callersFunctionapplyRecurrenceOverrides
( newStartAt: Date | undefined, originalRecurrence: Pick< typeof recurrenceRulesTable.$inferSelect, | "f
src/utilities/recurringEvent/calculation.ts:211
↓ 25 callersMethodexchangeCodeForTokens
* Exchange authorization code for access tokens * @param code - Authorization code from OAuth callback * @param redirectUri - Optional redirect UR
src/utilities/auth/oauth/interfaces/IOAuthProvider.ts:22
↓ 25 callersFunctiongetAdminAuthToken
()
test/graphql/types/Mutation/createFund.test.ts:18
↓ 25 callersFunctionpromptConfirm
( name: string, message: string, defaultValue?: boolean, )
scripts/setup/promptHelpers.ts:61
↓ 25 callersFunctionresolveCategory
( parent: ActionItemType, _args: Record<string, never>, ctx: GraphQLContext, )
src/graphql/types/ActionItem/actionItemCategory.ts:9
↓ 25 callersFunctionvalidateSamplingRatio
(input: string)
scripts/setup/setup.ts:278
↓ 24 callersFunctioncomplexityLeakyBucket
( fastify: FastifyInstance, key: string, capacity: number, refillRate: number, cost: number, logger: App
src/utilities/leakyBucket.ts:153
↓ 24 callersFunctioncreateEvent
(orgId: string)
test/graphql/types/Event/venues.test.ts:156
↓ 24 callersFunctioncreateFund
()
test/graphql/types/Query/fund.test.ts:1598
↓ 24 callersFunctioncreateOrganization
(adminAuthToken: string)
test/graphql/types/Mutation/createFund.test.ts:33
↓ 24 callersFunctioncreateOrganizationWithMembership
()
test/graphql/types/Event/venues.test.ts:119
↓ 24 callersFunctiongetAuthToken
()
test/graphql/types/Post/sorting.test.ts:71
↓ 24 callersFunctionrunMetricsAggregationWorker
( snapshotGetter: (windowMinutes?: number) => PerfSnapshot[], windowMinutes: number, logger: FastifyBaseLog
src/workers/metrics/metricsAggregationWorker.ts:172
↓ 23 callersFunctionEventVolunteerGroupsResolver
( parent: EventType, _args: Record<string, never>, ctx: GraphQLContext, )
src/graphql/types/Event/volunteerGroups.ts:12
↓ 23 callersFunctioncreateMockCache
* Creates a mock CacheService for testing cache integration.
test/utilities/dataloaders/dataloader.infrastructure.test.ts:51
↓ 23 callersFunctioncreateMockDb
* Creates a mock DrizzleClient for testing DataLoaders. * Returns both the mock db and a spy for the where function.
test/utilities/dataloaders/dataloader.metrics.test.ts:16
↓ 23 callersFunctioncreateTestUser
()
test/graphql/types/Mutation/updateEventVolunteer.test.ts:104
↓ 23 callersFunctiongetTTL
(entity: keyof EntityTTL)
src/services/caching/cacheConfig.ts:75
↓ 22 callersFunctionRecurringEventInstanceResolver
( parent: EventVolunteerType, _args: Record<string, never>, ctx: GraphQLContext, )
src/graphql/types/EventVolunteer/recurringEventInstance.ts:6
↓ 22 callersFunctioncreateServer
(options?: { /** * Optional custom configuration environment variables that would merge or override the def
src/createServer.ts:113
↓ 22 callersFunctionensureAdminAuth
()
test/graphql/types/Mutation/updateEventVolunteer.test.ts:27
↓ 22 callersFunctiongetPublicErrorMessage
( error: { message?: string }, defaultMessage: string, )
src/routes/graphql.ts:50
↓ 22 callersFunctionleakyBucket
( redis: RedisZ, key: string, max: number, windowMs: number, logger?: FastifyBaseLogger, )
src/utilities/leakyBucket.ts:41
next →1–100 of 1,648, ranked by callers