Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Pocket/pocket-monorepo
/ functions
Functions
2,695 in github.com/Pocket/pocket-monorepo
⨍
Functions
2,695
◇
Types & classes
1,023
↓ 847 callers
Method
send
* Send event to event bridge. * Capture errors and report to Sentry/Cloudwatch.
servers/user-list-search/src/events/EventBus.ts:110
↓ 688 callers
Method
set
(t,r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:111
↓ 597 callers
Function
a
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:1
↓ 202 callers
Method
toString
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 173 callers
Method
parse
( input: Omit<UserAdvancedSearchArgs, 'pagination'> & { pagination?: ValidPagination | OffsetPaginat
servers/user-list-search/src/datasource/elasticsearch/searchQueryBuilder.ts:43
↓ 160 callers
Method
slice
(t,r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:111
↓ 98 callers
Method
stop
()
servers/list-api/src/featureFlags/mockClient.ts:30
↓ 97 callers
Method
get
* Get one Note by ID (or undefined if it does * not exist). * @param noteId * @returns
servers/notes-api/src/datasources/NoteService.ts:17
↓ 86 callers
Method
filter
* Convert the filter options passed into the GraphQL * resolver into ES/opensearch request syntax.
servers/user-list-search/src/corpus/CorpusSearchQueryBuilder.ts:47
↓ 77 callers
Function
__name
(target, value)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:6
↓ 71 callers
Method
query
(sql: string, params?: any[])
servers/user-list-search/src/datasource/MysqlDataSource.ts:382
↓ 59 callers
Function
writeClient
()
servers/list-api/src/database/client.ts:21
↓ 57 callers
Function
_
(e,t,r,n)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 57 callers
Function
readClient
()
servers/list-api/src/database/client.ts:10
↓ 56 callers
Function
finalise
(x, sd, rm, isTruncated)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:1382
↓ 56 callers
Method
use
(t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:174
↓ 54 callers
Function
mockParserGetItemIdRequest
( urlToParse: string, itemId: string | null, )
servers/list-api/src/test/utils/parserMocks.ts:22
↓ 53 callers
Method
then
* Extension of the original `.then` function * @param onfulfilled same as regular promises * @param onrejected same as regular promises
servers/shareable-lists-api/prisma/src/generated/client/runtime/index.d.ts:1945
↓ 52 callers
Function
O
(e,t,r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:1
↓ 52 callers
Method
json
(t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 47 callers
Function
startServer
(port: number)
servers/list-api/src/server/apollo.ts:49
↓ 46 callers
Function
createShareableListHelper
( prisma: PrismaClient, data: ListHelperInput, )
servers/shareable-lists-api/src/test/helpers/createShareableListHelper.ts:26
↓ 46 callers
Method
isEnabled
(context: IContext, url: string)
servers/parser-graphql-wrapper/src/models/PocketMetadataModel.ts:30
↓ 40 callers
Function
e
(t,r,n,i,o)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:6
↓ 38 callers
Method
update
* Update one List. * @param {ListUpdateArgs} args - Arguments to update one List. * @example * // Update one List * const list = a
servers/shareable-lists-api/prisma/src/generated/client/index.d.ts:1396
↓ 37 callers
Function
r
(p)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:6
↓ 37 callers
Function
t
(p)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:6
↓ 36 callers
Function
F
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:1
↓ 35 callers
Method
toString
()
packages/tracing/src/tracing.ts:353
↓ 34 callers
Function
knexDbReadClient
()
servers/user-list-search/src/datasource/clients/knexClient.ts:11
↓ 33 callers
Method
emitItemEvent
( event: ListPocketEventType, savedItem: SavedItem, tags?: string[], )
servers/list-api/src/server/context.ts:50
↓ 33 callers
Function
getUnixTimestamp
(date?: Date)
servers/list-api/src/utils.ts:5
↓ 33 callers
Method
on
(event: string, listener: (...args: any[]) => void)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index.d.ts:959
↓ 31 callers
Method
status
(status: AdvancedSearchFilters['status'])
servers/user-list-search/src/datasource/elasticsearch/searchQueryBuilder.ts:154
↓ 30 callers
Function
createShareableListItemHelper
( prisma: PrismaClient, data: ListItemHelperInput, )
servers/shareable-lists-api/src/test/helpers/createShareableListItemHelper.ts:27
↓ 30 callers
Function
nockResponseForParser
( testUrl: string, options?: { parserOptions?: Partial<ParserAPIOptions>; data?: Partial<ParserRes
servers/parser-graphql-wrapper/src/test/utils/parserResponse.ts:61
↓ 30 callers
Method
transaction
(r,n,i)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:100
↓ 29 callers
Method
load
* Get a single note by its id (using dataloader to batch load). * Will return null if ID does not exist or is inaccessible * for the user.
servers/notes-api/src/models/Note.ts:134
↓ 28 callers
Method
send
(entries: SendMessageBatchRequestEntry[])
lambdas/user-list-search-kinesis-to-sqs/src/sqs/writeable.ts:28
↓ 27 callers
Method
emit
(event: string, args?: any)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index.d.ts:960
↓ 26 callers
Method
catch
* Extension of the original `.catch` function * @param onrejected same as regular promises * @param transaction transaction options
servers/shareable-lists-api/prisma/src/generated/client/runtime/index.d.ts:1951
↓ 25 callers
Method
db
()
servers/user-api/src/context.ts:177
↓ 25 callers
Method
pollQueue
* Wrap poll queue method to have manual Sentry isolation, * and open telemetry context, for background jobs. * https://docs.sentry.io/platforms/
servers/annotations-api/src/server/aws/batchDeleteHandler.ts:139
↓ 25 callers
Method
validate
()
servers/v3-proxy-api/src/routes/validations/SendActionValidators.ts:656
↓ 24 callers
Method
delete
* Delete a List. * @param {ListDeleteArgs} args - Arguments to delete one List. * @example * // Delete one List * const List = awa
servers/shareable-lists-api/prisma/src/generated/client/index.d.ts:1377
↓ 24 callers
Function
getRedis
()
servers/parser-graphql-wrapper/src/cache/index.ts:27
↓ 23 callers
Function
getDocById
* Retrieve a document from elasticsearch by index and document ID
lambdas/user-list-search-corpus-indexing/src/index.integration.ts:41
↓ 23 callers
Method
init
(emitter: EventEmitter)
servers/user-api/src/events/interfaces.ts:4
↓ 23 callers
Function
u
(p)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:6
↓ 22 callers
Method
get
(t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:111
↓ 22 callers
Function
parseSnowplowData
(data: string)
servers/shared-snowplow-consumer/src/snowplow/testUtils.ts:22
↓ 22 callers
Function
toBeStringOfLengthGreaterThanOne
()
servers/list-api/src/test/graphql/queries/tags.integration.ts:12
↓ 21 callers
Function
processor
(event: SQSEvent)
lambdas/transactional-emails/src/index.ts:26
↓ 20 callers
Function
getAllSnowplowEvents
()
servers/shared-snowplow-consumer/src/snowplow/testUtils.ts:14
↓ 20 callers
Function
getGoodSnowplowEvents
()
servers/shared-snowplow-consumer/src/snowplow/testUtils.ts:18
↓ 20 callers
Method
has
(t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:174
↓ 20 callers
Method
underline
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:165
↓ 19 callers
Method
get
(char)
packages/int-mask/src/mask.ts:24
↓ 18 callers
Function
mysqlTimeString
(timestamp: Date, tz?: string)
servers/annotations-api/src/dataservices/utils.ts:26
↓ 18 callers
Function
mysqlTimeString
(timestamp: Date, tz: string)
servers/list-api/src/dataService/utils.ts:11
↓ 18 callers
Function
o
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:6
↓ 18 callers
Method
setToggle
(name: string, toggleData: FeatureInterface)
packages/feature-flags-client/src/mockClient.ts:54
↓ 18 callers
Function
validatePagination
( pagination: PaginationInput | null | undefined, defaultPageSize = 30, maxPageSize = 100, validateCur
packages/apollo-utils/src/pagination/validatePagination.ts:4
↓ 18 callers
Function
writeClient
()
servers/annotations-api/src/database/client.ts:44
↓ 17 callers
Function
H
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 17 callers
Method
create
* Create a List. * @param {ListCreateArgs} args - Arguments to create a List. * @example * // Create one List * const List = await
servers/shareable-lists-api/prisma/src/generated/client/index.d.ts:1345
↓ 17 callers
Function
digitsToString
(d)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:1103
↓ 17 callers
Function
epochSecondsToISOString
(secs: number)
servers/v3-proxy-api/src/graph/shared/utils.ts:1
↓ 17 callers
Method
stop
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:101
↓ 17 callers
Method
stringHeader
* Helper function to extract a string header from the headers object * @param header * @returns string | undefined
packages/apollo-utils/src/context/pocketContextManager.ts:149
↓ 16 callers
Function
conn
()
servers/shareable-lists-api/src/database/client.ts:14
↓ 16 callers
Method
isEmpty
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:164
↓ 16 callers
Function
readClient
()
servers/annotations-api/src/database/client.ts:33
↓ 16 callers
Function
sendEventHelper
( eventType: ShareableListItemPocketEventType | ShareableListPocketEventType, options: { shareableList
servers/shareable-lists-api/src/events/events.ts:159
↓ 15 callers
Method
count
* Count the number of Lists. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d
servers/shareable-lists-api/prisma/src/generated/client/index.d.ts:1471
↓ 15 callers
Method
getItemData
* Gets the baseline Item data from the Pocket parser excluding the article data * @param url The URL of the data to fetch * @param refresh Wheth
servers/parser-graphql-wrapper/src/datasources/ParserAPI.ts:121
↓ 15 callers
Method
getSavedItemById
* Fetch a single SavedItem from a User's list * @param itemId the savedItem ID to fetch
servers/list-api/src/dataService/savedItemsService.ts:140
↓ 14 callers
Function
checkInt32
(i, min2, max2)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:1127
↓ 14 callers
Function
clearDb
(prisma: PrismaClient)
servers/shareable-lists-api/src/test/helpers/cleardb.ts:9
↓ 14 callers
Function
client
()
servers/shareable-lists-api/src/database/client.ts:35
↓ 14 callers
Function
createLogger
(options: LoggerOptions | undefined = {})
packages/ts-logger/src/logger.ts:78
↓ 14 callers
Function
initSentry
( options?: NodeOptions, )
packages/sentry/src/initSentry.ts:6
↓ 14 callers
Function
pe
(e,t,r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 14 callers
Method
toFixed
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/index.d.ts:526
↓ 14 callers
Method
toJSON
* Serialize to a JSON-like object which can * be used as a body in ES/opensearch client requests
servers/user-list-search/src/corpus/CorpusSearchQueryBuilder.ts:360
↓ 13 callers
Method
addErrorMessage
(t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:166
↓ 13 callers
Function
formatResponse
( statusCode, message: string, isError?: boolean, )
lambdas/fxa-webook-proxy-gateway/src/index.ts:22
↓ 13 callers
Function
searchSavedItems
( params: UserSearchSavedItemsArgs, userId: string, )
servers/user-list-search/src/datasource/elasticsearch/elasticsearchSearch.ts:656
↓ 13 callers
Function
startServer
(port: number)
servers/parser-graphql-wrapper/src/apollo/server.ts:22
↓ 13 callers
Method
track
* Track snowplow event * @param event * @param context * @private
servers/list-api/src/businessEvents/snowplowHandler.ts:69
↓ 12 callers
Function
createReaderSlug
(itemId: string)
packages/int-mask/src/intMaskSlug.ts:6
↓ 12 callers
Method
sendPocketEvent
* Send event to Event Bus * Will not throw errors if event fails; instead, log exception to Sentry * and add to Cloudwatch logs. * @param eve
packages/event-bridge/src/client.ts:33
↓ 12 callers
Function
startServer
(port: number)
servers/notes-api/src/apollo/server.ts:19
↓ 12 callers
Function
startServer
(port: number)
servers/user-list-search/src/server/serverUtils.ts:26
↓ 12 callers
Function
validateItemId
(itemId: string)
servers/shareable-lists-api/src/public/resolvers/utils.ts:104
↓ 11 callers
Function
_e
(e,t,r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 11 callers
Function
buildDefinitionJSON
( config: ApplicationECSContainerDefinitionProps, )
packages/terraform-modules/src/base/ApplicationECSContainerDefinition.ts:67
↓ 11 callers
Function
bulkDocument
( body: (IndexDocument | DeleteDocument)[], )
servers/user-list-search/src/datasource/elasticsearch/elasticsearchBulk.ts:102
↓ 11 callers
Function
defaultPlugins
( httpServer: Server, )
packages/apollo-utils/src/plugins/defaultPlugin.ts:14
↓ 11 callers
Function
deleteDocuments
()
servers/user-list-search/src/test/utils/searchIntegrationTestHelpers.ts:21
next →
1–100 of 2,695, ranked by callers