tango-app-api-trax 3.7.44 → 3.7.45

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.7.44",
3
+ "version": "3.7.45",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -608,7 +608,7 @@ export const flagCardsV1 = async ( req, res ) => {
608
608
  {
609
609
  client_id: clientId,
610
610
  publish: true,
611
- checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering' ] },
611
+ checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert' ] },
612
612
  },
613
613
  { checkListType: 1 },
614
614
  );
@@ -620,6 +620,7 @@ export const flagCardsV1 = async ( req, res ) => {
620
620
  const detectionPayload = { fromDate, toDate, storeId, clientId };
621
621
  const lambdaURL = 'https://f65azvtljclaxp6l7rnx65cdmm0lcgvp.lambda-url.ap-south-1.on.aws/';
622
622
  const resultData = await LamdaServiceCall( lambdaURL, detectionPayload );
623
+ console.log( '🚀 ~ flagCardsV1 ~ resultData:', resultData );
623
624
 
624
625
  const published = publishedAiChecklists.map( ( val ) => val?.checkListType );
625
626
 
@@ -2740,7 +2741,7 @@ export const checklistDropdownV1 = async ( req, res ) => {
2740
2741
  $or: [
2741
2742
  { questionFlag: { $gte: 1 } },
2742
2743
  { timeFlag: { $gte: 1 } },
2743
- { checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering' ] } },
2744
+ { checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert' ] } },
2744
2745
  {
2745
2746
  runAIQuestionCount: { $gte: 1 },
2746
2747
  },
@@ -2942,7 +2943,7 @@ export const flagComparisonCardsV2 = async ( req, res ) => {
2942
2943
  {
2943
2944
  client_id: requestData.clientId,
2944
2945
  publish: true,
2945
- checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering' ] },
2946
+ checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert' ] },
2946
2947
  },
2947
2948
  { checkListType: 1 },
2948
2949
  );
@@ -3044,7 +3045,7 @@ export const flagTablesV2 = async ( req, res ) => {
3044
3045
  }
3045
3046
 
3046
3047
  if ( requestData?.filter === 'all' ) {
3047
- findAndQuery.push( { $or: [ { checkListType: { $in: [ 'custom', 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering' ] } } ] } );
3048
+ findAndQuery.push( { $or: [ { checkListType: { $in: [ 'custom', 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert' ] } } ] } );
3048
3049
  } else if ( requestData?.filter === 'question' ) {
3049
3050
  findAndQuery.push( { checkListType: 'custom' } );
3050
3051
  findAndQuery.push( { questionFlag: { $gte: 1 } } );
@@ -3052,7 +3053,7 @@ export const flagTablesV2 = async ( req, res ) => {
3052
3053
  findAndQuery.push( { checkListType: 'custom' } );
3053
3054
  findAndQuery.push( { timeFlag: { $gte: 1 } } );
3054
3055
  } else if ( requestData?.filter === 'detection' ) {
3055
- findAndQuery.push( { checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering' ] } } );
3056
+ findAndQuery.push( { checkListType: { $in: [ 'customerunattended', 'mobileusagedetection', 'staffleftinthemiddle', 'storeopenandclose', 'uniformdetection', 'cleaning', 'scrum', 'outsidebusinesshoursqueuetracking', 'halfshutter', 'tvcompliance', 'cameratampering', 'queuealert' ] } } );
3056
3057
  } else if ( requestData?.filter === 'runAI' ) {
3057
3058
  if ( req.body.runAIChecklistName ) {
3058
3059
  findAndQuery.push( { checkListName: { $in: req.body.runAIChecklistName } } );