@iflow-mcp/leetcode-mcp-server
Version:
MCP Server for LeetCode API (supports leetcode.com and leetcode.cn)
29 lines (28 loc) • 2.83 kB
TypeScript
/**
* GraphQL query for fetching user notes on LeetCode CN
* This query allows retrieving notes with pagination, filtering, and sorting options
*
* @param orderBy - Optional sorting criteria for notes (e.g., "ASCENDING", "DESCENDING")
*/
export declare const NOTE_AGGREGATE_QUERY = "\nquery noteAggregateNote(\n $aggregateType: AggregateNoteEnum!\n $keyword: String\n $orderBy: AggregateNoteSortingOrderEnum\n $limit: Int = 100\n $skip: Int = 0\n) {\n noteAggregateNote(\n aggregateType: $aggregateType\n keyword: $keyword\n orderBy: $orderBy\n limit: $limit\n skip: $skip\n ) {\n count\n userNotes {\n id\n summary\n content\n ... on NoteAggregateQuestionNoteNode {\n noteQuestion {\n linkTemplate\n questionId\n title\n translatedTitle\n }\n }\n }\n }\n}";
/**
* GraphQL query for fetching user notes for a specific question ID on LeetCode CN
*/
export declare const NOTE_BY_QUESTION_ID_QUERY = "\nquery noteOneTargetCommonNote(\n $noteType: NoteCommonTypeEnum!\n $questionId: String!\n $limit: Int = 20\n $skip: Int = 0\n) {\n noteOneTargetCommonNote(\n noteType: $noteType\n targetId: $questionId\n limit: $limit\n skip: $skip\n ) {\n count\n userNotes {\n id\n summary\n content\n }\n }\n}";
/**
* GraphQL mutation for creating a new note on LeetCode CN
*
* @param content - Content of the note
* @param noteType - Type of note (e.g., "COMMON_QUESTION")
* @param targetId - ID of the target object (e.g., question ID)
* @param summary - Optional summary of the note
*/
export declare const NOTE_CREATE_MUTATION = "\nmutation noteCreateCommonNote(\n $content: String!\n $noteType: NoteCommonTypeEnum!\n $targetId: String!\n $summary: String!\n) {\n noteCreateCommonNote(\n content: $content\n noteType: $noteType\n targetId: $targetId\n summary: $summary\n ) {\n note {\n id\n content\n targetId\n }\n ok\n }\n}";
/**
* GraphQL mutation for updating an existing note on LeetCode CN
*
* @param noteId - ID of the note to update
* @param content - New content for the note
* @param summary - Optional new summary for the note
*/
export declare const NOTE_UPDATE_MUTATION = "\nmutation noteUpdateUserNote(\n $content: String!\n $noteId: ID!\n $summary: String!\n) {\n noteUpdateUserNote(content: $content, noteId: $noteId, summary: $summary) {\n note {\n id\n content\n targetId\n }\n ok\n }\n}";