MCPcopy Create free account

hub / github.com/Pocket/pocket-monorepo / functions

Functions2,695 in github.com/Pocket/pocket-monorepo

↓ 11 callersMethodencode
* Use to encode any integer value into a decodable string. * * Usage: IntMask.encode(12345) * @param val * @param options Optional object
packages/int-mask/src/intMask.ts:82
↓ 11 callersMethodfindFirst
* Find the first List that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here:
servers/shareable-lists-api/prisma/src/generated/client/index.d.ts:1291
↓ 11 callersMethodgetField
(r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:165
↓ 11 callersFunctiongetPi
(Ctor, sd, rm)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:1528
↓ 11 callersFunctiongetTestArticle
* Returns data in the format of an API response from the legacy Parser service. * @param html * @param images * @param url
servers/parser-graphql-wrapper/src/marticle/marticleParser.spec.ts:17
↓ 11 callersMethodlazyLoadAttribute
* Lazily load attributes for this User. If the value is already * set internally, return that value. Otherwise, load the User * with DataLoader
servers/user-api/src/models/User.ts:78
↓ 11 callersMethodlogTagMutation
* Log the last time a tag mutation occured. * There should only be one entry for the unique combination of user_id:property * Since this should
servers/list-api/src/dataService/usersMetaService.ts:63
↓ 11 callersMethodmerge
(encodedString, mask)
packages/int-mask/src/intMask.ts:118
↓ 11 callersFunctionprocessor
(event: SQSEvent)
lambdas/user-list-search-corpus-indexing/src/index.ts:39
↓ 11 callersFunctionseedData
(now)
servers/annotations-api/src/test/query/highlights-fixtures.ts:23
↓ 11 callersFunctionsetMorgan
(logger: Logger = defaultLogger)
packages/ts-logger/src/morgan.ts:60
↓ 11 callersFunctionsqsLambdaEventBridgeEvent
( record: SQSRecord, )
packages/event-bridge/src/utils.ts:111
↓ 11 callersFunctionstartServer
(port: number)
servers/annotations-api/src/server/index.ts:20
↓ 10 callersMethod$disconnect
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:177
↓ 10 callersFunctionFe
(e,t,r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 10 callersMethodadd
* Process the 'add' action from a batch of actions sent to /v3/send. * The actions should be validated and sanitized before this is invoked. * P
servers/v3-proxy-api/src/routes/ActionsRouter.ts:201
↓ 10 callersFunctioncalculateSizeOffset
(pagination: Pagination)
servers/user-list-search/src/datasource/elasticsearch/elasticsearchSearch.ts:438
↓ 10 callersFunctioncreateEvent
(msg: Record<string, unknown>)
lambdas/user-list-search-kinesis-to-sqs/src/handler.spec.ts:4
↓ 10 callersFunctioncreatePipelinePromise
(opts: PipelineOptions)
lambdas/user-list-search-kinesis-to-sqs/src/handler.ts:145
↓ 10 callersMethodfetchIdFromUrl
* Given a URL, fetch the itemId associated with it from the Parser * service. This is part of the primary key to identify the savedItem * (combi
servers/list-api/src/models/SavedItem.ts:351
↓ 10 callersFunctionfiniteToString
(x, isExp, sd)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:1480
↓ 10 callersMethodformatDate
* Format a date to the configured database timezone * @param date * @private
servers/list-api/src/dataService/savedItemsService.ts:98
↓ 10 callersMethodgetOrCreateItem
( url: string, tries = config.parserRetries, )
servers/list-api/src/externalCaller/parserCaller.ts:70
↓ 10 callersFunctiongetUnleash
(config: UnleashConfig)
packages/feature-flags-client/src/index.ts:20
↓ 10 callersFunctioni
(s,l)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:1
↓ 10 callersMethodmarkAsError
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:165
↓ 10 callersFunctionme
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:70
↓ 10 callersFunctionnodeSDKBuilder
(config: TracingConfig)
packages/tracing/src/tracing.ts:132
↓ 10 callersMethodprocess
* method to create and process event data * @param data
servers/shared-snowplow-consumer/src/snowplow/user/userEventHandler.ts:44
↓ 10 callersFunctionreadClient
()
servers/account-data-deleter/src/dataService/clients.ts:28
↓ 10 callersFunctionreorderResultByKey
( reorderMap: ReorderMap<T, K>, results: T[], )
servers/list-api/src/dataLoader/utils.ts:19
↓ 10 callersMethodsearch
* Execute search. Handles the business logic for choosing * between keyword search and semantic search (depends on * language and feature flag).
servers/user-list-search/src/corpus/CorpusSearchModel.ts:37
↓ 10 callersMethodstart
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:101
↓ 10 callersFunctionstartServer
(port: number)
servers/shareable-lists-api/src/express.ts:24
↓ 10 callersFunctiontestFieldValidation
(config: ApplicationSQSQueueProps)
packages/terraform-modules/src/base/ApplicationSQSQueue.spec.ts:40
↓ 9 callersFunctionchunk
* Yield chunks of a given list * @param list * @param size
servers/annotations-api/src/server/routes/queueDelete.ts:186
↓ 9 callersMethodconvertListResult
* Convert the `status` field in the list table to the expected * GraphQL ENUM string * @param listResult
servers/list-api/src/dataService/pocketSavesService.ts:98
↓ 9 callersMethoddecodeId
* Decode the ID generated from the tag name text * @param id the ID to decode * @returns the tag name text
servers/list-api/src/models/tag.ts:65
↓ 9 callersFunctiongenerateShareableListEventBridgePayload
( eventType: ShareableListPocketEventType, shareableList: ShareableListComplete, )
servers/shareable-lists-api/src/events/events.ts:109
↓ 9 callersMethodgetDeepSubSelectionValue
(r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:165
↓ 9 callersMethodgroupBy
* Group by List. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefi
servers/shareable-lists-api/prisma/src/generated/client/index.d.ts:1525
↓ 9 callersFunctionmockRedisServer
()
servers/shareable-lists-api/src/test/helpers/mockRedisServer.ts:8
↓ 9 callersFunctionmockUnleash
( bootstrap: FeatureInterface[], config?: Partial<Pick<UnleashConfig, 'appName' | 'url'>>, )
packages/feature-flags-client/src/mockClient.ts:25
↓ 9 callersFunctionnormalizeFullText
( html: string | undefined | null, )
servers/user-list-search/src/shared/util.ts:4
↓ 9 callersFunctionsavedItemsSimpleToRest
( response: SavedItemsSimpleQuery, options?: { withAnnotations?: boolean }, )
servers/v3-proxy-api/src/graph/get/toRest.ts:459
↓ 9 callersMethodtoGraphql
* Convert a Note response from the database into * the desired GraphQL object. * @param note * @returns
servers/notes-api/src/models/Note.ts:71
↓ 9 callersMethodvalidate
* Validate the authorization header token * Reference: https://mozilla.github.io/ecosystem-platform/docs/process/integration-with-fxa#webhook-event
lambdas/fxa-webook-proxy-gateway/src/jwt.ts:44
↓ 9 callersMethodwrite
(t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:164
↓ 8 callersFunctionHasTimeOrDefault
* Class mixin for input validation. Use to construct a Validation/Sanitizer * class which has the rule: there might be a valid `time` (number) field
servers/v3-proxy-api/src/routes/validations/SendActionValidators.ts:236
↓ 8 callersFunctionJe
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 8 callersFunctionadvancedSearch
( params: UserAdvancedSearchArgs, userId: string, )
servers/user-list-search/src/datasource/elasticsearch/elasticsearchSearch.ts:591
↓ 8 callersFunctionassertValidSnowplowObjectUpdateEvents
( events, triggers: ObjectUpdate['trigger'][], )
servers/shared-snowplow-consumer/src/snowplow/shareableList/shareableListEventHandler.integration.ts:27
↓ 8 callersFunctionasyncHandler
(fn: RequestHandler)
servers/v3-proxy-api/src/middleware/asyncHandler.ts:12
↓ 8 callersFunctioncleanupS3Bucket
(s3: S3Bucket)
packages/aws-utils/src/s3TestUtils.ts:8
↓ 8 callersMethodencodeId
* Encode an ID from a tag's name text * @param name the tag name text * @returns the encoded ID
servers/list-api/src/models/tag.ts:77
↓ 8 callersFunctiongetDocument
(id: string)
servers/user-list-search/src/datasource/elasticsearch/elasticsearchSearch.ts:103
↓ 8 callersFunctiongetOriginalUrlIfPocketImageCached
(url: string)
packages/image-utils/src/utils.ts:13
↓ 8 callersFunctiongetZeroString
(k)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:1546
↓ 8 callersFunctionmakeEnum
(x)
servers/shareable-lists-api/prisma/src/generated/client/index-browser.js:90
↓ 8 callersFunctionmakeEnum
(x)
servers/shareable-lists-api/prisma/src/generated/client/index.js:94
↓ 8 callersFunctionmockParserGetItemRequest
(urlToParse: string, data: any)
servers/list-api/src/test/utils/parserMocks.ts:15
↓ 8 callersFunctionmysqlDateConvert
(mysqlDate: Date | string | null)
servers/list-api/src/dataService/utils.ts:22
↓ 8 callersMethodprocess
* method to create and process event data * @param data
servers/shared-snowplow-consumer/src/snowplow/shareableList/shareableListEventHandler.ts:26
↓ 8 callersFunctionreadClient
()
servers/user-api/src/database/client.ts:10
↓ 8 callersFunctions
(p)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:6
↓ 8 callersFunctionuniqueArray
(input: T[])
servers/list-api/src/dataService/utils.ts:34
↓ 8 callersFunctionwriteClient
()
servers/user-api/src/database/client.ts:21
↓ 7 callersFunction$e
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:164
↓ 7 callersFunctionHe
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 7 callersMethod_getName
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 7 callersFunctionassertShareableListSchema
(eventContext)
servers/shared-snowplow-consumer/src/snowplow/shareableList/shareableListEventHandler.integration.ts:43
↓ 7 callersFunctionbrazePost
* Make a POST request to Braze, with backoff and retry. * Handles logging to Sentry and Cloudwatch on error.
lambdas/transactional-emails/src/braze.ts:19
↓ 7 callersFunctionbt
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:18
↓ 7 callersFunctioncacheParserResponse
( cacheKey: string, data: Partial<ParserResponse>, cache: Keyv, ttl: number = 36000, )
servers/parser-graphql-wrapper/src/test/utils/parserResponse.ts:144
↓ 7 callersFunctioncontentDb
()
servers/user-list-search/src/datasource/clients/knexClient.ts:49
↓ 7 callersFunctioncustomErrorHeaders
(errorCode: unknown, language = 'en')
servers/v3-proxy-api/src/middleware/errorHandlers.ts:39
↓ 7 callersMethodderivePocketMetadata
( item: Item, fallbackParserPocketMetadata: PocketMetadata, context: IContext, )
servers/parser-graphql-wrapper/src/models/PocketMetadataModel.ts:25
↓ 7 callersMethodemitUserEvent
(event: EventType, data: UserForEvent)
servers/user-api/src/context.ts:31
↓ 7 callersFunctioneventHandler
( event: APIGatewayEvent, )
lambdas/fxa-webook-proxy-gateway/src/index.ts:85
↓ 7 callersMethodget
(key: string)
packages/apollo-utils/src/dataloader.spec.ts:8
↓ 7 callersFunctiongetResizedImageUrl
( imageUrl: string, width: number = config.images.width, height: number = config.images.height, filter
servers/braze-content-proxy/src/utils.ts:65
↓ 7 callersFunctiongetTracker
(appId)
servers/shared-snowplow-consumer/src/snowplow/tracker.ts:18
↓ 7 callersFunctionisInResolverChain
( name: string, path: GraphQLResolveInfo['path'], inclusive = true, )
servers/parser-graphql-wrapper/src/apollo/utils.ts:11
↓ 7 callersFunctionitemIdFromSlug
(slug: string)
packages/int-mask/src/intMaskSlug.ts:10
↓ 7 callersFunctionl
(p)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:6
↓ 7 callersFunctionmysqlTimeStampToDate
(timestamp: string)
servers/user-list-search/src/shared/util.ts:63
↓ 7 callersFunctionnaturalLogarithm
(y, sd)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:1640
↓ 7 callersFunctionprocessUserItem
( body: UserItemsSqsMessage, endpoint: string, )
lambdas/user-list-search-indexing/src/helper.ts:55
↓ 7 callersMethodreadDb
()
servers/user-api/src/dataService/userDataService.ts:36
↓ 7 callersFunctionresetSnowplowEvents
()
servers/shared-snowplow-consumer/src/snowplow/testUtils.ts:10
↓ 7 callersMethodscheduleNextPoll
* Set a timeout to emit another poll event which will be handled * by the listener. * @param timeout time to wait, in ms, before sending event
servers/annotations-api/src/server/aws/batchDeleteHandler.ts:126
↓ 7 callersFunctionsearchSavedItemCompleteToRest
( response: SearchSavedItemsCompleteQuery, options?: { withAnnotations?: boolean }, )
servers/v3-proxy-api/src/graph/get/toRest.ts:618
↓ 7 callersFunctionsearchSavedItemSimpleToRest
( response: SearchSavedItemsSimpleQuery, options?: { withAnnotations?: boolean }, )
servers/v3-proxy-api/src/graph/get/toRest.ts:581
↓ 7 callersMethodstart
()
servers/list-api/src/featureFlags/mockClient.ts:33
↓ 7 callersFunctionstartServer
(port: number)
servers/v3-proxy-api/src/server.ts:19
↓ 7 callersFunctionstartServer
(port: number)
servers/user-api/src/apollo.ts:12
↓ 7 callersFunctionwriteClient
()
servers/account-data-deleter/src/dataService/clients.ts:39
↓ 7 callersMethodwriteCsv
* Write an array of homogenous key, value records to a CSV * file in S3, using the provided key (which should not include file * extension; it w
packages/aws-utils/src/S3Bucket.ts:55
↓ 7 callersMethodwriteLine
(t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:164
↓ 6 callersFunctionDe
({context:e,tracingConfig:t})
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:70
← previousnext →101–200 of 2,695, ranked by callers