tango-app-api-audit 3.5.7 → 3.5.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/package.json
CHANGED
|
@@ -229,6 +229,7 @@ export async function getList( req, res ) {
|
|
|
229
229
|
'Queue ID': element?._source?.queueId,
|
|
230
230
|
'Compliance Score': element?._source?.totalSteps>0 ? Math.round( ( element?._source?.coveredStepsAI/ element?._source?.totalSteps )*100 ): 0,
|
|
231
231
|
'Steps Covered By AI': element?._source?.coveredStepsAI || 0,
|
|
232
|
+
'trustScore': element?._source?.trustScore || 0,
|
|
232
233
|
'Visitor Type': element?._source?.visitorsType,
|
|
233
234
|
'Test Duration': duration || '',
|
|
234
235
|
'Audit Status': element?._source?.auditStatus || '',
|
|
@@ -242,8 +243,9 @@ export async function getList( req, res ) {
|
|
|
242
243
|
'Store ID': element?._source?.storeId || 'Un Assigned',
|
|
243
244
|
'Store Name': element?._source?.storeName ||'Un Assigned',
|
|
244
245
|
'Engagement ID': element?._source?.engagementId,
|
|
245
|
-
'Compliance Score': element?._source?.
|
|
246
|
+
'Compliance Score': element?._source?.totalSteps>0 ? Math.round( ( element?._source?.coveredStepsAI/ element?._source?.totalSteps )*100 ): 0,
|
|
246
247
|
'Steps Covered By AI': element?._source?.coveredStepsAI || 0,
|
|
248
|
+
'trustScore': element?._source?.trustScore ||0,
|
|
247
249
|
'Test Duration': duration || '',
|
|
248
250
|
'Audit Status': element?._source?.auditStatus || '',
|
|
249
251
|
'Audited By': userName?.userName || '',
|
|
@@ -1592,6 +1592,7 @@ export async function saveBinary( req, res ) {
|
|
|
1592
1592
|
formData.append( 'question', `Please upload the QR image pasted in this clinic-${req.userAudit?.streamName}` );
|
|
1593
1593
|
formData.append( 'scheduleDate', formattedDate );
|
|
1594
1594
|
formData.append( 'scheduleEndTime', '11:00 PM' );
|
|
1595
|
+
formData.append( 'streamId', req.userAudit?.streamName );
|
|
1595
1596
|
|
|
1596
1597
|
formData.append( 'referenceImage', img.Body );
|
|
1597
1598
|
const response = await axios.post( `${url.apiDomain}/v3/task/eyeTesttask`, formData, { headers: {
|