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
↓ 4 callers
Method
start
* Main entrypoint for the function
servers/account-data-deleter/src/dataService/importers/OmnivoreImport.ts:73
↓ 4 callers
Method
storePocketMetadata
( input: PocketMetadataEntity, ttl: number, )
servers/parser-graphql-wrapper/src/databases/pocketMetadataStore.ts:20
↓ 4 callers
Function
timeIt
( callback: AsyncFunction<any>, options: TimeItOptions, )
packages/backend-benchmarking/src/timeIt.ts:37
↓ 4 callers
Function
tinyPow
(b, e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:1862
↓ 4 callers
Function
unleash
()
servers/parser-graphql-wrapper/src/unleash.ts:7
↓ 4 callers
Function
unleash
()
servers/account-data-deleter/src/unleash.ts:7
↓ 4 callers
Method
updateListItemMany
* Build a query to update the `time_updated` field of many items * the list table, by item id. * @param itemIds The item IDS to update the `time
servers/list-api/src/dataService/savedItemsService.ts:494
↓ 4 callers
Method
updateStatus
* Update the status of an export request in dynamodb * @param payload * @returns updated attributes, or undefined if the update failed without e
servers/account-data-deleter/src/dataService/exportStateService.ts:215
↓ 4 callers
Function
upsertSavedItem
( db: Knex, status: number, date: Date, archived = false, )
servers/list-api/src/test/graphql/mutations/savedItemById/savedItemsMutationService-delete.integration.ts:10
↓ 4 callers
Function
validateApiKey
(key: string)
servers/braze-content-proxy/src/utils.ts:34
↓ 4 callers
Function
validateDate
(date: string)
servers/braze-content-proxy/src/utils.ts:15
↓ 4 callers
Method
validatePagination
* Validates the pagination object to restrict how many records * can be fetched per query * @param pagination * @private
servers/user-list-search/src/datasource/SavedItemsDataSource.ts:33
↓ 4 callers
Method
writeToDatabase
* Writes the update to the database * If the value is not found, throws a NOT_FOUND error * Skips the row whose value is already set. * @para
servers/list-api/src/dataService/pocketSavesService.ts:251
↓ 4 callers
Function
yr
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 4 callers
Function
yt
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:18
↓ 3 callers
Function
$t
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:17
↓ 3 callers
Method
$transaction
(n,i)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:177
↓ 3 callers
Function
Ci
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:165
↓ 3 callers
Function
Dn
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 3 callers
Function
Gi
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:1
↓ 3 callers
Function
Gt
(e,t,r,n)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:70
↓ 3 callers
Function
Jo
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:156
↓ 3 callers
Function
ListItemTransformerComplete
( savedItem: SavedItemComplete, index: number, )
servers/v3-proxy-api/src/graph/get/toRest.ts:304
↓ 3 callers
Function
ListItemTransformerSimple
( savedItem: SavedItemSimple, index: number, )
servers/v3-proxy-api/src/graph/get/toRest.ts:294
↓ 3 callers
Function
Pr
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:18
↓ 3 callers
Function
Qt
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:70
↓ 3 callers
Function
Ti
(e={})
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:164
↓ 3 callers
Function
Ui
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:1
↓ 3 callers
Function
Xi
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 3 callers
Function
Zi
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 3 callers
Function
Zt
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:111
↓ 3 callers
Function
accountDeleteHandler
(record: SQSRecord)
lambdas/account-delete-monitor/src/handlers/accountDeleteHandler.ts:16
↓ 3 callers
Function
accountMergeHandler
(record: SQSRecord)
lambdas/account-delete-monitor/src/handlers/accountMergeHandler.ts:13
↓ 3 callers
Method
addMarginSymbol
(t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:164
↓ 3 callers
Method
afterNextNewline
(t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:164
↓ 3 callers
Function
assertApiAndUserSchema
(eventContext: { [p: string]: any })
servers/shared-snowplow-consumer/src/snowplow/user/userEventHandler.integration.ts:65
↓ 3 callers
Function
assertShareableListItemSchema
(eventContext)
servers/shared-snowplow-consumer/src/snowplow/shareableListItem/shareableListItemEventHandler.integration.ts:43
↓ 3 callers
Function
assertValidSnowplowEventContext
(data)
servers/list-api/src/test/integrations/snowplowHandler.integration.ts:51
↓ 3 callers
Function
assertValidSnowplowObjectUpdateEvents
( events, triggers: ObjectUpdate['trigger'][], )
servers/shared-snowplow-consumer/src/snowplow/user/userEventHandler.integration.ts:20
↓ 3 callers
Method
batchWrite
* Retry logic for batch write operations * The sdk input is not typed well (so defaulting to any here for ease), * but needs to be a valid array
servers/annotations-api/src/dataservices/notes.ts:186
↓ 3 callers
Function
buildCollectionUrl
(slug: string, langCode: string)
lambdas/user-list-search-corpus-parser-hydration/src/utils.ts:15
↓ 3 callers
Function
buildCollectionUrl
(slug: string, langCode: string)
lambdas/user-list-search-corpus-indexing/src/utils.ts:13
↓ 3 callers
Method
buildCorpusSearchResultEvent
* Build the event for a corpus search result, with User and APIUser contexts.
servers/user-list-search/src/events/EventBus.ts:57
↓ 3 callers
Method
buildQueryError
(r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:102
↓ 3 callers
Function
captureException
(exception: any, breadcrumbs?: Map)
lambdas/sendgrid-data/src/sentry.ts:41
↓ 3 callers
Function
chunkArray
(array: any, batch_size: number)
lambdas/sendgrid-data/src/sendgrid/util.ts:1
↓ 3 callers
Function
cleanSearchTerm
(searchTerm: string)
servers/user-list-search/src/datasource/elasticsearch/elasticsearchSearch.ts:382
↓ 3 callers
Function
compare
(a, b, aL, bL)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:1225
↓ 3 callers
Function
createConnection
(dbConfig: { host: string; port: string; user: string; password: string; database: string; timezon
servers/user-list-search/src/datasource/clients/knexClient.ts:69
↓ 3 callers
Function
createDeadLetterQueueAlarm
( stack: Construct, snsTopic: dataAwsSnsTopic.DataAwsSnsTopic, queueName: string, alarmName: string,
infrastructure/pocket-event-bridge/src/event-rules/utils.ts:20
↓ 3 callers
Method
createShare
( input: CreateShareEntity, )
servers/shares-api/src/datasources/shares.ts:30
↓ 3 callers
Function
createSuccessResponseMessage
( totalEvents: number, failedEvents: number, )
lambdas/fxa-webook-proxy-gateway/src/index.ts:66
↓ 3 callers
Function
cs
(e,t,r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:167
↓ 3 callers
Function
daysSinceTodayInCentralTime
(days: number)
servers/feature-flags/src/unleashClient/strategy/accountAge.spec.ts:33
↓ 3 callers
Method
decodeCursor
* Decode the pagination cursor * @param cursor cursor (_*_ separated string of itemId and cursor value) * @returns [itemId, cursorValue]
servers/list-api/src/dataService/listPaginationService.ts:452
↓ 3 callers
Function
deduplicateTagInput
( tagInputs: TagSaveAssociation[], )
servers/list-api/src/models/tag.ts:545
↓ 3 callers
Method
deleteByAnnotationIds
* Delete data by annotation ids and userId. * Typically used when a Pocket User deletes their account. * Called by the batchDelete handler. *
servers/annotations-api/src/dataservices/highlights.ts:320
↓ 3 callers
Method
deleteMessage
* Delete a message that has been handled from the * BatchDelete queue * @param message SQS Message recieved from BatchDelete queue
servers/annotations-api/src/server/aws/batchDeleteHandler.ts:71
↓ 3 callers
Function
deleteShareableListItemsForUser
( listIds: number[] | bigint[], )
servers/shareable-lists-api/src/public/routes/deleteUserData.ts:44
↓ 3 callers
Method
deleteTagsByItemId
(itemId: string)
servers/list-api/src/dataService/tagDataService.ts:583
↓ 3 callers
Function
deleteUsers
(dynamoUtils: BatchDeleteDyanmoClient)
lambdas/account-data-deleter-batch-delete/src/index.ts:31
↓ 3 callers
Method
email
()
servers/user-api/src/models/User.ts:114
↓ 3 callers
Function
ensureHttpPrefix
(url: string)
servers/list-api/src/resolvers/utils.ts:12
↓ 3 callers
Function
eo
(e,t,r,n)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 3 callers
Function
failCallback
( module: string, error: Error, dataType: string, userId: string, traceId: string, annotationId?:
servers/annotations-api/src/server/routes/helper.ts:13
↓ 3 callers
Method
fetchFromEnv
* Gets the value from the environment or errors * @param key * @returns
packages/int-mask/src/intMask.ts:47
↓ 3 callers
Function
fetchParameter
( parameterName: string, )
packages/lambda-secrets/src/secrets.ts:24
↓ 3 callers
Method
findField
(t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:167
↓ 3 callers
Method
findUnique
* Find zero or one List that matches the filter. * @param {ListFindUniqueArgs} args - Arguments to find a List * @example * // Get one
servers/shareable-lists-api/prisma/src/generated/client/index.d.ts:1258
↓ 3 callers
Function
flatMapKey
(objects: T[], key: keyof T)
packages/backend-benchmarking/src/seeds/list.spec.ts:40
↓ 3 callers
Method
fromEntity
* Convert DynamoDB entity to GraphQL Type
servers/shares-api/src/models/PocketShare.ts:55
↓ 3 callers
Method
fromFxaId
* Alternate async constructor method from FxA ID * instead of Pocket User ID. Sets userId to the * Pocket UserID value. * @throws NotFoundErr
servers/user-api/src/dataService/userDataService.ts:50
↓ 3 callers
Function
generateJwt
( privateKey: PocketJWK, options: { sub?: string; issuer: string; aud: string; apiId: stri
packages/jwt-utils/src/jwt.ts:27
↓ 3 callers
Method
generateRoute53Zone
( scope: Construct, domain: string, tags?: { [key: string]: string }, provider?: TerraformProv
packages/terraform-modules/src/base/ApplicationBaseDNS.ts:62
↓ 3 callers
Method
getAllClientExtensions
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:164
↓ 3 callers
Method
getAllComputedFields
(t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:164
↓ 3 callers
Method
getDeepField
(r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:165
↓ 3 callers
Method
getDeepSelectionParent
(r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:165
↓ 3 callers
Method
getErrorMessageWithLink
(r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:101
↓ 3 callers
Method
getEventBridge
()
packages/terraform-modules/src/pocket/PocketEventBridgeRuleWithMultipleTargets.ts:40
↓ 3 callers
Method
getExportUrl
( prefix: string, encodedId: string, )
servers/account-data-deleter/src/dataService/exportStateService.ts:76
↓ 3 callers
Function
getFilterTerms
( filters: ElasticSearchParams['filters'], )
servers/user-list-search/src/datasource/elasticsearch/elasticsearchSearch.ts:176
↓ 3 callers
Method
getHighlightByIdQuery
* Get highlight by a given ID * @param id * @private
servers/annotations-api/src/dataservices/highlights.ts:247
↓ 3 callers
Function
getId
(doc: BaseDocument)
servers/user-list-search/src/saves/elasticsearch.ts:16
↓ 3 callers
Method
getItems
* Gets item data for the given item ids * @param itemIds
servers/user-list-search/src/datasource/DataSourceInterface.ts:67
↓ 3 callers
Method
getPublicJwk
* Get public JWK from the auth server
lambdas/fxa-webook-proxy-gateway/src/jwt.ts:22
↓ 3 callers
Function
getRedis
()
servers/image-api/src/cache/index.ts:27
↓ 3 callers
Function
getRedisCache
()
servers/parser-graphql-wrapper/src/cache/index.ts:19
↓ 3 callers
Method
getSavedItemIds
* Get saved item IDs for a given user. * @param offset * @param limit
servers/list-api/src/dataService/savedItemsService.ts:527
↓ 3 callers
Function
getSavedItemTagsMap
( input: SavedItemTagsInput[], )
servers/list-api/src/resolvers/utils.ts:52
↓ 3 callers
Method
getSelectionParent
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:165
↓ 3 callers
Function
getSqsMessages
( queueUrl: string, )
servers/list-api/src/test/graphql/mutations/savedItemById/savedItemsMutationService-upsert.integration.ts:36
↓ 3 callers
Method
getSuggestedBySaveId
* Get paginated saved item tags * @param parent
servers/list-api/src/models/tag.ts:196
↓ 3 callers
Method
getTagByName
(tagName: string)
servers/list-api/src/dataService/tagDataService.ts:175
↓ 3 callers
Function
handlerFn
(event: SQSEvent)
lambdas/account-data-deleter-events/src/index.ts:13
↓ 3 callers
Method
hasField
(r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:165
↓ 3 callers
Function
ii
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:70
↓ 3 callers
Function
isExtension
(apiId: number | undefined)
servers/v3-proxy-api/src/utils.ts:18
↓ 3 callers
Method
loadImport
* Load an omnivore export archive file and extract all json metadata * records into a flat array * @returns an array of the json metadata record
servers/account-data-deleter/src/dataService/importers/OmnivoreImport.ts:29
↓ 3 callers
Method
mapLines
(t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:111
← previous
next →
401–500 of 2,695, ranked by callers