forked from Yara724/api
update the fanavaran which accepts unknown person too
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user