Files
yara724-api/src/offline-inquiry/offline-inquiry.seeds.ts

288 lines
8.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { FanavaranClientKey } from "src/core/config/fanavaran-client.config";
/**
* Seed payloads for offline plate/policy inquiry.
* Inserted into `offlineInquiries` on boot when the unique key is missing.
*/
export const OFFLINE_INQUIRY_SEEDS: Array<{
clientKey: FanavaranClientKey;
inquiryType: string;
nationalCode: string;
plate: {
leftDigits: string;
centerAlphabet: string;
centerDigits: string;
ir: string;
};
plateId: string;
label: string;
fanavaranDriverId?: number;
person?: Record<string, unknown>;
insurance?: Record<string, unknown>;
inquiry: {
source: string;
raw: Record<string, unknown>;
mapped: Record<string, unknown>;
};
}> = [
{
clientKey: "parsian",
inquiryType: "thirdPartyPlate",
nationalCode: "0651828562",
plate: {
leftDigits: "56",
centerAlphabet: "د",
centerDigits: "394",
ir: "66",
},
plateId: "66-56-د-394",
label: "روح اله حيدري — Parsian FIRST party (offline seed)",
person: {
driverBirthday: "13571201",
insurerBirthday: 13571201,
driverIsInsurer: true,
nationalCodeOfDriver: "0651828562",
nationalCodeOfInsurer: "0651828562",
phoneNumber: "09120723528",
},
insurance: {
coverages: [],
policyNumber: null,
company: "بيمه پارسيان",
financialCeiling: "0",
startDate: "1404/10/21",
endDate: "1405/10/23",
},
inquiry: {
source: "OFFLINE_SEED_INQUIRY",
raw: {
success: true,
provider: "PARSIAN",
trackingCode: "OFFLINE-PARSIAN-0651828562",
message: "offline seeded policy by plate",
duration: 0,
data: {
nationalCode: "0651828562",
plk1: "56",
plk2: "د",
plk3: "394",
plksrl: "66",
CarGrpCod: "2",
CmpCod: "8",
CmpNam: "بيمه پارسيان",
DisFnYrPrcnt: "35",
DisLfYrPrcnt: "35",
DisPrsnYrPrcnt: "70",
FndCst: "0.00",
HBgnDte: "1404/10/23",
HEndDte: "1405/10/23",
HIsuDte: "1404/10/21",
InsNam: "روح اله حيدري",
LastCmpCod: "8",
LastCmpDocNo: "1110/111130/403/002650",
MtrNum: "13389030167",
NtnlId: "0651828562",
PlcyUnqCod: "16018466143",
Plk: "394د56 66",
PrdDte: "1389",
PrntCmpDocNo: "1110/111130/404/003412",
ShsNum: "NAAP41FD5BJ301065",
TypPlcy: "بيمه ثالث و حوادث",
UsgCod: "8",
VIN: "IRFC891V7D2301065",
VehSysCod: "2",
},
error: null,
},
mapped: {
nationalCode: "0651828562",
plk1: "56",
plk2: "د",
plk3: "394",
plksrl: "66",
CarGrpCod: "2",
CmpCod: "8",
CmpNam: "بيمه پارسيان",
DisFnYrPrcnt: "35",
DisLfYrPrcnt: "35",
DisPrsnYrPrcnt: "70",
FndCst: "0.00",
HBgnDte: "1404/10/23",
HEndDte: "1405/10/23",
HIsuDte: "1404/10/21",
InsNam: "روح اله حيدري",
LastCmpCod: "8",
LastCmpDocNo: "1110/111130/403/002650",
MtrNum: "13389030167",
NtnlId: "0651828562",
PlcyUnqCod: "16018466143",
Plk: "394د56 66",
PrdDte: "1389",
PrntCmpDocNo: "1110/111130/404/003412",
ShsNum: "NAAP41FD5BJ301065",
TypPlcy: "بيمه ثالث و حوادث",
UsgCod: "8",
VIN: "IRFC891V7D2301065",
VehSysCod: "2",
companyId: "8",
companyPersianName: "بيمه پارسيان",
carGrpCod: "2",
usgCod: "8",
vehSysCod: "2",
mtrnum: "13389030167",
shsNam: "NAAP41FD5BJ301065",
vin: "IRFC891V7D2301065",
ntnlId: "0651828562",
Name: "روح اله حيدري",
ThirdPolicyCode: "16018466143",
LastCompanyDocumentNumber: "1110/111130/403/002650",
IssueDate: "1404/10/21",
StartDate: "1404/10/23",
EndDate: "1405/10/23",
CompanyCode: "8",
CompanyName: "بيمه پارسيان",
UsageField: "شخصی",
FinancialCvrCptl: "0",
PrntPlcyCmpDocNo: "1110/111130/404/003412",
VinNumberField: "IRFC891V7D2301065",
ChassisNumberField: "NAAP41FD5BJ301065",
EngineNumberField: "13389030167",
UsageCode: "8",
VehicleSystemCode: "2",
CarGroupCode: "2",
InsuranceFullName: "روح اله حيدري",
},
},
},
{
clientKey: "parsian",
inquiryType: "thirdPartyPlate",
nationalCode: "0021557985",
plate: {
leftDigits: "77",
centerAlphabet: "ه",
centerDigits: "339",
ir: "20",
},
plateId: "20-77-ه-339",
label: "سيدنويد صالحي — Parsian SECOND party (offline seed)",
fanavaranDriverId: 2426953,
person: {
driverBirthday: "13770819",
insurerBirthday: 13770819,
driverIsInsurer: true,
nationalCodeOfDriver: "0021557985",
nationalCodeOfInsurer: "0021557985",
phoneNumber: "09912536917",
},
insurance: {
coverages: [],
policyNumber: null,
company: "بيمه پارسيان",
financialCeiling: "0",
startDate: "1405/02/29",
endDate: "1406/02/29",
},
inquiry: {
source: "OFFLINE_SEED_INQUIRY",
raw: {
success: true,
provider: "PARSIAN",
trackingCode: "OFFLINE-PARSIAN-0021557985",
message: "offline seeded policy by plate",
duration: 0,
data: {
nationalCode: "0021557985",
plk1: "77",
plk2: "ه",
plk3: "339",
plksrl: "20",
CarGrpCod: "2",
CmpCod: "8",
CmpNam: "بيمه پارسيان",
DisFnYrPrcnt: "15",
DisLfYrPrcnt: "15",
DisPrsnYrPrcnt: "15",
FndCst: "716122.00",
HBgnDte: "1405/02/29",
HEndDte: "1406/02/29",
HIsuDte: "1405/02/29",
InsNam: "سيدنويد صالحي",
LastCmpCod: "8",
LastCmpDocNo: "1110/111130/404/000575",
MtrNum: "M159895611",
NtnlId: "0021557985",
PlcyUnqCod: "16035590431",
Plk: "339ه77 20",
PrdDte: "1402",
PrntCmpDocNo: "1110/111130/405/001098",
ShsNum: "NAPX212AAP1173773",
TypPlcy: "بيمه ثالث و حوادث",
UsgCod: "8",
VIN: "NAPX212AAP1173773",
VehSysCod: "315",
},
error: null,
},
mapped: {
nationalCode: "0021557985",
plk1: "77",
plk2: "ه",
plk3: "339",
plksrl: "20",
CarGrpCod: "2",
CmpCod: "8",
CmpNam: "بيمه پارسيان",
DisFnYrPrcnt: "15",
DisLfYrPrcnt: "15",
DisPrsnYrPrcnt: "15",
FndCst: "716122.00",
HBgnDte: "1405/02/29",
HEndDte: "1406/02/29",
HIsuDte: "1405/02/29",
InsNam: "سيدنويد صالحي",
LastCmpCod: "8",
LastCmpDocNo: "1110/111130/404/000575",
MtrNum: "M159895611",
NtnlId: "0021557985",
PlcyUnqCod: "16035590431",
Plk: "339ه77 20",
PrdDte: "1402",
PrntCmpDocNo: "1110/111130/405/001098",
ShsNum: "NAPX212AAP1173773",
TypPlcy: "بيمه ثالث و حوادث",
UsgCod: "8",
VIN: "NAPX212AAP1173773",
VehSysCod: "315",
companyId: "8",
companyPersianName: "بيمه پارسيان",
carGrpCod: "2",
usgCod: "8",
vehSysCod: "315",
mtrnum: "M159895611",
shsNam: "NAPX212AAP1173773",
vin: "NAPX212AAP1173773",
ntnlId: "0021557985",
Name: "سيدنويد صالحي",
ThirdPolicyCode: "16035590431",
LastCompanyDocumentNumber: "1110/111130/404/000575",
IssueDate: "1405/02/29",
StartDate: "1405/02/29",
EndDate: "1406/02/29",
CompanyCode: "8",
CompanyName: "بيمه پارسيان",
UsageField: "شخصی",
FinancialCvrCptl: "0",
PrntPlcyCmpDocNo: "1110/111130/405/001098",
VinNumberField: "NAPX212AAP1173773",
ChassisNumberField: "NAPX212AAP1173773",
EngineNumberField: "M159895611",
UsageCode: "8",
VehicleSystemCode: "315",
CarGroupCode: "2",
InsuranceFullName: "سيدنويد صالحي",
},
},
},
];