@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.
@@ -2097,6 +2097,11 @@ var RESET_PASSWORD_MUTATION = gql`
2097
2097
  }
2098
2098
  }
2099
2099
  `;
2100
+ var UPDATE_PASSWORD_MUTATION = gql`
2101
+ mutation UpdatePassword($input: UpdatePasswordInput!) {
2102
+ updatePassword(input: $input)
2103
+ }
2104
+ `;
2100
2105
  var DELETE_MEMBER_ACCOUNT_MUTATION = gql`
2101
2106
  mutation DeleteMemberAccount($input: DeleteMemberAccountInput!) {
2102
2107
  deleteMemberAccount(input: $input)
@@ -4123,6 +4128,22 @@ var AccountService = class {
4123
4128
  ok: true
4124
4129
  };
4125
4130
  }
4131
+ async updatePassword(variables) {
4132
+ const res = await this.client.request(UPDATE_PASSWORD_MUTATION, variables);
4133
+ if (!res.ok) return res;
4134
+ if (!res.data.updatePassword) {
4135
+ return {
4136
+ ok: false,
4137
+ error: {
4138
+ name: "UnknownError",
4139
+ message: "Something went wrong."
4140
+ }
4141
+ };
4142
+ }
4143
+ return {
4144
+ ok: true
4145
+ };
4146
+ }
4126
4147
  async profileCompletion() {
4127
4148
  const res = await this.client.request(
4128
4149
  PROFILE_COMPLETION_QUERY
@@ -6619,5 +6640,5 @@ var ExtensionService = class {
6619
6640
  };
6620
6641
 
6621
6642
  export { AccountService, AuthService, CmsPortalService, ExtensionService, FileService, GameService, PortalService, ReportService, TriggerService, WalletService, getFingerPrint };
6622
- //# sourceMappingURL=chunk-IT7ND6PF.js.map
6623
- //# sourceMappingURL=chunk-IT7ND6PF.js.map
6643
+ //# sourceMappingURL=chunk-KTIDTIQ6.js.map
6644
+ //# sourceMappingURL=chunk-KTIDTIQ6.js.map