verant_id_cloud_scan 1.4.5-beta.6 → 1.4.5-beta.7

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/CHANGELOG.md CHANGED
@@ -14,13 +14,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
  - Image types supported: fclr (front color), rclr (rear color), fclruv (front UV), rclruv (rear UV), fgsir (front IR), rgsir (rear IR)
15
15
 
16
16
  ### Fixed
17
- - UV/IR parameters no longer restored to disabled state after scanning
18
- - Removed `fclrUvEnabled`, `rclrUvEnabled`, `fgsIrEnabled`, and `rgsIrEnabled` from `restoreParamKeys` in IDXpressPlus profile
19
17
  - Image extraction logic now captures all image types from scanner response instead of only front/back color images
20
18
 
21
19
  ### Changed
20
+ - Updated IDXpressPlus scanner profile to include UV/IR parameters in default settings and restore configuration
21
+ - Added `clrUvIrResolution`, `fclrUvEnabled`, `rclrUvEnabled`, `fgsIrEnabled`, and `rgsIrEnabled` to `restoreParamKeys`
22
22
  - Updated `ScannerApi.js` to extract UV/IR images from GetDocument response
23
- - Updated `CloudScan.js` public API functions (`scanId`, `localScanId`, `localContinueScanId`) to return UV/IR image data
23
+ - Updated `CloudScan.js` `scanId` function to return UV/IR image data (`licenseFrontUvBase64`, `licenseBackUvBase64`, `licenseFrontIrBase64`, `licenseBackIrBase64`)
24
+ - Local scanner functions (`localScanId`, `localContinueScanId`) do not include UV/IR fields as local scanners (VerantId6S) do not support UV/IR imaging
24
25
 
25
26
  ## [1.4.5-beta.5] - 2026-04-14
26
27
 
package/CloudScan.js CHANGED
@@ -365,10 +365,6 @@ export const localScanId = async (scannerAddress, clientId) => {
365
365
  barcodeResultsObject,
366
366
  licenseFrontBase64: "",
367
367
  licenseBackBase64: "",
368
- licenseFrontUvBase64: "",
369
- licenseBackUvBase64: "",
370
- licenseFrontIrBase64: "",
371
- licenseBackIrBase64: "",
372
368
  errorMessages: "",
373
369
  };
374
370
 
@@ -393,10 +389,6 @@ export const localContinueScanId = async (scannerAddress, includeData, clientId
393
389
  barcodeResultsObject,
394
390
  licenseFrontBase64: "",
395
391
  licenseBackBase64: "",
396
- licenseFrontUvBase64: "",
397
- licenseBackUvBase64: "",
398
- licenseFrontIrBase64: "",
399
- licenseBackIrBase64: "",
400
392
  errorMessages: "",
401
393
  };
402
394
 
package/ScannerApi.js CHANGED
@@ -63,6 +63,10 @@ export async function scannerChain(
63
63
  let scanDataResults = {};
64
64
  let licenseFrontBase64 = "";
65
65
  let licenseBackBase64 = "";
66
+ let licenseFrontUvBase64 = "";
67
+ let licenseBackUvBase64 = "";
68
+ let licenseFrontIrBase64 = "";
69
+ let licenseBackIrBase64 = "";
66
70
 
67
71
  // Get scanner profile
68
72
  const profileName = optionalConnectionParams?.scannerProfile;
@@ -187,10 +191,10 @@ export async function scannerChain(
187
191
  scanDataResults = resultData;
188
192
  licenseFrontBase64 = frontBase64;
189
193
  licenseBackBase64 = backBase64;
190
- const licenseFrontUvBase64 = frontUvBase64;
191
- const licenseBackUvBase64 = backUvBase64;
192
- const licenseFrontIrBase64 = frontIrBase64;
193
- const licenseBackIrBase64 = backIrBase64;
194
+ licenseFrontUvBase64 = frontUvBase64;
195
+ licenseBackUvBase64 = backUvBase64;
196
+ licenseFrontIrBase64 = frontIrBase64;
197
+ licenseBackIrBase64 = backIrBase64;
194
198
 
195
199
  if (!scanSuccess) {
196
200
  await closeScannerConnection(currentSessionId);
@@ -418,13 +422,13 @@ async function startScanDocument(
418
422
  licenseFrontBase64 = imageData;
419
423
  } else if (imageType === profile.backImageType) {
420
424
  licenseBackBase64 = imageData;
421
- } else if (imageType === "fclruv") {
425
+ } else if (profile.frontUvImageType && imageType === profile.frontUvImageType) {
422
426
  licenseFrontUvBase64 = imageData;
423
- } else if (imageType === "rclruv") {
427
+ } else if (profile.backUvImageType && imageType === profile.backUvImageType) {
424
428
  licenseBackUvBase64 = imageData;
425
- } else if (imageType === "fgsir") {
429
+ } else if (profile.frontIrImageType && imageType === profile.frontIrImageType) {
426
430
  licenseFrontIrBase64 = imageData;
427
- } else if (imageType === "rgsir") {
431
+ } else if (profile.backIrImageType && imageType === profile.backIrImageType) {
428
432
  licenseBackIrBase64 = imageData;
429
433
  }
430
434
  });
@@ -106,6 +106,10 @@ const PROFILES = {
106
106
  ],
107
107
  frontImageType: "fclr",
108
108
  backImageType: "rclr",
109
+ frontUvImageType: "fclruv",
110
+ backUvImageType: "rclruv",
111
+ frontIrImageType: "fgsir",
112
+ backIrImageType: "rgsir",
109
113
  licenseIdentifierField: "ScannerMAC",
110
114
  licenseIdentifierFallback: "ScannerSerial",
111
115
  },
package/index.d.ts CHANGED
@@ -45,6 +45,10 @@ declare module "verant_id_cloud_scan" {
45
45
  barcodeResultsObject: any;
46
46
  licenseFrontBase64: string;
47
47
  licenseBackBase64: string;
48
+ licenseFrontUvBase64: string;
49
+ licenseBackUvBase64: string;
50
+ licenseFrontIrBase64: string;
51
+ licenseBackIrBase64: string;
48
52
  errorMessages: string;
49
53
  dmvVerificationResult?: any;
50
54
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verant_id_cloud_scan",
3
- "version": "1.4.5-beta.6",
3
+ "version": "1.4.5-beta.7",
4
4
  "description": "Verant ID Cloud Scan NPM Library",
5
5
  "main": "CloudScan.js",
6
6
  "types": "index.d.ts",