tango-app-api-client 3.4.0-beta.10 → 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"
|
|
@@ -1114,7 +1114,7 @@ export async function updateFeatureConfiguration( req, res ) {
|
|
|
1114
1114
|
const keysArray = [
|
|
1115
1115
|
'isExcludedArea', 'isPasserByData', 'isNormalized', 'isbillingDisabled',
|
|
1116
1116
|
'isCameraDisabled', 'isFootfallDirectory', 'isNOB', 'isNewTraffic',
|
|
1117
|
-
'isTrax', 'isNewZone', 'isNewReports', 'isNewDashboard', 'streamBy',
|
|
1117
|
+
'isTrax', 'isNewZone', 'isNewReports', 'isNewDashboard', 'streamBy', 'isFootfallView',
|
|
1118
1118
|
];
|
|
1119
1119
|
// Map and rename keys from previous client info for UI display and logging
|
|
1120
1120
|
const oldData = {
|
|
@@ -1146,10 +1146,11 @@ export async function updateFeatureConfiguration( req, res ) {
|
|
|
1146
1146
|
Zonev2: previousData?.featureConfigs?.isNewZoneV2 == true ? 'Enabled' : 'Disabled',
|
|
1147
1147
|
Reports: previousData?.featureConfigs?.isNewReports == true ? 'Enabled' : 'Disabled',
|
|
1148
1148
|
Trax: previousData?.featureConfigs?.isTrax == true ? 'Enabled' : 'Disabled',
|
|
1149
|
+
Revops: previousData?.featureConfigs?.isRevops == true ? 'Enabled' : 'Disabled',
|
|
1149
1150
|
StreamType: previousData?.featureConfigs?.streamBy == 'Edge' ? 'Edge App' : 'RTSP',
|
|
1150
1151
|
FootfallDirectoryOnlyAudit: previousData?.featureConfigs?.isFootfallDirectoryAudit == true ? 'Enabled' : 'Disabled',
|
|
1151
1152
|
FootfallDirectoryOnlyFew: previousData?.featureConfigs?.isFootfallDirectoryLimit == true ? 'Enabled' : 'Disabled',
|
|
1152
|
-
|
|
1153
|
+
FootfallView: previousData?.featureConfigs?.isFootfallView == true ? 'Enabled' : 'Disabled',
|
|
1153
1154
|
};
|
|
1154
1155
|
|
|
1155
1156
|
// Map and rename keys from current client info for UI display and logging
|
|
@@ -1182,10 +1183,11 @@ export async function updateFeatureConfiguration( req, res ) {
|
|
|
1182
1183
|
Zonev2: postData?.featureConfigs?.isNewZoneV2 == true ? 'Enabled' : 'Disabled',
|
|
1183
1184
|
Reports: postData?.featureConfigs?.isNewReports == true ? 'Enabled' : 'Disabled',
|
|
1184
1185
|
Trax: postData?.featureConfigs?.isTrax == true ? 'Enabled' : 'Disabled',
|
|
1186
|
+
Revops: postData?.featureConfigs?.isRevops == true ? 'Enabled' : 'Disabled',
|
|
1185
1187
|
StreamType: postData?.featureConfigs?.streamBy == 'Edge' ? 'Edge App' : 'RTSP',
|
|
1186
1188
|
FootfallDirectoryOnlyAudit: postData?.featureConfigs?.isFootfallDirectoryAudit == true ? 'Enabled' : 'Disabled',
|
|
1187
1189
|
FootfallDirectoryOnlyFew: postData?.featureConfigs?.isFootfallDirectoryLimit == true ? 'Enabled' : 'Disabled',
|
|
1188
|
-
|
|
1190
|
+
FootfallView: previousData?.featureConfigs?.isFootfallView == true ? 'Enabled' : 'Disabled',
|
|
1189
1191
|
};
|
|
1190
1192
|
|
|
1191
1193
|
// Prepare activity log object with all relevant details for OpenSearch logging
|
package/src/dtos/client.dtos.js
CHANGED
|
@@ -120,10 +120,12 @@ export const featureConfigurationSchemaBody = joi.object(
|
|
|
120
120
|
isNOB: joi.boolean().optional(),
|
|
121
121
|
isNewZoneV2: joi.boolean().optional(),
|
|
122
122
|
isTrax: joi.boolean().optional(),
|
|
123
|
+
isRevops: joi.boolean().optional(),
|
|
123
124
|
isControlCenter: joi.boolean().optional(),
|
|
124
125
|
isFootfallDirectoryAudit: joi.boolean().optional(),
|
|
125
126
|
isFootfallDirectoryLimit: joi.boolean().optional(),
|
|
126
127
|
streamBy: joi.string().optional(),
|
|
128
|
+
isFootfallView: joi.boolean().optional(),
|
|
127
129
|
},
|
|
128
130
|
);
|
|
129
131
|
|
|
@@ -160,10 +160,12 @@ export function featureConfigurationUpdate( query, inputData ) {
|
|
|
160
160
|
'featureConfigs.isNOB': inputData?.isNOB,
|
|
161
161
|
'featureConfigs.isNewZoneV2': inputData?.isNewZoneV2,
|
|
162
162
|
'featureConfigs.isTrax': inputData?.isTrax,
|
|
163
|
+
'featureConfigs.isRevops': inputData?.isRevops,
|
|
163
164
|
'featureConfigs.isControlCenter': inputData?.isControlCenter,
|
|
164
165
|
'featureConfigs.isFootfallDirectoryAudit': inputData?.isFootfallDirectoryAudit,
|
|
165
166
|
'featureConfigs.isFootfallDirectoryLimit': inputData?.isFootfallDirectoryLimit,
|
|
166
167
|
'featureConfigs.streamBy': inputData?.streamBy,
|
|
168
|
+
'featureConfigs.isFootfallView': inputData?.isFootfallView,
|
|
167
169
|
},
|
|
168
170
|
} );
|
|
169
171
|
}
|