@opexa/portal-sdk 0.59.85 → 0.59.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2108,6 +2108,11 @@ var RESET_PASSWORD_MUTATION = gql`
2108
2108
  }
2109
2109
  }
2110
2110
  `;
2111
+ var UPDATE_PASSWORD_MUTATION = gql`
2112
+ mutation UpdatePassword($input: UpdatePasswordInput!) {
2113
+ updatePassword(input: $input)
2114
+ }
2115
+ `;
2111
2116
  var DELETE_MEMBER_ACCOUNT_MUTATION = gql`
2112
2117
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
2113
2118
  deleteMemberAccount(input: $input)
@@ -4134,6 +4139,22 @@ var AccountService = class {
4134
4139
  ok: true
4135
4140
  };
4136
4141
  }
4142
+ async updatePassword(variables) {
4143
+ const res = await this.client.request(UPDATE_PASSWORD_MUTATION, variables);
4144
+ if (!res.ok) return res;
4145
+ if (!res.data.updatePassword) {
4146
+ return {
4147
+ ok: false,
4148
+ error: {
4149
+ name: "UnknownError",
4150
+ message: "Something went wrong."
4151
+ }
4152
+ };
4153
+ }
4154
+ return {
4155
+ ok: true
4156
+ };
4157
+ }
4137
4158
  async profileCompletion() {
4138
4159
  const res = await this.client.request(
4139
4160
  PROFILE_COMPLETION_QUERY