From 303d2d3610b4ee97ba29bc4211cef1372e3bb625 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Thu, 6 May 2021 01:43:33 +0100 Subject: [PATCH] Update gql types --- src/graphql/types.ts | 84 +++++++++++++++++++++++++++++++++----------- 1 file changed, 64 insertions(+), 20 deletions(-) diff --git a/src/graphql/types.ts b/src/graphql/types.ts index c99c626..46e76ff 100644 --- a/src/graphql/types.ts +++ b/src/graphql/types.ts @@ -330,6 +330,70 @@ export type UserResponseModel = { role: Scalars['String']; }; +export type GetAllUsersQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetAllUsersQuery = ( + { __typename?: 'QueryRoot' } + & { getAllUsers: Array<( + { __typename?: 'UserResponseModel' } + & Pick + & { phone: ( + { __typename?: 'PhoneModel' } + & Pick + ), address: ( + { __typename?: 'AddressModel' } + & Pick + ) } + )> } +); + +export type GetUserByIdQueryVariables = Exact<{ + id: Scalars['String']; +}>; + + +export type GetUserByIdQuery = ( + { __typename?: 'QueryRoot' } + & { getUserById: ( + { __typename?: 'UserResponseModel' } + & Pick + & { phone: ( + { __typename?: 'PhoneModel' } + & Pick + ), address: ( + { __typename?: 'AddressModel' } + & Pick + ) } + ) } +); + +export type CreateUserMutationVariables = Exact<{ + email: Scalars['String']; + password: Scalars['String']; + firstName: Scalars['String']; + lastName: Scalars['String']; + phone: PhoneInputModel; + address: AddressInputModel; + role: Role; +}>; + + +export type CreateUserMutation = ( + { __typename?: 'MutationRoot' } + & { createUser: ( + { __typename?: 'UserResponseModel' } + & Pick + & { phone: ( + { __typename?: 'PhoneModel' } + & Pick + ), address: ( + { __typename?: 'AddressModel' } + & Pick + ) } + ) } +); + export type SignupMutationVariables = Exact<{ email: Scalars['String']; password: Scalars['String']; @@ -488,26 +552,6 @@ export type DeleteUserMutation = ( ) } ); -export type GetUserByIdQueryVariables = Exact<{ - id: Scalars['String']; -}>; - - -export type GetUserByIdQuery = ( - { __typename?: 'QueryRoot' } - & { getUserById: ( - { __typename?: 'UserResponseModel' } - & Pick - & { phone: ( - { __typename?: 'PhoneModel' } - & Pick - ), address: ( - { __typename?: 'AddressModel' } - & Pick - ) } - ) } -); - export type GetCountryCodesQueryVariables = Exact<{ [key: string]: never; }>;