tango-app-api-client 3.6.6 → 3.6.8
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.6.
|
|
3
|
+
"version": "3.6.8",
|
|
4
4
|
"description": "client",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"npm": "^10.9.1",
|
|
32
32
|
"sharp": "^0.34.3",
|
|
33
33
|
"swagger-ui-express": "^5.0.0",
|
|
34
|
-
"tango-api-schema": "^2.5.
|
|
34
|
+
"tango-api-schema": "^2.5.58",
|
|
35
35
|
"tango-app-api-middleware": "^3.6.11",
|
|
36
36
|
"winston": "^3.11.0",
|
|
37
37
|
"winston-daily-rotate-file": "^5.0.0"
|
|
@@ -1124,7 +1124,7 @@ export async function updateFeatureConfiguration( req, res ) {
|
|
|
1124
1124
|
// await postApi( `${url.oldapidomain}/oldBrandUpdate/${data?._id}`, { brandConfigs: data.brandConfigs } );
|
|
1125
1125
|
|
|
1126
1126
|
const keysArray = [
|
|
1127
|
-
'isExcludedArea', 'isPasserByData', 'isNormalized', 'isbillingDisabled', 'isCameraDisabled', 'isFootfallDirectory', 'isNOB', 'isZonewiseNOB', 'isNewTraffic', 'isTrax', 'isNewZone', 'isNewReports', 'isNewDashboard', 'streamBy', 'isFootfallView', 'isAIManager', 'isAIManagerAccessControl', 'isCameraEdit' ];
|
|
1127
|
+
'isExcludedArea', 'isPasserByData', 'isNormalized', 'isbillingDisabled', 'isCameraDisabled', 'isFootfallDirectory','isFootfallDirectoryonlyTango', 'isNOB', 'isZonewiseNOB', 'isNewTraffic', 'isTrax', 'isNewZone', 'isNewReports', 'isNewDashboard', 'streamBy', 'isFootfallView', 'isAIManager', 'isAIManagerAccessControl', 'isCameraEdit' ];
|
|
1128
1128
|
// Map and rename keys from previous client info for UI display and logging
|
|
1129
1129
|
const oldData = {
|
|
1130
1130
|
StoreOpenTime: previousData?.featureConfigs?.open,
|
|
@@ -1148,6 +1148,7 @@ export async function updateFeatureConfiguration( req, res ) {
|
|
|
1148
1148
|
Billing: previousData?.featureConfigs?.isbillingDisabled == true ? 'Enabled' : 'Disabled',
|
|
1149
1149
|
CameraBlurring: previousData?.featureConfigs?.isCameraDisabled == true ? 'Enabled' : 'Disabled',
|
|
1150
1150
|
FootfallDirectory: previousData?.featureConfigs?.isFootfallDirectory == true ? 'Enabled' : 'Disabled',
|
|
1151
|
+
FootfallDirectory: previousData?.featureConfigs?.isFootfallDirectoryonlyTango == true ? 'Enabled' : 'Disabled',
|
|
1151
1152
|
NOBStatus: previousData?.featureConfigs?.isNOB == true ? 'Enabled' : 'Disabled',
|
|
1152
1153
|
NOBStatus: previousData?.featureConfigs?.isZonewiseNOB == true ? 'Enabled' : 'Disabled',
|
|
1153
1154
|
EnableAnalyze: previousData?.featureConfigs?.isNewDashboard == true ? 'Enabled' : 'Disabled',
|
|
@@ -1191,6 +1192,7 @@ export async function updateFeatureConfiguration( req, res ) {
|
|
|
1191
1192
|
Billing: postData?.featureConfigs?.isbillingDisabled == true ? 'Enabled' : 'Disabled',
|
|
1192
1193
|
CameraBlurring: postData?.featureConfigs?.isCameraDisabled == true ? 'Enabled' : 'Disabled',
|
|
1193
1194
|
FootfallDirectory: postData?.featureConfigs?.isFootfallDirectory == true ? 'Enabled' : 'Disabled',
|
|
1195
|
+
FootfallDirectory: postData?.featureConfigs?.isFootfallDirectoryonlyTango == true ? 'Enabled' : 'Disabled',
|
|
1194
1196
|
NOBStatus: postData?.featureConfigs?.isNOB == true ? 'Enabled' : 'Disabled',
|
|
1195
1197
|
NOBStatus: postData?.featureConfigs?.isZonewiseNOB == true ? 'Enabled' : 'Disabled',
|
|
1196
1198
|
EnableAnalyze: postData?.featureConfigs?.isNewDashboard == true ? 'Enabled' : 'Disabled',
|
package/src/dtos/client.dtos.js
CHANGED
|
@@ -110,6 +110,7 @@ export const featureConfigurationSchemaBody = joi.object(
|
|
|
110
110
|
isNormalized: joi.boolean().optional(),
|
|
111
111
|
isPasserByData: joi.boolean().optional(),
|
|
112
112
|
isFootfallDirectory: joi.boolean().optional(),
|
|
113
|
+
isFootfallDirectoryonlyTango: joi.boolean().optional(),
|
|
113
114
|
isExcludedArea: joi.boolean().optional(),
|
|
114
115
|
isCameraDisabled: joi.boolean().optional(),
|
|
115
116
|
isbillingDisabled: joi.boolean().optional(),
|
|
@@ -148,6 +148,7 @@ export function featureConfigurationUpdate( query, inputData ) {
|
|
|
148
148
|
'featureConfigs.isNormalized': inputData?.isNormalized,
|
|
149
149
|
'featureConfigs.isPasserByData': inputData?.isPasserByData,
|
|
150
150
|
'featureConfigs.isFootfallDirectory': inputData?.isFootfallDirectory,
|
|
151
|
+
'featureConfigs.isFootfallDirectoryonlyTango': inputData?.isFootfallDirectoryonlyTango,
|
|
151
152
|
'featureConfigs.isExcludedArea': inputData?.isExcludedArea,
|
|
152
153
|
'featureConfigs.updateFeatureConfig': false,
|
|
153
154
|
'featureConfigs.isCameraDisabled': inputData?.isCameraDisabled,
|