tango-app-api-analysis-traffic 3.8.15-alpha.0 → 3.8.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,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-analysis-traffic",
3
- "version": "3.8.15-alpha.0",
3
+ "version": "3.8.16",
4
4
  "description": "Traffic Analysis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -89,6 +89,16 @@ export const validateOverallCharParams = {
89
89
  body: validateOverallCharSchema,
90
90
  };
91
91
 
92
+ // Same as validateOverallCharSchema, plus an optional hourFormat key used only by overallHourlyChart_v3
93
+ export const validateOverallHourlyCharSchema = validateOverallCharSchema.keys( {
94
+ hourBucket: joi.number().optional(),
95
+ } );
96
+
97
+ export const validateOverallHourlyCharParams = {
98
+ body: validateOverallHourlyCharSchema,
99
+ ...validateOverallCharSchema,
100
+ };
101
+
92
102
  export const validateSingleStoreChartSchema = joi.object( {
93
103
  ...baseSchema,
94
104
  limit: joi.number().required(),
@@ -159,7 +159,7 @@ analysisTrafficRouter
159
159
  .post( '/densityDwell_v3', isAllowedSessionHandler, isAllowedClient, validate( validationDtos.validateDensityDwellParams ), densityDwellV3 )
160
160
  .post( '/trafficDensityDwell_v3', isAllowedSessionHandler, isAllowedClient, validate( validationDtos.validateDensityDwellParams ), trafficDensityDwellV3 )
161
161
  .post( '/overallCards_v3', isAllowedSessionHandler, isAllowedClient, validate( validationDtos.validateOverallCharParams ), overallCardsV3 )
162
- .post( '/overallHourlyChart_v3', isAllowedSessionHandler, isAllowedClient, validate( validationDtos.validateOverallCharParams ), overallHourlyChartV3 )
162
+ .post( '/overallHourlyChart_v3', isAllowedSessionHandler, isAllowedClient, validate( validationDtos.validateOverallHourlyCharParams ), overallHourlyChartV3 )
163
163
  .post( '/overallChart_v3', isAllowedSessionHandler, isAllowedClient, validate( validationDtos.validateOverallCharParams ), overallChartV3 )
164
164
  .post( '/singleStoreChart_v3', isAllowedSessionHandler, isAllowedClient, validate( validationDtos.validateSingleStoreChartParams ), singleStoreChartV3 )
165
165
  .post( '/demographicChart_v3', isAllowedSessionHandler, isAllowedClient, validate( validationDtos.validateDemographicChartParams ), demographicChartV3 )