diff --git a/src/core/types/Entities/entityNames.ts b/src/core/types/Entities/entityNames.ts index 4557f37..cba0a4a 100644 --- a/src/core/types/Entities/entityNames.ts +++ b/src/core/types/Entities/entityNames.ts @@ -1 +1,19 @@ -export type EntityNames = 'account' | 'lead' | 'opportunity' | 'quote'; +export type EntityNames = + | 'account' + | 'lead' + | 'opportunity' + | 'quote' + | 'contact' + | 'transactioncurrency' + | 'evo_client_type' + | 'evo_client_risk' + | 'evo_baseproduct' + | 'evo_leasingobject_type' + | 'evo_brand' + | 'evo_model' + | 'evo_equipment' + | 'evo_reward_condition' + | 'evo_gps_brand' + | 'evo_gps_model' + | 'evo_region' + | 'evo_town'; diff --git a/src/core/types/Entities/index.ts b/src/core/types/Entities/index.ts index 1aa8b2c..468d015 100644 --- a/src/core/types/Entities/index.ts +++ b/src/core/types/Entities/index.ts @@ -3,6 +3,13 @@ import { IBaseOption } from 'core/types/Calculation/options'; export interface IAccount extends IBaseOption { accountid?: string; evo_inn?: string; + evo_account_type?: number; + evo_supplier_type?: number; + statecode?: number; + evo_fin_department_accountid?: string; + evo_legal_form?: string; + ownerid?: string; + evo_broker_accountid?: string; } export interface ILead extends IBaseOption { @@ -21,4 +28,88 @@ export interface IQuote extends IBaseOption { evo_leadid?: string; } +export interface ITransactionCurrency extends IBaseOption { + transactioncurrencyid?: string; + statecode?: number; + isocurrencycode?: string; +} + +export interface IEvoClientType extends IBaseOption { + evo_name?: string; + evo_client_typeid: string; + statecode?: number; +} + +export interface IEvoClientRisk extends IBaseOption { + evo_name?: string; + evo_client_riskid?: string; + statecode?: number; +} + +export interface IEvoBaseproduct extends IBaseOption { + evo_name?: string; + evo_baseproductid?: string; + evo_relation?: number; + evo_datefrom?: Date; + evo_dateto?: Date; +} + +export interface IEvoLeasingObjectType extends IBaseOption { + evo_name?: string; + evo_leasingobject_typeid?: string; +} + +export interface IEvoBrand extends IBaseOption { + evo_name?: string; + evo_brandid?: string; + statecode?: number; +} + +export interface IEvoModel extends IBaseOption { + evo_name?: string; + evo_modelid?: string; + statecode?: number; +} + +export interface IEvoEquipment extends IBaseOption { + evo_equipmentid?: string; + evo_name?: string; + evo_modelid?: string; + statecode?: number; +} + +export interface IEvoRewardCondition extends IBaseOption { + evo_reward_conditionid?: string; + evo_name?: string; + evo_datefrom?: Date; + evo_dateto?: Date; + evo_agent_accountid?: string; + statecode?: number; +} + +export interface IEvoGPSBrand extends IBaseOption { + evo_gps_brandid?: string; + evo_name?: string; + statecode?: number; +} +export interface IEvoGPSModel extends IBaseOption { + evo_gps_modelid?: string; + evo_name?: string; + evo_gps_brandid?: string; + statecode?: number; +} +export interface IEvoRegion extends IBaseOption { + evo_name?: string; + statecode?: number; +} +export interface IEvoTown extends IBaseOption { + evo_name?: string; + statecode?: number; +} +export interface IEvoContact extends IBaseOption { + parentcustomerid?: string; + contactid?: string; + fullname?: string; +} + export type TEntity = IAccount & ILead & IOpportunity & IQuote;