tango-app-api-task 3.7.11 → 3.7.13
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,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tango-app-api-task",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.13",
|
|
4
4
|
"description": "Task",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"start": "nodemon --exec \"eslint --fix . && node
|
|
8
|
+
"start": "nodemon --exec \"eslint --fix . && node app.js\""
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=18.10.0"
|
|
@@ -2022,6 +2022,8 @@ export async function createChecklistTask( req, res ) {
|
|
|
2022
2022
|
userId: userDetailList._id,
|
|
2023
2023
|
assignId: response?.coverage == 'store' ? storeDetails?._id : userDetailList._id,
|
|
2024
2024
|
coverage: response?.coverage || 'store',
|
|
2025
|
+
country: storeDetails?.storeProfile?.country ? storeDetails?.storeProfile?.country : '',
|
|
2026
|
+
state: storeDetails?.storeProfile?.state ? storeDetails?.storeProfile?.state : '',
|
|
2025
2027
|
};
|
|
2026
2028
|
await taskAssignService.create( userDetails );
|
|
2027
2029
|
|
|
@@ -2269,6 +2271,8 @@ export async function createChecklistMultiTask( req, res ) {
|
|
|
2269
2271
|
assignId: response?.coverage == 'store' ? storeDetails?._id : findUser._id,
|
|
2270
2272
|
coverage: response?.coverage || 'store',
|
|
2271
2273
|
comments: inputBody?.showcomment ? inputBody.checkListDescription : findcomment?.Comments,
|
|
2274
|
+
country: storeDetails?.storeProfile?.country ? storeDetails?.storeProfile?.country : '',
|
|
2275
|
+
state: storeDetails?.storeProfile?.state ? storeDetails?.storeProfile?.state : '',
|
|
2272
2276
|
};
|
|
2273
2277
|
await taskAssignService.create( userDetails );
|
|
2274
2278
|
// console.log( originaldata?.checklistId );
|
|
@@ -3545,6 +3549,8 @@ export async function createAiChecklist( req, res ) {
|
|
|
3545
3549
|
client_id: inputBody.clientId,
|
|
3546
3550
|
userId: userId,
|
|
3547
3551
|
assignId: storeDetails?._id,
|
|
3552
|
+
country: storeDetails?.storeProfile?.country,
|
|
3553
|
+
state: storeDetails?.storeProfile?.state,
|
|
3548
3554
|
};
|
|
3549
3555
|
await taskAssignService.create( userDetails );
|
|
3550
3556
|
await insertSingleProcessData( response?._id );
|
|
@@ -3771,6 +3777,8 @@ export async function StoreHygienetaskOld( req, res ) {
|
|
|
3771
3777
|
client_id: inputBody.clientId,
|
|
3772
3778
|
userId: userId,
|
|
3773
3779
|
assignId: storeDetails?._id,
|
|
3780
|
+
country: storeDetails?.storeProfile?.country,
|
|
3781
|
+
state: storeDetails?.storeProfile?.state,
|
|
3774
3782
|
|
|
3775
3783
|
};
|
|
3776
3784
|
await taskAssignService.create( userDetails );
|
|
@@ -3998,6 +4006,8 @@ export async function eyeTesttask( req, res ) {
|
|
|
3998
4006
|
client_id: inputBody.clientId,
|
|
3999
4007
|
userId: userId,
|
|
4000
4008
|
assignId: storeDetails?._id,
|
|
4009
|
+
country: storeDetails?.storeProfile?.country,
|
|
4010
|
+
state: storeDetails?.storeProfile?.state,
|
|
4001
4011
|
};
|
|
4002
4012
|
await taskAssignService.create( userDetails );
|
|
4003
4013
|
await insertSingleProcessData( response?._id, true, inputBody );
|
|
@@ -4197,6 +4207,8 @@ export async function createAiTask( req, res ) {
|
|
|
4197
4207
|
client_id: inputBody.clientId,
|
|
4198
4208
|
userId: userId,
|
|
4199
4209
|
assignId: storeDetails?._id,
|
|
4210
|
+
country: storeDetails?.storeProfile?.country,
|
|
4211
|
+
state: storeDetails?.storeProfile?.state,
|
|
4200
4212
|
};
|
|
4201
4213
|
|
|
4202
4214
|
await taskAssignService.create( userDetails );
|
|
@@ -4982,6 +4994,8 @@ export async function commonAiTask( req, res ) {
|
|
|
4982
4994
|
client_id: inputBody.clientId,
|
|
4983
4995
|
userId: userId,
|
|
4984
4996
|
assignId: storeDetails?._id,
|
|
4997
|
+
country: storeDetails?.storeProfile?.country,
|
|
4998
|
+
state: storeDetails?.storeProfile?.state,
|
|
4985
4999
|
};
|
|
4986
5000
|
await taskAssignService.create( userDetails );
|
|
4987
5001
|
await insertSingleProcessData( response?._id );
|
|
@@ -5182,6 +5196,8 @@ export async function taskcreation( req, res ) {
|
|
|
5182
5196
|
client_id: inputBody.clientId,
|
|
5183
5197
|
userId: userId,
|
|
5184
5198
|
assignId: storeDetails?._id,
|
|
5199
|
+
country: storeDetails?.storeProfile?.country,
|
|
5200
|
+
state: storeDetails?.storeProfile?.state,
|
|
5185
5201
|
};
|
|
5186
5202
|
await taskAssignService.create( userDetails );
|
|
5187
5203
|
await insertSingleProcessData( response?._id );
|
|
@@ -5457,6 +5473,8 @@ export async function breachedTasks( req, res ) {
|
|
|
5457
5473
|
client_id: inputBody.clientId,
|
|
5458
5474
|
userId: userId,
|
|
5459
5475
|
assignId: storeDetails._id,
|
|
5476
|
+
country: storeDetails?.storeProfile?.country,
|
|
5477
|
+
state: storeDetails?.storeProfile?.state,
|
|
5460
5478
|
};
|
|
5461
5479
|
await taskAssignService.create( userDetails );
|
|
5462
5480
|
await insertSingleProcessData( response?._id );
|
|
@@ -5706,6 +5724,8 @@ export async function StoreHygienetask( req, res ) {
|
|
|
5706
5724
|
client_id: inputBody.clientId,
|
|
5707
5725
|
userId: userId,
|
|
5708
5726
|
assignId: storeDetails?._id,
|
|
5727
|
+
country: storeDetails?.storeProfile?.country,
|
|
5728
|
+
state: storeDetails?.storeProfile?.state,
|
|
5709
5729
|
};
|
|
5710
5730
|
await taskAssignService.create( userDetails );
|
|
5711
5731
|
await insertSingleProcessData( response?._id );
|
|
@@ -5933,6 +5953,8 @@ export async function eyeTesttaskNew( req, res ) {
|
|
|
5933
5953
|
client_id: inputBody.clientId,
|
|
5934
5954
|
userId: userId,
|
|
5935
5955
|
assignId: storeDetails?._id,
|
|
5956
|
+
country: storeDetails?.storeProfile?.country,
|
|
5957
|
+
state: storeDetails?.storeProfile?.state,
|
|
5936
5958
|
};
|
|
5937
5959
|
await taskAssignService.create( userDetails );
|
|
5938
5960
|
await insertSingleProcessData( response?._id, true, inputBody );
|
|
@@ -6461,6 +6483,8 @@ export async function createTaskGroup( req, res ) {
|
|
|
6461
6483
|
client_id: inputBody.clientId,
|
|
6462
6484
|
userId: userId,
|
|
6463
6485
|
assignId: storeData?._id,
|
|
6486
|
+
country: storeData?.storeProfile?.country,
|
|
6487
|
+
state: storeData?.storeProfile?.state,
|
|
6464
6488
|
};
|
|
6465
6489
|
await taskAssignService.create( userDetails );
|
|
6466
6490
|
await insertSingleProcessData( response?._id );
|
|
@@ -6551,6 +6575,8 @@ async function insertAItaskSingleProcessedTask( checkTask, inputBody, date, time
|
|
|
6551
6575
|
newData.zoneName = inputBody.zoneName || '';
|
|
6552
6576
|
newData.checkListType = 'task' || '';
|
|
6553
6577
|
let insertprocessdata = await taskProcessedService.insert( newData );
|
|
6578
|
+
await taskProcessedConfigService.insert( newData );
|
|
6579
|
+
console.log( '🚀 ~ insertAItaskSingleProcessedTask ~ insertprocessdata:', insertprocessdata );
|
|
6554
6580
|
if ( insertprocessdata ) {
|
|
6555
6581
|
if ( uniqueUsers && uniqueUsers.length>0 ) {
|
|
6556
6582
|
// updated Task Approver//
|
|
@@ -6926,6 +6952,8 @@ export async function createAITaskGroup( req, res ) {
|
|
|
6926
6952
|
client_id: inputBody.clientId,
|
|
6927
6953
|
userId: userId,
|
|
6928
6954
|
assignId: storeData?._id,
|
|
6955
|
+
country: storeData?.storeProfile?.country,
|
|
6956
|
+
state: storeData?.storeProfile?.state,
|
|
6929
6957
|
};
|
|
6930
6958
|
await taskAssignService.create( userDetails );
|
|
6931
6959
|
await insertSingleProcessData( response?._id, false, { aiTask: true } );
|