tango-app-api-client 3.4.0-beta.11 → 3.4.0-beta.12
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/.eslintrc.cjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tango-app-api-client",
|
|
3
|
-
"version": "3.4.0-beta.
|
|
3
|
+
"version": "3.4.0-beta.12",
|
|
4
4
|
"description": "client",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"nodemon": "^3.0.3",
|
|
27
27
|
"npm": "^10.9.1",
|
|
28
28
|
"swagger-ui-express": "^5.0.0",
|
|
29
|
-
"tango-api-schema": "^2.2.
|
|
29
|
+
"tango-api-schema": "^2.2.132",
|
|
30
30
|
"tango-app-api-middleware": "^3.1.67",
|
|
31
31
|
"winston": "^3.11.0",
|
|
32
32
|
"winston-daily-rotate-file": "^5.0.0"
|
|
@@ -1061,7 +1061,6 @@ export async function updateFeatureConfiguration( req, res ) {
|
|
|
1061
1061
|
if ( inputData?.conversionValue ) {
|
|
1062
1062
|
inputData.missedOpportunityToValue = inputData?.conversionValue;
|
|
1063
1063
|
}
|
|
1064
|
-
|
|
1065
1064
|
const updateAck = await featureConfigurationUpdate( { clientId: req.params?.id }, inputData );
|
|
1066
1065
|
|
|
1067
1066
|
// Get updated client Feature configuration after the update operation (fetch selected fields only)
|
|
@@ -1115,7 +1114,7 @@ export async function updateFeatureConfiguration( req, res ) {
|
|
|
1115
1114
|
const keysArray = [
|
|
1116
1115
|
'isExcludedArea', 'isPasserByData', 'isNormalized', 'isbillingDisabled',
|
|
1117
1116
|
'isCameraDisabled', 'isFootfallDirectory', 'isNOB', 'isNewTraffic',
|
|
1118
|
-
'isTrax', 'isNewZone', 'isNewReports', 'isNewDashboard', 'streamBy',
|
|
1117
|
+
'isTrax', 'isNewZone', 'isNewReports', 'isNewDashboard', 'streamBy', 'isFootfallView',
|
|
1119
1118
|
];
|
|
1120
1119
|
// Map and rename keys from previous client info for UI display and logging
|
|
1121
1120
|
const oldData = {
|
|
@@ -1151,7 +1150,7 @@ export async function updateFeatureConfiguration( req, res ) {
|
|
|
1151
1150
|
StreamType: previousData?.featureConfigs?.streamBy == 'Edge' ? 'Edge App' : 'RTSP',
|
|
1152
1151
|
FootfallDirectoryOnlyAudit: previousData?.featureConfigs?.isFootfallDirectoryAudit == true ? 'Enabled' : 'Disabled',
|
|
1153
1152
|
FootfallDirectoryOnlyFew: previousData?.featureConfigs?.isFootfallDirectoryLimit == true ? 'Enabled' : 'Disabled',
|
|
1154
|
-
|
|
1153
|
+
FootfallView: previousData?.featureConfigs?.isFootfallView == true ? 'Enabled' : 'Disabled',
|
|
1155
1154
|
};
|
|
1156
1155
|
|
|
1157
1156
|
// Map and rename keys from current client info for UI display and logging
|
|
@@ -1188,7 +1187,7 @@ export async function updateFeatureConfiguration( req, res ) {
|
|
|
1188
1187
|
StreamType: postData?.featureConfigs?.streamBy == 'Edge' ? 'Edge App' : 'RTSP',
|
|
1189
1188
|
FootfallDirectoryOnlyAudit: postData?.featureConfigs?.isFootfallDirectoryAudit == true ? 'Enabled' : 'Disabled',
|
|
1190
1189
|
FootfallDirectoryOnlyFew: postData?.featureConfigs?.isFootfallDirectoryLimit == true ? 'Enabled' : 'Disabled',
|
|
1191
|
-
|
|
1190
|
+
FootfallView: previousData?.featureConfigs?.isFootfallView == true ? 'Enabled' : 'Disabled',
|
|
1192
1191
|
};
|
|
1193
1192
|
|
|
1194
1193
|
// Prepare activity log object with all relevant details for OpenSearch logging
|
package/src/dtos/client.dtos.js
CHANGED
|
@@ -125,6 +125,7 @@ export const featureConfigurationSchemaBody = joi.object(
|
|
|
125
125
|
isFootfallDirectoryAudit: joi.boolean().optional(),
|
|
126
126
|
isFootfallDirectoryLimit: joi.boolean().optional(),
|
|
127
127
|
streamBy: joi.string().optional(),
|
|
128
|
+
isFootfallView: joi.boolean().optional(),
|
|
128
129
|
},
|
|
129
130
|
);
|
|
130
131
|
|
|
@@ -165,6 +165,7 @@ export function featureConfigurationUpdate( query, inputData ) {
|
|
|
165
165
|
'featureConfigs.isFootfallDirectoryAudit': inputData?.isFootfallDirectoryAudit,
|
|
166
166
|
'featureConfigs.isFootfallDirectoryLimit': inputData?.isFootfallDirectoryLimit,
|
|
167
167
|
'featureConfigs.streamBy': inputData?.streamBy,
|
|
168
|
+
'featureConfigs.isFootfallView': inputData?.isFootfallView,
|
|
168
169
|
},
|
|
169
170
|
} );
|
|
170
171
|
}
|