diff --git a/package-lock.json b/package-lock.json index 881893f81..3510c7802 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "EUPL-1.2", "dependencies": { "@alkemio/matrix-adapter-lib": "^0.4.1", - "@alkemio/notifications-lib": "0.10.0", + "@alkemio/notifications-lib": "0.10.1", "@apollo/server": "^4.10.4", "@elastic/elasticsearch": "^8.12.2", "@golevelup/nestjs-rabbitmq": "^5.3.0", @@ -231,9 +231,9 @@ } }, "node_modules/@alkemio/notifications-lib": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/@alkemio/notifications-lib/-/notifications-lib-0.10.0.tgz", - "integrity": "sha512-deN7VBc9wqC469uRZ5uI5DoPzhNV/HiKzaYtW3inzFR6dAPe/cMSWv0otLfMrGYJJl2dIItQAhXhimKeWv3/Jg==", + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/@alkemio/notifications-lib/-/notifications-lib-0.10.1.tgz", + "integrity": "sha512-wHmJCkVtDDWiKiVu5XbjbVpP19vxGLVCgxTE99c22dkE//+BMoGpCcE8EVaELFa+YmBaTSfoXFgYxsTHBdNswA==", "dependencies": { "@alkemio/client-lib": "^0.32.0" }, @@ -14521,9 +14521,9 @@ "integrity": "sha512-9EW0tOIeDPPaExF4aBpjZ839+NvU0VwGTuFHJu6PGZxVP6ncIcNtVcgi6T7fsONFMeYoZtcS38ZiH8FesCpI5Q==" }, "@alkemio/notifications-lib": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/@alkemio/notifications-lib/-/notifications-lib-0.10.0.tgz", - "integrity": "sha512-deN7VBc9wqC469uRZ5uI5DoPzhNV/HiKzaYtW3inzFR6dAPe/cMSWv0otLfMrGYJJl2dIItQAhXhimKeWv3/Jg==", + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/@alkemio/notifications-lib/-/notifications-lib-0.10.1.tgz", + "integrity": "sha512-wHmJCkVtDDWiKiVu5XbjbVpP19vxGLVCgxTE99c22dkE//+BMoGpCcE8EVaELFa+YmBaTSfoXFgYxsTHBdNswA==", "requires": { "@alkemio/client-lib": "^0.32.0" } diff --git a/package.json b/package.json index dc20c3532..e0fec80aa 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ }, "dependencies": { "@alkemio/matrix-adapter-lib": "^0.4.1", - "@alkemio/notifications-lib": "0.10.0", + "@alkemio/notifications-lib": "0.10.1", "@apollo/server": "^4.10.4", "@elastic/elasticsearch": "^8.12.2", "@golevelup/nestjs-rabbitmq": "^5.3.0", diff --git a/src/domain/in-app-notification-reader/field-resolvers/in.app.notification.user.mentioned.resolver.fields.ts b/src/domain/in-app-notification-reader/field-resolvers/in.app.notification.user.mentioned.resolver.fields.ts index 983b804df..7d747a0f5 100644 --- a/src/domain/in-app-notification-reader/field-resolvers/in.app.notification.user.mentioned.resolver.fields.ts +++ b/src/domain/in-app-notification-reader/field-resolvers/in.app.notification.user.mentioned.resolver.fields.ts @@ -33,4 +33,15 @@ export class InAppNotificationUserMentionedResolverFields { ): string { return payload.commentOrigin.url; } + + @ResolveField(() => String, { + nullable: false, + description: + 'The display name of the resource where the comment was created.', + }) + public commentOriginName( + @Parent() { payload }: InAppNotificationUserMentioned + ): string { + return payload.commentOrigin.displayName; + } }