289 lines
5.6 KiB
GraphQL
289 lines
5.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 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
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetOpportunity($opportunityid: Uuid!) {
|
|
opportunity(opportunityid: $opportunityid) {
|
|
evo_leadid
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
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 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
|
|
}
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
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!) {
|
|
leaseObjectType: evo_leasingobject_type(evo_leasingobject_typeid: $leaseObjectTypeId) {
|
|
evo_vehicle_type
|
|
}
|
|
}
|
|
|
|
query GetBrands {
|
|
evo_brands(statecode: 0) {
|
|
label: evo_name
|
|
value: evo_brandid
|
|
evo_brandid
|
|
evo_vehicle_type
|
|
}
|
|
}
|
|
|
|
query GetModels($brandId: Uuid!) {
|
|
evo_models(statecode: 0, evo_brandid: $brandId) {
|
|
label: evo_name
|
|
value: evo_modelid
|
|
evo_modelid
|
|
evo_vehicle_type
|
|
}
|
|
}
|
|
|
|
query GetConfigurations($modelId: Uuid) {
|
|
evo_equipments(statecode: 0, evo_modelid: $modelId) {
|
|
label: evo_name
|
|
value: evo_equipmentid
|
|
}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|