From 235fe67d770f83131c9ec10b99012319440db690 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 15 May 2022 16:36:58 +0200 Subject: chore: add Search page --- src/services/graphql/api.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/services/graphql/api.ts') diff --git a/src/services/graphql/api.ts b/src/services/graphql/api.ts index 5bed9f9..171ab23 100644 --- a/src/services/graphql/api.ts +++ b/src/services/graphql/api.ts @@ -48,7 +48,7 @@ export type ArticlesResponse = { }; export type CommentsResponse = { - comments: T[]; + comments: T; }; export type SendMailResponse = { @@ -147,7 +147,14 @@ export type ByContentIdVar = { contentId: number; }; -export type sendMailVars = { +export type SearchVar = { + /** + * A search term. + */ + search?: string; +}; + +export type SendMailVars = { body: string; clientMutationId: string; replyTo: string; @@ -160,14 +167,14 @@ export type VariablesMap = { [articlesQuery]: EdgesVars; [articlesSlugQuery]: EdgesVars; [commentsQuery]: ByContentIdVar; - [sendMailMutation]: sendMailVars; + [sendMailMutation]: SendMailVars; [thematicBySlugQuery]: BySlugVar; [thematicsListQuery]: EdgesVars; [thematicsSlugQuery]: EdgesVars; [topicBySlugQuery]: BySlugVar; [topicsListQuery]: EdgesVars; [topicsSlugQuery]: EdgesVars; - [totalArticlesQuery]: null; + [totalArticlesQuery]: SearchVar; [totalThematicsQuery]: null; [totalTopicsQuery]: null; }; -- cgit v1.2.3