@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.
package/dist/index.cjs CHANGED
@@ -2129,6 +2129,11 @@ var RESET_PASSWORD_MUTATION = gql`
2129
2129
  }
2130
2130
  }
2131
2131
  `;
2132
+ var UPDATE_PASSWORD_MUTATION = gql`
2133
+ mutation UpdatePassword($input: UpdatePasswordInput!) {
2134
+ updatePassword(input: $input)
2135
+ }
2136
+ `;
2132
2137
  var DELETE_MEMBER_ACCOUNT_MUTATION = gql`
2133
2138
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
2134
2139
  deleteMemberAccount(input: $input)
@@ -4155,6 +4160,22 @@ var AccountService = class {
4155
4160
  ok: true
4156
4161
  };
4157
4162
  }
4163
+ async updatePassword(variables) {
4164
+ const res = await this.client.request(UPDATE_PASSWORD_MUTATION, variables);
4165
+ if (!res.ok) return res;
4166
+ if (!res.data.updatePassword) {
4167
+ return {
4168
+ ok: false,
4169
+ error: {
4170
+ name: "UnknownError",
4171
+ message: "Something went wrong."
4172
+ }
4173
+ };
4174
+ }
4175
+ return {
4176
+ ok: true
4177
+ };
4178
+ }
4158
4179
  async profileCompletion() {
4159
4180
  const res = await this.client.request(
4160
4181
  PROFILE_COMPLETION_QUERY
@@ -10873,6 +10894,13 @@ var Sdk = class {
10873
10894
  verificationCode: input.verificationCode
10874
10895
  });
10875
10896
  }
10897
+ async updatePassword(input) {
10898
+ return await this.accountService.updatePassword({
10899
+ input: {
10900
+ password: await sha256(input.password)
10901
+ }
10902
+ });
10903
+ }
10876
10904
  async verifyMobileNumber(verificationCode) {
10877
10905
  return await this.accountService.verifyMobileNumber({
10878
10906
  input: {