-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(application-system): built in notifications (#16352)
* mmodule and client update * notification templates * add definitions and fix reference application * Add Hnipp to CRC v2 * Add notifications * Add notification to organization rejection * Cleanup * Fix getconfigvalue * Rename fields * Fixes --------- Co-authored-by: Gunnar K Vilbergsson <[email protected]> Co-authored-by: norda-gunni <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
40811a5
commit c910dd7
Showing
13 changed files
with
349 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
libs/application/template-api-modules/src/lib/notification/notificationTypes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { NotificationConfig, NotificationType } from './notificationsTemplates' | ||
|
||
export type NotificationConfigType = typeof NotificationConfig | ||
export type NotificationTypeKey = keyof typeof NotificationConfig | ||
export type NotificationArgs<T extends NotificationTypeKey> = | ||
NotificationConfigType[T]['keys'] |
11 changes: 11 additions & 0 deletions
11
libs/application/template-api-modules/src/lib/notification/notifications.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Module } from '@nestjs/common' | ||
|
||
import { UserNotificationClientModule } from '@island.is/clients/user-notification' | ||
import { NotificationsService } from './notifications.service' | ||
|
||
@Module({ | ||
imports: [UserNotificationClientModule], | ||
providers: [NotificationsService], | ||
exports: [NotificationsService], | ||
}) | ||
export class ApplicationsNotificationsModule {} |
Oops, something went wrong.