tango-app-api-client 3.4.0-beta.2 → 3.4.0-beta.4
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.4.0-beta.
|
|
3
|
+
"version": "3.4.0-beta.4",
|
|
4
4
|
"description": "client",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"aws-sdk": "^2.1560.0",
|
|
17
|
-
"cors": "^2.8.5",
|
|
18
17
|
"dotenv": "^16.4.4",
|
|
19
18
|
"express": "^4.18.2",
|
|
20
19
|
"express-fileupload": "^1.4.3",
|
|
@@ -1150,22 +1150,22 @@ export async function updateFeatureConfiguration( req, res ) {
|
|
|
1150
1150
|
InfraAlertValue: previousData?.featureConfigs?.infraAlert?.value,
|
|
1151
1151
|
InfraAlertCondition: previousData?.featureConfigs?.infraAlert?.condition,
|
|
1152
1152
|
ConversionCalculations: previousData?.featureConfigs?.conversionCalculation,
|
|
1153
|
-
ExcludedArea: previousData?.featureConfigs?.isExcludedArea ==true ? '
|
|
1154
|
-
PasserBydata: previousData?.featureConfigs?.isPasserByData ==true ? '
|
|
1155
|
-
NormalizedDataDuringDowntime: previousData?.featureConfigs?.isNormalized ==true ? '
|
|
1156
|
-
Billing: previousData?.featureConfigs?.isbillingDisabled ==true ? '
|
|
1157
|
-
CameraBlurring: previousData?.featureConfigs?.isCameraDisabled ==true ? '
|
|
1158
|
-
FootfallDirectory: previousData?.featureConfigs?.isFootfallDirectory ==true ? '
|
|
1159
|
-
NOBStatus: previousData?.featureConfigs?.isNOB ==true ? '
|
|
1160
|
-
EnableAnalyze: previousData?.featureConfigs?.isNewDashboard ==true ? '
|
|
1161
|
-
Traffic: previousData?.featureConfigs?.isNewTraffic==true ? '
|
|
1162
|
-
Zone: previousData?.featureConfigs?.isNewZone ==true ? '
|
|
1163
|
-
Zonev2: previousData?.featureConfigs?.isNewZoneV2 ==true ? '
|
|
1164
|
-
Reports: previousData?.featureConfigs?.isNewReports ==true ? '
|
|
1165
|
-
Trax: previousData?.featureConfigs?.isTrax ==true ? '
|
|
1153
|
+
ExcludedArea: previousData?.featureConfigs?.isExcludedArea ==true ? 'Enabled': 'Disabled',
|
|
1154
|
+
PasserBydata: previousData?.featureConfigs?.isPasserByData ==true ? 'Enabled': 'Disabled',
|
|
1155
|
+
NormalizedDataDuringDowntime: previousData?.featureConfigs?.isNormalized ==true ? 'Enabled': 'Disabled',
|
|
1156
|
+
Billing: previousData?.featureConfigs?.isbillingDisabled ==true ? 'Enabled': 'Disabled',
|
|
1157
|
+
CameraBlurring: previousData?.featureConfigs?.isCameraDisabled ==true ? 'Enabled': 'Disabled',
|
|
1158
|
+
FootfallDirectory: previousData?.featureConfigs?.isFootfallDirectory ==true ? 'Enabled': 'Disabled',
|
|
1159
|
+
NOBStatus: previousData?.featureConfigs?.isNOB ==true ? 'Enabled': 'Disabled',
|
|
1160
|
+
EnableAnalyze: previousData?.featureConfigs?.isNewDashboard ==true ? 'Enabled': 'Disabled',
|
|
1161
|
+
Traffic: previousData?.featureConfigs?.isNewTraffic==true ? 'Enabled': 'Disabled',
|
|
1162
|
+
Zone: previousData?.featureConfigs?.isNewZone ==true ? 'Enabled': 'Disabled',
|
|
1163
|
+
Zonev2: previousData?.featureConfigs?.isNewZoneV2 ==true ? 'Enabled': 'Disabled',
|
|
1164
|
+
Reports: previousData?.featureConfigs?.isNewReports ==true ? 'Enabled': 'Disabled',
|
|
1165
|
+
Trax: previousData?.featureConfigs?.isTrax ==true ? 'Enabled': 'Disabled',
|
|
1166
1166
|
StreamType: previousData?.featureConfigs?.streamBy =='Edge' ? 'Edge App': 'RTSP',
|
|
1167
|
-
FootfallDirectoryOnlyAudit: previousData?.featureConfigs?.isFootfallDirectoryAudit ==true ? '
|
|
1168
|
-
FootfallDirectoryOnlyFew: previousData?.featureConfigs?.isFootfallDirectoryLimit ==true ? '
|
|
1167
|
+
FootfallDirectoryOnlyAudit: previousData?.featureConfigs?.isFootfallDirectoryAudit ==true ? 'Enabled': 'Disabled',
|
|
1168
|
+
FootfallDirectoryOnlyFew: previousData?.featureConfigs?.isFootfallDirectoryLimit ==true ? 'Enabled': 'Disabled',
|
|
1169
1169
|
|
|
1170
1170
|
};
|
|
1171
1171
|
|
|
@@ -2698,7 +2698,9 @@ function findDifferences( oldData, newData ) {
|
|
|
2698
2698
|
}
|
|
2699
2699
|
|
|
2700
2700
|
function splitCamelCase( text ) {
|
|
2701
|
-
return text.replace( /([a-z])([A-Z])/g, '$1 $2' )
|
|
2701
|
+
return text.replace( /([a-z])([A-Z])/g, '$1 $2' ) // Add space between camelCase words
|
|
2702
|
+
.replace( /(\d+)/g, ' $1 ' ) // Add space between numbers
|
|
2703
|
+
.trim();
|
|
2702
2704
|
}
|
|
2703
2705
|
|
|
2704
2706
|
async function postApi( url, data ) {
|