forked from Yara724/api
update the fanavaran which accepts unknown person too
This commit is contained in:
@@ -327,6 +327,90 @@ export class LookupsController {
|
||||
return await this.lookupsService.getDmgBusinessLine();
|
||||
}
|
||||
|
||||
@Get("gender")
|
||||
@ApiOperation({
|
||||
summary: "Fanavaran GEN.44 gender lookup",
|
||||
description:
|
||||
"Returns values for other-people payload field GenderId from common/code-list/gender.",
|
||||
})
|
||||
@ApiOkResponse({
|
||||
description: "Returns Fanavaran gender lookup data",
|
||||
schema: { type: "array", items: { type: "object" } },
|
||||
})
|
||||
async getGender() {
|
||||
return await this.lookupsService.getGender();
|
||||
}
|
||||
|
||||
@Get("marital-status")
|
||||
@ApiOperation({
|
||||
summary: "Fanavaran GEN.44 marital status lookup",
|
||||
description:
|
||||
"Returns values for other-people payload field MaritalStatus from common/code-list/marital-status.",
|
||||
})
|
||||
@ApiOkResponse({
|
||||
description: "Returns Fanavaran marital status lookup data",
|
||||
schema: { type: "array", items: { type: "object" } },
|
||||
})
|
||||
async getMaritalStatus() {
|
||||
return await this.lookupsService.getMaritalStatus();
|
||||
}
|
||||
|
||||
@Get("ans")
|
||||
@ApiOperation({
|
||||
summary: "Fanavaran GEN.44 yes/no lookup",
|
||||
description:
|
||||
"Returns values for other-people fields IsIranian / IsValid / IsVerified from common/code-list/ans.",
|
||||
})
|
||||
@ApiOkResponse({
|
||||
description: "Returns Fanavaran yes/no (ans) lookup data",
|
||||
schema: { type: "array", items: { type: "object" } },
|
||||
})
|
||||
async getAns() {
|
||||
return await this.lookupsService.getAns();
|
||||
}
|
||||
|
||||
@Get("countries")
|
||||
@ApiOperation({
|
||||
summary: "Fanavaran GEN.44 countries lookup",
|
||||
description:
|
||||
"Returns values for other-people payload field NationalityId from common/base-info/countries.",
|
||||
})
|
||||
@ApiOkResponse({
|
||||
description: "Returns Fanavaran countries lookup data",
|
||||
schema: { type: "array", items: { type: "object" } },
|
||||
})
|
||||
async getCountries() {
|
||||
return await this.lookupsService.getCountries();
|
||||
}
|
||||
|
||||
@Get("person-kind")
|
||||
@ApiOperation({
|
||||
summary: "Fanavaran GEN.44 person kind lookup",
|
||||
description:
|
||||
"Returns values for other-people payload field PersonKindId from common/code-list/person-kind.",
|
||||
})
|
||||
@ApiOkResponse({
|
||||
description: "Returns Fanavaran person kind lookup data",
|
||||
schema: { type: "array", items: { type: "object" } },
|
||||
})
|
||||
async getPersonKind() {
|
||||
return await this.lookupsService.getPersonKind();
|
||||
}
|
||||
|
||||
@Get("cii-validation-status")
|
||||
@ApiOperation({
|
||||
summary: "Fanavaran GEN.44 CII validation status lookup",
|
||||
description:
|
||||
"Returns values for other-people response fields CIIValidationStatus / CIIMobileStatus from common/code-list/cii-validation-status.",
|
||||
})
|
||||
@ApiOkResponse({
|
||||
description: "Returns Fanavaran CII validation status lookup data",
|
||||
schema: { type: "array", items: { type: "object" } },
|
||||
})
|
||||
async getCiiValidationStatus() {
|
||||
return await this.lookupsService.getCiiValidationStatus();
|
||||
}
|
||||
|
||||
@Get("inquiry-by-vin")
|
||||
@ApiOperation({
|
||||
summary: "Fanavaran vehicle inquiry by VIN",
|
||||
@@ -382,6 +466,25 @@ export class LookupsController {
|
||||
});
|
||||
}
|
||||
|
||||
@Get("other-people/:personId")
|
||||
@ApiOperation({
|
||||
summary: "Fanavaran GEN.44 other person by id",
|
||||
description:
|
||||
"GET common/other-people/{Id}. Use after parties inquiry misses and GEN.44 create, or to inspect a known person Id.",
|
||||
})
|
||||
@ApiParam({
|
||||
name: "personId",
|
||||
description: "Fanavaran other-people Id",
|
||||
example: 4553876,
|
||||
})
|
||||
@ApiOkResponse({
|
||||
description: "Returns the Fanavaran other-person record",
|
||||
schema: { type: "object" },
|
||||
})
|
||||
async otherPersonById(@Param("personId", ParseIntPipe) personId: number) {
|
||||
return await this.lookupsService.otherPersonById(personId);
|
||||
}
|
||||
|
||||
@Get("fanavaran")
|
||||
@ApiOperation({
|
||||
summary: "List configured Fanavaran remote lookups",
|
||||
|
||||
Reference in New Issue
Block a user