MCPcopy Create free account

hub / github.com/brachypelma/payload-plugin-comments / functions

Functions18 in github.com/brachypelma/payload-plugin-comments

↓ 5 callersFunctionresponse
( res: Response, error: boolean|string = false, status = 200, saved = false, isApproved = false, )
src/process-comment.ts:48
↓ 2 callersFunctiongetRequiredFieldData
(options: CommentOptions, fieldName: string)
src/process-options.ts:36
↓ 1 callersFunctionassignOptions
( incomingOptions: IncomingOptions, incomingConfig: Config, )
src/process-options.ts:21
↓ 1 callersFunctiongetHasPublishedComment
(slug: string, where: Where)
src/has-published-comment.ts:75
↓ 1 callersFunctiongetIsApproved
(body: any, options: CommentOptions)
src/process-comment.ts:80
↓ 1 callersFunctiongetIsInvalid
( body: any, slug: string, hasPublishedCommentFields: string[], fields: Field[], )
src/has-published-comment.ts:40
↓ 1 callersFunctiongetNewCommentData
( body: any, fields: Field[], isApproved: boolean, )
src/process-comment.ts:89
↓ 1 callersFunctiongetNewCommentHtml
( data: Record<string, unknown>, options: CommentOptions, newComment: any, isApproved: boolean, )
src/process-comment.ts:124
↓ 1 callersFunctiongetProcessedOptions
( incomingOptions: IncomingOptions, incomingConfig: Config, )
src/process-options.ts:6
↓ 1 callersFunctiongetReplyPost
( replyPost: string|undefined, collectionsToSearch: string[], index = 0 )
src/process-comment.ts:60
↓ 1 callersFunctiongetWhere
(body: any, hasPublishedCommentFields: string[])
src/has-published-comment.ts:55
↓ 1 callersFunctionhasMissingFields
( body: BodyObj, fields: Field[], hasPublishedCommentFields: string[], )
src/has-published-comment.ts:24
↓ 1 callersFunctionhasPublishedComment
( { body }: Request, res: Response<any, Record<string, any>>, options: CommentOptions, )
src/has-published-comment.ts:8
↓ 1 callersFunctionprocessComment
( { body }: Request, res: Response<any, Record<string, any>>, options: CommentOptions )
src/process-comment.ts:7
↓ 1 callersFunctionsendNewCommentAlert
( data: Record<string, unknown>, options: CommentOptions, newComment: any, isApproved: boolean, )
src/process-comment.ts:108
↓ 1 callersFunctionsetIsApprovedField
(options: CommentOptions)
src/process-options.ts:45
↓ 1 callersFunctionsetReplyPostField
(options: CommentOptions)
src/process-options.ts:59
Functioncomments
(incomingOptions: IncomingOptions = {})
src/index.ts:64