tango-app-api-analysis-traffic 3.8.1-alpha.13 → 3.8.1-alpha.15

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.1-alpha.13",
3
+ "version": "3.8.1-alpha.15",
4
4
  "description": "Traffic Analysis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -74,6 +74,7 @@ export async function revoptagging( req, res ) {
74
74
  } else {
75
75
  item.createdAt = new Date();
76
76
  item.updatedAt = new Date();
77
+ item.type='tagging';
77
78
  await insertOpenSearchData( openSearch.revops, item );
78
79
  }
79
80
  }
@@ -338,6 +339,7 @@ export async function tagTempId( req, res ) {
338
339
  description: '',
339
340
  isChecked: inputData.isChecked,
340
341
  duplicateImage: inputData?.duplicateImage?.length>0? inputData?.duplicateImage :[],
342
+ type: 'tagging-reflect',
341
343
  createdAt: new Date(),
342
344
  updatedAt: new Date(),
343
345
 
@@ -361,6 +363,7 @@ export async function tagTempId( req, res ) {
361
363
  ctx._source.storeId = params.storeId;
362
364
  ctx._source.tempId = params.tempId;
363
365
  ctx._source.dateString = params.dateString;
366
+ ctx._source.type = params.processType;
364
367
  ctx._source.processType = params.processType;
365
368
  }
366
369
  `,
@@ -79,7 +79,7 @@ export async function mappingConfig( req, res, next ) {
79
79
 
80
80
  const getData = await getOpenSearchCount( openSearch.revop, getQuery );
81
81
  if ( getData && getData?.body?.count >= 2 ) {
82
- return res.sendError( 'maximum limit reached of 2 employees', 400 );
82
+ return res.sendError( 'Select up to 2 items only', 400 );
83
83
  } else {
84
84
  next();
85
85
  }
@@ -109,7 +109,7 @@ export async function mappingConfig( req, res, next ) {
109
109
  };
110
110
  const getData = await getOpenSearchCount( openSearch.revop, getQuery );
111
111
  if ( getData && getData?.body?.count >= 1 ) {
112
- return res.sendError( 'maximum limit reached of 1 house keeping', 400 );
112
+ return res.sendError( 'Select up to 1 items only', 400 );
113
113
  } else {
114
114
  next();
115
115
  }