tango-app-api-client 3.1.17 → 3.1.18

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.1.17",
3
+ "version": "3.1.18",
4
4
  "description": "client",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -25,8 +25,8 @@
25
25
  "mongodb": "^6.3.0",
26
26
  "nodemon": "^3.0.3",
27
27
  "swagger-ui-express": "^5.0.0",
28
- "tango-api-schema": "^2.0.113",
29
- "tango-app-api-middleware": "^3.1.19",
28
+ "tango-api-schema": "^2.0.144",
29
+ "tango-app-api-middleware": "^3.1.26",
30
30
  "winston": "^3.11.0",
31
31
  "winston-daily-rotate-file": "^5.0.0"
32
32
  },
@@ -813,7 +813,7 @@ export async function updateFeatureConfiguration( req, res ) {
813
813
  close: req.body?.close, conversionCalculation: req.body?.conversionCalculation, conversionCondition: req.body?.conversionCondition,
814
814
  conversionValue: req.body?.conversionValue, infraAlertCondition: req.body?.infraAlertCondition, infraAlertValue: req.body?.infraAlertValue, isFootfallDirectory: req.body?.isFootfallDirectory,
815
815
  isNormalized: req.body?.isNormalized, isPasserByData: req.body?.isPasserByData, missedOpportunityCalculation: req.body?.missedOpportunityCalculation, open: req.body?.open,
816
- isExcludedArea: req.body?.isExcludedArea,
816
+ isExcludedArea: req.body?.isExcludedArea, isCameraDisabled: req.body?.isCameraDisabled, isbillingDisabled: req.body?.isbillingDisabled,
817
817
  } );
818
818
 
819
819
  let updateKeys = [];
@@ -10,14 +10,6 @@ export const clientDocs = {
10
10
  tags: [ 'Client' ],
11
11
  description: 'lead appoved and create a new client',
12
12
  operationId: 'create',
13
- parameters: [ {
14
- in: 'path',
15
- name: 'id',
16
- required: true,
17
- schema: {
18
- type: 'string',
19
- },
20
- } ],
21
13
  requestBody: {
22
14
  content: {
23
15
  'application/json': {
@@ -109,6 +109,8 @@ export const featureConfigurationSchemaBody = joi.object(
109
109
  isPasserByData: joi.boolean().optional(),
110
110
  isFootfallDirectory: joi.boolean().optional(),
111
111
  isExcludedArea: joi.boolean().optional(),
112
+ isCameraDisabled: joi.boolean().optional(),
113
+ isbillingDisabled: joi.boolean().optional(),
112
114
  },
113
115
  );
114
116
 
@@ -133,6 +133,7 @@ export function featureConfigurationUpdate( {
133
133
  close, conversionCalculation, conversionCondition,
134
134
  conversionValue, infraAlertCondition, infraAlertValue, isFootfallDirectory,
135
135
  isNormalized, isPasserByData, missedOpportunityCalculation, open, isExcludedArea,
136
+ isCameraDisabled, isbillingDisabled,
136
137
  } ) {
137
138
  return clientModel.updateOne( { clientId: clientId },
138
139
  {
@@ -153,6 +154,8 @@ export function featureConfigurationUpdate( {
153
154
  'featureConfigs.isFootfallDirectory': isFootfallDirectory,
154
155
  'featureConfigs.isExcludedArea': isExcludedArea,
155
156
  'featureConfigs.updateFeatureConfig': false,
157
+ 'featureConfigs.isCameraDisabled': isCameraDisabled,
158
+ 'featureConfigs.isbillingDisabled': isbillingDisabled,
156
159
  },
157
160
  } );
158
161
  }