more fakes
This commit is contained in:
parent
1ac2b3d89c
commit
bfe3f635d8
@ -17,6 +17,40 @@ const initialOptionMap: TInitialElementsOptions = {
|
||||
statecode: 0,
|
||||
},
|
||||
},
|
||||
selectClientRisk: {
|
||||
entityName: 'evo_client_risk',
|
||||
where: {
|
||||
statecode: 0,
|
||||
},
|
||||
},
|
||||
selectDealer: {
|
||||
entityName: 'account',
|
||||
where: {
|
||||
evo_account_type: 100000001,
|
||||
statecode: 0,
|
||||
},
|
||||
whereIn: {
|
||||
evo_supplier_type: 100000000,
|
||||
},
|
||||
},
|
||||
selectGPSBrand: {
|
||||
entityName: 'evo_gps_brand',
|
||||
where: {
|
||||
statecode: 0,
|
||||
},
|
||||
},
|
||||
selectRegionRegistration: {
|
||||
entityName: 'evo_region',
|
||||
where: {
|
||||
statecode: 0,
|
||||
},
|
||||
},
|
||||
selectTownRegistration: {
|
||||
entityName: 'evo_town',
|
||||
where: {
|
||||
statecode: 0,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default initialOptionMap;
|
||||
|
||||
@ -9,6 +9,8 @@ import faker from 'faker';
|
||||
const ACCOUNT_1_ID = faker.random.uuid();
|
||||
const ACCOUNT_2_ID = faker.random.uuid();
|
||||
const ACCOUNT_3_ID = faker.random.uuid();
|
||||
const ACCOUNT_4_ID = faker.random.uuid();
|
||||
const ACCOUNT_5_ID = faker.random.uuid();
|
||||
|
||||
const LEAD_1_ID = faker.random.uuid();
|
||||
const LEAD_2_ID = faker.random.uuid();
|
||||
@ -24,6 +26,29 @@ const TRANSACTION_CURRENTCY_2_ID = faker.random.uuid();
|
||||
|
||||
const EVO_CLIENT_1_ID = faker.random.uuid();
|
||||
const EVO_CLIENT_2_ID = faker.random.uuid();
|
||||
|
||||
const EVO_CLIENT_RISK_1_ID = faker.random.uuid();
|
||||
const EVO_CLIENT_RISK_2_ID = faker.random.uuid();
|
||||
|
||||
const GPS_BRAND_1_ID = faker.random.uuid();
|
||||
const GPS_BRAND_2_ID = faker.random.uuid();
|
||||
const GPS_BRAND_3_ID = faker.random.uuid();
|
||||
|
||||
const GPS_MODEL_1_ID = faker.random.uuid();
|
||||
const GPS_MODEL_2_ID = faker.random.uuid();
|
||||
const GPS_MODEL_3_ID = faker.random.uuid();
|
||||
const GPS_MODEL_4_ID = faker.random.uuid();
|
||||
|
||||
const REGION_1_ID = faker.random.uuid();
|
||||
const REGION_2_ID = faker.random.uuid();
|
||||
const REGION_3_ID = faker.random.uuid();
|
||||
const REGION_4_ID = faker.random.uuid();
|
||||
|
||||
const TOWN_1_ID = faker.random.uuid();
|
||||
const TOWN_2_ID = faker.random.uuid();
|
||||
const TOWN_3_ID = faker.random.uuid();
|
||||
const TOWN_4_ID = faker.random.uuid();
|
||||
|
||||
/**
|
||||
* Fake Consts
|
||||
*/
|
||||
@ -38,6 +63,7 @@ const entityFakeData: {
|
||||
evo_account_type: 100000001,
|
||||
evo_supplier_type: 100000000,
|
||||
statecode: 0,
|
||||
evo_fin_department_accountid: ACCOUNT_4_ID,
|
||||
},
|
||||
{
|
||||
accountid: ACCOUNT_2_ID,
|
||||
@ -45,6 +71,7 @@ const entityFakeData: {
|
||||
evo_account_type: 100000001,
|
||||
evo_supplier_type: 100000000,
|
||||
statecode: 0,
|
||||
evo_fin_department_accountid: ACCOUNT_5_ID,
|
||||
},
|
||||
{
|
||||
accountid: ACCOUNT_3_ID,
|
||||
@ -53,6 +80,20 @@ const entityFakeData: {
|
||||
evo_supplier_type: 100000000,
|
||||
statecode: 0,
|
||||
},
|
||||
{
|
||||
accountid: ACCOUNT_4_ID,
|
||||
name: 'Финотдел1Салона1',
|
||||
evo_account_type: 100000005,
|
||||
evo_supplier_type: 100000000,
|
||||
statecode: 0,
|
||||
},
|
||||
{
|
||||
accountid: ACCOUNT_5_ID,
|
||||
name: 'ФинотделСалона2',
|
||||
evo_account_type: 100000005,
|
||||
evo_supplier_type: 100000000,
|
||||
statecode: 0,
|
||||
},
|
||||
],
|
||||
transactioncurrency: [
|
||||
{
|
||||
@ -78,6 +119,18 @@ const entityFakeData: {
|
||||
statecode: 0,
|
||||
},
|
||||
],
|
||||
evo_client_risk: [
|
||||
{
|
||||
evo_client_riskid: EVO_CLIENT_RISK_1_ID,
|
||||
evo_name: 'Низкий',
|
||||
statecode: 0,
|
||||
},
|
||||
{
|
||||
evo_client_riskid: EVO_CLIENT_RISK_2_ID,
|
||||
evo_name: 'Высокий',
|
||||
statecode: 0,
|
||||
},
|
||||
],
|
||||
lead: [
|
||||
{
|
||||
fullname: '100_ООО "Архимаг',
|
||||
@ -112,6 +165,93 @@ const entityFakeData: {
|
||||
evo_leadid: LEAD_2_ID,
|
||||
},
|
||||
],
|
||||
evo_gps_brand: [
|
||||
{
|
||||
evo_name: 'Цезарь',
|
||||
evo_gps_brandid: GPS_BRAND_1_ID,
|
||||
statecode: 0,
|
||||
},
|
||||
{
|
||||
evo_name: 'Аркан',
|
||||
evo_gps_brandid: GPS_BRAND_2_ID,
|
||||
statecode: 0,
|
||||
},
|
||||
{
|
||||
evo_name: 'КОбраКоннекс',
|
||||
evo_gps_brandid: GPS_BRAND_3_ID,
|
||||
statecode: 0,
|
||||
},
|
||||
],
|
||||
evo_gps_model: [
|
||||
{
|
||||
evo_name: 'OmegaX',
|
||||
evo_gps_modelid: GPS_MODEL_1_ID,
|
||||
statecode: 0,
|
||||
evo_gps_brandid: GPS_BRAND_1_ID,
|
||||
},
|
||||
{
|
||||
evo_name: 'Platinum',
|
||||
evo_gps_modelid: GPS_MODEL_2_ID,
|
||||
statecode: 0,
|
||||
evo_gps_brandid: GPS_BRAND_1_ID,
|
||||
},
|
||||
{
|
||||
evo_name: 'Premium',
|
||||
evo_gps_modelid: GPS_MODEL_3_ID,
|
||||
statecode: 0,
|
||||
evo_gps_brandid: GPS_BRAND_2_ID,
|
||||
},
|
||||
{
|
||||
evo_name: 'AutoConnex',
|
||||
evo_gps_modelid: GPS_MODEL_4_ID,
|
||||
statecode: 0,
|
||||
evo_gps_brandid: GPS_BRAND_2_ID,
|
||||
},
|
||||
],
|
||||
evo_region: [
|
||||
{
|
||||
evo_name: 'Москвоская',
|
||||
evo_regionid: REGION_1_ID,
|
||||
statecode: 0,
|
||||
},
|
||||
{
|
||||
evo_name: 'Калининградская',
|
||||
evo_regionid: REGION_2_ID,
|
||||
statecode: 0,
|
||||
},
|
||||
{
|
||||
evo_name: 'Красноярская',
|
||||
evo_regionid: REGION_3_ID,
|
||||
statecode: 0,
|
||||
},
|
||||
{
|
||||
evo_name: 'Иркутская',
|
||||
evo_regionid: REGION_4_ID,
|
||||
statecode: 0,
|
||||
},
|
||||
],
|
||||
evo_town: [
|
||||
{
|
||||
evo_name: 'Одинцово',
|
||||
evo_townid: TOWN_1_ID,
|
||||
statecode: 0,
|
||||
},
|
||||
{
|
||||
evo_name: 'Калининград',
|
||||
evo_townid: TOWN_2_ID,
|
||||
statecode: 0,
|
||||
},
|
||||
{
|
||||
evo_name: 'Липецк',
|
||||
evo_townid: TOWN_3_ID,
|
||||
statecode: 0,
|
||||
},
|
||||
{
|
||||
evo_name: 'Серпухов',
|
||||
evo_townid: TOWN_4_ID,
|
||||
statecode: 0,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default entityFakeData;
|
||||
|
||||
@ -100,10 +100,12 @@ export interface IEvoGPSModel extends IBaseOption {
|
||||
}
|
||||
export interface IEvoRegion extends IBaseOption {
|
||||
evo_name?: string;
|
||||
evo_regionid?: string;
|
||||
statecode?: number;
|
||||
}
|
||||
export interface IEvoTown extends IBaseOption {
|
||||
evo_name?: string;
|
||||
evo_townid?: string;
|
||||
statecode?: number;
|
||||
}
|
||||
export interface IEvoContact extends IBaseOption {
|
||||
|
||||
Reference in New Issue
Block a user