@opexa/portal-sdk 0.57.15 → 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.d.cts CHANGED
@@ -776,6 +776,7 @@ interface MobileNumberCreateAccountInput__next {
776
776
  agentCode?: string;
777
777
  reCAPTCHAResponse?: string;
778
778
  testPass?: boolean;
779
+ fingerprint?: string;
779
780
  }
780
781
  type CreateAccountInput__Next = NameAndPasswordCreateAccountInput | MobileNumberCreateAccountInput | MobileNumberCreateAccountInput__next | MobileNumberInrCreateAccountInput | NameCreateAccountInput;
781
782
  type CreateAccountError = UnionAlias<RegisterMemberAccountError>;
package/dist/index.d.ts CHANGED
@@ -776,6 +776,7 @@ interface MobileNumberCreateAccountInput__next {
776
776
  agentCode?: string;
777
777
  reCAPTCHAResponse?: string;
778
778
  testPass?: boolean;
779
+ fingerprint?: string;
779
780
  }
780
781
  type CreateAccountInput__Next = NameAndPasswordCreateAccountInput | MobileNumberCreateAccountInput | MobileNumberCreateAccountInput__next | MobileNumberInrCreateAccountInput | NameCreateAccountInput;
781
782
  type CreateAccountError = UnionAlias<RegisterMemberAccountError>;
package/dist/index.js CHANGED
@@ -3863,7 +3863,7 @@ var AccountService = class {
3863
3863
  };
3864
3864
  }
3865
3865
  async registerMemberAccountByMobileNumber__next(variables) {
3866
- const { reCAPTCHAResponse, domain, testPass, ...others } = variables;
3866
+ const { reCAPTCHAResponse, domain, testPass, fingerprint, ...others } = variables;
3867
3867
  const res = await this.client.request(REGISTER_MEMBER_ACCOUNT_BY_MOBILE_NUMBER_MUTATION__NEXT, others, {
3868
3868
  headers: {
3869
3869
  ...reCAPTCHAResponse && {
@@ -3874,6 +3874,9 @@ var AccountService = class {
3874
3874
  },
3875
3875
  ...domain && {
3876
3876
  Domain: domain
3877
+ },
3878
+ ...fingerprint && {
3879
+ Fingerprint: fingerprint
3877
3880
  }
3878
3881
  }
3879
3882
  });
@@ -8990,7 +8993,7 @@ var Sdk = class {
8990
8993
  get fingerprintMiddleware() {
8991
8994
  return async (request) => {
8992
8995
  const fingerprint = await this.fingerprint();
8993
- if (fingerprint) {
8996
+ if (fingerprint && !request.headers.has("Fingerprint")) {
8994
8997
  request.headers.set("Fingerprint", fingerprint);
8995
8998
  }
8996
8999
  return request;
@@ -9419,6 +9422,9 @@ var Sdk = class {
9419
9422
  reCAPTCHAResponse: input.reCAPTCHAResponse,
9420
9423
  ...this.webDomain && {
9421
9424
  domain: this.webDomain
9425
+ },
9426
+ ...input.fingerprint && {
9427
+ fingerprint: input.fingerprint
9422
9428
  }
9423
9429
  });
9424
9430
  return res2.ok ? { ok: true, data: { id } } : res2;