tango-app-api-trax 3.3.1-beta-12 → 3.3.1-beta-14
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.
|
@@ -13,7 +13,7 @@ traxRouter
|
|
|
13
13
|
.post( '/runAIInsert', isAllowedSessionHandler, isAllowedClient, accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [ 'isEdit' ] } ] } ), validate( runaiValidation ), traxController.runAIInsert )
|
|
14
14
|
.get( '/duplicateChecklist/:checklistId', isAllowedSessionHandler, isAllowedClient, accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [ 'isEdit' ] } ] } ), validate( duplicateValidation ), traxController.duplicateChecklist )
|
|
15
15
|
.put( '/checklist/update/:checklistId', isAllowedSessionHandler, isAllowedClient, accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [ 'isEdit' ] } ] } ), validate( updateChecklistValidation ), traxController.update )
|
|
16
|
-
.post( '/validateUser', isAllowedSessionHandler, isAllowedClient, accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [ 'isEdit' ] } ] } ), validate( uploadUserValidation ), traxController.
|
|
16
|
+
.post( '/validateUser', isAllowedSessionHandler, isAllowedClient, accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [ 'isEdit' ] } ] } ), validate( uploadUserValidation ), traxController.validateUserv1 )
|
|
17
17
|
.get( '/userDetails/:checklistId', isAllowedSessionHandler, isAllowedClient, accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [ ] } ] } ), validate( duplicateValidation ), traxController.assignedUserDetails )
|
|
18
18
|
.post( '/checklistConfigure', isAllowedSessionHandler, isAllowedClient, accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [ 'isEdit' ] } ] } ), traxController.updateConfigure )
|
|
19
19
|
.post( '/checklistConfigurev1', isAllowedSessionHandler, isAllowedClient, accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [ 'isEdit' ] } ] } ), traxController.updateConfigurev1 )
|
|
@@ -25,7 +25,8 @@ traxRouter
|
|
|
25
25
|
.get( '/predefinedChecklist', isAllowedSessionHandler, isAllowedClient, accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [ ] } ] } ), validate( aichecklistValidation ), traxController.preDefinedChecklist )
|
|
26
26
|
.post( '/selectAssign', validate( selectAssign ), traxController.selectAssign )
|
|
27
27
|
.post( '/assign', isAllowedSessionHandler, traxController.checklistAssign )
|
|
28
|
-
.post( '/remove', isAllowedSessionHandler, traxController.removeAssign )
|
|
29
|
-
.post( '/removeAssignList', isAllowedSessionHandler, traxController.deleteAssignList )
|
|
28
|
+
// .post( '/remove', isAllowedSessionHandler, traxController.removeAssign )
|
|
29
|
+
.post( '/removeAssignList', isAllowedSessionHandler, traxController.deleteAssignList )
|
|
30
|
+
.post( '/assignUpload', isAllowedSessionHandler, traxController.assignChecklistUser );
|
|
30
31
|
|
|
31
32
|
// isAllowedSessionHandler, isAllowedClient, accessVerification( { userType: [ 'tango', 'client' ], access: [ { featureName: 'TangoTrax', name: 'checklist', permissions: [ ] } ] } ),
|
|
@@ -24,6 +24,10 @@ export const updateMany = async ( query = {}, record={} ) => {
|
|
|
24
24
|
return model.checklistassignconfigModel.updateMany( query, { $set: record } );
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
+
export const updateOne = async ( query = {}, record={} ) => {
|
|
28
|
+
return model.checklistassignconfigModel.updateOne( query, { $set: record }, { upsert: true } );
|
|
29
|
+
};
|
|
30
|
+
|
|
27
31
|
export const aggregate = async ( query = {} ) => {
|
|
28
32
|
return model.checklistassignconfigModel.aggregate( query );
|
|
29
33
|
};
|