@idscan/onboarding 2.9.1 → 2.9.3

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.
@@ -71,6 +71,7 @@ export type SuccessApplicantValidation = {
71
71
  document: ApplicantDocument;
72
72
  attemptsLeft: number;
73
73
  status: ResponseStatus;
74
+ isCompleted: boolean;
74
75
  validationStatus: ValidationStatus;
75
76
  invalidDataErrors: InvalidDataError[] | null;
76
77
  faceSuccess: boolean;
@@ -6,6 +6,7 @@ export default class Validation {
6
6
  private status;
7
7
  private code;
8
8
  private message;
9
+ private isCompleted;
9
10
  private invalidDataErrors;
10
11
  private attemptsLeft;
11
12
  private attemptsCount;
@@ -1673,11 +1673,13 @@ class Validation {
1673
1673
  attemptsLeft = -1,
1674
1674
  attemptsCount = -1,
1675
1675
  invalidDataErrors = [],
1676
- notificationType = 0
1676
+ notificationType = 0,
1677
+ isCompleted
1677
1678
  } = response;
1678
1679
  this.code = code;
1679
1680
  this.message = message;
1680
1681
  this.status = status;
1682
+ this.isCompleted = isCompleted;
1681
1683
  this.attemptsLeft = attemptsLeft;
1682
1684
  this.attemptsCount = attemptsCount;
1683
1685
  this.invalidDataErrors = invalidDataErrors || [];
@@ -1716,7 +1718,7 @@ class Validation {
1716
1718
  }
1717
1719
  }
1718
1720
  calculateFooter() {
1719
- if (this.status === ResponseStatus.COMPLETE || this.status === ResponseStatus.SUCCESS) {
1721
+ if (this.status === ResponseStatus.COMPLETE || this.status === ResponseStatus.SUCCESS || this.isCompleted) {
1720
1722
  return;
1721
1723
  }
1722
1724
  const showButtons = this.attemptsLeft > 0;
@@ -3971,7 +3973,7 @@ const checkIfMobile = () => {
3971
3973
  const isSurface = mc.isSurface();
3972
3974
  return isMobileUserAgent && isTouchable && isTouchScreen || isSurface;
3973
3975
  };
3974
- const version = "2.9.1";
3976
+ const version = "2.9.3";
3975
3977
  const packageJson = {
3976
3978
  version
3977
3979
  };