tango-app-api-analysis-zone 3.0.0-alpha.12 → 3.0.0-alpha.13

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-zone",
3
- "version": "3.0.0-alpha.12",
3
+ "version": "3.0.0-alpha.13",
4
4
  "description": "zone Analysis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -135,27 +135,30 @@ export const zoneSummaryTable = async ( req, res ) => {
135
135
  return res.sendError( { error: 'Server Error' }, 500 );
136
136
  }
137
137
 
138
- let result = [
139
- {
140
- 'storeName': 'LKST400',
141
- 'date': '2024-01-01',
142
- 'storeId': '11-10',
143
- 'zoneName': 'zone-1',
144
- 'footfallCount': 400,
145
- 'bouncedCount': 40,
146
- 'engagersCount': 60,
147
- 'impressionRate': 70.5,
148
- 'avgDwellTime': 50,
149
- 'bellow12': 30,
150
- '13-19': 50,
151
- '20-30': 40,
152
- '31-45': 20,
153
- '46-59': 30,
154
- '60 above': 60,
155
- 'maleCount': 40,
156
- 'femaleCount': 50,
157
- },
158
- ];
138
+ let result = {
139
+ 'totalCount': 300,
140
+ 'zoneSummaryData': [
141
+ {
142
+ 'storeName': 'LKST400',
143
+ 'date': '2024-01-01',
144
+ 'storeId': '11-10',
145
+ 'zoneName': 'zone-1',
146
+ 'footfallCount': 400,
147
+ 'bouncedCount': 40,
148
+ 'engagersCount': 60,
149
+ 'impressionRate': 70.5,
150
+ 'avgDwellTime': 50,
151
+ 'bellow12': 30,
152
+ '13-19': 50,
153
+ '20-30': 40,
154
+ '31-45': 20,
155
+ '46-59': 30,
156
+ '60 above': 60,
157
+ 'maleCount': 40,
158
+ 'femaleCount': 50,
159
+ },
160
+ ],
161
+ };
159
162
  return res.sendSuccess( result );
160
163
  } catch ( error ) {
161
164
  logger.error( { error: error, message: req.query, function: 'zoneSummaryTable' } );
@@ -234,14 +237,42 @@ export const zoneConcentrationSummary = async ( req, res ) => {
234
237
  'zoneAvgDwellTime': 10,
235
238
  'storeAvgDwellTime': 65,
236
239
  },
237
- 'bellow-12': 30.0, // Rate
238
- '13-19': 50.0,
239
- '20-30': 40.0,
240
- '31-45': 20.0,
241
- '46-59': 30.0,
242
- '60-above': 60.0,
243
- 'maleRate': 40.0,
244
- 'femaleRate': 50.0,
240
+ 'ageAnalysis': [
241
+ {
242
+ 'category': 'Below 12',
243
+ 'value': 1,
244
+ },
245
+ {
246
+ 'category': 'Age 13-19',
247
+ 'value': 1,
248
+ },
249
+ {
250
+ 'category': 'Age 20-30',
251
+ 'value': 39,
252
+ },
253
+ {
254
+ 'category': 'Age 31-45',
255
+ 'value': 40,
256
+ },
257
+ {
258
+ 'category': 'Age 46-59',
259
+ 'value': 10,
260
+ },
261
+ {
262
+ 'category': 'Above 60',
263
+ 'value': 8,
264
+ },
265
+ ],
266
+ 'genderAnalysis': [
267
+ {
268
+ 'category': 'Male',
269
+ 'value': 50,
270
+ },
271
+ {
272
+ 'category': 'Female',
273
+ 'value': 50,
274
+ },
275
+ ],
245
276
  },
246
277
  ];
247
278
  return res.sendSuccess( result );
@@ -303,12 +334,20 @@ export const overallStoreConcentrationHeatmap = async ( req, res ) => {
303
334
  'overallStoreConcentrationData': {
304
335
  'ImageURLs': [
305
336
  {
306
- 'streamName': 'ABC',
307
- 'URL': 'DEFGHI',
337
+ 'streamName': 'cam1',
338
+ 'URL': 'https://devtangoretail-api.tangoeye.ai/heatmapimg1.jpeg',
339
+ },
340
+ {
341
+ 'streamName': 'cam2',
342
+ 'URL': 'https://devtangoretail-api.tangoeye.ai/heatmapimg2.jpeg',
343
+ },
344
+ {
345
+ 'streamName': 'cam3',
346
+ 'URL': 'https://devtangoretail-api.tangoeye.ai/heatmapimg3.jpeg',
308
347
  },
309
348
  {
310
- 'streamName': 'ABC-1',
311
- 'URL': 'DEFGHI-1',
349
+ 'streamName': 'cam4',
350
+ 'URL': 'https://devtangoretail-api.tangoeye.ai/heatmapimg4.jpeg',
312
351
  },
313
352
  ],
314
353
  },