@@ -2542,9 +2542,9 @@ export type ChallengesPageQueryVariables = Exact<{ [key: string]: never; }>;
25422542
25432543
25442544export type ChallengesPageQuery = { __typename ?: 'Query' , myCurrentProject : { __typename ?: 'Project' , challenges : Array <
2545- | { __typename ? : 'ExternalChallenge' , id : string , name : string , description : any , image ?: string | null , buttonText : string , publishedAt ?: any | null , endTime ?: any | null , visibleAt ?: any | null }
2546- | { __typename ? : 'QuizChallenge' , id : string , name : string , description : any , image ?: string | null , buttonText : string , publishedAt ?: any | null , endTime ?: any | null , visibleAt ?: any | null }
2547- | { __typename ? : 'SimpleChallenge' , id : string , name : string , description : any , image ?: string | null , buttonText : string , publishedAt ?: any | null , endTime ?: any | null , visibleAt ?: any | null }
2545+ | { __typename : 'ExternalChallenge' , url : string , id : string , name : string , description : any , image ?: string | null , buttonText : string , publishedAt ?: any | null , endTime ?: any | null , visibleAt ?: any | null , userCompletedAt ?: any | null }
2546+ | { __typename : 'QuizChallenge' , id : string , name : string , description : any , image ?: string | null , buttonText : string , publishedAt ?: any | null , endTime ?: any | null , visibleAt ?: any | null , userCompletedAt ?: any | null }
2547+ | { __typename : 'SimpleChallenge' , allowSelfCompletion : boolean , id : string , name : string , description : any , image ?: string | null , buttonText : string , publishedAt ?: any | null , endTime ?: any | null , visibleAt ?: any | null , userCompletedAt ?: any | null }
25482548 > } } ;
25492549
25502550export type ProfilePageQueryVariables = Exact < { [ key : string ] : never ; } > ;
@@ -2714,6 +2714,11 @@ export type AdminUsersPageQueryVariables = Exact<{
27142714
27152715export type AdminUsersPageQuery = { __typename ?: 'Query' , users : { __typename ?: 'UserConnection' , totalCount : number , pageInfo : { __typename ?: 'PageInfo' , hasNextPage : boolean , hasPreviousPage : boolean , startCursor ?: string | null , endCursor ?: string | null } , edges : Array < { __typename ?: 'UserEdge' , cursor : string , node : { __typename ?: 'User' , id : string , name : string , email : string , image ?: string | null , church : { __typename ?: 'Church' , name : string } , roles : Array < { __typename ?: 'UserRole' , id : string , role : RoleType } > } } > } } ;
27162716
2717+ export type StandingsPageQueryVariables = Exact < { [ key : string ] : never ; } > ;
2718+
2719+
2720+ export type StandingsPageQuery = { __typename ?: 'Query' , myCurrentProject : { __typename ?: 'Project' , myTeam ?: { __typename ?: 'Team' , id : string } | null } } ;
2721+
27172722
27182723export const ProjectRulesDocument = gql `
27192724 query ProjectRules {
@@ -3273,6 +3278,7 @@ export const ChallengesPageDocument = gql`
32733278 query ChallengesPage {
32743279 myCurrentProject {
32753280 challenges {
3281+ __typename
32763282 id
32773283 name
32783284 description
@@ -3281,6 +3287,13 @@ export const ChallengesPageDocument = gql`
32813287 publishedAt
32823288 endTime
32833289 visibleAt
3290+ userCompletedAt
3291+ ... on SimpleChallenge {
3292+ allowSelfCompletion
3293+ }
3294+ ... on ExternalChallenge {
3295+ url
3296+ }
32843297 }
32853298 }
32863299}
@@ -3997,4 +4010,17 @@ export const AdminUsersPageDocument = gql`
39974010
39984011export function useAdminUsersPageQuery ( options ?: Omit < Urql . UseQueryArgs < never , AdminUsersPageQueryVariables | undefined > , 'query' > ) {
39994012 return Urql . useQuery < AdminUsersPageQuery , AdminUsersPageQueryVariables | undefined > ( { query : AdminUsersPageDocument , variables : undefined , ...options } ) ;
4013+ } ;
4014+ export const StandingsPageDocument = gql `
4015+ query StandingsPage {
4016+ myCurrentProject {
4017+ myTeam {
4018+ id
4019+ }
4020+ }
4021+ }
4022+ ` ;
4023+
4024+ export function useStandingsPageQuery ( options ?: Omit < Urql . UseQueryArgs < never , StandingsPageQueryVariables | undefined > , 'query' > ) {
4025+ return Urql . useQuery < StandingsPageQuery , StandingsPageQueryVariables | undefined > ( { query : StandingsPageDocument , variables : undefined , ...options } ) ;
40004026} ;
0 commit comments