tango-app-api-trax 3.7.4-runai-airtelv2-11 → 3.7.5-halfshutter-2
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tango-app-api-trax",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.5-halfshutter-2",
|
|
4
4
|
"description": "Trax",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"mongodb": "^6.8.0",
|
|
28
28
|
"nodemon": "^3.1.4",
|
|
29
29
|
"path": "^0.12.7",
|
|
30
|
-
"tango-api-schema": "^2.
|
|
30
|
+
"tango-api-schema": "^2.4.4",
|
|
31
31
|
"tango-app-api-middleware": "^3.5.2",
|
|
32
32
|
"url": "^0.11.4",
|
|
33
33
|
"winston": "^3.13.1",
|
|
@@ -546,7 +546,12 @@ export const zoneList = async ( req, res ) => {
|
|
|
546
546
|
try {
|
|
547
547
|
let inputBody = req.query;
|
|
548
548
|
|
|
549
|
-
|
|
549
|
+
const allowedChecklists = [
|
|
550
|
+
'Outside Business Hours Queue Tracking',
|
|
551
|
+
'Store Half Shutter Detection',
|
|
552
|
+
];
|
|
553
|
+
|
|
554
|
+
if ( inputBody.checkListName && allowedChecklists.includes( inputBody.checkListName ) ) {
|
|
550
555
|
let query = [
|
|
551
556
|
{
|
|
552
557
|
$match: {
|
|
@@ -3945,7 +3950,7 @@ async function updateOpenSearch( user, data ) {
|
|
|
3945
3950
|
export const aiChecklist = async ( req, res ) => {
|
|
3946
3951
|
try {
|
|
3947
3952
|
let storeDetails = await storeService.count( { clientId: req.query.clientId, status: 'active' } );
|
|
3948
|
-
let aiList = [ 'mobileusagedetection', 'storeopenandclose', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'eyetest', 'remoteoptometrist', 'storehygienemonitoring', 'queuealert', 'cleaning', 'scrum', 'suspiciousactivity', 'boxalert', 'suspiciousfootfall', 'drinking', 'bagdetection', 'inventorycount', 'carsattended', 'numberplateinfo', 'vehicle_check_in', 'outsidebusinesshoursqueuetracking' ];
|
|
3953
|
+
let aiList = [ 'mobileusagedetection', 'storeopenandclose', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'eyetest', 'remoteoptometrist', 'storehygienemonitoring', 'queuealert', 'cleaning', 'scrum', 'suspiciousactivity', 'boxalert', 'suspiciousfootfall', 'drinking', 'bagdetection', 'inventorycount', 'carsattended', 'numberplateinfo', 'vehicle_check_in', 'outsidebusinesshoursqueuetracking', 'halfshutter' ];
|
|
3949
3954
|
let checklistDetails = [];
|
|
3950
3955
|
let publishList = [];
|
|
3951
3956
|
let unpublishList = [];
|
|
@@ -3958,7 +3963,7 @@ export const aiChecklist = async ( req, res ) => {
|
|
|
3958
3963
|
checklistDetails = [ ...publishList, ...unpublishList ];
|
|
3959
3964
|
|
|
3960
3965
|
checklistDetails.forEach( ( item ) => {
|
|
3961
|
-
if ( ![ 'mobileusagedetection', 'storeopenandclose', 'cleaning', 'scrum', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'outsidebusinesshoursqueuetracking' ].includes( item.checkListType ) ) {
|
|
3966
|
+
if ( ![ 'mobileusagedetection', 'storeopenandclose', 'cleaning', 'scrum', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'outsidebusinesshoursqueuetracking', 'halfshutter' ].includes( item.checkListType ) ) {
|
|
3962
3967
|
item.storeCount = storeDetails;
|
|
3963
3968
|
}
|
|
3964
3969
|
} );
|