@flusys/nestjs-notification 5.4.0 → 5.4.1
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.
|
@@ -137,7 +137,7 @@ let NotificationService = class NotificationService extends _classes.ApiService
|
|
|
137
137
|
}
|
|
138
138
|
return result;
|
|
139
139
|
}
|
|
140
|
-
async afterInsertOperation(entities, _user, _qr) {
|
|
140
|
+
async afterInsertOperation(entities, _dto, _user, _qr) {
|
|
141
141
|
for (const entity of entities){
|
|
142
142
|
const ext = entity;
|
|
143
143
|
this.emitToUser(entity.userId, ext.companyId, 'notification:new', this.toPayload(entity));
|
|
@@ -127,7 +127,7 @@ export class NotificationService extends ApiService {
|
|
|
127
127
|
}
|
|
128
128
|
return result;
|
|
129
129
|
}
|
|
130
|
-
async afterInsertOperation(entities, _user, _qr) {
|
|
130
|
+
async afterInsertOperation(entities, _dto, _user, _qr) {
|
|
131
131
|
for (const entity of entities){
|
|
132
132
|
const ext = entity;
|
|
133
133
|
this.emitToUser(entity.userId, ext.companyId, 'notification:new', this.toPayload(entity));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flusys/nestjs-notification",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.1",
|
|
4
4
|
"description": "Notification module with real-time Socket.IO support",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "fesm/index.js",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"express": "^4.18.0 || ^5.0.0"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@flusys/nestjs-core": "5.4.
|
|
96
|
-
"@flusys/nestjs-shared": "5.4.
|
|
95
|
+
"@flusys/nestjs-core": "5.4.1",
|
|
96
|
+
"@flusys/nestjs-shared": "5.4.1",
|
|
97
97
|
"jsonwebtoken": "^9.0.0"
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -28,7 +28,7 @@ export declare class NotificationService extends ApiService<CreateNotificationDt
|
|
|
28
28
|
query: SelectQueryBuilder<NotificationBase>;
|
|
29
29
|
isRaw: boolean;
|
|
30
30
|
}>;
|
|
31
|
-
protected afterInsertOperation(entities: NotificationBase[], _user: ILoggedUserInfo | null, _qr: QueryRunner): Promise<void>;
|
|
31
|
+
protected afterInsertOperation(entities: NotificationBase[], _dto: CreateNotificationDto | Array<CreateNotificationDto>, _user: ILoggedUserInfo | null, _qr: QueryRunner): Promise<void>;
|
|
32
32
|
markAsRead(id: string, user: ILoggedUserInfo): Promise<NotificationBase>;
|
|
33
33
|
markAllAsRead(user: ILoggedUserInfo): Promise<number>;
|
|
34
34
|
getUnreadCount(user: ILoggedUserInfo): Promise<number>;
|