From 06ea295857e508a830669cb402d2156204309b1e Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 13 May 2022 16:28:06 +0200 Subject: chore: add blog page widgets --- src/services/graphql/api.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/services/graphql/api.ts') diff --git a/src/services/graphql/api.ts b/src/services/graphql/api.ts index 9811d86..5bed9f9 100644 --- a/src/services/graphql/api.ts +++ b/src/services/graphql/api.ts @@ -12,11 +12,13 @@ import { thematicBySlugQuery, thematicsListQuery, thematicsSlugQuery, + totalThematicsQuery, } from './thematics.query'; import { topicBySlugQuery, topicsListQuery, topicsSlugQuery, + totalTopicsQuery, } from './topics.query'; export type Mutations = typeof sendMailMutation; @@ -33,7 +35,9 @@ export type Queries = | typeof topicBySlugQuery | typeof topicsListQuery | typeof topicsSlugQuery - | typeof totalArticlesQuery; + | typeof totalArticlesQuery + | typeof totalThematicsQuery + | typeof totalTopicsQuery; export type ArticleResponse = { post: T; @@ -105,6 +109,8 @@ export type ResponseMap = { [topicsListQuery]: TopicsResponse>; [topicsSlugQuery]: TopicsResponse>; [totalArticlesQuery]: ArticlesResponse; + [totalThematicsQuery]: ThematicsResponse; + [totalTopicsQuery]: TopicsResponse; }; export type GraphQLResponse< @@ -162,6 +168,8 @@ export type VariablesMap = { [topicsListQuery]: EdgesVars; [topicsSlugQuery]: EdgesVars; [totalArticlesQuery]: null; + [totalThematicsQuery]: null; + [totalTopicsQuery]: null; }; export type FetchAPIProps = { -- cgit v1.2.3