tango-app-api-analysis-traffic 3.0.0-alpha.1 → 3.0.0-alpha.10

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-analysis-traffic",
3
- "version": "3.0.0-alpha.1",
3
+ "version": "3.0.0-alpha.10",
4
4
  "description": "Traffic Analysis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -14,6 +14,7 @@
14
14
  "license": "ISC",
15
15
  "dependencies": {
16
16
  "aws-sdk": "^2.1665.0",
17
+ "dayjs": "^1.11.13",
17
18
  "dotenv": "^16.4.5",
18
19
  "express": "^4.19.2",
19
20
  "handlebars": "^4.7.8",
@@ -1677,7 +1677,6 @@ export const footfallTrend = async ( req, res ) => {
1677
1677
  }
1678
1678
  };
1679
1679
 
1680
-
1681
1680
  export const storesMap = async ( req, res ) => {
1682
1681
  try {
1683
1682
  let reqestData = req.body;
@@ -1752,11 +1751,27 @@ export const performanceMatrix = async ( req, res ) => {
1752
1751
  }
1753
1752
 
1754
1753
  let result = {
1755
- 'downTime': 22,
1756
- 'health': 'GOOD',
1757
- 'recapVideoData': [
1758
- { 'thumbImage': 'https://123', 'videoURL': 'https://123' },
1759
- { 'thumbImage': 'https://123', 'videoURL': 'https://123' },
1754
+ 'performanceData': [
1755
+ {
1756
+ 'storeId': '11-1',
1757
+ 'storeName': 'Lositon',
1758
+ 'avgFootfall': 50,
1759
+ 'avgOpenTime': '10:31 AM',
1760
+ 'avgCloseTime': '10:31 PM',
1761
+ 'top': '40%',
1762
+ 'left': '45%',
1763
+ 'position': 'High_High',
1764
+ },
1765
+ {
1766
+ 'storeId': '11-2',
1767
+ 'storeName': 'Lositon-1',
1768
+ 'avgFootfall': 50,
1769
+ 'avgOpenTime': '10:31 AM',
1770
+ 'avgCloseTime': '10:31 PM',
1771
+ 'top': '40%',
1772
+ 'left': '45%',
1773
+ 'position': 'High_Low',
1774
+ },
1760
1775
  ],
1761
1776
  };
1762
1777
  return res.sendSuccess( result );