@@ -2375,6 +2375,18 @@ export type DeleteProjectMutationVariables = Exact<{
23752375
23762376export type DeleteProjectMutation = { __typename ?: 'Mutation' , deleteProject : boolean } ;
23772377
2378+ export type StartQuizMutationVariables = Exact < {
2379+ quizId : Scalars [ 'ID' ] [ 'input' ] ;
2380+ } > ;
2381+
2382+
2383+ export type StartQuizMutation = { __typename ?: 'Mutation' , startQuiz : { __typename ?: 'QuizSubmission' , id : string , startedAt : any , expiresAt ?: any | null , isExpired : boolean , questionOrder : Array < string > , orderedQuestions : Array <
2384+ | { __typename ?: 'FreeTextQuestion' , id : string , questionText : string , questionOrder : number , timeoutSeconds ?: number | null }
2385+ | { __typename ?: 'JsonQuestion' , id : string , questionText : string , questionOrder : number , timeoutSeconds ?: number | null }
2386+ | { __typename ?: 'NumberQuestion' , minValue ?: number | null , maxValue ?: number | null , stepValue ?: number | null , id : string , questionText : string , questionOrder : number , timeoutSeconds ?: number | null }
2387+ | { __typename ?: 'PredefinedQuestion' , allowMultipleSelection : boolean , id : string , questionText : string , questionOrder : number , timeoutSeconds ?: number | null , predefinedAnswers : Array < { __typename ?: 'QuizPredefinedAnswer' , id : string , answerText : string , answerOrder : number , isCorrect ?: boolean | null } > }
2388+ > , quiz : { __typename ?: 'Quiz' , id : string , name : string , timeoutSeconds ?: number | null } } } ;
2389+
23782390export type AssignRoleMutationVariables = Exact < {
23792391 input : AssignRoleInput ;
23802392} > ;
@@ -2473,7 +2485,7 @@ export type ChallengePageQueryVariables = Exact<{
24732485
24742486export type ChallengePageQuery = { __typename ?: 'Query' , challenge :
24752487 | { __typename : 'ExternalChallenge' , url : string , id : string , name : string , description : any , userEnrolledAt ?: any | null , userCompletedAt ?: any | null }
2476- | { __typename : 'QuizChallenge' , id : string , name : string , description : any , userEnrolledAt ?: any | null , userCompletedAt ?: any | null , quiz : { __typename ?: 'Quiz' , id : string , name : string , description : string , timeoutSeconds ?: number | null , randomizeQuestions : boolean , revealCorrectAnswers : boolean , allowRetakes : boolean , completionPoints : number , publishedAt ?: any | null , endTime ?: any | null , userCanStart : boolean , userSubmissions : Array < { __typename ?: 'QuizSubmission' , id : string , startedAt : any , completedAt ?: any | null , expiresAt ?: any | null , isExpired : boolean , score ?: number | null , maxScore ?: number | null , scorePercentage ?: number | null , orderedQuestions : Array <
2488+ | { __typename : 'QuizChallenge' , id : string , name : string , description : any , userEnrolledAt ?: any | null , userCompletedAt ?: any | null , quiz : { __typename ?: 'Quiz' , id : string , name : string , description : string , timeoutSeconds ?: number | null , randomizeQuestions : boolean , revealCorrectAnswers : boolean , allowRetakes : boolean , completionPoints : number , publishedAt ?: any | null , endTime ?: any | null , userCanStart : boolean , userActiveSubmission ?: { __typename ?: 'QuizSubmission' , id : string } | null , userSubmissions : Array < { __typename ?: 'QuizSubmission' , id : string , startedAt : any , completedAt ?: any | null , expiresAt ?: any | null , isExpired : boolean , score ?: number | null , maxScore ?: number | null , scorePercentage ?: number | null , orderedQuestions : Array <
24772489 | { __typename : 'FreeTextQuestion' , id : string , questionText : string , questionOrder : number , timeoutSeconds ?: number | null }
24782490 | { __typename : 'JsonQuestion' , id : string , questionText : string , questionOrder : number , timeoutSeconds ?: number | null }
24792491 | { __typename : 'NumberQuestion' , minValue ?: number | null , maxValue ?: number | null , stepValue ?: number | null , id : string , questionText : string , questionOrder : number , timeoutSeconds ?: number | null }
@@ -2510,7 +2522,7 @@ export type ProfilePageQuery = { __typename?: 'Query', me: { __typename?: 'User'
25102522export type ConsentsPageQueryVariables = Exact < { [ key : string ] : never ; } > ;
25112523
25122524
2513- export type ConsentsPageQuery = { __typename ?: 'Query' , me : { __typename ?: 'User' , consentStatus : { __typename ?: 'ConsentStatus' , pendingConsents : Array < { __typename : 'Consent' , id : string , key : string , version : number , title : string , publishedAt ?: any | null , managedBy ?: string | null , managementType : ConsentManagementType , url ?: string | null , body : { __typename ?: 'MarkdownText' , html : string } } > , acceptedConsents : Array < { __typename : 'UserConsent' , id : string , action : ConsentAction , actionDate : any , consent : { __typename ?: 'Consent' , title : string , managedBy ?: string | null , managementType : ConsentManagementType , url ?: string | null , body : { __typename ?: 'MarkdownText' , html : string } } } > , rejectedConsents : Array < { __typename : 'UserConsent' , id : string , action : ConsentAction , actionDate : any , consent : { __typename ?: 'Consent' , title : string , managedBy ?: string | null , managementType : ConsentManagementType , url ?: string | null , body : { __typename ?: 'MarkdownText' , html : string } } } > } } } ;
2525+ export type ConsentsPageQuery = { __typename ?: 'Query' , me : { __typename ?: 'User' , consentStatus : { __typename ?: 'ConsentStatus' , pendingConsents : Array < { __typename : 'Consent' , id : string , key : string , version : number , title : string , publishedAt ?: any | null , managedBy ?: string | null , managementType : ConsentManagementType , url ?: string | null , body : { __typename ?: 'MarkdownText' , html : string } } > , acceptedConsents : Array < { __typename : 'UserConsent' , id : string , action : ConsentAction , actionDate : any , consent : { __typename ?: 'Consent' , id : string , title : string , managedBy ?: string | null , managementType : ConsentManagementType , url ?: string | null , body : { __typename ?: 'MarkdownText' , html : string } } } > , rejectedConsents : Array < { __typename : 'UserConsent' , id : string , action : ConsentAction , actionDate : any , consent : { __typename ?: 'Consent' , id : string , title : string , managedBy ?: string | null , managementType : ConsentManagementType , url ?: string | null , body : { __typename ?: 'MarkdownText' , html : string } } } > } } } ;
25142526
25152527export type StandingsGlobalPageQueryVariables = Exact < {
25162528 entityType : LeaderboardEntityType ;
@@ -2957,6 +2969,46 @@ export const DeleteProjectDocument = gql`
29572969export function useDeleteProjectMutation ( ) {
29582970 return Urql . useMutation < DeleteProjectMutation , DeleteProjectMutationVariables > ( DeleteProjectDocument ) ;
29592971} ;
2972+ export const StartQuizDocument = gql `
2973+ mutation StartQuiz($quizId: ID!) {
2974+ startQuiz(quizId: $quizId) {
2975+ id
2976+ startedAt
2977+ expiresAt
2978+ isExpired
2979+ questionOrder
2980+ orderedQuestions {
2981+ id
2982+ questionText
2983+ questionOrder
2984+ timeoutSeconds
2985+ ... on PredefinedQuestion {
2986+ allowMultipleSelection
2987+ predefinedAnswers {
2988+ id
2989+ answerText
2990+ answerOrder
2991+ isCorrect
2992+ }
2993+ }
2994+ ... on NumberQuestion {
2995+ minValue
2996+ maxValue
2997+ stepValue
2998+ }
2999+ }
3000+ quiz {
3001+ id
3002+ name
3003+ timeoutSeconds
3004+ }
3005+ }
3006+ }
3007+ ` ;
3008+
3009+ export function useStartQuizMutation ( ) {
3010+ return Urql . useMutation < StartQuizMutation , StartQuizMutationVariables > ( StartQuizDocument ) ;
3011+ } ;
29603012export const AssignRoleDocument = gql `
29613013 mutation AssignRole($input: AssignRoleInput!) {
29623014 assignRole(input: $input) {
@@ -3117,6 +3169,9 @@ export const ChallengePageDocument = gql`
31173169 publishedAt
31183170 endTime
31193171 userCanStart
3172+ userActiveSubmission {
3173+ id
3174+ }
31203175 userSubmissions {
31213176 id
31223177 startedAt
@@ -3269,6 +3324,7 @@ export const ConsentsPageDocument = gql`
32693324 __typename
32703325 id
32713326 consent {
3327+ id
32723328 title
32733329 body {
32743330 html
@@ -3284,6 +3340,7 @@ export const ConsentsPageDocument = gql`
32843340 __typename
32853341 id
32863342 consent {
3343+ id
32873344 title
32883345 body {
32893346 html
0 commit comments