tango-app-api-analysis-traffic 3.0.0-alpha.27 → 3.0.0-alpha.28
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.
|
|
3
|
+
"version": "3.0.0-alpha.28",
|
|
4
4
|
"description": "Traffic Analysis",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"mongodb": "^6.8.0",
|
|
23
23
|
"nodemon": "^3.1.4",
|
|
24
24
|
"tango-api-schema": "^2.0.131",
|
|
25
|
-
"tango-app-api-middleware": "^3.1.
|
|
25
|
+
"tango-app-api-middleware": "^3.1.41",
|
|
26
26
|
"winston": "^3.13.1",
|
|
27
27
|
"winston-daily-rotate-file": "^5.0.0"
|
|
28
28
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { validate,
|
|
2
|
+
import { validate, isAllowedMobileSessionHandler, authorize } from 'tango-app-api-middleware';
|
|
3
3
|
import * as validationDtos from '../dtos/validation.dtos.js';
|
|
4
4
|
export const mobileTrafficAnalysisRouter = express.Router();
|
|
5
5
|
import {
|
|
@@ -21,85 +21,85 @@ import {
|
|
|
21
21
|
} from '../controllers/mobileTraffic.controllers.js';
|
|
22
22
|
|
|
23
23
|
mobileTrafficAnalysisRouter
|
|
24
|
-
.post( '/cardsFunnel_v1',
|
|
24
|
+
.post( '/cardsFunnel_v1', isAllowedMobileSessionHandler, isAllowedClient, authorize( {
|
|
25
25
|
userType: [ 'tango', 'client' ], access: [
|
|
26
26
|
{ featureName: 'analytics', name: 'tangoTraffic', permissions: [ 'isView' ] },
|
|
27
27
|
],
|
|
28
28
|
} ), validate( validationDtos.validateCardFunnelParams ), cardsFunnelV1 )
|
|
29
29
|
|
|
30
|
-
.post( '/cardsGraphs_v1',
|
|
30
|
+
.post( '/cardsGraphs_v1', isAllowedMobileSessionHandler, isAllowedClient, authorize( {
|
|
31
31
|
userType: [ 'tango', 'client' ], access: [
|
|
32
32
|
{ featureName: 'analytics', name: 'tangoTraffic', permissions: [ 'isView' ] },
|
|
33
33
|
],
|
|
34
34
|
} ), validate( validationDtos.validateCardGraphParams ), cardsGraphsV1 )
|
|
35
35
|
|
|
36
|
-
.post( '/recapVideo_v1',
|
|
36
|
+
.post( '/recapVideo_v1', isAllowedMobileSessionHandler, isAllowedClient, authorize( {
|
|
37
37
|
userType: [ 'tango', 'client' ], access: [
|
|
38
38
|
{ featureName: 'analytics', name: 'tangoTraffic', permissions: [ 'isView' ] },
|
|
39
39
|
],
|
|
40
40
|
} ), validate( validationDtos.validateRecapVideoParams ), recapVideoV1 )
|
|
41
41
|
|
|
42
|
-
.post( '/densityDwell_v1',
|
|
42
|
+
.post( '/densityDwell_v1', isAllowedMobileSessionHandler, isAllowedClient, authorize( {
|
|
43
43
|
userType: [ 'tango', 'client' ], access: [
|
|
44
44
|
{ featureName: 'analytics', name: 'tangoTraffic', permissions: [ 'isView' ] },
|
|
45
45
|
],
|
|
46
46
|
} ), validate( validationDtos.validateDensityDwellParams ), densityDwellV1 )
|
|
47
47
|
|
|
48
|
-
.post( '/overallCards_v1',
|
|
48
|
+
.post( '/overallCards_v1', isAllowedMobileSessionHandler, isAllowedClient, authorize( {
|
|
49
49
|
userType: [ 'tango', 'client' ], access: [
|
|
50
50
|
{ featureName: 'analytics', name: 'tangoTraffic', permissions: [ 'isView' ] },
|
|
51
51
|
],
|
|
52
52
|
} ), validate( validationDtos.validateOverallCharParams ), overallCardsV1 )
|
|
53
53
|
|
|
54
|
-
.post( '/overallChart_v1',
|
|
54
|
+
.post( '/overallChart_v1', isAllowedMobileSessionHandler, isAllowedClient, authorize( {
|
|
55
55
|
userType: [ 'tango', 'client' ], access: [
|
|
56
56
|
{ featureName: 'analytics', name: 'tangoTraffic', permissions: [ 'isView' ] },
|
|
57
57
|
],
|
|
58
58
|
} ), validate( validationDtos.validateOverallCharParams ), overallChartV1 )
|
|
59
59
|
|
|
60
|
-
.post( '/singleStoreChart_v1',
|
|
60
|
+
.post( '/singleStoreChart_v1', isAllowedMobileSessionHandler, isAllowedClient, authorize( {
|
|
61
61
|
userType: [ 'tango', 'client' ], access: [
|
|
62
62
|
{ featureName: 'analytics', name: 'tangoTraffic', permissions: [ 'isView' ] },
|
|
63
63
|
],
|
|
64
64
|
} ), validate( validationDtos.validateSingleStoreChartParams ), singleStoreChartV1 )
|
|
65
65
|
|
|
66
|
-
.post( '/demographicChart_v1',
|
|
66
|
+
.post( '/demographicChart_v1', isAllowedMobileSessionHandler, isAllowedClient, authorize( {
|
|
67
67
|
userType: [ 'tango', 'client' ], access: [
|
|
68
68
|
{ featureName: 'analytics', name: 'tangoTraffic', permissions: [ 'isView' ] },
|
|
69
69
|
],
|
|
70
70
|
} ), validate( validationDtos.validateDemographicChartParams ), demographicChartV1 )
|
|
71
71
|
|
|
72
|
-
.post( '/buyerChart_v1',
|
|
72
|
+
.post( '/buyerChart_v1', isAllowedMobileSessionHandler, isAllowedClient, authorize( {
|
|
73
73
|
userType: [ 'tango', 'client' ], access: [
|
|
74
74
|
{ featureName: 'analytics', name: 'tangoTraffic', permissions: [ 'isView' ] },
|
|
75
75
|
],
|
|
76
76
|
} ), validate( validationDtos.validateBuyerChartParams ), buyerChartV1 )
|
|
77
77
|
|
|
78
|
-
.post( '/footfallDirectoryFolders_v1',
|
|
78
|
+
.post( '/footfallDirectoryFolders_v1', isAllowedMobileSessionHandler, isAllowedClient, authorize( {
|
|
79
79
|
userType: [ 'tango', 'client' ], access: [
|
|
80
80
|
{ featureName: 'analytics', name: 'tangoTraffic', permissions: [ 'isView' ] },
|
|
81
81
|
],
|
|
82
82
|
} ), validate( validationDtos.validateFootfallDirectoryFoldersParams ), footfallDirectoryFoldersV1 )
|
|
83
83
|
|
|
84
|
-
.post( '/footfallDirectory_v1',
|
|
84
|
+
.post( '/footfallDirectory_v1', isAllowedMobileSessionHandler, isAllowedClient, authorize( {
|
|
85
85
|
userType: [ 'tango', 'client' ], access: [
|
|
86
86
|
{ featureName: 'analytics', name: 'tangoTraffic', permissions: [ 'isView' ] },
|
|
87
87
|
],
|
|
88
88
|
} ), validate( validationDtos.validateFootfallDirectoryParams ), footfallDirectoryV1 )
|
|
89
89
|
|
|
90
|
-
.post( '/storeOperation_v1',
|
|
90
|
+
.post( '/storeOperation_v1', isAllowedMobileSessionHandler, isAllowedClient, authorize( {
|
|
91
91
|
userType: [ 'tango', 'client' ], access: [
|
|
92
92
|
{ featureName: 'analytics', name: 'tangoTraffic', permissions: [ 'isView' ] },
|
|
93
93
|
],
|
|
94
94
|
} ), validate( validationDtos.validateStoreOperationParams ), storeOperationV1 )
|
|
95
95
|
|
|
96
|
-
.post( '/zoneDwellTimeSplit_v1',
|
|
96
|
+
.post( '/zoneDwellTimeSplit_v1', isAllowedMobileSessionHandler, isAllowedClient, authorize( {
|
|
97
97
|
userType: [ 'tango', 'client' ], access: [
|
|
98
98
|
{ featureName: 'analytics', name: 'tangoTraffic', permissions: [ 'isView' ] },
|
|
99
99
|
],
|
|
100
100
|
} ), validate( validationDtos.validateStoreOperationParams ), zoneDwellTimeSplitV1 )
|
|
101
101
|
|
|
102
|
-
.post( '/getMySubscription_v1',
|
|
102
|
+
.post( '/getMySubscription_v1', isAllowedMobileSessionHandler, validate( validationDtos.getMyProductParams ), getMySubscription );
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
export default mobileTrafficAnalysisRouter;
|