s.hajizadeh 8d396762a2 fix(fanavaran): select latest active policy by end date
Why:
- Fanavaran policy inquiry response order is inconsistent, so selecting the last item can choose an old or expired policy.

Changes:
- Select the policy with the latest Jalali EndDate.
- Reject empty policy responses, expired latest policies, and latest policies without a valid PolicyId.
- Stop Fanavaran submission when PolicyId cannot be resolved.

Impact:
- Fanavaran submit now fails clearly instead of continuing with PolicyId: null.
2026-06-30 11:51:11 +03:30
2026-06-27 16:50:57 +03:30
2026-06-20 16:30:57 +03:30
2026-06-23 10:26:51 +03:30
2026-01-18 14:34:05 +03:30
2026-06-23 15:56:51 +03:30
2026-06-23 15:56:51 +03:30
2026-06-23 15:56:51 +03:30
2026-06-13 17:24:25 +03:30

api

Current JWT payload:

{
  "username": "saman_insurer@gmail.com",
  "sub": "6a144979799f3c63aa63f67c",
  "fullName": "بیمه گر سامان",
  "role": "company",
  "userType": "UserType",
  "clientKey": "67f0fd0e53868dc1ff8a2738",
  "iat": 1781339791,
  "exp": 1781343391
}
Description
this is the fork of the Yara724
Readme 16 MiB
Languages
TypeScript 98.6%
JavaScript 1.2%
Shell 0.2%