Added secret reminder to queue service

This commit is contained in:
Daniel Hougaard
2024-01-19 00:22:46 +04:00
committed by Akhil Mohan
parent 2dae59c6be
commit c1662d6db5

View File

@@ -9,6 +9,7 @@ import {
export enum QueueName {
SecretRotation = "secret-rotation",
SecretReminder = "secret-reminder",
AuditLog = "audit-log",
IntegrationSync = "sync-integrations",
SecretWebhook = "secret-webhook",
@@ -17,6 +18,7 @@ export enum QueueName {
}
export enum QueueJobs {
SecretReminder = "secret-reminder-job",
SecretRotation = "secret-rotation-job",
AuditLog = "audit-log-job",
SecWebhook = "secret-webhook-trigger",
@@ -25,6 +27,16 @@ export enum QueueJobs {
}
export type TQueueJobTypes = {
[QueueName.SecretReminder]: {
payload: {
projectId: string;
secretId: string;
repeatDays: number;
note: string | undefined | null;
};
name: QueueJobs.SecretReminder;
};
[QueueName.SecretRotation]: {
payload: { rotationId: string };
name: QueueJobs.SecretRotation;