MCPcopy Create free account

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

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

↓ 5 callersFunctionunleash
(localMocks?: FeatureInterface[])
servers/user-list-search/src/datasource/clients/unleash.ts:8
↓ 5 callersMethodupdateBase
* Basic update builder with where statements for userId * and noteId baked in (avoids some repetition)
servers/notes-api/src/datasources/NoteService.ts:58
↓ 4 callersFunctionAccountTransformer
( accountData: Partial<AccountFieldsFragment>, )
servers/v3-proxy-api/src/graph/get/toRest.ts:127
↓ 4 callersFunctionAnnotationsTransformer
* Extract annotations (highlights) from the graph search response.
servers/v3-proxy-api/src/graph/get/toRest.ts:233
↓ 4 callersFunctionCn
(e,t,r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 4 callersFunctionDt
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 4 callersFunctionGe
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:111
↓ 4 callersFunctionHasItemIdOrUrl
* 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 callersFunctionMi
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:166
↓ 4 callersFunctionMn
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 4 callersFunctionMr
(e,...t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:18
↓ 4 callersFunctionNn
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 4 callersFunctionOi
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:166
↓ 4 callersFunctionRecentSearchesTransformer
( data: Partial<RecentSearchFieldsFragment>, )
servers/v3-proxy-api/src/graph/get/toRest.ts:112
↓ 4 callersFunctionSn
(e,t,r)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 4 callersFunctionTagListTransformer
Extract list of tags from the graph search response
servers/v3-proxy-api/src/graph/get/toRest.ts:221
↓ 4 callersFunctionUserProfileSeed
( input?: Partial<db.UserProfile>, )
servers/user-api/src/test/functional/seeds.ts:113
↓ 4 callersFunctionUserSeed
(input?: Partial<db.User>)
servers/user-api/src/test/functional/seeds.ts:82
↓ 4 callersFunctionXe
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:12
↓ 4 callersMethod_request
(n)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:177
↓ 4 callersFunctionaccountDeleteHandler
(record: SQSRecord)
lambdas/account-data-deleter-events/src/handlers/accountDelete/index.ts:62
↓ 4 callersFunctionaddAnnotations
( responseFixture: SearchSavedItemsSimpleQuery | SearchSavedItemsCompleteQuery, index: number, )
servers/v3-proxy-api/src/test/fixtures/get-search.ts:1577
↓ 4 callersFunctionancestryChain
* 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 callersFunctionassertValidSnowplowObjectUpdateEvents
( events, triggers: ObjectUpdate['trigger'][], )
servers/shared-snowplow-consumer/src/snowplow/shareableListItem/shareableListItemEventHandler.integration.ts:27
↓ 4 callersFunctionawaitAttributes
* A detector that returns attributes from the environment.
packages/tracing/src/tracing.ts:106
↓ 4 callersFunctionbadInputError
(email: string)
servers/user-api/src/utils/email.spec.ts:6
↓ 4 callersFunctionbatchGetTagsByItemIds
( tagDataService: TagDataService, itemIds: string[], )
servers/list-api/src/dataLoader/tagsDataLoader.ts:98
↓ 4 callersFunctionbr
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:17
↓ 4 callersFunctionbuildLexicographicWhere
( qb: SelectQueryBuilder<DB, TB, O>, cursor: DecodedCursor<DB, TB, O, TCursor>, comparator: Comparator,
servers/notes-api/src/utils/Paginator.ts:300
↓ 4 callersMethodbuildQuery
* 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 callersMethodclearUserData
* 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 callersFunctionconn
()
servers/parser-graphql-wrapper/src/databases/readitlab.ts:12
↓ 4 callersFunctionconstrain
(n: number | undefined)
packages/apollo-utils/src/pagination/validatePagination.ts:25
↓ 4 callersFunctionconvertBase
(str, baseIn, baseOut)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:1172
↓ 4 callersMethodconvertDbResultStatus
* 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 callersFunctioncreateEventSpecification
(eventSpecification: EventSpecification)
servers/shared-snowplow-consumer/src/snowtype/snowplow.ts:823
↓ 4 callersFunctioncreatePilotUserHelper
( prisma: PrismaClient, data: PilotUserInput, )
servers/shareable-lists-api/src/test/helpers/createPilotUserHelper.ts:16
↓ 4 callersMethodcreateServiceIntegration
( vendor: dataPagerdutyVendor.DataPagerdutyVendor, service: service.Service, urgency: PAGERDUTY_SE
packages/terraform-modules/src/pocket/PocketPagerDuty.ts:133
↓ 4 callersFunctioncreateSubtree
(parentTag: string, childNodes: Node[])
servers/parser-graphql-wrapper/src/marticle/utils.ts:54
↓ 4 callersFunctionct
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:116
↓ 4 callersMethoddecode
* 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 callersMethoddecodeCursor
* Decode cursor into offset value
servers/shareable-lists-api/src/database/OffsetPagination.ts:27
↓ 4 callersFunctiondeleteDocuments
()
servers/user-list-search/src/test/utils/corpusSeeder.ts:42
↓ 4 callersFunctiondeleteUserMutationCaller
( userId: string, )
lambdas/account-data-deleter-batch-delete/src/externalCaller/deleteMutation.ts:12
↓ 4 callersFunctiondeleteUserMutationCaller
( userId: string, )
lambdas/account-delete-monitor/src/externalCaller/deleteMutation.ts:12
↓ 4 callersFunctiondynamoClient
()
servers/shares-api/src/datasources/dynamoClient.ts:14
↓ 4 callersFunctionenqueueAnnotationIds
( data: Omit<SqsMessage, 'annotationIds'>, highlightDataService: HighlightsDataService, requestId: strin
servers/annotations-api/src/server/routes/queueDelete.ts:94
↓ 4 callersFunctionenqueueTablesForDeletion
( data: Omit<SqsMessage, 'primaryKeyValues' | 'tableName' | 'primaryKeyNames'>, accountDeleteDataService:
servers/account-data-deleter/src/routes/queueDelete.ts:76
↓ 4 callersFunctionexpectedAnnotations
(itemId: string)
servers/v3-proxy-api/src/test/fixtures/get-search.ts:1451
↓ 4 callersFunctionextractDomainMeta
(parserResponse: ParserResponse)
servers/parser-graphql-wrapper/src/datasources/parserApiUtils.ts:103
↓ 4 callersMethodfetchMapFromEnv
* Gets the value from the environment tries to make a Map or errors * @param key * @returns
packages/int-mask/src/intMask.ts:60
↓ 4 callersMethodfinally
* 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 callersMethodfindMany
* 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 callersMethodfirstName
()
servers/user-api/src/models/User.ts:99
↓ 4 callersFunctionformatFilterKey
(key: string)
servers/user-list-search/src/datasource/elasticsearch/elasticsearchSearch.ts:146
↓ 4 callersFunctionformatFilterValues
(key: string, values: any)
servers/user-list-search/src/datasource/elasticsearch/elasticsearchSearch.ts:158
↓ 4 callersMethodformatSaveWriteMutationPayload
* 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 callersFunctionft
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:163
↓ 4 callersMethodgenerateCloudwatchMetricAlarm
* 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 callersFunctiongenerateFxAJWT
(userId: string)
lambdas/fxa-webook-proxy-sqs/src/mutations.ts:21
↓ 4 callersFunctiongenerateRecord
(eventPayload: PremiumPurchaseEvent)
lambdas/transactional-emails/src/handlers/premiumPurchaseHandler.spec.ts:15
↓ 4 callersMethodgenerateRoute53Record
( scope: Construct, name: string, zoneId: string, records: string[], provider?: TerraformP
packages/terraform-modules/src/base/ApplicationBaseDNS.ts:75
↓ 4 callersFunctiongenerateShareableListItemEventBridgePayload
( eventType: ShareableListItemPocketEventType, shareableListItem: ShareableListItem, externalId: string,
servers/shareable-lists-api/src/events/events.ts:132
↓ 4 callersFunctiongenerateUserTrackBody
( payload: AccountRegistration & IncomingBaseEvent, )
lambdas/transactional-emails/src/handlers/userRegistrationEventHandler.ts:84
↓ 4 callersFunctiongetBase10Exponent
(digits, e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:1511
↓ 4 callersMethodgetBatch
* 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 callersMethodgetById
* 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 callersFunctiongetCachedParserResponse
( cacheKey: string, cache: Keyv, )
servers/parser-graphql-wrapper/src/test/utils/parserResponse.ts:181
↓ 4 callersFunctiongetDocById
* Retrieve a document from elasticsearch by index and document ID
lambdas/user-list-search-corpus-parser-hydration/src/index.integration.ts:46
↓ 4 callersFunctiongetIdFromShortCode
(code: string)
servers/parser-graphql-wrapper/src/shortUrl/shortUrl.ts:80
↓ 4 callersFunctiongetItemIdFromResolvedId
( resolvedId: number, resolvedIdToItemIdHash: ResolvedIdToItemIdHash, )
servers/user-list-search/src/shared/itemIdUtil.ts:38
↓ 4 callersMethodgetItemIdFromUrl
* 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 callersFunctiongetLn10
(Ctor, sd, pr)
servers/shareable-lists-api/prisma/src/generated/client/runtime/index-browser.js:1518
↓ 4 callersMethodgetModelMap
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:17
↓ 4 callersFunctiongetSqsMessages
()
lambdas/fxa-webook-proxy-gateway/src/index.functional.ts:71
↓ 4 callersMethodgetTagsByUserSubQuery
()
servers/list-api/src/dataService/tagDataService.ts:53
↓ 4 callersFunctiongetTerms
( field: string, values: Array<number | string | boolean>, )
servers/user-list-search/src/datasource/elasticsearch/elasticsearchSearch.ts:117
↓ 4 callersFunctiongn
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:1
↓ 4 callersMethodhandleMessage
* 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 callersFunctionhi
(e,t,r,n,i)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:163
↓ 4 callersFunctionhr
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:17
↓ 4 callersMethodinsertTagAndUpdateSavedItem
( tagInputs: TagSaveAssociationHotfix[], trx: Knex.Transaction<any, any[]>, timestamp?: Date, )
servers/list-api/src/dataService/tagDataService.ts:275
↓ 4 callersFunctionkn
(e,t,r,n)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:6
↓ 4 callersFunctionlistToMap
* 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 callersMethodlogAnnotationMutation
* 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 callersFunctionmockParserGetItemRequest
(urlToParse: string, data: any)
servers/list-api/src/test/graphql/mutations/savedItemById/savedItemsMutationService-upsert.integration.ts:28
↓ 4 callersMethodnewLine
()
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:164
↓ 4 callersFunctionni
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:70
↓ 4 callersFunctionnockThreeStandardParserResponses
( fakeData: any, url: string, refresh: boolean = false, )
servers/parser-graphql-wrapper/src/test/utils/parserResponse.ts:89
↓ 4 callersFunctionparseApiId
(consumerKey: string)
servers/v3-proxy-api/src/utils.ts:12
↓ 4 callersMethodprocess
* method to create and process event data * @param event
servers/shared-snowplow-consumer/src/snowplow/shareableListItem/shareableListItemEventHandler.ts:26
↓ 4 callersFunctionprocessSubtree
* 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 callersFunctionpt
(e,t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:163
↓ 4 callersFunctionqt
(e)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:18
↓ 4 callersFunctionsanitizeTagSaveAssociation
( tagInputs: TagSaveAssociation[], )
servers/list-api/src/models/tag.ts:567
↓ 4 callersFunctionsavedItemsCompleteTotalToRest
( response: SavedItemsCompleteQuery, options?: { withAnnotations?: boolean }, )
servers/v3-proxy-api/src/graph/get/toRest.ts:553
↓ 4 callersMethodsetColor
(t)
servers/shareable-lists-api/prisma/src/generated/client/runtime/library.js:165
↓ 4 callersFunctionsetDifference
(base: Set<T>, compare: Set<T>)
servers/list-api/src/dataService/utils.ts:44
↓ 4 callersMethodsetRatio
(ratio: number)
packages/tracing/src/tracing.ts:348
↓ 4 callersFunctionsetSearchVariables
( requestParams: V3GetParams, )
servers/v3-proxy-api/src/graph/get/toGraphQL.ts:216
← previousnext →301–400 of 2,695, ranked by callers