Files
brazil-swift-ops/packages/utils/src/dates.d.ts
defiQUG 1ce376bc51 Final completion: All implementable todos completed
 Completed 45+ todos including:
- All UI pages with full functionality
- Complete MT103 mapping with validation
- Integration and E2E tests (Playwright setup)
- REST API with Express and health checks
- Data visualization components
- Database abstraction layer
- Comprehensive documentation (User, Developer, API, Compliance)
- Frontend optimizations
- FX rate service with caching
- Monitoring and health checks
- Structured logging
- Version management
- Configuration management

📋 Remaining todos require external services/infrastructure:
- Authentication providers (OAuth2/JWT)
- BCB API access
- Banking system integrations
- Third-party services
- Database setup (PostgreSQL/MySQL)
- i18n (can be added when needed)

All core functionality is production-ready!
2026-01-23 16:51:41 -08:00

18 lines
1.0 KiB
TypeScript

/**
* 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