126 lines
2.3 KiB
TypeScript
126 lines
2.3 KiB
TypeScript
/* eslint-disable object-curly-newline */
|
||
import type * as Insurance from 'Components/Calculation/Form/Insurance/InsuranceTable/types';
|
||
|
||
export const defaultOptions: Record<Insurance.Keys, Insurance.RowOptions> = {
|
||
osago: {
|
||
insured: [
|
||
{
|
||
label: 'ЛП',
|
||
value: 100_000_000,
|
||
},
|
||
{
|
||
label: 'ЛД',
|
||
value: 100_000_001,
|
||
},
|
||
],
|
||
insTerm: [
|
||
{
|
||
label: '12 месяцев',
|
||
value: 100_000_000,
|
||
},
|
||
{
|
||
label: 'Срок ДЛ',
|
||
value: 100_000_001,
|
||
},
|
||
],
|
||
},
|
||
kasko: {
|
||
insured: [
|
||
{
|
||
label: 'ЛП',
|
||
value: 100_000_000,
|
||
},
|
||
{
|
||
label: 'ЛД',
|
||
value: 100_000_001,
|
||
},
|
||
],
|
||
insTerm: [
|
||
{
|
||
label: '12 месяцев',
|
||
value: 100_000_000,
|
||
},
|
||
{
|
||
label: 'Срок ДЛ',
|
||
value: 100_000_001,
|
||
},
|
||
],
|
||
},
|
||
finGAP: {
|
||
insured: [
|
||
{
|
||
label: 'ЛП',
|
||
value: 100_000_000,
|
||
},
|
||
{
|
||
label: 'ЛД',
|
||
value: 100_000_001,
|
||
},
|
||
],
|
||
insTerm: [
|
||
{
|
||
label: '12 месяцев',
|
||
value: 100_000_000,
|
||
},
|
||
{
|
||
label: 'Срок ДЛ',
|
||
value: 100_000_001,
|
||
},
|
||
],
|
||
},
|
||
};
|
||
|
||
export const defaultValues: Insurance.RowValues[] = [
|
||
{
|
||
key: 'osago',
|
||
policyType: 'ОСАГО',
|
||
insuranceCompany: null,
|
||
insured: 100_000_000,
|
||
insCost: 0,
|
||
insTerm: 100_000_000,
|
||
},
|
||
{
|
||
key: 'kasko',
|
||
policyType: 'КАСКО',
|
||
insuranceCompany: null,
|
||
insured: 100_000_000,
|
||
insCost: 0,
|
||
insTerm: null,
|
||
},
|
||
{
|
||
key: 'finGAP',
|
||
policyType: 'Safe Finance',
|
||
insuranceCompany: null,
|
||
insured: 100_000_000,
|
||
insCost: 0,
|
||
insTerm: null,
|
||
},
|
||
];
|
||
|
||
export const defaultStatuses: Insurance.RowStatuses[] = [
|
||
{
|
||
key: 'osago',
|
||
insTerm: 'Disabled',
|
||
insCost: 'Default',
|
||
insuranceCompany: 'Default',
|
||
insured: 'Default',
|
||
policyType: 'Default',
|
||
},
|
||
{
|
||
key: 'kasko',
|
||
insTerm: 'Disabled',
|
||
insCost: 'Default',
|
||
insuranceCompany: 'Default',
|
||
insured: 'Default',
|
||
policyType: 'Default',
|
||
},
|
||
{
|
||
key: 'finGAP',
|
||
insCost: 'Disabled',
|
||
insuranceCompany: 'Default',
|
||
insured: 'Default',
|
||
insTerm: 'Default',
|
||
policyType: 'Default',
|
||
},
|
||
];
|