@opexa/portal-sdk 0.59.132 → 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.
package/dist/index.cjs CHANGED
@@ -4222,6 +4222,11 @@ var AccountService = class {
4222
4222
  }
4223
4223
  async registerMemberAccountViaMobile(variables) {
4224
4224
  const { reCAPTCHAResponse, domain, testPass, ...others } = variables;
4225
+ const { branch, branchCode, ...input } = others.input;
4226
+ others.input = {
4227
+ ...input,
4228
+ ...branch?.trim() ? { branch } : { branchCode }
4229
+ };
4225
4230
  const res = await this.client.request(REGISTER_MEMBER_ACCOUNT_VIA_MOBILE_MUTATION, others, {
4226
4231
  headers: {
4227
4232
  ...reCAPTCHAResponse && {
@@ -4663,6 +4668,11 @@ var AccountService = class {
4663
4668
  }
4664
4669
  async registerMemberAccountByMobileNumber__next(variables) {
4665
4670
  const { reCAPTCHAResponse, domain, testPass, fingerprint, ...others } = variables;
4671
+ const { branch, branchCode, ...input } = others.input;
4672
+ others.input = {
4673
+ ...input,
4674
+ ...branch?.trim() ? { branch } : { branchCode }
4675
+ };
4666
4676
  const res = await this.client.request(REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER_MUTATION__NEXT, others, {
4667
4677
  headers: {
4668
4678
  ...reCAPTCHAResponse && {
@@ -11725,6 +11735,7 @@ var Sdk = class {
11725
11735
  mobileNumber: addAreaCode(input.mobileNumber, await this.locale),
11726
11736
  realName: input.realName,
11727
11737
  birthDay: input.dateOfBirth,
11738
+ branch: input.branch,
11728
11739
  branchCode: input.branchCode,
11729
11740
  agentCode: input.agentCode,
11730
11741
  ...this.cxd && {
@@ -11787,6 +11798,7 @@ var Sdk = class {
11787
11798
  mobileNumber: addAreaCode(input.mobileNumber, await this.locale),
11788
11799
  mobileNumberVerificationCode: input.mobileNumberVerificationCode,
11789
11800
  emailAddress: input.emailAddress,
11801
+ branch: input.branch,
11790
11802
  branchCode: input.branchCode,
11791
11803
  agentCode: input.agentCode,
11792
11804
  gigRewardsQuestDetails: input.gigRewardsQuestDetails,