@@ -1415,6 +1415,28 @@ export type GetMeQueryVariables = Exact<{ [key: string]: never; }>;
14151415
14161416export type GetMeQuery = { __typename ?: 'Query' , me : { __typename ?: 'User' , id : string , name : string , email : string , image ?: string | null , membersId : string , gender : Gender , birthdate : string , church : { __typename ?: 'Church' , id : string , name : string , country : string , category : ChurchCategory } , roles : Array < { __typename ?: 'UserRole' , id : string , role : RoleType , scope ?: { __typename ?: 'RoleScope' , id : string , type : ScopeType , church ?: { __typename ?: 'Church' , id : string } | null , team ?: { __typename ?: 'Team' , id : string } | null , project ?: { __typename ?: 'Project' , id : string } | null } | null } > } } ;
14171417
1418+ export type DeleteChallengeMutationVariables = Exact < {
1419+ challengeId : Scalars [ 'ID' ] [ 'input' ] ;
1420+ } > ;
1421+
1422+
1423+ export type DeleteChallengeMutation = { __typename ?: 'Mutation' , deleteChallenge : boolean } ;
1424+
1425+ export type CreateProjectMutationVariables = Exact < {
1426+ input : CreateProjectInput ;
1427+ } > ;
1428+
1429+
1430+ export type CreateProjectMutation = { __typename ?: 'Mutation' , createProject : { __typename ?: 'Project' , id : string } } ;
1431+
1432+ export type UpdateProjectMutationVariables = Exact < {
1433+ id : Scalars [ 'ID' ] [ 'input' ] ;
1434+ input : UpdateProjectInput ;
1435+ } > ;
1436+
1437+
1438+ export type UpdateProjectMutation = { __typename ?: 'Mutation' , updateProject : { __typename ?: 'Project' , id : string } } ;
1439+
14181440export type AdminSidebarQueryVariables = Exact < { [ key : string ] : never ; } > ;
14191441
14201442
@@ -1437,14 +1459,6 @@ export type AdminProjectEditPageQueryVariables = Exact<{
14371459
14381460export type AdminProjectEditPageQuery = { __typename ?: 'Query' , project : { __typename ?: 'Project' , id : string , name : string , description : string , startDate : any , endDate : any , archivedAt ?: boolean | null , branding : { __typename ?: 'Branding' , logo ?: string | null , rounding : number , colors : { __typename ?: 'Colors' , primary : string } } } } ;
14391461
1440- export type UpdateProjectMutationVariables = Exact < {
1441- id : Scalars [ 'ID' ] [ 'input' ] ;
1442- input : UpdateProjectInput ;
1443- } > ;
1444-
1445-
1446- export type UpdateProjectMutation = { __typename ?: 'Mutation' , updateProject : { __typename ?: 'Project' , id : string } } ;
1447-
14481462export type AdminProjectPageQueryVariables = Exact < {
14491463 projectId : Scalars [ 'ID' ] [ 'input' ] ;
14501464} > ;
@@ -1462,13 +1476,6 @@ export type AdminProjectsPageQueryVariables = Exact<{ [key: string]: never; }>;
14621476
14631477export type AdminProjectsPageQuery = { __typename ?: 'Query' , projects : { __typename ?: 'ProjectConnection' , edges : Array < { __typename ?: 'ProjectEdge' , node : { __typename ?: 'Project' , id : string , name : string , description : string , endDate : any , startDate : any , branding : { __typename ?: 'Branding' , logo ?: string | null , colors : { __typename ?: 'Colors' , primary : string } } } } > } } ;
14641478
1465- export type CreateProjectMutationVariables = Exact < {
1466- input : CreateProjectInput ;
1467- } > ;
1468-
1469-
1470- export type CreateProjectMutation = { __typename ?: 'Mutation' , createProject : { __typename ?: 'Project' , id : string } } ;
1471-
14721479export type AdminUserPageQueryVariables = Exact < {
14731480 id : Scalars [ 'ID' ] [ 'input' ] ;
14741481} > ;
@@ -1556,6 +1563,37 @@ export const GetMeDocument = gql`
15561563export function useGetMeQuery ( options ?: Omit < Urql . UseQueryArgs < never , GetMeQueryVariables | undefined > , 'query' > ) {
15571564 return Urql . useQuery < GetMeQuery , GetMeQueryVariables | undefined > ( { query : GetMeDocument , variables : undefined , ...options } ) ;
15581565} ;
1566+ export const DeleteChallengeDocument = gql `
1567+ mutation DeleteChallenge($challengeId: ID!) {
1568+ deleteChallenge(id: $challengeId)
1569+ }
1570+ ` ;
1571+
1572+ export function useDeleteChallengeMutation ( ) {
1573+ return Urql . useMutation < DeleteChallengeMutation , DeleteChallengeMutationVariables > ( DeleteChallengeDocument ) ;
1574+ } ;
1575+ export const CreateProjectDocument = gql `
1576+ mutation CreateProject($input: CreateProjectInput!) {
1577+ createProject(input: $input) {
1578+ id
1579+ }
1580+ }
1581+ ` ;
1582+
1583+ export function useCreateProjectMutation ( ) {
1584+ return Urql . useMutation < CreateProjectMutation , CreateProjectMutationVariables > ( CreateProjectDocument ) ;
1585+ } ;
1586+ export const UpdateProjectDocument = gql `
1587+ mutation UpdateProject($id: ID!, $input: UpdateProjectInput!) {
1588+ updateProject(id: $id, input: $input) {
1589+ id
1590+ }
1591+ }
1592+ ` ;
1593+
1594+ export function useUpdateProjectMutation ( ) {
1595+ return Urql . useMutation < UpdateProjectMutation , UpdateProjectMutationVariables > ( UpdateProjectDocument ) ;
1596+ } ;
15591597export const AdminSidebarDocument = gql `
15601598 query AdminSidebar {
15611599 projects {
@@ -1646,17 +1684,6 @@ export const AdminProjectEditPageDocument = gql`
16461684export function useAdminProjectEditPageQuery ( options ?: Omit < Urql . UseQueryArgs < never , AdminProjectEditPageQueryVariables | undefined > , 'query' > ) {
16471685 return Urql . useQuery < AdminProjectEditPageQuery , AdminProjectEditPageQueryVariables | undefined > ( { query : AdminProjectEditPageDocument , variables : undefined , ...options } ) ;
16481686} ;
1649- export const UpdateProjectDocument = gql `
1650- mutation UpdateProject($id: ID!, $input: UpdateProjectInput!) {
1651- updateProject(id: $id, input: $input) {
1652- id
1653- }
1654- }
1655- ` ;
1656-
1657- export function useUpdateProjectMutation ( ) {
1658- return Urql . useMutation < UpdateProjectMutation , UpdateProjectMutationVariables > ( UpdateProjectDocument ) ;
1659- } ;
16601687export const AdminProjectPageDocument = gql `
16611688 query AdminProjectPage($projectId: ID!) {
16621689 project(id: $projectId) {
@@ -1673,31 +1700,31 @@ export const AdminProjectPageDocument = gql`
16731700 }
16741701 }
16751702 }
1676- achievements(filter: {projectId: $projectId}) {
1703+ achievements(first: 50, filter: {projectId: $projectId}) {
16771704 edges {
16781705 node {
16791706 id
16801707 name
16811708 }
16821709 }
16831710 }
1684- events(filter: {projectId: $projectId}) {
1711+ events(first: 50, filter: {projectId: $projectId}) {
16851712 edges {
16861713 node {
16871714 id
16881715 name
16891716 }
16901717 }
16911718 }
1692- challenges(filter: {projectId: $projectId}) {
1719+ challenges(first: 50, filter: {projectId: $projectId}) {
16931720 edges {
16941721 node {
16951722 id
16961723 name
16971724 }
16981725 }
16991726 }
1700- streaks(filter: {projectId: $projectId}) {
1727+ streaks(first: 50, filter: {projectId: $projectId}) {
17011728 edges {
17021729 node {
17031730 id
@@ -1736,17 +1763,6 @@ export const AdminProjectsPageDocument = gql`
17361763export function useAdminProjectsPageQuery ( options ?: Omit < Urql . UseQueryArgs < never , AdminProjectsPageQueryVariables | undefined > , 'query' > ) {
17371764 return Urql . useQuery < AdminProjectsPageQuery , AdminProjectsPageQueryVariables | undefined > ( { query : AdminProjectsPageDocument , variables : undefined , ...options } ) ;
17381765} ;
1739- export const CreateProjectDocument = gql `
1740- mutation CreateProject($input: CreateProjectInput!) {
1741- createProject(input: $input) {
1742- id
1743- }
1744- }
1745- ` ;
1746-
1747- export function useCreateProjectMutation ( ) {
1748- return Urql . useMutation < CreateProjectMutation , CreateProjectMutationVariables > ( CreateProjectDocument ) ;
1749- } ;
17501766export const AdminUserPageDocument = gql `
17511767 query AdminUserPage($id: ID!) {
17521768 user(id: $id) {
0 commit comments