tango-app-api-analysis-zone 3.0.0-alpha.35 → 3.0.0-alpha.37
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
|
@@ -294,19 +294,17 @@ export const zoneInteractionTable430 = async ( req, res ) => {
|
|
|
294
294
|
if ( resultData ) {
|
|
295
295
|
if ( resultData.status_code == '200' ) {
|
|
296
296
|
if ( reqestData.export ) {
|
|
297
|
-
if ( resultData.
|
|
297
|
+
if ( resultData.data.length>0 ) {
|
|
298
298
|
const exportdata = [];
|
|
299
|
-
resultData.
|
|
299
|
+
resultData.data.forEach( ( element ) => {
|
|
300
300
|
exportdata.push( {
|
|
301
|
-
'
|
|
302
|
-
'
|
|
303
|
-
'
|
|
304
|
-
'
|
|
305
|
-
'
|
|
306
|
-
'
|
|
307
|
-
'
|
|
308
|
-
'Footfall Overamin InZone': element.footfall_overamin_inzone,
|
|
309
|
-
'Footfall': element.footfall,
|
|
301
|
+
'Passer By': element.passer_by || '--',
|
|
302
|
+
'Footfall': element.footfall || '--',
|
|
303
|
+
'Drop In Rate': element.drop_in_rate +'%',
|
|
304
|
+
'Customer Attended ': element.customer_attended || '--',
|
|
305
|
+
'Interation Rate ': element.interaction_rate +'%',
|
|
306
|
+
'Billing Conversion': element.footfall_overamin_inzone || '--',
|
|
307
|
+
'Billing Conversion Rate': element.billing_conversion_rate +'%',
|
|
310
308
|
} );
|
|
311
309
|
} );
|
|
312
310
|
return await download( exportdata, res );
|
|
@@ -334,17 +332,18 @@ export const zoneInteractionTable459 = async ( req, res ) => {
|
|
|
334
332
|
if ( resultData ) {
|
|
335
333
|
if ( resultData.status_code == '200' ) {
|
|
336
334
|
if ( reqestData.export ) {
|
|
337
|
-
if ( resultData.
|
|
335
|
+
if ( resultData.data.length>0 ) {
|
|
338
336
|
const exportdata = [];
|
|
339
|
-
resultData.
|
|
337
|
+
resultData.data.forEach( ( element ) => {
|
|
340
338
|
exportdata.push( {
|
|
341
|
-
'Store Id': element.store_id,
|
|
342
|
-
'
|
|
343
|
-
'
|
|
344
|
-
'
|
|
345
|
-
'
|
|
346
|
-
'
|
|
347
|
-
'
|
|
339
|
+
'Store Id': element.store_id || '--',
|
|
340
|
+
'Date': element.date || '--',
|
|
341
|
+
'Zone Name': element.zone_name || '--',
|
|
342
|
+
'Hour': element.hour || '--',
|
|
343
|
+
'Footfall': element.Footfall || '--',
|
|
344
|
+
'Avg Time Spent': element.avg_time_spent || '--',
|
|
345
|
+
'Min Time Spent': element.min_time_spent || '--',
|
|
346
|
+
'Max Time Spent': element.max_time_spent || '--',
|
|
348
347
|
} );
|
|
349
348
|
} );
|
|
350
349
|
return await download( exportdata, res );
|