bry-biometric-collector 2.0.5 → 2.0.6

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.
@@ -1,4 +1,4 @@
1
- import { aY as f } from "./main_bce0667c_2.0.5.js";
1
+ import { aX as f } from "./main_baf553c3_2.0.6.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -171,9 +171,11 @@ const e = {
171
171
  unconformities: "Unconformities",
172
172
  provideAReasonForTheLowQualityCapture: "Please provide a reason for the low quality capture.",
173
173
  yourJustification: "Your justification",
174
- unaliveCapture: "capture didn't passs the liveness test.",
174
+ unaliveCapture: "Capture didn't passs the liveness test.",
175
175
  unableToCompleteRequest: "Unable to complete the request to the photo validation service, please try again or contact the system administrator."
176
176
  }, y = {
177
+ captured: "Document captured!"
178
+ }, F = {
177
179
  close: "close",
178
180
  instructions: "To download the driver for your scanner, please select the brand of your scanner:",
179
181
  obs: "Please also do not forget to disconnect your scanner before installing the driver.",
@@ -184,11 +186,11 @@ const e = {
184
186
  deviceSelect: "Video Source",
185
187
  en: "English",
186
188
  pt: "Português"
187
- }, F = {
189
+ }, R = {
188
190
  evaluateBiometricsTimeout: "The server has exceeded its time limit to respond. Please try again or contact the system administrator.",
189
191
  genericNetworkError: "There was an error processing your request. Please try again or contact the system administrator.",
190
192
  genericError: "There was an unexpected error. Please try again or contact the system administrator."
191
- }, R = {
193
+ }, E = {
192
194
  forbiddenFingerSwal: e,
193
195
  badFingerQualitySwal: t,
194
196
  unknownDuplicateFingerSwal: a,
@@ -207,8 +209,9 @@ const e = {
207
209
  unconformities: h,
208
210
  liveness: m,
209
211
  faceCollector: T,
210
- configModal: y,
211
- toast: F
212
+ docCollector: y,
213
+ configModal: F,
214
+ toast: R
212
215
  };
213
216
  export {
214
217
  r as agrFinger,
@@ -218,9 +221,10 @@ export {
218
221
  s as automaticHasAlreadyRunSwal,
219
222
  t as badFingerQualitySwal,
220
223
  u as buttons,
221
- y as configModal,
222
- R as default,
224
+ F as configModal,
225
+ E as default,
223
226
  c as dirtyScannerSwal,
227
+ y as docCollector,
224
228
  o as duplicateFingerSwal,
225
229
  l as easterEggduplicateFingerSwal,
226
230
  T as faceCollector,
@@ -229,7 +233,7 @@ export {
229
233
  m as liveness,
230
234
  d as missingScannerSwal,
231
235
  i as signerNotInstalledSwal,
232
- F as toast,
236
+ R as toast,
233
237
  h as unconformities,
234
238
  a as unknownDuplicateFingerSwal
235
239
  };
@@ -1,4 +1,4 @@
1
- import { u as D, $ as C, n as y, g, i as b, a as M, s as l, b as h, c as U, F, d as x, e as c, v, f as P, A as B, h as S, j as E, k as W, l as k, m as X, o as w, p as $, q as G } from "./main_bce0667c_2.0.5.js";
1
+ import { u as D, $ as C, n as y, g, i as b, a as M, s as l, b as h, c as U, F, d as x, e as c, v, f as P, A as B, h as S, j as E, k as W, l as k, m as X, o as w, p as $, q as G } from "./main_baf553c3_2.0.6.js";
2
2
  const d = D(C);
3
3
  var V = /* @__PURE__ */ ((n) => (n.EXTENSION_MISSING = "EXTENSION_MISSING", n.USER_CANCELLED = "USER_CANCELLED", n.UNAUTHORIZED_EXTENSION = "UNAUTHORIZED_EXTENSION", n.SCANNER_NOT_FOUND = "SCANNER_NOT_FOUND", n.EXTENSION_MODULE_NOT_INSTALLED = "EXTENSION_MODULE_NOT_INSTALLED", n.FINGER_NOT_REMOVED = "FINGER_NOT_REMOVED", n.UNKNOWN_ERROR = "UNKNOWN_ERROR", n.EVALUATE_BIOMETRICS_TIMEOUT = "EVALUATE_BIOMETRICS_TIMEOUT", n.EVALUATE_BIOMETRICS_NETWORK_ISSUE = "EVALUATE_BIOMETRICS_NETWORK_ISSUE", n))(V || {});
4
4
  class s extends Error {
package/dist/index.d.ts CHANGED
@@ -32,7 +32,11 @@ export enum Props {
32
32
  LIVENESS_ENABLE = 'liveness_enable',
33
33
  IMPORT_LOTTIE = 'import_lottie',
34
34
  HIDE_TABS = 'hide_tabs',
35
- IMPORT_BRY_WEB_COLLECTOR_SCRIPT = 'import_bry_web_collector_script',
35
+ IMPORT_EXTENSION_SCRIPT = 'import_extension_script',
36
+ EXTENSION_URL_SCRIPT = 'extension_url_script',
37
+ EVALUATE_PHOTO = 'evaluate_photo',
38
+ SHOW_CAPTURE_BUTTON = 'show_capture_button',
39
+ SHOW_UNCONFORMITIES = 'show_unconformities',
36
40
  }
37
41
 
38
42
  export const enum BodyPartNames {
@@ -66,6 +70,7 @@ export type FingerName = keyof typeof BodyPartNames;
66
70
 
67
71
  export interface EventResult {
68
72
  'export-face': BodyPart;
73
+ 'export-document': BodyPart;
69
74
  }
70
75
  export type BryWebCollectorComponentEvent<K> = CustomEvent<K>;
71
76
 
@@ -76,12 +81,18 @@ export type BryWebCollectorComponentEvent<K> = CustomEvent<K>;
76
81
  // };
77
82
 
78
83
  export type exportFace = BryWebCollectorComponentEvent<BodyPart>;
84
+ export type exportDocument = BryWebCollectorComponentEvent<BodyPart>;
79
85
  export type faceUnconformitiesValidated = BryWebCollectorComponentEvent<{
80
86
  bodyParts: BodyPart[];
81
87
  errorCode?: string;
82
88
  icaoWarnings?: string[];
83
89
  status: requestResultEnum;
84
90
  }>;
91
+ export type documentUnconformitiesValidated = BryWebCollectorComponentEvent<{
92
+ bodyParts: BodyPart[];
93
+ errorCode?: string;
94
+ status: requestResultEnum;
95
+ }>;
85
96
 
86
97
  declare global {
87
98
  interface BryWebCollectorComponent extends HTMLElement {
@@ -105,14 +116,18 @@ declare global {
105
116
 
106
117
  // PROPS
107
118
  [Props.EXTENSION_NAME]: string;
108
- [Props.COLLECTOR_SELECT]: 'BOTH' | 'FINGERS' | 'FACE';
119
+ [Props.COLLECTOR_SELECT]: 'BOTH' | 'FINGERS' | 'FACE' | 'DOCUMENT';
109
120
  [Props.VIDEO_DIMENSIONS]: string;
110
121
  [Props.ENABLE_MINUTIAE]: string;
111
122
  [Props.WEIGHTS_PATH]: string;
112
123
  [Props.LIVENESS_ENABLE]: string;
113
124
  [Props.IMPORT_LOTTIE]: string;
114
125
  [Props.HIDE_TABS]: string;
115
- [Props.IMPORT_BRY_WEB_COLLECTOR_SCRIPT]: string;
126
+ [Props.IMPORT_EXTENSION_SCRIPT]: string;
127
+ [Props.EXTENSION_URL_SCRIPT]: string;
128
+ [Props.EVALUATE_PHOTO]: string;
129
+ [Props.SHOW_CAPTURE_BUTTON]: string;
130
+ [Props.SHOW_UNCONFORMITIES]: string;
116
131
  /**
117
132
  * Clears fingers and face, to make ready for a new collection.
118
133
  * Will not clear jwtToken.
@@ -193,6 +208,8 @@ declare global {
193
208
  }
194
209
  interface WindowEventMap {
195
210
  'export-face': exportFace;
211
+ 'export-document': exportDocument;
196
212
  'face-unconformities-validated': faceUnconformitiesValidated;
213
+ 'document-unconformities-validated': documentUnconformitiesValidated;
197
214
  }
198
215
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aY as f } from "./main_bce0667c_2.0.5.js";
1
+ import { aX as f } from "./main_baf553c3_2.0.6.js";
2
2
  export {
3
3
  f as default
4
4
  };