@flusys/nestjs-event-manager 5.1.1 → 5.1.2
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.
|
@@ -96,7 +96,10 @@ let EventController = class EventController extends (0, _classes.createApiContro
|
|
|
96
96
|
}) {
|
|
97
97
|
async getCalendarEvents(dto, user) {
|
|
98
98
|
const events = await this.eventService.getEventsForCalendarRange(dto, user);
|
|
99
|
-
const
|
|
99
|
+
const plainOptions = {
|
|
100
|
+
excludeExtraneousValues: true
|
|
101
|
+
};
|
|
102
|
+
const data = (0, _classtransformer.plainToInstance)(_dtos1.CalendarEventResponseDto, events, plainOptions);
|
|
100
103
|
return {
|
|
101
104
|
success: true,
|
|
102
105
|
message: 'Calendar events retrieved successfully',
|
|
@@ -112,11 +115,14 @@ let EventController = class EventController extends (0, _classes.createApiContro
|
|
|
112
115
|
}
|
|
113
116
|
async updateParticipantStatus(dto, user) {
|
|
114
117
|
const participant = await this.eventService.updateParticipantStatus(dto, user);
|
|
118
|
+
const plainOptions = {
|
|
119
|
+
excludeExtraneousValues: true
|
|
120
|
+
};
|
|
115
121
|
return {
|
|
116
122
|
success: true,
|
|
117
123
|
message: 'Participant status updated successfully',
|
|
118
124
|
messageKey: _config.EVENT_PARTICIPANT_MESSAGES.STATUS_UPDATE_SUCCESS,
|
|
119
|
-
data: (0, _classtransformer.plainToInstance)(_dtos1.EventParticipantResponseDto, participant)
|
|
125
|
+
data: (0, _classtransformer.plainToInstance)(_dtos1.EventParticipantResponseDto, participant, plainOptions)
|
|
120
126
|
};
|
|
121
127
|
}
|
|
122
128
|
constructor(eventService){
|
|
@@ -86,7 +86,10 @@ export class EventController extends createApiController(CreateEventDto, UpdateE
|
|
|
86
86
|
}) {
|
|
87
87
|
async getCalendarEvents(dto, user) {
|
|
88
88
|
const events = await this.eventService.getEventsForCalendarRange(dto, user);
|
|
89
|
-
const
|
|
89
|
+
const plainOptions = {
|
|
90
|
+
excludeExtraneousValues: true
|
|
91
|
+
};
|
|
92
|
+
const data = plainToInstance(CalendarEventResponseDto, events, plainOptions);
|
|
90
93
|
return {
|
|
91
94
|
success: true,
|
|
92
95
|
message: 'Calendar events retrieved successfully',
|
|
@@ -102,11 +105,14 @@ export class EventController extends createApiController(CreateEventDto, UpdateE
|
|
|
102
105
|
}
|
|
103
106
|
async updateParticipantStatus(dto, user) {
|
|
104
107
|
const participant = await this.eventService.updateParticipantStatus(dto, user);
|
|
108
|
+
const plainOptions = {
|
|
109
|
+
excludeExtraneousValues: true
|
|
110
|
+
};
|
|
105
111
|
return {
|
|
106
112
|
success: true,
|
|
107
113
|
message: 'Participant status updated successfully',
|
|
108
114
|
messageKey: EVENT_PARTICIPANT_MESSAGES.STATUS_UPDATE_SUCCESS,
|
|
109
|
-
data: plainToInstance(EventParticipantResponseDto, participant)
|
|
115
|
+
data: plainToInstance(EventParticipantResponseDto, participant, plainOptions)
|
|
110
116
|
};
|
|
111
117
|
}
|
|
112
118
|
constructor(eventService){
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flusys/nestjs-event-manager",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"description": "Event manager module with calendar support and recurrence",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "fesm/index.js",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"express": "^4.18.0"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@flusys/nestjs-core": "5.1.
|
|
88
|
-
"@flusys/nestjs-shared": "5.1.
|
|
87
|
+
"@flusys/nestjs-core": "5.1.2",
|
|
88
|
+
"@flusys/nestjs-shared": "5.1.2"
|
|
89
89
|
}
|
|
90
90
|
}
|