tango-app-api-analysis-traffic 3.0.0-alpha.20 → 3.0.0-alpha.21

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.0.0-alpha.20",
3
+ "version": "3.0.0-alpha.21",
4
4
  "description": "Traffic Analysis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -6,12 +6,12 @@ const baseSchema = {
6
6
  storeId: joi.array().required().empty(),
7
7
  fromDate: joi.string().required(),
8
8
  toDate: joi.string().required(),
9
+ valueType: joi.string().optional().allow( '' ),
9
10
  };
10
11
 
11
12
  // Schema for Card Funnel
12
13
  export const validateCardFunnelSchema = joi.object( {
13
14
  ...baseSchema,
14
- valueType: joi.string().required(),
15
15
  } );
16
16
 
17
17
  export const validateCardFunnelParams = {
@@ -21,7 +21,6 @@ export const validateCardFunnelParams = {
21
21
  // Schema for Card Graph (extends baseSchema with additional fields)
22
22
  export const validateCardGraphSchema = joi.object( {
23
23
  ...baseSchema,
24
- valueType: joi.string().required(),
25
24
  dateType: joi.string().required(),
26
25
  } );
27
26
 
@@ -149,7 +148,7 @@ export const validateFootfallTrendSchema = joi.object( {
149
148
  ...baseSchema,
150
149
  dateType: joi.string().required(),
151
150
  filterBy: joi.string().required(),
152
- processType: joi.string().required(),
151
+ processType: joi.string().optional().allow( '' ),
153
152
  forecast: joi.boolean().optional(),
154
153
  limit: joi.number().required(),
155
154
  offset: joi.number().required(),