update the fanavaran which accepts unknown person too

This commit is contained in:
2026-09-14 13:42:53 +03:30
parent 6e5b7cb1fd
commit b13b0211ad
9 changed files with 758 additions and 4 deletions

View File

@@ -182,6 +182,44 @@ export class LookupsService {
return await this.getClientRemoteLookup("dmg-business-line");
}
async getGender(): Promise<any> {
return await this.getClientRemoteLookup("gender");
}
async getMaritalStatus(): Promise<any> {
return await this.getClientRemoteLookup("marital-status");
}
async getAns(): Promise<any> {
return await this.getClientRemoteLookup("ans");
}
async getCountries(): Promise<any> {
return await this.getClientRemoteLookup("countries");
}
async getPersonKind(): Promise<any> {
return await this.getClientRemoteLookup("person-kind");
}
async getCiiValidationStatus(): Promise<any> {
return await this.getClientRemoteLookup("cii-validation-status");
}
async otherPersonById(personId: number): Promise<unknown> {
const clientKey = this.activeClientKey();
const person = await this.fanavaranLookupService.getOtherPerson(
clientKey,
personId,
);
if (person == null) {
throw new NotFoundException(
`Fanavaran other-person ${personId} was not found.`,
);
}
return person;
}
async inquiryByUniqueIdentifier(query: {
nationalCode?: string;
birthday?: string;