@idscan/idvc2 3.7.0 → 3.8.0

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/idvc.js.gzip CHANGED
Binary file
package/dist/index.html CHANGED
@@ -60,6 +60,14 @@
60
60
  { type: 'face', name: 'User\ Selfie', mode: { uploader: true, video: true } },
61
61
  ],
62
62
  },
63
+ {
64
+ type: 'EmploymentAuthorization',
65
+ steps: [
66
+ { type: 'front', name: 'Document\'s Front Image', mode: { uploader: true, video: true }, enableDesktopNotification: true, autocaptureDelay: 2000 },
67
+ { type: 'back', name: 'Document\'s Back Image', enableFourCornerCapture: true, enableDesktopNotification: true, mode: { uploader: true, video: true }, autocaptureDelay: 0 },
68
+ { type: 'face', name: 'User\ Selfie', mode: { uploader: true, video: true } },
69
+ ],
70
+ },
63
71
  // {
64
72
  // type: 'VIN',
65
73
  // steps:[
@@ -0,0 +1,9 @@
1
+ import type { StepType } from './stepsDescription';
2
+ import { DocumentTypeName } from './documentTypes';
3
+
4
+ export const checkIsNeedRotateCard = (stepType: StepType, documentTypeName: '' | DocumentTypeName): boolean => {
5
+ if (documentTypeName === 'Passport') {
6
+ return false;
7
+ }
8
+ return stepType !== 'face' && stepType !== 'front' && stepType !== 'barcode';
9
+ };