verant_id_cloud_scan 1.4.5-beta.3 → 1.4.5-beta.4

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/Api.js CHANGED
@@ -40,7 +40,7 @@ const licenseServerAddress = env === 'staging'
40
40
  : "https://lic.verantid.com/api/v1";
41
41
 
42
42
  const dmvServerAddress = env === 'staging'
43
- ? "https://dmv-staging.verantid.com/api/v1/dmv_check"
43
+ ? "https://dmv-check-server-staging-fcaab48bec21.herokuapp.com/api/v1/dmv_check"
44
44
  : "https://dmv.verantid.com/api/v1/dmv_check";
45
45
 
46
46
  export const dmvCheck = async (clientId, scannerType, licenseData) => {
package/CloudScan.js CHANGED
@@ -175,7 +175,7 @@ export const scanId = async (
175
175
  console.log('[AUTO-DMV] Feature enabled, showing verification modal');
176
176
 
177
177
  // Determine scanner type - you can customize this based on your needs
178
- const scannerType = 'DigitalCheck'; // Default scanner type
178
+ const scannerType = scannerResponseObj.scannerProfile || 'DigitalCheck'; // Default scanner type
179
179
 
180
180
  // Create and open the modal
181
181
  const modal = new VerificationModal(clientId, scannerType, barcodeResultsObject, {
package/index.d.ts CHANGED
@@ -52,7 +52,15 @@ declare module "verant_id_cloud_scan" {
52
52
  export function localScanId(
53
53
  scannerAddress: string,
54
54
  clientId: string,
55
- ): Promise<boolean>;
55
+ ): Promise<
56
+ | boolean
57
+ | {
58
+ barcodeResultsObject: any;
59
+ licenseFrontBase64: string;
60
+ licenseBackBase64: string;
61
+ errorMessages: string;
62
+ }
63
+ >;
56
64
 
57
65
  export function localContinueScanId(
58
66
  scannerAddress: string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verant_id_cloud_scan",
3
- "version": "1.4.5-beta.3",
3
+ "version": "1.4.5-beta.4",
4
4
  "description": "Verant ID Cloud Scan NPM Library",
5
5
  "main": "CloudScan.js",
6
6
  "types": "index.d.ts",