tango-app-api-analysis-traffic 3.8.5 → 3.8.7-vms.0

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.8.5",
3
+ "version": "3.8.7-vms.0",
4
4
  "description": "Traffic Analysis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -336,6 +336,7 @@ export async function tagTempId( req, res ) {
336
336
  clientId: inputData.storeId.split( '-' )[0],
337
337
  storeId: inputData.storeId,
338
338
  tempId: inputData.tempId,
339
+ id: `${inputData?.storeId}_${inputData?.dateString}_${inputData?.tempId}`,
339
340
  dateString: inputData.dateString,
340
341
  timeRange: inputData.timeRange,
341
342
  processType: inputData.processType,
@@ -348,6 +349,14 @@ export async function tagTempId( req, res ) {
348
349
  isChecked: inputData.isChecked,
349
350
  duplicateImage: inputData?.duplicateImage?.length>0? inputData?.duplicateImage :[],
350
351
  type: 'tagging-reflect',
352
+ ticketStatus: 'submitted',
353
+ isParent: inputData?.revopsType === 'duplicate'? true : false,
354
+ actions: [
355
+ {
356
+ actionType: 'tagging',
357
+ action: 'submitted',
358
+ },
359
+ ],
351
360
  createdAt: new Date(),
352
361
  updatedAt: new Date(),
353
362
 
@@ -386,6 +395,7 @@ export async function tagTempId( req, res ) {
386
395
  clientId: inputData.storeId.split( '-' )[0],
387
396
  storeId: inputData.storeId,
388
397
  tempId: item.tempId,
398
+ id: `${inputData?.storeId}_${inputData?.dateString}_${inputData?.tempId}`,
389
399
  dateString: inputData.dateString,
390
400
  timeRange: item.timeRange,
391
401
  isChecked: item.isChecked,
@@ -397,7 +407,15 @@ export async function tagTempId( req, res ) {
397
407
  status: item?.revopsType == 'non-tagging' ?'':'submitted',
398
408
  description: '',
399
409
  duplicateImage: [],
410
+ isParent: false,
400
411
  type: 'tagging-reflect',
412
+ ticketStatus: 'submitted',
413
+ actions: [
414
+ {
415
+ actionType: 'tagging',
416
+ action: 'submitted',
417
+ },
418
+ ],
401
419
  createdAt: new Date(),
402
420
  updatedAt: new Date(),
403
421
 
@@ -1466,6 +1466,7 @@ export const summaryTableV3 = async ( req, res ) => {
1466
1466
  storeName: item.storeName,
1467
1467
  storeId: item.storeId,
1468
1468
  footfallCount: item.footfallCount,
1469
+ storeCode: item.storeCode,
1469
1470
  ...( req.body.storeId.length ==1 )? { date: dayjs( item['date'] ).format( 'MMM DD,YYYY' ) } : {},
1470
1471
  avgInfraDowntime: item.avgInfraDowntime,
1471
1472
  } );