entities && interfaces
This commit is contained in:
parent
3712d2c3c1
commit
385d47dc06
@ -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';
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user