tango-app-api-trax 3.4.0-alpha-3 → 3.4.0-beta-0

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.
@@ -0,0 +1,18 @@
1
+ import express from 'express';
2
+ import { isAllowedInternalAPIHandler, isAllowedSessionHandler } from 'tango-app-api-middleware';
3
+
4
+ export const traxActivityLogRouter = express.Router();
5
+
6
+ import {
7
+ insertLog,
8
+ updateLog,
9
+ listLog,
10
+ } from '../controllers/activityLog.controller.js';
11
+
12
+ traxActivityLogRouter
13
+ .post( '/insertLog', isAllowedInternalAPIHandler, insertLog )
14
+ .post( '/updateLog', isAllowedInternalAPIHandler, updateLog )
15
+ .post( '/listLog', isAllowedSessionHandler, listLog );
16
+
17
+
18
+ export default traxActivityLogRouter;
@@ -20,6 +20,7 @@ internalTraxRouter
20
20
  .post( '/getPDFCSVChecklistDetails', isAllowedInternalAPIHandler, internalController.getPDFCSVChecklistDetails )
21
21
  .get( '/getOTP', isAllowedInternalAPIHandler, internalController.getOTP )
22
22
  .get( '/getDownloads', isAllowedInternalAPIHandler, internalController.getDownloads )
23
- .post( '/sendPushNotification', isAllowedInternalAPIHandler, internalController.internalSendPushNotification );
23
+ .post( '/sendPushNotification', isAllowedInternalAPIHandler, internalController.internalSendPushNotification )
24
+ .post( '/sendAiPushNotification', isAllowedInternalAPIHandler, internalController.internalAISendPushNotification );
24
25
 
25
26
 
@@ -18,6 +18,8 @@ import {
18
18
  flagComparisonCardsV1,
19
19
  flagTablesV1,
20
20
  checklistDropdownV1,
21
+ flagTablesV2,
22
+ flagComparisonCardsV2,
21
23
  } from '../controllers/teaxFlag.controller.js';
22
24
  import { isAllowedSessionHandler } from 'tango-app-api-middleware';
23
25
  import { accessVerification } from 'tango-app-api-middleware';
@@ -68,7 +70,13 @@ traxFlagRouter
68
70
  flagComparisonCardsV1 )
69
71
  .post( '/flagTablesV1', isAllowedSessionHandler,
70
72
  accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [] } ] } ),
71
- flagTablesV1 );
73
+ flagTablesV1 )
74
+ .post( '/flagComparisonCardsV2', isAllowedSessionHandler,
75
+ accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [] } ] } ),
76
+ flagComparisonCardsV2 )
77
+ .post( '/flagTablesV2', isAllowedSessionHandler,
78
+ accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [] } ] } ),
79
+ flagTablesV2 );
72
80
 
73
81
 
74
82
  export default traxFlagRouter;