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:
18
packages/utils/src/dates.d.ts
vendored
Normal file
18
packages/utils/src/dates.d.ts
vendored
Normal 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
|
||||
Reference in New Issue
Block a user