Treasury & Bank Transfer Management System — سامانه مدیریت خزانه‌داری و حواله‌های بانکی

1 export function acceptLoadProfile(x:{p95Ms:number;errorRate:number;maxP95Ms:number;maxErrorRate:number}){return x.p95Ms<=x.maxP95Ms&&x.errorRate<=x.maxErrorRate};export type Outcome='UNKNOWN'|'TRANSIENT_FAILURE'|'SUCCESS';export function retryDecision(outcome:Outcome,attempt:number,maxAttempts:number){if(outcome==='UNKNOWN')return 'REVIEW' as const;if(outcome==='SUCCESS')return 'STOP' as const;return attempt<maxAttempts?'RETRY' as const:'STOP' as const}