Fix TypeScript build errors

- Remove duplicate EscalationLevel export from regulatory.ts
- Add missing logger.ts and reports.ts files to audit package
- Fix treasury package type issues
- Clean dist folders and rebuild
This commit is contained in:
defiQUG
2026-01-23 14:53:05 -08:00
parent 8c771da399
commit aedf572b99
185 changed files with 2925 additions and 4 deletions

18
packages/utils/src/dates.d.ts vendored Normal file
View File

@@ -0,0 +1,18 @@
/**
* Date utilities for effective date logic and rolling windows
*/
export declare function isEffectiveDate(date: Date, effectiveDate: Date, expiryDate?: Date): boolean;
export interface RollingWindow {
startDate: Date;
endDate: Date;
days: number;
}
export declare function calculateRollingWindow(referenceDate: Date, windowDays: number): RollingWindow;
export declare function isWithinRollingWindow(date: Date, window: RollingWindow): boolean;
export declare function filterDatesInWindow(dates: Date[], window: RollingWindow): Date[];
export declare function calculateRetentionExpiry(creationDate: Date, retentionDays: number): Date;
export declare function shouldArchive(creationDate: Date, archivalAfterDays: number, currentDate?: Date): boolean;
export declare function shouldDelete(creationDate: Date, retentionDays: number, currentDate?: Date): boolean;
export declare function formatISO20022Date(date: Date): string;
export declare function formatISO20022DateTime(date: Date): string;
//# sourceMappingURL=dates.d.ts.map