feat(onboarding): extend OnboardingDbSettings with retention, schedule, and policy fields

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Théo LAGACHE
2026-06-19 15:26:55 +02:00
co-authored by Claude Sonnet 4.6
parent 0e4b5585e3
commit 870410efbf
+26 -3
View File
@@ -62,10 +62,33 @@ export type OnboardingDatabase = {
engine: "postgres" | "mysql" | "mongodb";
};
export type OnboardingNotificationPolicy = {
channelId: string;
eventKinds: string[];
enabled: boolean;
};
export type OnboardingStoragePolicy = {
channelId: string;
enabled: boolean;
};
export type OnboardingDbSettings = {
retentionDays: number;
notifierId?: string;
storageId?: string;
retention?: {
type?: "count" | "days" | "gfs";
count: number;
days: number;
gfs: {
daily: number;
weekly: number;
monthly: number;
yearly: number;
};
};
backupMethod?: "manual" | "automatic";
backupCron?: string;
notificationPolicies?: OnboardingNotificationPolicy[];
storagePolicies?: OnboardingStoragePolicy[];
};
export type OnboardingProjectData = {