Update gql types

This commit is contained in:
Hazem Krimi
2021-05-06 01:43:33 +01:00
parent 5c29dd5271
commit 303d2d3610
+64 -20
View File
@@ -330,6 +330,70 @@ export type UserResponseModel = {
role: Scalars['String']; role: Scalars['String'];
}; };
export type GetAllUsersQueryVariables = Exact<{ [key: string]: never; }>;
export type GetAllUsersQuery = (
{ __typename?: 'QueryRoot' }
& { getAllUsers: Array<(
{ __typename?: 'UserResponseModel' }
& Pick<UserResponseModel, 'id' | 'email' | 'firstName' | 'lastName' | 'role'>
& { phone: (
{ __typename?: 'PhoneModel' }
& Pick<PhoneModel, 'prefix' | 'number'>
), address: (
{ __typename?: 'AddressModel' }
& Pick<AddressModel, 'place' | 'city' | 'country' | 'zip'>
) }
)> }
);
export type GetUserByIdQueryVariables = Exact<{
id: Scalars['String'];
}>;
export type GetUserByIdQuery = (
{ __typename?: 'QueryRoot' }
& { getUserById: (
{ __typename?: 'UserResponseModel' }
& Pick<UserResponseModel, 'id' | 'email' | 'firstName' | 'lastName' | 'role'>
& { phone: (
{ __typename?: 'PhoneModel' }
& Pick<PhoneModel, 'prefix' | 'number'>
), address: (
{ __typename?: 'AddressModel' }
& Pick<AddressModel, 'place' | 'city' | 'country' | 'zip'>
) }
) }
);
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<UserResponseModel, 'id' | 'email' | 'firstName' | 'lastName' | 'role'>
& { phone: (
{ __typename?: 'PhoneModel' }
& Pick<PhoneModel, 'prefix' | 'number'>
), address: (
{ __typename?: 'AddressModel' }
& Pick<AddressModel, 'place' | 'city' | 'country' | 'zip'>
) }
) }
);
export type SignupMutationVariables = Exact<{ export type SignupMutationVariables = Exact<{
email: Scalars['String']; email: Scalars['String'];
password: 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<UserResponseModel, 'id' | 'email' | 'firstName' | 'lastName' | 'role'>
& { phone: (
{ __typename?: 'PhoneModel' }
& Pick<PhoneModel, 'prefix' | 'number'>
), address: (
{ __typename?: 'AddressModel' }
& Pick<AddressModel, 'place' | 'city' | 'country' | 'zip'>
) }
) }
);
export type GetCountryCodesQueryVariables = Exact<{ [key: string]: never; }>; export type GetCountryCodesQueryVariables = Exact<{ [key: string]: never; }>;