tango-app-api-client 3.1.21-alpha.2 → 3.3.0-beta.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-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0-beta.0",
|
|
4
4
|
"description": "client",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"mongodb": "^6.3.0",
|
|
26
26
|
"nodemon": "^3.0.3",
|
|
27
27
|
"swagger-ui-express": "^5.0.0",
|
|
28
|
-
"tango-api-schema": "^2.
|
|
28
|
+
"tango-api-schema": "^2.1.15",
|
|
29
29
|
"tango-app-api-middleware": "^3.1.30",
|
|
30
30
|
"winston": "^3.11.0",
|
|
31
31
|
"winston-daily-rotate-file": "^5.0.0"
|
|
@@ -71,6 +71,14 @@ export async function create( req, res ) {
|
|
|
71
71
|
'profileDetails.website': leadRecord?.websiteUrl,
|
|
72
72
|
'reportConfigs.reportName': generatedName,
|
|
73
73
|
'auditConfigs.queueName': generatedName,
|
|
74
|
+
'auditConfigs.zoneQueueName': `${generatedName}-zone`,
|
|
75
|
+
'auditConfigs.trafficQueueName': `${generatedName}-traffic`,
|
|
76
|
+
'auditConfigs.traxQueueName.unattendedCustomer': `${generatedName}-unattendedCustomer`,
|
|
77
|
+
'auditConfigs.traxQueueName.leftInMiddle': `${generatedName}-leftInMiddle`,
|
|
78
|
+
'auditConfigs.traxQueueName.uniformDetection': `${generatedName}-uniformDetection`,
|
|
79
|
+
'auditConfigs.traxQueueName.mobileDetection': `${generatedName}-mobileDetection`,
|
|
80
|
+
'auditConfigs.traxQueueName.cameraAngleChange': `${generatedName}-cameraAngleChange`,
|
|
81
|
+
|
|
74
82
|
|
|
75
83
|
};
|
|
76
84
|
|
|
@@ -289,7 +297,16 @@ export async function create( req, res ) {
|
|
|
289
297
|
};
|
|
290
298
|
// await deleteOneAuthentication( { user: user?._id, type: 'retail' } );
|
|
291
299
|
await findOneAndUpdateUser( userQuery, userRecord );
|
|
292
|
-
await
|
|
300
|
+
await Promise.all( [
|
|
301
|
+
createAuditQueue( generatedName ),
|
|
302
|
+
createAuditQueue( `${generatedName}-zone` ),
|
|
303
|
+
createAuditQueue( `${generatedName}-traffic` ),
|
|
304
|
+
createAuditQueue( `${generatedName}-unattendedCustomer` ),
|
|
305
|
+
createAuditQueue( `${generatedName}-leftInMiddle` ),
|
|
306
|
+
createAuditQueue( `${generatedName}-uniformDetection` ),
|
|
307
|
+
createAuditQueue( `${generatedName}-mobileDetection` ),
|
|
308
|
+
createAuditQueue( `${generatedName}-cameraAngleChange` ),
|
|
309
|
+
] );
|
|
293
310
|
return res.sendSuccess( { result: { clientId: String( tangoId ) } } );
|
|
294
311
|
}
|
|
295
312
|
} catch ( error ) {
|
|
@@ -849,7 +866,7 @@ export async function updateFeatureConfiguration( req, res ) {
|
|
|
849
866
|
close: req.body?.close, conversionCalculation: req.body?.conversionCalculation, conversionCondition: req.body?.conversionCondition,
|
|
850
867
|
conversionValue: req.body?.conversionValue, infraAlertCondition: req.body?.infraAlertCondition, infraAlertValue: req.body?.infraAlertValue, isFootfallDirectory: req.body?.isFootfallDirectory,
|
|
851
868
|
isNormalized: req.body?.isNormalized, isPasserByData: req.body?.isPasserByData, missedOpportunityCalculation: req.body?.missedOpportunityCalculation, open: req.body?.open,
|
|
852
|
-
isExcludedArea: req.body?.isExcludedArea, isCameraDisabled: req.body?.isCameraDisabled, isbillingDisabled: req.body?.isbillingDisabled,
|
|
869
|
+
isExcludedArea: req.body?.isExcludedArea, isCameraDisabled: req.body?.isCameraDisabled, isbillingDisabled: req.body?.isbillingDisabled, isNewDashboard: req.body?.isNewDashboard,
|
|
853
870
|
} );
|
|
854
871
|
|
|
855
872
|
let updateKeys = [];
|
package/src/dtos/client.dtos.js
CHANGED
|
@@ -112,6 +112,7 @@ export const featureConfigurationSchemaBody = joi.object(
|
|
|
112
112
|
isExcludedArea: joi.boolean().optional(),
|
|
113
113
|
isCameraDisabled: joi.boolean().optional(),
|
|
114
114
|
isbillingDisabled: joi.boolean().optional(),
|
|
115
|
+
isNewDashboard: joi.boolean().optional(),
|
|
115
116
|
},
|
|
116
117
|
);
|
|
117
118
|
|