tango-app-api-trax 3.7.4-runai-airtelv2-1 → 3.7.4-runai-airtelv2-3

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.4-runai-airtelv2-1",
3
+ "version": "3.7.4-runai-airtelv2-3",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -28,7 +28,7 @@
28
28
  "nodemon": "^3.1.4",
29
29
  "path": "^0.12.7",
30
30
  "tango-api-schema": "^2.3.20",
31
- "tango-app-api-middleware": "^3.1.77",
31
+ "tango-app-api-middleware": "^3.5.2",
32
32
  "url": "^0.11.4",
33
33
  "winston": "^3.13.1",
34
34
  "winston-daily-rotate-file": "^5.0.0"
@@ -2535,6 +2535,18 @@ export const flagChecklistTableV1 = async ( req, res ) => {
2535
2535
  'Detections': element?.detections,
2536
2536
  } );
2537
2537
  } );
2538
+ } else if ( reqestData.ChecklistType==='storeopenandclose' ) {
2539
+ resultData[reqestData.ChecklistType + 'Data'].forEach( ( element ) => {
2540
+ exportdata.push( {
2541
+ 'Date': element?.date,
2542
+ 'Store Name': element?.storeName,
2543
+ 'Store Id': element?.storeId,
2544
+ 'Open Time': element?.openTime,
2545
+ 'Close Time': element?.closeTime,
2546
+ 'Detection Status': element?.detectionStatus,
2547
+ ...( element?.downtime !== undefined && { 'Downtime': element.downtime } ),
2548
+ } );
2549
+ } );
2538
2550
  } else {
2539
2551
  resultData[reqestData.ChecklistType + 'Data'].forEach( ( element ) => {
2540
2552
  exportdata.push( {
@@ -1,4 +1,4 @@
1
- import { fileUpload, chunkArray, logger, sendPushNotification, sendTeamsNotification, insertOpenSearchData } from 'tango-app-api-middleware';
1
+ import { compressedFileUpload, chunkArray, logger, sendPushNotification, sendTeamsNotification, insertOpenSearchData } from 'tango-app-api-middleware';
2
2
  import * as checklistService from '../services/checklist.service.js';
3
3
  import * as questionService from '../services/checklistQuestion.service.js';
4
4
  import * as assignedService from '../services/checklistAssign.service.js';
@@ -1188,7 +1188,8 @@ export const uploadImage = async ( req, res ) => {
1188
1188
  ContentType: req.files.file.mimetype,
1189
1189
  body: req.files.file.data,
1190
1190
  };
1191
- imgUrl = await fileUpload( params );
1191
+ // imgUrl = await fileUpload( params );
1192
+ imgUrl = await compressedFileUpload( params );
1192
1193
 
1193
1194
  // let inputData = {
1194
1195
  // Bucket: bucket.sop,