tango-app-api-audit 3.5.49 → 3.5.51
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/package.json
CHANGED
|
@@ -237,7 +237,7 @@ export async function getList( req, res ) {
|
|
|
237
237
|
'Store Name': element?._source?.storeName,
|
|
238
238
|
'Store ID': element?._source?.storeId || 'Un Assigned',
|
|
239
239
|
'Store Name': element?._source?.storeName ||'Un Assigned',
|
|
240
|
-
'
|
|
240
|
+
'Optom ID': element?._source?.optumId,
|
|
241
241
|
'Queue ID': element?._source?.queueId,
|
|
242
242
|
'Compliance Score': element?._source?.totalSteps>0 ? Math.round( ( element?._source?.coveredStepsAI/ element?._source?.totalSteps )*100 ): 0,
|
|
243
243
|
'Steps Covered By AI': element?._source?.coveredStepsAI || 0,
|
|
@@ -1466,7 +1466,7 @@ export async function summaryList( req, res ) {
|
|
|
1466
1466
|
} );
|
|
1467
1467
|
} else {
|
|
1468
1468
|
exportData.push( {
|
|
1469
|
-
'
|
|
1469
|
+
'Clusters Name': element?.clusterName,
|
|
1470
1470
|
'Stores Count': element?.storesCount,
|
|
1471
1471
|
'Total Tango AI Files': element.totalFiles,
|
|
1472
1472
|
'Trust Audit Completed': element.completedFiles,
|
|
@@ -1773,13 +1773,15 @@ export async function summaryList( req, res ) {
|
|
|
1773
1773
|
'Store Name': element?._source?.storeName,
|
|
1774
1774
|
'Store ID': element?._source?.storeId || 'Un Assigned',
|
|
1775
1775
|
'Store Name': element?._source?.storeName ||'Un Assigned',
|
|
1776
|
-
'
|
|
1776
|
+
'Optom ID': element?._source?.optumId,
|
|
1777
1777
|
'Queue ID': element?._source?.queueId,
|
|
1778
1778
|
'Tango Score': `${element?._source?.totalSteps>0 ? Math.round( ( element?._source?.coveredStepsAI/ element?._source?.totalSteps )*100 ): 0} %`,
|
|
1779
1779
|
'Steps Covered By AI': element?._source?.coveredStepsAI || 0,
|
|
1780
|
-
'Trust Score':
|
|
1780
|
+
'Trust Score': element?._source?.trustScore == null || element?._source?.trustScore ==undefined ? 'NA' : `${element?._source?.trustScore} %`,
|
|
1781
1781
|
'Visitor Type': element?._source?.visitorsType,
|
|
1782
1782
|
'Test Duration': duration || '',
|
|
1783
|
+
'Eye Test Status': element?._source?.comment == 'Possible Fake Video' ? 'Fake':'Genuine',
|
|
1784
|
+
'Comments ': element._source?.subComment || '',
|
|
1783
1785
|
'Audit Status': element?._source?.auditStatus || '',
|
|
1784
1786
|
'Audited By': userName?.userName || '',
|
|
1785
1787
|
|
|
@@ -1796,8 +1798,10 @@ export async function summaryList( req, res ) {
|
|
|
1796
1798
|
'Engagement ID': element?._source?.engagementId,
|
|
1797
1799
|
'Tango Score': `${element?._source?.totalSteps>0 ? Math.round( ( element?._source?.coveredStepsAI/ element?._source?.totalSteps )*100 ): 0} %`,
|
|
1798
1800
|
'Steps Covered By AI': element?._source?.coveredStepsAI || 0,
|
|
1799
|
-
'Trust Score': `${element?._source?.trustScore
|
|
1801
|
+
'Trust Score': element?._source?.trustScore == null || element?._source?.trustScore ==undefined ? 'NA' : `${element?._source?.trustScore} %`,
|
|
1800
1802
|
'Test Duration': duration || '',
|
|
1803
|
+
'Eye Test Status': element._source?.comment,
|
|
1804
|
+
'Comments ': element._source?.subComment || '',
|
|
1801
1805
|
'Audit Status': element?._source?.auditStatus || '',
|
|
1802
1806
|
'Audited By': userName?.userName || '',
|
|
1803
1807
|
|
|
@@ -2273,7 +2277,7 @@ export async function emailAlertLog( req, res ) {
|
|
|
2273
2277
|
exportData.push( {
|
|
2274
2278
|
'RM Email': element.RMEmail,
|
|
2275
2279
|
'Cluster Name': element.cluster,
|
|
2276
|
-
'
|
|
2280
|
+
'Optom Id': element.optumId,
|
|
2277
2281
|
'Store Name': element.storeName,
|
|
2278
2282
|
'Tango Score': element.complianceScore || 0,
|
|
2279
2283
|
'Trust Score': element.trustScore || 0,
|
|
@@ -2344,7 +2348,7 @@ export async function addUserConfig( req, res, next ) {
|
|
|
2344
2348
|
const updatedOne = await updateOneEyeTestConfig( query, record, { upsert: true } );
|
|
2345
2349
|
logger.info( { updatedOne: updatedOne } );
|
|
2346
2350
|
if ( updatedOne ) {
|
|
2347
|
-
return res.sendSuccess( '
|
|
2351
|
+
return res.sendSuccess( 'Audit users added successfully' );
|
|
2348
2352
|
} else {
|
|
2349
2353
|
return res.sendError( 'Added Failed' );
|
|
2350
2354
|
}
|
|
@@ -2371,7 +2375,7 @@ export async function updateUserConfig( req, res ) {
|
|
|
2371
2375
|
const updatedOne = await updateOneEyeTestConfig( query, record, { upsert: true } );
|
|
2372
2376
|
logger.info( { updatedOne: updatedOne } );
|
|
2373
2377
|
if ( updatedOne ) {
|
|
2374
|
-
return res.sendSuccess( '
|
|
2378
|
+
return res.sendSuccess( 'Audit users updated successfully' );
|
|
2375
2379
|
} else {
|
|
2376
2380
|
return res.sendError( 'updated Failed' );
|
|
2377
2381
|
}
|