tango-app-api-infra 3.0.43-dev → 3.0.45-dev

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.
@@ -4,7 +4,7 @@ import { isAllowedSessionHandler, authorize } from 'tango-app-api-middleware';
4
4
  import { validateDetails, bulkvalidateDetails, validateTicket, bulkvalidateTicket, ticketExists, infraReasonExists, InfrastepstoResolve, InfraAlert } from '../validations/infra.validation.js';
5
5
  import { createTicket, bulkcreateTicket, updateStatus, createReason, PrimaryReasons,
6
6
  secondaryReason, updateTicketIssue, viewTicket, AlertTicketReply, uploadAttachments,
7
- updateInstallationTicket, emailUserList, saveInfraEmailConfig } from '../controllers/infra.controllers.js';
7
+ updateInstallationTicket, emailUserList, saveInfraEmailConfig, invoice } from '../controllers/infra.controllers.js';
8
8
 
9
9
 
10
10
  export const infraRouter = express.Router();
@@ -54,3 +54,4 @@ infraRouter.post( '/saveInfraEmailConfig', isAllowedSessionHandler, authorize( {
54
54
  userType: [ 'client', 'tango' ], access: [
55
55
  { featureName: 'settings', name: 'configuration', permissions: [ 'isEdit', 'isView' ] } ],
56
56
  } ), saveInfraEmailConfig );
57
+ infraRouter.post( '/invoice', invoice );
@@ -213,6 +213,7 @@ export async function infraReasonExists( req, res, next ) {
213
213
  actionType: 'issueUpdate',
214
214
  actionBy: actionBy,
215
215
  IdentifiedBy: req.user.userName,
216
+ timeStamp: new Date(),
216
217
  comment: req.body.comment,
217
218
  reasons: [ {
218
219
  primaryIssue: primaryReason.name,
@@ -231,6 +232,7 @@ export async function infraReasonExists( req, res, next ) {
231
232
  req.body.ticketActivity.push( {
232
233
  actionType: 'issueUpdate',
233
234
  actionBy: actionBy,
235
+ timeStamp: new Date(),
234
236
  IdentifiedBy: req.user.userName,
235
237
  comment: req.body.comment,
236
238
  reasons: [ {
@@ -267,6 +269,7 @@ export async function InfrastepstoResolve( req, res, next ) {
267
269
  req.body.ticketActivity.push( {
268
270
  actionType: 'stepsToResolve',
269
271
  actionBy: 'Tango',
272
+ timeStamp: new Date(),
270
273
  IdentifiedBy: 'Tango',
271
274
  reasons: steptoReslove.map( ( item ) => ( {
272
275
  primaryIssue: item.primaryIssue,
@@ -293,6 +296,7 @@ export async function InfraAlert( req, res, next ) {
293
296
  req.body.ticketActivity.push( {
294
297
  actionType: 'statusCheckReply',
295
298
  actionBy: 'User',
299
+ timeStamp: new Date(),
296
300
  IdentifiedBy: req.user.userName,
297
301
  hibernationDays: req.body.hibernationDays,
298
302
  } );
@@ -306,6 +310,7 @@ export async function InfraAlert( req, res, next ) {
306
310
  timeStamp: statusCheckAlertTime,
307
311
  actionBy: 'Tango',
308
312
  IdentifiedBy: 'Tango',
313
+ timeStamp: new Date(),
309
314
  statusCheckAlertTime: statusCheckAlertTime,
310
315
  } );
311
316
  }
@@ -320,6 +325,7 @@ export async function InfraAlert( req, res, next ) {
320
325
  req.body.ticketActivity.push( {
321
326
  actionType: 'comment',
322
327
  actionBy: actionBy,
328
+ timeStamp: new Date(),
323
329
  IdentifiedBy: req.user.userName,
324
330
  comment: req.body.comment,
325
331
  } );