fix(licence): validate driving licence IDs and preserve verified captions

This commit is contained in:
SepehrYahyaee
2026-10-03 15:08:16 +03:30
parent b20250b4b3
commit d9a8ec4b2f
11 changed files with 319 additions and 7 deletions
@@ -26,6 +26,8 @@ export class Person {
@Prop() driverLicenseDate?: string;
/** Driving licence type code from the Fanavaran lookup (GET /lookups/driving-licence-types). */
@Prop() licenseType?: string;
/** Server-verified caption at selection time; the provider ID remains licenseType. */
@Prop() licenseTypeLabel?: string;
@Prop({ type: Boolean })
driverIsInsurer?: boolean;
@@ -67,6 +69,7 @@ export class InquiryParticipant {
@Prop({ type: Boolean }) hasDrivingLicense?: boolean;
@Prop() licenseNumber?: string;
@Prop() licenseType?: string;
@Prop() licenseTypeLabel?: string;
@Prop() driverLicenseDate?: string;
}
export const InquiryParticipantSchema =