feat: add support for license validity defined in days alongside months

This commit is contained in:
estifanos
2026-08-29 08:41:08 +00:00
parent 53c0ec98af
commit e25a786139
7 changed files with 82 additions and 25 deletions

View File

@@ -227,6 +227,7 @@ export const licensingApi = baseApi
requiresValidMedical?: boolean;
minSeaTimeDays?: number | null;
validityMonths?: number;
validityDays?: number | null;
capitalThreshold?: number | null;
renewalWindowDays?: number;
expiryReminderDays?: number[];

View File

@@ -187,6 +187,11 @@ export interface LicenseType {
feeCurrency: string;
capitalThreshold: string | number | null;
validityMonths: number;
/**
* A term in days instead of months, for licences shorter than a month can
* express. Wins over `validityMonths` when set; null keeps calendar months.
*/
validityDays?: number | null;
/**
* Target turnaround in hours. Null means this type is not tracked against
* an SLA, which the grid renders as "—" rather than as instantly overdue.