438 lines
8.6 KiB
GraphQL
438 lines
8.6 KiB
GraphQL
query GetTransactionCurrencies {
|
|
transactioncurrencies {
|
|
label: currencyname
|
|
value: transactioncurrencyid
|
|
transactioncurrencyid
|
|
isocurrencycode
|
|
currencysymbol
|
|
}
|
|
}
|
|
|
|
query GetTransactionCurrency($currencyid: Uuid!) {
|
|
transactioncurrency(transactioncurrencyid: $currencyid) {
|
|
currencysymbol
|
|
isocurrencycode
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetOpportunity($opportunityid: Uuid!) {
|
|
opportunity(opportunityid: $opportunityid) {
|
|
evo_leadid
|
|
accountidData {
|
|
evo_address_legalidData {
|
|
evo_region_fias_id
|
|
evo_city_fias_id
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
query GetQuote($quoteId: Uuid!) {
|
|
quote(quoteId: $quoteId) {
|
|
evo_baseproductid
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetRate($rateId: Uuid!) {
|
|
evo_rate(evo_rateid: $rateId) {
|
|
evo_base_rate
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetTowns($regionId: Uuid!) {
|
|
evo_towns(evo_regionid: $regionId) {
|
|
evo_fias_id
|
|
label: evo_name
|
|
value: evo_townid
|
|
evo_businessunit_evolution
|
|
}
|
|
}
|
|
|
|
query GetGPSBrands {
|
|
evo_gps_brands(statecode: 0) {
|
|
label: evo_name
|
|
value: evo_gps_brandid
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
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_importer_reward_perc
|
|
evo_importer_reward_rub
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
query GetConfigurations($modelId: Uuid!) {
|
|
evo_equipments(statecode: 0, evo_modelid: $modelId) {
|
|
label: evo_name
|
|
value: evo_equipmentid
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
query GetDealer($dealerId: Uuid!) {
|
|
dealer: account(accountid: $dealerId) {
|
|
evo_return_leasing_dealer
|
|
evo_broker_accountid
|
|
}
|
|
}
|
|
|
|
query GetDealerPersons($dealerId: Uuid!) {
|
|
dealerPersons: salon_providers(statecode: 0, salonaccountid: $dealerId) {
|
|
label: name
|
|
value: accountid
|
|
accountid
|
|
evo_inn
|
|
evo_kpp
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetSotCoefficientType($evo_id: String) {
|
|
evo_sot_coefficient_type(evo_id: $evo_id) {
|
|
evo_sot_coefficient_typeid
|
|
}
|
|
}
|
|
query GetCoefficients($currentDate: DateTime, $jobTitleId: Uuid!) {
|
|
evo_coefficients(
|
|
statecode: 0
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
evo_job_titleid: $jobTitleId
|
|
) {
|
|
evo_job_titleid
|
|
evo_sot_coefficient_typeid
|
|
evo_baseproducts {
|
|
evo_baseproductid
|
|
}
|
|
evo_sot_coefficient
|
|
}
|
|
}
|
|
|
|
query GetSystemUser($domainname: String) {
|
|
systemuser(domainname: $domainname) {
|
|
evo_job_titleid
|
|
}
|
|
}
|
|
|
|
query GetAddproductTypes($currentDate: DateTime) {
|
|
evo_addproduct_types(
|
|
statecode: 0
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
) {
|
|
label: evo_name
|
|
value: evo_addproduct_typeid
|
|
evo_graph_price
|
|
evo_product_type
|
|
}
|
|
}
|
|
|
|
query GetRegistrationTypes($currentDate: DateTime) {
|
|
evo_addproduct_types(
|
|
statecode: 0
|
|
evo_datefrom_param: { lte: $currentDate }
|
|
evo_dateto_param: { gte: $currentDate }
|
|
evo_product_type: 100000001
|
|
) {
|
|
label: evo_name
|
|
value: evo_addproduct_typeid
|
|
evo_graph_price
|
|
evo_leasingobject_types {
|
|
evo_leasingobject_typeid
|
|
}
|
|
evo_whom_register
|
|
evo_gibdd_region
|
|
evo_pts_type
|
|
evo_accountid
|
|
evo_towtruck
|
|
}
|
|
}
|