From 2db6053a915c59ef5d13caddf219bb35da7a5a2a Mon Sep 17 00:00:00 2001 From: Ankit Patial Date: Tue, 19 Nov 2024 17:20:00 +0530 Subject: [PATCH] graphs codegen --- web/lib/gql/account.gql.ts | 2 +- web/lib/gql/graph.d.ts | 23 +++++++++++++++++------ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/web/lib/gql/account.gql.ts b/web/lib/gql/account.gql.ts index 1484b7c..1e0dcad 100644 --- a/web/lib/gql/account.gql.ts +++ b/web/lib/gql/account.gql.ts @@ -7,7 +7,7 @@ export const Me = gql` query Me { me { id - displayName + name } } `; diff --git a/web/lib/gql/graph.d.ts b/web/lib/gql/graph.d.ts index 16206f5..52167c5 100644 --- a/web/lib/gql/graph.d.ts +++ b/web/lib/gql/graph.d.ts @@ -13,31 +13,42 @@ export type Scalars = { Int: { input: number; output: number; } Float: { input: number; output: number; } Any: { input: any; output: any; } + Int64: { input: any; output: any; } Map: { input: any; output: any; } Time: { input: any; output: any; } + UID: { input: any; output: any; } Void: { input: any; output: any; } }; export type AuthUser = { __typename?: 'AuthUser'; - displayName: Scalars['String']['output']; email: Scalars['String']['output']; - id: Scalars['ID']['output']; + id: Scalars['UID']['output']; + name: Scalars['String']['output']; roleID: Scalars['Int']['output']; }; export type Mutation = { __typename?: 'Mutation'; - login: AuthUser; - logout: Scalars['Boolean']['output']; + /** User account login */ + accountLogin: AuthUser; + /** User account logout */ + accountLogout: Scalars['Boolean']['output']; + /** Verify email token */ + accountVerifyEmail: Scalars['Boolean']['output']; }; -export type MutationLoginArgs = { +export type MutationAccountLoginArgs = { email: Scalars['String']['input']; pwd: Scalars['String']['input']; }; + +export type MutationAccountVerifyEmailArgs = { + token?: InputMaybe; +}; + export type Query = { __typename?: 'Query'; me?: Maybe; @@ -46,4 +57,4 @@ export type Query = { export type MeQueryVariables = Exact<{ [key: string]: never; }>; -export type MeQuery = { __typename?: 'Query', me?: { __typename?: 'AuthUser', id: string, displayName: string } | null }; +export type MeQuery = { __typename?: 'Query', me?: { __typename?: 'AuthUser', id: any, name: string } | null };