feat(notifications): User Notifications

This commit is contained in:
x032205
2025-08-31 22:53:12 -04:00
parent 29dd49d696
commit 542cc0f93c
22 changed files with 756 additions and 15 deletions
+9 -2
View File
@@ -23,6 +23,7 @@ import { logger } from "@app/lib/logger";
import { QueueWorkerProfile } from "@app/lib/types";
import { CaType } from "@app/services/certificate-authority/certificate-authority-enums";
import { ExternalPlatforms } from "@app/services/external-migration/external-migration-types";
import { TCreateUserNotificationDTO } from "@app/services/notification/notification-types";
import {
TFailedIntegrationSyncEmailsPayload,
TIntegrationSyncPayload,
@@ -67,7 +68,8 @@ export enum QueueName {
SecretScanningV2 = "secret-scanning-v2",
TelemetryAggregatedEvents = "telemetry-aggregated-events",
DailyReminders = "daily-reminders",
SecretReminderMigration = "secret-reminder-migration"
SecretReminderMigration = "secret-reminder-migration",
UserNotification = "user-notification"
}
export enum QueueJobs {
@@ -109,7 +111,8 @@ export enum QueueJobs {
PkiSubscriberDailyAutoRenewal = "pki-subscriber-daily-auto-renewal",
TelemetryAggregatedEvents = "telemetry-aggregated-events",
DailyReminders = "daily-reminders",
SecretReminderMigration = "secret-reminder-migration"
SecretReminderMigration = "secret-reminder-migration",
UserNotification = "user-notification-job"
}
export type TQueueJobTypes = {
@@ -313,6 +316,10 @@ export type TQueueJobTypes = {
name: QueueJobs.TelemetryAggregatedEvents;
payload: undefined;
};
[QueueName.UserNotification]: {
name: QueueJobs.UserNotification;
payload: TCreateUserNotificationDTO;
};
};
const SECRET_SCANNING_JOBS = [