704 lines
14 KiB
GraphQL
704 lines
14 KiB
GraphQL
query GetTransactionCurrencies {
|
|
transactioncurrencies {
|
|
label: currencyname
|
|
value: transactioncurrencyid
|
|
transactioncurrencyid
|
|
isocurrencycode
|
|
currencysymbol
|
|
}
|
|
}
|
|
|
|
query GetTransactionCurrency($currencyid: Uuid!) {
|
|
transactioncurrency(transactioncurrencyid: $currencyid) {
|
|
currencysymbol
|
|
isocurrencycode
|
|
transactioncurrencyid
|
|
}
|
|
}
|
|
|
|
query GetCurrencyChanges($currentDate: DateTime) {
|
|
evo_currencychanges(statecode: 0, evo_coursedate_param: { eq: $currentDate }) {
|
|
evo_currencychange
|
|
evo_ref_transactioncurrency
|
|
}
|
|
}
|
|
|
|
query GetLeads($domainname: String) {
|
|
leads(owner_domainname: $domainname) {
|
|
label: fullname
|
|
value: leadid
|
|
}
|
|
}
|
|
|
|
query GetLead($leadid: Uuid!) {
|
|
lead(leadid: $leadid) {
|
|
evo_agent_accountid
|
|
evo_double_agent_accountid
|
|
evo_broker_accountid
|
|
evo_fin_department_accountid
|
|
evo_opportunityidData {
|
|
label: name
|
|
value: opportunityid
|
|
}
|
|
evo_inn
|
|
accountidData {
|
|
evo_address_legalidData {
|
|
evo_region_fias_id
|
|
evo_city_fias_id
|
|
}
|
|
evo_okved
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetOpportunity($opportunityid: Uuid!) {
|
|
opportunity(opportunityid: $opportunityid) {
|
|
evo_leadid
|
|
accountidData {
|
|
evo_address_legalidData {
|
|
evo_region_fias_id
|
|
evo_city_fias_id
|
|
}
|
|
evo_okved
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetOpportunities($domainname: String) {
|
|
opportunities(owner_domainname: $domainname) {
|
|
label: name
|
|
value: opportunityid
|
|
}
|
|
}
|
|
|
|
query GetQuotes($leadid: Uuid!) {
|
|
quotes(evo_leadid: $leadid) {
|
|
label: evo_quotename
|
|
value: quoteid
|
|
evo_recalc_limit
|
|
evo_statuscodeidData {
|
|
evo_id
|
|
}
|
|
evo_purchases_participation
|
|
}
|
|
}
|
|
|
|
query GetQuote($quoteId: Uuid!) {
|
|
quote(quoteId: $quoteId) {
|
|
evo_baseproductid
|
|
evo_one_year_insurance
|
|
evo_min_change_price
|
|
evo_max_price_change
|
|
evo_discount_supplier_currency
|
|
evo_equip_price
|
|
evo_program_import_subsidy_sum
|
|
evo_nds_in_price_supplier_currency
|
|
evo_supplier_currency_price
|
|
evo_approved_first_payment
|
|
evo_recalc_limit
|
|
evo_max_mass
|
|
evo_seats
|
|
evo_year
|
|
evo_last_payment_perc
|
|
evo_maximum_percentage_av
|
|
}
|
|
}
|
|
|
|
query GetTarifs($currentDate: DateTime) {
|
|
evo_tarifs(
|
|
statecode: 0
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
) {
|
|
label: evo_name
|
|
value: evo_tarifid
|
|
evo_tarifid
|
|
evo_baseproductid
|
|
evo_min_period
|
|
evo_max_period
|
|
evo_delivery_time
|
|
evo_min_first_payment
|
|
evo_max_first_payment
|
|
evo_min_last_payment
|
|
evo_max_last_payment
|
|
evo_used
|
|
evo_leasingobject_types {
|
|
evo_leasingobject_typeid
|
|
}
|
|
evo_pl_use_type
|
|
}
|
|
}
|
|
|
|
query GetTarif($tarifId: Uuid!) {
|
|
evo_tarif(evo_tarifid: $tarifId) {
|
|
evo_irr
|
|
evo_graphtype_exception
|
|
evo_seasons_type_exception
|
|
evo_min_decreasing_perc
|
|
evo_min_irr
|
|
evo_cut_irr_with_bonus_coefficient
|
|
evo_max_irr
|
|
evo_rates {
|
|
evo_datefrom
|
|
evo_rateid
|
|
}
|
|
evo_irr_plan
|
|
evo_margin_min
|
|
}
|
|
}
|
|
|
|
query GetRates($currentDate: DateTime) {
|
|
evo_rates(
|
|
statecode: 0
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
) {
|
|
label: evo_name
|
|
value: evo_rateid
|
|
evo_id
|
|
evo_tarifs {
|
|
evo_tarifid
|
|
}
|
|
evo_rateid
|
|
}
|
|
}
|
|
|
|
query GetRate($rateId: Uuid!) {
|
|
evo_rate(evo_rateid: $rateId) {
|
|
evo_base_rate
|
|
evo_credit_period
|
|
evo_id
|
|
}
|
|
}
|
|
|
|
query GetProducts($currentDate: DateTime) {
|
|
evo_baseproducts(
|
|
statecode: 0
|
|
evo_relation: [100000000]
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
) {
|
|
label: evo_name
|
|
value: evo_baseproductid
|
|
evo_baseproductid
|
|
systemusers {
|
|
systemuserid
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetProduct($productId: Uuid!) {
|
|
evo_baseproduct(evo_baseproductid: $productId) {
|
|
evo_leasingobject_types {
|
|
evo_leasingobject_typeid
|
|
}
|
|
evo_calculation_method
|
|
evo_baseproducts {
|
|
evo_baseproductid
|
|
}
|
|
evo_brands {
|
|
evo_brandid
|
|
}
|
|
evo_sale_without_nds
|
|
evo_cut_proportion_bonus_director
|
|
evo_cut_irr_with_bonus
|
|
evo_sale_without_nds
|
|
evo_id
|
|
evo_supplier_financing_accept
|
|
accounts {
|
|
accountid
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetSubsidies($currentDate: DateTime) {
|
|
evo_subsidies(
|
|
statecode: 0
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
) {
|
|
label: evo_name
|
|
value: evo_subsidyid
|
|
evo_subsidy_type
|
|
}
|
|
}
|
|
|
|
query GetSubsidy($subsidyId: Uuid!) {
|
|
evo_subsidy(evo_subsidyid: $subsidyId) {
|
|
evo_leasingobject_types {
|
|
evo_leasingobject_typeid
|
|
}
|
|
accounts {
|
|
accountid
|
|
}
|
|
evo_brands {
|
|
evo_brandid
|
|
}
|
|
evo_models {
|
|
evo_modelid
|
|
}
|
|
evo_subsidy_summ
|
|
evo_percent_subsidy
|
|
evo_max_subsidy_summ
|
|
evo_get_subsidy_payment
|
|
evo_delivery_time
|
|
}
|
|
}
|
|
|
|
query GetImportProgram($importProgramId: Uuid!) {
|
|
importProgram: evo_subsidy(evo_subsidyid: $importProgramId) {
|
|
evo_leasingobject_types {
|
|
evo_leasingobject_typeid
|
|
}
|
|
accounts {
|
|
accountid
|
|
}
|
|
evo_brands {
|
|
evo_brandid
|
|
}
|
|
evo_models {
|
|
evo_modelid
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetRegions {
|
|
evo_regions {
|
|
label: evo_name
|
|
value: evo_regionid
|
|
evo_fias_id
|
|
evo_businessunit_evolution
|
|
}
|
|
}
|
|
|
|
query GetRegion($regionId: Uuid!) {
|
|
evo_region(evo_regionid: $regionId) {
|
|
evo_oktmo
|
|
accounts {
|
|
accountid
|
|
}
|
|
evo_kladr_id
|
|
}
|
|
}
|
|
|
|
query GetTowns($regionId: Uuid!) {
|
|
evo_towns(evo_regionid: $regionId) {
|
|
evo_fias_id
|
|
label: evo_name
|
|
value: evo_townid
|
|
evo_businessunit_evolution
|
|
}
|
|
}
|
|
|
|
query GetTown($townId: Uuid!) {
|
|
evo_town(evo_townid: $townId) {
|
|
evo_kladr_id
|
|
}
|
|
}
|
|
|
|
query GetGPSBrands {
|
|
evo_gps_brands(statecode: 0) {
|
|
label: evo_name
|
|
value: evo_gps_brandid
|
|
evo_id
|
|
}
|
|
}
|
|
|
|
query GetGPSModels($gpsBrandId: Uuid!) {
|
|
evo_gps_models(evo_gps_brandid: $gpsBrandId) {
|
|
label: evo_name
|
|
value: evo_gps_modelid
|
|
evo_id
|
|
}
|
|
}
|
|
|
|
query GetLeaseObjectTypes {
|
|
evo_leasingobject_types(statecode: 0) {
|
|
label: evo_name
|
|
value: evo_leasingobject_typeid
|
|
evo_leasingobject_typeid
|
|
}
|
|
}
|
|
|
|
query GetLeaseObjectType($leaseObjectTypeId: Uuid!) {
|
|
evo_leasingobject_type(evo_leasingobject_typeid: $leaseObjectTypeId) {
|
|
evo_vehicle_type
|
|
evo_id
|
|
evo_category
|
|
evo_vehicle_type_tax
|
|
evo_category_tr
|
|
evo_expluatation_period1
|
|
evo_expluatation_period2
|
|
evo_depreciation_rate1
|
|
evo_depreciation_rate2
|
|
}
|
|
}
|
|
|
|
query GetBrands {
|
|
evo_brands(statecode: 0) {
|
|
label: evo_name
|
|
value: evo_brandid
|
|
evo_brandid
|
|
evo_vehicle_type
|
|
}
|
|
}
|
|
|
|
query GetBrand($brandId: Uuid!) {
|
|
evo_brand(evo_brandid: $brandId) {
|
|
evo_id
|
|
evo_importer_reward_perc
|
|
evo_importer_reward_rub
|
|
evo_maximum_percentage_av
|
|
evo_brand_owner
|
|
}
|
|
}
|
|
|
|
query GetModels($brandId: Uuid!) {
|
|
evo_models(statecode: 0, evo_brandid: $brandId) {
|
|
label: evo_name
|
|
value: evo_modelid
|
|
evo_modelid
|
|
evo_vehicle_type
|
|
}
|
|
}
|
|
|
|
query GetModel($modelId: Uuid!) {
|
|
evo_model(evo_modelid: $modelId) {
|
|
evo_impairment_groupidData {
|
|
evo_name
|
|
}
|
|
evo_importer_reward_perc
|
|
evo_importer_reward_rub
|
|
evo_id
|
|
evo_vehicle_body_typeidData {
|
|
evo_id_elt
|
|
}
|
|
evo_running_gear
|
|
}
|
|
}
|
|
|
|
query GetConfigurations($modelId: Uuid!) {
|
|
evo_equipments(statecode: 0, evo_modelid: $modelId) {
|
|
label: evo_name
|
|
value: evo_equipmentid
|
|
evo_start_production_year
|
|
}
|
|
}
|
|
|
|
query GetConfiguration($configurationId: Uuid!) {
|
|
evo_equipment(evo_equipmentid: $configurationId) {
|
|
evo_impairment_groupidData {
|
|
evo_name
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetDealers {
|
|
dealers: accounts(evo_account_type: [100000001], statecode: 0, evo_legal_form: 100000001) {
|
|
label: name
|
|
value: accountid
|
|
accountid
|
|
evo_supplier_financing_accept
|
|
}
|
|
}
|
|
|
|
query GetDealer($dealerId: Uuid!) {
|
|
dealer: account(accountid: $dealerId) {
|
|
evo_return_leasing_dealer
|
|
evo_broker_accountid
|
|
evo_supplier_financing_accept
|
|
}
|
|
}
|
|
|
|
query GetDealerPersons($dealerId: Uuid!) {
|
|
dealerPersons: salon_providers(statecode: 0, salonaccountid: $dealerId) {
|
|
label: name
|
|
value: accountid
|
|
accountid
|
|
evo_inn
|
|
evo_kpp
|
|
evo_supplier_financing_accept
|
|
}
|
|
}
|
|
|
|
query GetDealerPerson($dealerPersonId: Uuid!) {
|
|
account(accountid: $dealerPersonId) {
|
|
evo_supplier_type
|
|
evo_supplier_financing_accept
|
|
}
|
|
}
|
|
|
|
query GetAgent($agentid: Uuid!) {
|
|
agent: account(accountid: $agentid) {
|
|
label: name
|
|
value: accountid
|
|
}
|
|
}
|
|
|
|
query GetRewardConditions($agentid: Uuid!, $currentDate: DateTime) {
|
|
evo_reward_conditions(
|
|
evo_agent_accountid: $agentid
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
statecode: 0
|
|
evo_agency_agreementid_param: { has: true }
|
|
) {
|
|
label: evo_name
|
|
value: evo_reward_conditionid
|
|
evo_reward_summ
|
|
}
|
|
}
|
|
|
|
query GetRewardCondition($conditionId: Uuid!) {
|
|
evo_reward_condition(evo_reward_conditionid: $conditionId) {
|
|
evo_reward_summ
|
|
evo_reduce_reward
|
|
evo_min_reward_summ
|
|
evo_agency_agreementidData {
|
|
evo_required_reward
|
|
evo_reward_without_other_agent
|
|
evo_leasingobject_price
|
|
}
|
|
evo_calc_reward_rules
|
|
}
|
|
}
|
|
|
|
query GetSotCoefficientType($evo_id: String) {
|
|
evo_sot_coefficient_type(evo_id: $evo_id) {
|
|
evo_sot_coefficient_typeid
|
|
}
|
|
}
|
|
|
|
query GetCoefficients($currentDate: DateTime) {
|
|
evo_coefficients(
|
|
statecode: 0
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
) {
|
|
evo_job_titleid
|
|
evo_sot_coefficient_typeid
|
|
evo_baseproducts {
|
|
evo_baseproductid
|
|
evo_id
|
|
}
|
|
evo_sot_coefficient
|
|
evo_corfficient_type
|
|
evo_sot_coefficient_typeidData {
|
|
evo_id
|
|
}
|
|
evo_correction_coefficient
|
|
evo_min_period
|
|
evo_max_period
|
|
evo_season_type
|
|
evo_graph_type
|
|
evo_businessunits {
|
|
evo_sale_businessunitid
|
|
}
|
|
evo_risk_delta
|
|
}
|
|
}
|
|
|
|
query GetSystemUser($domainname: String) {
|
|
systemuser(domainname: $domainname) {
|
|
evo_job_titleid
|
|
businessunitid
|
|
roles {
|
|
name
|
|
}
|
|
systemuserid
|
|
}
|
|
}
|
|
|
|
fragment CoreAddProductTypesFields on evo_addproduct_type {
|
|
evo_graph_price
|
|
label: evo_name
|
|
value: evo_addproduct_typeid
|
|
}
|
|
|
|
query GetAddproductTypes($currentDate: DateTime) {
|
|
evo_addproduct_types(
|
|
statecode: 0
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
) {
|
|
...CoreAddProductTypesFields
|
|
evo_product_type
|
|
}
|
|
}
|
|
|
|
query GetAddProductType($addproductTypeId: Uuid!) {
|
|
evo_addproduct_type(evo_addproduct_typeid: $addproductTypeId) {
|
|
evo_description
|
|
evo_helpcard_type
|
|
evo_planpayments {
|
|
evo_name
|
|
evo_cost_price_telematics_withoutnds
|
|
evo_cost_equipment_withoutnds
|
|
evo_cost_telematics_withoutnds
|
|
}
|
|
evo_graph_price_withoutnds
|
|
evo_cost_service_provider_withoutnds
|
|
evo_retro_bonus_withoutnds
|
|
evo_evokasko_calc_type
|
|
evo_loss_kv
|
|
evo_price_service_provider_withoutnds
|
|
evo_graph_price
|
|
evo_product_type
|
|
evo_addproduct_typeid
|
|
}
|
|
}
|
|
|
|
query GetRegistrationTypes($currentDate: DateTime) {
|
|
evo_addproduct_types(
|
|
statecode: 0
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
evo_product_type: 100000001
|
|
) {
|
|
...CoreAddProductTypesFields
|
|
evo_leasingobject_types {
|
|
evo_leasingobject_typeid
|
|
}
|
|
evo_whom_register
|
|
evo_gibdd_region
|
|
evo_pts_type
|
|
evo_accountid
|
|
evo_towtruck
|
|
}
|
|
}
|
|
|
|
query GetTechnicalCards($currentDate: DateTime) {
|
|
evo_addproduct_types(
|
|
statecode: 0
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
evo_product_type: 100000000
|
|
) {
|
|
...CoreAddProductTypesFields
|
|
evo_min_period
|
|
evo_max_period
|
|
evo_leasingobject_types {
|
|
evo_leasingobject_typeid
|
|
}
|
|
evo_helpcard_type
|
|
}
|
|
}
|
|
|
|
query GetFuelCards($currentDate: DateTime) {
|
|
evo_addproduct_types(
|
|
statecode: 0
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
evo_product_type: 100000005
|
|
) {
|
|
...CoreAddProductTypesFields
|
|
evo_min_period
|
|
evo_max_period
|
|
evo_leasingobject_types {
|
|
evo_leasingobject_typeid
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetTelematicTypes($currentDate: DateTime) {
|
|
evo_addproduct_types(
|
|
statecode: 0
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
evo_product_type: 100000004
|
|
) {
|
|
...CoreAddProductTypesFields
|
|
evo_controls_program
|
|
evo_visible_calc
|
|
}
|
|
}
|
|
|
|
query GetTrackerTypes($currentDate: DateTime) {
|
|
evo_addproduct_types(
|
|
statecode: 0
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
evo_product_type: 100000003
|
|
) {
|
|
...CoreAddProductTypesFields
|
|
evo_controls_program
|
|
evo_visible_calc
|
|
}
|
|
}
|
|
|
|
query GetInsNSIBTypes($currentDate: DateTime) {
|
|
evo_addproduct_types(
|
|
statecode: 0
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
evo_product_type: 100000002
|
|
) {
|
|
...CoreAddProductTypesFields
|
|
evo_max_period
|
|
evo_min_period
|
|
evo_max_price
|
|
evo_min_price
|
|
evo_leasingobject_types {
|
|
evo_leasingobject_typeid
|
|
}
|
|
evo_visible_calc
|
|
evo_min_first_payment_perc
|
|
evo_max_first_payment_perc
|
|
}
|
|
}
|
|
|
|
query GetLeasingWithoutKaskoTypes($currentDate: DateTime) {
|
|
evo_addproduct_types(
|
|
statecode: 0
|
|
evo_product_type: 100000007
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
) {
|
|
...CoreAddProductTypesFields
|
|
evo_product_type
|
|
evo_min_period
|
|
evo_max_period
|
|
evo_min_price
|
|
evo_max_price
|
|
evo_leasingobject_types {
|
|
evo_leasingobject_typeid
|
|
}
|
|
evo_visible_calc
|
|
evo_min_first_payment_perc
|
|
evo_max_first_payment_perc
|
|
evo_models {
|
|
evo_modelid
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetInsuranceCompany($accountId: Uuid!) {
|
|
account(accountid: $accountId) {
|
|
evo_osago_with_kasko
|
|
evo_legal_region_calc
|
|
accountid
|
|
}
|
|
}
|
|
|
|
query GetInsuranceCompanies {
|
|
accounts(evo_account_type: [100000002], statecode: 0) {
|
|
evo_type_ins_policy
|
|
evo_evokasko_access
|
|
evo_inn
|
|
value: accountid
|
|
label: name
|
|
evo_id_elt_osago
|
|
evo_id_elt
|
|
evo_id_elt_smr
|
|
}
|
|
}
|
|
|
|
query GetRoles($roleName: String) {
|
|
roles(name: $roleName) {
|
|
systemusers {
|
|
label: fullname
|
|
value: domainname
|
|
}
|
|
}
|
|
}
|