tango-app-api-trax 3.3.1-beta-77 → 3.3.1-beta-79

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.3.1-beta-77",
3
+ "version": "3.3.1-beta-79",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -304,7 +304,7 @@ async function insertData( requestData ) {
304
304
  },
305
305
  } );
306
306
  let getSections = await CLquestions.aggregate( sectionQuery );
307
- if ( getSections.length || [ 'storeopenandclose', 'mobileusagedetection', 'uniformdetection', 'customerunattended', 'staffleftinthemiddle', 'eyetest', 'remoteoptometrist', 'storehygienemonitoring' ].includes( getCLconfig.checkListType ) ) {
307
+ if ( getSections.length || [ 'storeopenandclose', 'mobileusagedetection', 'uniformdetection', 'customerunattended', 'staffleftinthemiddle', 'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum' ].includes( getCLconfig.checkListType ) ) {
308
308
  if ( getSections.length ) {
309
309
  for ( let element3 of getSections ) {
310
310
  let collectQuestions = {};
@@ -598,7 +598,7 @@ async function insertData( requestData ) {
598
598
  // }
599
599
  }
600
600
  } else {
601
- if ( [ 'storeopenandclose', 'mobileusagedetection', 'uniformdetection', 'customerunattended', 'staffleftinthemiddle', 'eyetest', 'remoteoptometrist', 'storehygienemonitoring' ].includes( getCLconfig.checkListType ) ) {
601
+ if ( [ 'storeopenandclose', 'mobileusagedetection', 'uniformdetection', 'customerunattended', 'staffleftinthemiddle', 'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum' ].includes( getCLconfig.checkListType ) ) {
602
602
  let storeDetails = await storeService.find( { clientId: getCLconfig.client_id, status: 'active' }, { storeId: 1 } );
603
603
  let data = {
604
604
  checkListId: updatedchecklist._id,
@@ -3421,7 +3421,7 @@ async function updateOpenSearch( user, data ) {
3421
3421
  export const aiChecklist = async ( req, res ) => {
3422
3422
  try {
3423
3423
  let storeDetails = await storeService.count( { clientId: req.query.clientId, status: 'active' } );
3424
- let aiList = [ 'mobileusagedetection', 'storeopenandclose', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'eyetest', 'remoteoptometrist', 'storehygienemonitoring' ];
3424
+ let aiList = [ 'mobileusagedetection', 'storeopenandclose', 'uniformdetection', 'staffleftinthemiddle', 'customerunattended', 'eyetest', 'remoteoptometrist', 'storehygienemonitoring','queuealert','cleaning','scrum' ];
3425
3425
  let checklistDetails = [];
3426
3426
  let publishList = [];
3427
3427
  let unpublishList = [];
@@ -1272,11 +1272,14 @@ export const checklistInfo = async ( req, res ) => {
1272
1272
  else: 0,
1273
1273
  },
1274
1274
  } },
1275
+ idList: { $push: '$_id' },
1275
1276
  },
1276
1277
  } );
1277
1278
 
1278
1279
  findQuery.push( {
1279
1280
  $project: {
1281
+ _id: 0,
1282
+ idList: 1,
1280
1283
  checkListName: 1,
1281
1284
  coverage: 1,
1282
1285
  createdByName: 1,
@@ -1302,6 +1305,7 @@ export const checklistInfo = async ( req, res ) => {
1302
1305
 
1303
1306
  findQuery.push( {
1304
1307
  $project: {
1308
+ idList: 1,
1305
1309
  checkListName: 1,
1306
1310
  coverage: 1,
1307
1311
  checkListChar: { $substr: [ '$checkListName', 0, 2 ] },