update the esg

This commit is contained in:
2026-06-20 18:18:48 +03:30
parent 539e7a4060
commit b3adb6f583
17 changed files with 1086 additions and 1 deletions

View File

@@ -27,6 +27,23 @@ export interface AmitisAuthServiceConfig {
enabled: boolean;
}
export interface FanavaranConfig {
enabled: boolean;
baseUrl: string;
timeout: number;
appName: string;
appSecret: string;
userName: string;
password: string;
corpId: number;
contractId: number;
policyInquiryLocation: number;
claimSubmitLocation: number;
defaultClaimExpertId: number;
appTokenTtlSeconds: number;
authTokenTtlSeconds: number;
}
export interface TejaratNouConfig {
enabled: boolean;
timeout: number;
@@ -81,6 +98,24 @@ export default () => ({
hamta: buildProviderConfig('HAMTA'),
moallem: buildProviderConfig('MOALLEM'),
parsian: buildProviderConfig('PARSIAN'),
fanavaran: {
enabled: process.env.FANAVARAN_ENABLED !== 'false',
baseUrl:
process.env.FANAVARAN_BASE_URL ??
'https://apimanager.iraneit.com/BimeApiManager',
timeout: parseInt(process.env.FANAVARAN_TIMEOUT ?? '30000', 10),
appName: process.env.FANAVARAN_APP_NAME ?? '',
appSecret: process.env.FANAVARAN_APP_SECRET ?? '',
userName: process.env.FANAVARAN_USERNAME ?? '',
password: process.env.FANAVARAN_PASSWORD ?? '',
corpId: parseInt(process.env.FANAVARAN_CORP_ID ?? '543', 10),
contractId: parseInt(process.env.FANAVARAN_CONTRACT_ID ?? '28', 10),
policyInquiryLocation: parseInt(process.env.FANAVARAN_POLICY_INQUIRY_LOCATION ?? '100100', 10),
claimSubmitLocation: parseInt(process.env.FANAVARAN_CLAIM_SUBMIT_LOCATION ?? '210050', 10),
defaultClaimExpertId: parseInt(process.env.FANAVARAN_DEFAULT_CLAIM_EXPERT_ID ?? '4662', 10),
appTokenTtlSeconds: parseInt(process.env.FANAVARAN_APP_TOKEN_TTL_SECONDS ?? '3600', 10),
authTokenTtlSeconds: parseInt(process.env.FANAVARAN_AUTH_TOKEN_TTL_SECONDS ?? '3600', 10),
} satisfies FanavaranConfig,
tejaratnou: {
enabled: process.env.TEJARATNOU_ENABLED !== 'false',
timeout: parseInt(process.env.TEJARATNOU_TIMEOUT ?? '15000', 10),