Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PalisadoesFoundation/talawa-api
/ functions
Functions
1,648 in github.com/PalisadoesFoundation/talawa-api
⨍
Functions
1,648
◇
Types & classes
363
↓ 2 callers
Function
createOccurrenceFromDate
* Creates a calculated occurrence object from a given date, applying any relevant exceptions * from the recurrence context. * * @param currentDate
src/services/eventGeneration/occurrenceCalculator.ts:218
↓ 2 callers
Function
createOrgAndCampaign
()
test/graphql/types/Mutation/deleteFundCampaignPledge.test.ts:242
↓ 2 callers
Function
createOrganizationAndEvent
()
test/graphql/types/Mutation/updateAgendaItem.test.ts:71
↓ 2 callers
Function
createOrganizationAndGetId
()
test/graphql/types/Mutation/deleteActionItem.test.ts:35
↓ 2 callers
Function
createOrganizationAndGetId
(authToken: string)
test/graphql/types/Query/actionItemsByVolunteer.test.ts:65
↓ 2 callers
Function
createOrganizationMember
( organizationId: string, role: "administrator" | "regular" = "regular", )
test/graphql/types/Mutation/createEvent.test.ts:144
↓ 2 callers
Function
createOrganizationMembership
( adminAuthToken: string, memberId: string, organizationId: string, role: "regular" | "administrator" = "r
test/graphql/types/Mutation/createChat.test.ts:103
↓ 2 callers
Function
createOrganizationMembership
( userId: string, organizationId: string, role: "administrator" | "regular" = "regular", )
test/graphql/types/Query/organizationMembers.test.ts:53
↓ 2 callers
Function
createOrganizationMembership
( adminAuthToken: string, memberId: string, organizationId: string, role: "regular" | "administrator" = "r
test/graphql/types/FundCampaign/amountRaised.test.ts:86
↓ 2 callers
Function
createOrganizationWithAdmin
( authToken: string, adminUserId: string, )
test/graphql/types/Tag/folder.test.ts:60
↓ 2 callers
Function
createPledgeWithCampaign
( token: string, userId: string, campaignId: string, )
test/graphql/types/Mutation/deleteFundCampaignPledge.test.ts:305
↓ 2 callers
Function
createRegularUser
()
test/graphql/types/Fund/createdAt.test.ts:61
↓ 2 callers
Function
createRegularUser
()
test/graphql/types/FundCampaign/createdAt.test.ts:63
↓ 2 callers
Function
createTestChat
(adminAuthToken: string, organizationId: string)
test/graphql/types/Query/chat.test.ts:116
↓ 2 callers
Function
createTestChat
(adminAuthToken: string, organizationId: string)
test/graphql/types/Chat/createdAt.test.ts:120
↓ 2 callers
Function
createTestChat
(adminAuthToken: string, organizationId: string)
test/graphql/types/Chat/creator.test.ts:72
↓ 2 callers
Function
createTestComment
* Creates a test comment directly via drizzle and tracks the ID.
test/drizzle/tables/commentVotes.test.ts:95
↓ 2 callers
Function
createTestComment
(creatorId: string)
test/graphql/types/Comment/post.test.ts:45
↓ 2 callers
Function
createTestOrganization
()
test/drizzle/tables/eventAttendees.test.ts:33
↓ 2 callers
Function
createTestOrganization
* Creates a test organization directly via drizzle and tracks the ID.
test/drizzle/tables/commentVotes.test.ts:57
↓ 2 callers
Function
createTestOrganization
(adminAuthToken: string)
test/graphql/types/Mutation/createChat.test.ts:85
↓ 2 callers
Function
createTestOrganization
(adminAuthToken: string)
test/graphql/types/Mutation/blockUser.test.ts:59
↓ 2 callers
Function
createTestOrganization
(token: string)
test/graphql/types/Mutation/deleteOrganization.metrics.test.ts:25
↓ 2 callers
Function
createTestOrganization
(adminAuthToken: string)
test/graphql/types/Query/chat.test.ts:71
↓ 2 callers
Function
createTestPost
* Creates a test post directly via drizzle and tracks the ID.
test/drizzle/tables/commentVotes.test.ts:77
↓ 2 callers
Function
createTestUser
( role: "regular" | "administrator" = "regular", )
test/graphql/types/Query/post.test.ts:22
↓ 2 callers
Function
createUserAndGetToken
(userDetails = {})
test/graphql/types/Query/actionItemsByVolunteer.test.ts:45
↓ 2 callers
Function
directoryExists
(dirPath: string)
src/plugin/utils.ts:134
↓ 2 callers
Function
disconnect
()
scripts/dbManagement/helpers.ts:953
↓ 2 callers
Function
emergencyCleanupBefore
( cutoffDate: Date, drizzleClient: NodePgDatabase<typeof schema>, logger: FastifyBaseLogger, )
src/workers/eventCleanupWorker.ts:285
↓ 2 callers
Method
enqueueEventCreated
(payload: EventCreatedPayload)
src/services/notification/NotificationService.ts:43
↓ 2 callers
Function
ensureAdminAuth
()
test/drizzle/tables/actionItemCategories.test.ts:24
↓ 2 callers
Function
ensureInAppPostCreatedTemplate
()
test/drizzle/tables/NotificationAudience.test.ts:48
↓ 2 callers
Function
estimateInstanceCount
( rule: typeof recurrenceRulesTable.$inferSelect, estimationWindowMonths = 12, )
src/utilities/recurringEvent/calculation.ts:62
↓ 2 callers
Function
fetchCurrentUser
(ctx: GraphQLContext, userId: string)
src/graphql/types/FundCampaignPledge/pledger.ts:25
↓ 2 callers
Function
findFkForColumn
(columnName: string)
test/drizzle/tables/NotificationAudience.test.ts:630
↓ 2 callers
Function
findForeignKeyByColumn
(columnName: string)
test/drizzle/tables/EmailNotification.test.ts:165
↓ 2 callers
Function
getAccessTtlSec
()
src/services/auth/tokens.ts:45
↓ 2 callers
Method
getActivePlugins
* Get active plugins
src/plugin/manager/core.ts:412
↓ 2 callers
Function
getAdminToken
()
test/graphql/types/Query/chat.test.ts:28
↓ 2 callers
Function
getAdminToken
()
test/graphql/types/Query/event.test.ts:93
↓ 2 callers
Method
getAggregatedMetricsKey
* Generate cache key for aggregated metrics by timestamp. * * @param timestamp - Timestamp identifier * @returns Cache key in format: `${CacheNa
src/services/metrics/metricsCache.ts:353
↓ 2 callers
Function
getAuthToken
()
test/graphql/types/Query/post.test.ts:81
↓ 2 callers
Function
getColumnName
(col: unknown)
test/drizzle/tables/NotificationAudience.test.ts:43
↓ 2 callers
Function
getColumnName
(col: unknown)
test/drizzle/tables/commentVotes.test.ts:860
↓ 2 callers
Method
getCurrentSchema
()
test/plugin/manager/core.test.ts:25
↓ 2 callers
Function
getDefaultCookieOptions
()
src/services/auth/authService.ts:32
↓ 2 callers
Function
getEmailVerificationEmailHtml
( ctx: EmailVerificationContext, )
src/utilities/emailTemplates.ts:149
↓ 2 callers
Function
getEmailVerificationEmailText
( ctx: EmailVerificationContext, )
src/utilities/emailTemplates.ts:124
↓ 2 callers
Method
getInstalledPlugins
* Get plugins that are marked as installed in the database
src/plugin/manager/core.ts:165
↓ 2 callers
Function
getNextOccurrenceOfWeekdayTime
( referenceDate: Date, templateDate: Date, )
scripts/dbManagement/helpers.ts:856
↓ 2 callers
Function
getOrganizationCleanupStatus
( organizationId: string, drizzleClient: NodePgDatabase<typeof schema>, )
src/workers/eventCleanupWorker.ts:217
↓ 2 callers
Function
getOrganizationMaterializationStatus
( organizationId: string, deps: WorkerDependencies, )
src/workers/eventGeneration/windowManager.ts:169
↓ 2 callers
Function
getOrganizationsNeedingMaterialization
( config: WindowProcessingConfig, deps: WorkerDependencies, )
src/workers/eventGeneration/windowManager.ts:45
↓ 2 callers
Function
getPastDate
(daysAgo: number, hours = 10)
test/graphql/types/Mutation/createEvent.test.ts:67
↓ 2 callers
Method
getPluginsDirectory
* Get plugins directory
src/plugin/manager/core.ts:519
↓ 2 callers
Function
getPostHasUserVotedData
* Helper function to safely extract hasUserVoted data from post response
test/graphql/types/Query/hasUserVoted.test.ts:150
↓ 2 callers
Function
getUserAgent
Coerce user-agent header to string | undefined (handles string[] from IncomingHttpHeaders).
src/routes/auth.ts:43
↓ 2 callers
Method
getWindowedMetricsKey
* Generate cache key for windowed metrics (hourly or daily). * * @param windowType - Type of time window ('hourly' or 'daily') * @param date - D
src/services/metrics/metricsCache.ts:364
↓ 2 callers
Function
globalSignInAndGetToken
()
test/graphql/types/Query/actionItemsByVolunteerGroup.test.ts:21
↓ 2 callers
Method
hset
(key: string, values: Record<string, string>)
test/utilities/leakyBucket.test.ts:212
↓ 2 callers
Method
importCoreSchema
* Import all core GraphQL schema components
src/graphql/schemaManager.ts:98
↓ 2 callers
Method
isAllowedFile
(filePath: string)
scripts/validate_error_handling.ts:423
↓ 2 callers
Function
isCountBasedEvent
( rule: typeof recurrenceRulesTable.$inferSelect, )
src/utilities/recurringEvent/types.ts:23
↓ 2 callers
Function
isNeverEndingEvent
( rule: typeof recurrenceRulesTable.$inferSelect, )
src/utilities/recurringEvent/types.ts:10
↓ 2 callers
Function
killProcessTree
( pid: number | undefined, signal: "SIGTERM" | "SIGKILL", )
src/utilities/pluginDependencyInstaller.ts:110
↓ 2 callers
Method
matchesSimpleGlob
(filePath: string, pattern: string)
scripts/validate_error_handling.ts:347
↓ 2 callers
Method
onUnload
(context: IPluginContext)
src/plugin/types.ts:151
↓ 2 callers
Function
overrideDbExecute
(newExecute: () => Promise<unknown>)
test/scripts/dbManagement/helpers.test.ts:232
↓ 2 callers
Function
parsePositiveSeconds
( value: string | undefined, defaultSeconds: number, )
src/services/auth/tokens.ts:23
↓ 2 callers
Function
pingDB
()
scripts/dbManagement/helpers.ts:147
↓ 2 callers
Method
pipeline
()
test/helpers/FakeRedisZ.ts:10
↓ 2 callers
Function
promptPassword
( name: string, message: string, validate?: (input: string) => true | string, )
scripts/setup/promptHelpers.ts:84
↓ 2 callers
Method
registerActivePluginExtensions
* Register GraphQL extensions from all active plugins
src/graphql/schemaManager.ts:118
↓ 2 callers
Function
resetEmailVerificationRateLimit
(userId: string)
src/utilities/emailVerificationRateLimit.ts:84
↓ 2 callers
Function
resetPasswordResetRateLimit
(email: string)
src/utilities/passwordResetRateLimit.ts:84
↓ 2 callers
Method
resolveAudienceToUserIds
* Resolves audience specification to user IDs
src/graphql/types/Notification/Notification_engine.ts:241
↓ 2 callers
Function
resolvePaths
(paths?: EnvPaths)
scripts/setup/envFileManager.ts:53
↓ 2 callers
Function
safeCreateOrganizationAndGetId
( authToken: string, )
test/graphql/types/Query/organizationUsers.test.ts:69
↓ 2 callers
Function
serializeEnvVars
(vars: Record<string, string>)
scripts/setup/envFileManager.ts:45
↓ 2 callers
Method
setFailPipeline
(shouldFail: boolean)
test/utilities/leakyBucket.test.ts:166
↓ 2 callers
Method
setReturnEmptyZRange
(shouldReturnEmpty: boolean)
test/utilities/leakyBucket.test.ts:190
↓ 2 callers
Method
setex
(k: string, ttl: number, v: string)
test/services/caching/cacheService.test.ts:21
↓ 2 callers
Function
setupAuthorizedMocks
()
test/graphql/types/FundCampaign/createdAt.test.ts:277
↓ 2 callers
Function
setupCreateOrgTest
()
test/graphql/types/Mutation/createOrganization.metrics.test.ts:601
↓ 2 callers
Function
setupRecurrenceEventwithInstances
()
test/graphql/types/Mutation/createEventVolunteer.test.ts:390
↓ 2 callers
Function
signinAdmin
()
test/graphql/types/Chat/organization.test.ts:35
↓ 2 callers
Function
triggerCleanupWorker
( drizzleClient: NodePgDatabase<typeof schema>, logger: FastifyBaseLogger, )
src/workers/backgroundWorkerService.ts:324
↓ 2 callers
Function
triggerMaterializationWorker
( drizzleClient: NodePgDatabase<typeof schema>, logger: FastifyBaseLogger, )
src/workers/backgroundWorkerService.ts:306
↓ 2 callers
Method
updatePluginInDatabase
* Update plugin in database
src/plugin/manager/lifecycle.ts:457
↓ 2 callers
Function
validateOp
(op: string)
src/utilities/metrics/performanceTracker.ts:142
↓ 2 callers
Function
waitFor
* Helper function to wait for a condition to become true by polling * @param condition - A function that returns true when the condition is met * @p
test/scripts/setup/apiSetup.test.ts:34
↓ 2 callers
Function
waitForNotifications
( userId: string, authToken: string, timeoutMs = 10000, predicate?: (notification: NotificationListItem) =
test/drizzle/tables/NotificationAudience.test.ts:104
↓ 2 callers
Function
warnAboutTablePrefixing
* Warns about automatic table name prefixing
src/plugin/utils.ts:278
↓ 2 callers
Function
withFields
( logger: AppLogger, fields: Record<string, unknown>, )
src/utilities/logging/logger.ts:42
↓ 2 callers
Method
zrange
( key: string, start: number, stop: number, withScores?: "WITHSCORES", )
test/helpers/FakeRedisZ.ts:30
↓ 1 callers
Function
__resetLastCleanupAtForTests
(value = 0)
src/utilities/emailVerificationRateLimit.ts:94
↓ 1 callers
Function
__resetLastCleanupAtForTests
(value = 0)
src/utilities/passwordResetRateLimit.ts:93
↓ 1 callers
Function
addUserToChat
( adminAuthToken: string, chatId: string, memberId: string, )
test/graphql/types/Chat/createdAt.test.ts:138
↓ 1 callers
Function
aggregateCacheMetrics
* Aggregates cache metrics from multiple snapshots. * * @param snapshots - Array of performance snapshots * @returns Aggregated cache metrics
src/workers/metrics/metricsAggregationWorker.ts:85
← previous
next →
1,001–1,100 of 1,648, ranked by callers