@@ -5,13 +5,15 @@ import { Credential } from "./credential";
55import  fetch  from  "./fetch" ; 
66import  CONTEST  from  "./graphql/contest.graphql?raw" ; 
77import  DAILY  from  "./graphql/daily.graphql?raw" ; 
8+ import  USER_PROGRESS_QUESTIONS  from  "./graphql/leetcode-cn/user-progress-questions.graphql?raw" ; 
89import  PROBLEM  from  "./graphql/problem.graphql?raw" ; 
910import  PROBLEMS  from  "./graphql/problems.graphql?raw" ; 
1011import  PROFILE  from  "./graphql/profile.graphql?raw" ; 
1112import  RECENT_SUBMISSIONS  from  "./graphql/recent-submissions.graphql?raw" ; 
1213import  SUBMISSION_DETAIL  from  "./graphql/submission-detail.graphql?raw" ; 
1314import  SUBMISSIONS  from  "./graphql/submissions.graphql?raw" ; 
1415import  WHOAMI  from  "./graphql/whoami.graphql?raw" ; 
16+ import  {  UserProgressQuestionList ,  UserProgressQuestionListInput  }  from  "./leetcode-cn" ; 
1517import  type  { 
1618    DailyChallenge , 
1719    Problem , 
@@ -203,6 +205,21 @@ export class LeetCode extends EventEmitter {
203205        return  data . submissionDetails  as  SubmissionDetail ; 
204206    } 
205207
208+     /** 
209+      * Get user progress questions. Need to be authenticated. 
210+      * @returns  
211+      */ 
212+     public  async  user_progress_questions ( 
213+         filters : UserProgressQuestionListInput , 
214+     ) : Promise < UserProgressQuestionList >  { 
215+         await  this . initialized ; 
216+         const  {  data }  =  await  this . graphql ( { 
217+             variables : {  filters : filters  } , 
218+             query : USER_PROGRESS_QUESTIONS , 
219+         } ) ; 
220+         return  data . userProgressQuestionList  as  UserProgressQuestionList ; 
221+     } 
222+ 
206223    /** 
207224     * Get a list of problems by tags and difficulty. 
208225     * @param  option 
0 commit comments