diff --git a/src/graphql/auth.api.ts b/src/graphql/auth.api.ts index 3318c63..83634e2 100644 --- a/src/graphql/auth.api.ts +++ b/src/graphql/auth.api.ts @@ -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 + } + } +`; diff --git a/src/graphql/types.ts b/src/graphql/types.ts index 298c5db..589842e 100644 --- a/src/graphql/types.ts +++ b/src/graphql/types.ts @@ -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 + & { phone: ( + { __typename?: 'PhoneModel' } + & Pick + ), address: ( + { __typename?: 'AddressModel' } + & Pick + ) } + ) } +);