@opexa/portal-sdk 0.59.131 → 0.59.133

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, {
@@ -4188,6 +4202,11 @@ var AccountService = class {
4188
4202
  }
4189
4203
  async registerMemberAccountViaMobile(variables) {
4190
4204
  const { reCAPTCHAResponse, domain, testPass, ...others } = variables;
4205
+ const { branch, branchCode, ...input } = others.input;
4206
+ others.input = {
4207
+ ...input,
4208
+ ...branch?.trim() ? { branch } : { branchCode }
4209
+ };
4191
4210
  const res = await this.client.request(REGISTER_MEMBER_ACCOUNT_VIA_MOBILE_MUTATION, others, {
4192
4211
  headers: {
4193
4212
  ...reCAPTCHAResponse && {
@@ -4629,6 +4648,11 @@ var AccountService = class {
4629
4648
  }
4630
4649
  async registerMemberAccountByMobileNumber__next(variables) {
4631
4650
  const { reCAPTCHAResponse, domain, testPass, fingerprint, ...others } = variables;
4651
+ const { branch, branchCode, ...input } = others.input;
4652
+ others.input = {
4653
+ ...input,
4654
+ ...branch?.trim() ? { branch } : { branchCode }
4655
+ };
4632
4656
  const res = await this.client.request(REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER_MUTATION__NEXT, others, {
4633
4657
  headers: {
4634
4658
  ...reCAPTCHAResponse && {