@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.d.cts CHANGED
@@ -773,8 +773,10 @@ interface MobileNumberCreateAccountInput__next {
773
773
  mobileNumberVerificationCode: string;
774
774
  emailAddress?: string;
775
775
  branchCode?: string;
776
+ agentCode?: string;
776
777
  reCAPTCHAResponse?: string;
777
778
  testPass?: boolean;
779
+ fingerprint?: string;
778
780
  }
779
781
  type CreateAccountInput__Next = NameAndPasswordCreateAccountInput | MobileNumberCreateAccountInput | MobileNumberCreateAccountInput__next | MobileNumberInrCreateAccountInput | NameCreateAccountInput;
780
782
  type CreateAccountError = UnionAlias<RegisterMemberAccountError>;
package/dist/index.d.ts CHANGED
@@ -773,8 +773,10 @@ interface MobileNumberCreateAccountInput__next {
773
773
  mobileNumberVerificationCode: string;
774
774
  emailAddress?: string;
775
775
  branchCode?: string;
776
+ agentCode?: string;
776
777
  reCAPTCHAResponse?: string;
777
778
  testPass?: boolean;
779
+ fingerprint?: string;
778
780
  }
779
781
  type CreateAccountInput__Next = NameAndPasswordCreateAccountInput | MobileNumberCreateAccountInput | MobileNumberCreateAccountInput__next | MobileNumberInrCreateAccountInput | NameCreateAccountInput;
780
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;
@@ -9412,12 +9415,16 @@ var Sdk = class {
9412
9415
  mobileNumber: addAreaCode(input.mobileNumber, await this.locale),
9413
9416
  mobileNumberVerificationCode: input.mobileNumberVerificationCode,
9414
9417
  emailAddress: input.emailAddress,
9415
- branchCode: input.branchCode
9418
+ branchCode: input.branchCode,
9419
+ agentCode: input.agentCode
9416
9420
  },
9417
9421
  testPass: input.testPass,
9418
9422
  reCAPTCHAResponse: input.reCAPTCHAResponse,
9419
9423
  ...this.webDomain && {
9420
9424
  domain: this.webDomain
9425
+ },
9426
+ ...input.fingerprint && {
9427
+ fingerprint: input.fingerprint
9421
9428
  }
9422
9429
  });
9423
9430
  return res2.ok ? { ok: true, data: { id } } : res2;