tango-app-api-infra 3.1.34 → 3.1.35-alpha.0

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.1.34",
3
+ "version": "3.1.35-alpha.0",
4
4
  "description": "infra",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1309,7 +1309,7 @@ export async function infraTable( req, res ) {
1309
1309
  'Store ID': element.storeId,
1310
1310
  'Resloved By': element.userName,
1311
1311
  'Status': element.status,
1312
- 'Primary Issues': element.primaryIssue,
1312
+ 'Primary Issues': element.primaryIssue=='-'?'Issue not identified':element.primaryIssue,
1313
1313
  'Secondary Issues': element.secondaryIssue,
1314
1314
  'Comment': element.otherscomment ? element.otherscomment : ( element.commentText?element.commentText:'-' ),
1315
1315
  } );
@@ -1322,7 +1322,7 @@ export async function infraTable( req, res ) {
1322
1322
  'Store Name': element.storeName,
1323
1323
  'Store ID': element.storeId,
1324
1324
  'Status': element.status,
1325
- 'Primary Issues': element.primaryIssue,
1325
+ 'Primary Issues': element.primaryIssue=='-'?'Issue not identified':element.primaryIssue,
1326
1326
  'Secondary Issues': element.secondaryIssue,
1327
1327
  'Comment': element.otherscomment ? element.otherscomment : ( element.commentText?element.commentText:'-' ),
1328
1328
  } );
@@ -1956,6 +1956,7 @@ export async function dataMismatchTable( req, res ) {
1956
1956
  clientId: '$basicDetails.clientId',
1957
1957
  storeName: '$basicDetails.storeName',
1958
1958
  storeId: '$basicDetails.storeId',
1959
+ type: '$dataMismatch.showToClient',
1959
1960
  userId: { $ifNull: [ '$ticketDetails.addressingUser', '$$REMOVE' ] },
1960
1961
  issueType: 1,
1961
1962
  status: 1,
@@ -2016,6 +2017,7 @@ export async function dataMismatchTable( req, res ) {
2016
2017
  userInfo: { $first: '$userInfo' },
2017
2018
  issueType: { $first: '$issueType' },
2018
2019
  status: { $first: '$status' },
2020
+ type: { $first: '$type' },
2019
2021
  otherscomment: { $last: '$otherscomment.comment' },
2020
2022
  },
2021
2023
  },
@@ -2030,7 +2032,7 @@ export async function dataMismatchTable( req, res ) {
2030
2032
  storeId: 1,
2031
2033
  userName: { $ifNull: [ '$userInfo.userName', '' ] },
2032
2034
  email: { $ifNull: [ '$userInfo.email', '' ] },
2033
- type: { $ifNull: [ { $cond: [ { $eq: [ '$userInfo.userType', 'client' ] }, 'external', { $cond: [ { $eq: [ '$userInfo.userType', 'tango' ] }, 'internal', '' ] } ] }, '' ] },
2035
+ type: { $ifNull: [ { $cond: [ { $eq: [ '$type', false ] }, 'internal', { $cond: [ { $eq: [ '$type', true ] }, 'external', '' ] } ] }, '' ] },
2034
2036
  issueType: 1,
2035
2037
  status: 1,
2036
2038
  otherscomment: 1,