feat(dentaquest) - implement DentaQuest eligibility check with Selenium integration; added routes, services, and frontend components for OTP handling and eligibility status retrieval

This commit is contained in:
2026-01-20 22:08:06 -05:00
parent 3907672185
commit 279a6b8dbc
13 changed files with 2760 additions and 19 deletions

View File

@@ -22,10 +22,10 @@ export const insuranceIdSchema = z.preprocess(
}
return val;
},
// After preprocess, require digits-only string (or optional nullable)
// After preprocess, allow alphanumeric insurance IDs (some providers like DentaQuest use letter prefixes)
z
.string()
.regex(/^\d+$/, { message: "Insurance ID must contain only digits" })
.regex(/^[A-Za-z0-9]+$/, { message: "Insurance ID must contain only letters and digits" })
.min(1)
.max(32)
.optional()