tango-app-api-infra 3.9.14 → 3.9.16

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-infra",
3
- "version": "3.9.14",
3
+ "version": "3.9.16",
4
4
  "description": "infra",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -4935,6 +4935,11 @@ export async function sendSqsMessage( inputData, tempId, getStoreType, storeId )
4935
4935
  process_type: 'live',
4936
4936
  revop_type: 'footfall',
4937
4937
  temp_id: tempId,
4938
+ tempId1: inputData?.log?.temp1 || '',
4939
+ tempIds: inputData?.log?.tempIds || '',
4940
+ mapping: JSON.stringify( inputData?.log?.mapping ) || '',
4941
+ managerEyeZoneHit: inputData?.log?.managerEyeZoneHit || '',
4942
+ managerEyeZoneQuery: inputData?.log?.managerEyeZoneQuery || '',
4938
4943
  time: Date.now(),
4939
4944
  createdAt: new Date(),
4940
4945
  createIST: dayjs().tz( 'Asia/Kolkata' ).format( 'YYYY-MM-DD' ),
@@ -6200,6 +6205,16 @@ export async function multiCloseTicket( req, res ) {
6200
6205
 
6201
6206
  // Find tempIds that exist in both revopInfo results and manager mapping
6202
6207
  const temp = [];
6208
+ const temp1 = [];
6209
+ tempIds.filter( ( tid ) => mapping[tid] !== null ? temp1.push( { temp: mapping[tid], managerEye: tid } ) : '' );
6210
+
6211
+ inputData.log = {
6212
+ managerEyeZoneHit: managerEyeZoneHit || '',
6213
+ mapping: mapping || '',
6214
+ tempIds: tempIds || '',
6215
+ temp1: temp1 || '',
6216
+ managerEyeZoneQuery: managerEyeZoneQuery|| '',
6217
+ };
6203
6218
  tempIds.filter( ( tid ) => mapping[tid] !== null ? temp.push( { tempId: mapping[tid] } ) : '' );
6204
6219
  const isSendMessge = await sendSqsMessage( ticket, temp, getStoreType, storeId );
6205
6220
  if ( isSendMessge == true ) {
@@ -773,6 +773,13 @@ export async function ticketCreation( req, res, next ) {
773
773
  },
774
774
  },
775
775
  ],
776
+ must_not: [
777
+ {
778
+ term: {
779
+ 'revopsType.keyword': 'non-tagging',
780
+ },
781
+ },
782
+ ],
776
783
  },
777
784
  },
778
785
  _source: [ 'tempId' ],
@@ -824,6 +831,16 @@ export async function ticketCreation( req, res, next ) {
824
831
 
825
832
  // Find tempIds that exist in both revopInfo results and manager mapping
826
833
  const temp = [];
834
+ const temp1 = [];
835
+ tempIds.filter( ( tid ) => mapping[tid] !== null ? temp1.push( { temp: mapping[tid], managerEye: tid } ) : '' );
836
+
837
+ inputData.log = {
838
+ managerEyeZoneHit: managerEyeZoneHit || '',
839
+ mapping: mapping || '',
840
+ tempIds: tempIds || '',
841
+ temp1: temp1 || '',
842
+ managerEyeZoneQuery: managerEyeZoneQuery|| '',
843
+ };
827
844
  tempIds.filter( ( tid ) => mapping[tid] !== null ? temp.push( { tempId: mapping[tid] } ) : '' );
828
845
  const isSendMessge = await sendSqsMessage( inputData, temp, getStoreType, inputData.storeId );
829
846
  if ( isSendMessge == true ) {
@@ -1821,6 +1838,16 @@ export async function ticketReview( req, res, next ) {
1821
1838
 
1822
1839
  // Find tempIds that exist in both revopInfo results and manager mapping
1823
1840
  const temp = [];
1841
+ const temp1 = [];
1842
+ tempIds.filter( ( tid ) => mapping[tid] !== null ? temp1.push( { temp: mapping[tid], managerEye: tid } ) : '' );
1843
+
1844
+ inputData.log = {
1845
+ managerEyeZoneHit: managerEyeZoneHit || '',
1846
+ mapping: mapping || '',
1847
+ tempIds: tempIds || '',
1848
+ temp1: temp1 || '',
1849
+ managerEyeZoneQuery: managerEyeZoneQuery|| '',
1850
+ };
1824
1851
  tempIds.filter( ( tid ) => mapping[tid] !== null ? temp.push( { tempId: mapping[tid] } ) : '' );
1825
1852
  const isSendMessge = await sendSqsMessage( inputData, temp, getStoreType, inputData.storeId );
1826
1853
  if ( isSendMessge == true ) {
@@ -2609,6 +2636,16 @@ export async function ticketApprove( req, res, next ) {
2609
2636
 
2610
2637
  // Find tempIds that exist in both revopInfo results and manager mapping
2611
2638
  const temp = [];
2639
+ const temp1 = [];
2640
+ tempIds.filter( ( tid ) => mapping[tid] !== null ? temp1.push( { temp: mapping[tid], managerEye: tid } ) : '' );
2641
+
2642
+ inputData.log = {
2643
+ managerEyeZoneHit: managerEyeZoneHit || '',
2644
+ mapping: mapping || '',
2645
+ tempIds: tempIds || '',
2646
+ temp1: temp1 || '',
2647
+ managerEyeZoneQuery: managerEyeZoneQuery|| '',
2648
+ };
2612
2649
  tempIds.filter( ( tid ) => mapping[tid] !== null ? temp.push( { tempId: mapping[tid] } ) : '' );
2613
2650
  const isSendMessge = await sendSqsMessage( inputData, temp, getStoreType, inputData.storeId );
2614
2651
  if ( isSendMessge == true ) {