tango-app-api-trax 3.9.61 → 3.9.63

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-trax",
3
- "version": "3.9.61",
3
+ "version": "3.9.63",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -30,7 +30,7 @@
30
30
  "path": "^0.12.7",
31
31
  "puppeteer": "^24.39.1",
32
32
  "swagger-ui-express": "^5.0.1",
33
- "tango-api-schema": "^2.6.30",
33
+ "tango-api-schema": "^2.6.42",
34
34
  "tango-app-api-middleware": "^3.6.19",
35
35
  "url": "^0.11.4",
36
36
  "winston": "^3.13.1",
@@ -1623,8 +1623,7 @@ export const flagChecklistTableV1 = async ( req, res ) => {
1623
1623
  'Detections': element?.detections,
1624
1624
  ...( reqestData.ChecklistType != 'activitymonitoring' && { 'Detection Status': element?.detectionStatus } ),
1625
1625
  ...( element?.detectionType !== undefined && { 'Detection Type': element.detectionType } ),
1626
- ...( element?.downtime !== undefined && { 'Downtime': element.downtime } ),
1627
- ...( element?.downtime !== undefined && { 'Downtime': element.downtime } ),
1626
+ ...( ( element?.downtime !== undefined && ![ 'queuealert', 'employeemonitoring', 'staffgrouping', 'boxalert' ].includes( reqestData.ChecklistType ) ) ) ? { 'Downtime': element.downtime } : {},
1628
1627
  ...( element?.footfall !== undefined && { 'Footfall': element.footfall } ),
1629
1628
  } );
1630
1629
  } );
@@ -1863,6 +1862,7 @@ export const checklistDropdownV1 = async ( req, res ) => {
1863
1862
  scheduleRepeatedType: 1,
1864
1863
  scheduleStartTime: 1,
1865
1864
  sourceCheckList_id: '$_id',
1865
+ aiConfig: 1,
1866
1866
  },
1867
1867
  },
1868
1868
  ], as: 'checklistData',
@@ -1880,6 +1880,7 @@ export const checklistDropdownV1 = async ( req, res ) => {
1880
1880
  scheduleEndTime: '$checklistData.scheduleEndTime',
1881
1881
  scheduleRepeatedType: '$checklistData.scheduleRepeatedType',
1882
1882
  scheduleStartTime: '$checklistData.scheduleStartTime',
1883
+ aiConfig: '$checklistData.aiConfig',
1883
1884
  sourceCheckList_id: '$checklistData._id',
1884
1885
  coverage: 1,
1885
1886
  aiStoreList: 1,
@@ -2002,7 +2003,7 @@ export const flagComparisonCardsV2 = async ( req, res ) => {
2002
2003
  const getDetectionCount = async ( fromDate, toDate ) => {
2003
2004
  const detectionPayload = {
2004
2005
  fromDate: dayjs( fromDate ).format( 'YYYY-MM-DD' ),
2005
- toDate: dayjs( toDate ).startOf( 'day' ).format( 'YYYY-MM-DD' ),
2006
+ toDate: dayjs.utc( toDate ).startOf( 'day' ).format( 'YYYY-MM-DD' ),
2006
2007
  storeId: requestData.storeId,
2007
2008
  clientId: requestData.clientId,
2008
2009
  };
@@ -622,14 +622,13 @@ export const zoneList = async ( req, res ) => {
622
622
  'Customer Unattended',
623
623
  'Store Huddle Adherence Checklist',
624
624
  'Activity Monitoring',
625
+ 'Retail Shelf Monitoring & Alert Checklist',
625
626
  ];
626
627
  const allowedChecklistsStreams = [
627
628
  'Camera Angle Change Compliance',
628
629
  ];
629
- console.log( allowedChecklists.includes( inputBody.checkListName ) );
630
630
 
631
631
  if ( inputBody.checkListName && allowedChecklists.includes( inputBody.checkListName ) ) {
632
- console.log( '==================' );
633
632
  let query = [
634
633
  {
635
634
  $match: {