tango-app-api-analysis-traffic 3.8.16 → 3.8.18
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,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tango-app-api-analysis-traffic",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.18",
|
|
4
4
|
"description": "Traffic Analysis",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"start": "nodemon --exec \"eslint --fix . && node
|
|
8
|
+
"start": "nodemon --exec \"eslint --fix . && node index.js\""
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=18.10.0"
|
|
@@ -1433,7 +1433,18 @@ export const summaryTableV3 = async ( req, res ) => {
|
|
|
1433
1433
|
if ( !getClientData ) {
|
|
1434
1434
|
return res.sendError( 'Invalid Client Id', 400 );
|
|
1435
1435
|
}
|
|
1436
|
-
|
|
1436
|
+
// Footfall-only view defaults to the client-level config. Store 455-26
|
|
1437
|
+
// (client 455) is an exception: when it is the only selected store it must
|
|
1438
|
+
// show the full columns, so force the footfall-only view off for it.
|
|
1439
|
+
let isFootfallView = getClientData?.featureConfigs?.isFootfallView;
|
|
1440
|
+
if (
|
|
1441
|
+
reqestData.clientId === '455' &&
|
|
1442
|
+
Array.isArray( reqestData.storeId ) &&
|
|
1443
|
+
reqestData.storeId.length === 1 &&
|
|
1444
|
+
reqestData.storeId[0] === '455-26'
|
|
1445
|
+
) {
|
|
1446
|
+
isFootfallView = false;
|
|
1447
|
+
}
|
|
1437
1448
|
reqestData.featureConfigs = getClientData.featureConfigs;
|
|
1438
1449
|
let LamdaURL = 'https://ewen2vlmxmhieea4elztlbjuey0ddqee.lambda-url.ap-south-1.on.aws/';
|
|
1439
1450
|
let resultData;
|
|
@@ -1581,7 +1592,7 @@ export const summaryTableV3 = async ( req, res ) => {
|
|
|
1581
1592
|
return res.sendError( 'No Content', 204 );
|
|
1582
1593
|
}
|
|
1583
1594
|
} else {
|
|
1584
|
-
return res.sendSuccess( resultData );
|
|
1595
|
+
return res.sendSuccess( { ...resultData, isFootfallView } );
|
|
1585
1596
|
}
|
|
1586
1597
|
} else {
|
|
1587
1598
|
return res.sendError( 'No Content', 204 );
|