mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Update graphql types and mutations
This commit is contained in:
@@ -134,3 +134,26 @@ export const UPDATE_USER_INFO = gql`
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_USER_PASSWORD = gql`
|
||||
mutation UpdateUserPassword($id: String!, $password: PasswordInputModel!) {
|
||||
updateUserPassword(id: $id, password: $password) {
|
||||
id
|
||||
email
|
||||
firstName
|
||||
lastName
|
||||
phone {
|
||||
prefix
|
||||
number
|
||||
}
|
||||
address {
|
||||
place
|
||||
city
|
||||
country
|
||||
zip
|
||||
}
|
||||
active
|
||||
role
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -447,3 +447,24 @@ export type UpdateUserInfoMutation = (
|
||||
) }
|
||||
) }
|
||||
);
|
||||
|
||||
export type UpdateUserPasswordMutationVariables = Exact<{
|
||||
id: Scalars['String'];
|
||||
password: PasswordInputModel;
|
||||
}>;
|
||||
|
||||
|
||||
export type UpdateUserPasswordMutation = (
|
||||
{ __typename?: 'MutationRoot' }
|
||||
& { updateUserPassword: (
|
||||
{ __typename?: 'UserResponseModel' }
|
||||
& Pick<UserResponseModel, 'id' | 'email' | 'firstName' | 'lastName' | 'active' | 'role'>
|
||||
& { phone: (
|
||||
{ __typename?: 'PhoneModel' }
|
||||
& Pick<PhoneModel, 'prefix' | 'number'>
|
||||
), address: (
|
||||
{ __typename?: 'AddressModel' }
|
||||
& Pick<AddressModel, 'place' | 'city' | 'country' | 'zip'>
|
||||
) }
|
||||
) }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user