mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 05:27:52 +00:00
feat(notifications): User Notifications
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user