diff --git a/lib/package-lock.json b/lib/package-lock.json index 997cb69..0a63730 100644 --- a/lib/package-lock.json +++ b/lib/package-lock.json @@ -1,12 +1,12 @@ { "name": "@alkemio/notifications-lib", - "version": "0.10.0", + "version": "0.10.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@alkemio/notifications-lib", - "version": "0.10.0", + "version": "0.10.1", "license": "EUPL-1.2", "dependencies": { "@alkemio/client-lib": "^0.32.0" diff --git a/lib/package.json b/lib/package.json index 2e28604..974db3d 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,6 +1,6 @@ { "name": "@alkemio/notifications-lib", - "version": "0.10.0", + "version": "0.10.1", "description": "Library for interacting with Alkemio notifications service", "author": "Alkemio Foundation", "private": false, diff --git a/lib/src/dto/in-app/in.app.notification.contributor.mentioned.payload.ts b/lib/src/dto/in-app/in.app.notification.contributor.mentioned.payload.ts index 20670c3..7d19ab8 100644 --- a/lib/src/dto/in-app/in.app.notification.contributor.mentioned.payload.ts +++ b/lib/src/dto/in-app/in.app.notification.contributor.mentioned.payload.ts @@ -7,7 +7,7 @@ export interface InAppNotificationContributorMentionedPayload extends InAppNotif comment: string; // probably will be removed; can be too large; can be replaced with roomID, commentID contributorType: CommunityContributorType commentOrigin: { - type: string; // forum, reply, event, post, callout + displayName: string; url: string; } } diff --git a/service/package-lock.json b/service/package-lock.json index ddb7a89..7df3dea 100644 --- a/service/package-lock.json +++ b/service/package-lock.json @@ -10,7 +10,7 @@ "license": "EUPL-1.2", "dependencies": { "@alkemio/client-lib": "^0.32.0", - "@alkemio/notifications-lib": "0.10.0", + "@alkemio/notifications-lib": "0.10.1", "@nestjs/common": "^8.0.5", "@nestjs/config": "^1.0.1", "@nestjs/core": "^8.0.5", @@ -61,7 +61,7 @@ "typescript": "^4.3.5" }, "engines": { - "node": ">=16.15.0", + "node": ">=20.15.0", "npm": ">=8.5.5" } }, @@ -186,9 +186,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" }, @@ -14687,9 +14687,9 @@ } }, "@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/service/package.json b/service/package.json index d2bda99..73f5b26 100644 --- a/service/package.json +++ b/service/package.json @@ -36,7 +36,7 @@ }, "dependencies": { "@alkemio/client-lib": "^0.32.0", - "@alkemio/notifications-lib": "0.10.0", + "@alkemio/notifications-lib": "0.10.1", "@nestjs/common": "^8.0.5", "@nestjs/config": "^1.0.1", "@nestjs/core": "^8.0.5", diff --git a/service/src/services/builders/in-app/contributor.mentioned.in.app.notification.builder.ts b/service/src/services/builders/in-app/contributor.mentioned.in.app.notification.builder.ts index 579d227..96bffbc 100644 --- a/service/src/services/builders/in-app/contributor.mentioned.in.app.notification.builder.ts +++ b/service/src/services/builders/in-app/contributor.mentioned.in.app.notification.builder.ts @@ -77,7 +77,10 @@ const contributorMentionBuilder = ( category, triggeredByID, comment, - commentOrigin: { url: commentOrigin.url, type: '' }, + commentOrigin: { + url: commentOrigin.url, + displayName: commentOrigin.displayName, + }, contributorType: contributorType as CommunityContributorType, receiverID: '', };