tango-app-api-analysis-zone 3.0.0-alpha.42 → 3.0.0-alpha.43
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
|
@@ -256,6 +256,7 @@ export const zoneHeatmapDatasV1 = async ( req, res ) => {
|
|
|
256
256
|
export const zoneSegmentationV1 = async ( req, res ) => {
|
|
257
257
|
try {
|
|
258
258
|
let reqestData = req.body;
|
|
259
|
+
let clientId = reqestData.clientId;
|
|
259
260
|
let LamdaURL = 'https://7ijmuxyqsv7rdz6pkz6fhk6ka40cipbh.lambda-url.ap-south-1.on.aws/';
|
|
260
261
|
let resultData = await LamdaServiceCall( LamdaURL, reqestData );
|
|
261
262
|
if ( resultData ) {
|
|
@@ -264,10 +265,14 @@ export const zoneSegmentationV1 = async ( req, res ) => {
|
|
|
264
265
|
if ( resultData.segmentationAnalysis.length>0 ) {
|
|
265
266
|
const exportdata = [];
|
|
266
267
|
resultData.segmentationAnalysis.forEach( ( element ) => {
|
|
267
|
-
|
|
268
|
+
const exportItem = {
|
|
268
269
|
'Entrance': element.category,
|
|
269
270
|
'Entrance wise footfall': element.value,
|
|
270
|
-
}
|
|
271
|
+
};
|
|
272
|
+
if ( clientId === '463' ) {
|
|
273
|
+
exportItem['Concentration Rate'] = element?.concentrationRate ? element?.concentrationRate + '%' : '--';
|
|
274
|
+
}
|
|
275
|
+
exportdata.push( exportItem );
|
|
271
276
|
} );
|
|
272
277
|
return await download( exportdata, res );
|
|
273
278
|
} else {
|