verant_id_cloud_scan 1.4.5-beta.6 → 1.4.5-beta.8
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 +21 -3
- package/CloudScan.js +0 -8
- package/ScannerApi.js +12 -8
- package/ScannerProfiles.js +4 -0
- package/index.d.ts +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.4.5-beta.8] - 2026-04-15
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- Moved UV/IR image type definitions to scanner profile configuration
|
|
12
|
+
- Added `frontUvImageType`, `backUvImageType`, `frontIrImageType`, and `backIrImageType` to IDXpressPlus profile
|
|
13
|
+
- Updated image extraction logic to use profile-defined UV/IR types instead of hardcoded strings
|
|
14
|
+
- Updated TypeScript definitions (`index.d.ts`) to include UV/IR base64 fields in `scanId` return type
|
|
15
|
+
- Removed UV/IR fields from local scanner functions (`localScanId`, `localContinueScanId`) as local scanners do not support UV/IR imaging
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- Eliminated redundant variable declarations in `ScannerApi.js` by declaring UV/IR variables at function scope
|
|
19
|
+
|
|
20
|
+
## [1.4.5-beta.7] - 2026-04-15
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- Internal refactoring and code review fixes
|
|
24
|
+
|
|
8
25
|
## [1.4.5-beta.6] - 2026-04-15
|
|
9
26
|
|
|
10
27
|
### Added
|
|
@@ -14,13 +31,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
14
31
|
- Image types supported: fclr (front color), rclr (rear color), fclruv (front UV), rclruv (rear UV), fgsir (front IR), rgsir (rear IR)
|
|
15
32
|
|
|
16
33
|
### 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
34
|
- Image extraction logic now captures all image types from scanner response instead of only front/back color images
|
|
20
35
|
|
|
21
36
|
### Changed
|
|
37
|
+
- Updated IDXpressPlus scanner profile to include UV/IR parameters in default settings and restore configuration
|
|
38
|
+
- Added `clrUvIrResolution`, `fclrUvEnabled`, `rclrUvEnabled`, `fgsIrEnabled`, and `rgsIrEnabled` to `restoreParamKeys`
|
|
22
39
|
- Updated `ScannerApi.js` to extract UV/IR images from GetDocument response
|
|
23
|
-
- Updated `CloudScan.js`
|
|
40
|
+
- Updated `CloudScan.js` `scanId` function to return UV/IR image data (`licenseFrontUvBase64`, `licenseBackUvBase64`, `licenseFrontIrBase64`, `licenseBackIrBase64`)
|
|
41
|
+
- Local scanner functions (`localScanId`, `localContinueScanId`) do not include UV/IR fields as local scanners (VerantId6S) do not support UV/IR imaging
|
|
24
42
|
|
|
25
43
|
## [1.4.5-beta.5] - 2026-04-14
|
|
26
44
|
|
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
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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 ===
|
|
425
|
+
} else if (profile.frontUvImageType && imageType === profile.frontUvImageType) {
|
|
422
426
|
licenseFrontUvBase64 = imageData;
|
|
423
|
-
} else if (imageType ===
|
|
427
|
+
} else if (profile.backUvImageType && imageType === profile.backUvImageType) {
|
|
424
428
|
licenseBackUvBase64 = imageData;
|
|
425
|
-
} else if (imageType ===
|
|
429
|
+
} else if (profile.frontIrImageType && imageType === profile.frontIrImageType) {
|
|
426
430
|
licenseFrontIrBase64 = imageData;
|
|
427
|
-
} else if (imageType ===
|
|
431
|
+
} else if (profile.backIrImageType && imageType === profile.backIrImageType) {
|
|
428
432
|
licenseBackIrBase64 = imageData;
|
|
429
433
|
}
|
|
430
434
|
});
|
package/ScannerProfiles.js
CHANGED
|
@@ -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
|
}>;
|