feat(infisical-pg): completed webhook and integration trigger queue

This commit is contained in:
Akhil Mohan
2024-01-27 12:38:23 +05:30
parent aed94ff5bb
commit 0bf658e501
19 changed files with 5281 additions and 68 deletions
+14 -2
View File
@@ -5,12 +5,16 @@ import { TCreateAuditLogDTO } from "@app/ee/services/audit-log/audit-log-types";
export enum QueueName {
SecretRotation = "secret-rotation",
AuditLog = "audit-log"
AuditLog = "audit-log",
IntegrationSync = "sync-integrations",
SecretWebhook = "secret-webhook"
}
export enum QueueJobs {
SecretRotation = "secret-rotation-job",
AuditLog = "audit-log-job"
AuditLog = "audit-log-job",
SecWebhook = "secret-webhook-trigger",
IntegrationSync = "secret-integration-pull"
}
export type TQueueJobTypes = {
@@ -22,6 +26,14 @@ export type TQueueJobTypes = {
name: QueueJobs.AuditLog;
payload: TCreateAuditLogDTO;
};
[QueueName.SecretWebhook]: {
name: QueueJobs.SecWebhook;
payload: { projectId: string; environment: string; secretPath: string };
};
[QueueName.IntegrationSync]: {
name: QueueJobs.IntegrationSync;
payload: { projectId: string; environment: string; secretPath: string };
};
};
export type TQueueServiceFactory = ReturnType<typeof queueServiceFactory>;