@opexa/portal-sdk 0.57.14 → 0.57.16

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
@@ -3868,7 +3868,7 @@ var AccountService = class {
3868
3868
  };
3869
3869
  }
3870
3870
  async registerMemberAccountByMobileNumber__next(variables) {
3871
- const { reCAPTCHAResponse, domain, testPass, ...others } = variables;
3871
+ const { reCAPTCHAResponse, domain, testPass, fingerprint, ...others } = variables;
3872
3872
  const res = await this.client.request(REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER_MUTATION__NEXT, others, {
3873
3873
  headers: {
3874
3874
  ...reCAPTCHAResponse && {
@@ -3879,6 +3879,9 @@ var AccountService = class {
3879
3879
  },
3880
3880
  ...domain && {
3881
3881
  Domain: domain
3882
+ },
3883
+ ...fingerprint && {
3884
+ Fingerprint: fingerprint
3882
3885
  }
3883
3886
  }
3884
3887
  });
@@ -8995,7 +8998,7 @@ var Sdk = class {
8995
8998
  get fingerprintMiddleware() {
8996
8999
  return async (request) => {
8997
9000
  const fingerprint = await this.fingerprint();
8998
- if (fingerprint) {
9001
+ if (fingerprint && !request.headers.has("Fingerprint")) {
8999
9002
  request.headers.set("Fingerprint", fingerprint);
9000
9003
  }
9001
9004
  return request;
@@ -9417,12 +9420,16 @@ var Sdk = class {
9417
9420
  mobileNumber: addAreaCode(input.mobileNumber, await this.locale),
9418
9421
  mobileNumberVerificationCode: input.mobileNumberVerificationCode,
9419
9422
  emailAddress: input.emailAddress,
9420
- branchCode: input.branchCode
9423
+ branchCode: input.branchCode,
9424
+ agentCode: input.agentCode
9421
9425
  },
9422
9426
  testPass: input.testPass,
9423
9427
  reCAPTCHAResponse: input.reCAPTCHAResponse,
9424
9428
  ...this.webDomain && {
9425
9429
  domain: this.webDomain
9430
+ },
9431
+ ...input.fingerprint && {
9432
+ fingerprint: input.fingerprint
9426
9433
  }
9427
9434
  });
9428
9435
  return res2.ok ? { ok: true, data: { id } } : res2;