@opexa/portal-sdk 0.59.131 → 0.59.132

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.
@@ -1816,6 +1816,16 @@ var CLAIM_REBATE_MUTATION = gql`
1816
1816
  }
1817
1817
  }
1818
1818
  `;
1819
+ var BRANCHES_QUERY = gql`
1820
+ query GetBranches {
1821
+ branches {
1822
+ id
1823
+ name
1824
+ code
1825
+ description
1826
+ }
1827
+ }
1828
+ `;
1819
1829
  var MEMBER_QUERY = gql`
1820
1830
  query Member {
1821
1831
  member {
@@ -4163,6 +4173,10 @@ var AccountService = class {
4163
4173
  data: res.data.memberAccount
4164
4174
  };
4165
4175
  }
4176
+ async branches() {
4177
+ const res = await this.client.request(BRANCHES_QUERY);
4178
+ return res.ok ? { ok: true, data: res.data.branches } : res;
4179
+ }
4166
4180
  async registerMemberAccount(variables) {
4167
4181
  const { reCAPTCHAResponse, domain, ...others } = variables;
4168
4182
  const res = await this.client.request(REGISTER_MEMBER_ACCOUNT_MUTATION, others, {