From 1c372da6b8daa5362a78e7788ff00b042594a891 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Thu, 10 Aug 2023 19:33:47 +0200 Subject: [PATCH] Update GraphQL schema --- frontend/schema.graphql | 2 +- frontend/src/gql/graphql.ts | 5 +++-- frontend/src/gql/schema.ts | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/schema.graphql b/frontend/schema.graphql index 0a190feb..1e1fefe6 100644 --- a/frontend/schema.graphql +++ b/frontend/schema.graphql @@ -1165,7 +1165,7 @@ union Viewer = User | Anonymous """ Represents the current viewer's session """ -union ViewerSession = BrowserSession | Anonymous +union ViewerSession = BrowserSession | Oauth2Session | Anonymous schema { query: Query diff --git a/frontend/src/gql/graphql.ts b/frontend/src/gql/graphql.ts index 281d9b0c..4cb414e0 100644 --- a/frontend/src/gql/graphql.ts +++ b/frontend/src/gql/graphql.ts @@ -873,7 +873,7 @@ export enum VerifyEmailStatus { export type Viewer = Anonymous | User; /** Represents the current viewer's session */ -export type ViewerSession = Anonymous | BrowserSession; +export type ViewerSession = Anonymous | BrowserSession | Oauth2Session; export type CurrentViewerQueryQueryVariables = Exact<{ [key: string]: never }>; @@ -892,7 +892,8 @@ export type CurrentViewerSessionQueryQuery = { __typename?: "Query"; viewerSession: | { __typename: "Anonymous"; id: string } - | { __typename: "BrowserSession"; id: string }; + | { __typename: "BrowserSession"; id: string } + | { __typename: "Oauth2Session" }; }; export type AddEmailMutationVariables = Exact<{ diff --git a/frontend/src/gql/schema.ts b/frontend/src/gql/schema.ts index 20b28be8..87e97f66 100644 --- a/frontend/src/gql/schema.ts +++ b/frontend/src/gql/schema.ts @@ -2601,6 +2601,10 @@ export default { kind: "OBJECT", name: "BrowserSession", }, + { + kind: "OBJECT", + name: "Oauth2Session", + }, ], }, {