tango-app-api-client 3.4.0-beta.14 → 3.4.0-beta.16

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,42 +1,42 @@
1
- {
2
- "name": "tango-app-api-client",
3
- "version": "3.4.0-beta.14",
4
- "description": "client",
5
- "main": "index.js",
6
- "type": "module",
7
- "scripts": {
8
- "start": "nodemon --exec \"eslint --fix . && node index.js\""
9
- },
10
- "engines": {
11
- "node": ">=18.10.0"
12
- },
13
- "author": "praveenraj",
14
- "license": "ISC",
15
- "dependencies": {
16
- "aws-sdk": "^2.1560.0",
17
- "cors": "^2.8.5",
18
- "dotenv": "^16.4.4",
19
- "express": "^4.18.2",
20
- "express-fileupload": "^1.4.3",
21
- "handlebars": "^4.7.8",
22
- "joi": "^17.12.1",
23
- "joi-to-swagger": "^6.2.0",
24
- "lodash": "^4.17.21",
25
- "mongodb": "^6.7.0",
26
- "nodemon": "^3.0.3",
27
- "npm": "^10.9.1",
28
- "swagger-ui-express": "^5.0.0",
29
- "tango-api-schema": "^2.2.132",
30
- "tango-app-api-middleware": "^3.1.86",
31
- "winston": "^3.11.0",
32
- "winston-daily-rotate-file": "^5.0.0"
33
- },
34
- "devDependencies": {
35
- "eslint": "^8.56.0",
36
- "eslint-config-google": "^0.14.0",
37
- "eslint-config-semistandard": "^17.0.0",
38
- "eslint-config-standard": "^17.1.0",
39
- "eslint-plugin-import": "^2.29.1",
40
- "eslint-plugin-promise": "^6.1.1"
41
- }
42
- }
1
+ {
2
+ "name": "tango-app-api-client",
3
+ "version": "3.4.0-beta.16",
4
+ "description": "client",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "start": "nodemon --exec \"eslint --fix . && node index.js\""
9
+ },
10
+ "engines": {
11
+ "node": ">=18.10.0"
12
+ },
13
+ "author": "praveenraj",
14
+ "license": "ISC",
15
+ "dependencies": {
16
+ "aws-sdk": "^2.1560.0",
17
+ "cors": "^2.8.5",
18
+ "dotenv": "^16.4.4",
19
+ "express": "^4.18.2",
20
+ "express-fileupload": "^1.4.3",
21
+ "handlebars": "^4.7.8",
22
+ "joi": "^17.12.1",
23
+ "joi-to-swagger": "^6.2.0",
24
+ "lodash": "^4.17.21",
25
+ "mongodb": "^6.7.0",
26
+ "nodemon": "^3.0.3",
27
+ "npm": "^10.9.1",
28
+ "swagger-ui-express": "^5.0.0",
29
+ "tango-api-schema": "^2.3.4",
30
+ "tango-app-api-middleware": "^3.1.86",
31
+ "winston": "^3.11.0",
32
+ "winston-daily-rotate-file": "^5.0.0"
33
+ },
34
+ "devDependencies": {
35
+ "eslint": "^8.56.0",
36
+ "eslint-config-google": "^0.14.0",
37
+ "eslint-config-semistandard": "^17.0.0",
38
+ "eslint-config-standard": "^17.1.0",
39
+ "eslint-plugin-import": "^2.29.1",
40
+ "eslint-plugin-promise": "^6.1.1"
41
+ }
42
+ }
@@ -74,6 +74,7 @@ export async function create( req, res ) {
74
74
  'reportConfigs.reportName': generatedName,
75
75
  'auditConfigs.zoneQueueName': `${generatedName}-zone`,
76
76
  'auditConfigs.trafficQueueName': `${generatedName}-traffic`,
77
+ 'auditConfigs.trackQueueName': `${generatedName}-track`,
77
78
  'auditConfigs.traxQueueName.unattendedCustomer': `${generatedName}-unattendedCustomer`,
78
79
  'auditConfigs.traxQueueName.leftInMiddle': `${generatedName}-leftInMiddle`,
79
80
  'auditConfigs.traxQueueName.uniformDetection': `${generatedName}-uniformDetection`,
@@ -82,6 +83,7 @@ export async function create( req, res ) {
82
83
  'auditConfigs.traxQueueName.hygiene': `${generatedName}-hygiene`,
83
84
  'clientApi.apiKey': await getUuid(),
84
85
  'clientApi.status': true,
86
+ 'clientApi.allowedIps': [ '*' ],
85
87
 
86
88
  };
87
89
 
@@ -346,6 +348,7 @@ export async function create( req, res ) {
346
348
  await Promise.all( [
347
349
  createAuditQueue( `${generatedName}-zone` ),
348
350
  createAuditQueue( `${generatedName}-traffic` ),
351
+ createAuditQueue( `${generatedName}-track` ),
349
352
  createAuditQueue( `${generatedName}-unattendedCustomer` ),
350
353
  createAuditQueue( `${generatedName}-leftInMiddle` ),
351
354
  createAuditQueue( `${generatedName}-uniformDetection` ),
@@ -1119,10 +1122,7 @@ export async function updateFeatureConfiguration( req, res ) {
1119
1122
  // await postApi( `${url.oldapidomain}/oldBrandUpdate/${data?._id}`, { brandConfigs: data.brandConfigs } );
1120
1123
 
1121
1124
  const keysArray = [
1122
- 'isExcludedArea', 'isPasserByData', 'isNormalized', 'isbillingDisabled',
1123
- 'isCameraDisabled', 'isFootfallDirectory', 'isNOB', 'isNewTraffic',
1124
- 'isTrax', 'isNewZone', 'isNewReports', 'isNewDashboard', 'streamBy', 'isFootfallView',
1125
- ];
1125
+ 'isExcludedArea', 'isPasserByData', 'isNormalized', 'isbillingDisabled', 'isCameraDisabled', 'isFootfallDirectory', 'isNOB', 'isNewTraffic', 'isTrax', 'isNewZone', 'isNewReports', 'isNewDashboard', 'streamBy', 'isFootfallView', 'isAIManager', 'isAIManagerAccessControl', 'isCameraEdit' ];
1126
1126
  // Map and rename keys from previous client info for UI display and logging
1127
1127
  const oldData = {
1128
1128
  StoreOpenTime: previousData?.featureConfigs?.open,
@@ -1158,6 +1158,9 @@ export async function updateFeatureConfiguration( req, res ) {
1158
1158
  FootfallDirectoryOnlyAudit: previousData?.featureConfigs?.isFootfallDirectoryAudit == true ? 'Enabled' : 'Disabled',
1159
1159
  FootfallDirectoryOnlyFew: previousData?.featureConfigs?.isFootfallDirectoryLimit == true ? 'Enabled' : 'Disabled',
1160
1160
  FootfallView: previousData?.featureConfigs?.isFootfallView == true ? 'Enabled' : 'Disabled',
1161
+ AIManager: previousData?.featureConfigs?.isAIManager == true ? 'Enabled' : 'Disabled',
1162
+ AIManagerAccessControl: previousData?.featureConfigs?.isAIManagerAccessControl == true ? 'Enabled' : 'Disabled',
1163
+ CameraEdit: previousData?.featureConfigs?.isCameraEdit == true ? 'Enabled' : 'Disabled',
1161
1164
  };
1162
1165
 
1163
1166
  // Map and rename keys from current client info for UI display and logging
@@ -1195,6 +1198,9 @@ export async function updateFeatureConfiguration( req, res ) {
1195
1198
  FootfallDirectoryOnlyAudit: postData?.featureConfigs?.isFootfallDirectoryAudit == true ? 'Enabled' : 'Disabled',
1196
1199
  FootfallDirectoryOnlyFew: postData?.featureConfigs?.isFootfallDirectoryLimit == true ? 'Enabled' : 'Disabled',
1197
1200
  FootfallView: previousData?.featureConfigs?.isFootfallView == true ? 'Enabled' : 'Disabled',
1201
+ AIManager: previousData?.featureConfigs?.isAIManager == true ? 'Enabled' : 'Disabled',
1202
+ AIManagerAccessControl: previousData?.featureConfigs?.isAIManagerAccessControl == true ? 'Enabled' : 'Disabled',
1203
+ CameraEdit: previousData?.featureConfigs?.isCameraEdit == true ? 'Enabled' : 'Disabled',
1198
1204
  };
1199
1205
 
1200
1206
  // Prepare activity log object with all relevant details for OpenSearch logging
@@ -126,6 +126,9 @@ export const featureConfigurationSchemaBody = joi.object(
126
126
  isFootfallDirectoryLimit: joi.boolean().optional(),
127
127
  streamBy: joi.string().optional(),
128
128
  isFootfallView: joi.boolean().optional(),
129
+ isAIManager: joi.boolean().optional(),
130
+ isAIManagerAccessControl: joi.boolean().optional(),
131
+ isCameraEdit: joi.boolean().optional(),
129
132
  },
130
133
  );
131
134
 
@@ -166,6 +166,9 @@ export function featureConfigurationUpdate( query, inputData ) {
166
166
  'featureConfigs.isFootfallDirectoryLimit': inputData?.isFootfallDirectoryLimit,
167
167
  'featureConfigs.streamBy': inputData?.streamBy,
168
168
  'featureConfigs.isFootfallView': inputData?.isFootfallView,
169
+ 'featureConfigs.isAIManager': inputData?.isAIManager,
170
+ 'featureConfigs.isAIManagerAccessControl': inputData?.isAIManagerAccessControl,
171
+ 'featureConfigs.isCameraEdit': inputData?.isCameraEdit,
169
172
  },
170
173
  } );
171
174
  }