calculator and other cleaning

This commit is contained in:
2025-07-04 22:39:51 +02:00
parent a2db817133
commit 0bab1d83a1
19 changed files with 420 additions and 93 deletions

View File

@ -112,11 +112,6 @@ export interface GenericResponseChildren<Data> {
status: number
}
export type {
InvestmentPiece,
PlanPrediction,
PeriodToFirstPiece,
} from './planPrediction'
export type {
Product,
ProductItem,
@ -128,3 +123,4 @@ export type {
} from './product'
export type { FrontMenu, FrontMenuLang, UIFrontMenu } from './frontMenu'
export type { Contact, Footer, FooterDoc, FooterPdf } from './footer'
export type { CalculatorOutput, PlanPrediction, FeatureCalculator, InvestmentPiece, PeriodToFirstPiece } from './planPrediction'

View File

@ -1,3 +1,8 @@
export interface CalculatorOutput {
calculator_output: PlanPrediction
chart: string
}
export interface PlanPrediction {
total_investement_value: number
total_input_price_increase: number
@ -23,10 +28,10 @@ export interface InvestmentPiece {
currency_conversion_rate: string
max_comission_value: number
average_input_price_increase: number
features: Feature[]
features: FeatureCalculator[]
}
export interface Feature {
export interface FeatureCalculator {
feature_id: number
feature: string
value_id: number
@ -38,3 +43,8 @@ export interface PeriodToFirstPiece {
months: number
days: number
}
export interface MinMaxRange {
min: number
max: number
}