fix notification

This commit is contained in:
Peter Maquiran
2024-06-28 07:44:43 +01:00
parent ac0ead4885
commit 0281db0d83
18 changed files with 243 additions and 218 deletions
@@ -108,7 +108,7 @@ export class AgendaDataRepositoryService {
}
async searchEvent(queryParameters: {value}, tracing?: TracingType) {
async searchEvent(queryParameters: {value, status}, tracing?: TracingType) {
const result = await this.agendaDataService.searchEvent(queryParameters)
return result.map( response => {
APINODReturn(EventListDataOutputDTOSchema, response, 'get/Events', tracing)
@@ -74,7 +74,7 @@ export class AgendaDataService {
return this.http.get<any>(`${this.baseUrl}/Events`, { params });
}
searchEvent(queryParameter: {value}) {
searchEvent(queryParameter: {value, status}) {
return this.httpService.get<EventListOutputDTO>(`${this.baseUrl}/Events`, queryParameter);
}
@@ -82,6 +82,7 @@ export class EventMapper {
// "RoleDescription": null,
// "RoleId": 0
})),
"Status": status,
"IsMeeting": category,
"IsRecurring": dto.isRecurring,
"IsAllDayEvent": dto.isAllDayEvent,
@@ -79,6 +79,13 @@ export class EventToApproveDetailsMapper {
let status;
if(dto.status == EEventStatus.Pending) {
status = 'Pending'
} else if(dto.status == EEventStatus.Revision) {
status = 'Revision'
}
return {
"owner": dto.owner,
"serialNumber": dto.id,
@@ -119,7 +126,7 @@ export class EventToApproveDetailsMapper {
// "MDName": "Eduardo Vilarinho",
// "MDEmail": "evilarinho@gabinetedigital.local",
// "OriginatorComments": "",
"Status": "Active",
"Status": status,
"TimeZone": getTextInsideParentheses(new Date(dto.startDate)+ ''),
"Agenda": category ,
"EventType": dto.type,