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
↓ 5 callers
Function
unleash
(localMocks?: FeatureInterface[])
servers/user-list-search/src/datasource/clients/unleash.ts:8
↓ 5 callers
Method
updateBase
* Basic update builder with where statements for userId * and noteId baked in (avoids some repetition)
servers/notes-api/src/datasources/NoteService.ts:58
↓ 4 callers
Function
AccountTransformer
( accountData: Partial<AccountFieldsFragment>, )
servers/v3-proxy-api/src/graph/get/toRest.ts:127
↓ 4 callers
Function
AnnotationsTransformer
* Extract annotations (highlights) from the graph search response.
servers/v3-proxy-api/src/graph/get/toRest.ts:233
↓ 4 callers
Function
Cn
(e,t,r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 4 callers
Function
Dt
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 4 callers
Function
Ge
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:111
↓ 4 callers
Function
HasItemIdOrUrl
* Class mixin for input validation. Use to construct a Validation/Sanitizer * class which has the rule: either there must be a valid item_id or url
servers/v3-proxy-api/src/routes/validations/SendActionValidators.ts:163
↓ 4 callers
Function
Mi
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:166
↓ 4 callers
Function
Mn
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 4 callers
Function
Mr
(e,...t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:18
↓ 4 callers
Function
Nn
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 4 callers
Function
Oi
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:166
↓ 4 callers
Function
RecentSearchesTransformer
( data: Partial<RecentSearchFieldsFragment>, )
servers/v3-proxy-api/src/graph/get/toRest.ts:112
↓ 4 callers
Function
Sn
(e,t,r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 4 callers
Function
TagListTransformer
Extract list of tags from the graph search response
servers/v3-proxy-api/src/graph/get/toRest.ts:221
↓ 4 callers
Function
UserProfileSeed
( input?: Partial<db.UserProfile>, )
servers/user-api/src/test/functional/seeds.ts:113
↓ 4 callers
Function
UserSeed
(input?: Partial<db.User>)
servers/user-api/src/test/functional/seeds.ts:82
↓ 4 callers
Function
Xe
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 4 callers
Method
_request
(n)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:177
↓ 4 callers
Function
accountDeleteHandler
(record: SQSRecord)
lambdas/account-data-deleter-events/src/handlers/accountDelete/index.ts:62
↓ 4 callers
Function
addAnnotations
( responseFixture: SearchSavedItemsSimpleQuery | SearchSavedItemsCompleteQuery, index: number, )
servers/v3-proxy-api/src/test/fixtures/get-search.ts:1577
↓ 4 callers
Function
ancestryChain
* Make a chain of nodes with linear parentage, helper function * for testing the ancestry function * @param tagList nodes to have sequential parent-
servers/parser-graphql-wrapper/src/marticle/utils.spec.ts:13
↓ 4 callers
Function
assertValidSnowplowObjectUpdateEvents
( events, triggers: ObjectUpdate['trigger'][], )
servers/shared-snowplow-consumer/src/snowplow/shareableListItem/shareableListItemEventHandler.integration.ts:27
↓ 4 callers
Function
awaitAttributes
* A detector that returns attributes from the environment.
packages/tracing/src/tracing.ts:106
↓ 4 callers
Function
badInputError
(email: string)
servers/user-api/src/utils/email.spec.ts:6
↓ 4 callers
Function
batchGetTagsByItemIds
( tagDataService: TagDataService, itemIds: string[], )
servers/list-api/src/dataLoader/tagsDataLoader.ts:98
↓ 4 callers
Function
br
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:17
↓ 4 callers
Function
buildLexicographicWhere
( qb: SelectQueryBuilder<DB, TB, O>, cursor: DecodedCursor<DB, TB, O, TCursor>, comparator: Comparator,
servers/notes-api/src/utils/Paginator.ts:300
↓ 4 callers
Method
buildQuery
* Helper function to build repeated queries, for DRY savedItem and savedItems fetches. * Will eventually be extended for building filter, sorts, et
servers/list-api/src/dataService/savedItemsService.ts:107
↓ 4 callers
Method
clearUserData
* Delete all data for a particular user. Used when they delete * their account (or perhaps after a certain amount of time after * premium cancel
servers/annotations-api/src/dataservices/notes.ts:263
↓ 4 callers
Function
conn
()
servers/parser-graphql-wrapper/src/databases/readitlab.ts:12
↓ 4 callers
Function
constrain
(n: number | undefined)
packages/apollo-utils/src/pagination/validatePagination.ts:25
↓ 4 callers
Function
convertBase
(str, baseIn, baseOut)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:1172
↓ 4 callers
Method
convertDbResultStatus
* Convert the `status` field in the list table to the expected * GraphQL ENUM string * @param dbResult
servers/list-api/src/dataService/savedItemsService.ts:70
↓ 4 callers
Function
createEventSpecification
(eventSpecification: EventSpecification)
servers/shared-snowplow-consumer/src/snowtype/snowplow.ts:823
↓ 4 callers
Function
createPilotUserHelper
( prisma: PrismaClient, data: PilotUserInput, )
servers/shareable-lists-api/src/test/helpers/createPilotUserHelper.ts:16
↓ 4 callers
Method
createServiceIntegration
( vendor: dataPagerdutyVendor.DataPagerdutyVendor, service: service.Service, urgency: PAGERDUTY_SE
packages/terraform-modules/src/pocket/PocketPagerDuty.ts:133
↓ 4 callers
Function
createSubtree
(parentTag: string, childNodes: Node[])
servers/parser-graphql-wrapper/src/marticle/utils.ts:54
↓ 4 callers
Function
ct
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:116
↓ 4 callers
Method
decode
* Use to decode any string value into an integer. * * Usage: IntMask.encode(12345) * @param val * @param options Optional object of config
packages/int-mask/src/intMask.ts:94
↓ 4 callers
Method
decodeCursor
* Decode cursor into offset value
servers/shareable-lists-api/src/database/OffsetPagination.ts:27
↓ 4 callers
Function
deleteDocuments
()
servers/user-list-search/src/test/utils/corpusSeeder.ts:42
↓ 4 callers
Function
deleteUserMutationCaller
( userId: string, )
lambdas/account-data-deleter-batch-delete/src/externalCaller/deleteMutation.ts:12
↓ 4 callers
Function
deleteUserMutationCaller
( userId: string, )
lambdas/account-delete-monitor/src/externalCaller/deleteMutation.ts:12
↓ 4 callers
Function
dynamoClient
()
servers/shares-api/src/datasources/dynamoClient.ts:14
↓ 4 callers
Function
enqueueAnnotationIds
( data: Omit<SqsMessage, 'annotationIds'>, highlightDataService: HighlightsDataService, requestId: strin
servers/annotations-api/src/server/routes/queueDelete.ts:94
↓ 4 callers
Function
enqueueTablesForDeletion
( data: Omit<SqsMessage, 'primaryKeyValues' | 'tableName' | 'primaryKeyNames'>, accountDeleteDataService:
servers/account-data-deleter/src/routes/queueDelete.ts:76
↓ 4 callers
Function
expectedAnnotations
(itemId: string)
servers/v3-proxy-api/src/test/fixtures/get-search.ts:1451
↓ 4 callers
Function
extractDomainMeta
(parserResponse: ParserResponse)
servers/parser-graphql-wrapper/src/datasources/parserApiUtils.ts:103
↓ 4 callers
Method
fetchMapFromEnv
* Gets the value from the environment tries to make a Map or errors * @param key * @returns
packages/int-mask/src/intMask.ts:60
↓ 4 callers
Method
finally
* Extension of the original `.finally` function * @param onfinally same as regular promises * @param transaction transaction options
servers/shareable-lists-api/prisma/src/generated/client/runtime/index.d.ts:1957
↓ 4 callers
Method
findMany
* Find zero or more Lists that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more h
servers/shareable-lists-api/prisma/src/generated/client/index.d.ts:1329
↓ 4 callers
Method
firstName
()
servers/user-api/src/models/User.ts:99
↓ 4 callers
Function
formatFilterKey
(key: string)
servers/user-list-search/src/datasource/elasticsearch/elasticsearchSearch.ts:146
↓ 4 callers
Function
formatFilterValues
(key: string, values: any)
servers/user-list-search/src/datasource/elasticsearch/elasticsearchSearch.ts:158
↓ 4 callers
Method
formatSaveWriteMutationPayload
* construct saves and errors types from the data services * @param missing missing savesId * @param updated updated saves * @param path mutat
servers/list-api/src/models/pocketSave.ts:195
↓ 4 callers
Function
ft
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:163
↓ 4 callers
Method
generateCloudwatchMetricAlarm
* Creates a Cloudwatch Metric Alarm * @param resource * @param config * @param id * @param name * @param desc * @param operator *
packages/terraform-modules/src/base/ApplicationAutoscaling.ts:190
↓ 4 callers
Function
generateFxAJWT
(userId: string)
lambdas/fxa-webook-proxy-sqs/src/mutations.ts:21
↓ 4 callers
Function
generateRecord
(eventPayload: PremiumPurchaseEvent)
lambdas/transactional-emails/src/handlers/premiumPurchaseHandler.spec.ts:15
↓ 4 callers
Method
generateRoute53Record
( scope: Construct, name: string, zoneId: string, records: string[], provider?: TerraformP
packages/terraform-modules/src/base/ApplicationBaseDNS.ts:75
↓ 4 callers
Function
generateShareableListItemEventBridgePayload
( eventType: ShareableListItemPocketEventType, shareableListItem: ShareableListItem, externalId: string,
servers/shareable-lists-api/src/events/events.ts:132
↓ 4 callers
Function
generateUserTrackBody
( payload: AccountRegistration & IncomingBaseEvent, )
lambdas/transactional-emails/src/handlers/userRegistrationEventHandler.ts:84
↓ 4 callers
Function
getBase10Exponent
(digits, e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:1511
↓ 4 callers
Method
getBatch
* Fetch a batch of userIds to delete. Scan the first n rows in the index. * NOTE: DynamoDB is limited to a 16 MB payload size. Normally I would bak
lambdas/account-data-deleter-batch-delete/src/dynamoUtils.ts:32
↓ 4 callers
Method
getById
* Get highlight for a given ID and format returned data to match GraphQL spec * @param id
servers/annotations-api/src/dataservices/highlights.ts:236
↓ 4 callers
Function
getCachedParserResponse
( cacheKey: string, cache: Keyv, )
servers/parser-graphql-wrapper/src/test/utils/parserResponse.ts:181
↓ 4 callers
Function
getDocById
* Retrieve a document from elasticsearch by index and document ID
lambdas/user-list-search-corpus-parser-hydration/src/index.integration.ts:46
↓ 4 callers
Function
getIdFromShortCode
(code: string)
servers/parser-graphql-wrapper/src/shortUrl/shortUrl.ts:80
↓ 4 callers
Function
getItemIdFromResolvedId
( resolvedId: number, resolvedIdToItemIdHash: ResolvedIdToItemIdHash, )
servers/user-list-search/src/shared/itemIdUtil.ts:38
↓ 4 callers
Method
getItemIdFromUrl
* Get the Parser-generated itemId for a given url. * TODO[IN-1478]: stop using this method once given_url is indexed in the list table * https:/
servers/list-api/src/externalCaller/parserCaller.ts:104
↓ 4 callers
Function
getLn10
(Ctor, sd, pr)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:1518
↓ 4 callers
Method
getModelMap
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:17
↓ 4 callers
Function
getSqsMessages
()
lambdas/fxa-webook-proxy-gateway/src/index.functional.ts:71
↓ 4 callers
Method
getTagsByUserSubQuery
()
servers/list-api/src/dataService/tagDataService.ts:53
↓ 4 callers
Function
getTerms
( field: string, values: Array<number | string | boolean>, )
servers/user-list-search/src/datasource/elasticsearch/elasticsearchSearch.ts:117
↓ 4 callers
Function
gn
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:1
↓ 4 callers
Method
handleMessage
* Handle messages from the ListExport queue. * @param body the body of the SQS message in the ListExport queue, * which is actually JSON-stringi
servers/account-data-deleter/src/queueHandlers/importHandler.ts:76
↓ 4 callers
Function
hi
(e,t,r,n,i)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:163
↓ 4 callers
Function
hr
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:17
↓ 4 callers
Method
insertTagAndUpdateSavedItem
( tagInputs: TagSaveAssociationHotfix[], trx: Knex.Transaction<any, any[]>, timestamp?: Date, )
servers/list-api/src/dataService/tagDataService.ts:275
↓ 4 callers
Function
kn
(e,t,r,n)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:6
↓ 4 callers
Function
listToMap
* converts list to map * @param input list of entities * @param key key to assign the entity
servers/v3-proxy-api/src/graph/get/toRest.ts:433
↓ 4 callers
Method
logAnnotationMutation
* Log the last time an annotation mutation occurred. * There should only be one entry for the unique combination of user_id:property * Since thi
servers/annotations-api/src/dataservices/usersMeta.ts:30
↓ 4 callers
Function
mockParserGetItemRequest
(urlToParse: string, data: any)
servers/list-api/src/test/graphql/mutations/savedItemById/savedItemsMutationService-upsert.integration.ts:28
↓ 4 callers
Method
newLine
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:164
↓ 4 callers
Function
ni
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:70
↓ 4 callers
Function
nockThreeStandardParserResponses
( fakeData: any, url: string, refresh: boolean = false, )
servers/parser-graphql-wrapper/src/test/utils/parserResponse.ts:89
↓ 4 callers
Function
parseApiId
(consumerKey: string)
servers/v3-proxy-api/src/utils.ts:12
↓ 4 callers
Method
process
* method to create and process event data * @param event
servers/shared-snowplow-consumer/src/snowplow/shareableListItem/shareableListItemEventHandler.ts:26
↓ 4 callers
Function
processSubtree
* Processes a list of child nodes intended to compose a subtree. * Used to trigger processing an 'eventual component', like a 'p' tag, * when encoun
servers/parser-graphql-wrapper/src/marticle/marticleParser.ts:480
↓ 4 callers
Function
pt
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:163
↓ 4 callers
Function
qt
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:18
↓ 4 callers
Function
sanitizeTagSaveAssociation
( tagInputs: TagSaveAssociation[], )
servers/list-api/src/models/tag.ts:567
↓ 4 callers
Function
savedItemsCompleteTotalToRest
( response: SavedItemsCompleteQuery, options?: { withAnnotations?: boolean }, )
servers/v3-proxy-api/src/graph/get/toRest.ts:553
↓ 4 callers
Method
setColor
(t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:165
↓ 4 callers
Function
setDifference
(base: Set<T>, compare: Set<T>)
servers/list-api/src/dataService/utils.ts:44
↓ 4 callers
Method
setRatio
(ratio: number)
packages/tracing/src/tracing.ts:348
↓ 4 callers
Function
setSearchVariables
( requestParams: V3GetParams, )
servers/v3-proxy-api/src/graph/get/toGraphQL.ts:216
← previous
next →
301–400 of 2,695, ranked by callers